@spectrum-web-components/overlay 1.2.0-beta.0 → 1.2.0-beta.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.
Files changed (2) hide show
  1. package/custom-elements.json +3552 -0
  2. package/package.json +7 -7
@@ -0,0 +1,3552 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-overlay.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-overlay",
13
+ "declaration": {
14
+ "name": "Overlay",
15
+ "module": "/src/Overlay.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "overlay-trigger.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "overlay-trigger",
28
+ "declaration": {
29
+ "name": "OverlayTrigger",
30
+ "module": "/src/OverlayTrigger.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "sync/overlay-trigger.js",
38
+ "declarations": [],
39
+ "exports": [
40
+ {
41
+ "kind": "js",
42
+ "name": "OverlayTrigger",
43
+ "declaration": {
44
+ "name": "OverlayTrigger",
45
+ "module": "sync/overlay-trigger.js"
46
+ }
47
+ },
48
+ {
49
+ "kind": "js",
50
+ "name": "OverlayOptionsV1",
51
+ "declaration": {
52
+ "name": "OverlayOptionsV1",
53
+ "module": "sync/overlay-trigger.js"
54
+ }
55
+ },
56
+ {
57
+ "kind": "js",
58
+ "name": "TriggerInteractions",
59
+ "declaration": {
60
+ "name": "TriggerInteractions",
61
+ "module": "sync/overlay-trigger.js"
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "kind": "javascript-module",
68
+ "path": "src/AbstractOverlay.js",
69
+ "declarations": [
70
+ {
71
+ "kind": "variable",
72
+ "name": "overlayTimer",
73
+ "default": "new OverlayTimer()"
74
+ },
75
+ {
76
+ "kind": "function",
77
+ "name": "noop",
78
+ "return": {
79
+ "type": {
80
+ "text": "void"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "kind": "function",
86
+ "name": "guaranteedAllTransitionend",
87
+ "return": {
88
+ "type": {
89
+ "text": "void"
90
+ }
91
+ },
92
+ "parameters": [
93
+ {
94
+ "name": "el",
95
+ "type": {
96
+ "text": "HTMLElement"
97
+ },
98
+ "description": "Target of the \"transition\" listeners."
99
+ },
100
+ {
101
+ "name": "action",
102
+ "type": {
103
+ "text": "Function"
104
+ },
105
+ "description": "Method to trigger the \"transition\"."
106
+ },
107
+ {
108
+ "name": "cb",
109
+ "type": {
110
+ "text": "Function"
111
+ },
112
+ "description": "Callback to trigger when the \"transition\" has ended."
113
+ }
114
+ ],
115
+ "description": "Apply a \"transitionend\" listener to an element that may not transition but\nguarantee the callback will be fired either way."
116
+ },
117
+ {
118
+ "kind": "function",
119
+ "name": "nextFrame",
120
+ "return": {
121
+ "type": {
122
+ "text": "Promise<void>"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "kind": "class",
128
+ "description": "Abstract Overlay base class so that property tyings and imperative API\ninterfaces can be held separate from the actual class definition.",
129
+ "name": "AbstractOverlay",
130
+ "members": [
131
+ {
132
+ "kind": "method",
133
+ "name": "applyFocus",
134
+ "privacy": "protected",
135
+ "return": {
136
+ "type": {
137
+ "text": "Promise<void>"
138
+ }
139
+ },
140
+ "parameters": [
141
+ {
142
+ "name": "_targetOpenState",
143
+ "type": {
144
+ "text": "boolean"
145
+ }
146
+ },
147
+ {
148
+ "name": "_focusEl",
149
+ "type": {
150
+ "text": "HTMLElement | null"
151
+ }
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "kind": "field",
157
+ "name": "delayed",
158
+ "type": {
159
+ "text": "boolean"
160
+ }
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "dialogEl",
165
+ "type": {
166
+ "text": "HTMLDialogElement & {\n showPopover(): void;\n hidePopover(): void;\n }"
167
+ }
168
+ },
169
+ {
170
+ "kind": "field",
171
+ "name": "disabled",
172
+ "type": {
173
+ "text": "boolean"
174
+ }
175
+ },
176
+ {
177
+ "kind": "field",
178
+ "name": "dispose",
179
+ "default": "noop"
180
+ },
181
+ {
182
+ "kind": "field",
183
+ "name": "elementResolver",
184
+ "type": {
185
+ "text": "ElementResolutionController"
186
+ },
187
+ "privacy": "protected"
188
+ },
189
+ {
190
+ "kind": "field",
191
+ "name": "_elementResolver",
192
+ "type": {
193
+ "text": "ElementResolutionController"
194
+ },
195
+ "privacy": "protected"
196
+ },
197
+ {
198
+ "kind": "method",
199
+ "name": "ensureOnDOM",
200
+ "privacy": "protected",
201
+ "return": {
202
+ "type": {
203
+ "text": "Promise<void>"
204
+ }
205
+ },
206
+ "parameters": [
207
+ {
208
+ "name": "_targetOpenState",
209
+ "type": {
210
+ "text": "boolean"
211
+ }
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "kind": "field",
217
+ "name": "elements",
218
+ "type": {
219
+ "text": "OpenableElement[]"
220
+ }
221
+ },
222
+ {
223
+ "kind": "method",
224
+ "name": "makeTransition",
225
+ "privacy": "protected",
226
+ "return": {
227
+ "type": {
228
+ "text": "Promise<HTMLElement | null>"
229
+ }
230
+ },
231
+ "parameters": [
232
+ {
233
+ "name": "_targetOpenState",
234
+ "type": {
235
+ "text": "boolean"
236
+ }
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "kind": "method",
242
+ "name": "manageDelay",
243
+ "privacy": "protected",
244
+ "return": {
245
+ "type": {
246
+ "text": "Promise<void>"
247
+ }
248
+ },
249
+ "parameters": [
250
+ {
251
+ "name": "_targetOpenState",
252
+ "type": {
253
+ "text": "boolean"
254
+ }
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "kind": "method",
260
+ "name": "manageDialogOpen",
261
+ "privacy": "protected",
262
+ "return": {
263
+ "type": {
264
+ "text": "Promise<void>"
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "kind": "method",
270
+ "name": "managePopoverOpen",
271
+ "privacy": "protected",
272
+ "return": {
273
+ "type": {
274
+ "text": "Promise<void>"
275
+ }
276
+ }
277
+ },
278
+ {
279
+ "kind": "method",
280
+ "name": "managePosition",
281
+ "privacy": "protected",
282
+ "return": {
283
+ "type": {
284
+ "text": "void"
285
+ }
286
+ }
287
+ },
288
+ {
289
+ "kind": "field",
290
+ "name": "offset",
291
+ "type": {
292
+ "text": "number | [number, number]"
293
+ },
294
+ "privacy": "protected",
295
+ "default": "0"
296
+ },
297
+ {
298
+ "kind": "field",
299
+ "name": "open",
300
+ "type": {
301
+ "text": "boolean"
302
+ }
303
+ },
304
+ {
305
+ "kind": "field",
306
+ "name": "placement",
307
+ "type": {
308
+ "text": "Placement | undefined"
309
+ }
310
+ },
311
+ {
312
+ "kind": "field",
313
+ "name": "placementController",
314
+ "type": {
315
+ "text": "PlacementController"
316
+ },
317
+ "privacy": "protected"
318
+ },
319
+ {
320
+ "kind": "field",
321
+ "name": "_placementController",
322
+ "type": {
323
+ "text": "PlacementController"
324
+ },
325
+ "privacy": "protected"
326
+ },
327
+ {
328
+ "kind": "field",
329
+ "name": "receivesFocus",
330
+ "type": {
331
+ "text": "'true' | 'false' | 'auto'"
332
+ }
333
+ },
334
+ {
335
+ "kind": "method",
336
+ "name": "requestSlottable",
337
+ "privacy": "protected",
338
+ "return": {
339
+ "type": {
340
+ "text": "void"
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "kind": "method",
346
+ "name": "returnFocus",
347
+ "privacy": "protected",
348
+ "return": {
349
+ "type": {
350
+ "text": "void"
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "kind": "field",
356
+ "name": "state",
357
+ "type": {
358
+ "text": "OverlayState"
359
+ }
360
+ },
361
+ {
362
+ "kind": "field",
363
+ "name": "_state",
364
+ "type": {
365
+ "text": "OverlayState"
366
+ },
367
+ "privacy": "protected"
368
+ },
369
+ {
370
+ "kind": "field",
371
+ "name": "triggerElement",
372
+ "type": {
373
+ "text": "HTMLElement | VirtualTrigger | null"
374
+ }
375
+ },
376
+ {
377
+ "kind": "field",
378
+ "name": "type",
379
+ "type": {
380
+ "text": "OverlayTypes"
381
+ }
382
+ },
383
+ {
384
+ "kind": "field",
385
+ "name": "willPreventClose",
386
+ "type": {
387
+ "text": "boolean"
388
+ },
389
+ "default": "false"
390
+ },
391
+ {
392
+ "kind": "method",
393
+ "name": "manuallyKeepOpen",
394
+ "privacy": "public",
395
+ "return": {
396
+ "type": {
397
+ "text": "void"
398
+ }
399
+ }
400
+ },
401
+ {
402
+ "kind": "method",
403
+ "name": "open",
404
+ "privacy": "public",
405
+ "static": true,
406
+ "return": {
407
+ "type": {
408
+ "text": "Promise<() => void>"
409
+ }
410
+ },
411
+ "parameters": [
412
+ {
413
+ "name": "trigger",
414
+ "type": {
415
+ "text": "HTMLElement"
416
+ }
417
+ },
418
+ {
419
+ "name": "interaction",
420
+ "type": {
421
+ "text": "TriggerInteractionsV1"
422
+ }
423
+ },
424
+ {
425
+ "name": "content",
426
+ "type": {
427
+ "text": "HTMLElement"
428
+ }
429
+ },
430
+ {
431
+ "name": "optionsV1",
432
+ "type": {
433
+ "text": "OverlayOptionsV1"
434
+ }
435
+ }
436
+ ],
437
+ "description": "Overloaded imperative API entry point that allows for both the pre-0.37.0\nargument signature as well as the post-0.37.0 signature. This allows for\nconsumers to continue to leverage it as they had been in previous releases\nwhile also surfacing the more feature-rich API that has been made available."
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "open",
442
+ "privacy": "public",
443
+ "static": true,
444
+ "return": {
445
+ "type": {
446
+ "text": "Promise<Overlay>"
447
+ }
448
+ },
449
+ "parameters": [
450
+ {
451
+ "name": "content",
452
+ "type": {
453
+ "text": "HTMLElement"
454
+ }
455
+ },
456
+ {
457
+ "name": "options",
458
+ "optional": true,
459
+ "type": {
460
+ "text": "OverlayOptions"
461
+ }
462
+ }
463
+ ]
464
+ },
465
+ {
466
+ "kind": "method",
467
+ "name": "open",
468
+ "privacy": "public",
469
+ "static": true,
470
+ "return": {
471
+ "type": {
472
+ "text": "Promise<Overlay | (() => void)>"
473
+ }
474
+ },
475
+ "parameters": [
476
+ {
477
+ "name": "triggerOrContent",
478
+ "type": {
479
+ "text": "HTMLElement"
480
+ }
481
+ },
482
+ {
483
+ "name": "interactionOrOptions",
484
+ "type": {
485
+ "text": "| TriggerInteractionsV1\n | OverlayOptions\n | undefined"
486
+ }
487
+ },
488
+ {
489
+ "name": "content",
490
+ "optional": true,
491
+ "type": {
492
+ "text": "HTMLElement"
493
+ }
494
+ },
495
+ {
496
+ "name": "optionsV1",
497
+ "optional": true,
498
+ "type": {
499
+ "text": "OverlayOptionsV1"
500
+ }
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "kind": "method",
506
+ "name": "applyOptions",
507
+ "static": true,
508
+ "return": {
509
+ "type": {
510
+ "text": "void"
511
+ }
512
+ },
513
+ "parameters": [
514
+ {
515
+ "name": "overlay",
516
+ "type": {
517
+ "text": "AbstractOverlay"
518
+ }
519
+ },
520
+ {
521
+ "name": "options",
522
+ "type": {
523
+ "text": "OverlayOptions"
524
+ }
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "kind": "field",
530
+ "name": "iosEventPropagationController",
531
+ "type": {
532
+ "text": "AbortController | undefined"
533
+ },
534
+ "privacy": "private"
535
+ },
536
+ {
537
+ "kind": "method",
538
+ "name": "setupIOSEventManagement",
539
+ "privacy": "protected",
540
+ "return": {
541
+ "type": {
542
+ "text": "void"
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "kind": "method",
548
+ "name": "cleanupIOSEventManagement",
549
+ "privacy": "protected",
550
+ "return": {
551
+ "type": {
552
+ "text": "void"
553
+ }
554
+ }
555
+ }
556
+ ],
557
+ "superclass": {
558
+ "name": "SpectrumElement",
559
+ "package": "@spectrum-web-components/base"
560
+ }
561
+ }
562
+ ],
563
+ "exports": [
564
+ {
565
+ "kind": "js",
566
+ "name": "overlayTimer",
567
+ "declaration": {
568
+ "name": "overlayTimer",
569
+ "module": "src/AbstractOverlay.js"
570
+ }
571
+ },
572
+ {
573
+ "kind": "js",
574
+ "name": "noop",
575
+ "declaration": {
576
+ "name": "noop",
577
+ "module": "src/AbstractOverlay.js"
578
+ }
579
+ },
580
+ {
581
+ "kind": "js",
582
+ "name": "guaranteedAllTransitionend",
583
+ "declaration": {
584
+ "name": "guaranteedAllTransitionend",
585
+ "module": "src/AbstractOverlay.js"
586
+ }
587
+ },
588
+ {
589
+ "kind": "js",
590
+ "name": "nextFrame",
591
+ "declaration": {
592
+ "name": "nextFrame",
593
+ "module": "src/AbstractOverlay.js"
594
+ }
595
+ },
596
+ {
597
+ "kind": "js",
598
+ "name": "AbstractOverlay",
599
+ "declaration": {
600
+ "name": "AbstractOverlay",
601
+ "module": "src/AbstractOverlay.js"
602
+ }
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "kind": "javascript-module",
608
+ "path": "src/ClickController.js",
609
+ "declarations": [
610
+ {
611
+ "kind": "class",
612
+ "description": "",
613
+ "name": "ClickController",
614
+ "members": [
615
+ {
616
+ "kind": "field",
617
+ "name": "type",
618
+ "type": {
619
+ "text": "InteractionTypes"
620
+ },
621
+ "inheritedFrom": {
622
+ "name": "InteractionController",
623
+ "module": "src/InteractionController.js"
624
+ }
625
+ },
626
+ {
627
+ "kind": "field",
628
+ "name": "preventNextToggle",
629
+ "type": {
630
+ "text": "boolean"
631
+ },
632
+ "privacy": "private",
633
+ "default": "false",
634
+ "description": "An overlay with a `click` interaction should not close on click `triggerElement`.\nWhen a click is initiated (`pointerdown`), apply `preventNextToggle` when the\noverlay is `open` to prevent from toggling the overlay when the click event\npropagates later in the interaction."
635
+ },
636
+ {
637
+ "kind": "method",
638
+ "name": "handleClick",
639
+ "return": {
640
+ "type": {
641
+ "text": "void"
642
+ }
643
+ }
644
+ },
645
+ {
646
+ "kind": "method",
647
+ "name": "handlePointerdown",
648
+ "return": {
649
+ "type": {
650
+ "text": "void"
651
+ }
652
+ }
653
+ },
654
+ {
655
+ "kind": "method",
656
+ "name": "init",
657
+ "return": {
658
+ "type": {
659
+ "text": "void"
660
+ }
661
+ },
662
+ "inheritedFrom": {
663
+ "name": "InteractionController",
664
+ "module": "src/InteractionController.js"
665
+ }
666
+ },
667
+ {
668
+ "kind": "field",
669
+ "name": "abortController",
670
+ "type": {
671
+ "text": "AbortController"
672
+ },
673
+ "inheritedFrom": {
674
+ "name": "InteractionController",
675
+ "module": "src/InteractionController.js"
676
+ }
677
+ },
678
+ {
679
+ "kind": "field",
680
+ "name": "activelyOpening",
681
+ "type": {
682
+ "text": "boolean"
683
+ },
684
+ "readonly": true,
685
+ "inheritedFrom": {
686
+ "name": "InteractionController",
687
+ "module": "src/InteractionController.js"
688
+ }
689
+ },
690
+ {
691
+ "kind": "field",
692
+ "name": "handleOverlayReady",
693
+ "type": {
694
+ "text": "(overlay: AbstractOverlay) => void | undefined"
695
+ },
696
+ "privacy": "private",
697
+ "default": "handleOverlayReady",
698
+ "inheritedFrom": {
699
+ "name": "InteractionController",
700
+ "module": "src/InteractionController.js"
701
+ }
702
+ },
703
+ {
704
+ "kind": "field",
705
+ "name": "isLazilyOpen",
706
+ "type": {
707
+ "text": "boolean"
708
+ },
709
+ "privacy": "private",
710
+ "default": "false",
711
+ "inheritedFrom": {
712
+ "name": "InteractionController",
713
+ "module": "src/InteractionController.js"
714
+ }
715
+ },
716
+ {
717
+ "kind": "field",
718
+ "name": "open",
719
+ "type": {
720
+ "text": "boolean"
721
+ },
722
+ "privacy": "public",
723
+ "description": "Set `open` against the associated Overlay lazily.",
724
+ "inheritedFrom": {
725
+ "name": "InteractionController",
726
+ "module": "src/InteractionController.js"
727
+ }
728
+ },
729
+ {
730
+ "kind": "field",
731
+ "name": "overlay",
732
+ "type": {
733
+ "text": "AbstractOverlay"
734
+ },
735
+ "privacy": "public",
736
+ "default": "overlay",
737
+ "inheritedFrom": {
738
+ "name": "InteractionController",
739
+ "module": "src/InteractionController.js"
740
+ }
741
+ },
742
+ {
743
+ "kind": "field",
744
+ "name": "_overlay",
745
+ "type": {
746
+ "text": "AbstractOverlay"
747
+ },
748
+ "privacy": "private",
749
+ "inheritedFrom": {
750
+ "name": "InteractionController",
751
+ "module": "src/InteractionController.js"
752
+ }
753
+ },
754
+ {
755
+ "kind": "field",
756
+ "name": "isPersistent",
757
+ "type": {
758
+ "text": "boolean"
759
+ },
760
+ "privacy": "protected",
761
+ "default": "!!isPersistent",
762
+ "inheritedFrom": {
763
+ "name": "InteractionController",
764
+ "module": "src/InteractionController.js"
765
+ }
766
+ },
767
+ {
768
+ "kind": "method",
769
+ "name": "prepareDescription",
770
+ "return": {
771
+ "type": {
772
+ "text": "void"
773
+ }
774
+ },
775
+ "parameters": [
776
+ {
777
+ "name": "_",
778
+ "type": {
779
+ "text": "HTMLElement"
780
+ }
781
+ }
782
+ ],
783
+ "inheritedFrom": {
784
+ "name": "InteractionController",
785
+ "module": "src/InteractionController.js"
786
+ }
787
+ },
788
+ {
789
+ "kind": "method",
790
+ "name": "releaseDescription",
791
+ "return": {
792
+ "type": {
793
+ "text": "void"
794
+ }
795
+ },
796
+ "inheritedFrom": {
797
+ "name": "InteractionController",
798
+ "module": "src/InteractionController.js"
799
+ }
800
+ },
801
+ {
802
+ "kind": "method",
803
+ "name": "shouldCompleteOpen",
804
+ "return": {
805
+ "type": {
806
+ "text": "void"
807
+ }
808
+ },
809
+ "inheritedFrom": {
810
+ "name": "InteractionController",
811
+ "module": "src/InteractionController.js"
812
+ }
813
+ },
814
+ {
815
+ "kind": "method",
816
+ "name": "initOverlay",
817
+ "return": {
818
+ "type": {
819
+ "text": "void"
820
+ }
821
+ },
822
+ "inheritedFrom": {
823
+ "name": "InteractionController",
824
+ "module": "src/InteractionController.js"
825
+ }
826
+ },
827
+ {
828
+ "kind": "method",
829
+ "name": "abort",
830
+ "return": {
831
+ "type": {
832
+ "text": "void"
833
+ }
834
+ },
835
+ "inheritedFrom": {
836
+ "name": "InteractionController",
837
+ "module": "src/InteractionController.js"
838
+ }
839
+ },
840
+ {
841
+ "kind": "method",
842
+ "name": "hostConnected",
843
+ "return": {
844
+ "type": {
845
+ "text": "void"
846
+ }
847
+ },
848
+ "inheritedFrom": {
849
+ "name": "InteractionController",
850
+ "module": "src/InteractionController.js"
851
+ }
852
+ },
853
+ {
854
+ "kind": "method",
855
+ "name": "hostDisconnected",
856
+ "return": {
857
+ "type": {
858
+ "text": "void"
859
+ }
860
+ },
861
+ "inheritedFrom": {
862
+ "name": "InteractionController",
863
+ "module": "src/InteractionController.js"
864
+ }
865
+ }
866
+ ],
867
+ "superclass": {
868
+ "name": "InteractionController",
869
+ "module": "/src/InteractionController.js"
870
+ }
871
+ }
872
+ ],
873
+ "exports": [
874
+ {
875
+ "kind": "js",
876
+ "name": "ClickController",
877
+ "declaration": {
878
+ "name": "ClickController",
879
+ "module": "src/ClickController.js"
880
+ }
881
+ }
882
+ ]
883
+ },
884
+ {
885
+ "kind": "javascript-module",
886
+ "path": "src/HoverController.js",
887
+ "declarations": [
888
+ {
889
+ "kind": "class",
890
+ "description": "",
891
+ "name": "HoverController",
892
+ "members": [
893
+ {
894
+ "kind": "field",
895
+ "name": "type",
896
+ "type": {
897
+ "text": "InteractionTypes"
898
+ },
899
+ "inheritedFrom": {
900
+ "name": "InteractionController",
901
+ "module": "src/InteractionController.js"
902
+ }
903
+ },
904
+ {
905
+ "kind": "field",
906
+ "name": "elementIds",
907
+ "type": {
908
+ "text": "string[]"
909
+ },
910
+ "privacy": "private",
911
+ "default": "[]"
912
+ },
913
+ {
914
+ "kind": "field",
915
+ "name": "focusedin",
916
+ "type": {
917
+ "text": "boolean"
918
+ },
919
+ "default": "false"
920
+ },
921
+ {
922
+ "kind": "field",
923
+ "name": "hoverTimeout",
924
+ "type": {
925
+ "text": "ReturnType<typeof setTimeout> | undefined"
926
+ },
927
+ "privacy": "private"
928
+ },
929
+ {
930
+ "kind": "field",
931
+ "name": "pointerentered",
932
+ "type": {
933
+ "text": "boolean"
934
+ },
935
+ "default": "false"
936
+ },
937
+ {
938
+ "kind": "method",
939
+ "name": "handleKeyup",
940
+ "return": {
941
+ "type": {
942
+ "text": "void"
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "event",
948
+ "type": {
949
+ "text": "KeyboardEvent"
950
+ }
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "kind": "method",
956
+ "name": "handleTargetFocusin",
957
+ "return": {
958
+ "type": {
959
+ "text": "void"
960
+ }
961
+ }
962
+ },
963
+ {
964
+ "kind": "method",
965
+ "name": "handleTargetFocusout",
966
+ "return": {
967
+ "type": {
968
+ "text": "void"
969
+ }
970
+ }
971
+ },
972
+ {
973
+ "kind": "method",
974
+ "name": "handleTargetPointerenter",
975
+ "return": {
976
+ "type": {
977
+ "text": "void"
978
+ }
979
+ }
980
+ },
981
+ {
982
+ "kind": "method",
983
+ "name": "handleTargetPointerleave",
984
+ "return": {
985
+ "type": {
986
+ "text": "void"
987
+ }
988
+ }
989
+ },
990
+ {
991
+ "kind": "method",
992
+ "name": "handleHostPointerenter",
993
+ "return": {
994
+ "type": {
995
+ "text": "void"
996
+ }
997
+ }
998
+ },
999
+ {
1000
+ "kind": "method",
1001
+ "name": "handleHostPointerleave",
1002
+ "return": {
1003
+ "type": {
1004
+ "text": "void"
1005
+ }
1006
+ }
1007
+ },
1008
+ {
1009
+ "kind": "method",
1010
+ "name": "prepareDescription",
1011
+ "return": {
1012
+ "type": {
1013
+ "text": "void"
1014
+ }
1015
+ },
1016
+ "parameters": [
1017
+ {
1018
+ "name": "_",
1019
+ "type": {
1020
+ "text": "HTMLElement"
1021
+ }
1022
+ }
1023
+ ],
1024
+ "inheritedFrom": {
1025
+ "name": "InteractionController",
1026
+ "module": "src/InteractionController.js"
1027
+ }
1028
+ },
1029
+ {
1030
+ "kind": "method",
1031
+ "name": "prepareOverlayRelativeDescription",
1032
+ "privacy": "private",
1033
+ "return": {
1034
+ "type": {
1035
+ "text": "void"
1036
+ }
1037
+ }
1038
+ },
1039
+ {
1040
+ "kind": "method",
1041
+ "name": "prepareContentRelativeDescription",
1042
+ "privacy": "private",
1043
+ "return": {
1044
+ "type": {
1045
+ "text": "void"
1046
+ }
1047
+ }
1048
+ },
1049
+ {
1050
+ "kind": "method",
1051
+ "name": "doPointerleave",
1052
+ "privacy": "protected",
1053
+ "return": {
1054
+ "type": {
1055
+ "text": "void"
1056
+ }
1057
+ }
1058
+ },
1059
+ {
1060
+ "kind": "method",
1061
+ "name": "init",
1062
+ "return": {
1063
+ "type": {
1064
+ "text": "void"
1065
+ }
1066
+ },
1067
+ "inheritedFrom": {
1068
+ "name": "InteractionController",
1069
+ "module": "src/InteractionController.js"
1070
+ }
1071
+ },
1072
+ {
1073
+ "kind": "method",
1074
+ "name": "initOverlay",
1075
+ "return": {
1076
+ "type": {
1077
+ "text": "void"
1078
+ }
1079
+ },
1080
+ "inheritedFrom": {
1081
+ "name": "InteractionController",
1082
+ "module": "src/InteractionController.js"
1083
+ }
1084
+ },
1085
+ {
1086
+ "kind": "method",
1087
+ "name": "removeSafariFocusRingClass",
1088
+ "privacy": "private",
1089
+ "return": {
1090
+ "type": {
1091
+ "text": "void"
1092
+ }
1093
+ }
1094
+ },
1095
+ {
1096
+ "kind": "field",
1097
+ "name": "abortController",
1098
+ "type": {
1099
+ "text": "AbortController"
1100
+ },
1101
+ "inheritedFrom": {
1102
+ "name": "InteractionController",
1103
+ "module": "src/InteractionController.js"
1104
+ }
1105
+ },
1106
+ {
1107
+ "kind": "field",
1108
+ "name": "activelyOpening",
1109
+ "type": {
1110
+ "text": "boolean"
1111
+ },
1112
+ "readonly": true,
1113
+ "inheritedFrom": {
1114
+ "name": "InteractionController",
1115
+ "module": "src/InteractionController.js"
1116
+ }
1117
+ },
1118
+ {
1119
+ "kind": "field",
1120
+ "name": "handleOverlayReady",
1121
+ "type": {
1122
+ "text": "(overlay: AbstractOverlay) => void | undefined"
1123
+ },
1124
+ "privacy": "private",
1125
+ "default": "handleOverlayReady",
1126
+ "inheritedFrom": {
1127
+ "name": "InteractionController",
1128
+ "module": "src/InteractionController.js"
1129
+ }
1130
+ },
1131
+ {
1132
+ "kind": "field",
1133
+ "name": "isLazilyOpen",
1134
+ "type": {
1135
+ "text": "boolean"
1136
+ },
1137
+ "privacy": "private",
1138
+ "default": "false",
1139
+ "inheritedFrom": {
1140
+ "name": "InteractionController",
1141
+ "module": "src/InteractionController.js"
1142
+ }
1143
+ },
1144
+ {
1145
+ "kind": "field",
1146
+ "name": "open",
1147
+ "type": {
1148
+ "text": "boolean"
1149
+ },
1150
+ "privacy": "public",
1151
+ "description": "Set `open` against the associated Overlay lazily.",
1152
+ "inheritedFrom": {
1153
+ "name": "InteractionController",
1154
+ "module": "src/InteractionController.js"
1155
+ }
1156
+ },
1157
+ {
1158
+ "kind": "field",
1159
+ "name": "overlay",
1160
+ "type": {
1161
+ "text": "AbstractOverlay"
1162
+ },
1163
+ "privacy": "public",
1164
+ "default": "overlay",
1165
+ "inheritedFrom": {
1166
+ "name": "InteractionController",
1167
+ "module": "src/InteractionController.js"
1168
+ }
1169
+ },
1170
+ {
1171
+ "kind": "field",
1172
+ "name": "_overlay",
1173
+ "type": {
1174
+ "text": "AbstractOverlay"
1175
+ },
1176
+ "privacy": "private",
1177
+ "inheritedFrom": {
1178
+ "name": "InteractionController",
1179
+ "module": "src/InteractionController.js"
1180
+ }
1181
+ },
1182
+ {
1183
+ "kind": "field",
1184
+ "name": "isPersistent",
1185
+ "type": {
1186
+ "text": "boolean"
1187
+ },
1188
+ "privacy": "protected",
1189
+ "default": "!!isPersistent",
1190
+ "inheritedFrom": {
1191
+ "name": "InteractionController",
1192
+ "module": "src/InteractionController.js"
1193
+ }
1194
+ },
1195
+ {
1196
+ "kind": "method",
1197
+ "name": "releaseDescription",
1198
+ "return": {
1199
+ "type": {
1200
+ "text": "void"
1201
+ }
1202
+ },
1203
+ "inheritedFrom": {
1204
+ "name": "InteractionController",
1205
+ "module": "src/InteractionController.js"
1206
+ }
1207
+ },
1208
+ {
1209
+ "kind": "method",
1210
+ "name": "shouldCompleteOpen",
1211
+ "return": {
1212
+ "type": {
1213
+ "text": "void"
1214
+ }
1215
+ },
1216
+ "inheritedFrom": {
1217
+ "name": "InteractionController",
1218
+ "module": "src/InteractionController.js"
1219
+ }
1220
+ },
1221
+ {
1222
+ "kind": "method",
1223
+ "name": "abort",
1224
+ "return": {
1225
+ "type": {
1226
+ "text": "void"
1227
+ }
1228
+ },
1229
+ "inheritedFrom": {
1230
+ "name": "InteractionController",
1231
+ "module": "src/InteractionController.js"
1232
+ }
1233
+ },
1234
+ {
1235
+ "kind": "method",
1236
+ "name": "hostConnected",
1237
+ "return": {
1238
+ "type": {
1239
+ "text": "void"
1240
+ }
1241
+ },
1242
+ "inheritedFrom": {
1243
+ "name": "InteractionController",
1244
+ "module": "src/InteractionController.js"
1245
+ }
1246
+ },
1247
+ {
1248
+ "kind": "method",
1249
+ "name": "hostDisconnected",
1250
+ "return": {
1251
+ "type": {
1252
+ "text": "void"
1253
+ }
1254
+ },
1255
+ "inheritedFrom": {
1256
+ "name": "InteractionController",
1257
+ "module": "src/InteractionController.js"
1258
+ }
1259
+ }
1260
+ ],
1261
+ "superclass": {
1262
+ "name": "InteractionController",
1263
+ "module": "/src/InteractionController.js"
1264
+ }
1265
+ }
1266
+ ],
1267
+ "exports": [
1268
+ {
1269
+ "kind": "js",
1270
+ "name": "HoverController",
1271
+ "declaration": {
1272
+ "name": "HoverController",
1273
+ "module": "src/HoverController.js"
1274
+ }
1275
+ }
1276
+ ]
1277
+ },
1278
+ {
1279
+ "kind": "javascript-module",
1280
+ "path": "src/InteractionController.js",
1281
+ "declarations": [
1282
+ {
1283
+ "kind": "variable",
1284
+ "name": "lastInteractionType"
1285
+ },
1286
+ {
1287
+ "kind": "variable",
1288
+ "name": "SAFARI_FOCUS_RING_CLASS",
1289
+ "type": {
1290
+ "text": "string"
1291
+ },
1292
+ "default": "'remove-focus-ring-safari-hack'"
1293
+ },
1294
+ {
1295
+ "kind": "class",
1296
+ "description": "",
1297
+ "name": "InteractionController",
1298
+ "members": [
1299
+ {
1300
+ "kind": "field",
1301
+ "name": "abortController",
1302
+ "type": {
1303
+ "text": "AbortController"
1304
+ }
1305
+ },
1306
+ {
1307
+ "kind": "field",
1308
+ "name": "activelyOpening",
1309
+ "type": {
1310
+ "text": "boolean"
1311
+ },
1312
+ "readonly": true
1313
+ },
1314
+ {
1315
+ "kind": "field",
1316
+ "name": "handleOverlayReady",
1317
+ "type": {
1318
+ "text": "(overlay: AbstractOverlay) => void | undefined"
1319
+ },
1320
+ "privacy": "private",
1321
+ "default": "handleOverlayReady"
1322
+ },
1323
+ {
1324
+ "kind": "field",
1325
+ "name": "isLazilyOpen",
1326
+ "type": {
1327
+ "text": "boolean"
1328
+ },
1329
+ "privacy": "private",
1330
+ "default": "false"
1331
+ },
1332
+ {
1333
+ "kind": "field",
1334
+ "name": "open",
1335
+ "type": {
1336
+ "text": "boolean"
1337
+ },
1338
+ "privacy": "public",
1339
+ "description": "Set `open` against the associated Overlay lazily."
1340
+ },
1341
+ {
1342
+ "kind": "field",
1343
+ "name": "overlay",
1344
+ "type": {
1345
+ "text": "AbstractOverlay"
1346
+ },
1347
+ "privacy": "public",
1348
+ "default": "overlay"
1349
+ },
1350
+ {
1351
+ "kind": "field",
1352
+ "name": "_overlay",
1353
+ "type": {
1354
+ "text": "AbstractOverlay"
1355
+ },
1356
+ "privacy": "private"
1357
+ },
1358
+ {
1359
+ "kind": "field",
1360
+ "name": "isPersistent",
1361
+ "type": {
1362
+ "text": "boolean"
1363
+ },
1364
+ "privacy": "protected",
1365
+ "default": "!!isPersistent"
1366
+ },
1367
+ {
1368
+ "kind": "field",
1369
+ "name": "type",
1370
+ "type": {
1371
+ "text": "InteractionTypes"
1372
+ }
1373
+ },
1374
+ {
1375
+ "kind": "method",
1376
+ "name": "prepareDescription",
1377
+ "return": {
1378
+ "type": {
1379
+ "text": "void"
1380
+ }
1381
+ },
1382
+ "parameters": [
1383
+ {
1384
+ "name": "_",
1385
+ "type": {
1386
+ "text": "HTMLElement"
1387
+ }
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "kind": "method",
1393
+ "name": "releaseDescription",
1394
+ "return": {
1395
+ "type": {
1396
+ "text": "void"
1397
+ }
1398
+ }
1399
+ },
1400
+ {
1401
+ "kind": "method",
1402
+ "name": "shouldCompleteOpen",
1403
+ "return": {
1404
+ "type": {
1405
+ "text": "void"
1406
+ }
1407
+ }
1408
+ },
1409
+ {
1410
+ "kind": "method",
1411
+ "name": "init",
1412
+ "return": {
1413
+ "type": {
1414
+ "text": "void"
1415
+ }
1416
+ }
1417
+ },
1418
+ {
1419
+ "kind": "method",
1420
+ "name": "initOverlay",
1421
+ "return": {
1422
+ "type": {
1423
+ "text": "void"
1424
+ }
1425
+ }
1426
+ },
1427
+ {
1428
+ "kind": "method",
1429
+ "name": "abort",
1430
+ "return": {
1431
+ "type": {
1432
+ "text": "void"
1433
+ }
1434
+ }
1435
+ },
1436
+ {
1437
+ "kind": "method",
1438
+ "name": "hostConnected",
1439
+ "return": {
1440
+ "type": {
1441
+ "text": "void"
1442
+ }
1443
+ }
1444
+ },
1445
+ {
1446
+ "kind": "method",
1447
+ "name": "hostDisconnected",
1448
+ "return": {
1449
+ "type": {
1450
+ "text": "void"
1451
+ }
1452
+ }
1453
+ }
1454
+ ]
1455
+ }
1456
+ ],
1457
+ "exports": [
1458
+ {
1459
+ "kind": "js",
1460
+ "name": "lastInteractionType",
1461
+ "declaration": {
1462
+ "name": "lastInteractionType",
1463
+ "module": "src/InteractionController.js"
1464
+ }
1465
+ },
1466
+ {
1467
+ "kind": "js",
1468
+ "name": "SAFARI_FOCUS_RING_CLASS",
1469
+ "declaration": {
1470
+ "name": "SAFARI_FOCUS_RING_CLASS",
1471
+ "module": "src/InteractionController.js"
1472
+ }
1473
+ },
1474
+ {
1475
+ "kind": "js",
1476
+ "name": "InteractionController",
1477
+ "declaration": {
1478
+ "name": "InteractionController",
1479
+ "module": "src/InteractionController.js"
1480
+ }
1481
+ }
1482
+ ]
1483
+ },
1484
+ {
1485
+ "kind": "javascript-module",
1486
+ "path": "src/LongpressController.js",
1487
+ "declarations": [
1488
+ {
1489
+ "kind": "variable",
1490
+ "name": "LONGPRESS_INSTRUCTIONS",
1491
+ "type": {
1492
+ "text": "object"
1493
+ },
1494
+ "default": "{\n touch: 'Double tap and long press for additional options',\n keyboard: 'Press Space or Alt+Down Arrow for additional options',\n mouse: 'Click and hold for additional options',\n}"
1495
+ },
1496
+ {
1497
+ "kind": "class",
1498
+ "description": "",
1499
+ "name": "LongpressController",
1500
+ "members": [
1501
+ {
1502
+ "kind": "field",
1503
+ "name": "type",
1504
+ "type": {
1505
+ "text": "InteractionTypes"
1506
+ },
1507
+ "inheritedFrom": {
1508
+ "name": "InteractionController",
1509
+ "module": "src/InteractionController.js"
1510
+ }
1511
+ },
1512
+ {
1513
+ "kind": "field",
1514
+ "name": "activelyOpening",
1515
+ "type": {
1516
+ "text": "boolean"
1517
+ },
1518
+ "readonly": true,
1519
+ "inheritedFrom": {
1520
+ "name": "InteractionController",
1521
+ "module": "src/InteractionController.js"
1522
+ }
1523
+ },
1524
+ {
1525
+ "kind": "field",
1526
+ "name": "longpressState",
1527
+ "type": {
1528
+ "text": "null | 'potential' | 'opening' | 'pressed'"
1529
+ },
1530
+ "privacy": "protected",
1531
+ "default": "null"
1532
+ },
1533
+ {
1534
+ "kind": "field",
1535
+ "name": "releaseDescription",
1536
+ "return": {
1537
+ "type": {
1538
+ "text": "void"
1539
+ }
1540
+ },
1541
+ "default": "noop",
1542
+ "inheritedFrom": {
1543
+ "name": "InteractionController",
1544
+ "module": "src/InteractionController.js"
1545
+ }
1546
+ },
1547
+ {
1548
+ "kind": "field",
1549
+ "name": "timeout",
1550
+ "type": {
1551
+ "text": "ReturnType<typeof setTimeout>"
1552
+ },
1553
+ "privacy": "private"
1554
+ },
1555
+ {
1556
+ "kind": "method",
1557
+ "name": "handleLongpress",
1558
+ "return": {
1559
+ "type": {
1560
+ "text": "void"
1561
+ }
1562
+ }
1563
+ },
1564
+ {
1565
+ "kind": "method",
1566
+ "name": "handlePointerdown",
1567
+ "return": {
1568
+ "type": {
1569
+ "text": "void"
1570
+ }
1571
+ },
1572
+ "parameters": [
1573
+ {
1574
+ "name": "event",
1575
+ "type": {
1576
+ "text": "PointerEvent"
1577
+ }
1578
+ }
1579
+ ]
1580
+ },
1581
+ {
1582
+ "kind": "field",
1583
+ "name": "handlePointerup",
1584
+ "privacy": "private"
1585
+ },
1586
+ {
1587
+ "kind": "method",
1588
+ "name": "handleKeydown",
1589
+ "privacy": "private",
1590
+ "return": {
1591
+ "type": {
1592
+ "text": "void"
1593
+ }
1594
+ },
1595
+ "parameters": [
1596
+ {
1597
+ "name": "event",
1598
+ "type": {
1599
+ "text": "KeyboardEvent"
1600
+ }
1601
+ }
1602
+ ]
1603
+ },
1604
+ {
1605
+ "kind": "method",
1606
+ "name": "handleKeyup",
1607
+ "privacy": "private",
1608
+ "return": {
1609
+ "type": {
1610
+ "text": "void"
1611
+ }
1612
+ },
1613
+ "parameters": [
1614
+ {
1615
+ "name": "event",
1616
+ "type": {
1617
+ "text": "KeyboardEvent"
1618
+ }
1619
+ }
1620
+ ]
1621
+ },
1622
+ {
1623
+ "kind": "method",
1624
+ "name": "prepareDescription",
1625
+ "return": {
1626
+ "type": {
1627
+ "text": "void"
1628
+ }
1629
+ },
1630
+ "parameters": [
1631
+ {
1632
+ "name": "trigger",
1633
+ "type": {
1634
+ "text": "HTMLElement"
1635
+ }
1636
+ }
1637
+ ],
1638
+ "inheritedFrom": {
1639
+ "name": "InteractionController",
1640
+ "module": "src/InteractionController.js"
1641
+ }
1642
+ },
1643
+ {
1644
+ "kind": "method",
1645
+ "name": "shouldCompleteOpen",
1646
+ "return": {
1647
+ "type": {
1648
+ "text": "void"
1649
+ }
1650
+ },
1651
+ "inheritedFrom": {
1652
+ "name": "InteractionController",
1653
+ "module": "src/InteractionController.js"
1654
+ }
1655
+ },
1656
+ {
1657
+ "kind": "method",
1658
+ "name": "init",
1659
+ "return": {
1660
+ "type": {
1661
+ "text": "void"
1662
+ }
1663
+ },
1664
+ "inheritedFrom": {
1665
+ "name": "InteractionController",
1666
+ "module": "src/InteractionController.js"
1667
+ }
1668
+ },
1669
+ {
1670
+ "kind": "field",
1671
+ "name": "abortController",
1672
+ "type": {
1673
+ "text": "AbortController"
1674
+ },
1675
+ "inheritedFrom": {
1676
+ "name": "InteractionController",
1677
+ "module": "src/InteractionController.js"
1678
+ }
1679
+ },
1680
+ {
1681
+ "kind": "field",
1682
+ "name": "handleOverlayReady",
1683
+ "type": {
1684
+ "text": "(overlay: AbstractOverlay) => void | undefined"
1685
+ },
1686
+ "privacy": "private",
1687
+ "default": "handleOverlayReady",
1688
+ "inheritedFrom": {
1689
+ "name": "InteractionController",
1690
+ "module": "src/InteractionController.js"
1691
+ }
1692
+ },
1693
+ {
1694
+ "kind": "field",
1695
+ "name": "isLazilyOpen",
1696
+ "type": {
1697
+ "text": "boolean"
1698
+ },
1699
+ "privacy": "private",
1700
+ "default": "false",
1701
+ "inheritedFrom": {
1702
+ "name": "InteractionController",
1703
+ "module": "src/InteractionController.js"
1704
+ }
1705
+ },
1706
+ {
1707
+ "kind": "field",
1708
+ "name": "open",
1709
+ "type": {
1710
+ "text": "boolean"
1711
+ },
1712
+ "privacy": "public",
1713
+ "description": "Set `open` against the associated Overlay lazily.",
1714
+ "inheritedFrom": {
1715
+ "name": "InteractionController",
1716
+ "module": "src/InteractionController.js"
1717
+ }
1718
+ },
1719
+ {
1720
+ "kind": "field",
1721
+ "name": "overlay",
1722
+ "type": {
1723
+ "text": "AbstractOverlay"
1724
+ },
1725
+ "privacy": "public",
1726
+ "default": "overlay",
1727
+ "inheritedFrom": {
1728
+ "name": "InteractionController",
1729
+ "module": "src/InteractionController.js"
1730
+ }
1731
+ },
1732
+ {
1733
+ "kind": "field",
1734
+ "name": "_overlay",
1735
+ "type": {
1736
+ "text": "AbstractOverlay"
1737
+ },
1738
+ "privacy": "private",
1739
+ "inheritedFrom": {
1740
+ "name": "InteractionController",
1741
+ "module": "src/InteractionController.js"
1742
+ }
1743
+ },
1744
+ {
1745
+ "kind": "field",
1746
+ "name": "isPersistent",
1747
+ "type": {
1748
+ "text": "boolean"
1749
+ },
1750
+ "privacy": "protected",
1751
+ "default": "!!isPersistent",
1752
+ "inheritedFrom": {
1753
+ "name": "InteractionController",
1754
+ "module": "src/InteractionController.js"
1755
+ }
1756
+ },
1757
+ {
1758
+ "kind": "method",
1759
+ "name": "initOverlay",
1760
+ "return": {
1761
+ "type": {
1762
+ "text": "void"
1763
+ }
1764
+ },
1765
+ "inheritedFrom": {
1766
+ "name": "InteractionController",
1767
+ "module": "src/InteractionController.js"
1768
+ }
1769
+ },
1770
+ {
1771
+ "kind": "method",
1772
+ "name": "abort",
1773
+ "return": {
1774
+ "type": {
1775
+ "text": "void"
1776
+ }
1777
+ },
1778
+ "inheritedFrom": {
1779
+ "name": "InteractionController",
1780
+ "module": "src/InteractionController.js"
1781
+ }
1782
+ },
1783
+ {
1784
+ "kind": "method",
1785
+ "name": "hostConnected",
1786
+ "return": {
1787
+ "type": {
1788
+ "text": "void"
1789
+ }
1790
+ },
1791
+ "inheritedFrom": {
1792
+ "name": "InteractionController",
1793
+ "module": "src/InteractionController.js"
1794
+ }
1795
+ },
1796
+ {
1797
+ "kind": "method",
1798
+ "name": "hostDisconnected",
1799
+ "return": {
1800
+ "type": {
1801
+ "text": "void"
1802
+ }
1803
+ },
1804
+ "inheritedFrom": {
1805
+ "name": "InteractionController",
1806
+ "module": "src/InteractionController.js"
1807
+ }
1808
+ }
1809
+ ],
1810
+ "superclass": {
1811
+ "name": "InteractionController",
1812
+ "module": "/src/InteractionController.js"
1813
+ }
1814
+ }
1815
+ ],
1816
+ "exports": [
1817
+ {
1818
+ "kind": "js",
1819
+ "name": "LONGPRESS_INSTRUCTIONS",
1820
+ "declaration": {
1821
+ "name": "LONGPRESS_INSTRUCTIONS",
1822
+ "module": "src/LongpressController.js"
1823
+ }
1824
+ },
1825
+ {
1826
+ "kind": "js",
1827
+ "name": "LongpressController",
1828
+ "declaration": {
1829
+ "name": "LongpressController",
1830
+ "module": "src/LongpressController.js"
1831
+ }
1832
+ }
1833
+ ]
1834
+ },
1835
+ {
1836
+ "kind": "javascript-module",
1837
+ "path": "src/Overlay.js",
1838
+ "declarations": [
1839
+ {
1840
+ "kind": "class",
1841
+ "description": "",
1842
+ "name": "Overlay",
1843
+ "members": [
1844
+ {
1845
+ "kind": "field",
1846
+ "name": "delayed",
1847
+ "type": {
1848
+ "text": "boolean"
1849
+ },
1850
+ "description": "An Overlay that is `delayed` will wait until a warm-up period of 1000ms\nhas completed before opening. Once the warm-up period has completed, all\nsubsequent Overlays will open immediately. When no Overlays are opened,\na cool-down period of 1000ms will begin. Once the cool-down has completed,\nthe next Overlay to be opened will be subject to the warm-up period if\nprovided that option.\n\nThis behavior helps to manage the performance and user experience by\npreventing multiple overlays from opening simultaneously and ensuring\na smooth transition between opening and closing overlays.",
1851
+ "default": "false",
1852
+ "attribute": "delayed"
1853
+ },
1854
+ {
1855
+ "kind": "field",
1856
+ "name": "_delayed",
1857
+ "type": {
1858
+ "text": "boolean"
1859
+ },
1860
+ "privacy": "private",
1861
+ "default": "false"
1862
+ },
1863
+ {
1864
+ "kind": "field",
1865
+ "name": "dialogEl",
1866
+ "type": {
1867
+ "text": "HTMLDialogElement & {\n showPopover(): void;\n hidePopover(): void;\n }"
1868
+ },
1869
+ "description": "A reference to the dialog element within the overlay.\nThis element is expected to have `showPopover` and `hidePopover` methods."
1870
+ },
1871
+ {
1872
+ "kind": "field",
1873
+ "name": "disabled",
1874
+ "type": {
1875
+ "text": "boolean"
1876
+ },
1877
+ "description": "Indicates whether the overlay is currently functional or not.\n\nWhen set to `true`, the overlay is disabled, and any active strategy is aborted.\nThe overlay will also close if it is currently open. When set to `false`, the\noverlay will re-bind events and re-open if it was previously open.",
1878
+ "default": "false",
1879
+ "attribute": "disabled"
1880
+ },
1881
+ {
1882
+ "kind": "field",
1883
+ "name": "_disabled",
1884
+ "type": {
1885
+ "text": "boolean"
1886
+ },
1887
+ "privacy": "private",
1888
+ "default": "false"
1889
+ },
1890
+ {
1891
+ "kind": "field",
1892
+ "name": "elements",
1893
+ "type": {
1894
+ "text": "OpenableElement[]"
1895
+ },
1896
+ "description": "A query to gather all elements slotted into the default slot, excluding elements\nwith the slot name \"longpress-describedby-descriptor\"."
1897
+ },
1898
+ {
1899
+ "kind": "field",
1900
+ "name": "parentOverlayToForceClose",
1901
+ "type": {
1902
+ "text": "Overlay | undefined"
1903
+ },
1904
+ "privacy": "public",
1905
+ "description": "A reference to the parent overlay that should be force-closed, if any."
1906
+ },
1907
+ {
1908
+ "kind": "field",
1909
+ "name": "hasNonVirtualTrigger",
1910
+ "type": {
1911
+ "text": "boolean"
1912
+ },
1913
+ "privacy": "private",
1914
+ "description": "Determines if the overlay has a non-virtual trigger element.",
1915
+ "return": {
1916
+ "type": {
1917
+ "text": "boolean"
1918
+ }
1919
+ },
1920
+ "readonly": true
1921
+ },
1922
+ {
1923
+ "kind": "field",
1924
+ "name": "offset",
1925
+ "type": {
1926
+ "text": "number | [number, number]"
1927
+ },
1928
+ "default": "0",
1929
+ "description": "The `offset` property accepts either a single number to define the offset of the\nOverlay along the main axis from the trigger, or a 2-tuple to define the offset\nalong both the main axis and the cross axis. This option has no effect when there\nis no trigger element.",
1930
+ "attribute": "offset"
1931
+ },
1932
+ {
1933
+ "kind": "field",
1934
+ "name": "placementController",
1935
+ "type": {
1936
+ "text": "PlacementController"
1937
+ },
1938
+ "privacy": "protected",
1939
+ "description": "Provides an instance of the `PlacementController` for managing the positioning\nof the overlay relative to its trigger element.\n\nIf the `PlacementController` instance does not already exist, it is created and\nassigned to the `_placementController` property.",
1940
+ "return": {
1941
+ "type": {
1942
+ "text": "PlacementController"
1943
+ }
1944
+ },
1945
+ "readonly": true
1946
+ },
1947
+ {
1948
+ "kind": "field",
1949
+ "name": "open",
1950
+ "type": {
1951
+ "text": "boolean"
1952
+ },
1953
+ "description": "Indicates whether the Overlay is projected onto the \"top layer\" or not.\n\nWhen set to `true`, the overlay is open and visible. When set to `false`, the overlay is closed and hidden.",
1954
+ "default": "false",
1955
+ "attribute": "open",
1956
+ "reflects": true
1957
+ },
1958
+ {
1959
+ "kind": "field",
1960
+ "name": "_open",
1961
+ "type": {
1962
+ "text": "boolean"
1963
+ },
1964
+ "privacy": "private",
1965
+ "default": "false"
1966
+ },
1967
+ {
1968
+ "kind": "field",
1969
+ "name": "openCount",
1970
+ "type": {
1971
+ "text": "number"
1972
+ },
1973
+ "static": true,
1974
+ "default": "1",
1975
+ "description": "Tracks the number of overlays that have been opened.\n\nThis static property is used to manage the stacking context of multiple overlays."
1976
+ },
1977
+ {
1978
+ "kind": "field",
1979
+ "name": "placement",
1980
+ "type": {
1981
+ "text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
1982
+ },
1983
+ "description": "Instruct the Overlay where to place itself in relationship to the trigger element.",
1984
+ "attribute": "placement"
1985
+ },
1986
+ {
1987
+ "kind": "field",
1988
+ "name": "lastRequestSlottableState",
1989
+ "type": {
1990
+ "text": "boolean"
1991
+ },
1992
+ "privacy": "private",
1993
+ "default": "false",
1994
+ "description": "The state in which the last `request-slottable` event was dispatched.\n\nThis property ensures that overlays do not dispatch the same state twice in a row."
1995
+ },
1996
+ {
1997
+ "kind": "field",
1998
+ "name": "receivesFocus",
1999
+ "type": {
2000
+ "text": "'true' | 'false' | 'auto'"
2001
+ },
2002
+ "default": "'auto'",
2003
+ "description": "Whether to pass focus to the overlay once opened, or\nto the appropriate value based on the \"type\" of the overlay\nwhen set to `\"auto\"`.",
2004
+ "attribute": "receives-focus"
2005
+ },
2006
+ {
2007
+ "kind": "field",
2008
+ "name": "slotEl",
2009
+ "type": {
2010
+ "text": "HTMLSlotElement"
2011
+ },
2012
+ "description": "A reference to the slot element within the overlay.\n\nThis element is used to manage the content slotted into the overlay."
2013
+ },
2014
+ {
2015
+ "kind": "field",
2016
+ "name": "state",
2017
+ "type": {
2018
+ "text": "OverlayState"
2019
+ },
2020
+ "description": "The current state of the overlay.\n\nThis property reflects the current state of the overlay, such as 'opened' or 'closed'.\nWhen the state changes, it triggers the appropriate actions and updates the component.",
2021
+ "default": "'closed'"
2022
+ },
2023
+ {
2024
+ "kind": "field",
2025
+ "name": "_state",
2026
+ "type": {
2027
+ "text": "OverlayState"
2028
+ },
2029
+ "default": "'closed'"
2030
+ },
2031
+ {
2032
+ "kind": "field",
2033
+ "name": "strategy",
2034
+ "type": {
2035
+ "text": "ClickController | HoverController | LongpressController | undefined"
2036
+ },
2037
+ "privacy": "public",
2038
+ "description": "The interaction strategy for opening the overlay.\nThis can be a ClickController, HoverController, or LongpressController."
2039
+ },
2040
+ {
2041
+ "kind": "field",
2042
+ "name": "tipPadding",
2043
+ "type": {
2044
+ "text": "number"
2045
+ },
2046
+ "description": "The padding around the tip of the overlay.\nThis property defines the padding around the tip of the overlay, which can be used to adjust its positioning.",
2047
+ "attribute": "tip-padding"
2048
+ },
2049
+ {
2050
+ "kind": "field",
2051
+ "name": "trigger",
2052
+ "type": {
2053
+ "text": "string"
2054
+ },
2055
+ "description": "An optional ID reference for the trigger element combined with the optional\ninteraction (click | hover | longpress) by which the overlay should open.\nThe format is `trigger@interaction`, e.g., `trigger@click` opens the overlay\nwhen an element with the ID \"trigger\" is clicked.",
2056
+ "attribute": "trigger"
2057
+ },
2058
+ {
2059
+ "kind": "field",
2060
+ "name": "triggerElement",
2061
+ "type": {
2062
+ "text": "HTMLElement | VirtualTrigger | null"
2063
+ },
2064
+ "default": "null",
2065
+ "description": "An element reference for the trigger element that the overlay should relate to.\nThis property is not reflected as an attribute."
2066
+ },
2067
+ {
2068
+ "kind": "field",
2069
+ "name": "triggerInteraction",
2070
+ "type": {
2071
+ "text": "TriggerInteraction"
2072
+ },
2073
+ "description": "The specific interaction to listen for on the `triggerElement` to open the overlay.\nThis property is not reflected as an attribute."
2074
+ },
2075
+ {
2076
+ "kind": "field",
2077
+ "name": "type",
2078
+ "type": {
2079
+ "text": "\"auto\" | \"hint\" | \"manual\" | \"modal\" | \"page\""
2080
+ },
2081
+ "default": "'auto'",
2082
+ "description": "Configures the open/close heuristics of the Overlay.",
2083
+ "attribute": "type"
2084
+ },
2085
+ {
2086
+ "kind": "field",
2087
+ "name": "wasOpen",
2088
+ "type": {
2089
+ "text": "boolean"
2090
+ },
2091
+ "privacy": "protected",
2092
+ "default": "false",
2093
+ "description": "Tracks whether the overlay was previously open.\nThis is used to restore the open state when re-enabling the overlay."
2094
+ },
2095
+ {
2096
+ "kind": "field",
2097
+ "name": "elementResolver",
2098
+ "type": {
2099
+ "text": "ElementResolutionController"
2100
+ },
2101
+ "privacy": "protected",
2102
+ "description": "Provides an instance of the `ElementResolutionController` for managing the element\nthat the overlay should be associated with. If the instance does not already exist,\nit is created and assigned to the `_elementResolver` property.",
2103
+ "return": {
2104
+ "type": {
2105
+ "text": "ElementResolutionController"
2106
+ }
2107
+ },
2108
+ "readonly": true
2109
+ },
2110
+ {
2111
+ "kind": "field",
2112
+ "name": "usesDialog",
2113
+ "type": {
2114
+ "text": "boolean"
2115
+ },
2116
+ "privacy": "private",
2117
+ "description": "Determines if the overlay uses a dialog.\nReturns `true` if the overlay type is \"modal\" or \"page\".",
2118
+ "return": {
2119
+ "type": {
2120
+ "text": "boolean"
2121
+ }
2122
+ },
2123
+ "readonly": true
2124
+ },
2125
+ {
2126
+ "kind": "field",
2127
+ "name": "popoverValue",
2128
+ "type": {
2129
+ "text": "'auto' | 'manual' | undefined"
2130
+ },
2131
+ "privacy": "private",
2132
+ "description": "Determines the value for the popover attribute based on the overlay type.",
2133
+ "return": {
2134
+ "type": {
2135
+ "text": "'auto' | 'manual' | undefined"
2136
+ }
2137
+ },
2138
+ "readonly": true
2139
+ },
2140
+ {
2141
+ "kind": "field",
2142
+ "name": "requiresPositioning",
2143
+ "type": {
2144
+ "text": "boolean"
2145
+ },
2146
+ "privacy": "protected",
2147
+ "description": "Determines if the overlay requires positioning based on its type and state.",
2148
+ "return": {
2149
+ "type": {
2150
+ "text": "boolean"
2151
+ }
2152
+ },
2153
+ "readonly": true
2154
+ },
2155
+ {
2156
+ "kind": "method",
2157
+ "name": "managePosition",
2158
+ "privacy": "protected",
2159
+ "return": {
2160
+ "type": {
2161
+ "text": "void"
2162
+ }
2163
+ },
2164
+ "description": "Manages the positioning of the overlay relative to its trigger element.\n\nThis method calculates the necessary parameters for positioning the overlay,\nsuch as offset, placement, and tip padding, and then delegates the actual\npositioning to the `PlacementController`."
2165
+ },
2166
+ {
2167
+ "kind": "method",
2168
+ "name": "managePopoverOpen",
2169
+ "privacy": "protected",
2170
+ "return": {
2171
+ "type": {
2172
+ "text": "Promise<void>"
2173
+ }
2174
+ },
2175
+ "description": "Manages the process of opening the popover.\n\nThis method handles the necessary steps to open the popover, including managing delays,\nensuring the popover is in the DOM, making transitions, and applying focus."
2176
+ },
2177
+ {
2178
+ "kind": "method",
2179
+ "name": "applyFocus",
2180
+ "privacy": "protected",
2181
+ "return": {
2182
+ "type": {
2183
+ "text": "Promise<void>"
2184
+ }
2185
+ },
2186
+ "parameters": [
2187
+ {
2188
+ "name": "targetOpenState",
2189
+ "type": {
2190
+ "text": "boolean"
2191
+ },
2192
+ "description": "The target open state of the overlay."
2193
+ },
2194
+ {
2195
+ "name": "focusEl",
2196
+ "type": {
2197
+ "text": "HTMLElement | null"
2198
+ },
2199
+ "description": "The element to focus after opening the popover."
2200
+ }
2201
+ ],
2202
+ "description": "Applies focus to the appropriate element after the popover has been opened.\n\nThis method handles the focus management for the overlay, ensuring that the correct\nelement receives focus based on the overlay's type and state."
2203
+ },
2204
+ {
2205
+ "kind": "method",
2206
+ "name": "returnFocus",
2207
+ "privacy": "protected",
2208
+ "return": {
2209
+ "type": {
2210
+ "text": "void"
2211
+ }
2212
+ },
2213
+ "description": "Returns focus to the trigger element if the overlay is closed.\n\nThis method ensures that focus is returned to the trigger element when the overlay is closed,\nunless the overlay is of type \"hint\" or the focus is already outside the overlay."
2214
+ },
2215
+ {
2216
+ "kind": "field",
2217
+ "name": "closeOnFocusOut",
2218
+ "privacy": "private",
2219
+ "description": "Handles the focus out event to close the overlay if the focus moves outside of it.\n\nThis method ensures that the overlay is closed when the focus moves to an element\noutside of the overlay, unless the focus is moved to a related element.",
2220
+ "parameters": [
2221
+ {
2222
+ "description": "The focus out event.",
2223
+ "name": "event",
2224
+ "type": {
2225
+ "text": "FocusEvent"
2226
+ }
2227
+ }
2228
+ ]
2229
+ },
2230
+ {
2231
+ "kind": "method",
2232
+ "name": "manageOpen",
2233
+ "privacy": "protected",
2234
+ "return": {
2235
+ "type": {
2236
+ "text": "Promise<void>"
2237
+ }
2238
+ },
2239
+ "parameters": [
2240
+ {
2241
+ "name": "oldOpen",
2242
+ "type": {
2243
+ "text": "boolean"
2244
+ },
2245
+ "description": "The previous open state of the overlay."
2246
+ }
2247
+ ],
2248
+ "description": "Manages the process of opening or closing the overlay.\n\nThis method handles the necessary steps to open or close the overlay, including updating the state,\nmanaging the overlay stack, and handling focus events."
2249
+ },
2250
+ {
2251
+ "kind": "method",
2252
+ "name": "bindEvents",
2253
+ "privacy": "protected",
2254
+ "return": {
2255
+ "type": {
2256
+ "text": "void"
2257
+ }
2258
+ },
2259
+ "description": "Binds event handling strategies to the overlay based on the specified trigger interaction.\n\nThis method sets up the appropriate event handling strategy for the overlay, ensuring that\nit responds correctly to user interactions such as clicks, hovers, or long presses."
2260
+ },
2261
+ {
2262
+ "kind": "method",
2263
+ "name": "handleBeforetoggle",
2264
+ "privacy": "protected",
2265
+ "return": {
2266
+ "type": {
2267
+ "text": "void"
2268
+ }
2269
+ },
2270
+ "parameters": [
2271
+ {
2272
+ "name": "event",
2273
+ "type": {
2274
+ "text": "Event & { newState: string }"
2275
+ },
2276
+ "description": "The `beforetoggle` event with the new state."
2277
+ }
2278
+ ],
2279
+ "description": "Handles the `beforetoggle` event to manage the overlay's state.\n\nThis method checks the new state of the event and calls `handleBrowserClose`\nif the new state is not 'open'."
2280
+ },
2281
+ {
2282
+ "kind": "method",
2283
+ "name": "handleBrowserClose",
2284
+ "privacy": "protected",
2285
+ "return": {
2286
+ "type": {
2287
+ "text": "void"
2288
+ }
2289
+ },
2290
+ "parameters": [
2291
+ {
2292
+ "name": "event",
2293
+ "type": {
2294
+ "text": "Event"
2295
+ },
2296
+ "description": "The browser's close event."
2297
+ }
2298
+ ],
2299
+ "description": "Handles the browser's close event to manage the overlay's state.\n\nThis method stops the propagation of the event and closes the overlay if it is not\nactively opening. If the overlay is actively opening, it calls `manuallyKeepOpen`."
2300
+ },
2301
+ {
2302
+ "kind": "method",
2303
+ "name": "manuallyKeepOpen",
2304
+ "privacy": "public",
2305
+ "return": {
2306
+ "type": {
2307
+ "text": "void"
2308
+ }
2309
+ },
2310
+ "description": "Manually keeps the overlay open.\n\nThis method sets the overlay to open, allows placement updates, and manages the open state."
2311
+ },
2312
+ {
2313
+ "kind": "method",
2314
+ "name": "handleSlotchange",
2315
+ "privacy": "protected",
2316
+ "return": {
2317
+ "type": {
2318
+ "text": "void"
2319
+ }
2320
+ },
2321
+ "description": "Handles the `slotchange` event to manage the overlay's state.\n\nThis method checks if there are any elements in the slot. If there are no elements,\nit releases the description from the strategy. If there are elements and the trigger\nis non-virtual, it prepares the description for the trigger element."
2322
+ },
2323
+ {
2324
+ "kind": "method",
2325
+ "name": "shouldPreventClose",
2326
+ "privacy": "public",
2327
+ "return": {
2328
+ "type": {
2329
+ "text": "boolean"
2330
+ }
2331
+ },
2332
+ "description": "Determines whether the overlay should prevent closing.\n\nThis method checks the `willPreventClose` flag and resets it to `false`.\nIt returns the value of the `willPreventClose` flag."
2333
+ },
2334
+ {
2335
+ "kind": "method",
2336
+ "name": "requestSlottable",
2337
+ "privacy": "protected",
2338
+ "return": {
2339
+ "type": {
2340
+ "text": "void"
2341
+ }
2342
+ },
2343
+ "description": "Requests slottable content for the overlay.\n\nThis method dispatches a `SlottableRequestEvent` to request or remove slottable content\nbased on the current open state of the overlay. It ensures that the same state is not\ndispatched twice in a row."
2344
+ },
2345
+ {
2346
+ "kind": "method",
2347
+ "name": "renderContent",
2348
+ "privacy": "protected",
2349
+ "return": {
2350
+ "type": {
2351
+ "text": "TemplateResult"
2352
+ }
2353
+ },
2354
+ "description": "Renders the content of the overlay.\n\nThis method returns a template result containing a slot element. The slot element\nlistens for the `slotchange` event to manage the overlay's state."
2355
+ },
2356
+ {
2357
+ "kind": "field",
2358
+ "name": "dialogStyleMap",
2359
+ "type": {
2360
+ "text": "StyleInfo"
2361
+ },
2362
+ "privacy": "private",
2363
+ "description": "Generates a style map for the dialog element.\n\nThis method returns an object containing CSS custom properties for the dialog element.\nThe `--swc-overlay-open-count` custom property is set to the current open count of overlays.",
2364
+ "return": {
2365
+ "type": {
2366
+ "text": "StyleInfo"
2367
+ }
2368
+ },
2369
+ "readonly": true
2370
+ },
2371
+ {
2372
+ "kind": "method",
2373
+ "name": "renderDialog",
2374
+ "privacy": "protected",
2375
+ "return": {
2376
+ "type": {
2377
+ "text": "TemplateResult"
2378
+ }
2379
+ },
2380
+ "description": "Renders the dialog element for the overlay.\n\nThis method returns a template result containing a dialog element. The dialog element\nincludes various attributes and event listeners to manage the overlay's state and behavior."
2381
+ },
2382
+ {
2383
+ "kind": "method",
2384
+ "name": "renderPopover",
2385
+ "privacy": "protected",
2386
+ "return": {
2387
+ "type": {
2388
+ "text": "TemplateResult"
2389
+ }
2390
+ },
2391
+ "description": "Renders the popover element for the overlay.\n\nThis method returns a template result containing a div element styled as a popover.\nThe popover element includes various attributes and event listeners to manage the overlay's state and behavior."
2392
+ }
2393
+ ],
2394
+ "events": [
2395
+ {
2396
+ "description": "announces that an overlay has completed any entry animations",
2397
+ "name": "sp-opened"
2398
+ },
2399
+ {
2400
+ "description": "announce that an overlay has compelted any exit animations",
2401
+ "name": "sp-closed"
2402
+ },
2403
+ {
2404
+ "description": "requests to add or remove slottable content",
2405
+ "name": "slottable-request"
2406
+ }
2407
+ ],
2408
+ "attributes": [
2409
+ {
2410
+ "name": "delayed",
2411
+ "type": {
2412
+ "text": "boolean"
2413
+ },
2414
+ "description": "An Overlay that is `delayed` will wait until a warm-up period of 1000ms\nhas completed before opening. Once the warm-up period has completed, all\nsubsequent Overlays will open immediately. When no Overlays are opened,\na cool-down period of 1000ms will begin. Once the cool-down has completed,\nthe next Overlay to be opened will be subject to the warm-up period if\nprovided that option.\n\nThis behavior helps to manage the performance and user experience by\npreventing multiple overlays from opening simultaneously and ensuring\na smooth transition between opening and closing overlays.",
2415
+ "default": "false",
2416
+ "fieldName": "delayed"
2417
+ },
2418
+ {
2419
+ "name": "disabled",
2420
+ "type": {
2421
+ "text": "boolean"
2422
+ },
2423
+ "description": "Indicates whether the overlay is currently functional or not.\n\nWhen set to `true`, the overlay is disabled, and any active strategy is aborted.\nThe overlay will also close if it is currently open. When set to `false`, the\noverlay will re-bind events and re-open if it was previously open.",
2424
+ "default": "false",
2425
+ "fieldName": "disabled"
2426
+ },
2427
+ {
2428
+ "name": "offset",
2429
+ "type": {
2430
+ "text": "number | [number, number]"
2431
+ },
2432
+ "default": "0",
2433
+ "description": "The `offset` property accepts either a single number to define the offset of the\nOverlay along the main axis from the trigger, or a 2-tuple to define the offset\nalong both the main axis and the cross axis. This option has no effect when there\nis no trigger element.",
2434
+ "fieldName": "offset"
2435
+ },
2436
+ {
2437
+ "name": "open",
2438
+ "type": {
2439
+ "text": "boolean"
2440
+ },
2441
+ "description": "Indicates whether the Overlay is projected onto the \"top layer\" or not.\n\nWhen set to `true`, the overlay is open and visible. When set to `false`, the overlay is closed and hidden.",
2442
+ "default": "false",
2443
+ "fieldName": "open"
2444
+ },
2445
+ {
2446
+ "name": "placement",
2447
+ "type": {
2448
+ "text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
2449
+ },
2450
+ "description": "Instruct the Overlay where to place itself in relationship to the trigger element.",
2451
+ "fieldName": "placement"
2452
+ },
2453
+ {
2454
+ "name": "receives-focus",
2455
+ "type": {
2456
+ "text": "'true' | 'false' | 'auto'"
2457
+ },
2458
+ "default": "'auto'",
2459
+ "description": "Whether to pass focus to the overlay once opened, or\nto the appropriate value based on the \"type\" of the overlay\nwhen set to `\"auto\"`.",
2460
+ "fieldName": "receivesFocus"
2461
+ },
2462
+ {
2463
+ "name": "tip-padding",
2464
+ "type": {
2465
+ "text": "number"
2466
+ },
2467
+ "description": "The padding around the tip of the overlay.\nThis property defines the padding around the tip of the overlay, which can be used to adjust its positioning.",
2468
+ "fieldName": "tipPadding"
2469
+ },
2470
+ {
2471
+ "name": "trigger",
2472
+ "type": {
2473
+ "text": "string"
2474
+ },
2475
+ "description": "An optional ID reference for the trigger element combined with the optional\ninteraction (click | hover | longpress) by which the overlay should open.\nThe format is `trigger@interaction`, e.g., `trigger@click` opens the overlay\nwhen an element with the ID \"trigger\" is clicked.",
2476
+ "fieldName": "trigger"
2477
+ },
2478
+ {
2479
+ "name": "type",
2480
+ "type": {
2481
+ "text": "\"auto\" | \"hint\" | \"manual\" | \"modal\" | \"page\""
2482
+ },
2483
+ "default": "'auto'",
2484
+ "description": "Configures the open/close heuristics of the Overlay.",
2485
+ "fieldName": "type"
2486
+ }
2487
+ ],
2488
+ "superclass": {
2489
+ "name": "ComputedOverlayBase",
2490
+ "module": "src/Overlay.ts"
2491
+ },
2492
+ "tagName": "sp-overlay",
2493
+ "customElement": true
2494
+ }
2495
+ ],
2496
+ "exports": [
2497
+ {
2498
+ "kind": "js",
2499
+ "name": "LONGPRESS_INSTRUCTIONS",
2500
+ "declaration": {
2501
+ "name": "LONGPRESS_INSTRUCTIONS",
2502
+ "module": "./LongpressController.js"
2503
+ }
2504
+ },
2505
+ {
2506
+ "kind": "js",
2507
+ "name": "Overlay",
2508
+ "declaration": {
2509
+ "name": "Overlay",
2510
+ "module": "src/Overlay.js"
2511
+ }
2512
+ }
2513
+ ]
2514
+ },
2515
+ {
2516
+ "kind": "javascript-module",
2517
+ "path": "src/OverlayDialog.js",
2518
+ "declarations": [
2519
+ {
2520
+ "kind": "mixin",
2521
+ "description": "",
2522
+ "name": "OverlayDialog",
2523
+ "members": [
2524
+ {
2525
+ "kind": "method",
2526
+ "name": "manageDialogOpen",
2527
+ "privacy": "protected",
2528
+ "return": {
2529
+ "type": {
2530
+ "text": "Promise<void>"
2531
+ }
2532
+ }
2533
+ },
2534
+ {
2535
+ "kind": "method",
2536
+ "name": "dialogMakeTransition",
2537
+ "privacy": "protected",
2538
+ "return": {
2539
+ "type": {
2540
+ "text": "Promise<HTMLElement | null>"
2541
+ }
2542
+ },
2543
+ "parameters": [
2544
+ {
2545
+ "name": "targetOpenState",
2546
+ "type": {
2547
+ "text": "boolean"
2548
+ }
2549
+ }
2550
+ ]
2551
+ },
2552
+ {
2553
+ "kind": "method",
2554
+ "name": "dialogApplyFocus",
2555
+ "privacy": "protected",
2556
+ "return": {
2557
+ "type": {
2558
+ "text": "Promise<void>"
2559
+ }
2560
+ },
2561
+ "parameters": [
2562
+ {
2563
+ "name": "targetOpenState",
2564
+ "type": {
2565
+ "text": "boolean"
2566
+ }
2567
+ },
2568
+ {
2569
+ "name": "focusEl",
2570
+ "type": {
2571
+ "text": "HTMLElement | null"
2572
+ }
2573
+ }
2574
+ ]
2575
+ }
2576
+ ],
2577
+ "events": [
2578
+ {
2579
+ "type": {
2580
+ "text": "event"
2581
+ }
2582
+ },
2583
+ {
2584
+ "name": "eventName",
2585
+ "type": {
2586
+ "text": "OverlayStateEvent"
2587
+ }
2588
+ }
2589
+ ],
2590
+ "parameters": [
2591
+ {
2592
+ "name": "constructor",
2593
+ "type": {
2594
+ "text": "T"
2595
+ }
2596
+ }
2597
+ ]
2598
+ }
2599
+ ],
2600
+ "exports": [
2601
+ {
2602
+ "kind": "js",
2603
+ "name": "OverlayDialog",
2604
+ "declaration": {
2605
+ "name": "OverlayDialog",
2606
+ "module": "src/OverlayDialog.js"
2607
+ }
2608
+ }
2609
+ ]
2610
+ },
2611
+ {
2612
+ "kind": "javascript-module",
2613
+ "path": "src/OverlayNoPopover.js",
2614
+ "declarations": [
2615
+ {
2616
+ "kind": "mixin",
2617
+ "description": "",
2618
+ "name": "OverlayNoPopover",
2619
+ "members": [
2620
+ {
2621
+ "kind": "method",
2622
+ "name": "managePopoverOpen",
2623
+ "privacy": "protected",
2624
+ "return": {
2625
+ "type": {
2626
+ "text": "Promise<void>"
2627
+ }
2628
+ }
2629
+ },
2630
+ {
2631
+ "kind": "method",
2632
+ "name": "manageDelay",
2633
+ "privacy": "protected",
2634
+ "return": {
2635
+ "type": {
2636
+ "text": "Promise<void>"
2637
+ }
2638
+ },
2639
+ "parameters": [
2640
+ {
2641
+ "name": "targetOpenState",
2642
+ "type": {
2643
+ "text": "boolean"
2644
+ }
2645
+ }
2646
+ ]
2647
+ },
2648
+ {
2649
+ "kind": "method",
2650
+ "name": "ensureOnDOM",
2651
+ "privacy": "protected",
2652
+ "return": {
2653
+ "type": {
2654
+ "text": "Promise<void>"
2655
+ }
2656
+ },
2657
+ "parameters": [
2658
+ {
2659
+ "name": "_targetOpenState",
2660
+ "type": {
2661
+ "text": "boolean"
2662
+ }
2663
+ }
2664
+ ]
2665
+ },
2666
+ {
2667
+ "kind": "method",
2668
+ "name": "makeTransition",
2669
+ "privacy": "protected",
2670
+ "return": {
2671
+ "type": {
2672
+ "text": "Promise<HTMLElement | null>"
2673
+ }
2674
+ },
2675
+ "parameters": [
2676
+ {
2677
+ "name": "targetOpenState",
2678
+ "type": {
2679
+ "text": "boolean"
2680
+ }
2681
+ }
2682
+ ]
2683
+ }
2684
+ ],
2685
+ "events": [
2686
+ {
2687
+ "type": {
2688
+ "text": "event"
2689
+ }
2690
+ },
2691
+ {
2692
+ "name": "eventName",
2693
+ "type": {
2694
+ "text": "OverlayStateEvent"
2695
+ }
2696
+ }
2697
+ ],
2698
+ "parameters": [
2699
+ {
2700
+ "name": "constructor",
2701
+ "type": {
2702
+ "text": "T"
2703
+ }
2704
+ }
2705
+ ]
2706
+ }
2707
+ ],
2708
+ "exports": [
2709
+ {
2710
+ "kind": "js",
2711
+ "name": "OverlayNoPopover",
2712
+ "declaration": {
2713
+ "name": "OverlayNoPopover",
2714
+ "module": "src/OverlayNoPopover.js"
2715
+ }
2716
+ }
2717
+ ]
2718
+ },
2719
+ {
2720
+ "kind": "javascript-module",
2721
+ "path": "src/OverlayPopover.js",
2722
+ "declarations": [
2723
+ {
2724
+ "kind": "mixin",
2725
+ "description": "",
2726
+ "name": "OverlayPopover",
2727
+ "members": [
2728
+ {
2729
+ "kind": "method",
2730
+ "name": "manageDelay",
2731
+ "privacy": "protected",
2732
+ "return": {
2733
+ "type": {
2734
+ "text": "Promise<void>"
2735
+ }
2736
+ },
2737
+ "parameters": [
2738
+ {
2739
+ "name": "targetOpenState",
2740
+ "type": {
2741
+ "text": "boolean"
2742
+ }
2743
+ }
2744
+ ]
2745
+ },
2746
+ {
2747
+ "kind": "method",
2748
+ "name": "shouldHidePopover",
2749
+ "privacy": "private",
2750
+ "return": {
2751
+ "type": {
2752
+ "text": "Promise<void>"
2753
+ }
2754
+ },
2755
+ "parameters": [
2756
+ {
2757
+ "name": "targetOpenState",
2758
+ "type": {
2759
+ "text": "boolean"
2760
+ }
2761
+ }
2762
+ ],
2763
+ "description": "A popover should be hidden _after_ it is no longer on top-layer because\nthe position metrics will have changed from when it was originally positioned."
2764
+ },
2765
+ {
2766
+ "kind": "method",
2767
+ "name": "shouldShowPopover",
2768
+ "privacy": "private",
2769
+ "return": {
2770
+ "type": {
2771
+ "text": "void"
2772
+ }
2773
+ },
2774
+ "parameters": [
2775
+ {
2776
+ "name": "targetOpenState",
2777
+ "type": {
2778
+ "text": "boolean"
2779
+ }
2780
+ }
2781
+ ]
2782
+ },
2783
+ {
2784
+ "kind": "method",
2785
+ "name": "ensureOnDOM",
2786
+ "privacy": "protected",
2787
+ "return": {
2788
+ "type": {
2789
+ "text": "Promise<void>"
2790
+ }
2791
+ },
2792
+ "parameters": [
2793
+ {
2794
+ "name": "targetOpenState",
2795
+ "type": {
2796
+ "text": "boolean"
2797
+ }
2798
+ }
2799
+ ]
2800
+ },
2801
+ {
2802
+ "kind": "method",
2803
+ "name": "makeTransition",
2804
+ "privacy": "protected",
2805
+ "return": {
2806
+ "type": {
2807
+ "text": "Promise<HTMLElement | null>"
2808
+ }
2809
+ },
2810
+ "parameters": [
2811
+ {
2812
+ "name": "targetOpenState",
2813
+ "type": {
2814
+ "text": "boolean"
2815
+ }
2816
+ }
2817
+ ]
2818
+ }
2819
+ ],
2820
+ "events": [
2821
+ {
2822
+ "type": {
2823
+ "text": "event"
2824
+ }
2825
+ },
2826
+ {
2827
+ "name": "eventName",
2828
+ "type": {
2829
+ "text": "OverlayStateEvent"
2830
+ }
2831
+ }
2832
+ ],
2833
+ "parameters": [
2834
+ {
2835
+ "name": "constructor",
2836
+ "type": {
2837
+ "text": "T"
2838
+ }
2839
+ }
2840
+ ]
2841
+ }
2842
+ ],
2843
+ "exports": [
2844
+ {
2845
+ "kind": "js",
2846
+ "name": "OverlayPopover",
2847
+ "declaration": {
2848
+ "name": "OverlayPopover",
2849
+ "module": "src/OverlayPopover.js"
2850
+ }
2851
+ }
2852
+ ]
2853
+ },
2854
+ {
2855
+ "kind": "javascript-module",
2856
+ "path": "src/OverlayStack.js",
2857
+ "declarations": [
2858
+ {
2859
+ "kind": "variable",
2860
+ "name": "overlayStack",
2861
+ "default": "new OverlayStack()"
2862
+ }
2863
+ ],
2864
+ "exports": [
2865
+ {
2866
+ "kind": "js",
2867
+ "name": "overlayStack",
2868
+ "declaration": {
2869
+ "name": "overlayStack",
2870
+ "module": "src/OverlayStack.js"
2871
+ }
2872
+ }
2873
+ ]
2874
+ },
2875
+ {
2876
+ "kind": "javascript-module",
2877
+ "path": "src/OverlayTrigger.js",
2878
+ "declarations": [
2879
+ {
2880
+ "kind": "class",
2881
+ "description": "",
2882
+ "name": "OverlayTrigger",
2883
+ "slots": [
2884
+ {
2885
+ "description": "The content that will trigger the various overlays",
2886
+ "name": "trigger"
2887
+ },
2888
+ {
2889
+ "description": "The content that will be displayed on hover",
2890
+ "name": "hover-content"
2891
+ },
2892
+ {
2893
+ "description": "The content that will be displayed on click",
2894
+ "name": "click-content"
2895
+ },
2896
+ {
2897
+ "description": "The content that will be displayed on click",
2898
+ "name": "longpress-content"
2899
+ }
2900
+ ],
2901
+ "members": [
2902
+ {
2903
+ "kind": "field",
2904
+ "name": "content",
2905
+ "type": {
2906
+ "text": "string"
2907
+ },
2908
+ "default": "'click hover longpress'",
2909
+ "attribute": "content"
2910
+ },
2911
+ {
2912
+ "kind": "field",
2913
+ "name": "placement",
2914
+ "type": {
2915
+ "text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
2916
+ },
2917
+ "privacy": "public",
2918
+ "attribute": "placement",
2919
+ "reflects": true
2920
+ },
2921
+ {
2922
+ "kind": "field",
2923
+ "name": "type",
2924
+ "type": {
2925
+ "text": "OverlayTriggerInteractions | undefined"
2926
+ },
2927
+ "privacy": "public",
2928
+ "attribute": "type"
2929
+ },
2930
+ {
2931
+ "kind": "field",
2932
+ "name": "offset",
2933
+ "type": {
2934
+ "text": "number"
2935
+ },
2936
+ "privacy": "public",
2937
+ "default": "6",
2938
+ "attribute": "offset"
2939
+ },
2940
+ {
2941
+ "kind": "field",
2942
+ "name": "open",
2943
+ "type": {
2944
+ "text": "OverlayContentTypes | undefined"
2945
+ },
2946
+ "privacy": "public",
2947
+ "attribute": "open",
2948
+ "reflects": true
2949
+ },
2950
+ {
2951
+ "kind": "field",
2952
+ "name": "disabled",
2953
+ "type": {
2954
+ "text": "boolean"
2955
+ },
2956
+ "privacy": "public",
2957
+ "default": "false",
2958
+ "attribute": "disabled",
2959
+ "reflects": true
2960
+ },
2961
+ {
2962
+ "kind": "field",
2963
+ "name": "receivesFocus",
2964
+ "type": {
2965
+ "text": "'true' | 'false' | 'auto'"
2966
+ },
2967
+ "privacy": "public",
2968
+ "default": "'auto'",
2969
+ "attribute": "receives-focus"
2970
+ },
2971
+ {
2972
+ "kind": "field",
2973
+ "name": "clickContent",
2974
+ "type": {
2975
+ "text": "HTMLElement[]"
2976
+ },
2977
+ "privacy": "private",
2978
+ "default": "[]"
2979
+ },
2980
+ {
2981
+ "kind": "field",
2982
+ "name": "clickPlacement",
2983
+ "type": {
2984
+ "text": "Placement | undefined"
2985
+ },
2986
+ "privacy": "private"
2987
+ },
2988
+ {
2989
+ "kind": "field",
2990
+ "name": "longpressContent",
2991
+ "type": {
2992
+ "text": "HTMLElement[]"
2993
+ },
2994
+ "privacy": "private",
2995
+ "default": "[]"
2996
+ },
2997
+ {
2998
+ "kind": "field",
2999
+ "name": "longpressPlacement",
3000
+ "type": {
3001
+ "text": "Placement | undefined"
3002
+ },
3003
+ "privacy": "private"
3004
+ },
3005
+ {
3006
+ "kind": "field",
3007
+ "name": "hoverContent",
3008
+ "type": {
3009
+ "text": "HTMLElement[]"
3010
+ },
3011
+ "privacy": "private",
3012
+ "default": "[]"
3013
+ },
3014
+ {
3015
+ "kind": "field",
3016
+ "name": "hoverPlacement",
3017
+ "type": {
3018
+ "text": "Placement | undefined"
3019
+ },
3020
+ "privacy": "private"
3021
+ },
3022
+ {
3023
+ "kind": "field",
3024
+ "name": "targetContent",
3025
+ "type": {
3026
+ "text": "HTMLElement[]"
3027
+ },
3028
+ "privacy": "private",
3029
+ "default": "[]"
3030
+ },
3031
+ {
3032
+ "kind": "field",
3033
+ "name": "clickOverlayElement",
3034
+ "type": {
3035
+ "text": "Overlay"
3036
+ }
3037
+ },
3038
+ {
3039
+ "kind": "field",
3040
+ "name": "longpressOverlayElement",
3041
+ "type": {
3042
+ "text": "Overlay"
3043
+ }
3044
+ },
3045
+ {
3046
+ "kind": "field",
3047
+ "name": "hoverOverlayElement",
3048
+ "type": {
3049
+ "text": "Overlay"
3050
+ }
3051
+ },
3052
+ {
3053
+ "kind": "method",
3054
+ "name": "getAssignedElementsFromSlot",
3055
+ "privacy": "private",
3056
+ "return": {
3057
+ "type": {
3058
+ "text": "HTMLElement[]"
3059
+ }
3060
+ },
3061
+ "parameters": [
3062
+ {
3063
+ "name": "slot",
3064
+ "type": {
3065
+ "text": "HTMLSlotElement"
3066
+ }
3067
+ }
3068
+ ]
3069
+ },
3070
+ {
3071
+ "kind": "method",
3072
+ "name": "handleTriggerContent",
3073
+ "privacy": "private",
3074
+ "return": {
3075
+ "type": {
3076
+ "text": "void"
3077
+ }
3078
+ },
3079
+ "parameters": [
3080
+ {
3081
+ "name": "event",
3082
+ "type": {
3083
+ "text": "Event & { target: HTMLSlotElement }"
3084
+ }
3085
+ }
3086
+ ]
3087
+ },
3088
+ {
3089
+ "kind": "method",
3090
+ "name": "handleSlotContent",
3091
+ "privacy": "private",
3092
+ "return": {
3093
+ "type": {
3094
+ "text": "void"
3095
+ }
3096
+ },
3097
+ "parameters": [
3098
+ {
3099
+ "name": "event",
3100
+ "type": {
3101
+ "text": "Event & { target: HTMLSlotElement }"
3102
+ }
3103
+ }
3104
+ ]
3105
+ },
3106
+ {
3107
+ "kind": "method",
3108
+ "name": "handleBeforetoggle",
3109
+ "privacy": "private",
3110
+ "return": {
3111
+ "type": {
3112
+ "text": "void"
3113
+ }
3114
+ },
3115
+ "parameters": [
3116
+ {
3117
+ "name": "event",
3118
+ "type": {
3119
+ "text": "BeforetoggleOpenEvent"
3120
+ }
3121
+ }
3122
+ ]
3123
+ },
3124
+ {
3125
+ "kind": "method",
3126
+ "name": "renderSlot",
3127
+ "privacy": "protected",
3128
+ "return": {
3129
+ "type": {
3130
+ "text": "TemplateResult"
3131
+ }
3132
+ },
3133
+ "parameters": [
3134
+ {
3135
+ "name": "name",
3136
+ "type": {
3137
+ "text": "string"
3138
+ }
3139
+ }
3140
+ ]
3141
+ },
3142
+ {
3143
+ "kind": "method",
3144
+ "name": "renderClickOverlay",
3145
+ "privacy": "protected",
3146
+ "return": {
3147
+ "type": {
3148
+ "text": "TemplateResult"
3149
+ }
3150
+ }
3151
+ },
3152
+ {
3153
+ "kind": "method",
3154
+ "name": "renderHoverOverlay",
3155
+ "privacy": "protected",
3156
+ "return": {
3157
+ "type": {
3158
+ "text": "TemplateResult"
3159
+ }
3160
+ }
3161
+ },
3162
+ {
3163
+ "kind": "method",
3164
+ "name": "renderLongpressOverlay",
3165
+ "privacy": "protected",
3166
+ "return": {
3167
+ "type": {
3168
+ "text": "TemplateResult"
3169
+ }
3170
+ }
3171
+ },
3172
+ {
3173
+ "kind": "method",
3174
+ "name": "getUpdateComplete",
3175
+ "privacy": "protected",
3176
+ "return": {
3177
+ "type": {
3178
+ "text": "Promise<boolean>"
3179
+ }
3180
+ }
3181
+ }
3182
+ ],
3183
+ "events": [
3184
+ {
3185
+ "description": "Announces that the overlay has been opened",
3186
+ "name": "sp-opened"
3187
+ },
3188
+ {
3189
+ "description": "Announces that the overlay has been closed",
3190
+ "name": "sp-closed"
3191
+ }
3192
+ ],
3193
+ "attributes": [
3194
+ {
3195
+ "name": "placement",
3196
+ "type": {
3197
+ "text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
3198
+ },
3199
+ "fieldName": "placement",
3200
+ "attribute": "placement"
3201
+ },
3202
+ {
3203
+ "name": "content",
3204
+ "type": {
3205
+ "text": "string"
3206
+ },
3207
+ "default": "'click hover longpress'",
3208
+ "fieldName": "content"
3209
+ },
3210
+ {
3211
+ "name": "type",
3212
+ "type": {
3213
+ "text": "OverlayTriggerInteractions | undefined"
3214
+ },
3215
+ "fieldName": "type"
3216
+ },
3217
+ {
3218
+ "name": "offset",
3219
+ "type": {
3220
+ "text": "number"
3221
+ },
3222
+ "default": "6",
3223
+ "fieldName": "offset"
3224
+ },
3225
+ {
3226
+ "name": "open",
3227
+ "type": {
3228
+ "text": "OverlayContentTypes | undefined"
3229
+ },
3230
+ "fieldName": "open"
3231
+ },
3232
+ {
3233
+ "name": "disabled",
3234
+ "type": {
3235
+ "text": "boolean"
3236
+ },
3237
+ "default": "false",
3238
+ "fieldName": "disabled"
3239
+ },
3240
+ {
3241
+ "name": "receives-focus",
3242
+ "type": {
3243
+ "text": "'true' | 'false' | 'auto'"
3244
+ },
3245
+ "default": "'auto'",
3246
+ "fieldName": "receivesFocus"
3247
+ }
3248
+ ],
3249
+ "superclass": {
3250
+ "name": "SpectrumElement",
3251
+ "package": "@spectrum-web-components/base"
3252
+ },
3253
+ "tagName": "overlay-trigger",
3254
+ "customElement": true
3255
+ }
3256
+ ],
3257
+ "exports": [
3258
+ {
3259
+ "kind": "js",
3260
+ "name": "OverlayTrigger",
3261
+ "declaration": {
3262
+ "name": "OverlayTrigger",
3263
+ "module": "src/OverlayTrigger.js"
3264
+ }
3265
+ }
3266
+ ]
3267
+ },
3268
+ {
3269
+ "kind": "javascript-module",
3270
+ "path": "src/PlacementController.js",
3271
+ "declarations": [
3272
+ {
3273
+ "kind": "variable",
3274
+ "name": "placementUpdatedSymbol",
3275
+ "description": "Symbol used to indicate that the placement has been updated."
3276
+ },
3277
+ {
3278
+ "kind": "class",
3279
+ "description": "Controller for managing the placement of an overlay.\n\nThis class implements the ReactiveController interface and provides methods\nfor managing the positioning and constraints of an overlay element.",
3280
+ "name": "PlacementController",
3281
+ "members": [
3282
+ {
3283
+ "kind": "field",
3284
+ "name": "cleanup",
3285
+ "type": {
3286
+ "text": "() => void | undefined"
3287
+ },
3288
+ "privacy": "private",
3289
+ "description": "Function to clean up resources when the controller is no longer needed."
3290
+ },
3291
+ {
3292
+ "kind": "field",
3293
+ "name": "initialHeight",
3294
+ "type": {
3295
+ "text": "number"
3296
+ },
3297
+ "description": "Initial height of the overlay."
3298
+ },
3299
+ {
3300
+ "kind": "field",
3301
+ "name": "isConstrained",
3302
+ "type": {
3303
+ "text": "boolean"
3304
+ },
3305
+ "description": "Indicates whether the overlay is constrained by available space."
3306
+ },
3307
+ {
3308
+ "kind": "field",
3309
+ "name": "host",
3310
+ "type": {
3311
+ "text": "ReactiveElement & { elements: OpenableElement[] }"
3312
+ },
3313
+ "privacy": "private",
3314
+ "description": "The host element that uses this controller.",
3315
+ "default": "host"
3316
+ },
3317
+ {
3318
+ "kind": "field",
3319
+ "name": "options",
3320
+ "type": {
3321
+ "text": "OverlayOptionsV1"
3322
+ },
3323
+ "privacy": "private",
3324
+ "description": "Options for configuring the overlay placement."
3325
+ },
3326
+ {
3327
+ "kind": "field",
3328
+ "name": "originalPlacements",
3329
+ "privacy": "private",
3330
+ "default": "new WeakMap<HTMLElement, Placement>()",
3331
+ "description": "A WeakMap to store the original placements of overlay elements.",
3332
+ "type": {
3333
+ "text": "WeakMap<HTMLElement, Placement>"
3334
+ }
3335
+ },
3336
+ {
3337
+ "kind": "field",
3338
+ "name": "target",
3339
+ "type": {
3340
+ "text": "HTMLElement"
3341
+ },
3342
+ "privacy": "private",
3343
+ "description": "The target element for the overlay."
3344
+ },
3345
+ {
3346
+ "kind": "method",
3347
+ "name": "placeOverlay",
3348
+ "privacy": "public",
3349
+ "return": {
3350
+ "type": {
3351
+ "text": "Promise<void>"
3352
+ }
3353
+ },
3354
+ "parameters": [
3355
+ {
3356
+ "name": "target",
3357
+ "default": "this.target",
3358
+ "type": {
3359
+ "text": "HTMLElement"
3360
+ },
3361
+ "description": "The target element for the overlay.",
3362
+ "optional": true
3363
+ },
3364
+ {
3365
+ "name": "options",
3366
+ "default": "this.options",
3367
+ "type": {
3368
+ "text": "OverlayOptionsV1"
3369
+ },
3370
+ "description": "The options for configuring the overlay placement.",
3371
+ "optional": true
3372
+ }
3373
+ ],
3374
+ "description": "Places the overlay relative to the target element.\n\nThis method sets up the necessary configurations and event listeners to manage the\npositioning and constraints of the overlay element."
3375
+ },
3376
+ {
3377
+ "kind": "field",
3378
+ "name": "allowPlacementUpdate",
3379
+ "type": {
3380
+ "text": "boolean"
3381
+ },
3382
+ "privacy": "public",
3383
+ "default": "false",
3384
+ "description": "Flag to allow or disallow placement updates."
3385
+ },
3386
+ {
3387
+ "kind": "field",
3388
+ "name": "closeForAncestorUpdate",
3389
+ "description": "Closes the overlay if an ancestor element is updated.\n\nThis method checks if placement updates are allowed and if the overlay type is not 'modal'.\nIf these conditions are met and a cleanup function is defined, it dispatches a 'close' event\non the target element to close the overlay."
3390
+ },
3391
+ {
3392
+ "kind": "field",
3393
+ "name": "updatePlacement",
3394
+ "privacy": "private",
3395
+ "description": "Updates the placement of the overlay.\n\nThis method calls the computePlacement method to recalculate the overlay's position."
3396
+ },
3397
+ {
3398
+ "kind": "method",
3399
+ "name": "computePlacement",
3400
+ "return": {
3401
+ "type": {
3402
+ "text": "Promise<void>"
3403
+ }
3404
+ },
3405
+ "description": "Computes the placement of the overlay relative to the target element.\n\nThis method calculates the necessary positioning and constraints for the overlay element\nusing various middleware functions. It updates the overlay's style and attributes based\non the computed position."
3406
+ },
3407
+ {
3408
+ "kind": "method",
3409
+ "name": "clearOverlayPosition",
3410
+ "privacy": "public",
3411
+ "return": {
3412
+ "type": {
3413
+ "text": "void"
3414
+ }
3415
+ },
3416
+ "description": "Clears the overlay's position styles.\n\nThis method removes the max-height and max-width styles from the target element,\nand resets the initial height and constrained state of the overlay."
3417
+ },
3418
+ {
3419
+ "kind": "field",
3420
+ "name": "resetOverlayPosition",
3421
+ "privacy": "public",
3422
+ "description": "Resets the overlay's position.\n\nThis method clears the overlay's position, forces a reflow, and recomputes the placement."
3423
+ },
3424
+ {
3425
+ "kind": "method",
3426
+ "name": "hostConnected",
3427
+ "return": {
3428
+ "type": {
3429
+ "text": "void"
3430
+ }
3431
+ },
3432
+ "description": "Lifecycle method called when the host element is connected to the DOM.\n\nThis method sets up an event listener to reset the overlay's position when the 'sp-update-overlays' event is dispatched."
3433
+ },
3434
+ {
3435
+ "kind": "method",
3436
+ "name": "hostUpdated",
3437
+ "return": {
3438
+ "type": {
3439
+ "text": "void"
3440
+ }
3441
+ },
3442
+ "description": "Lifecycle method called when the host element is updated.\n\nThis method cleans up resources if the overlay is not open."
3443
+ },
3444
+ {
3445
+ "kind": "method",
3446
+ "name": "hostDisconnected",
3447
+ "return": {
3448
+ "type": {
3449
+ "text": "void"
3450
+ }
3451
+ },
3452
+ "description": "Lifecycle method called when the host element is disconnected from the DOM.\n\nThis method removes the event listener and cleans up resources."
3453
+ }
3454
+ ]
3455
+ }
3456
+ ],
3457
+ "exports": [
3458
+ {
3459
+ "kind": "js",
3460
+ "name": "placementUpdatedSymbol",
3461
+ "declaration": {
3462
+ "name": "placementUpdatedSymbol",
3463
+ "module": "src/PlacementController.js"
3464
+ }
3465
+ },
3466
+ {
3467
+ "kind": "js",
3468
+ "name": "PlacementController",
3469
+ "declaration": {
3470
+ "name": "PlacementController",
3471
+ "module": "src/PlacementController.js"
3472
+ }
3473
+ }
3474
+ ]
3475
+ },
3476
+ {
3477
+ "kind": "javascript-module",
3478
+ "path": "src/VirtualTrigger.js",
3479
+ "declarations": [
3480
+ {
3481
+ "kind": "class",
3482
+ "description": "",
3483
+ "name": "VirtualTrigger",
3484
+ "members": [
3485
+ {
3486
+ "kind": "field",
3487
+ "name": "x",
3488
+ "type": {
3489
+ "text": "number"
3490
+ },
3491
+ "privacy": "private",
3492
+ "default": "x"
3493
+ },
3494
+ {
3495
+ "kind": "field",
3496
+ "name": "y",
3497
+ "type": {
3498
+ "text": "number"
3499
+ },
3500
+ "privacy": "private",
3501
+ "default": "y"
3502
+ },
3503
+ {
3504
+ "kind": "method",
3505
+ "name": "updateBoundingClientRect",
3506
+ "privacy": "public",
3507
+ "return": {
3508
+ "type": {
3509
+ "text": "void"
3510
+ }
3511
+ },
3512
+ "parameters": [
3513
+ {
3514
+ "name": "x",
3515
+ "type": {
3516
+ "text": "number"
3517
+ }
3518
+ },
3519
+ {
3520
+ "name": "y",
3521
+ "type": {
3522
+ "text": "number"
3523
+ }
3524
+ }
3525
+ ]
3526
+ },
3527
+ {
3528
+ "kind": "method",
3529
+ "name": "getBoundingClientRect",
3530
+ "privacy": "public",
3531
+ "return": {
3532
+ "type": {
3533
+ "text": "DOMRect"
3534
+ }
3535
+ }
3536
+ }
3537
+ ]
3538
+ }
3539
+ ],
3540
+ "exports": [
3541
+ {
3542
+ "kind": "js",
3543
+ "name": "VirtualTrigger",
3544
+ "declaration": {
3545
+ "name": "VirtualTrigger",
3546
+ "module": "src/VirtualTrigger.js"
3547
+ }
3548
+ }
3549
+ ]
3550
+ }
3551
+ ]
3552
+ }