@vaadin/split-layout 23.1.0-beta1 → 23.1.0-beta4

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-beta1",
3
+ "version": "23.1.0-beta4",
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-beta1",
38
- "@vaadin/vaadin-lumo-styles": "23.1.0-beta1",
39
- "@vaadin/vaadin-material-styles": "23.1.0-beta1",
40
- "@vaadin/vaadin-themable-mixin": "23.1.0-beta1"
37
+ "@vaadin/component-base": "23.1.0-beta4",
38
+ "@vaadin/vaadin-lumo-styles": "23.1.0-beta4",
39
+ "@vaadin/vaadin-material-styles": "23.1.0-beta4",
40
+ "@vaadin/vaadin-themable-mixin": "23.1.0-beta4"
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": "8be43cf83102a6b9ccf309687446e590ce0164e8"
47
+ "gitHead": "06e283473964ecb3085aacf3eddb5333d052a045"
48
48
  }
@@ -307,7 +307,7 @@ 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],
@@ -318,7 +318,7 @@ class SplitLayout extends ElementMixin(ThemableMixin(PolymerElement)) {
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