@spectrum-web-components/split-view 0.4.8 → 0.4.11-devmode.0

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/src/SplitView.js CHANGED
@@ -1,355 +1,319 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { __decorate } from "tslib";
13
- import { html, nothing, SpectrumElement, } from '@spectrum-web-components/base';
14
- import { classMap, ifDefined, } from '@spectrum-web-components/base/src/directives.js';
15
- import { property, query, } from '@spectrum-web-components/base/src/decorators.js';
16
- import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';
17
- import styles from './split-view.css.js';
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result)
9
+ __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ nothing,
15
+ SpectrumElement
16
+ } from "@spectrum-web-components/base";
17
+ import {
18
+ classMap,
19
+ ifDefined
20
+ } from "@spectrum-web-components/base/src/directives.js";
21
+ import {
22
+ property,
23
+ query
24
+ } from "@spectrum-web-components/base/src/decorators.js";
25
+ import { streamingListener } from "@spectrum-web-components/base/src/streaming-listener.js";
26
+ import styles from "./split-view.css.js";
18
27
  const DEFAULT_MAX_SIZE = 3840;
19
28
  const SPLITTERSIZE = 2;
20
29
  const ARROW_KEY_CHANGE_VALUE = 10;
21
30
  const PAGEUPDOWN_KEY_CHANGE_VALUE = 50;
22
31
  const COLLAPSE_THREASHOLD = 50;
23
- /**
24
- * @element sp-split-view
25
- *
26
- * @slot Two sibling elements to be sized by the element attritubes
27
- */
28
32
  export class SplitView extends SpectrumElement {
29
- constructor() {
30
- super();
31
- this.vertical = false;
32
- this.resizable = false;
33
- this.collapsible = false;
34
- /** The minimum size of the primary pane */
35
- this.primaryMin = 0;
36
- /** The maximum size of the primary pane */
37
- this.primaryMax = DEFAULT_MAX_SIZE;
38
- /** The minimum size of the secondary pane */
39
- this.secondaryMin = 0;
40
- /** The maximum size of the secondary pane */
41
- this.secondaryMax = DEFAULT_MAX_SIZE;
42
- /** The current size of first pane of split-view */
43
- this.firstPaneSize = 'auto';
44
- this.enoughChildren = false;
45
- this.viewSize = 0;
46
- this.offset = 0;
47
- this.minPos = 0;
48
- this.maxPos = DEFAULT_MAX_SIZE;
49
- const RO = window.ResizeObserver;
50
- if (RO) {
51
- this.observer = new RO(() => {
52
- this.rect = undefined;
53
- this.updateMinMax();
54
- });
55
- }
56
- }
57
- static get styles() {
58
- return [styles];
59
- }
60
- connectedCallback() {
61
- var _a;
62
- super.connectedCallback();
63
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.observe(this);
33
+ constructor() {
34
+ super();
35
+ this.vertical = false;
36
+ this.resizable = false;
37
+ this.collapsible = false;
38
+ this.primaryMin = 0;
39
+ this.primaryMax = DEFAULT_MAX_SIZE;
40
+ this.secondaryMin = 0;
41
+ this.secondaryMax = DEFAULT_MAX_SIZE;
42
+ this.firstPaneSize = "auto";
43
+ this.enoughChildren = false;
44
+ this.viewSize = 0;
45
+ this.offset = 0;
46
+ this.minPos = 0;
47
+ this.maxPos = DEFAULT_MAX_SIZE;
48
+ const RO = window.ResizeObserver;
49
+ if (RO) {
50
+ this.observer = new RO(() => {
51
+ this.rect = void 0;
52
+ this.updateMinMax();
53
+ });
64
54
  }
65
- disconnectedCallback() {
66
- var _a;
67
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.unobserve(this);
68
- super.disconnectedCallback();
55
+ }
56
+ static get styles() {
57
+ return [styles];
58
+ }
59
+ connectedCallback() {
60
+ var _a;
61
+ super.connectedCallback();
62
+ (_a = this.observer) == null ? void 0 : _a.observe(this);
63
+ }
64
+ disconnectedCallback() {
65
+ var _a;
66
+ (_a = this.observer) == null ? void 0 : _a.unobserve(this);
67
+ super.disconnectedCallback();
68
+ }
69
+ get splitterSize() {
70
+ if (!this._splitterSize) {
71
+ this._splitterSize = this.splitter && Math.round(parseFloat(window.getComputedStyle(this.splitter).getPropertyValue(this.vertical ? "height" : "width"))) || SPLITTERSIZE;
69
72
  }
70
- /**
71
- * @private
72
- **/
73
- get splitterSize() {
74
- if (!this._splitterSize) {
75
- this._splitterSize =
76
- (this.splitter &&
77
- Math.round(parseFloat(window
78
- .getComputedStyle(this.splitter)
79
- .getPropertyValue(this.vertical ? 'height' : 'width')))) ||
80
- SPLITTERSIZE;
81
- }
82
- return this._splitterSize;
83
- }
84
- render() {
85
- const splitterClasses = {
86
- 'is-resized-start': this.splitterPos === this.minPos,
87
- 'is-resized-end': (this.splitterPos &&
88
- this.splitterPos > this.splitterSize &&
89
- this.splitterPos === this.maxPos),
90
- 'is-collapsed-start': this.splitterPos === 0,
91
- 'is-collapsed-end': (this.splitterPos &&
92
- this.splitterPos >=
93
- Math.max(this.splitterSize, this.viewSize - this.splitterSize)),
94
- };
95
- return html `
73
+ return this._splitterSize;
74
+ }
75
+ render() {
76
+ const splitterClasses = {
77
+ "is-resized-start": this.splitterPos === this.minPos,
78
+ "is-resized-end": this.splitterPos && this.splitterPos > this.splitterSize && this.splitterPos === this.maxPos,
79
+ "is-collapsed-start": this.splitterPos === 0,
80
+ "is-collapsed-end": this.splitterPos && this.splitterPos >= Math.max(this.splitterSize, this.viewSize - this.splitterSize)
81
+ };
82
+ return html`
96
83
  <slot
97
84
  @slotchange=${this.onContentSlotChange}
98
- style="--spectrum-split-view-first-pane-size: ${this
99
- .firstPaneSize}"
85
+ style="--spectrum-split-view-first-pane-size: ${this.firstPaneSize}"
100
86
  ></slot>
101
- ${this.enoughChildren
102
- ? html `
87
+ ${this.enoughChildren ? html`
103
88
  <div
104
89
  id="splitter"
105
90
  class=${classMap(splitterClasses)}
106
91
  role="separator"
107
- aria-label=${ifDefined(this.label || undefined)}
108
- tabindex=${ifDefined(this.resizable ? '0' : undefined)}
92
+ aria-label=${ifDefined(this.label || void 0)}
93
+ tabindex=${ifDefined(this.resizable ? "0" : void 0)}
109
94
  @keydown=${this.onKeydown}
110
95
  ${streamingListener({
111
- start: ['pointerdown', this.onPointerdown],
112
- streamInside: ['pointermove', this.onPointermove],
113
- end: [
114
- [
115
- 'pointerup',
116
- 'pointercancel',
117
- 'pointerleave',
118
- ],
119
- this.onPointerup,
120
- ],
121
- })}
96
+ start: ["pointerdown", this.onPointerdown],
97
+ streamInside: ["pointermove", this.onPointermove],
98
+ end: [
99
+ [
100
+ "pointerup",
101
+ "pointercancel",
102
+ "pointerleave"
103
+ ],
104
+ this.onPointerup
105
+ ]
106
+ })}
122
107
  >
123
- ${this.resizable
124
- ? html `
108
+ ${this.resizable ? html`
125
109
  <div id="gripper"></div>
126
- `
127
- : html ``}
110
+ ` : html``}
128
111
  </div>
129
- `
130
- : nothing}
112
+ ` : nothing}
131
113
  `;
114
+ }
115
+ onContentSlotChange() {
116
+ this.enoughChildren = this.children.length > 1;
117
+ this.checkResize();
118
+ }
119
+ onPointerdown(event) {
120
+ if (!this.resizable || event.button && event.button !== 0) {
121
+ event.preventDefault();
122
+ return;
132
123
  }
133
- onContentSlotChange() {
134
- this.enoughChildren = this.children.length > 1;
135
- this.checkResize();
124
+ this.splitter.setPointerCapture(event.pointerId);
125
+ this.offset = this.getOffset();
126
+ }
127
+ onPointermove(event) {
128
+ event.preventDefault();
129
+ let pos = this.vertical || this.isLTR ? this.getPosition(event) - this.offset : this.offset - this.getPosition(event);
130
+ if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {
131
+ pos = 0;
136
132
  }
137
- onPointerdown(event) {
138
- if (!this.resizable || (event.button && event.button !== 0)) {
139
- event.preventDefault();
140
- return;
141
- }
142
- this.splitter.setPointerCapture(event.pointerId);
143
- this.offset = this.getOffset();
133
+ if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {
134
+ pos = this.viewSize - this.splitterSize;
144
135
  }
145
- onPointermove(event) {
146
- event.preventDefault();
147
- let pos = this.vertical || this.isLTR
148
- ? this.getPosition(event) - this.offset
149
- : this.offset - this.getPosition(event);
150
- if (this.collapsible && pos < this.minPos - COLLAPSE_THREASHOLD) {
151
- pos = 0;
152
- }
153
- if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {
154
- pos = this.viewSize - this.splitterSize;
155
- }
156
- this.updatePosition(pos);
157
- }
158
- onPointerup(event) {
159
- this.splitter.releasePointerCapture(event.pointerId);
136
+ this.updatePosition(pos);
137
+ }
138
+ onPointerup(event) {
139
+ this.splitter.releasePointerCapture(event.pointerId);
140
+ }
141
+ getOffset() {
142
+ if (!this.rect) {
143
+ this.rect = this.getBoundingClientRect();
160
144
  }
161
- getOffset() {
162
- if (!this.rect) {
163
- this.rect = this.getBoundingClientRect();
164
- }
165
- const offsetX = this.isLTR ? this.rect.left : this.rect.right;
166
- return this.vertical ? this.rect.top : offsetX;
145
+ const offsetX = this.isLTR ? this.rect.left : this.rect.right;
146
+ return this.vertical ? this.rect.top : offsetX;
147
+ }
148
+ getPosition(event) {
149
+ return this.vertical ? event.clientY : event.clientX;
150
+ }
151
+ movePosition(event, offset) {
152
+ event.preventDefault();
153
+ if (this.splitterPos !== void 0) {
154
+ this.updatePosition(this.splitterPos + offset);
167
155
  }
168
- getPosition(event) {
169
- return this.vertical ? event.clientY : event.clientX;
156
+ }
157
+ onKeydown(event) {
158
+ if (!this.resizable) {
159
+ return;
170
160
  }
171
- movePosition(event, offset) {
161
+ let direction = 0;
162
+ const isLTRorVertical = this.isLTR || this.vertical;
163
+ switch (event.key) {
164
+ case "Home":
172
165
  event.preventDefault();
173
- if (this.splitterPos !== undefined) {
174
- this.updatePosition(this.splitterPos + offset);
175
- }
166
+ this.updatePosition(this.collapsible ? 0 : this.minPos);
167
+ return;
168
+ case "End":
169
+ event.preventDefault();
170
+ this.updatePosition(this.collapsible ? this.viewSize - this.splitterSize : this.maxPos);
171
+ return;
172
+ case "ArrowLeft":
173
+ direction = isLTRorVertical ? -1 : 1;
174
+ break;
175
+ case "ArrowRight":
176
+ direction = isLTRorVertical ? 1 : -1;
177
+ break;
178
+ case "ArrowUp":
179
+ direction = this.vertical ? -1 : 1;
180
+ break;
181
+ case "ArrowDown":
182
+ direction = this.vertical ? 1 : -1;
183
+ break;
184
+ case "PageUp":
185
+ direction = this.vertical ? -1 : 1;
186
+ break;
187
+ case "PageDown":
188
+ direction = this.vertical ? 1 : -1;
189
+ break;
176
190
  }
177
- onKeydown(event) {
178
- if (!this.resizable) {
179
- return;
180
- }
181
- let direction = 0;
182
- const isLTRorVertical = this.isLTR || this.vertical;
183
- switch (event.key) {
184
- case 'Home':
185
- event.preventDefault();
186
- this.updatePosition(this.collapsible ? 0 : this.minPos);
187
- return;
188
- case 'End':
189
- event.preventDefault();
190
- this.updatePosition(this.collapsible
191
- ? this.viewSize - this.splitterSize
192
- : this.maxPos);
193
- return;
194
- case 'ArrowLeft':
195
- direction = isLTRorVertical ? -1 : 1;
196
- break;
197
- case 'ArrowRight':
198
- direction = isLTRorVertical ? 1 : -1;
199
- break;
200
- case 'ArrowUp':
201
- direction = this.vertical ? -1 : 1;
202
- break;
203
- case 'ArrowDown':
204
- direction = this.vertical ? 1 : -1;
205
- break;
206
- case 'PageUp':
207
- direction = this.vertical ? -1 : 1;
208
- break;
209
- case 'PageDown':
210
- direction = this.vertical ? 1 : -1;
211
- break;
212
- }
213
- if (direction !== 0) {
214
- const moveBy = event.key.startsWith('Page')
215
- ? PAGEUPDOWN_KEY_CHANGE_VALUE
216
- : ARROW_KEY_CHANGE_VALUE;
217
- this.movePosition(event, moveBy * direction);
218
- }
191
+ if (direction !== 0) {
192
+ const moveBy = event.key.startsWith("Page") ? PAGEUPDOWN_KEY_CHANGE_VALUE : ARROW_KEY_CHANGE_VALUE;
193
+ this.movePosition(event, moveBy * direction);
219
194
  }
220
- async checkResize() {
221
- if (!this.enoughChildren) {
222
- return;
223
- }
224
- this.updateMinMax();
225
- if (this.splitterPos === undefined) {
226
- const startPos = await this.calcStartPos();
227
- this.updatePosition(startPos);
228
- }
195
+ }
196
+ async checkResize() {
197
+ if (!this.enoughChildren) {
198
+ return;
229
199
  }
230
- updateMinMax() {
231
- this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;
232
- this.minPos = Math.max(this.primaryMin, this.viewSize - this.secondaryMax);
233
- this.maxPos = Math.min(this.primaryMax, this.viewSize - Math.max(this.secondaryMin, this.splitterSize));
200
+ this.updateMinMax();
201
+ if (this.splitterPos === void 0) {
202
+ const startPos = await this.calcStartPos();
203
+ this.updatePosition(startPos);
234
204
  }
235
- updatePosition(x) {
236
- let pos = this.getLimitedPosition(x);
237
- if (this.collapsible && x <= 0) {
238
- pos = 0;
239
- }
240
- if (this.collapsible &&
241
- x > this.maxPos &&
242
- x >= this.viewSize - this.splitterSize) {
243
- pos = this.viewSize - this.splitterSize;
244
- }
245
- if (pos !== this.splitterPos) {
246
- this.splitterPos = pos;
247
- this.dispatchChangeEvent();
248
- }
205
+ }
206
+ updateMinMax() {
207
+ this.viewSize = this.vertical ? this.offsetHeight : this.offsetWidth;
208
+ this.minPos = Math.max(this.primaryMin, this.viewSize - this.secondaryMax);
209
+ this.maxPos = Math.min(this.primaryMax, this.viewSize - Math.max(this.secondaryMin, this.splitterSize));
210
+ }
211
+ updatePosition(x) {
212
+ let pos = this.getLimitedPosition(x);
213
+ if (this.collapsible && x <= 0) {
214
+ pos = 0;
249
215
  }
250
- getLimitedPosition(input) {
251
- if (input <= this.minPos) {
252
- return this.minPos;
253
- }
254
- if (input >= this.maxPos) {
255
- return this.maxPos;
256
- }
257
- return Math.max(this.minPos, Math.min(this.maxPos, input));
216
+ if (this.collapsible && x > this.maxPos && x >= this.viewSize - this.splitterSize) {
217
+ pos = this.viewSize - this.splitterSize;
258
218
  }
259
- async calcStartPos() {
260
- if (this.primarySize !== undefined &&
261
- /^\d+(px)?$/.test(this.primarySize)) {
262
- return parseInt(this.primarySize, 10);
263
- }
264
- if (this.primarySize !== undefined && /^\d+%$/.test(this.primarySize)) {
265
- return (parseInt(this.primarySize, 10) * this.viewSize) / 100;
266
- }
267
- if (this.primarySize === 'auto') {
268
- this.firstPaneSize = 'auto';
269
- const nodes = this.paneSlot.assignedNodes({ flatten: true });
270
- const firstEl = nodes.find((node) => node instanceof HTMLElement);
271
- if (typeof firstEl.updateComplete !== 'undefined') {
272
- await firstEl.updateComplete;
273
- }
274
- if (firstEl) {
275
- const size = window
276
- .getComputedStyle(firstEl)
277
- .getPropertyValue(this.vertical ? 'height' : 'width');
278
- const size_i = parseFloat(size);
279
- if (!isNaN(size_i)) {
280
- return this.getLimitedPosition(Math.ceil(size_i));
281
- }
282
- }
283
- }
284
- return this.viewSize / 2;
219
+ if (pos !== this.splitterPos) {
220
+ this.splitterPos = pos;
221
+ this.dispatchChangeEvent();
285
222
  }
286
- dispatchChangeEvent() {
287
- const changeEvent = new Event('change', {
288
- bubbles: true,
289
- composed: true,
290
- });
291
- this.dispatchEvent(changeEvent);
223
+ }
224
+ getLimitedPosition(input) {
225
+ if (input <= this.minPos) {
226
+ return this.minPos;
292
227
  }
293
- firstUpdated(changed) {
294
- super.firstUpdated(changed);
295
- this.checkResize();
228
+ if (input >= this.maxPos) {
229
+ return this.maxPos;
296
230
  }
297
- updated(changed) {
298
- super.updated(changed);
299
- if (changed.has('primarySize')) {
300
- this.splitterPos = undefined;
301
- this.checkResize();
302
- }
303
- if (changed.has('splitterPos') &&
304
- this.splitterPos !== undefined &&
305
- this.enoughChildren) {
306
- this.firstPaneSize = `${Math.round(this.splitterPos)}px`;
231
+ return Math.max(this.minPos, Math.min(this.maxPos, input));
232
+ }
233
+ async calcStartPos() {
234
+ if (this.primarySize !== void 0 && /^\d+(px)?$/.test(this.primarySize)) {
235
+ return parseInt(this.primarySize, 10);
236
+ }
237
+ if (this.primarySize !== void 0 && /^\d+%$/.test(this.primarySize)) {
238
+ return parseInt(this.primarySize, 10) * this.viewSize / 100;
239
+ }
240
+ if (this.primarySize === "auto") {
241
+ this.firstPaneSize = "auto";
242
+ const nodes = this.paneSlot.assignedNodes({ flatten: true });
243
+ const firstEl = nodes.find((node) => node instanceof HTMLElement);
244
+ if (typeof firstEl.updateComplete !== "undefined") {
245
+ await firstEl.updateComplete;
246
+ }
247
+ if (firstEl) {
248
+ const size = window.getComputedStyle(firstEl).getPropertyValue(this.vertical ? "height" : "width");
249
+ const size_i = parseFloat(size);
250
+ if (!isNaN(size_i)) {
251
+ return this.getLimitedPosition(Math.ceil(size_i));
307
252
  }
253
+ }
254
+ }
255
+ return this.viewSize / 2;
256
+ }
257
+ dispatchChangeEvent() {
258
+ const changeEvent = new Event("change", {
259
+ bubbles: true,
260
+ composed: true
261
+ });
262
+ this.dispatchEvent(changeEvent);
263
+ }
264
+ willUpdate(changed) {
265
+ if (!this.hasUpdated || changed.has("primarySize")) {
266
+ this.splitterPos = void 0;
267
+ this.checkResize();
268
+ }
269
+ if (changed.has("splitterPos") && this.splitterPos !== void 0 && this.enoughChildren) {
270
+ this.firstPaneSize = `${Math.round(this.splitterPos)}px`;
308
271
  }
272
+ }
309
273
  }
310
- __decorate([
311
- property({ type: Boolean, reflect: true })
312
- ], SplitView.prototype, "vertical", void 0);
313
- __decorate([
314
- property({ type: Boolean, reflect: true })
315
- ], SplitView.prototype, "resizable", void 0);
316
- __decorate([
317
- property({ type: Boolean, reflect: true })
318
- ], SplitView.prototype, "collapsible", void 0);
319
- __decorate([
320
- property({ type: Number, attribute: 'primary-min' })
321
- ], SplitView.prototype, "primaryMin", void 0);
322
- __decorate([
323
- property({ type: Number, attribute: 'primary-max' })
324
- ], SplitView.prototype, "primaryMax", void 0);
325
- __decorate([
326
- property({ type: String, attribute: 'primary-size' })
327
- ], SplitView.prototype, "primarySize", void 0);
328
- __decorate([
329
- property({ type: Number, attribute: 'secondary-min' })
330
- ], SplitView.prototype, "secondaryMin", void 0);
331
- __decorate([
332
- property({ type: Number, attribute: 'secondary-max' })
333
- ], SplitView.prototype, "secondaryMax", void 0);
334
- __decorate([
335
- property({ type: Number, reflect: true, attribute: 'splitter-pos' })
336
- ], SplitView.prototype, "splitterPos", void 0);
337
- __decorate([
338
- property({ type: String, attribute: false })
339
- ], SplitView.prototype, "firstPaneSize", void 0);
340
- __decorate([
341
- property()
342
- ], SplitView.prototype, "label", void 0);
343
- __decorate([
344
- property({ type: Boolean, attribute: false })
345
- ], SplitView.prototype, "enoughChildren", void 0);
346
- __decorate([
347
- property({ type: Number })
348
- ], SplitView.prototype, "viewSize", void 0);
349
- __decorate([
350
- query('slot')
351
- ], SplitView.prototype, "paneSlot", void 0);
352
- __decorate([
353
- query('#splitter')
354
- ], SplitView.prototype, "splitter", void 0);
355
- //# sourceMappingURL=SplitView.js.map
274
+ __decorateClass([
275
+ property({ type: Boolean, reflect: true })
276
+ ], SplitView.prototype, "vertical", 2);
277
+ __decorateClass([
278
+ property({ type: Boolean, reflect: true })
279
+ ], SplitView.prototype, "resizable", 2);
280
+ __decorateClass([
281
+ property({ type: Boolean, reflect: true })
282
+ ], SplitView.prototype, "collapsible", 2);
283
+ __decorateClass([
284
+ property({ type: Number, attribute: "primary-min" })
285
+ ], SplitView.prototype, "primaryMin", 2);
286
+ __decorateClass([
287
+ property({ type: Number, attribute: "primary-max" })
288
+ ], SplitView.prototype, "primaryMax", 2);
289
+ __decorateClass([
290
+ property({ type: String, attribute: "primary-size" })
291
+ ], SplitView.prototype, "primarySize", 2);
292
+ __decorateClass([
293
+ property({ type: Number, attribute: "secondary-min" })
294
+ ], SplitView.prototype, "secondaryMin", 2);
295
+ __decorateClass([
296
+ property({ type: Number, attribute: "secondary-max" })
297
+ ], SplitView.prototype, "secondaryMax", 2);
298
+ __decorateClass([
299
+ property({ type: Number, reflect: true, attribute: "splitter-pos" })
300
+ ], SplitView.prototype, "splitterPos", 2);
301
+ __decorateClass([
302
+ property({ type: String, attribute: false })
303
+ ], SplitView.prototype, "firstPaneSize", 2);
304
+ __decorateClass([
305
+ property()
306
+ ], SplitView.prototype, "label", 2);
307
+ __decorateClass([
308
+ property({ type: Boolean, attribute: false })
309
+ ], SplitView.prototype, "enoughChildren", 2);
310
+ __decorateClass([
311
+ property({ type: Number })
312
+ ], SplitView.prototype, "viewSize", 2);
313
+ __decorateClass([
314
+ query("slot")
315
+ ], SplitView.prototype, "paneSlot", 2);
316
+ __decorateClass([
317
+ query("#splitter")
318
+ ], SplitView.prototype, "splitter", 2);
319
+ //# sourceMappingURL=SplitView.js.map