@spectrum-web-components/dialog 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 +1353 -0
  2. package/package.json +11 -11
@@ -0,0 +1,1353 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-dialog-base.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-dialog-base",
13
+ "declaration": {
14
+ "name": "DialogBase",
15
+ "module": "/src/DialogBase.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "sp-dialog-wrapper.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "sp-dialog-wrapper",
28
+ "declaration": {
29
+ "name": "DialogWrapper",
30
+ "module": "/src/DialogWrapper.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "sp-dialog.js",
38
+ "declarations": [],
39
+ "exports": [
40
+ {
41
+ "kind": "custom-element-definition",
42
+ "name": "sp-dialog",
43
+ "declaration": {
44
+ "name": "Dialog",
45
+ "module": "/src/Dialog.js"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "kind": "javascript-module",
52
+ "path": "src/Dialog.js",
53
+ "declarations": [
54
+ {
55
+ "kind": "class",
56
+ "description": "",
57
+ "name": "Dialog",
58
+ "slots": [
59
+ {
60
+ "description": "Accepts a hero image to display at the top of the dialog",
61
+ "name": "hero"
62
+ },
63
+ {
64
+ "description": "Acts as the heading of the dialog. This should be an actual heading tag `<h1-6 />`",
65
+ "name": "heading"
66
+ },
67
+ {
68
+ "description": "Content not addressed to a specific slot will be interpreted as the main content of the dialog",
69
+ "name": ""
70
+ },
71
+ {
72
+ "description": "Content addressed to the `footer` will be placed below the main content and to the side of any `[slot='button']` content",
73
+ "name": "footer"
74
+ },
75
+ {
76
+ "description": "Button elements addressed to this slot may be placed below the content when not delivered in a fullscreen mode",
77
+ "name": "button"
78
+ }
79
+ ],
80
+ "members": [
81
+ {
82
+ "kind": "field",
83
+ "name": "closeButton",
84
+ "type": {
85
+ "text": "CloseButton | undefined"
86
+ }
87
+ },
88
+ {
89
+ "kind": "field",
90
+ "name": "error",
91
+ "type": {
92
+ "text": "boolean"
93
+ },
94
+ "privacy": "public",
95
+ "default": "false",
96
+ "deprecated": "Use the Alert Dialog component with `variant=\"error\"` instead.",
97
+ "attribute": "error",
98
+ "reflects": true
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "dismissable",
103
+ "type": {
104
+ "text": "boolean"
105
+ },
106
+ "privacy": "public",
107
+ "default": "false",
108
+ "attribute": "dismissable",
109
+ "reflects": true
110
+ },
111
+ {
112
+ "kind": "field",
113
+ "name": "dismissLabel",
114
+ "type": {
115
+ "text": "string"
116
+ },
117
+ "privacy": "public",
118
+ "default": "'Close'",
119
+ "attribute": "dismiss-label",
120
+ "reflects": true
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "hasFooter",
125
+ "type": {
126
+ "text": "boolean"
127
+ },
128
+ "privacy": "protected",
129
+ "readonly": true
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "hasButtons",
134
+ "type": {
135
+ "text": "boolean"
136
+ },
137
+ "privacy": "protected",
138
+ "readonly": true
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "hasHero",
143
+ "type": {
144
+ "text": "boolean"
145
+ },
146
+ "privacy": "protected",
147
+ "readonly": true
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "noDivider",
152
+ "type": {
153
+ "text": "boolean"
154
+ },
155
+ "privacy": "public",
156
+ "default": "false",
157
+ "attribute": "no-divider",
158
+ "reflects": true
159
+ },
160
+ {
161
+ "kind": "field",
162
+ "name": "mode",
163
+ "type": {
164
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
165
+ },
166
+ "privacy": "public",
167
+ "attribute": "mode",
168
+ "reflects": true
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "size",
173
+ "type": {
174
+ "text": "'s' | 'm' | 'l' | undefined"
175
+ },
176
+ "privacy": "public",
177
+ "attribute": "size",
178
+ "reflects": true
179
+ },
180
+ {
181
+ "kind": "method",
182
+ "name": "close",
183
+ "privacy": "public",
184
+ "return": {
185
+ "type": {
186
+ "text": "void"
187
+ }
188
+ }
189
+ },
190
+ {
191
+ "kind": "method",
192
+ "name": "renderHero",
193
+ "privacy": "protected",
194
+ "return": {
195
+ "type": {
196
+ "text": "TemplateResult"
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "kind": "method",
202
+ "name": "renderFooter",
203
+ "privacy": "protected",
204
+ "return": {
205
+ "type": {
206
+ "text": "TemplateResult"
207
+ }
208
+ }
209
+ },
210
+ {
211
+ "kind": "method",
212
+ "name": "renderButtons",
213
+ "privacy": "protected",
214
+ "return": {
215
+ "type": {
216
+ "text": "TemplateResult"
217
+ }
218
+ }
219
+ },
220
+ {
221
+ "kind": "method",
222
+ "name": "renderDismiss",
223
+ "privacy": "protected",
224
+ "return": {
225
+ "type": {
226
+ "text": "TemplateResult"
227
+ }
228
+ }
229
+ }
230
+ ],
231
+ "events": [
232
+ {
233
+ "name": "close",
234
+ "type": {
235
+ "text": "Event"
236
+ },
237
+ "description": "Announces that the dialog has been closed."
238
+ }
239
+ ],
240
+ "attributes": [
241
+ {
242
+ "name": "error",
243
+ "type": {
244
+ "text": "boolean"
245
+ },
246
+ "default": "false",
247
+ "deprecated": "Use the Alert Dialog component with `variant=\"error\"` instead.",
248
+ "fieldName": "error"
249
+ },
250
+ {
251
+ "name": "dismissable",
252
+ "type": {
253
+ "text": "boolean"
254
+ },
255
+ "default": "false",
256
+ "fieldName": "dismissable"
257
+ },
258
+ {
259
+ "name": "dismiss-label",
260
+ "type": {
261
+ "text": "string"
262
+ },
263
+ "default": "'Close'",
264
+ "fieldName": "dismissLabel"
265
+ },
266
+ {
267
+ "name": "no-divider",
268
+ "type": {
269
+ "text": "boolean"
270
+ },
271
+ "default": "false",
272
+ "fieldName": "noDivider"
273
+ },
274
+ {
275
+ "name": "mode",
276
+ "type": {
277
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
278
+ },
279
+ "fieldName": "mode"
280
+ },
281
+ {
282
+ "name": "size",
283
+ "type": {
284
+ "text": "'s' | 'm' | 'l' | undefined"
285
+ },
286
+ "fieldName": "size"
287
+ }
288
+ ],
289
+ "mixins": [
290
+ {
291
+ "name": "ObserveSlotPresence",
292
+ "package": "@spectrum-web-components/shared"
293
+ }
294
+ ],
295
+ "superclass": {
296
+ "name": "AlertDialog",
297
+ "package": "@spectrum-web-components/alert-dialog/src/AlertDialog.js"
298
+ },
299
+ "tagName": "sp-dialog",
300
+ "customElement": true
301
+ }
302
+ ],
303
+ "exports": [
304
+ {
305
+ "kind": "js",
306
+ "name": "Dialog",
307
+ "declaration": {
308
+ "name": "Dialog",
309
+ "module": "src/Dialog.js"
310
+ }
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "kind": "javascript-module",
316
+ "path": "src/DialogBase.js",
317
+ "declarations": [
318
+ {
319
+ "kind": "class",
320
+ "description": "",
321
+ "name": "DialogBase",
322
+ "slots": [
323
+ {
324
+ "description": "A Dialog element to display.",
325
+ "name": ""
326
+ }
327
+ ],
328
+ "members": [
329
+ {
330
+ "kind": "field",
331
+ "name": "dismissable",
332
+ "type": {
333
+ "text": "boolean"
334
+ },
335
+ "privacy": "public",
336
+ "default": "false",
337
+ "attribute": "dismissable",
338
+ "reflects": true
339
+ },
340
+ {
341
+ "kind": "field",
342
+ "name": "open",
343
+ "type": {
344
+ "text": "boolean"
345
+ },
346
+ "privacy": "public",
347
+ "default": "false",
348
+ "attribute": "open",
349
+ "reflects": true
350
+ },
351
+ {
352
+ "kind": "field",
353
+ "name": "mode",
354
+ "type": {
355
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
356
+ },
357
+ "privacy": "public",
358
+ "attribute": "mode",
359
+ "reflects": true
360
+ },
361
+ {
362
+ "kind": "field",
363
+ "name": "responsive",
364
+ "type": {
365
+ "text": "boolean"
366
+ },
367
+ "privacy": "public",
368
+ "default": "false",
369
+ "description": "When set to true, fills screens smaller than 350px high and 400px wide with the full dialog.",
370
+ "attribute": "responsive"
371
+ },
372
+ {
373
+ "kind": "field",
374
+ "name": "transitionPromise",
375
+ "privacy": "private"
376
+ },
377
+ {
378
+ "kind": "field",
379
+ "name": "resolveTransitionPromise",
380
+ "privacy": "private"
381
+ },
382
+ {
383
+ "kind": "field",
384
+ "name": "underlay",
385
+ "type": {
386
+ "text": "boolean"
387
+ },
388
+ "privacy": "public",
389
+ "default": "false",
390
+ "attribute": "underlay"
391
+ },
392
+ {
393
+ "kind": "field",
394
+ "name": "dialog",
395
+ "type": {
396
+ "text": "Dialog"
397
+ },
398
+ "privacy": "protected",
399
+ "readonly": true
400
+ },
401
+ {
402
+ "kind": "method",
403
+ "name": "focus",
404
+ "privacy": "public",
405
+ "return": {
406
+ "type": {
407
+ "text": "Promise<void>"
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "kind": "field",
413
+ "name": "animating",
414
+ "type": {
415
+ "text": "boolean"
416
+ },
417
+ "privacy": "private",
418
+ "default": "false"
419
+ },
420
+ {
421
+ "kind": "method",
422
+ "name": "overlayWillCloseCallback",
423
+ "privacy": "public",
424
+ "return": {
425
+ "type": {
426
+ "text": "boolean"
427
+ }
428
+ }
429
+ },
430
+ {
431
+ "kind": "method",
432
+ "name": "dismiss",
433
+ "privacy": "private",
434
+ "return": {
435
+ "type": {
436
+ "text": "void"
437
+ }
438
+ }
439
+ },
440
+ {
441
+ "kind": "method",
442
+ "name": "handleClose",
443
+ "privacy": "protected",
444
+ "return": {
445
+ "type": {
446
+ "text": "void"
447
+ }
448
+ },
449
+ "parameters": [
450
+ {
451
+ "name": "event",
452
+ "type": {
453
+ "text": "Event"
454
+ }
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "kind": "method",
460
+ "name": "close",
461
+ "privacy": "public",
462
+ "return": {
463
+ "type": {
464
+ "text": "void"
465
+ }
466
+ }
467
+ },
468
+ {
469
+ "kind": "method",
470
+ "name": "dispatchClosed",
471
+ "privacy": "private",
472
+ "return": {
473
+ "type": {
474
+ "text": "void"
475
+ }
476
+ }
477
+ },
478
+ {
479
+ "kind": "method",
480
+ "name": "handleTransitionEvent",
481
+ "privacy": "private",
482
+ "return": {
483
+ "type": {
484
+ "text": "void"
485
+ }
486
+ },
487
+ "parameters": [
488
+ {
489
+ "name": "event",
490
+ "type": {
491
+ "text": "TransitionEvent"
492
+ }
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "kind": "method",
498
+ "name": "handleUnderlayTransitionend",
499
+ "privacy": "protected",
500
+ "return": {
501
+ "type": {
502
+ "text": "void"
503
+ }
504
+ },
505
+ "parameters": [
506
+ {
507
+ "name": "event",
508
+ "type": {
509
+ "text": "TransitionEvent"
510
+ }
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "kind": "method",
516
+ "name": "handleModalTransitionend",
517
+ "privacy": "protected",
518
+ "return": {
519
+ "type": {
520
+ "text": "void"
521
+ }
522
+ },
523
+ "parameters": [
524
+ {
525
+ "name": "event",
526
+ "type": {
527
+ "text": "TransitionEvent"
528
+ }
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "kind": "field",
534
+ "name": "hasTransitionDuration",
535
+ "type": {
536
+ "text": "boolean"
537
+ },
538
+ "privacy": "private",
539
+ "readonly": true
540
+ },
541
+ {
542
+ "kind": "method",
543
+ "name": "renderDialog",
544
+ "privacy": "protected",
545
+ "return": {
546
+ "type": {
547
+ "text": "TemplateResult"
548
+ }
549
+ }
550
+ },
551
+ {
552
+ "kind": "method",
553
+ "name": "getUpdateComplete",
554
+ "privacy": "protected",
555
+ "return": {
556
+ "type": {
557
+ "text": "Promise<boolean>"
558
+ }
559
+ },
560
+ "description": "Bind the open/close transition into the update complete lifecycle so\nthat the overlay system can wait for it to be \"visibly ready\" before\nattempting to throw focus into the content contained herein. Not\nwaiting for this can cause small amounts of page scroll to happen\nwhile opening the Tray when focusable content is included: e.g. Menu\nelements whose selected Menu Item is not the first Menu Item."
561
+ }
562
+ ],
563
+ "events": [
564
+ {
565
+ "name": "close",
566
+ "type": {
567
+ "text": "Event"
568
+ },
569
+ "description": "Announces that the dialog has been closed."
570
+ },
571
+ {
572
+ "type": {
573
+ "text": "TransitionEvent"
574
+ }
575
+ }
576
+ ],
577
+ "attributes": [
578
+ {
579
+ "name": "dismissable",
580
+ "type": {
581
+ "text": "boolean"
582
+ },
583
+ "default": "false",
584
+ "fieldName": "dismissable"
585
+ },
586
+ {
587
+ "name": "open",
588
+ "type": {
589
+ "text": "boolean"
590
+ },
591
+ "default": "false",
592
+ "fieldName": "open"
593
+ },
594
+ {
595
+ "name": "mode",
596
+ "type": {
597
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
598
+ },
599
+ "fieldName": "mode"
600
+ },
601
+ {
602
+ "name": "responsive",
603
+ "type": {
604
+ "text": "boolean"
605
+ },
606
+ "default": "false",
607
+ "description": "When set to true, fills screens smaller than 350px high and 400px wide with the full dialog.",
608
+ "fieldName": "responsive"
609
+ },
610
+ {
611
+ "name": "underlay",
612
+ "type": {
613
+ "text": "boolean"
614
+ },
615
+ "default": "false",
616
+ "fieldName": "underlay"
617
+ }
618
+ ],
619
+ "mixins": [
620
+ {
621
+ "name": "FocusVisiblePolyfillMixin",
622
+ "package": "@spectrum-web-components/shared"
623
+ }
624
+ ],
625
+ "superclass": {
626
+ "name": "SpectrumElement",
627
+ "package": "@spectrum-web-components/base"
628
+ },
629
+ "tagName": "sp-dialog-base",
630
+ "customElement": true
631
+ }
632
+ ],
633
+ "exports": [
634
+ {
635
+ "kind": "js",
636
+ "name": "DialogBase",
637
+ "declaration": {
638
+ "name": "DialogBase",
639
+ "module": "src/DialogBase.js"
640
+ }
641
+ }
642
+ ]
643
+ },
644
+ {
645
+ "kind": "javascript-module",
646
+ "path": "src/DialogWrapper.js",
647
+ "declarations": [
648
+ {
649
+ "kind": "class",
650
+ "description": "",
651
+ "name": "DialogWrapper",
652
+ "slots": [
653
+ {
654
+ "description": "content for the dialog",
655
+ "name": "",
656
+ "inheritedFrom": {
657
+ "name": "DialogBase",
658
+ "module": "src/DialogBase.ts"
659
+ }
660
+ }
661
+ ],
662
+ "members": [
663
+ {
664
+ "kind": "field",
665
+ "name": "error",
666
+ "type": {
667
+ "text": "boolean"
668
+ },
669
+ "privacy": "public",
670
+ "default": "false",
671
+ "deprecated": "Use the Alert Dialog component with `variant=\"error\"` instead.",
672
+ "attribute": "error",
673
+ "reflects": true
674
+ },
675
+ {
676
+ "kind": "field",
677
+ "name": "cancelLabel",
678
+ "type": {
679
+ "text": "string"
680
+ },
681
+ "privacy": "public",
682
+ "default": "''",
683
+ "attribute": "cancel-label"
684
+ },
685
+ {
686
+ "kind": "field",
687
+ "name": "confirmLabel",
688
+ "type": {
689
+ "text": "string"
690
+ },
691
+ "privacy": "public",
692
+ "default": "''",
693
+ "attribute": "confirm-label"
694
+ },
695
+ {
696
+ "kind": "field",
697
+ "name": "dismissLabel",
698
+ "type": {
699
+ "text": "string"
700
+ },
701
+ "privacy": "public",
702
+ "default": "'Close'",
703
+ "attribute": "dismiss-label"
704
+ },
705
+ {
706
+ "kind": "field",
707
+ "name": "footer",
708
+ "type": {
709
+ "text": "string"
710
+ },
711
+ "privacy": "public",
712
+ "default": "''",
713
+ "attribute": "footer"
714
+ },
715
+ {
716
+ "kind": "field",
717
+ "name": "hero",
718
+ "type": {
719
+ "text": "string"
720
+ },
721
+ "privacy": "public",
722
+ "default": "''",
723
+ "attribute": "hero"
724
+ },
725
+ {
726
+ "kind": "field",
727
+ "name": "heroLabel",
728
+ "type": {
729
+ "text": "string"
730
+ },
731
+ "privacy": "public",
732
+ "default": "''",
733
+ "attribute": "hero-label"
734
+ },
735
+ {
736
+ "kind": "field",
737
+ "name": "noDivider",
738
+ "type": {
739
+ "text": "boolean"
740
+ },
741
+ "privacy": "public",
742
+ "default": "false",
743
+ "attribute": "no-divider",
744
+ "reflects": true
745
+ },
746
+ {
747
+ "kind": "field",
748
+ "name": "size",
749
+ "type": {
750
+ "text": "'s' | 'm' | 'l' | undefined"
751
+ },
752
+ "privacy": "public",
753
+ "attribute": "size",
754
+ "reflects": true
755
+ },
756
+ {
757
+ "kind": "field",
758
+ "name": "secondaryLabel",
759
+ "type": {
760
+ "text": "string"
761
+ },
762
+ "privacy": "public",
763
+ "default": "''",
764
+ "attribute": "secondary-label"
765
+ },
766
+ {
767
+ "kind": "field",
768
+ "name": "headline",
769
+ "type": {
770
+ "text": "string"
771
+ },
772
+ "privacy": "public",
773
+ "default": "''",
774
+ "attribute": "headline"
775
+ },
776
+ {
777
+ "kind": "field",
778
+ "name": "headlineVisibility",
779
+ "type": {
780
+ "text": "'none' | undefined"
781
+ },
782
+ "privacy": "public",
783
+ "attribute": "headline-visibility"
784
+ },
785
+ {
786
+ "kind": "field",
787
+ "name": "dialog",
788
+ "type": {
789
+ "text": "Dialog"
790
+ },
791
+ "privacy": "protected",
792
+ "readonly": true,
793
+ "inheritedFrom": {
794
+ "name": "DialogBase",
795
+ "module": "src/DialogBase.js"
796
+ }
797
+ },
798
+ {
799
+ "kind": "method",
800
+ "name": "clickSecondary",
801
+ "privacy": "private",
802
+ "return": {
803
+ "type": {
804
+ "text": "void"
805
+ }
806
+ }
807
+ },
808
+ {
809
+ "kind": "method",
810
+ "name": "clickCancel",
811
+ "privacy": "private",
812
+ "return": {
813
+ "type": {
814
+ "text": "void"
815
+ }
816
+ }
817
+ },
818
+ {
819
+ "kind": "method",
820
+ "name": "clickConfirm",
821
+ "privacy": "private",
822
+ "return": {
823
+ "type": {
824
+ "text": "void"
825
+ }
826
+ }
827
+ },
828
+ {
829
+ "kind": "method",
830
+ "name": "renderDialog",
831
+ "privacy": "protected",
832
+ "return": {
833
+ "type": {
834
+ "text": "TemplateResult"
835
+ }
836
+ },
837
+ "inheritedFrom": {
838
+ "name": "DialogBase",
839
+ "module": "src/DialogBase.js"
840
+ }
841
+ },
842
+ {
843
+ "kind": "field",
844
+ "name": "dismissable",
845
+ "type": {
846
+ "text": "boolean"
847
+ },
848
+ "privacy": "public",
849
+ "default": "false",
850
+ "attribute": "dismissable",
851
+ "reflects": true,
852
+ "inheritedFrom": {
853
+ "name": "DialogBase",
854
+ "module": "src/DialogBase.js"
855
+ }
856
+ },
857
+ {
858
+ "kind": "field",
859
+ "name": "open",
860
+ "type": {
861
+ "text": "boolean"
862
+ },
863
+ "privacy": "public",
864
+ "default": "false",
865
+ "attribute": "open",
866
+ "reflects": true,
867
+ "inheritedFrom": {
868
+ "name": "DialogBase",
869
+ "module": "src/DialogBase.js"
870
+ }
871
+ },
872
+ {
873
+ "kind": "field",
874
+ "name": "mode",
875
+ "type": {
876
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
877
+ },
878
+ "privacy": "public",
879
+ "attribute": "mode",
880
+ "reflects": true,
881
+ "inheritedFrom": {
882
+ "name": "DialogBase",
883
+ "module": "src/DialogBase.js"
884
+ }
885
+ },
886
+ {
887
+ "kind": "field",
888
+ "name": "responsive",
889
+ "type": {
890
+ "text": "boolean"
891
+ },
892
+ "privacy": "public",
893
+ "default": "false",
894
+ "description": "When set to true, fills screens smaller than 350px high and 400px wide with the full dialog.",
895
+ "attribute": "responsive",
896
+ "inheritedFrom": {
897
+ "name": "DialogBase",
898
+ "module": "src/DialogBase.js"
899
+ }
900
+ },
901
+ {
902
+ "kind": "field",
903
+ "name": "transitionPromise",
904
+ "privacy": "private",
905
+ "inheritedFrom": {
906
+ "name": "DialogBase",
907
+ "module": "src/DialogBase.js"
908
+ }
909
+ },
910
+ {
911
+ "kind": "field",
912
+ "name": "resolveTransitionPromise",
913
+ "privacy": "private",
914
+ "inheritedFrom": {
915
+ "name": "DialogBase",
916
+ "module": "src/DialogBase.js"
917
+ }
918
+ },
919
+ {
920
+ "kind": "field",
921
+ "name": "underlay",
922
+ "type": {
923
+ "text": "boolean"
924
+ },
925
+ "privacy": "public",
926
+ "default": "false",
927
+ "attribute": "underlay",
928
+ "inheritedFrom": {
929
+ "name": "DialogBase",
930
+ "module": "src/DialogBase.js"
931
+ }
932
+ },
933
+ {
934
+ "kind": "method",
935
+ "name": "focus",
936
+ "privacy": "public",
937
+ "return": {
938
+ "type": {
939
+ "text": "Promise<void>"
940
+ }
941
+ },
942
+ "inheritedFrom": {
943
+ "name": "DialogBase",
944
+ "module": "src/DialogBase.js"
945
+ }
946
+ },
947
+ {
948
+ "kind": "field",
949
+ "name": "animating",
950
+ "type": {
951
+ "text": "boolean"
952
+ },
953
+ "privacy": "private",
954
+ "default": "false",
955
+ "inheritedFrom": {
956
+ "name": "DialogBase",
957
+ "module": "src/DialogBase.js"
958
+ }
959
+ },
960
+ {
961
+ "kind": "method",
962
+ "name": "overlayWillCloseCallback",
963
+ "privacy": "public",
964
+ "return": {
965
+ "type": {
966
+ "text": "boolean"
967
+ }
968
+ },
969
+ "inheritedFrom": {
970
+ "name": "DialogBase",
971
+ "module": "src/DialogBase.js"
972
+ }
973
+ },
974
+ {
975
+ "kind": "method",
976
+ "name": "dismiss",
977
+ "privacy": "private",
978
+ "return": {
979
+ "type": {
980
+ "text": "void"
981
+ }
982
+ },
983
+ "inheritedFrom": {
984
+ "name": "DialogBase",
985
+ "module": "src/DialogBase.js"
986
+ }
987
+ },
988
+ {
989
+ "kind": "method",
990
+ "name": "handleClose",
991
+ "privacy": "protected",
992
+ "return": {
993
+ "type": {
994
+ "text": "void"
995
+ }
996
+ },
997
+ "parameters": [
998
+ {
999
+ "name": "event",
1000
+ "type": {
1001
+ "text": "Event"
1002
+ }
1003
+ }
1004
+ ],
1005
+ "inheritedFrom": {
1006
+ "name": "DialogBase",
1007
+ "module": "src/DialogBase.js"
1008
+ }
1009
+ },
1010
+ {
1011
+ "kind": "method",
1012
+ "name": "close",
1013
+ "privacy": "public",
1014
+ "return": {
1015
+ "type": {
1016
+ "text": "void"
1017
+ }
1018
+ },
1019
+ "inheritedFrom": {
1020
+ "name": "DialogBase",
1021
+ "module": "src/DialogBase.js"
1022
+ }
1023
+ },
1024
+ {
1025
+ "kind": "method",
1026
+ "name": "dispatchClosed",
1027
+ "privacy": "private",
1028
+ "return": {
1029
+ "type": {
1030
+ "text": "void"
1031
+ }
1032
+ },
1033
+ "inheritedFrom": {
1034
+ "name": "DialogBase",
1035
+ "module": "src/DialogBase.js"
1036
+ }
1037
+ },
1038
+ {
1039
+ "kind": "method",
1040
+ "name": "handleTransitionEvent",
1041
+ "privacy": "private",
1042
+ "return": {
1043
+ "type": {
1044
+ "text": "void"
1045
+ }
1046
+ },
1047
+ "parameters": [
1048
+ {
1049
+ "name": "event",
1050
+ "type": {
1051
+ "text": "TransitionEvent"
1052
+ }
1053
+ }
1054
+ ],
1055
+ "inheritedFrom": {
1056
+ "name": "DialogBase",
1057
+ "module": "src/DialogBase.js"
1058
+ }
1059
+ },
1060
+ {
1061
+ "kind": "method",
1062
+ "name": "handleUnderlayTransitionend",
1063
+ "privacy": "protected",
1064
+ "return": {
1065
+ "type": {
1066
+ "text": "void"
1067
+ }
1068
+ },
1069
+ "parameters": [
1070
+ {
1071
+ "name": "event",
1072
+ "type": {
1073
+ "text": "TransitionEvent"
1074
+ }
1075
+ }
1076
+ ],
1077
+ "inheritedFrom": {
1078
+ "name": "DialogBase",
1079
+ "module": "src/DialogBase.js"
1080
+ }
1081
+ },
1082
+ {
1083
+ "kind": "method",
1084
+ "name": "handleModalTransitionend",
1085
+ "privacy": "protected",
1086
+ "return": {
1087
+ "type": {
1088
+ "text": "void"
1089
+ }
1090
+ },
1091
+ "parameters": [
1092
+ {
1093
+ "name": "event",
1094
+ "type": {
1095
+ "text": "TransitionEvent"
1096
+ }
1097
+ }
1098
+ ],
1099
+ "inheritedFrom": {
1100
+ "name": "DialogBase",
1101
+ "module": "src/DialogBase.js"
1102
+ }
1103
+ },
1104
+ {
1105
+ "kind": "field",
1106
+ "name": "hasTransitionDuration",
1107
+ "type": {
1108
+ "text": "boolean"
1109
+ },
1110
+ "privacy": "private",
1111
+ "readonly": true,
1112
+ "inheritedFrom": {
1113
+ "name": "DialogBase",
1114
+ "module": "src/DialogBase.js"
1115
+ }
1116
+ },
1117
+ {
1118
+ "kind": "method",
1119
+ "name": "getUpdateComplete",
1120
+ "privacy": "protected",
1121
+ "return": {
1122
+ "type": {
1123
+ "text": "Promise<boolean>"
1124
+ }
1125
+ },
1126
+ "description": "Bind the open/close transition into the update complete lifecycle so\nthat the overlay system can wait for it to be \"visibly ready\" before\nattempting to throw focus into the content contained herein. Not\nwaiting for this can cause small amounts of page scroll to happen\nwhile opening the Tray when focusable content is included: e.g. Menu\nelements whose selected Menu Item is not the first Menu Item.",
1127
+ "inheritedFrom": {
1128
+ "name": "DialogBase",
1129
+ "module": "src/DialogBase.js"
1130
+ }
1131
+ }
1132
+ ],
1133
+ "events": [
1134
+ {
1135
+ "name": "secondary",
1136
+ "type": {
1137
+ "text": "Event"
1138
+ },
1139
+ "description": "Announces that the \"secondary\" button has been clicked."
1140
+ },
1141
+ {
1142
+ "name": "cancel",
1143
+ "type": {
1144
+ "text": "Event"
1145
+ },
1146
+ "description": "Announces that the \"cancel\" button has been clicked."
1147
+ },
1148
+ {
1149
+ "name": "confirm",
1150
+ "type": {
1151
+ "text": "Event"
1152
+ },
1153
+ "description": "Announces that the \"confirm\" button has been clicked."
1154
+ },
1155
+ {
1156
+ "name": "close",
1157
+ "type": {
1158
+ "text": "Event"
1159
+ },
1160
+ "description": "Announces that the dialog has been closed.",
1161
+ "inheritedFrom": {
1162
+ "name": "DialogBase",
1163
+ "module": "src/DialogBase.ts"
1164
+ }
1165
+ },
1166
+ {
1167
+ "type": {
1168
+ "text": "TransitionEvent"
1169
+ },
1170
+ "inheritedFrom": {
1171
+ "name": "DialogBase",
1172
+ "module": "src/DialogBase.ts"
1173
+ }
1174
+ }
1175
+ ],
1176
+ "attributes": [
1177
+ {
1178
+ "name": "error",
1179
+ "type": {
1180
+ "text": "boolean"
1181
+ },
1182
+ "default": "false",
1183
+ "deprecated": "Use the Alert Dialog component with `variant=\"error\"` instead.",
1184
+ "fieldName": "error"
1185
+ },
1186
+ {
1187
+ "name": "cancel-label",
1188
+ "type": {
1189
+ "text": "string"
1190
+ },
1191
+ "default": "''",
1192
+ "fieldName": "cancelLabel"
1193
+ },
1194
+ {
1195
+ "name": "confirm-label",
1196
+ "type": {
1197
+ "text": "string"
1198
+ },
1199
+ "default": "''",
1200
+ "fieldName": "confirmLabel"
1201
+ },
1202
+ {
1203
+ "name": "dismiss-label",
1204
+ "type": {
1205
+ "text": "string"
1206
+ },
1207
+ "default": "'Close'",
1208
+ "fieldName": "dismissLabel"
1209
+ },
1210
+ {
1211
+ "name": "footer",
1212
+ "type": {
1213
+ "text": "string"
1214
+ },
1215
+ "default": "''",
1216
+ "fieldName": "footer"
1217
+ },
1218
+ {
1219
+ "name": "hero",
1220
+ "type": {
1221
+ "text": "string"
1222
+ },
1223
+ "default": "''",
1224
+ "fieldName": "hero"
1225
+ },
1226
+ {
1227
+ "name": "hero-label",
1228
+ "type": {
1229
+ "text": "string"
1230
+ },
1231
+ "default": "''",
1232
+ "fieldName": "heroLabel"
1233
+ },
1234
+ {
1235
+ "name": "no-divider",
1236
+ "type": {
1237
+ "text": "boolean"
1238
+ },
1239
+ "default": "false",
1240
+ "fieldName": "noDivider"
1241
+ },
1242
+ {
1243
+ "name": "size",
1244
+ "type": {
1245
+ "text": "'s' | 'm' | 'l' | undefined"
1246
+ },
1247
+ "fieldName": "size"
1248
+ },
1249
+ {
1250
+ "name": "secondary-label",
1251
+ "type": {
1252
+ "text": "string"
1253
+ },
1254
+ "default": "''",
1255
+ "fieldName": "secondaryLabel"
1256
+ },
1257
+ {
1258
+ "name": "headline",
1259
+ "type": {
1260
+ "text": "string"
1261
+ },
1262
+ "default": "''",
1263
+ "fieldName": "headline"
1264
+ },
1265
+ {
1266
+ "name": "headline-visibility",
1267
+ "type": {
1268
+ "text": "'none' | undefined"
1269
+ },
1270
+ "fieldName": "headlineVisibility"
1271
+ },
1272
+ {
1273
+ "name": "dismissable",
1274
+ "type": {
1275
+ "text": "boolean"
1276
+ },
1277
+ "default": "false",
1278
+ "fieldName": "dismissable",
1279
+ "inheritedFrom": {
1280
+ "name": "DialogBase",
1281
+ "module": "src/DialogBase.ts"
1282
+ }
1283
+ },
1284
+ {
1285
+ "name": "open",
1286
+ "type": {
1287
+ "text": "boolean"
1288
+ },
1289
+ "default": "false",
1290
+ "fieldName": "open",
1291
+ "inheritedFrom": {
1292
+ "name": "DialogBase",
1293
+ "module": "src/DialogBase.ts"
1294
+ }
1295
+ },
1296
+ {
1297
+ "name": "mode",
1298
+ "type": {
1299
+ "text": "'fullscreen' | 'fullscreenTakeover' | undefined"
1300
+ },
1301
+ "fieldName": "mode",
1302
+ "inheritedFrom": {
1303
+ "name": "DialogBase",
1304
+ "module": "src/DialogBase.ts"
1305
+ }
1306
+ },
1307
+ {
1308
+ "name": "responsive",
1309
+ "type": {
1310
+ "text": "boolean"
1311
+ },
1312
+ "default": "false",
1313
+ "description": "When set to true, fills screens smaller than 350px high and 400px wide with the full dialog.",
1314
+ "fieldName": "responsive",
1315
+ "inheritedFrom": {
1316
+ "name": "DialogBase",
1317
+ "module": "src/DialogBase.ts"
1318
+ }
1319
+ },
1320
+ {
1321
+ "name": "underlay",
1322
+ "type": {
1323
+ "text": "boolean"
1324
+ },
1325
+ "default": "false",
1326
+ "fieldName": "underlay",
1327
+ "inheritedFrom": {
1328
+ "name": "DialogBase",
1329
+ "module": "src/DialogBase.ts"
1330
+ }
1331
+ }
1332
+ ],
1333
+ "superclass": {
1334
+ "name": "DialogBase",
1335
+ "module": "/src/DialogBase.js"
1336
+ },
1337
+ "tagName": "sp-dialog-wrapper",
1338
+ "customElement": true
1339
+ }
1340
+ ],
1341
+ "exports": [
1342
+ {
1343
+ "kind": "js",
1344
+ "name": "DialogWrapper",
1345
+ "declaration": {
1346
+ "name": "DialogWrapper",
1347
+ "module": "src/DialogWrapper.js"
1348
+ }
1349
+ }
1350
+ ]
1351
+ }
1352
+ ]
1353
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/dialog",
3
- "version": "1.2.0-beta.0",
3
+ "version": "1.2.0-beta.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -74,15 +74,15 @@
74
74
  "lit-html"
75
75
  ],
76
76
  "dependencies": {
77
- "@spectrum-web-components/alert-dialog": "^1.2.0-beta.0",
78
- "@spectrum-web-components/base": "^1.2.0-beta.0",
79
- "@spectrum-web-components/button": "^1.2.0-beta.0",
80
- "@spectrum-web-components/button-group": "^1.2.0-beta.0",
81
- "@spectrum-web-components/divider": "^1.2.0-beta.0",
82
- "@spectrum-web-components/icons-workflow": "^1.2.0-beta.0",
83
- "@spectrum-web-components/modal": "^1.2.0-beta.0",
84
- "@spectrum-web-components/shared": "^1.2.0-beta.0",
85
- "@spectrum-web-components/underlay": "^1.2.0-beta.0"
77
+ "@spectrum-web-components/alert-dialog": "^1.2.0-beta.2",
78
+ "@spectrum-web-components/base": "^1.2.0-beta.2",
79
+ "@spectrum-web-components/button": "^1.2.0-beta.2",
80
+ "@spectrum-web-components/button-group": "^1.2.0-beta.2",
81
+ "@spectrum-web-components/divider": "^1.2.0-beta.2",
82
+ "@spectrum-web-components/icons-workflow": "^1.2.0-beta.2",
83
+ "@spectrum-web-components/modal": "^1.2.0-beta.2",
84
+ "@spectrum-web-components/shared": "^1.2.0-beta.2",
85
+ "@spectrum-web-components/underlay": "^1.2.0-beta.2"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@spectrum-css/dialog": "11.0.0-s2-foundations.15"
@@ -93,5 +93,5 @@
93
93
  "./sp-*.js",
94
94
  "./**/*.dev.js"
95
95
  ],
96
- "gitHead": "809bd734313fe289067108bf1dea2a48cc103a9f"
96
+ "gitHead": "c0c67a3bdce0642f6a60d11a62fdcb6c1909ca62"
97
97
  }