@spectrum-web-components/split-view 0.4.10 → 0.4.11
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/custom-elements.json +3 -3
- package/package.json +24 -7
- package/sp-split-view.dev.js +3 -0
- package/sp-split-view.dev.js.map +7 -0
- package/sp-split-view.js +3 -14
- package/sp-split-view.js.map +7 -1
- package/src/SplitView.dev.js +319 -0
- package/src/SplitView.dev.js.map +7 -0
- package/src/SplitView.js +279 -310
- package/src/SplitView.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/spectrum-split-view.css.dev.js +99 -0
- package/src/spectrum-split-view.css.dev.js.map +7 -0
- package/src/spectrum-split-view.css.js +3 -14
- package/src/spectrum-split-view.css.js.map +7 -1
- package/src/split-view.css.dev.js +111 -0
- package/src/split-view.css.dev.js.map +7 -0
- package/src/split-view.css.js +3 -14
- package/src/split-view.css.js.map +7 -1
- package/src/types.dev.js +1 -0
- package/src/types.dev.js.map +7 -0
- package/src/types.js +1 -13
- package/src/types.js.map +7 -1
- package/stories/split-view.stories.js +36 -47
- package/stories/split-view.stories.js.map +7 -1
- package/test/benchmark/basic-test.js +5 -16
- package/test/benchmark/basic-test.js.map +7 -1
- package/test/split-view.test-vrt.js +4 -15
- package/test/split-view.test-vrt.js.map +7 -1
- package/test/split-view.test.js +540 -542
- package/test/split-view.test.js.map +7 -1
package/src/SplitView.js
CHANGED
@@ -1,350 +1,319 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
import {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
import
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
this.
|
48
|
-
this.
|
49
|
-
|
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);
|
64
|
-
}
|
65
|
-
disconnectedCallback() {
|
66
|
-
var _a;
|
67
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.unobserve(this);
|
68
|
-
super.disconnectedCallback();
|
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
|
+
});
|
69
54
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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;
|
83
72
|
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
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 ||
|
108
|
-
tabindex=${ifDefined(this.resizable ?
|
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
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
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
|
-
|
134
|
-
|
135
|
-
|
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
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
133
|
+
if (this.collapsible && pos > this.maxPos + COLLAPSE_THREASHOLD) {
|
134
|
+
pos = this.viewSize - this.splitterSize;
|
135
|
+
}
|
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();
|
144
144
|
}
|
145
|
-
|
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);
|
155
|
+
}
|
156
|
+
}
|
157
|
+
onKeydown(event) {
|
158
|
+
if (!this.resizable) {
|
159
|
+
return;
|
160
|
+
}
|
161
|
+
let direction = 0;
|
162
|
+
const isLTRorVertical = this.isLTR || this.vertical;
|
163
|
+
switch (event.key) {
|
164
|
+
case "Home":
|
146
165
|
event.preventDefault();
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
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;
|
157
190
|
}
|
158
|
-
|
159
|
-
|
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);
|
160
194
|
}
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
const offsetX = this.isLTR ? this.rect.left : this.rect.right;
|
166
|
-
return this.vertical ? this.rect.top : offsetX;
|
195
|
+
}
|
196
|
+
async checkResize() {
|
197
|
+
if (!this.enoughChildren) {
|
198
|
+
return;
|
167
199
|
}
|
168
|
-
|
169
|
-
|
200
|
+
this.updateMinMax();
|
201
|
+
if (this.splitterPos === void 0) {
|
202
|
+
const startPos = await this.calcStartPos();
|
203
|
+
this.updatePosition(startPos);
|
170
204
|
}
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
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;
|
176
215
|
}
|
177
|
-
|
178
|
-
|
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
|
-
}
|
216
|
+
if (this.collapsible && x > this.maxPos && x >= this.viewSize - this.splitterSize) {
|
217
|
+
pos = this.viewSize - this.splitterSize;
|
219
218
|
}
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
}
|
224
|
-
this.updateMinMax();
|
225
|
-
if (this.splitterPos === undefined) {
|
226
|
-
const startPos = await this.calcStartPos();
|
227
|
-
this.updatePosition(startPos);
|
228
|
-
}
|
219
|
+
if (pos !== this.splitterPos) {
|
220
|
+
this.splitterPos = pos;
|
221
|
+
this.dispatchChangeEvent();
|
229
222
|
}
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
223
|
+
}
|
224
|
+
getLimitedPosition(input) {
|
225
|
+
if (input <= this.minPos) {
|
226
|
+
return this.minPos;
|
234
227
|
}
|
235
|
-
|
236
|
-
|
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
|
-
}
|
228
|
+
if (input >= this.maxPos) {
|
229
|
+
return this.maxPos;
|
249
230
|
}
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
return this.maxPos;
|
256
|
-
}
|
257
|
-
return Math.max(this.minPos, Math.min(this.maxPos, input));
|
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);
|
258
236
|
}
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
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
|
-
}
|
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));
|
283
252
|
}
|
284
|
-
|
253
|
+
}
|
285
254
|
}
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
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();
|
292
268
|
}
|
293
|
-
|
294
|
-
|
295
|
-
this.splitterPos = undefined;
|
296
|
-
this.checkResize();
|
297
|
-
}
|
298
|
-
if (changed.has('splitterPos') &&
|
299
|
-
this.splitterPos !== undefined &&
|
300
|
-
this.enoughChildren) {
|
301
|
-
this.firstPaneSize = `${Math.round(this.splitterPos)}px`;
|
302
|
-
}
|
269
|
+
if (changed.has("splitterPos") && this.splitterPos !== void 0 && this.enoughChildren) {
|
270
|
+
this.firstPaneSize = `${Math.round(this.splitterPos)}px`;
|
303
271
|
}
|
272
|
+
}
|
304
273
|
}
|
305
|
-
|
306
|
-
|
307
|
-
], SplitView.prototype, "vertical",
|
308
|
-
|
309
|
-
|
310
|
-
], SplitView.prototype, "resizable",
|
311
|
-
|
312
|
-
|
313
|
-
], SplitView.prototype, "collapsible",
|
314
|
-
|
315
|
-
|
316
|
-
], SplitView.prototype, "primaryMin",
|
317
|
-
|
318
|
-
|
319
|
-
], SplitView.prototype, "primaryMax",
|
320
|
-
|
321
|
-
|
322
|
-
], SplitView.prototype, "primarySize",
|
323
|
-
|
324
|
-
|
325
|
-
], SplitView.prototype, "secondaryMin",
|
326
|
-
|
327
|
-
|
328
|
-
], SplitView.prototype, "secondaryMax",
|
329
|
-
|
330
|
-
|
331
|
-
], SplitView.prototype, "splitterPos",
|
332
|
-
|
333
|
-
|
334
|
-
], SplitView.prototype, "firstPaneSize",
|
335
|
-
|
336
|
-
|
337
|
-
], SplitView.prototype, "label",
|
338
|
-
|
339
|
-
|
340
|
-
], SplitView.prototype, "enoughChildren",
|
341
|
-
|
342
|
-
|
343
|
-
], SplitView.prototype, "viewSize",
|
344
|
-
|
345
|
-
|
346
|
-
], SplitView.prototype, "paneSlot",
|
347
|
-
|
348
|
-
|
349
|
-
], SplitView.prototype, "splitter",
|
350
|
-
//# 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
|