Commit Graph

785 Commits

Author SHA1 Message Date
Igor Demin
581b5f0b0a Update Compose + Migrate to 0.5.0-build262 / Kotlin 1.5.21 (#916) 2021-07-21 11:24:17 +03:00
Shagen Ogandzhanian
f4fc51f372 Simplify CSSFlexTests 2021-07-20 17:36:42 +02:00
Shagen Ogandzhanian
ef56abac66 Introduce helper function to the test scope to iterate through root children 2021-07-20 17:23:15 +02:00
Shagen Ogandzhanian
90cecde6f2 Basic support for grid-template-areas
This contributes to #895
2021-07-20 15:46:10 +02:00
Shagen Ogandzhanian
cf19b0fba9 Introduce basic support for grid-area in CSS API 2021-07-20 15:31:09 +02:00
Shagen Ogandzhanian
ac7974d056 Introduce minimal support for "grid-template-columns" and "grid-template-rows" in CSS API 2021-07-20 14:40:57 +02:00
Shagen Ogandzhanian
58ea0bde81 Basic suppport for gridRow and gridColumn in CSS API
This contributes to #895
2021-07-20 14:29:54 +02:00
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
2021-07-20 11:22:40 +02:00
Arkadii Ivanov
d89671218a Add previews to TodoApp example (#909) 2021-07-20 10:41:59 +03:00
Shagen Ogandzhanian
fb63c43394 Use max/minWidth/Height call in samples 2021-07-20 00:04:55 +02:00
Shagen Ogandzhanian
83870dde5d Correct @Deprecation.ReplaceWith arguments for Color.hsl, Color.hsla 2021-07-19 17:46:04 +02:00
Alexey Tsvetkov
c271999ec8 Check preview RPC protocol version (#907)
Show notification, when preview client and server use different versions
of the protocol
2021-07-19 17:23:56 +03:00
Oleksandr Karpovich
58f36be885 web: Disable flaky SelectElementTests to investigate them later 2021-07-19 14:58:46 +02:00
Alexey Tsvetkov
b73b09dffc Include jdk.crypto.ec by default (#905)
Without this module most of https
is not going to work (see https://github.com/JetBrains/compose-jb/issues/269 or https://github.com/JetBrains/compose-jb/issues/429)

The inclusion of this module increases a size of
a prepackaged app by ~440 kb
and of a packaged dmg by ~167 kb
2021-07-19 15:56:18 +03:00
Alexey Tsvetkov
f15f4236de Better preview progress indication (#901)
* Indicate preview progress with loading panel

* Avoid sending repeated preview requests
2021-07-19 14:44:24 +03:00
Shagen Ogandzhanian
a83bf4c181 Remove StylePropertyValue.asString, StylePropertyValue.asNumber and StylePropertyValue.asCSSStyleValue
in other words, remove all StylePropertyValue -> js object value
2021-07-16 23:24:20 +02:00
Shagen Ogandzhanian
bb4e97b149 CSSVariableValueAs is not a StylePropertyValue 2021-07-16 23:07:35 +02:00
Shagen Ogandzhanian
fce92382fd Introduce new CSS Color API and deprecate old one
This resolves #902
2021-07-16 19:02:10 +02:00
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>
2021-07-16 17:56:15 +02:00
Oleksandr Karpovich
8c01295e8a Web/add compose plugin integration cases for kotlinjs (#870)
* web: Add integration cases for compose plugin targeting kotlin/js

* web: Add integration cases for compose plugin targeting kotlin/js

* Report cases to TeamCity

* Update README.md

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-07-16 17:52:46 +02:00
Alexey Tsvetkov
992268bccd Suppress naming style inspection for composable functions (#889)
This change suppresses a diagnostic,
which complaints, when a function starts
with an upper case letter
2021-07-16 17:23:52 +03:00
Shagen Ogandzhanian
27e4dd4fe6 Introduce html/css color constants
This resolve #890: Introduce complete list of HTML color aliases
2021-07-16 10:07:09 +02:00
Shagen Ogandzhanian
dc3b743f2c [web] Color is a namespace, use CSSColorValue whenever you need StylePropertyValue subtype 2021-07-15 23:46:53 +02:00
Shagen Ogandzhanian
30c5510111 [web] Color is used exclusively as a namespace, all data classes a derived from CSSColorValue 2021-07-15 23:32:29 +02:00
fauxvillage
3df74e26aa fix checkbox isMaximized in Windows_API_new tutorial (#893) 2021-07-15 16:54:41 +03:00
Shagen Ogandzhanian
1e8cbe8afd Add test case for variable<StylePropertyNumber> in CSS API 2021-07-14 20:55:55 +02:00
Shagen Ogandzhanian
eb26f07240 Introduce separate test for the 3-ary border call in CSS API 2021-07-14 19:01:13 +02:00
Shagen Ogandzhanian
153ce9f063 Move relevant border test from StaticComposableTests to CSSBorderTests 2021-07-14 18:05:55 +02:00
Shagen Ogandzhanian
8f2a420543 Introduce basic support for max/min-width/height in CSS API 2021-07-14 15:15:35 +02:00
Shagen Ogandzhanian
084aa680a1 Rename mediaQuery-related min/maxWidth/Height extensions by adding media prefix
This resolves #886
2021-07-14 14:06:29 +02:00
Oleksandr Karpovich
ac76dc5f0e web: Use SyntheticMouseEvent as a type for a value in mouse events listeners (#862)
* web: Use SyntheticMouseEvent as a type for a value in mouse events listeners

* add tests for mouse event

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-07-14 12:22:36 +02:00
Shagen Ogandzhanian
a1a94c7447 Introduce basic support for outline and it's properties to CSS API 2021-07-14 00:28:12 +02:00
Shagen Ogandzhanian
8dd5e17338 Introduce basic support for flex in CSS API 2021-07-13 22:53:47 +02:00
Shagen Ogandzhanian
f1081c67ba Basic support for flex-basic in CSS API 2021-07-13 22:18:51 +02:00
Shagen Ogandzhanian
5164e0669b Introduce basic support for white-space in CSS API 2021-07-13 21:08:42 +02:00
Shagen Ogandzhanian
f861210bdd Introduce basic support for cursor in CSS API 2021-07-13 20:43:01 +02:00
Igor Demin
4fcdf6afe2 Update Compose (#882) 2021-07-13 17:01:19 +03:00
akurasov
b19d543a36 Added Preview functionality info (#880)
Added information about plugin with Preview functionality
2021-07-13 14:50:40 +03:00
Shagen Ogandzhanian
24e7e3dd16 Basic support for border-width in CSS API 2021-07-13 00:04:55 +02:00
Shagen Ogandzhanian
2bd08c323a Introduce basic support for text-decoration and its constituents in CSS API 2021-07-12 23:36:56 +02:00
Oleksandr Karpovich
295ed754c0 Update Compose (#878)
Co-authored-by: Igor Demin <igordmn@gmail.com>
2021-07-12 20:40:30 +02:00
Shagen Ogandzhanian
6dd06d4d18 Introduce basic support for text-align in CSS API 2021-07-12 20:06:22 +02:00
Shagen Ogandzhanian
7b8afd901b Basic support for letter-spacing in CSS API 2021-07-12 19:35:53 +02:00
Shagen Ogandzhanian
99b1751f2e Basic support for boxSizing in CSS API 2021-07-12 19:20:48 +02:00
Shagen Ogandzhanian
c3fa1413c5 [web-banchmark-core] printBundleSize depends on jsBrowserDistribution 2021-07-12 13:29:56 +02:00
Oleksandr Karpovich
53eed79835 web: fix a bug for inputs taking string value (#871)
It was not possible to make the input empty by setting the state to an empty string.

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
2021-07-12 09:38:00 +02:00
Igor Demin
b1c0dadfb5 Update README.md 2021-07-12 09:34:45 +03:00
Igor Demin
94c3b9270a Update README.md 2021-07-12 09:33:58 +03:00
Shagen Ogandzhanian
bf2a3d7b10 Remove obslete test from StaticComposableTests 2021-07-09 19:04:59 +02:00
Igor Demin
5478392f61 Update README.md 2021-07-09 17:21:08 +03:00