@websublime/line-components 0.2.0 → 0.2.2

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.
@@ -8,6 +8,1778 @@
8
8
  "declarations": [],
9
9
  "exports": []
10
10
  },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "src/button/button.ts",
14
+ "declarations": [
15
+ {
16
+ "kind": "class",
17
+ "description": "`<line-button>` runs an action when the user activates it. It renders a\nnative `<button>` in its shadow root, and the host is a form-associated\ncustom element, so `type=\"submit\"` and `type=\"reset\"` act on its form as a\nnative button does. `pressed` makes it a toggle; `loading` keeps it\nfocusable while it ignores presses.",
18
+ "name": "LineButton",
19
+ "cssProperties": [
20
+ {
21
+ "description": "Corner radius of `root`.",
22
+ "name": "--line-button-radius",
23
+ "default": "var(--line-radius-2)"
24
+ },
25
+ {
26
+ "description": "Background of `root`; `primary` uses `var(--line-accent-solid)` and `borderless` uses `transparent`.",
27
+ "name": "--line-button-bg",
28
+ "default": "var(--line-gray-bg)"
29
+ },
30
+ {
31
+ "description": "Text colour of `root`; `primary` uses `var(--line-accent-contrast)` and `borderless` uses `var(--line-accent-text)`.",
32
+ "name": "--line-button-color",
33
+ "default": "var(--line-gray-text)"
34
+ },
35
+ {
36
+ "description": "Minimum block size of `root`.",
37
+ "name": "--line-button-height",
38
+ "default": "var(--line-size-7)"
39
+ },
40
+ {
41
+ "description": "Inline padding of `root`.",
42
+ "name": "--line-button-padding-inline",
43
+ "default": "var(--line-size-3)"
44
+ },
45
+ {
46
+ "description": "Gap between the prefix, label, suffix and loading zones.",
47
+ "name": "--line-button-gap",
48
+ "default": "var(--line-size-2)"
49
+ },
50
+ {
51
+ "description": "Font size of `root`.",
52
+ "name": "--line-button-font-size",
53
+ "default": "var(--line-font-size-1)"
54
+ },
55
+ {
56
+ "description": "Font weight of `root`.",
57
+ "name": "--line-button-font-weight",
58
+ "default": "var(--line-font-weight-5)"
59
+ },
60
+ {
61
+ "description": "`outline` of `root` while the host has `data-focus-visible`.",
62
+ "name": "--line-button-focus-ring",
63
+ "default": "var(--line-focus-ring, 2px solid currentColor)"
64
+ }
65
+ ],
66
+ "cssParts": [
67
+ {
68
+ "description": "The inner native `<button>`: box, background, border and focus ring.",
69
+ "name": "root"
70
+ },
71
+ {
72
+ "description": "Wraps the default slot.",
73
+ "name": "label"
74
+ },
75
+ {
76
+ "description": "Wraps the `loading` slot; present only while `loading` is on.",
77
+ "name": "loading"
78
+ }
79
+ ],
80
+ "slots": [
81
+ {
82
+ "description": "The label: text or inline content.",
83
+ "name": ""
84
+ },
85
+ {
86
+ "description": "A leading icon.",
87
+ "name": "prefix"
88
+ },
89
+ {
90
+ "description": "A trailing icon.",
91
+ "name": "suffix"
92
+ },
93
+ {
94
+ "description": "A spinner, loading text or both; rendered only while `loading` is on.",
95
+ "name": "loading"
96
+ }
97
+ ],
98
+ "members": [
99
+ {
100
+ "kind": "field",
101
+ "name": "shadowRootOptions",
102
+ "type": {
103
+ "text": "ShadowRootInit"
104
+ },
105
+ "static": true,
106
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
107
+ },
108
+ {
109
+ "kind": "field",
110
+ "name": "variant",
111
+ "privacy": "public",
112
+ "type": {
113
+ "text": "ButtonVariant"
114
+ },
115
+ "description": "Semantic emphasis; an unknown value behaves as `default`.",
116
+ "default": "'default'",
117
+ "attribute": "variant",
118
+ "reflects": true
119
+ },
120
+ {
121
+ "kind": "field",
122
+ "name": "type",
123
+ "type": {
124
+ "text": "string"
125
+ },
126
+ "readonly": true,
127
+ "privacy": "public",
128
+ "description": "What activation does to the form owner; an unknown value behaves as `submit`.",
129
+ "default": "'submit'",
130
+ "attribute": "type",
131
+ "reflects": true,
132
+ "inheritedFrom": {
133
+ "name": "FormAssociated",
134
+ "module": "../line-core/src/form-associated.ts"
135
+ }
136
+ },
137
+ {
138
+ "kind": "field",
139
+ "name": "disabled",
140
+ "privacy": "public",
141
+ "type": {
142
+ "text": "boolean"
143
+ },
144
+ "description": "Removes the button from the tab order and blocks activation.",
145
+ "default": "false",
146
+ "attribute": "disabled",
147
+ "reflects": true
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "loading",
152
+ "privacy": "public",
153
+ "type": {
154
+ "text": "boolean"
155
+ },
156
+ "description": "Keeps focus, sets `aria-disabled=\"true\"`, blocks activation and renders the `loading` part.",
157
+ "default": "false",
158
+ "attribute": "loading",
159
+ "reflects": true
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "pressed",
164
+ "privacy": "public",
165
+ "type": {
166
+ "text": "boolean | undefined"
167
+ },
168
+ "description": "`undefined` means not a toggle; a toggle flips it on each activation and fires `line-change`.",
169
+ "attribute": "pressed",
170
+ "reflects": true
171
+ },
172
+ {
173
+ "kind": "field",
174
+ "name": "value",
175
+ "privacy": "public",
176
+ "type": {
177
+ "text": "string"
178
+ },
179
+ "description": "The submitter value; it enters the form data only when this button submits.",
180
+ "default": "''",
181
+ "attribute": "value",
182
+ "reflects": true
183
+ },
184
+ {
185
+ "kind": "field",
186
+ "name": "formAction",
187
+ "privacy": "public",
188
+ "type": {
189
+ "text": "string"
190
+ },
191
+ "description": "Overrides the form's `action` when this button submits.",
192
+ "default": "''",
193
+ "attribute": "formaction",
194
+ "reflects": true
195
+ },
196
+ {
197
+ "kind": "field",
198
+ "name": "formMethod",
199
+ "privacy": "public",
200
+ "type": {
201
+ "text": "ButtonFormMethod | undefined"
202
+ },
203
+ "description": "Overrides the form's `method` when this button submits.",
204
+ "attribute": "formmethod",
205
+ "reflects": true
206
+ },
207
+ {
208
+ "kind": "field",
209
+ "name": "formEnctype",
210
+ "privacy": "public",
211
+ "type": {
212
+ "text": "ButtonFormEnctype | undefined"
213
+ },
214
+ "description": "Overrides the form's `enctype` when this button submits.",
215
+ "attribute": "formenctype",
216
+ "reflects": true
217
+ },
218
+ {
219
+ "kind": "field",
220
+ "name": "formTarget",
221
+ "privacy": "public",
222
+ "type": {
223
+ "text": "string | undefined"
224
+ },
225
+ "description": "Overrides the form's `target` when this button submits.",
226
+ "attribute": "formtarget",
227
+ "reflects": true
228
+ },
229
+ {
230
+ "kind": "field",
231
+ "name": "formNoValidate",
232
+ "privacy": "public",
233
+ "type": {
234
+ "text": "boolean"
235
+ },
236
+ "description": "Skips constraint validation when this button submits.",
237
+ "default": "false",
238
+ "attribute": "formnovalidate",
239
+ "reflects": true
240
+ },
241
+ {
242
+ "kind": "field",
243
+ "name": "customValidity",
244
+ "privacy": "public",
245
+ "type": {
246
+ "text": "string"
247
+ },
248
+ "description": "External validity: a non-empty message marks the button invalid while `type` is `submit`.",
249
+ "default": "''",
250
+ "attribute": "custom-validity"
251
+ },
252
+ {
253
+ "kind": "field",
254
+ "name": "ariaLabel",
255
+ "privacy": "public",
256
+ "type": {
257
+ "text": "string | null"
258
+ },
259
+ "description": "Copied to the inner button, where it names the role.",
260
+ "attribute": "aria-label",
261
+ "reflects": true
262
+ },
263
+ {
264
+ "kind": "field",
265
+ "name": "ariaDescription",
266
+ "privacy": "public",
267
+ "type": {
268
+ "text": "string | null"
269
+ },
270
+ "description": "Copied to the inner button.",
271
+ "attribute": "aria-description",
272
+ "reflects": true
273
+ },
274
+ {
275
+ "kind": "field",
276
+ "name": "#formDisabled",
277
+ "privacy": "private",
278
+ "type": {
279
+ "text": "boolean"
280
+ },
281
+ "default": "false",
282
+ "description": "A disabled `fieldset` ancestor or the host's own `disabled`, from `formDisabledCallback`."
283
+ },
284
+ {
285
+ "kind": "field",
286
+ "name": "#onPressedChange",
287
+ "privacy": "private",
288
+ "readonly": true
289
+ },
290
+ {
291
+ "kind": "field",
292
+ "name": "#machineProps",
293
+ "privacy": "private",
294
+ "readonly": true
295
+ },
296
+ {
297
+ "kind": "field",
298
+ "name": "#ctrl",
299
+ "privacy": "private",
300
+ "readonly": true,
301
+ "default": "new LineMachineController<ButtonMachineSchema>(this, { machine: buttonMachine, props: this.#machineProps, })"
302
+ },
303
+ {
304
+ "kind": "method",
305
+ "name": "formDisabledCallback",
306
+ "return": {
307
+ "type": {
308
+ "text": "void"
309
+ }
310
+ },
311
+ "parameters": [
312
+ {
313
+ "name": "disabled",
314
+ "type": {
315
+ "text": "boolean"
316
+ }
317
+ }
318
+ ],
319
+ "inheritedFrom": {
320
+ "name": "FormAssociated",
321
+ "module": "../line-core/src/form-associated.ts"
322
+ }
323
+ },
324
+ {
325
+ "kind": "method",
326
+ "name": "#api",
327
+ "privacy": "private",
328
+ "return": {
329
+ "type": {
330
+ "text": "ButtonApi"
331
+ }
332
+ },
333
+ "description": "The machine view, or the static view from the host props when the machine failed to start."
334
+ },
335
+ {
336
+ "kind": "field",
337
+ "name": "#onClick",
338
+ "privacy": "private",
339
+ "readonly": true,
340
+ "description": "Stops a click while the button is not interactive. It listens in the\ncapture phase, so it runs before every bubble listener on the host,\nincluding an inline `onclick` or a listener added before the upgrade.\nOtherwise it activates in a later task, once the click dispatch has\nended, unless a listener called `preventDefault()`."
341
+ },
342
+ {
343
+ "kind": "method",
344
+ "name": "#activate",
345
+ "privacy": "private",
346
+ "return": {
347
+ "type": {
348
+ "text": "void"
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "kind": "method",
354
+ "name": "#submit",
355
+ "privacy": "private",
356
+ "return": {
357
+ "type": {
358
+ "text": "void"
359
+ }
360
+ },
361
+ "parameters": [
362
+ {
363
+ "name": "form",
364
+ "type": {
365
+ "text": "HTMLFormElement"
366
+ }
367
+ }
368
+ ],
369
+ "description": "Submits through a temporary native submitter, so the submission gets the native submitter semantics."
370
+ },
371
+ {
372
+ "kind": "field",
373
+ "name": "#onPointerDown",
374
+ "privacy": "private",
375
+ "readonly": true
376
+ },
377
+ {
378
+ "kind": "field",
379
+ "name": "#onKeyDown",
380
+ "privacy": "private",
381
+ "readonly": true
382
+ },
383
+ {
384
+ "kind": "field",
385
+ "name": "#onKeyUp",
386
+ "privacy": "private",
387
+ "readonly": true
388
+ },
389
+ {
390
+ "kind": "field",
391
+ "name": "#onFocus",
392
+ "privacy": "private",
393
+ "readonly": true
394
+ },
395
+ {
396
+ "kind": "field",
397
+ "name": "#onBlur",
398
+ "privacy": "private",
399
+ "readonly": true
400
+ },
401
+ {
402
+ "kind": "field",
403
+ "name": "formAssociated",
404
+ "static": true,
405
+ "default": "true",
406
+ "type": {
407
+ "text": "true"
408
+ },
409
+ "inheritedFrom": {
410
+ "name": "FormAssociated",
411
+ "module": "../line-core/src/form-associated.ts"
412
+ }
413
+ },
414
+ {
415
+ "kind": "method",
416
+ "name": "setFormValue",
417
+ "return": {
418
+ "type": {
419
+ "text": "void"
420
+ }
421
+ },
422
+ "parameters": [
423
+ {
424
+ "name": "value",
425
+ "type": {
426
+ "text": "FormValue"
427
+ }
428
+ },
429
+ {
430
+ "name": "state",
431
+ "optional": true,
432
+ "type": {
433
+ "text": "FormValue"
434
+ }
435
+ }
436
+ ],
437
+ "inheritedFrom": {
438
+ "name": "FormAssociated",
439
+ "module": "../line-core/src/form-associated.ts"
440
+ }
441
+ },
442
+ {
443
+ "kind": "method",
444
+ "name": "setValidity",
445
+ "return": {
446
+ "type": {
447
+ "text": "void"
448
+ }
449
+ },
450
+ "parameters": [
451
+ {
452
+ "name": "flags",
453
+ "type": {
454
+ "text": "ValidityStateFlags"
455
+ }
456
+ },
457
+ {
458
+ "name": "message",
459
+ "optional": true,
460
+ "type": {
461
+ "text": "string"
462
+ }
463
+ },
464
+ {
465
+ "name": "anchor",
466
+ "optional": true,
467
+ "type": {
468
+ "text": "HTMLElement"
469
+ }
470
+ }
471
+ ],
472
+ "inheritedFrom": {
473
+ "name": "FormAssociated",
474
+ "module": "../line-core/src/form-associated.ts"
475
+ }
476
+ },
477
+ {
478
+ "kind": "method",
479
+ "name": "reportValidity",
480
+ "return": {
481
+ "type": {
482
+ "text": "boolean"
483
+ }
484
+ },
485
+ "inheritedFrom": {
486
+ "name": "FormAssociated",
487
+ "module": "../line-core/src/form-associated.ts"
488
+ }
489
+ },
490
+ {
491
+ "kind": "method",
492
+ "name": "checkValidity",
493
+ "return": {
494
+ "type": {
495
+ "text": "boolean"
496
+ }
497
+ },
498
+ "inheritedFrom": {
499
+ "name": "FormAssociated",
500
+ "module": "../line-core/src/form-associated.ts"
501
+ }
502
+ },
503
+ {
504
+ "kind": "field",
505
+ "name": "form",
506
+ "type": {
507
+ "text": "HTMLFormElement | null"
508
+ },
509
+ "readonly": true,
510
+ "inheritedFrom": {
511
+ "name": "FormAssociated",
512
+ "module": "../line-core/src/form-associated.ts"
513
+ }
514
+ },
515
+ {
516
+ "kind": "field",
517
+ "name": "name",
518
+ "type": {
519
+ "text": "string | null"
520
+ },
521
+ "readonly": true,
522
+ "inheritedFrom": {
523
+ "name": "FormAssociated",
524
+ "module": "../line-core/src/form-associated.ts"
525
+ }
526
+ },
527
+ {
528
+ "kind": "field",
529
+ "name": "validity",
530
+ "type": {
531
+ "text": "ValidityState"
532
+ },
533
+ "readonly": true,
534
+ "inheritedFrom": {
535
+ "name": "FormAssociated",
536
+ "module": "../line-core/src/form-associated.ts"
537
+ }
538
+ },
539
+ {
540
+ "kind": "field",
541
+ "name": "validationMessage",
542
+ "type": {
543
+ "text": "string"
544
+ },
545
+ "readonly": true,
546
+ "inheritedFrom": {
547
+ "name": "FormAssociated",
548
+ "module": "../line-core/src/form-associated.ts"
549
+ }
550
+ },
551
+ {
552
+ "kind": "field",
553
+ "name": "willValidate",
554
+ "type": {
555
+ "text": "boolean"
556
+ },
557
+ "readonly": true,
558
+ "inheritedFrom": {
559
+ "name": "FormAssociated",
560
+ "module": "../line-core/src/form-associated.ts"
561
+ }
562
+ },
563
+ {
564
+ "kind": "method",
565
+ "name": "formAssociatedCallback",
566
+ "return": {
567
+ "type": {
568
+ "text": "void"
569
+ }
570
+ },
571
+ "parameters": [
572
+ {
573
+ "name": "form",
574
+ "type": {
575
+ "text": "HTMLFormElement | null"
576
+ }
577
+ }
578
+ ],
579
+ "inheritedFrom": {
580
+ "name": "FormAssociated",
581
+ "module": "../line-core/src/form-associated.ts"
582
+ }
583
+ },
584
+ {
585
+ "kind": "method",
586
+ "name": "formResetCallback",
587
+ "return": {
588
+ "type": {
589
+ "text": "void"
590
+ }
591
+ },
592
+ "inheritedFrom": {
593
+ "name": "FormAssociated",
594
+ "module": "../line-core/src/form-associated.ts"
595
+ }
596
+ },
597
+ {
598
+ "kind": "method",
599
+ "name": "formStateRestoreCallback",
600
+ "return": {
601
+ "type": {
602
+ "text": "void"
603
+ }
604
+ },
605
+ "parameters": [
606
+ {
607
+ "name": "state",
608
+ "type": {
609
+ "text": "FormValue"
610
+ }
611
+ },
612
+ {
613
+ "name": "reason",
614
+ "type": {
615
+ "text": "'autocomplete' | 'restore'"
616
+ }
617
+ }
618
+ ],
619
+ "inheritedFrom": {
620
+ "name": "FormAssociated",
621
+ "module": "../line-core/src/form-associated.ts"
622
+ }
623
+ },
624
+ {
625
+ "kind": "field",
626
+ "name": "properties",
627
+ "type": {
628
+ "text": "PropertyDeclarations"
629
+ },
630
+ "static": true,
631
+ "default": "{ direction: { attribute: false, noAccessor: true }, }",
632
+ "description": "`direction` is reactive but owns its accessor and has no attribute.",
633
+ "inheritedFrom": {
634
+ "name": "DirectionMixin",
635
+ "module": "../line-core/src/mixins/direction.ts"
636
+ }
637
+ },
638
+ {
639
+ "kind": "field",
640
+ "name": "#direction",
641
+ "privacy": "private",
642
+ "type": {
643
+ "text": "Direction"
644
+ },
645
+ "default": "'ltr'",
646
+ "inheritedFrom": {
647
+ "name": "DirectionMixin",
648
+ "module": "../line-core/src/mixins/direction.ts"
649
+ }
650
+ },
651
+ {
652
+ "kind": "field",
653
+ "name": "#recomputeDirection",
654
+ "privacy": "private",
655
+ "readonly": true,
656
+ "inheritedFrom": {
657
+ "name": "DirectionMixin",
658
+ "module": "../line-core/src/mixins/direction.ts"
659
+ }
660
+ },
661
+ {
662
+ "kind": "field",
663
+ "name": "direction",
664
+ "privacy": "public",
665
+ "type": {
666
+ "text": "Direction"
667
+ },
668
+ "description": "Resolved text direction of the host.",
669
+ "readonly": true,
670
+ "inheritedFrom": {
671
+ "name": "DirectionMixin",
672
+ "module": "../line-core/src/mixins/direction.ts"
673
+ }
674
+ },
675
+ {
676
+ "kind": "field",
677
+ "name": "version",
678
+ "type": {
679
+ "text": "string"
680
+ },
681
+ "static": true,
682
+ "default": "'0.0.0'",
683
+ "description": "Component semver string. Surfaced by the Inspector as `data-line-version`.",
684
+ "inheritedFrom": {
685
+ "name": "LineElement",
686
+ "module": "../line-core/src/line-element.ts"
687
+ }
688
+ },
689
+ {
690
+ "kind": "field",
691
+ "name": "docs",
692
+ "type": {
693
+ "text": "string"
694
+ },
695
+ "static": true,
696
+ "default": "''",
697
+ "description": "Documentation URL. Surfaced by the Inspector as `data-line-docs` when set.",
698
+ "inheritedFrom": {
699
+ "name": "MetadataMixin",
700
+ "module": "../line-core/src/mixins/metadata.ts"
701
+ }
702
+ },
703
+ {
704
+ "kind": "field",
705
+ "name": "qa",
706
+ "type": {
707
+ "text": "string[]"
708
+ },
709
+ "static": true,
710
+ "default": "[]",
711
+ "description": "QA tags for the component.",
712
+ "inheritedFrom": {
713
+ "name": "MetadataMixin",
714
+ "module": "../line-core/src/mixins/metadata.ts"
715
+ }
716
+ },
717
+ {
718
+ "kind": "field",
719
+ "name": "scope",
720
+ "type": {
721
+ "text": "string"
722
+ },
723
+ "static": true,
724
+ "default": "''",
725
+ "description": "Component scope identifier.",
726
+ "inheritedFrom": {
727
+ "name": "MetadataMixin",
728
+ "module": "../line-core/src/mixins/metadata.ts"
729
+ }
730
+ },
731
+ {
732
+ "kind": "field",
733
+ "name": "#inspectorDialog",
734
+ "privacy": "private",
735
+ "type": {
736
+ "text": "HTMLDialogElement | null"
737
+ },
738
+ "default": "null",
739
+ "description": "Active dialog panel while the inspector is enabled, else `null`.",
740
+ "inheritedFrom": {
741
+ "name": "InspectorMixin",
742
+ "module": "../line-core/src/mixins/inspector.ts"
743
+ }
744
+ },
745
+ {
746
+ "kind": "field",
747
+ "name": "#onInspectorKeydown",
748
+ "privacy": "private",
749
+ "readonly": true,
750
+ "description": "Bound keydown handler, retained so it can be removed on disconnect.",
751
+ "inheritedFrom": {
752
+ "name": "InspectorMixin",
753
+ "module": "../line-core/src/mixins/inspector.ts"
754
+ }
755
+ },
756
+ {
757
+ "kind": "method",
758
+ "name": "#activateInspector",
759
+ "privacy": "private",
760
+ "return": {
761
+ "type": {
762
+ "text": "void"
763
+ }
764
+ },
765
+ "description": "Wire activation marker, host metadata attributes, the hotkey, and the\ndev-only hover-outline stylesheet.",
766
+ "inheritedFrom": {
767
+ "name": "InspectorMixin",
768
+ "module": "../line-core/src/mixins/inspector.ts"
769
+ }
770
+ },
771
+ {
772
+ "kind": "method",
773
+ "name": "#deactivateInspector",
774
+ "privacy": "private",
775
+ "return": {
776
+ "type": {
777
+ "text": "void"
778
+ }
779
+ },
780
+ "description": "Remove the hotkey, tear down the dialog, drop host attributes, and remove\nthe dev-only hover-outline sheet so the active path leaks nothing.",
781
+ "inheritedFrom": {
782
+ "name": "InspectorMixin",
783
+ "module": "../line-core/src/mixins/inspector.ts"
784
+ }
785
+ },
786
+ {
787
+ "kind": "method",
788
+ "name": "#inspectorRoot",
789
+ "privacy": "private",
790
+ "return": {
791
+ "type": {
792
+ "text": "ShadowRoot | null"
793
+ }
794
+ },
795
+ "description": "The shadow root that carries `adoptedStyleSheets`, or `null`.",
796
+ "inheritedFrom": {
797
+ "name": "InspectorMixin",
798
+ "module": "../line-core/src/mixins/inspector.ts"
799
+ }
800
+ },
801
+ {
802
+ "kind": "method",
803
+ "name": "#adoptInspectorOutline",
804
+ "privacy": "private",
805
+ "return": {
806
+ "type": {
807
+ "text": "void"
808
+ }
809
+ },
810
+ "description": "Append the singleton hover-outline sheet to the shadow root's\n`adoptedStyleSheets` (idempotent — never duplicated, never replaces the\narray). No-op when the sheet or root is unavailable.",
811
+ "inheritedFrom": {
812
+ "name": "InspectorMixin",
813
+ "module": "../line-core/src/mixins/inspector.ts"
814
+ }
815
+ },
816
+ {
817
+ "kind": "method",
818
+ "name": "#releaseInspectorOutline",
819
+ "privacy": "private",
820
+ "return": {
821
+ "type": {
822
+ "text": "void"
823
+ }
824
+ },
825
+ "description": "Remove the singleton hover-outline sheet from the shadow root's\n`adoptedStyleSheets`, preserving every other adopted sheet.",
826
+ "inheritedFrom": {
827
+ "name": "InspectorMixin",
828
+ "module": "../line-core/src/mixins/inspector.ts"
829
+ }
830
+ },
831
+ {
832
+ "kind": "method",
833
+ "name": "#inspectorVersion",
834
+ "privacy": "private",
835
+ "return": {
836
+ "type": {
837
+ "text": "string"
838
+ }
839
+ },
840
+ "description": "Read the host's static `version`, defaulting to `''` when absent.",
841
+ "inheritedFrom": {
842
+ "name": "InspectorMixin",
843
+ "module": "../line-core/src/mixins/inspector.ts"
844
+ }
845
+ },
846
+ {
847
+ "kind": "method",
848
+ "name": "#inspectorDocs",
849
+ "privacy": "private",
850
+ "return": {
851
+ "type": {
852
+ "text": "string"
853
+ }
854
+ },
855
+ "description": "Read the host's static `docs` URL defensively (D3 may not provide one).",
856
+ "inheritedFrom": {
857
+ "name": "InspectorMixin",
858
+ "module": "../line-core/src/mixins/inspector.ts"
859
+ }
860
+ },
861
+ {
862
+ "kind": "method",
863
+ "name": "#toggleInspectorPanel",
864
+ "privacy": "private",
865
+ "return": {
866
+ "type": {
867
+ "text": "void"
868
+ }
869
+ },
870
+ "description": "Open the panel if closed, close it if already open.",
871
+ "inheritedFrom": {
872
+ "name": "InspectorMixin",
873
+ "module": "../line-core/src/mixins/inspector.ts"
874
+ }
875
+ },
876
+ {
877
+ "kind": "method",
878
+ "name": "#openInspectorPanel",
879
+ "privacy": "private",
880
+ "return": {
881
+ "type": {
882
+ "text": "void"
883
+ }
884
+ },
885
+ "description": "Build (once) and open the `<dialog>` metadata panel in the shadow root.",
886
+ "inheritedFrom": {
887
+ "name": "InspectorMixin",
888
+ "module": "../line-core/src/mixins/inspector.ts"
889
+ }
890
+ },
891
+ {
892
+ "kind": "field",
893
+ "name": "#internals",
894
+ "privacy": "private",
895
+ "type": {
896
+ "text": "ElementInternals"
897
+ },
898
+ "inheritedFrom": {
899
+ "name": "LineElement",
900
+ "module": "../line-core/src/line-element.ts"
901
+ }
902
+ },
903
+ {
904
+ "kind": "field",
905
+ "name": "[INTERNALS]",
906
+ "type": {
907
+ "text": "ElementInternals"
908
+ },
909
+ "privacy": "protected",
910
+ "description": "The element's `ElementInternals`, attached once in the constructor (spec §6.C.2, SD19).",
911
+ "readonly": true,
912
+ "inheritedFrom": {
913
+ "name": "LineElement",
914
+ "module": "../line-core/src/line-element.ts"
915
+ }
916
+ },
917
+ {
918
+ "kind": "method",
919
+ "name": "reflectState",
920
+ "privacy": "protected",
921
+ "return": {
922
+ "type": {
923
+ "text": "void"
924
+ }
925
+ },
926
+ "parameters": [
927
+ {
928
+ "name": "name",
929
+ "type": {
930
+ "text": "string"
931
+ }
932
+ },
933
+ {
934
+ "name": "active",
935
+ "type": {
936
+ "text": "boolean"
937
+ }
938
+ }
939
+ ],
940
+ "description": "Reflects machine state `name` on the host as the attribute `data-<name>`\nand the custom state `:state(<name>)`, both verbatim, so a kebab-case name\nsuch as `focus-visible` keeps its spelling. The custom state is skipped\nwhere the internals have no `states`.",
941
+ "inheritedFrom": {
942
+ "name": "LineElement",
943
+ "module": "../line-core/src/line-element.ts"
944
+ }
945
+ }
946
+ ],
947
+ "events": [
948
+ {
949
+ "type": {
950
+ "text": "CustomEvent<LineButtonChangeDetail>"
951
+ },
952
+ "description": "A user activation flipped `pressed` on a toggle button; `detail.value` is the new state. Bubbles, not composed.",
953
+ "name": "line-change"
954
+ }
955
+ ],
956
+ "attributes": [
957
+ {
958
+ "type": {
959
+ "text": "string"
960
+ },
961
+ "description": "The key the submitter value goes under; read through the inherited `name` getter.",
962
+ "name": "name"
963
+ },
964
+ {
965
+ "name": "variant",
966
+ "type": {
967
+ "text": "ButtonVariant"
968
+ },
969
+ "description": "Semantic emphasis; an unknown value behaves as `default`.",
970
+ "default": "'default'",
971
+ "fieldName": "variant"
972
+ },
973
+ {
974
+ "name": "type",
975
+ "type": {
976
+ "text": "ButtonType"
977
+ },
978
+ "description": "What activation does to the form owner; an unknown value behaves as `submit`.",
979
+ "default": "'submit'",
980
+ "fieldName": "type"
981
+ },
982
+ {
983
+ "name": "disabled",
984
+ "type": {
985
+ "text": "boolean"
986
+ },
987
+ "description": "Removes the button from the tab order and blocks activation.",
988
+ "default": "false",
989
+ "fieldName": "disabled"
990
+ },
991
+ {
992
+ "name": "loading",
993
+ "type": {
994
+ "text": "boolean"
995
+ },
996
+ "description": "Keeps focus, sets `aria-disabled=\"true\"`, blocks activation and renders the `loading` part.",
997
+ "default": "false",
998
+ "fieldName": "loading"
999
+ },
1000
+ {
1001
+ "name": "pressed",
1002
+ "type": {
1003
+ "text": "boolean | undefined"
1004
+ },
1005
+ "description": "`undefined` means not a toggle; a toggle flips it on each activation and fires `line-change`.",
1006
+ "fieldName": "pressed"
1007
+ },
1008
+ {
1009
+ "name": "value",
1010
+ "type": {
1011
+ "text": "string"
1012
+ },
1013
+ "description": "The submitter value; it enters the form data only when this button submits.",
1014
+ "default": "''",
1015
+ "fieldName": "value"
1016
+ },
1017
+ {
1018
+ "name": "formaction",
1019
+ "type": {
1020
+ "text": "string"
1021
+ },
1022
+ "description": "Overrides the form's `action` when this button submits.",
1023
+ "default": "''",
1024
+ "fieldName": "formAction"
1025
+ },
1026
+ {
1027
+ "name": "formmethod",
1028
+ "type": {
1029
+ "text": "ButtonFormMethod | undefined"
1030
+ },
1031
+ "description": "Overrides the form's `method` when this button submits.",
1032
+ "fieldName": "formMethod"
1033
+ },
1034
+ {
1035
+ "name": "formenctype",
1036
+ "type": {
1037
+ "text": "ButtonFormEnctype | undefined"
1038
+ },
1039
+ "description": "Overrides the form's `enctype` when this button submits.",
1040
+ "fieldName": "formEnctype"
1041
+ },
1042
+ {
1043
+ "name": "formtarget",
1044
+ "type": {
1045
+ "text": "string | undefined"
1046
+ },
1047
+ "description": "Overrides the form's `target` when this button submits.",
1048
+ "fieldName": "formTarget"
1049
+ },
1050
+ {
1051
+ "name": "formnovalidate",
1052
+ "type": {
1053
+ "text": "boolean"
1054
+ },
1055
+ "description": "Skips constraint validation when this button submits.",
1056
+ "default": "false",
1057
+ "fieldName": "formNoValidate"
1058
+ },
1059
+ {
1060
+ "name": "custom-validity",
1061
+ "type": {
1062
+ "text": "string"
1063
+ },
1064
+ "description": "External validity: a non-empty message marks the button invalid while `type` is `submit`.",
1065
+ "default": "''",
1066
+ "fieldName": "customValidity"
1067
+ },
1068
+ {
1069
+ "name": "aria-label",
1070
+ "type": {
1071
+ "text": "string | null"
1072
+ },
1073
+ "description": "Copied to the inner button, where it names the role.",
1074
+ "fieldName": "ariaLabel"
1075
+ },
1076
+ {
1077
+ "name": "aria-description",
1078
+ "type": {
1079
+ "text": "string | null"
1080
+ },
1081
+ "description": "Copied to the inner button.",
1082
+ "fieldName": "ariaDescription"
1083
+ }
1084
+ ],
1085
+ "mixins": [
1086
+ {
1087
+ "name": "FormAssociated",
1088
+ "package": "@websublime/line-core"
1089
+ }
1090
+ ],
1091
+ "superclass": {
1092
+ "name": "LineElement",
1093
+ "package": "@websublime/line-core"
1094
+ },
1095
+ "summary": "A form-associated button that runs an action, submits or resets its form, or toggles with `pressed`.",
1096
+ "tagName": "line-button",
1097
+ "customElement": true
1098
+ }
1099
+ ],
1100
+ "exports": [
1101
+ {
1102
+ "kind": "js",
1103
+ "name": "LineButton",
1104
+ "declaration": {
1105
+ "name": "LineButton",
1106
+ "module": "src/button/button.ts"
1107
+ }
1108
+ },
1109
+ {
1110
+ "kind": "custom-element-definition",
1111
+ "name": "line-button",
1112
+ "declaration": {
1113
+ "name": "LineButton",
1114
+ "module": "src/button/button.ts"
1115
+ }
1116
+ }
1117
+ ]
1118
+ },
1119
+ {
1120
+ "kind": "javascript-module",
1121
+ "path": "src/button/button.types.ts",
1122
+ "declarations": [],
1123
+ "exports": []
1124
+ },
1125
+ {
1126
+ "kind": "javascript-module",
1127
+ "path": "src/button/index.ts",
1128
+ "declarations": [],
1129
+ "exports": [
1130
+ {
1131
+ "kind": "js",
1132
+ "name": "LineButton",
1133
+ "declaration": {
1134
+ "name": "LineButton",
1135
+ "module": "./button.js"
1136
+ }
1137
+ },
1138
+ {
1139
+ "kind": "js",
1140
+ "name": "ButtonFormEnctype",
1141
+ "declaration": {
1142
+ "name": "ButtonFormEnctype",
1143
+ "module": "./button.types.js"
1144
+ }
1145
+ },
1146
+ {
1147
+ "kind": "js",
1148
+ "name": "ButtonFormMethod",
1149
+ "declaration": {
1150
+ "name": "ButtonFormMethod",
1151
+ "module": "./button.types.js"
1152
+ }
1153
+ },
1154
+ {
1155
+ "kind": "js",
1156
+ "name": "ButtonType",
1157
+ "declaration": {
1158
+ "name": "ButtonType",
1159
+ "module": "./button.types.js"
1160
+ }
1161
+ },
1162
+ {
1163
+ "kind": "js",
1164
+ "name": "ButtonVariant",
1165
+ "declaration": {
1166
+ "name": "ButtonVariant",
1167
+ "module": "./button.types.js"
1168
+ }
1169
+ },
1170
+ {
1171
+ "kind": "js",
1172
+ "name": "LineButtonChangeDetail",
1173
+ "declaration": {
1174
+ "name": "LineButtonChangeDetail",
1175
+ "module": "./button.types.js"
1176
+ }
1177
+ }
1178
+ ]
1179
+ },
1180
+ {
1181
+ "kind": "javascript-module",
1182
+ "path": "src/shared/button-machine.ts",
1183
+ "declarations": [
1184
+ {
1185
+ "kind": "variable",
1186
+ "name": "buttonMachine"
1187
+ },
1188
+ {
1189
+ "kind": "function",
1190
+ "name": "connect",
1191
+ "return": {
1192
+ "type": {
1193
+ "text": "ButtonApi"
1194
+ }
1195
+ },
1196
+ "parameters": [
1197
+ {
1198
+ "name": "service",
1199
+ "type": {
1200
+ "text": "ButtonService"
1201
+ }
1202
+ }
1203
+ ],
1204
+ "description": "Reads the running machine at call time."
1205
+ },
1206
+ {
1207
+ "kind": "function",
1208
+ "name": "connectStatic",
1209
+ "return": {
1210
+ "type": {
1211
+ "text": "ButtonApi"
1212
+ }
1213
+ },
1214
+ "parameters": [
1215
+ {
1216
+ "name": "props",
1217
+ "type": {
1218
+ "text": "ButtonMachineProps"
1219
+ }
1220
+ }
1221
+ ],
1222
+ "description": "The same view without a machine, for the controller's static fallback (MANIFESTO Law 9)."
1223
+ }
1224
+ ],
1225
+ "exports": [
1226
+ {
1227
+ "kind": "js",
1228
+ "name": "buttonMachine",
1229
+ "declaration": {
1230
+ "name": "buttonMachine",
1231
+ "module": "src/shared/button-machine.ts"
1232
+ }
1233
+ },
1234
+ {
1235
+ "kind": "js",
1236
+ "name": "connect",
1237
+ "declaration": {
1238
+ "name": "connect",
1239
+ "module": "src/shared/button-machine.ts"
1240
+ }
1241
+ },
1242
+ {
1243
+ "kind": "js",
1244
+ "name": "connectStatic",
1245
+ "declaration": {
1246
+ "name": "connectStatic",
1247
+ "module": "src/shared/button-machine.ts"
1248
+ }
1249
+ }
1250
+ ]
1251
+ },
1252
+ {
1253
+ "kind": "javascript-module",
1254
+ "path": "src/stack/index.ts",
1255
+ "declarations": [],
1256
+ "exports": [
1257
+ {
1258
+ "kind": "js",
1259
+ "name": "LineStack",
1260
+ "declaration": {
1261
+ "name": "LineStack",
1262
+ "module": "./stack.js"
1263
+ }
1264
+ },
1265
+ {
1266
+ "kind": "js",
1267
+ "name": "StackAlign",
1268
+ "declaration": {
1269
+ "name": "StackAlign",
1270
+ "module": "./stack.types.js"
1271
+ }
1272
+ },
1273
+ {
1274
+ "kind": "js",
1275
+ "name": "StackGap",
1276
+ "declaration": {
1277
+ "name": "StackGap",
1278
+ "module": "./stack.types.js"
1279
+ }
1280
+ },
1281
+ {
1282
+ "kind": "js",
1283
+ "name": "StackJustify",
1284
+ "declaration": {
1285
+ "name": "StackJustify",
1286
+ "module": "./stack.types.js"
1287
+ }
1288
+ },
1289
+ {
1290
+ "kind": "js",
1291
+ "name": "StackOrientation",
1292
+ "declaration": {
1293
+ "name": "StackOrientation",
1294
+ "module": "./stack.types.js"
1295
+ }
1296
+ }
1297
+ ]
1298
+ },
1299
+ {
1300
+ "kind": "javascript-module",
1301
+ "path": "src/stack/stack.ts",
1302
+ "declarations": [
1303
+ {
1304
+ "kind": "class",
1305
+ "description": "`<line-stack>` lays out its children in one row or one column with a gap\nbetween them. The host is the flex container and the slotted children are\nits flex items. It adds no role, so it stays `generic`; put `role=\"list\"`\non the host and `role=\"listitem\"` on the children to build a list.",
1306
+ "name": "LineStack",
1307
+ "cssProperties": [
1308
+ {
1309
+ "description": "Space between items; `gap=\"0\"` uses `0` and `gap=\"N\"` uses `var(--line-layout-gap-N)`.",
1310
+ "name": "--line-stack-gap",
1311
+ "default": "var(--line-layout-gap-2)"
1312
+ }
1313
+ ],
1314
+ "slots": [
1315
+ {
1316
+ "description": "The children; each element becomes a flex item.",
1317
+ "name": ""
1318
+ }
1319
+ ],
1320
+ "members": [
1321
+ {
1322
+ "kind": "field",
1323
+ "name": "orientation",
1324
+ "privacy": "public",
1325
+ "type": {
1326
+ "text": "StackOrientation"
1327
+ },
1328
+ "description": "Main axis; an unknown value behaves as `vertical`. A horizontal stack follows the writing direction.",
1329
+ "default": "'vertical'",
1330
+ "attribute": "orientation",
1331
+ "reflects": true
1332
+ },
1333
+ {
1334
+ "kind": "field",
1335
+ "name": "justify",
1336
+ "privacy": "public",
1337
+ "type": {
1338
+ "text": "StackJustify"
1339
+ },
1340
+ "description": "Distribution on the main axis; `stretch` grows every item. An unknown value behaves as `start`.",
1341
+ "default": "'start'",
1342
+ "attribute": "justify",
1343
+ "reflects": true
1344
+ },
1345
+ {
1346
+ "kind": "field",
1347
+ "name": "align",
1348
+ "privacy": "public",
1349
+ "type": {
1350
+ "text": "StackAlign"
1351
+ },
1352
+ "description": "Alignment on the cross axis; an unknown value behaves as `stretch`.",
1353
+ "default": "'stretch'",
1354
+ "attribute": "align",
1355
+ "reflects": true
1356
+ },
1357
+ {
1358
+ "kind": "field",
1359
+ "name": "gap",
1360
+ "privacy": "public",
1361
+ "type": {
1362
+ "text": "StackGap | undefined"
1363
+ },
1364
+ "description": "Gap step from `0` to `5`; `undefined` or an unknown value gives step `2`.",
1365
+ "attribute": "gap",
1366
+ "reflects": true
1367
+ },
1368
+ {
1369
+ "kind": "field",
1370
+ "name": "wrap",
1371
+ "privacy": "public",
1372
+ "type": {
1373
+ "text": "boolean"
1374
+ },
1375
+ "description": "Lets the items flow onto more lines when they run out of space.",
1376
+ "default": "false",
1377
+ "attribute": "wrap",
1378
+ "reflects": true
1379
+ },
1380
+ {
1381
+ "kind": "field",
1382
+ "name": "properties",
1383
+ "type": {
1384
+ "text": "PropertyDeclarations"
1385
+ },
1386
+ "static": true,
1387
+ "default": "{ direction: { attribute: false, noAccessor: true }, }",
1388
+ "description": "`direction` is reactive but owns its accessor and has no attribute.",
1389
+ "inheritedFrom": {
1390
+ "name": "DirectionMixin",
1391
+ "module": "../line-core/src/mixins/direction.ts"
1392
+ }
1393
+ },
1394
+ {
1395
+ "kind": "field",
1396
+ "name": "#direction",
1397
+ "privacy": "private",
1398
+ "type": {
1399
+ "text": "Direction"
1400
+ },
1401
+ "default": "'ltr'",
1402
+ "inheritedFrom": {
1403
+ "name": "DirectionMixin",
1404
+ "module": "../line-core/src/mixins/direction.ts"
1405
+ }
1406
+ },
1407
+ {
1408
+ "kind": "field",
1409
+ "name": "#recomputeDirection",
1410
+ "privacy": "private",
1411
+ "readonly": true,
1412
+ "inheritedFrom": {
1413
+ "name": "DirectionMixin",
1414
+ "module": "../line-core/src/mixins/direction.ts"
1415
+ }
1416
+ },
1417
+ {
1418
+ "kind": "field",
1419
+ "name": "direction",
1420
+ "privacy": "public",
1421
+ "type": {
1422
+ "text": "Direction"
1423
+ },
1424
+ "description": "Resolved text direction of the host.",
1425
+ "readonly": true,
1426
+ "inheritedFrom": {
1427
+ "name": "DirectionMixin",
1428
+ "module": "../line-core/src/mixins/direction.ts"
1429
+ }
1430
+ },
1431
+ {
1432
+ "kind": "field",
1433
+ "name": "version",
1434
+ "type": {
1435
+ "text": "string"
1436
+ },
1437
+ "static": true,
1438
+ "default": "'0.0.0'",
1439
+ "description": "Component semver string. Surfaced by the Inspector as `data-line-version`.",
1440
+ "inheritedFrom": {
1441
+ "name": "LineElement",
1442
+ "module": "../line-core/src/line-element.ts"
1443
+ }
1444
+ },
1445
+ {
1446
+ "kind": "field",
1447
+ "name": "docs",
1448
+ "type": {
1449
+ "text": "string"
1450
+ },
1451
+ "static": true,
1452
+ "default": "''",
1453
+ "description": "Documentation URL. Surfaced by the Inspector as `data-line-docs` when set.",
1454
+ "inheritedFrom": {
1455
+ "name": "MetadataMixin",
1456
+ "module": "../line-core/src/mixins/metadata.ts"
1457
+ }
1458
+ },
1459
+ {
1460
+ "kind": "field",
1461
+ "name": "qa",
1462
+ "type": {
1463
+ "text": "string[]"
1464
+ },
1465
+ "static": true,
1466
+ "default": "[]",
1467
+ "description": "QA tags for the component.",
1468
+ "inheritedFrom": {
1469
+ "name": "MetadataMixin",
1470
+ "module": "../line-core/src/mixins/metadata.ts"
1471
+ }
1472
+ },
1473
+ {
1474
+ "kind": "field",
1475
+ "name": "scope",
1476
+ "type": {
1477
+ "text": "string"
1478
+ },
1479
+ "static": true,
1480
+ "default": "''",
1481
+ "description": "Component scope identifier.",
1482
+ "inheritedFrom": {
1483
+ "name": "MetadataMixin",
1484
+ "module": "../line-core/src/mixins/metadata.ts"
1485
+ }
1486
+ },
1487
+ {
1488
+ "kind": "field",
1489
+ "name": "#inspectorDialog",
1490
+ "privacy": "private",
1491
+ "type": {
1492
+ "text": "HTMLDialogElement | null"
1493
+ },
1494
+ "default": "null",
1495
+ "description": "Active dialog panel while the inspector is enabled, else `null`.",
1496
+ "inheritedFrom": {
1497
+ "name": "InspectorMixin",
1498
+ "module": "../line-core/src/mixins/inspector.ts"
1499
+ }
1500
+ },
1501
+ {
1502
+ "kind": "field",
1503
+ "name": "#onInspectorKeydown",
1504
+ "privacy": "private",
1505
+ "readonly": true,
1506
+ "description": "Bound keydown handler, retained so it can be removed on disconnect.",
1507
+ "inheritedFrom": {
1508
+ "name": "InspectorMixin",
1509
+ "module": "../line-core/src/mixins/inspector.ts"
1510
+ }
1511
+ },
1512
+ {
1513
+ "kind": "method",
1514
+ "name": "#activateInspector",
1515
+ "privacy": "private",
1516
+ "return": {
1517
+ "type": {
1518
+ "text": "void"
1519
+ }
1520
+ },
1521
+ "description": "Wire activation marker, host metadata attributes, the hotkey, and the\ndev-only hover-outline stylesheet.",
1522
+ "inheritedFrom": {
1523
+ "name": "InspectorMixin",
1524
+ "module": "../line-core/src/mixins/inspector.ts"
1525
+ }
1526
+ },
1527
+ {
1528
+ "kind": "method",
1529
+ "name": "#deactivateInspector",
1530
+ "privacy": "private",
1531
+ "return": {
1532
+ "type": {
1533
+ "text": "void"
1534
+ }
1535
+ },
1536
+ "description": "Remove the hotkey, tear down the dialog, drop host attributes, and remove\nthe dev-only hover-outline sheet so the active path leaks nothing.",
1537
+ "inheritedFrom": {
1538
+ "name": "InspectorMixin",
1539
+ "module": "../line-core/src/mixins/inspector.ts"
1540
+ }
1541
+ },
1542
+ {
1543
+ "kind": "method",
1544
+ "name": "#inspectorRoot",
1545
+ "privacy": "private",
1546
+ "return": {
1547
+ "type": {
1548
+ "text": "ShadowRoot | null"
1549
+ }
1550
+ },
1551
+ "description": "The shadow root that carries `adoptedStyleSheets`, or `null`.",
1552
+ "inheritedFrom": {
1553
+ "name": "InspectorMixin",
1554
+ "module": "../line-core/src/mixins/inspector.ts"
1555
+ }
1556
+ },
1557
+ {
1558
+ "kind": "method",
1559
+ "name": "#adoptInspectorOutline",
1560
+ "privacy": "private",
1561
+ "return": {
1562
+ "type": {
1563
+ "text": "void"
1564
+ }
1565
+ },
1566
+ "description": "Append the singleton hover-outline sheet to the shadow root's\n`adoptedStyleSheets` (idempotent — never duplicated, never replaces the\narray). No-op when the sheet or root is unavailable.",
1567
+ "inheritedFrom": {
1568
+ "name": "InspectorMixin",
1569
+ "module": "../line-core/src/mixins/inspector.ts"
1570
+ }
1571
+ },
1572
+ {
1573
+ "kind": "method",
1574
+ "name": "#releaseInspectorOutline",
1575
+ "privacy": "private",
1576
+ "return": {
1577
+ "type": {
1578
+ "text": "void"
1579
+ }
1580
+ },
1581
+ "description": "Remove the singleton hover-outline sheet from the shadow root's\n`adoptedStyleSheets`, preserving every other adopted sheet.",
1582
+ "inheritedFrom": {
1583
+ "name": "InspectorMixin",
1584
+ "module": "../line-core/src/mixins/inspector.ts"
1585
+ }
1586
+ },
1587
+ {
1588
+ "kind": "method",
1589
+ "name": "#inspectorVersion",
1590
+ "privacy": "private",
1591
+ "return": {
1592
+ "type": {
1593
+ "text": "string"
1594
+ }
1595
+ },
1596
+ "description": "Read the host's static `version`, defaulting to `''` when absent.",
1597
+ "inheritedFrom": {
1598
+ "name": "InspectorMixin",
1599
+ "module": "../line-core/src/mixins/inspector.ts"
1600
+ }
1601
+ },
1602
+ {
1603
+ "kind": "method",
1604
+ "name": "#inspectorDocs",
1605
+ "privacy": "private",
1606
+ "return": {
1607
+ "type": {
1608
+ "text": "string"
1609
+ }
1610
+ },
1611
+ "description": "Read the host's static `docs` URL defensively (D3 may not provide one).",
1612
+ "inheritedFrom": {
1613
+ "name": "InspectorMixin",
1614
+ "module": "../line-core/src/mixins/inspector.ts"
1615
+ }
1616
+ },
1617
+ {
1618
+ "kind": "method",
1619
+ "name": "#toggleInspectorPanel",
1620
+ "privacy": "private",
1621
+ "return": {
1622
+ "type": {
1623
+ "text": "void"
1624
+ }
1625
+ },
1626
+ "description": "Open the panel if closed, close it if already open.",
1627
+ "inheritedFrom": {
1628
+ "name": "InspectorMixin",
1629
+ "module": "../line-core/src/mixins/inspector.ts"
1630
+ }
1631
+ },
1632
+ {
1633
+ "kind": "method",
1634
+ "name": "#openInspectorPanel",
1635
+ "privacy": "private",
1636
+ "return": {
1637
+ "type": {
1638
+ "text": "void"
1639
+ }
1640
+ },
1641
+ "description": "Build (once) and open the `<dialog>` metadata panel in the shadow root.",
1642
+ "inheritedFrom": {
1643
+ "name": "InspectorMixin",
1644
+ "module": "../line-core/src/mixins/inspector.ts"
1645
+ }
1646
+ },
1647
+ {
1648
+ "kind": "field",
1649
+ "name": "#internals",
1650
+ "privacy": "private",
1651
+ "type": {
1652
+ "text": "ElementInternals"
1653
+ },
1654
+ "inheritedFrom": {
1655
+ "name": "LineElement",
1656
+ "module": "../line-core/src/line-element.ts"
1657
+ }
1658
+ },
1659
+ {
1660
+ "kind": "field",
1661
+ "name": "[INTERNALS]",
1662
+ "type": {
1663
+ "text": "ElementInternals"
1664
+ },
1665
+ "privacy": "protected",
1666
+ "description": "The element's `ElementInternals`, attached once in the constructor (spec §6.C.2, SD19).",
1667
+ "readonly": true,
1668
+ "inheritedFrom": {
1669
+ "name": "LineElement",
1670
+ "module": "../line-core/src/line-element.ts"
1671
+ }
1672
+ },
1673
+ {
1674
+ "kind": "method",
1675
+ "name": "reflectState",
1676
+ "privacy": "protected",
1677
+ "return": {
1678
+ "type": {
1679
+ "text": "void"
1680
+ }
1681
+ },
1682
+ "parameters": [
1683
+ {
1684
+ "name": "name",
1685
+ "type": {
1686
+ "text": "string"
1687
+ }
1688
+ },
1689
+ {
1690
+ "name": "active",
1691
+ "type": {
1692
+ "text": "boolean"
1693
+ }
1694
+ }
1695
+ ],
1696
+ "description": "Reflects machine state `name` on the host as the attribute `data-<name>`\nand the custom state `:state(<name>)`, both verbatim, so a kebab-case name\nsuch as `focus-visible` keeps its spelling. The custom state is skipped\nwhere the internals have no `states`.",
1697
+ "inheritedFrom": {
1698
+ "name": "LineElement",
1699
+ "module": "../line-core/src/line-element.ts"
1700
+ }
1701
+ }
1702
+ ],
1703
+ "attributes": [
1704
+ {
1705
+ "name": "orientation",
1706
+ "type": {
1707
+ "text": "StackOrientation"
1708
+ },
1709
+ "description": "Main axis; an unknown value behaves as `vertical`. A horizontal stack follows the writing direction.",
1710
+ "default": "'vertical'",
1711
+ "fieldName": "orientation"
1712
+ },
1713
+ {
1714
+ "name": "justify",
1715
+ "type": {
1716
+ "text": "StackJustify"
1717
+ },
1718
+ "description": "Distribution on the main axis; `stretch` grows every item. An unknown value behaves as `start`.",
1719
+ "default": "'start'",
1720
+ "fieldName": "justify"
1721
+ },
1722
+ {
1723
+ "name": "align",
1724
+ "type": {
1725
+ "text": "StackAlign"
1726
+ },
1727
+ "description": "Alignment on the cross axis; an unknown value behaves as `stretch`.",
1728
+ "default": "'stretch'",
1729
+ "fieldName": "align"
1730
+ },
1731
+ {
1732
+ "name": "gap",
1733
+ "type": {
1734
+ "text": "StackGap | undefined"
1735
+ },
1736
+ "description": "Gap step from `0` to `5`; `undefined` or an unknown value gives step `2`.",
1737
+ "fieldName": "gap"
1738
+ },
1739
+ {
1740
+ "name": "wrap",
1741
+ "type": {
1742
+ "text": "boolean"
1743
+ },
1744
+ "description": "Lets the items flow onto more lines when they run out of space.",
1745
+ "default": "false",
1746
+ "fieldName": "wrap"
1747
+ }
1748
+ ],
1749
+ "superclass": {
1750
+ "name": "LineElement",
1751
+ "package": "@websublime/line-core"
1752
+ },
1753
+ "summary": "A layout container that places its children in one row or column with even spacing.",
1754
+ "tagName": "line-stack",
1755
+ "customElement": true
1756
+ }
1757
+ ],
1758
+ "exports": [
1759
+ {
1760
+ "kind": "js",
1761
+ "name": "LineStack",
1762
+ "declaration": {
1763
+ "name": "LineStack",
1764
+ "module": "src/stack/stack.ts"
1765
+ }
1766
+ },
1767
+ {
1768
+ "kind": "custom-element-definition",
1769
+ "name": "line-stack",
1770
+ "declaration": {
1771
+ "name": "LineStack",
1772
+ "module": "src/stack/stack.ts"
1773
+ }
1774
+ }
1775
+ ]
1776
+ },
1777
+ {
1778
+ "kind": "javascript-module",
1779
+ "path": "src/stack/stack.types.ts",
1780
+ "declarations": [],
1781
+ "exports": []
1782
+ },
11
1783
  {
12
1784
  "kind": "javascript-module",
13
1785
  "path": "../line-core/src/form-associated.ts",
@@ -571,78 +2343,274 @@
571
2343
  },
572
2344
  {
573
2345
  "kind": "method",
574
- "name": "#inspectorDocs",
575
- "privacy": "private",
2346
+ "name": "#inspectorDocs",
2347
+ "privacy": "private",
2348
+ "return": {
2349
+ "type": {
2350
+ "text": "string"
2351
+ }
2352
+ },
2353
+ "description": "Read the host's static `docs` URL defensively (D3 may not provide one).",
2354
+ "inheritedFrom": {
2355
+ "name": "InspectorMixin",
2356
+ "module": "../line-core/src/mixins/inspector.ts"
2357
+ }
2358
+ },
2359
+ {
2360
+ "kind": "method",
2361
+ "name": "#toggleInspectorPanel",
2362
+ "privacy": "private",
2363
+ "return": {
2364
+ "type": {
2365
+ "text": "void"
2366
+ }
2367
+ },
2368
+ "description": "Open the panel if closed, close it if already open.",
2369
+ "inheritedFrom": {
2370
+ "name": "InspectorMixin",
2371
+ "module": "../line-core/src/mixins/inspector.ts"
2372
+ }
2373
+ },
2374
+ {
2375
+ "kind": "method",
2376
+ "name": "#openInspectorPanel",
2377
+ "privacy": "private",
2378
+ "return": {
2379
+ "type": {
2380
+ "text": "void"
2381
+ }
2382
+ },
2383
+ "description": "Build (once) and open the `<dialog>` metadata panel in the shadow root.",
2384
+ "inheritedFrom": {
2385
+ "name": "InspectorMixin",
2386
+ "module": "../line-core/src/mixins/inspector.ts"
2387
+ }
2388
+ }
2389
+ ],
2390
+ "mixins": [
2391
+ {
2392
+ "name": "DirectionMixin",
2393
+ "module": "/line-core/src/mixins/direction.js"
2394
+ },
2395
+ {
2396
+ "name": "MetadataMixin",
2397
+ "module": "/line-core/src/mixins/metadata.js"
2398
+ },
2399
+ {
2400
+ "name": "InspectorMixin",
2401
+ "module": "/line-core/src/mixins/inspector.js"
2402
+ }
2403
+ ],
2404
+ "superclass": {
2405
+ "name": "LitElement",
2406
+ "package": "lit"
2407
+ },
2408
+ "customElement": true
2409
+ }
2410
+ ],
2411
+ "exports": [
2412
+ {
2413
+ "kind": "js",
2414
+ "name": "LineElement",
2415
+ "declaration": {
2416
+ "name": "LineElement",
2417
+ "module": "../line-core/src/line-element.ts"
2418
+ }
2419
+ }
2420
+ ]
2421
+ },
2422
+ {
2423
+ "kind": "javascript-module",
2424
+ "path": "../line-core/src/machine/index.ts",
2425
+ "declarations": [],
2426
+ "exports": [
2427
+ {
2428
+ "kind": "js",
2429
+ "name": "Attrs",
2430
+ "declaration": {
2431
+ "name": "Attrs",
2432
+ "package": "@zag-js/vanilla"
2433
+ }
2434
+ },
2435
+ {
2436
+ "kind": "js",
2437
+ "name": "mergeProps",
2438
+ "declaration": {
2439
+ "name": "mergeProps",
2440
+ "package": "@zag-js/vanilla"
2441
+ }
2442
+ },
2443
+ {
2444
+ "kind": "js",
2445
+ "name": "normalizeProps",
2446
+ "declaration": {
2447
+ "name": "normalizeProps",
2448
+ "package": "@zag-js/vanilla"
2449
+ }
2450
+ },
2451
+ {
2452
+ "kind": "js",
2453
+ "name": "spreadProps",
2454
+ "declaration": {
2455
+ "name": "spreadProps",
2456
+ "package": "@zag-js/vanilla"
2457
+ }
2458
+ },
2459
+ {
2460
+ "kind": "js",
2461
+ "name": "VanillaMachine",
2462
+ "declaration": {
2463
+ "name": "VanillaMachine",
2464
+ "package": "@zag-js/vanilla"
2465
+ }
2466
+ },
2467
+ {
2468
+ "kind": "js",
2469
+ "name": "LineMachineController",
2470
+ "declaration": {
2471
+ "name": "LineMachineController",
2472
+ "module": "./line-machine-controller.js"
2473
+ }
2474
+ },
2475
+ {
2476
+ "kind": "js",
2477
+ "name": "LineMachineControllerOptions",
2478
+ "declaration": {
2479
+ "name": "LineMachineControllerOptions",
2480
+ "module": "./line-machine-controller.js"
2481
+ }
2482
+ }
2483
+ ]
2484
+ },
2485
+ {
2486
+ "kind": "javascript-module",
2487
+ "path": "../line-core/src/machine/line-machine-controller.ts",
2488
+ "declarations": [
2489
+ {
2490
+ "kind": "class",
2491
+ "description": "",
2492
+ "name": "LineMachineController",
2493
+ "members": [
2494
+ {
2495
+ "kind": "field",
2496
+ "name": "#host",
2497
+ "privacy": "private",
2498
+ "type": {
2499
+ "text": "ReactiveControllerHost"
2500
+ },
2501
+ "default": "host"
2502
+ },
2503
+ {
2504
+ "kind": "field",
2505
+ "name": "#vanilla",
2506
+ "privacy": "private",
2507
+ "type": {
2508
+ "text": "VanillaMachine<T> | null"
2509
+ },
2510
+ "default": "null"
2511
+ },
2512
+ {
2513
+ "kind": "field",
2514
+ "name": "#unsubscribe",
2515
+ "privacy": "private",
2516
+ "type": {
2517
+ "text": "VoidFunction | null"
2518
+ },
2519
+ "default": "null"
2520
+ },
2521
+ {
2522
+ "kind": "field",
2523
+ "name": "#fallback",
2524
+ "privacy": "private",
2525
+ "type": {
2526
+ "text": "boolean"
2527
+ },
2528
+ "default": "false"
2529
+ },
2530
+ {
2531
+ "kind": "field",
2532
+ "name": "#options",
2533
+ "privacy": "private",
2534
+ "type": {
2535
+ "text": "LineMachineControllerOptions<T>"
2536
+ },
2537
+ "default": "options"
2538
+ },
2539
+ {
2540
+ "kind": "field",
2541
+ "name": "state",
2542
+ "readonly": true
2543
+ },
2544
+ {
2545
+ "kind": "field",
2546
+ "name": "context",
2547
+ "readonly": true
2548
+ },
2549
+ {
2550
+ "kind": "field",
2551
+ "name": "refs",
2552
+ "readonly": true
2553
+ },
2554
+ {
2555
+ "kind": "field",
2556
+ "name": "service",
2557
+ "readonly": true
2558
+ },
2559
+ {
2560
+ "kind": "field",
2561
+ "name": "fallback",
2562
+ "readonly": true
2563
+ },
2564
+ {
2565
+ "kind": "method",
2566
+ "name": "send",
2567
+ "parameters": [
2568
+ {
2569
+ "name": "event",
2570
+ "type": {
2571
+ "text": "Parameters<VanillaMachine<T>['send']>[0]"
2572
+ }
2573
+ }
2574
+ ]
2575
+ },
2576
+ {
2577
+ "kind": "method",
2578
+ "name": "hostConnected",
576
2579
  "return": {
577
2580
  "type": {
578
- "text": "string"
2581
+ "text": "void"
579
2582
  }
580
- },
581
- "description": "Read the host's static `docs` URL defensively (D3 may not provide one).",
582
- "inheritedFrom": {
583
- "name": "InspectorMixin",
584
- "module": "../line-core/src/mixins/inspector.ts"
585
2583
  }
586
2584
  },
587
2585
  {
588
2586
  "kind": "method",
589
- "name": "#toggleInspectorPanel",
590
- "privacy": "private",
2587
+ "name": "hostUpdate",
591
2588
  "return": {
592
2589
  "type": {
593
2590
  "text": "void"
594
2591
  }
595
2592
  },
596
- "description": "Open the panel if closed, close it if already open.",
597
- "inheritedFrom": {
598
- "name": "InspectorMixin",
599
- "module": "../line-core/src/mixins/inspector.ts"
600
- }
2593
+ "description": "Signals the machine before every render that the host props may have changed (D7)."
601
2594
  },
602
2595
  {
603
2596
  "kind": "method",
604
- "name": "#openInspectorPanel",
605
- "privacy": "private",
2597
+ "name": "hostDisconnected",
606
2598
  "return": {
607
2599
  "type": {
608
2600
  "text": "void"
609
2601
  }
610
- },
611
- "description": "Build (once) and open the `<dialog>` metadata panel in the shadow root.",
612
- "inheritedFrom": {
613
- "name": "InspectorMixin",
614
- "module": "../line-core/src/mixins/inspector.ts"
615
2602
  }
616
2603
  }
617
- ],
618
- "mixins": [
619
- {
620
- "name": "DirectionMixin",
621
- "module": "/line-core/src/mixins/direction.js"
622
- },
623
- {
624
- "name": "MetadataMixin",
625
- "module": "/line-core/src/mixins/metadata.js"
626
- },
627
- {
628
- "name": "InspectorMixin",
629
- "module": "/line-core/src/mixins/inspector.js"
630
- }
631
- ],
632
- "superclass": {
633
- "name": "LitElement",
634
- "package": "lit"
635
- },
636
- "customElement": true
2604
+ ]
637
2605
  }
638
2606
  ],
