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
Philip Wedemann
13620b9dd7
Align StyleSheetBuilder parameter with other @Composable ContentBuilder and add test ( #1112 )
3 years ago
Abasov Akif
381a95bb62
Basic animations test ( #1233 )
...
Basic animations test
3 years ago
Oleksandr Karpovich
626cba019a
web: add RadioGroup component to manage several Radio Inputs ( #1116 )
...
* web: add RadioGroup component to manage several Radio Inputs
* web: improve RadioGroup PR after discussions
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
3f2a5d06c4
[web] and turning Firefox tests in core of again
3 years ago
Shagen Ogandzhanian
4c252b8196
Use asHtmlElement helper only in TestUtils
...
TestUtils is a perfect classic name!
3 years ago
Shagen Ogandzhanian
d8de109ba1
[web] Re-enable Firefox tests after making build job non-parallel
3 years ago
Shagen Ogandzhanian
c8f91a9695
Extract PositionTests from StaticComposableTests and use runTest in both
3 years ago
Shagen Ogandzhanian
f8ac4ad2c3
Don't run web-core tests in Firefox (till further investigation)
3 years ago
Shagen Ogandzhanian
6b209ebd87
Prepare DomApplier and related code for working with SVG entities
3 years ago
Shagen Ogandzhanian
d4804fafdd
[web] [tests] introduce elementBuilderShouldBeCalledOnce test
3 years ago
Shagen Ogandzhanian
a22c916721
Use runTest in stypePosition test
3 years ago
Shagen Ogandzhanian
ce9fbcc8dd
Add test that basically check that scope is remembered
...
Thanks to Oleksandr - I would have never come up with a solution this
quick
3 years ago
Shagen Ogandzhanian
6c1667e05a
[web] [tests] Refactor attributesUpdateShouldNotCauseInlineStylesCleanUp and make sure we check conditional class assignemnt (in combination with seeting style) as well
3 years ago
Oleksandr Karpovich
e8e02771a0
web: add test-utils module ( #1101 )
...
* web: move DomApplier, GlobalSnapshotManager, JsMicrotasksDispatcher to dedicated module
This will allow reusing them in test-utils module.
* web: move TestUtils.kt to a dedicated module
Use test-utils module in web-core as a dependency
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
14909c23b2
Simplify CSS transform API signatures
...
There's no need to any of this methods to be Boolean
3 years ago