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
Shagen Ogandzhanian
770412444d
Support filter in CSS API
...
this resolves #923
3 years ago
Shagen Ogandzhanian
5518eec745
Support for transform in CSS API
...
This resolves #922
3 years ago
Oleksandr Karpovich
2689f7c4c0
web: Update test utils api to prepare it for publishing ( #1048 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
db53b95a31
Web/controlled inputs ( #1031 )
...
* web: make TextInput manage its view state
* web: make TextInput manage its view state
* web: make TextInput manage its view state
* web: add tests for controlled TextArea and RadioButton
* Add more tests for controlled and uncontrolled inputs
* Add more tests for controlled and uncontrolled inputs
* Update date input tests
* Update time input tests
* Update date input tests
* Add docs for controlled and unctontrolled input modes
* web: improve docs for controlled inputs
* web: make benchmark add1kItems run only 2 times instead of 3 (to prevent it from throwing timeout)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
d2d4971f28
web: mark internal and experimental api in web-core ( #1077 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
4eedafc5fa
web: add tests for constructors with Composable parameters
3 years ago
Oleksandr Karpovich
00d0ee008f
web: Add failing tests for composables passed into constructors (issue #746 )
3 years ago
Shagen Ogandzhanian
b7af8368ca
Web docs updated ( #994 )
...
* Minimal documentation for AttrsBuilder
* Minimal documentation for the StyleBuilder
* Add documentation for AttrsBuilder::attr
* Update doc for AtrsBuilder
* Minimal documentation for EventsListenerBuilder
* Documentation for AttrsBuilder::ref (copied from tutorial)
* Documentation for AttrsBuilder::prop
* Add docs for ElementScope and dom specific effects
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
a9f3f4f01c
Fix typo in CSS API madiaMaxHeight => mediaMaxHeight
3 years ago
Shagen Ogandzhanian
7557522e16
Minimal documentation for the most basic CSS API
3 years ago
Oleksandr Karpovich
656592124a
web: add a tutorial for DomSideEffect ( #975 )
...
* web: add a tutorial for DomSideEffect
* web: add a tutorial for DomSideEffect (edits)
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Oleksandr Karpovich
6504196bc9
web: fix a bug when inline styles get empty after attributes update ( #980 )
...
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
d363211110
Remove CSSVariables context
...
One can define CSS variables anywhere
This is actually the only thing we want to do right now in framework
of #894
Resolves #894
3 years ago
Shagen Ogandzhanian
2536c29766
Basic support for grid-auto-flow, grid-auto-columns and grid-auto-rows in CSS API
...
This contibutes to #895
3 years ago
Shagen Ogandzhanian
4c6388f995
Introduce minimal support of alignSelf, justifySelf, alignItems, justifyItems, gap in CSS API
3 years ago
Shagen Ogandzhanian
b9a87578fc
Support negation for CSSNumeric values
...
This resolves #921
3 years ago
Shagen Ogandzhanian
e4e05c826c
Li can be build in any context
...
We won't try to type-check the DOM structure, it's up to user which elements and where to use
3 years ago
Shagen Ogandzhanian
636694a46e
Introduce basic support for grid-column/row-start/end
...
This contributes to #895
3 years ago