Emir
749c213bc3
Add missing `background-blend-mode` property ( #2128 )
2 years ago
Veyndan Stuart
dd857bd1b0
Remove unnecessary parameter to required ( #1988 )
...
* Remove unnecessary parameter to required
As [`required` is a boolean attribute](https://html.spec.whatwg.org/multipage/input.html#the-required-attribute ), `required(false)` would confusingly make the input required.
* Add back old function and deprecate it
2 years ago
Oleksandr Karpovich
80b71a92ea
Deprecate 3 overloads of StyleScope.borderWidth with wrong parameter names ( #2297 )
...
* Temporary deprecate 3 overloads of StyleScope.borderWidth
The reason is wrong parameter names. The behaviour is still correct.
The idea is to fix the parameter names in 2.0 (which is more appropriate for breaking changes)
* Apply better deprecation and replacement approach
* improve the deprecation message
* fix
* add tests for deprecated borderWidth
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2 years ago
Igor Demin
b60de28986
Update EventsListenerScope.kt
2 years ago
Philip Wedemann
ad757a8f0a
Web: Add list overload for classes ( #2094 )
...
* Add list overload for classes
* Add array and collection overload for classes
* Remove array overload
Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
2 years ago
Oleksandr Karpovich
f1854a9dce
web: add HtmlAttrMarker ( #1958 )
...
To forbid declaring of attrs is style scope
closes #1893
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
InsanusMokrassar
22da8d9529
Add support of dl, dt and dd ( #1922 )
3 years ago
Oleksandr Karpovich
1ab63ed995
fix Style composable and CSSRulesHolderState ( #1889 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
cd7691a53f
Simplify inner CSS API, remove css fun completely (was experimental, will be redesigned)
3 years ago
Shagen Ogandzhanian
6f89804467
[web][tests] always use nextChild when you start with root.children[0], remove redundant braces
3 years ago
Oleksandr Karpovich
5b496eb191
web: update TagElement with tagName: String ( #1827 )
...
* web: update TagElement with tagName: String
Enable changing the tagName value. This will delete the initial html element and create a new one with a new tagName.
Cache ElementBuilder instances.
* add comments
* update PR according to discussion
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
bccf783976
web: make canvasAttributeTest independent of attributes order
3 years ago
Shreck Ye
7a9776cc43
web: make `applyAttrs` in the second overloaded `TagElement` nullable to be consistent with the first one ( #1814 )
3 years ago
Philip Wedemann
a528838712
Web: Add Canvas element ( #1823 )
...
Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
3 years ago
Oleksandr Karpovich
f7d71a034b
web: add a test `keyChangesTheOrderButKeepsSameInstances`
3 years ago
Oleksandr Karpovich
21cda3f3c6
web: make ComposeDomNode inline ( #1808 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
edac50ae39
Introduce HTMLElement.computedStyle: CSSStyleDeclaration helper function ( #1815 )
3 years ago
Shagen Ogandzhanian
44cc13add1
Enable warning as errors by default in web ( #1803 )
3 years ago
Oleksandr Karpovich
7ea30be924
web: hide internal properties from AttrsScope, EventsListenerScope, StyleScope ( #1802 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
af2c354f72
web: apply `classes` and `style` before all other attributes and properties ( #1788 )
...
* web: apply `classes` before all other attributes and properties
This mitigates "Flash of unstyled content"
* apply style {} before attr(...). Add more tests
* use val instead of var for classes
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
685e305c5e
Move renderComposable to internal-web-core-runtime ( #1789 )
3 years ago
Shagen Ogandzhanian
6aaeddc4b4
Use standard side effects in Elements.kt ( #1793 )
3 years ago
Oleksandr Karpovich
0c30a3e2af
web: add typealias AttrsBuilder referencing new AttrsScopeBuilder ( #1778 )
...
This mitigates possible breaking API changes
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Martynas Petuška
f98dfbc761
web: AttrsScope interface extraction ( #1694 )
...
* AttrsScope interface extraction
* PR amendments
* resolve conflicts
* remove yarn lockfile
* move submodule back
3 years ago
Shagen Ogandzhanian
82bd465f5b
Deprecate DisposableRefEffect and DomSideEffect ( #1714 )
3 years ago
Shagen Ogandzhanian
4bf01cf5e0
Make DomElementWrapper private ( #1749 )
3 years ago
Shagen Ogandzhanian
b71a5161a7
Reuse renderComposable in tests ( #1732 )
...
This also deprecates renderTestComposable
3 years ago
Oleksandr Karpovich
a4604d4a72
web: make Nth.Functional, Nth.Odd, Nth.Even private ( #1633 )
...
add corresponding public functions and values instead
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
87d983e0a5
Fix for Nth.Functional ( #1609 )
3 years ago
Shagen Ogandzhanian
211fe2e63f
Introduce separate test for stylesheet inheritance
3 years ago
Shagen Ogandzhanian
798f0ac1ab
Kotlin testing reuse ( #1562 )
3 years ago
Shagen Ogandzhanian
90cb181a71
Core with Frefox tests enabled ( #1563 )
3 years ago
Oleksandr Karpovich
046f225846
web: workaround flaky CI test runner ( #1550 )
...
* web: workaround flaky CI test runner
* Move config path to test-utils/conf/karma.config.common.d
* Reusing same karma config everywhere aprt benchmarks
it looks like we can have only one karma config directory
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
Co-authored-by: Shagen Ogandzhanian <shagen.ogandzhanian@jetbrains.com>
3 years ago
Shagen Ogandzhanian
d902912424
Make all CSS Selectors private ( #1519 )
3 years ago
Oleksandr Karpovich
cf62af9a23
web (breaking change): make constructors of CSSSelectors classes internal ( #1510 )
...
* web (breaking change): Make CSSSelector constructors internal and move constant selectors instances to `SelectorsScope`
* web (breaking change): Make CSSSelectors classes internal
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
1b731e0af6
web (breaking change): move top level functions for css selectors to new SelectorsScope ( #1504 )
...
* web (breaking change): move top level functions for css selectors to new SelectorsScope
These functions don't need to be on top level because their purpose is to be used within StyleSheet
* web: update CSSSelector plus operator
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
d87c29a10d
web: add test for CSSSelector plus operator
3 years ago
Oleksandr Karpovich
4623985462
web (breaking change): move `combine` and `feature` functions to GenericStyleSheetBuilder scope (in CSSMediaRule.kt) ( #1508 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
6d0a0f4f1d
web (breaking change): make some functions internal ( #1509 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Abasov Akif
43a16c8e77
Throw exception for `String + CSSSelector` with `self` cases. ( #1462 )
...
* Throw exception for `String + CSSSelector` with `self` cases.
* Refactoring: CSSSelector: open -> abstract, assertTrue -> assertFailsWith
* Exceptions rewording
* CSSSelfSelector: public -> internal
3 years ago
Oleksandr Karpovich
45a63ec41c
web: remove Options for event listeners ( #1470 )
...
Options were never actually applied and there was no way to use anything beside Options.DEFAULT
It's still possible to set options using k/js `addEventListener` on the element's reference
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
3778eadd37
web: add `inputmode` global attribute ( #1461 )
...
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
closes https://github.com/JetBrains/compose-jb/issues/1338
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Abasov Akif
974ef56832
Fix css selectors: combine, sibling ( #1418 )
3 years ago
Shagen Ogandzhanian
f96eeea220
[web] Common config for printing test results to STDOUT
3 years ago
Oleksandr Karpovich
bbec5eaa43
web: add tests for Css selectors `desc` ( #1305 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Abasov Akif
984a26ce1d
Pass resolved with self selector to nested builder ( #1298 )
3 years ago
Abasov Akif
14bf6674d9
Add implicit self for nested css selector ( #1284 )
...
* Deprecate `descendant` and introduce `desc` util to combine selectors
* Add internal `contains` method to `CSSSelector`
* Add implicit self for nested css selector
3 years ago
Oleksandr Karpovich
c5c28f8aad
web: make auto-css experimental ( #1294 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
354e48a542
Web: fix jumping cursor of controlled inputs ( #1287 )
...
* web: fix cursor position for controlled inputs (wip)
* web: fix cursor position for controlled inputs (wip)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
1638f0f08b
web: fix mouse event for safari mobile ( #1288 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago