@vaadin/form-layout 24.0.0-alpha8 → 24.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/form-layout",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "24.0.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/component-base": "24.0.0-beta1",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-beta1",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "24.0.0-beta1",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-beta1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
|
-
"@vaadin/custom-field": "24.0.0-
|
|
47
|
-
"@vaadin/testing-helpers": "^0.
|
|
48
|
-
"@vaadin/text-field": "24.0.0-
|
|
46
|
+
"@vaadin/custom-field": "24.0.0-beta1",
|
|
47
|
+
"@vaadin/testing-helpers": "^0.4.0",
|
|
48
|
+
"@vaadin/text-field": "24.0.0-beta1",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
51
51
|
"web-types": [
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
|
|
56
56
|
}
|
|
@@ -248,7 +248,7 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
|
|
|
248
248
|
/** @protected */
|
|
249
249
|
ready() {
|
|
250
250
|
// Here we create and attach a style element that we use for validating
|
|
251
|
-
// CSS values in `responsiveSteps`. We can
|
|
251
|
+
// CSS values in `responsiveSteps`. We can't add this to the `<template>`,
|
|
252
252
|
// because Polymer will throw it away. We need to create this before
|
|
253
253
|
// `super.ready()`, because `super.ready()` invokes property observers,
|
|
254
254
|
// and the observer for `responsiveSteps` does CSS value validation.
|
|
@@ -329,7 +329,7 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
|
|
|
329
329
|
/** @private */
|
|
330
330
|
_isValidCSSLength(value) {
|
|
331
331
|
// Let us choose a CSS property for validating CSS <length> values:
|
|
332
|
-
// - `border-spacing` accepts `<length> | inherit`, it
|
|
332
|
+
// - `border-spacing` accepts `<length> | inherit`, it's the best! But
|
|
333
333
|
// it does not disallow invalid values at all in MSIE :-(
|
|
334
334
|
// - `letter-spacing` and `word-spacing` accept
|
|
335
335
|
// `<length> | normal | inherit`, and disallows everything else, like
|
|
@@ -424,7 +424,7 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
|
|
|
424
424
|
// Sometimes converting units is not possible, e.g, when element is
|
|
425
425
|
// not connected. Then the `selectedStep` stays `undefined`.
|
|
426
426
|
if (selectedStep) {
|
|
427
|
-
// Apply the chosen responsive step
|
|
427
|
+
// Apply the chosen responsive step's properties
|
|
428
428
|
this._columnCount = selectedStep.columns;
|
|
429
429
|
this._labelsOnTop = selectedStep.labelsPosition === 'top';
|
|
430
430
|
}
|
|
@@ -481,7 +481,7 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
|
|
|
481
481
|
child.style.width = `calc(${childRatio * 99.9}% - ${1 - childRatio} * ${columnSpacing})`;
|
|
482
482
|
|
|
483
483
|
if (col + colspan > this._columnCount) {
|
|
484
|
-
// Too big to fit on this row, let
|
|
484
|
+
// Too big to fit on this row, let's wrap it
|
|
485
485
|
col = 0;
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -25,7 +25,7 @@ registerStyles(
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
[part='required-indicator']::after {
|
|
28
|
-
content: var(--lumo-required-field-indicator, '
|
|
28
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
29
29
|
transition: opacity 0.2s;
|
|
30
30
|
opacity: 0;
|
|
31
31
|
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
package/web-types.json
CHANGED