@vaadin/split-layout 24.0.0-alpha1 → 24.0.0-alpha10

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/split-layout",
3
- "version": "24.0.0-alpha1",
3
+ "version": "24.0.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,10 +36,10 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.0.0-alpha1",
40
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha1",
41
- "@vaadin/vaadin-material-styles": "24.0.0-alpha1",
42
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha1"
39
+ "@vaadin/component-base": "24.0.0-alpha10",
40
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
41
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha10",
42
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
@@ -50,5 +50,5 @@
50
50
  "web-types.json",
51
51
  "web-types.lit.json"
52
52
  ],
53
- "gitHead": "427527c27c4b27822d61fd41d38d7b170134770b"
53
+ "gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
54
54
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
@@ -156,12 +156,6 @@ declare class SplitLayout extends ElementMixin(ThemableMixin(HTMLElement)) {
156
156
  */
157
157
  orientation: 'horizontal' | 'vertical';
158
158
 
159
- /**
160
- * @deprecated Since Vaadin 23, `notifyResize()` is deprecated. The component uses a
161
- * ResizeObserver internally and doesn't need to be explicitly notified of resizes.
162
- */
163
- notifyResize(): void;
164
-
165
159
  addEventListener<K extends keyof SplitLayoutEventMap>(
166
160
  type: K,
167
161
  listener: (this: SplitLayout, ev: SplitLayoutEventMap[K]) => void,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2016 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
@@ -250,7 +250,9 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
250
250
  /** @private */
251
251
  _cleanupNodes(nodes) {
252
252
  nodes.forEach((node) => {
253
- node.removeAttribute('slot');
253
+ if (!(node.parentElement instanceof SplitLayout)) {
254
+ node.removeAttribute('slot');
255
+ }
254
256
  });
255
257
  }
256
258
 
@@ -319,7 +321,7 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
319
321
  }
320
322
 
321
323
  const distance = this.orientation === 'vertical' ? event.detail.dy : event.detail.dx;
322
- const isRtl = this.orientation !== 'vertical' && this.getAttribute('dir') === 'rtl';
324
+ const isRtl = this.orientation !== 'vertical' && this.__isRTL;
323
325
  const dirDistance = isRtl ? -distance : distance;
324
326
 
325
327
  this._setFlexBasis(this._primaryChild, this._startSize.primary + dirDistance, this._startSize.container);
@@ -332,16 +334,6 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
332
334
  }
333
335
  }
334
336
 
335
- /**
336
- * @deprecated Since Vaadin 23, `notifyResize()` is deprecated. The component uses a
337
- * ResizeObserver internally and doesn't need to be explicitly notified of resizes.
338
- */
339
- notifyResize() {
340
- console.warn(
341
- `WARNING: Since Vaadin 23, notifyResize() is deprecated. The component uses a ResizeObserver internally and doesn't need to be explicitly notified of resizes.`,
342
- );
343
- }
344
-
345
337
  /**
346
338
  * Fired after dragging the splitter have ended.
347
339
  *
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/split-layout",
4
- "version": "24.0.0-alpha1",
4
+ "version": "24.0.0-alpha10",
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/split-layout",
4
- "version": "24.0.0-alpha1",
4
+ "version": "24.0.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {