@vaadin/form-layout 24.6.3 → 24.6.5

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.6.3",
3
+ "version": "24.6.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,22 +36,23 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "~24.6.3",
40
- "@vaadin/component-base": "~24.6.3",
41
- "@vaadin/vaadin-lumo-styles": "~24.6.3",
42
- "@vaadin/vaadin-material-styles": "~24.6.3",
43
- "@vaadin/vaadin-themable-mixin": "~24.6.3"
39
+ "@vaadin/a11y-base": "~24.6.5",
40
+ "@vaadin/component-base": "~24.6.5",
41
+ "@vaadin/vaadin-lumo-styles": "~24.6.5",
42
+ "@vaadin/vaadin-material-styles": "~24.6.5",
43
+ "@vaadin/vaadin-themable-mixin": "~24.6.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "~24.6.3",
47
- "@vaadin/custom-field": "~24.6.3",
46
+ "@vaadin/chai-plugins": "~24.6.5",
47
+ "@vaadin/custom-field": "~24.6.5",
48
+ "@vaadin/test-runner-commands": "~24.6.5",
48
49
  "@vaadin/testing-helpers": "^1.1.0",
49
- "@vaadin/text-field": "~24.6.3",
50
+ "@vaadin/text-field": "~24.6.5",
50
51
  "sinon": "^18.0.0"
51
52
  },
52
53
  "web-types": [
53
54
  "web-types.json",
54
55
  "web-types.lit.json"
55
56
  ],
56
- "gitHead": "26a1f4cd0fd9de4543862015feda3d35c78bd3b8"
57
+ "gitHead": "fc109a4234a1f60e89717ab1c0dc8fb4451aa418"
57
58
  }
@@ -240,11 +240,6 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
240
240
  _labelsOnTop: {
241
241
  type: Boolean,
242
242
  },
243
-
244
- /** @private */
245
- __isVisible: {
246
- type: Boolean,
247
- },
248
243
  };
249
244
  }
250
245
 
@@ -269,22 +264,6 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
269
264
  this.addEventListener('animationend', this.__onAnimationEnd);
270
265
  }
271
266
 
272
- constructor() {
273
- super();
274
-
275
- this.__intersectionObserver = new IntersectionObserver(([entry]) => {
276
- if (!entry.isIntersecting) {
277
- // Prevent possible jump when layout becomes visible
278
- this.$.layout.style.opacity = 0;
279
- }
280
- if (!this.__isVisible && entry.isIntersecting) {
281
- this._updateLayout();
282
- this.$.layout.style.opacity = '';
283
- }
284
- this.__isVisible = entry.isIntersecting;
285
- });
286
- }
287
-
288
267
  /** @protected */
289
268
  connectedCallback() {
290
269
  super.connectedCallback();
@@ -293,7 +272,6 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
293
272
  requestAnimationFrame(() => this._updateLayout());
294
273
 
295
274
  this._observeChildrenColspanChange();
296
- this.__intersectionObserver.observe(this.$.layout);
297
275
  }
298
276
 
299
277
  /** @protected */
@@ -302,7 +280,6 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
302
280
 
303
281
  this.__mutationObserver.disconnect();
304
282
  this.__childObserver.disconnect();
305
- this.__intersectionObserver.disconnect();
306
283
  }
307
284
 
308
285
  /** @private */
@@ -575,8 +552,16 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
575
552
  * @protected
576
553
  * @override
577
554
  */
578
- _onResize() {
555
+ _onResize(contentRect) {
556
+ if (contentRect.width === 0 && contentRect.height === 0) {
557
+ this.$.layout.style.opacity = '0';
558
+ return;
559
+ }
560
+
579
561
  this._selectResponsiveStep();
562
+ this._updateLayout();
563
+
564
+ this.$.layout.style.opacity = '';
580
565
  }
581
566
  }
582
567
 
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/form-layout",
4
- "version": "24.6.3",
4
+ "version": "24.6.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/form-layout",
4
- "version": "24.6.3",
4
+ "version": "24.6.5",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {