@material/web 2.5.1-nightly.44c62ff.0 → 2.5.1-nightly.47adb65.0

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.
@@ -51396,6 +51396,1218 @@
51396
51396
  }
51397
51397
  ]
51398
51398
  },
51399
+ {
51400
+ "kind": "javascript-module",
51401
+ "path": "labs/gb/components/snackbar/harness.js",
51402
+ "declarations": [
51403
+ {
51404
+ "kind": "class",
51405
+ "name": "SnackbarHarness",
51406
+ "description": "Test harness for snackbar.",
51407
+ "superclass": {
51408
+ "name": "Harness",
51409
+ "package": "@material/web",
51410
+ "module": "testing/harness.js"
51411
+ },
51412
+ "members": [
51413
+ {
51414
+ "kind": "method",
51415
+ "name": "getInteractiveElement",
51416
+ "privacy": "public",
51417
+ "return": {
51418
+ "type": {
51419
+ "text": "Promise<HTMLElement>",
51420
+ "references": [
51421
+ {
51422
+ "name": "Promise",
51423
+ "package": "global:",
51424
+ "start": 0,
51425
+ "end": 7
51426
+ },
51427
+ {
51428
+ "name": "HTMLElement",
51429
+ "package": "global:",
51430
+ "start": 8,
51431
+ "end": 19
51432
+ }
51433
+ ]
51434
+ }
51435
+ }
51436
+ },
51437
+ {
51438
+ "kind": "method",
51439
+ "name": "getSurfaceElement",
51440
+ "privacy": "public",
51441
+ "return": {
51442
+ "type": {
51443
+ "text": "HTMLElement",
51444
+ "references": [
51445
+ {
51446
+ "name": "HTMLElement",
51447
+ "package": "global:",
51448
+ "start": 0,
51449
+ "end": 11
51450
+ }
51451
+ ]
51452
+ }
51453
+ }
51454
+ },
51455
+ {
51456
+ "kind": "method",
51457
+ "name": "getLabelElement",
51458
+ "privacy": "public",
51459
+ "return": {
51460
+ "type": {
51461
+ "text": "HTMLElement",
51462
+ "references": [
51463
+ {
51464
+ "name": "HTMLElement",
51465
+ "package": "global:",
51466
+ "start": 0,
51467
+ "end": 11
51468
+ }
51469
+ ]
51470
+ }
51471
+ }
51472
+ },
51473
+ {
51474
+ "kind": "method",
51475
+ "name": "getDismissButton",
51476
+ "privacy": "public",
51477
+ "return": {
51478
+ "type": {
51479
+ "text": "HTMLElement",
51480
+ "references": [
51481
+ {
51482
+ "name": "HTMLElement",
51483
+ "package": "global:",
51484
+ "start": 0,
51485
+ "end": 11
51486
+ }
51487
+ ]
51488
+ }
51489
+ }
51490
+ },
51491
+ {
51492
+ "kind": "method",
51493
+ "name": "getActionButton",
51494
+ "privacy": "public",
51495
+ "return": {
51496
+ "type": {
51497
+ "text": "HTMLElement",
51498
+ "references": [
51499
+ {
51500
+ "name": "HTMLElement",
51501
+ "package": "global:",
51502
+ "start": 0,
51503
+ "end": 11
51504
+ }
51505
+ ]
51506
+ }
51507
+ }
51508
+ },
51509
+ {
51510
+ "kind": "method",
51511
+ "name": "clickActionWithMouse",
51512
+ "description": "Hovers and clicks the action button (slotted or built-in) with a simulated\nmouse. This will generate a `click` event.",
51513
+ "privacy": "public",
51514
+ "parameters": [
51515
+ {
51516
+ "name": "init",
51517
+ "description": "Additional event options.",
51518
+ "type": {
51519
+ "text": "PointerEventInit",
51520
+ "references": [
51521
+ {
51522
+ "name": "PointerEventInit",
51523
+ "package": "global:",
51524
+ "start": 0,
51525
+ "end": 16
51526
+ }
51527
+ ]
51528
+ },
51529
+ "default": "{}",
51530
+ "optional": true
51531
+ }
51532
+ ],
51533
+ "return": {
51534
+ "type": {
51535
+ "text": "Promise<void>",
51536
+ "references": [
51537
+ {
51538
+ "name": "Promise",
51539
+ "package": "global:",
51540
+ "start": 0,
51541
+ "end": 7
51542
+ }
51543
+ ]
51544
+ }
51545
+ }
51546
+ },
51547
+ {
51548
+ "kind": "method",
51549
+ "name": "clickDismissWithMouse",
51550
+ "description": "Hovers and clicks the dismiss button (slotted or built-in close button)\nwith a simulated mouse. This will generate a `click` event.",
51551
+ "privacy": "public",
51552
+ "parameters": [
51553
+ {
51554
+ "name": "init",
51555
+ "description": "Additional event options.",
51556
+ "type": {
51557
+ "text": "PointerEventInit",
51558
+ "references": [
51559
+ {
51560
+ "name": "PointerEventInit",
51561
+ "package": "global:",
51562
+ "start": 0,
51563
+ "end": 16
51564
+ }
51565
+ ]
51566
+ },
51567
+ "default": "{}",
51568
+ "optional": true
51569
+ }
51570
+ ],
51571
+ "return": {
51572
+ "type": {
51573
+ "text": "Promise<void>",
51574
+ "references": [
51575
+ {
51576
+ "name": "Promise",
51577
+ "package": "global:",
51578
+ "start": 0,
51579
+ "end": 7
51580
+ }
51581
+ ]
51582
+ }
51583
+ }
51584
+ },
51585
+ {
51586
+ "kind": "method",
51587
+ "name": "simulateClickWithMouse",
51588
+ "privacy": "private",
51589
+ "parameters": [
51590
+ {
51591
+ "name": "element",
51592
+ "type": {
51593
+ "text": "HTMLElement",
51594
+ "references": [
51595
+ {
51596
+ "name": "HTMLElement",
51597
+ "package": "global:",
51598
+ "start": 0,
51599
+ "end": 11
51600
+ }
51601
+ ]
51602
+ }
51603
+ },
51604
+ {
51605
+ "name": "name",
51606
+ "type": {
51607
+ "text": "string"
51608
+ }
51609
+ },
51610
+ {
51611
+ "name": "init",
51612
+ "type": {
51613
+ "text": "PointerEventInit",
51614
+ "references": [
51615
+ {
51616
+ "name": "PointerEventInit",
51617
+ "package": "global:",
51618
+ "start": 0,
51619
+ "end": 16
51620
+ }
51621
+ ]
51622
+ }
51623
+ }
51624
+ ],
51625
+ "return": {
51626
+ "type": {
51627
+ "text": "void"
51628
+ }
51629
+ }
51630
+ }
51631
+ ]
51632
+ }
51633
+ ],
51634
+ "exports": [
51635
+ {
51636
+ "kind": "js",
51637
+ "name": "SnackbarHarness",
51638
+ "declaration": {
51639
+ "name": "SnackbarHarness"
51640
+ }
51641
+ }
51642
+ ]
51643
+ },
51644
+ {
51645
+ "kind": "javascript-module",
51646
+ "path": "labs/gb/components/snackbar/md-gb-snackbar.js"
51647
+ },
51648
+ {
51649
+ "kind": "javascript-module",
51650
+ "path": "labs/gb/components/snackbar/snackbar-element.js",
51651
+ "declarations": [
51652
+ {
51653
+ "kind": "variable",
51654
+ "name": "OPEN_DURATION_MS",
51655
+ "description": "Animation duration for snackbar appearance in milliseconds.",
51656
+ "type": {
51657
+ "text": "number"
51658
+ }
51659
+ },
51660
+ {
51661
+ "kind": "variable",
51662
+ "name": "CLOSE_DURATION_MS",
51663
+ "description": "Animation duration for snackbar disappearance in milliseconds.",
51664
+ "type": {
51665
+ "text": "number"
51666
+ }
51667
+ },
51668
+ {
51669
+ "kind": "class",
51670
+ "name": "SnackbarElement",
51671
+ "description": "A Material Design snackbar component.",
51672
+ "superclass": {
51673
+ "name": "LitElement",
51674
+ "package": "lit"
51675
+ },
51676
+ "members": [
51677
+ {
51678
+ "kind": "field",
51679
+ "name": "isOpenInternal",
51680
+ "privacy": "private",
51681
+ "type": {
51682
+ "text": "boolean"
51683
+ },
51684
+ "default": "false"
51685
+ },
51686
+ {
51687
+ "kind": "field",
51688
+ "name": "timeoutMs",
51689
+ "description": "Time in milliseconds before the snackbar automatically dismisses.\nSet to 0 or a negative value (e.g. -1) to disable auto-dismiss. Read when\nthe snackbar opens; changing it while open takes effect on the next open.",
51690
+ "privacy": "public",
51691
+ "type": {
51692
+ "text": "number"
51693
+ },
51694
+ "default": "5000",
51695
+ "attribute": "timeout-ms"
51696
+ },
51697
+ {
51698
+ "kind": "field",
51699
+ "name": "fixed",
51700
+ "description": "Whether the snackbar should be positioned relative to the viewport (fixed).",
51701
+ "privacy": "public",
51702
+ "type": {
51703
+ "text": "boolean"
51704
+ },
51705
+ "default": "false",
51706
+ "attribute": "fixed",
51707
+ "reflects": true
51708
+ },
51709
+ {
51710
+ "kind": "field",
51711
+ "name": "closeLabel",
51712
+ "description": "Accessible label for the built-in dismiss button.",
51713
+ "privacy": "public",
51714
+ "type": {
51715
+ "text": "string"
51716
+ },
51717
+ "default": "'Close'",
51718
+ "attribute": "close-label"
51719
+ },
51720
+ {
51721
+ "kind": "field",
51722
+ "name": "labelText",
51723
+ "description": "Supporting message text to display. Rendered before default slot content.",
51724
+ "privacy": "public",
51725
+ "type": {
51726
+ "text": "string"
51727
+ },
51728
+ "default": "''",
51729
+ "attribute": "label-text"
51730
+ },
51731
+ {
51732
+ "kind": "field",
51733
+ "name": "actionLabel",
51734
+ "description": "Visible text of the built-in action button. Rendered only when non-empty\nand nothing is slotted into `action`.",
51735
+ "privacy": "public",
51736
+ "type": {
51737
+ "text": "string"
51738
+ },
51739
+ "default": "''",
51740
+ "attribute": "action-label"
51741
+ },
51742
+ {
51743
+ "kind": "field",
51744
+ "name": "hasCloseButton",
51745
+ "description": "Whether to display a close icon button.",
51746
+ "privacy": "public",
51747
+ "type": {
51748
+ "text": "boolean"
51749
+ },
51750
+ "default": "false",
51751
+ "attribute": "has-close-button"
51752
+ },
51753
+ {
51754
+ "kind": "field",
51755
+ "name": "quick",
51756
+ "description": "Whether to skip opening and closing transition delays.",
51757
+ "privacy": "public",
51758
+ "type": {
51759
+ "text": "boolean"
51760
+ },
51761
+ "default": "false",
51762
+ "attribute": "quick",
51763
+ "reflects": true
51764
+ },
51765
+ {
51766
+ "kind": "field",
51767
+ "name": "isOpening",
51768
+ "privacy": "private",
51769
+ "type": {
51770
+ "text": "boolean"
51771
+ },
51772
+ "default": "false"
51773
+ },
51774
+ {
51775
+ "kind": "field",
51776
+ "name": "isClosing",
51777
+ "privacy": "private",
51778
+ "type": {
51779
+ "text": "boolean"
51780
+ },
51781
+ "default": "false"
51782
+ },
51783
+ {
51784
+ "kind": "field",
51785
+ "name": "isHovered",
51786
+ "privacy": "private",
51787
+ "type": {
51788
+ "text": "boolean"
51789
+ },
51790
+ "default": "false"
51791
+ },
51792
+ {
51793
+ "kind": "field",
51794
+ "name": "isFocused",
51795
+ "privacy": "private",
51796
+ "type": {
51797
+ "text": "boolean"
51798
+ },
51799
+ "default": "false"
51800
+ },
51801
+ {
51802
+ "kind": "field",
51803
+ "name": "isPaused",
51804
+ "privacy": "private",
51805
+ "type": {
51806
+ "text": "boolean"
51807
+ },
51808
+ "default": "false"
51809
+ },
51810
+ {
51811
+ "kind": "field",
51812
+ "name": "autoDismissTimerId",
51813
+ "privacy": "private",
51814
+ "type": {
51815
+ "text": "number"
51816
+ },
51817
+ "default": "null"
51818
+ },
51819
+ {
51820
+ "kind": "field",
51821
+ "name": "remainingTimeMs",
51822
+ "privacy": "private",
51823
+ "type": {
51824
+ "text": "number"
51825
+ },
51826
+ "default": "0"
51827
+ },
51828
+ {
51829
+ "kind": "field",
51830
+ "name": "timerStartTime",
51831
+ "privacy": "private",
51832
+ "type": {
51833
+ "text": "number"
51834
+ },
51835
+ "default": "0"
51836
+ },
51837
+ {
51838
+ "kind": "field",
51839
+ "name": "transitionCounter",
51840
+ "privacy": "private",
51841
+ "type": {
51842
+ "text": "number"
51843
+ },
51844
+ "default": "0"
51845
+ },
51846
+ {
51847
+ "kind": "field",
51848
+ "name": "handleMouseEnter",
51849
+ "privacy": "private",
51850
+ "type": {
51851
+ "text": "() => void"
51852
+ },
51853
+ "default": "() => {\n this.isHovered = true;\n this.pauseAutoDismissTimer();\n }"
51854
+ },
51855
+ {
51856
+ "kind": "field",
51857
+ "name": "handleMouseLeave",
51858
+ "privacy": "private",
51859
+ "type": {
51860
+ "text": "() => void"
51861
+ },
51862
+ "default": "() => {\n this.isHovered = false;\n if (!this.isFocused) {\n this.resumeAutoDismissTimer();\n }\n }"
51863
+ },
51864
+ {
51865
+ "kind": "field",
51866
+ "name": "handleFocusIn",
51867
+ "privacy": "private",
51868
+ "type": {
51869
+ "text": "() => void"
51870
+ },
51871
+ "default": "() => {\n this.isFocused = true;\n this.pauseAutoDismissTimer();\n }"
51872
+ },
51873
+ {
51874
+ "kind": "field",
51875
+ "name": "handleFocusOut",
51876
+ "privacy": "private",
51877
+ "type": {
51878
+ "text": "() => void"
51879
+ },
51880
+ "default": "() => {\n this.isFocused = false;\n if (!this.isHovered) {\n this.resumeAutoDismissTimer();\n }\n }"
51881
+ },
51882
+ {
51883
+ "kind": "field",
51884
+ "name": "handleKeyDown",
51885
+ "privacy": "private",
51886
+ "type": {
51887
+ "text": "(event: KeyboardEvent) => void",
51888
+ "references": [
51889
+ {
51890
+ "name": "KeyboardEvent",
51891
+ "package": "global:",
51892
+ "start": 8,
51893
+ "end": 21
51894
+ }
51895
+ ]
51896
+ },
51897
+ "default": "(event: KeyboardEvent) => {\n if (event.key === 'Escape' && this.isOpenInternal) {\n event.preventDefault();\n this.close(CLOSE_REASONS.DISMISS);\n }\n }"
51898
+ },
51899
+ {
51900
+ "kind": "field",
51901
+ "name": "handleClick",
51902
+ "privacy": "private",
51903
+ "type": {
51904
+ "text": "(event: MouseEvent) => void",
51905
+ "references": [
51906
+ {
51907
+ "name": "MouseEvent",
51908
+ "package": "global:",
51909
+ "start": 8,
51910
+ "end": 18
51911
+ }
51912
+ ]
51913
+ },
51914
+ "default": "(event: MouseEvent) => {\n const path = event.composedPath();\n for (const target of path) {\n if (!(target instanceof HTMLElement)) continue;\n if (\n target.getAttribute('slot') === 'action' ||\n target.classList.contains('snackbar-action')\n ) {\n this.close(CLOSE_REASONS.ACTION);\n return;\n }\n if (\n target.getAttribute('slot') === 'dismiss' ||\n target.classList.contains('snackbar-dismiss')\n ) {\n this.close(CLOSE_REASONS.DISMISS);\n return;\n }\n }\n }"
51915
+ },
51916
+ {
51917
+ "kind": "field",
51918
+ "name": "handleDismissClick",
51919
+ "privacy": "private",
51920
+ "type": {
51921
+ "text": "(event: MouseEvent) => void",
51922
+ "references": [
51923
+ {
51924
+ "name": "MouseEvent",
51925
+ "package": "global:",
51926
+ "start": 8,
51927
+ "end": 18
51928
+ }
51929
+ ]
51930
+ },
51931
+ "default": "(event: MouseEvent) => {\n event.stopPropagation();\n this.close(CLOSE_REASONS.DISMISS);\n }"
51932
+ },
51933
+ {
51934
+ "kind": "field",
51935
+ "name": "open",
51936
+ "privacy": "public",
51937
+ "type": {
51938
+ "text": "boolean"
51939
+ },
51940
+ "attribute": "open",
51941
+ "reflects": true
51942
+ },
51943
+ {
51944
+ "kind": "field",
51945
+ "name": "styles",
51946
+ "static": true,
51947
+ "privacy": "public",
51948
+ "type": {
51949
+ "text": "CSSResultOrNative[]",
51950
+ "references": [
51951
+ {
51952
+ "name": "CSSResultOrNative",
51953
+ "package": "lit",
51954
+ "start": 0,
51955
+ "end": 17
51956
+ }
51957
+ ]
51958
+ },
51959
+ "default": "[\n focusRingStyles,\n rippleStyles,\n iconButtonStyles,\n buttonStyles,\n snackbarStyles,\n css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host([quick]) .snackbar-surface {\n transition: none;\n }\n `,\n ]"
51960
+ },
51961
+ {
51962
+ "kind": "method",
51963
+ "name": "connectedCallback",
51964
+ "privacy": "public",
51965
+ "return": {
51966
+ "type": {
51967
+ "text": "void"
51968
+ }
51969
+ }
51970
+ },
51971
+ {
51972
+ "kind": "method",
51973
+ "name": "disconnectedCallback",
51974
+ "privacy": "public",
51975
+ "return": {
51976
+ "type": {
51977
+ "text": "void"
51978
+ }
51979
+ }
51980
+ },
51981
+ {
51982
+ "kind": "method",
51983
+ "name": "show",
51984
+ "description": "Opens the snackbar.",
51985
+ "privacy": "public",
51986
+ "return": {
51987
+ "type": {
51988
+ "text": "Promise<void>",
51989
+ "references": [
51990
+ {
51991
+ "name": "Promise",
51992
+ "package": "global:",
51993
+ "start": 0,
51994
+ "end": 7
51995
+ }
51996
+ ]
51997
+ }
51998
+ }
51999
+ },
52000
+ {
52001
+ "kind": "method",
52002
+ "name": "close",
52003
+ "description": "Closes the snackbar.",
52004
+ "privacy": "public",
52005
+ "parameters": [
52006
+ {
52007
+ "name": "reason",
52008
+ "description": "The reason for closing (e.g. 'action', 'dismiss', 'timeout').",
52009
+ "type": {
52010
+ "text": "string"
52011
+ },
52012
+ "default": "CLOSE_REASONS.DISMISS",
52013
+ "optional": true
52014
+ }
52015
+ ],
52016
+ "return": {
52017
+ "type": {
52018
+ "text": "Promise<void>",
52019
+ "references": [
52020
+ {
52021
+ "name": "Promise",
52022
+ "package": "global:",
52023
+ "start": 0,
52024
+ "end": 7
52025
+ }
52026
+ ]
52027
+ }
52028
+ }
52029
+ },
52030
+ {
52031
+ "kind": "method",
52032
+ "name": "waitForAnimation",
52033
+ "privacy": "private",
52034
+ "parameters": [
52035
+ {
52036
+ "name": "durationMs",
52037
+ "type": {
52038
+ "text": "number"
52039
+ }
52040
+ }
52041
+ ],
52042
+ "return": {
52043
+ "type": {
52044
+ "text": "Promise<void>",
52045
+ "references": [
52046
+ {
52047
+ "name": "Promise",
52048
+ "package": "global:",
52049
+ "start": 0,
52050
+ "end": 7
52051
+ }
52052
+ ]
52053
+ }
52054
+ }
52055
+ },
52056
+ {
52057
+ "kind": "method",
52058
+ "name": "startAutoDismissTimer",
52059
+ "privacy": "private",
52060
+ "return": {
52061
+ "type": {
52062
+ "text": "void"
52063
+ }
52064
+ }
52065
+ },
52066
+ {
52067
+ "kind": "method",
52068
+ "name": "scheduleAutoDismiss",
52069
+ "privacy": "private",
52070
+ "parameters": [
52071
+ {
52072
+ "name": "ms",
52073
+ "type": {
52074
+ "text": "number"
52075
+ }
52076
+ }
52077
+ ],
52078
+ "return": {
52079
+ "type": {
52080
+ "text": "void"
52081
+ }
52082
+ }
52083
+ },
52084
+ {
52085
+ "kind": "method",
52086
+ "name": "clearAutoDismissTimer",
52087
+ "privacy": "private",
52088
+ "return": {
52089
+ "type": {
52090
+ "text": "void"
52091
+ }
52092
+ }
52093
+ },
52094
+ {
52095
+ "kind": "method",
52096
+ "name": "pauseAutoDismissTimer",
52097
+ "privacy": "private",
52098
+ "return": {
52099
+ "type": {
52100
+ "text": "void"
52101
+ }
52102
+ }
52103
+ },
52104
+ {
52105
+ "kind": "method",
52106
+ "name": "resumeAutoDismissTimer",
52107
+ "privacy": "private",
52108
+ "return": {
52109
+ "type": {
52110
+ "text": "void"
52111
+ }
52112
+ }
52113
+ },
52114
+ {
52115
+ "kind": "method",
52116
+ "name": "render",
52117
+ "privacy": "public",
52118
+ "return": {
52119
+ "type": {
52120
+ "text": "TemplateResult<1>",
52121
+ "references": [
52122
+ {
52123
+ "name": "TemplateResult",
52124
+ "package": "lit-html",
52125
+ "module": "development/lit-html.js",
52126
+ "start": 0,
52127
+ "end": 14
52128
+ }
52129
+ ]
52130
+ }
52131
+ }
52132
+ }
52133
+ ],
52134
+ "customElement": true,
52135
+ "attributes": [
52136
+ {
52137
+ "name": "open",
52138
+ "type": {
52139
+ "text": "boolean"
52140
+ },
52141
+ "fieldName": "open"
52142
+ },
52143
+ {
52144
+ "name": "timeout-ms",
52145
+ "type": {
52146
+ "text": "number"
52147
+ },
52148
+ "fieldName": "timeoutMs"
52149
+ },
52150
+ {
52151
+ "name": "fixed",
52152
+ "type": {
52153
+ "text": "boolean"
52154
+ },
52155
+ "fieldName": "fixed"
52156
+ },
52157
+ {
52158
+ "name": "close-label",
52159
+ "type": {
52160
+ "text": "string"
52161
+ },
52162
+ "fieldName": "closeLabel"
52163
+ },
52164
+ {
52165
+ "name": "label-text",
52166
+ "type": {
52167
+ "text": "string"
52168
+ },
52169
+ "fieldName": "labelText"
52170
+ },
52171
+ {
52172
+ "name": "action-label",
52173
+ "type": {
52174
+ "text": "string"
52175
+ },
52176
+ "fieldName": "actionLabel"
52177
+ },
52178
+ {
52179
+ "name": "has-close-button",
52180
+ "type": {
52181
+ "text": "boolean"
52182
+ },
52183
+ "fieldName": "hasCloseButton"
52184
+ },
52185
+ {
52186
+ "name": "quick",
52187
+ "type": {
52188
+ "text": "boolean"
52189
+ },
52190
+ "fieldName": "quick"
52191
+ }
52192
+ ],
52193
+ "events": [
52194
+ {
52195
+ "name": "open",
52196
+ "type": {
52197
+ "text": "Event",
52198
+ "references": [
52199
+ {
52200
+ "name": "Event",
52201
+ "package": "global:",
52202
+ "start": 0,
52203
+ "end": 5
52204
+ }
52205
+ ]
52206
+ },
52207
+ "description": "Fired when the snackbar begins opening."
52208
+ },
52209
+ {
52210
+ "name": "opened",
52211
+ "type": {
52212
+ "text": "Event",
52213
+ "references": [
52214
+ {
52215
+ "name": "Event",
52216
+ "package": "global:",
52217
+ "start": 0,
52218
+ "end": 5
52219
+ }
52220
+ ]
52221
+ },
52222
+ "description": "Fired when the snackbar has opened and animations finished."
52223
+ },
52224
+ {
52225
+ "name": "close",
52226
+ "type": {
52227
+ "text": "CustomEvent<{reason: string}>",
52228
+ "references": [
52229
+ {
52230
+ "name": "CustomEvent",
52231
+ "package": "global:",
52232
+ "start": 0,
52233
+ "end": 11
52234
+ }
52235
+ ]
52236
+ },
52237
+ "description": "Fired when the snackbar begins closing."
52238
+ },
52239
+ {
52240
+ "name": "closed",
52241
+ "type": {
52242
+ "text": "CustomEvent<{reason: string}>",
52243
+ "references": [
52244
+ {
52245
+ "name": "CustomEvent",
52246
+ "package": "global:",
52247
+ "start": 0,
52248
+ "end": 11
52249
+ }
52250
+ ]
52251
+ },
52252
+ "description": "Fired when the snackbar has closed."
52253
+ }
52254
+ ],
52255
+ "slots": [
52256
+ {
52257
+ "name": "-",
52258
+ "description": "Default slot for rich content (rendered after `label-text`). If both `label-text` and slotted content are provided, both render."
52259
+ },
52260
+ {
52261
+ "name": "action",
52262
+ "description": "Slot for a custom action button; replaces the built-in action rendered from `action-label`. Prefer the `action-label` attribute, which renders a text button matching the spec. A slotted plain `<button>` is styled by the snackbar, with hover, focus and pressed states. A slotted text `<md-gb-button>` gets the `--action-label-text*` colors and typography, but keeps its own 16px padding and pressed shape, because its component tokens can't be set from outside its shadow root."
52263
+ },
52264
+ {
52265
+ "name": "dismiss",
52266
+ "description": "Slot for dismiss button (falls back to close icon button when `has-close-button` is set)."
52267
+ }
52268
+ ],
52269
+ "cssParts": [
52270
+ {
52271
+ "name": "surface",
52272
+ "description": "The surface container of the snackbar."
52273
+ },
52274
+ {
52275
+ "name": "label",
52276
+ "description": "The container wrapping the label content."
52277
+ },
52278
+ {
52279
+ "name": "actions",
52280
+ "description": "The container wrapping action and dismiss slots."
52281
+ }
52282
+ ],
52283
+ "cssProperties": [
52284
+ {
52285
+ "name": "--action-label-text-color",
52286
+ "description": "Action button label text color."
52287
+ },
52288
+ {
52289
+ "name": "--action-label-text",
52290
+ "description": "Action button label typography."
52291
+ },
52292
+ {
52293
+ "name": "--action-label-text-axes",
52294
+ "description": "Action button label typography font variation settings."
52295
+ },
52296
+ {
52297
+ "name": "--action-label-text-tracking",
52298
+ "description": "Action button label letter spacing."
52299
+ },
52300
+ {
52301
+ "name": "--container-color",
52302
+ "description": "Container background color."
52303
+ },
52304
+ {
52305
+ "name": "--container-elevation",
52306
+ "description": "Container box shadow elevation."
52307
+ },
52308
+ {
52309
+ "name": "--container-shape",
52310
+ "description": "Container border radius."
52311
+ },
52312
+ {
52313
+ "name": "--icon-color",
52314
+ "description": "Close icon color."
52315
+ },
52316
+ {
52317
+ "name": "--icon-size",
52318
+ "description": "Close icon size."
52319
+ },
52320
+ {
52321
+ "name": "--supporting-text",
52322
+ "description": "Supporting label typography."
52323
+ },
52324
+ {
52325
+ "name": "--supporting-text-axes",
52326
+ "description": "Supporting label typography font variation settings."
52327
+ },
52328
+ {
52329
+ "name": "--supporting-text-color",
52330
+ "description": "Supporting label text color."
52331
+ },
52332
+ {
52333
+ "name": "--supporting-text-tracking",
52334
+ "description": "Supporting label letter spacing."
52335
+ },
52336
+ {
52337
+ "name": "--min-width",
52338
+ "description": "Minimum surface width in wide layout."
52339
+ },
52340
+ {
52341
+ "name": "--max-width",
52342
+ "description": "Maximum surface width in wide layout."
52343
+ },
52344
+ {
52345
+ "name": "--min-height",
52346
+ "description": "Minimum surface height."
52347
+ },
52348
+ {
52349
+ "name": "--bottom-offset",
52350
+ "description": "Inset block end distance from container bottom."
52351
+ },
52352
+ {
52353
+ "name": "--position",
52354
+ "description": "CSS position property (`absolute` by default)."
52355
+ },
52356
+ {
52357
+ "name": "--z-index",
52358
+ "description": "Z-index of the snackbar."
52359
+ }
52360
+ ]
52361
+ }
52362
+ ],
52363
+ "exports": [
52364
+ {
52365
+ "kind": "js",
52366
+ "name": "OPEN_DURATION_MS",
52367
+ "declaration": {
52368
+ "name": "OPEN_DURATION_MS"
52369
+ }
52370
+ },
52371
+ {
52372
+ "kind": "js",
52373
+ "name": "CLOSE_DURATION_MS",
52374
+ "declaration": {
52375
+ "name": "CLOSE_DURATION_MS"
52376
+ }
52377
+ },
52378
+ {
52379
+ "kind": "js",
52380
+ "name": "SnackbarElement",
52381
+ "declaration": {
52382
+ "name": "SnackbarElement"
52383
+ }
52384
+ }
52385
+ ]
52386
+ },
52387
+ {
52388
+ "kind": "javascript-module",
52389
+ "path": "labs/gb/components/snackbar/snackbar.cssresult.js",
52390
+ "declarations": [
52391
+ {
52392
+ "kind": "variable",
52393
+ "name": "styles",
52394
+ "type": {
52395
+ "text": "CSSResult",
52396
+ "references": [
52397
+ {
52398
+ "name": "CSSResult",
52399
+ "package": "lit",
52400
+ "module": "development/index.js",
52401
+ "start": 0,
52402
+ "end": 9
52403
+ }
52404
+ ]
52405
+ }
52406
+ },
52407
+ {
52408
+ "kind": "variable",
52409
+ "name": "default",
52410
+ "type": {
52411
+ "text": "CSSStyleSheet",
52412
+ "references": [
52413
+ {
52414
+ "name": "CSSStyleSheet",
52415
+ "package": "global:",
52416
+ "start": 0,
52417
+ "end": 13
52418
+ }
52419
+ ]
52420
+ }
52421
+ }
52422
+ ],
52423
+ "exports": [
52424
+ {
52425
+ "kind": "js",
52426
+ "name": "styles",
52427
+ "declaration": {
52428
+ "name": "styles"
52429
+ }
52430
+ },
52431
+ {
52432
+ "kind": "js",
52433
+ "name": "default",
52434
+ "declaration": {
52435
+ "name": "default"
52436
+ }
52437
+ }
52438
+ ]
52439
+ },
52440
+ {
52441
+ "kind": "javascript-module",
52442
+ "path": "labs/gb/components/snackbar/snackbar.js",
52443
+ "declarations": [
52444
+ {
52445
+ "kind": "variable",
52446
+ "name": "CLOSE_REASONS",
52447
+ "description": "Standard reasons for closing a snackbar.",
52448
+ "type": {
52449
+ "text": "{ readonly ACTION: \"action\"; readonly DISMISS: \"dismiss\"; readonly TIMEOUT: \"timeout\"; }"
52450
+ }
52451
+ },
52452
+ {
52453
+ "kind": "variable",
52454
+ "name": "SNACKBAR_CLASSES",
52455
+ "description": "Snackbar CSS classes.",
52456
+ "type": {
52457
+ "text": "{ readonly snackbar: \"snackbar\"; readonly open: \"snackbar-open\"; readonly opening: \"snackbar-opening\"; readonly closing: \"snackbar-closing\"; readonly fixed: \"snackbar-fixed\"; }"
52458
+ }
52459
+ },
52460
+ {
52461
+ "kind": "function",
52462
+ "name": "snackbarClasses",
52463
+ "description": "Returns the class map object for the snackbar based on given state.",
52464
+ "parameters": [
52465
+ {
52466
+ "name": "{\n open = false,\n opening = false,\n closing = false,\n fixed = false,\n}",
52467
+ "type": {
52468
+ "text": "SnackbarClassesState",
52469
+ "references": [
52470
+ {
52471
+ "name": "SnackbarClassesState",
52472
+ "package": "@material/web",
52473
+ "module": "labs/gb/components/snackbar/snackbar.js",
52474
+ "start": 0,
52475
+ "end": 20
52476
+ }
52477
+ ]
52478
+ },
52479
+ "default": "{}",
52480
+ "optional": true
52481
+ }
52482
+ ],
52483
+ "return": {
52484
+ "type": {
52485
+ "text": "ClassInfo",
52486
+ "references": [
52487
+ {
52488
+ "name": "ClassInfo",
52489
+ "package": "lit",
52490
+ "module": "directives/class-map.js",
52491
+ "start": 0,
52492
+ "end": 9
52493
+ }
52494
+ ]
52495
+ }
52496
+ }
52497
+ },
52498
+ {
52499
+ "kind": "function",
52500
+ "name": "setupSnackbar",
52501
+ "description": "Sets up snackbar accessibility and keydown behavior on an element.",
52502
+ "parameters": [
52503
+ {
52504
+ "name": "snackbar",
52505
+ "description": "The snackbar root element.",
52506
+ "type": {
52507
+ "text": "HTMLElement",
52508
+ "references": [
52509
+ {
52510
+ "name": "HTMLElement",
52511
+ "package": "global:",
52512
+ "start": 0,
52513
+ "end": 11
52514
+ }
52515
+ ]
52516
+ }
52517
+ },
52518
+ {
52519
+ "name": "opts",
52520
+ "description": "Options, supports AbortSignal for cleanup.",
52521
+ "type": {
52522
+ "text": "{ signal?: AbortSignal; }",
52523
+ "references": [
52524
+ {
52525
+ "name": "AbortSignal",
52526
+ "package": "global:",
52527
+ "start": 11,
52528
+ "end": 22
52529
+ }
52530
+ ]
52531
+ },
52532
+ "optional": true
52533
+ }
52534
+ ],
52535
+ "return": {
52536
+ "type": {
52537
+ "text": "void"
52538
+ }
52539
+ }
52540
+ },
52541
+ {
52542
+ "kind": "variable",
52543
+ "name": "snackbar",
52544
+ "description": "A Lit directive that adds snackbar classes and setup logic to an element.",
52545
+ "type": {
52546
+ "text": "(state?: SnackbarClassesState & AdditionalClasses) => DirectiveResult<DirectiveClass>",
52547
+ "references": [
52548
+ {
52549
+ "name": "SnackbarClassesState",
52550
+ "package": "@material/web",
52551
+ "module": "labs/gb/components/snackbar/snackbar.js",
52552
+ "start": 9,
52553
+ "end": 29
52554
+ },
52555
+ {
52556
+ "name": "AdditionalClasses",
52557
+ "package": "@material/web",
52558
+ "module": "labs/gb/components/shared/directives.js",
52559
+ "start": 32,
52560
+ "end": 49
52561
+ },
52562
+ {
52563
+ "name": "DirectiveResult",
52564
+ "package": "lit-html",
52565
+ "module": "development/directive.js",
52566
+ "start": 54,
52567
+ "end": 69
52568
+ }
52569
+ ]
52570
+ }
52571
+ }
52572
+ ],
52573
+ "exports": [
52574
+ {
52575
+ "kind": "js",
52576
+ "name": "CLOSE_REASONS",
52577
+ "declaration": {
52578
+ "name": "CLOSE_REASONS"
52579
+ }
52580
+ },
52581
+ {
52582
+ "kind": "js",
52583
+ "name": "SNACKBAR_CLASSES",
52584
+ "declaration": {
52585
+ "name": "SNACKBAR_CLASSES"
52586
+ }
52587
+ },
52588
+ {
52589
+ "kind": "js",
52590
+ "name": "snackbarClasses",
52591
+ "declaration": {
52592
+ "name": "snackbarClasses"
52593
+ }
52594
+ },
52595
+ {
52596
+ "kind": "js",
52597
+ "name": "setupSnackbar",
52598
+ "declaration": {
52599
+ "name": "setupSnackbar"
52600
+ }
52601
+ },
52602
+ {
52603
+ "kind": "js",
52604
+ "name": "snackbar",
52605
+ "declaration": {
52606
+ "name": "snackbar"
52607
+ }
52608
+ }
52609
+ ]
52610
+ },
51399
52611
  {
51400
52612
  "kind": "javascript-module",
51401
52613
  "path": "labs/gb/components/splitbutton/md-gb-split-button.js"