@vaadin/split-layout 23.1.0-alpha3 → 23.1.0-beta2

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": "23.1.0-alpha3",
3
+ "version": "23.1.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,15 +34,15 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "23.1.0-alpha3",
38
- "@vaadin/vaadin-lumo-styles": "23.1.0-alpha3",
39
- "@vaadin/vaadin-material-styles": "23.1.0-alpha3",
40
- "@vaadin/vaadin-themable-mixin": "23.1.0-alpha3"
37
+ "@vaadin/component-base": "23.1.0-beta2",
38
+ "@vaadin/vaadin-lumo-styles": "23.1.0-beta2",
39
+ "@vaadin/vaadin-material-styles": "23.1.0-beta2",
40
+ "@vaadin/vaadin-themable-mixin": "23.1.0-beta2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
45
  "sinon": "^13.0.2"
46
46
  },
47
- "gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85"
47
+ "gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
48
48
  }
@@ -165,13 +165,13 @@ declare class SplitLayout extends ElementMixin(ThemableMixin(HTMLElement)) {
165
165
  addEventListener<K extends keyof SplitLayoutEventMap>(
166
166
  type: K,
167
167
  listener: (this: SplitLayout, ev: SplitLayoutEventMap[K]) => void,
168
- options?: boolean | AddEventListenerOptions
168
+ options?: boolean | AddEventListenerOptions,
169
169
  ): void;
170
170
 
171
171
  removeEventListener<K extends keyof SplitLayoutEventMap>(
172
172
  type: K,
173
173
  listener: (this: SplitLayout, ev: SplitLayoutEventMap[K]) => void,
174
- options?: boolean | EventListenerOptions
174
+ options?: boolean | EventListenerOptions,
175
175
  ): void;
176
176
  }
177
177
 
@@ -222,14 +222,14 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
222
222
  orientation: {
223
223
  type: String,
224
224
  reflectToAttribute: true,
225
- value: 'horizontal'
225
+ value: 'horizontal',
226
226
  },
227
227
 
228
228
  /** @private */
229
229
  _previousPrimaryPointerEvents: String,
230
230
 
231
231
  /** @private */
232
- _previousSecondaryPointerEvents: String
232
+ _previousSecondaryPointerEvents: String,
233
233
  };
234
234
  }
235
235
 
@@ -260,7 +260,7 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
260
260
  if (i === 0) {
261
261
  this._primaryChild = child;
262
262
  child.setAttribute('slot', 'primary');
263
- } else if (i == 1) {
263
+ } else if (i === 1) {
264
264
  this._secondaryChild = child;
265
265
  child.setAttribute('slot', 'secondary');
266
266
  } else {
@@ -276,7 +276,7 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
276
276
  // Pure zero does not play well in Safari
277
277
  flexBasis = 0.000001;
278
278
  }
279
- element.style.flex = '1 1 ' + flexBasis + 'px';
279
+ element.style.flex = `1 1 ${flexBasis}px`;
280
280
  }
281
281
 
282
282
  /** @private */
@@ -307,18 +307,18 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
307
307
  return;
308
308
  }
309
309
 
310
- var size = this.orientation === 'vertical' ? 'height' : 'width';
310
+ const size = this.orientation === 'vertical' ? 'height' : 'width';
311
311
  if (event.detail.state === 'start') {
312
312
  this._startSize = {
313
313
  container: this.getBoundingClientRect()[size] - this.$.splitter.getBoundingClientRect()[size],
314
314
  primary: this._primaryChild.getBoundingClientRect()[size],
315
- secondary: this._secondaryChild.getBoundingClientRect()[size]
315
+ secondary: this._secondaryChild.getBoundingClientRect()[size],
316
316
  };
317
317
 
318
318
  return;
319
319
  }
320
320
 
321
- var distance = this.orientation === 'vertical' ? event.detail.dy : event.detail.dx;
321
+ const distance = this.orientation === 'vertical' ? event.detail.dy : event.detail.dx;
322
322
  const isRtl = this.orientation !== 'vertical' && this.getAttribute('dir') === 'rtl';
323
323
  const dirDistance = isRtl ? -distance : distance;
324
324
 
@@ -338,7 +338,7 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
338
338
  */
339
339
  notifyResize() {
340
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.`
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
342
  );
343
343
  }
344
344
 
@@ -97,5 +97,5 @@ registerStyles(
97
97
  border-right: 1px solid var(--lumo-contrast-10pct);
98
98
  }
99
99
  `,
100
- { moduleId: 'lumo-split-layout' }
100
+ { moduleId: 'lumo-split-layout' },
101
101
  );
@@ -28,5 +28,5 @@ registerStyles(
28
28
  transform: rotate(90deg);
29
29
  }
30
30
  `,
31
- { moduleId: 'material-split-layout' }
31
+ { moduleId: 'material-split-layout' },
32
32
  );