@spectrum-web-components/split-view 1.9.1-nightly.20251029132910 → 1.9.1-nightly.20251030184451

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.
@@ -0,0 +1,607 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-split-view.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-split-view",
13
+ "declaration": {
14
+ "name": "SplitView",
15
+ "module": "/src/SplitView.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/SplitView.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "class",
26
+ "description": "",
27
+ "name": "SplitView",
28
+ "slots": [
29
+ {
30
+ "description": "sibling elements to be sized by the element attritubes",
31
+ "name": "Two"
32
+ }
33
+ ],
34
+ "members": [
35
+ {
36
+ "kind": "field",
37
+ "name": "controlledEl",
38
+ "type": {
39
+ "text": "HTMLElement | undefined"
40
+ },
41
+ "privacy": "public"
42
+ },
43
+ {
44
+ "kind": "field",
45
+ "name": "vertical",
46
+ "type": {
47
+ "text": "boolean"
48
+ },
49
+ "privacy": "public",
50
+ "default": "false",
51
+ "attribute": "vertical",
52
+ "reflects": true
53
+ },
54
+ {
55
+ "kind": "field",
56
+ "name": "resizable",
57
+ "type": {
58
+ "text": "boolean"
59
+ },
60
+ "privacy": "public",
61
+ "default": "false",
62
+ "attribute": "resizable",
63
+ "reflects": true
64
+ },
65
+ {
66
+ "kind": "field",
67
+ "name": "collapsible",
68
+ "type": {
69
+ "text": "boolean"
70
+ },
71
+ "privacy": "public",
72
+ "default": "false",
73
+ "attribute": "collapsible",
74
+ "reflects": true
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "primaryMin",
79
+ "type": {
80
+ "text": "number"
81
+ },
82
+ "privacy": "public",
83
+ "default": "0",
84
+ "description": "The minimum size of the primary pane",
85
+ "attribute": "primary-min"
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "primaryMax",
90
+ "privacy": "public",
91
+ "default": "3840",
92
+ "description": "The maximum size of the primary pane",
93
+ "attribute": "primary-max",
94
+ "type": {
95
+ "text": "number"
96
+ }
97
+ },
98
+ {
99
+ "kind": "field",
100
+ "name": "primarySize",
101
+ "type": {
102
+ "text": "number | number"
103
+ },
104
+ "privacy": "public",
105
+ "description": "+ \"px\" | number + \"%\" | \"auto\"}",
106
+ "attribute": "primary-size"
107
+ },
108
+ {
109
+ "kind": "field",
110
+ "name": "secondaryMin",
111
+ "type": {
112
+ "text": "number"
113
+ },
114
+ "privacy": "public",
115
+ "default": "0",
116
+ "description": "The minimum size of the secondary pane",
117
+ "attribute": "secondary-min"
118
+ },
119
+ {
120
+ "kind": "field",
121
+ "name": "secondaryMax",
122
+ "privacy": "public",
123
+ "default": "3840",
124
+ "description": "The maximum size of the secondary pane",
125
+ "attribute": "secondary-max",
126
+ "type": {
127
+ "text": "number"
128
+ }
129
+ },
130
+ {
131
+ "kind": "field",
132
+ "name": "splitterPos",
133
+ "type": {
134
+ "text": "number | undefined"
135
+ },
136
+ "privacy": "public",
137
+ "description": "The current splitter position of split-view",
138
+ "attribute": "splitter-pos",
139
+ "reflects": true
140
+ },
141
+ {
142
+ "kind": "field",
143
+ "name": "firstPaneSize",
144
+ "type": {
145
+ "text": "string"
146
+ },
147
+ "privacy": "private",
148
+ "default": "'auto'",
149
+ "description": "The current size of first pane of split-view"
150
+ },
151
+ {
152
+ "kind": "field",
153
+ "name": "label",
154
+ "type": {
155
+ "text": "string | undefined"
156
+ },
157
+ "privacy": "public",
158
+ "description": "Sets the `aria-label` on the splitter component",
159
+ "attribute": "label"
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "enoughChildren",
164
+ "type": {
165
+ "text": "boolean"
166
+ },
167
+ "privacy": "private",
168
+ "default": "false"
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "viewSize",
173
+ "type": {
174
+ "text": "number"
175
+ },
176
+ "privacy": "private",
177
+ "default": "0",
178
+ "attribute": "viewSize"
179
+ },
180
+ {
181
+ "kind": "field",
182
+ "name": "paneSlot",
183
+ "type": {
184
+ "text": "HTMLSlotElement"
185
+ },
186
+ "privacy": "private"
187
+ },
188
+ {
189
+ "kind": "field",
190
+ "name": "splitter",
191
+ "type": {
192
+ "text": "HTMLDivElement"
193
+ },
194
+ "privacy": "private"
195
+ },
196
+ {
197
+ "kind": "field",
198
+ "name": "offset",
199
+ "type": {
200
+ "text": "number"
201
+ },
202
+ "privacy": "private",
203
+ "default": "0"
204
+ },
205
+ {
206
+ "kind": "field",
207
+ "name": "minPos",
208
+ "type": {
209
+ "text": "number"
210
+ },
211
+ "privacy": "private",
212
+ "default": "0"
213
+ },
214
+ {
215
+ "kind": "field",
216
+ "name": "maxPos",
217
+ "privacy": "private",
218
+ "default": "3840",
219
+ "type": {
220
+ "text": "number"
221
+ }
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "observer",
226
+ "type": {
227
+ "text": "WithSWCResizeObserver['ResizeObserver'] | undefined"
228
+ },
229
+ "privacy": "private"
230
+ },
231
+ {
232
+ "kind": "field",
233
+ "name": "rect",
234
+ "type": {
235
+ "text": "DOMRect | undefined"
236
+ },
237
+ "privacy": "private"
238
+ },
239
+ {
240
+ "kind": "field",
241
+ "name": "_splitterSize",
242
+ "type": {
243
+ "text": "number | undefined"
244
+ },
245
+ "privacy": "private"
246
+ },
247
+ {
248
+ "kind": "field",
249
+ "name": "splitterSize",
250
+ "type": {
251
+ "text": "number"
252
+ },
253
+ "privacy": "private",
254
+ "readonly": true
255
+ },
256
+ {
257
+ "kind": "field",
258
+ "name": "controlledElIDApplied",
259
+ "type": {
260
+ "text": "boolean"
261
+ },
262
+ "privacy": "private",
263
+ "default": "false"
264
+ },
265
+ {
266
+ "kind": "method",
267
+ "name": "onContentSlotChange",
268
+ "privacy": "private",
269
+ "return": {
270
+ "type": {
271
+ "text": "void"
272
+ }
273
+ },
274
+ "parameters": [
275
+ {
276
+ "name": "event",
277
+ "type": {
278
+ "text": "Event & { target: HTMLSlotElement }"
279
+ }
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "kind": "method",
285
+ "name": "onPointerdown",
286
+ "privacy": "private",
287
+ "return": {
288
+ "type": {
289
+ "text": "void"
290
+ }
291
+ },
292
+ "parameters": [
293
+ {
294
+ "name": "event",
295
+ "type": {
296
+ "text": "PointerEvent"
297
+ }
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "kind": "method",
303
+ "name": "onPointermove",
304
+ "privacy": "private",
305
+ "return": {
306
+ "type": {
307
+ "text": "void"
308
+ }
309
+ },
310
+ "parameters": [
311
+ {
312
+ "name": "event",
313
+ "type": {
314
+ "text": "PointerEvent"
315
+ }
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "kind": "method",
321
+ "name": "onPointerup",
322
+ "privacy": "private",
323
+ "return": {
324
+ "type": {
325
+ "text": "void"
326
+ }
327
+ },
328
+ "parameters": [
329
+ {
330
+ "name": "event",
331
+ "type": {
332
+ "text": "PointerEvent"
333
+ }
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "kind": "method",
339
+ "name": "getOffset",
340
+ "privacy": "private",
341
+ "return": {
342
+ "type": {
343
+ "text": "number"
344
+ }
345
+ }
346
+ },
347
+ {
348
+ "kind": "method",
349
+ "name": "getPosition",
350
+ "privacy": "private",
351
+ "return": {
352
+ "type": {
353
+ "text": "number"
354
+ }
355
+ },
356
+ "parameters": [
357
+ {
358
+ "name": "event",
359
+ "type": {
360
+ "text": "PointerEvent"
361
+ }
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "kind": "method",
367
+ "name": "movePosition",
368
+ "privacy": "private",
369
+ "return": {
370
+ "type": {
371
+ "text": "void"
372
+ }
373
+ },
374
+ "parameters": [
375
+ {
376
+ "name": "event",
377
+ "type": {
378
+ "text": "KeyboardEvent"
379
+ }
380
+ },
381
+ {
382
+ "name": "offset",
383
+ "type": {
384
+ "text": "number"
385
+ }
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "kind": "method",
391
+ "name": "onKeydown",
392
+ "privacy": "private",
393
+ "return": {
394
+ "type": {
395
+ "text": "void"
396
+ }
397
+ },
398
+ "parameters": [
399
+ {
400
+ "name": "event",
401
+ "type": {
402
+ "text": "KeyboardEvent"
403
+ }
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "kind": "method",
409
+ "name": "checkResize",
410
+ "privacy": "private",
411
+ "return": {
412
+ "type": {
413
+ "text": "Promise<void>"
414
+ }
415
+ }
416
+ },
417
+ {
418
+ "kind": "method",
419
+ "name": "updateMinMax",
420
+ "privacy": "private",
421
+ "return": {
422
+ "type": {
423
+ "text": "void"
424
+ }
425
+ }
426
+ },
427
+ {
428
+ "kind": "method",
429
+ "name": "updatePosition",
430
+ "privacy": "private",
431
+ "return": {
432
+ "type": {
433
+ "text": "void"
434
+ }
435
+ },
436
+ "parameters": [
437
+ {
438
+ "name": "x",
439
+ "type": {
440
+ "text": "number"
441
+ }
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "kind": "method",
447
+ "name": "getLimitedPosition",
448
+ "privacy": "private",
449
+ "return": {
450
+ "type": {
451
+ "text": "number"
452
+ }
453
+ },
454
+ "parameters": [
455
+ {
456
+ "name": "input",
457
+ "type": {
458
+ "text": "number"
459
+ }
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "kind": "method",
465
+ "name": "calcStartPos",
466
+ "privacy": "private",
467
+ "return": {
468
+ "type": {
469
+ "text": "Promise<number>"
470
+ }
471
+ }
472
+ },
473
+ {
474
+ "kind": "method",
475
+ "name": "dispatchChangeEvent",
476
+ "privacy": "private",
477
+ "return": {
478
+ "type": {
479
+ "text": "void"
480
+ }
481
+ }
482
+ }
483
+ ],
484
+ "events": [
485
+ {
486
+ "description": "Announces the new position of the splitter",
487
+ "name": "change"
488
+ }
489
+ ],
490
+ "attributes": [
491
+ {
492
+ "name": "primarySize",
493
+ "type": {
494
+ "text": "number | number"
495
+ },
496
+ "description": "+ \"px\" | number + \"%\" | \"auto\"}",
497
+ "fieldName": "primarySize"
498
+ },
499
+ {
500
+ "name": "vertical",
501
+ "type": {
502
+ "text": "boolean"
503
+ },
504
+ "default": "false",
505
+ "fieldName": "vertical"
506
+ },
507
+ {
508
+ "name": "resizable",
509
+ "type": {
510
+ "text": "boolean"
511
+ },
512
+ "default": "false",
513
+ "fieldName": "resizable"
514
+ },
515
+ {
516
+ "name": "collapsible",
517
+ "type": {
518
+ "text": "boolean"
519
+ },
520
+ "default": "false",
521
+ "fieldName": "collapsible"
522
+ },
523
+ {
524
+ "name": "primary-min",
525
+ "type": {
526
+ "text": "number"
527
+ },
528
+ "default": "0",
529
+ "description": "The minimum size of the primary pane",
530
+ "fieldName": "primaryMin"
531
+ },
532
+ {
533
+ "name": "primary-max",
534
+ "default": "DEFAULT_MAX_SIZE",
535
+ "description": "The maximum size of the primary pane",
536
+ "fieldName": "primaryMax"
537
+ },
538
+ {
539
+ "name": "primary-size",
540
+ "type": {
541
+ "text": "number | number"
542
+ },
543
+ "description": "+ \"px\" | number + \"%\" | \"auto\"}",
544
+ "attribute": "primarySize",
545
+ "fieldName": "primarySize"
546
+ },
547
+ {
548
+ "name": "secondary-min",
549
+ "type": {
550
+ "text": "number"
551
+ },
552
+ "default": "0",
553
+ "description": "The minimum size of the secondary pane",
554
+ "fieldName": "secondaryMin"
555
+ },
556
+ {
557
+ "name": "secondary-max",
558
+ "default": "DEFAULT_MAX_SIZE",
559
+ "description": "The maximum size of the secondary pane",
560
+ "fieldName": "secondaryMax"
561
+ },
562
+ {
563
+ "name": "splitter-pos",
564
+ "type": {
565
+ "text": "number | undefined"
566
+ },
567
+ "description": "The current splitter position of split-view",
568
+ "fieldName": "splitterPos"
569
+ },
570
+ {
571
+ "name": "label",
572
+ "type": {
573
+ "text": "string | undefined"
574
+ },
575
+ "description": "Sets the `aria-label` on the splitter component",
576
+ "fieldName": "label"
577
+ },
578
+ {
579
+ "name": "viewSize",
580
+ "type": {
581
+ "text": "number"
582
+ },
583
+ "default": "0",
584
+ "fieldName": "viewSize"
585
+ }
586
+ ],
587
+ "superclass": {
588
+ "name": "SpectrumElement",
589
+ "package": "@spectrum-web-components/base"
590
+ },
591
+ "tagName": "sp-split-view",
592
+ "customElement": true
593
+ }
594
+ ],
595
+ "exports": [
596
+ {
597
+ "kind": "js",
598
+ "name": "SplitView",
599
+ "declaration": {
600
+ "name": "SplitView",
601
+ "module": "src/SplitView.js"
602
+ }
603
+ }
604
+ ]
605
+ }
606
+ ]
607
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/split-view",
3
- "version": "1.9.1-nightly.20251029132910",
3
+ "version": "1.9.1-nightly.20251030184451",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -68,8 +68,8 @@
68
68
  "css"
69
69
  ],
70
70
  "dependencies": {
71
- "@spectrum-web-components/base": "1.9.1-nightly.20251029132910",
72
- "@spectrum-web-components/shared": "1.9.1-nightly.20251029132910"
71
+ "@spectrum-web-components/base": "1.9.0",
72
+ "@spectrum-web-components/shared": "1.9.0"
73
73
  },
74
74
  "types": "./src/index.d.ts",
75
75
  "customElements": "custom-elements.json",
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2025 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 { SplitView } from './src/SplitView.js';
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'sp-split-view': SplitView;
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { SplitView } from "./src/SplitView.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-split-view", SplitView);
5
+ //# sourceMappingURL=sp-split-view.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-split-view.ts"],
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { SplitView } from './src/SplitView.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-split-view', SplitView);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-split-view': SplitView;\n }\n}\n"],
5
+ "mappings": ";AAYA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAE9B,cAAc,iBAAiB,SAAS;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import{SplitView as e}from"./src/SplitView.js";import{defineElement as i}from"@spectrum-web-components/base/src/define-element.js";i("sp-split-view",e);
2
+ //# sourceMappingURL=sp-split-view.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-split-view.ts"],
4
+ "sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { SplitView } from './src/SplitView.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-split-view', SplitView);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-split-view': SplitView;\n }\n}\n"],
5
+ "mappings": "aAYA,OAAS,aAAAA,MAAiB,qBAC1B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,gBAAiBD,CAAS",
6
+ "names": ["SplitView", "defineElement"]
7
+ }