@vaadin/split-layout 24.0.0-alpha1 → 24.0.0-alpha11
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 +6 -6
- package/src/vaadin-split-layout.d.ts +1 -7
- package/src/vaadin-split-layout.js +5 -13
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/split-layout",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-alpha11",
|
|
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-
|
|
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-alpha11",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-alpha11",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "24.0.0-alpha11",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha11"
|
|
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": "
|
|
53
|
+
"gitHead": "641b3d96ceeb3e503a093682ebe686afdd8c3a68"
|
|
54
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
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 -
|
|
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.
|
|
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.
|
|
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
package/web-types.lit.json
CHANGED