639
2607
  "exports": [
640
2608
  {
641
2609
  "kind": "js",
642
- "name": "LineElement",
2610
+ "name": "LineMachineController",
643
2611
  "declaration": {
644
- "name": "LineElement",
645
- "module": "../line-core/src/line-element.ts"
2612
+ "name": "LineMachineController",
2613
+ "module": "../line-core/src/machine/line-machine-controller.ts"
646
2614
  }
647
2615
  }
648
2616
  ]
@@ -1093,202 +3061,6 @@
1093
3061
  }
1094
3062
  }
1095
3063
  ]
1096
- },
1097
- {
1098
- "kind": "javascript-module",
1099
- "path": "../line-core/src/machine/index.ts",
1100
- "declarations": [],
1101
- "exports": [
1102
- {
1103
- "kind": "js",
1104
- "name": "Attrs",
1105
- "declaration": {
1106
- "name": "Attrs",
1107
- "package": "@zag-js/vanilla"
1108
- }
1109
- },
1110
- {
1111
- "kind": "js",
1112
- "name": "mergeProps",
1113
- "declaration": {
1114
- "name": "mergeProps",
1115
- "package": "@zag-js/vanilla"
1116
- }
1117
- },
1118
- {
1119
- "kind": "js",
1120
- "name": "normalizeProps",
1121
- "declaration": {
1122
- "name": "normalizeProps",
1123
- "package": "@zag-js/vanilla"
1124
- }
1125
- },
1126
- {
1127
- "kind": "js",
1128
- "name": "spreadProps",
1129
- "declaration": {
1130
- "name": "spreadProps",
1131
- "package": "@zag-js/vanilla"
1132
- }
1133
- },
1134
- {
1135
- "kind": "js",
1136
- "name": "VanillaMachine",
1137
- "declaration": {
1138
- "name": "VanillaMachine",
1139
- "package": "@zag-js/vanilla"
1140
- }
1141
- },
1142
- {
1143
- "kind": "js",
1144
- "name": "LineMachineController",
1145
- "declaration": {
1146
- "name": "LineMachineController",
1147
- "module": "./line-machine-controller.js"
1148
- }
1149
- },
1150
- {
1151
- "kind": "js",
1152
- "name": "LineMachineControllerOptions",
1153
- "declaration": {
1154
- "name": "LineMachineControllerOptions",
1155
- "module": "./line-machine-controller.js"
1156
- }
1157
- }
1158
- ]
1159
- },
1160
- {
1161
- "kind": "javascript-module",
1162
- "path": "../line-core/src/machine/line-machine-controller.ts",
1163
- "declarations": [
1164
- {
1165
- "kind": "class",
1166
- "description": "",
1167
- "name": "LineMachineController",
1168
- "members": [
1169
- {
1170
- "kind": "field",
1171
- "name": "#host",
1172
- "privacy": "private",
1173
- "type": {
1174
- "text": "ReactiveControllerHost"
1175
- },
1176
- "default": "host"
1177
- },
1178
- {
1179
- "kind": "field",
1180
- "name": "#vanilla",
1181
- "privacy": "private",
1182
- "type": {
1183
- "text": "VanillaMachine<T> | null"
1184
- },
1185
- "default": "null"
1186
- },
1187
- {
1188
- "kind": "field",
1189
- "name": "#unsubscribe",
1190
- "privacy": "private",
1191
- "type": {
1192
- "text": "VoidFunction | null"
1193
- },
1194
- "default": "null"
1195
- },
1196
- {
1197
- "kind": "field",
1198
- "name": "#fallback",
1199
- "privacy": "private",
1200
- "type": {
1201
- "text": "boolean"
1202
- },
1203
- "default": "false"
1204
- },
1205
- {
1206
- "kind": "field",
1207
- "name": "#options",
1208
- "privacy": "private",
1209
- "type": {
1210
- "text": "LineMachineControllerOptions<T>"
1211
- },
1212
- "default": "options"
1213
- },
1214
- {
1215
- "kind": "field",
1216
- "name": "state",
1217
- "readonly": true
1218
- },
1219
- {
1220
- "kind": "field",
1221
- "name": "context",
1222
- "readonly": true
1223
- },
1224
- {
1225
- "kind": "field",
1226
- "name": "refs",
1227
- "readonly": true
1228
- },
1229
- {
1230
- "kind": "field",
1231
- "name": "service",
1232
- "readonly": true
1233
- },
1234
- {
1235
- "kind": "field",
1236
- "name": "fallback",
1237
- "readonly": true
1238
- },
1239
- {
1240
- "kind": "method",
1241
- "name": "send",
1242
- "parameters": [
1243
- {
1244
- "name": "event",
1245
- "type": {
1246
- "text": "Parameters<VanillaMachine<T>['send']>[0]"
1247
- }
1248
- }
1249
- ]
1250
- },
1251
- {
1252
- "kind": "method",
1253
- "name": "hostConnected",
1254
- "return": {
1255
- "type": {
1256
- "text": "void"
1257
- }
1258
- }
1259
- },
1260
- {
1261
- "kind": "method",
1262
- "name": "hostUpdate",
1263
- "return": {
1264
- "type": {
1265
- "text": "void"
1266
- }
1267
- },
1268
- "description": "Signals the machine before every render that the host props may have changed (D7)."
1269
- },
1270
- {
1271
- "kind": "method",
1272
- "name": "hostDisconnected",
1273
- "return": {
1274
- "type": {
1275
- "text": "void"
1276
- }
1277
- }
1278
- }
1279
- ]
1280
- }
1281
- ],
1282
- "exports": [
1283
- {
1284
- "kind": "js",
1285
- "name": "LineMachineController",
1286
- "declaration": {
1287
- "name": "LineMachineController",
1288
- "module": "../line-core/src/machine/line-machine-controller.ts"
1289
- }
1290
- }
1291
- ]
1292
3064
  }
1293
3065
  ]
1294
3066
  }