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
Igor Demin
581b5f0b0a
Update Compose + Migrate to 0.5.0-build262 / Kotlin 1.5.21 ( #916 )
3 years ago
Shagen Ogandzhanian
f4fc51f372
Simplify CSSFlexTests
3 years ago
Shagen Ogandzhanian
ef56abac66
Introduce helper function to the test scope to iterate through root children
3 years ago
Shagen Ogandzhanian
90cecde6f2
Basic support for grid-template-areas
...
This contributes to #895
3 years ago
Shagen Ogandzhanian
cf19b0fba9
Introduce basic support for grid-area in CSS API
3 years ago
Shagen Ogandzhanian
ac7974d056
Introduce minimal support for "grid-template-columns" and "grid-template-rows" in CSS API
3 years ago
Shagen Ogandzhanian
58ea0bde81
Basic suppport for gridRow and gridColumn in CSS API
...
This contributes to #895
3 years ago
Shagen Ogandzhanian
a5cffc44ca
CSS API - disallow String parameters for colors
...
See #891 - Still not closing though since I want to revisit it after CSS Grid and propert keywrods typing
3 years ago
Shagen Ogandzhanian
83870dde5d
Correct @Deprecation.ReplaceWith arguments for Color.hsl, Color.hsla
3 years ago
Shagen Ogandzhanian
a83bf4c181
Remove StylePropertyValue.asString, StylePropertyValue.asNumber and StylePropertyValue.asCSSStyleValue
...
in other words, remove all StylePropertyValue -> js object value
3 years ago
Shagen Ogandzhanian
bb4e97b149
CSSVariableValueAs is not a StylePropertyValue
3 years ago
Shagen Ogandzhanian
fce92382fd
Introduce new CSS Color API and deprecate old one
...
This resolves #902
3 years ago
Oleksandr Karpovich
6d97c6d055
web: align the rest of events ( #887 )
...
* web: update change and beforeInput event listeners
* web: update Clipboard events: copy, cut, paste
* web: update Keyboard events: keyup, keydown
* web: update select event (only for input and textarea)
* web: update FocusEvents: focus, blur, focusin, focusout
* web: update Touch Events
* web: remove search event listener as it's not supported in Firefox
* web: update Animation Events
* web: update scroll event
* web: rename WrappedEventListener to SyntheticEventListener
* refactor internal event listeners to avoid redundant lambdas
* remove WrappedEvent.kt
* move SyntheticInputEvent.kt to `events` package
* Add tests for Select element events
* remove import from another changelist
* web: add Form events: submit and reset
* fix PR discussions
* web: rename `attrsBuilder` to `attrs`
Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
3 years ago
Shagen Ogandzhanian
27e4dd4fe6
Introduce html/css color constants
...
This resolve #890 : Introduce complete list of HTML color aliases
3 years ago
Shagen Ogandzhanian
dc3b743f2c
[web] Color is a namespace, use CSSColorValue whenever you need StylePropertyValue subtype
3 years ago
Shagen Ogandzhanian
30c5510111
[web] Color is used exclusively as a namespace, all data classes a derived from CSSColorValue
3 years ago
Shagen Ogandzhanian
1e8cbe8afd
Add test case for variable<StylePropertyNumber> in CSS API
3 years ago
Shagen Ogandzhanian
eb26f07240
Introduce separate test for the 3-ary border call in CSS API
3 years ago
Shagen Ogandzhanian
153ce9f063
Move relevant border test from StaticComposableTests to CSSBorderTests
3 years ago