@covalent/components 6.0.1 → 6.0.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 (193) hide show
  1. package/action-ribbon.mjs +9 -7
  2. package/alert.mjs +13 -11
  3. package/app-shell.mjs +10 -4
  4. package/aria-property.mjs +41 -0
  5. package/base-element.mjs +28 -0
  6. package/button.mjs +180 -13
  7. package/card.mjs +3 -3
  8. package/check-list-item.mjs +92 -14
  9. package/checkbox.mjs +26 -14
  10. package/circular-progress.mjs +144 -10
  11. package/class-map.mjs +62 -0
  12. package/code-snippet.mjs +6 -5
  13. package/covalent.mjs +2 -2
  14. package/covalent.umd.js +3339 -137
  15. package/dialog.mjs +750 -15
  16. package/directive-helpers.mjs +11 -0
  17. package/drawer.mjs +26 -15
  18. package/empty-state.mjs +4 -4
  19. package/event-options.mjs +14 -0
  20. package/form-element.mjs +50 -0
  21. package/foundation.mjs +152 -0
  22. package/foundation2.mjs +60 -0
  23. package/icon-button.mjs +130 -15
  24. package/icon-check-toggle.mjs +18 -8
  25. package/icon-radio-toggle.mjs +29 -18
  26. package/icon.mjs +19 -13
  27. package/if-defined.mjs +10 -0
  28. package/inert.esm.mjs +640 -0
  29. package/linear-progress.mjs +178 -15
  30. package/list-expansion.mjs +33 -22
  31. package/list-item.mjs +19 -20
  32. package/list.mjs +26 -13
  33. package/menu.mjs +32 -13
  34. package/mwc-checkbox-base.mjs +198 -0
  35. package/mwc-checkbox.css.mjs +10 -0
  36. package/mwc-drawer-base.mjs +335 -0
  37. package/mwc-icon.mjs +26 -0
  38. package/mwc-line-ripple-directive.mjs +653 -0
  39. package/mwc-list-base.mjs +840 -0
  40. package/mwc-list-item-base.mjs +202 -0
  41. package/mwc-list-item.css.mjs +17 -0
  42. package/mwc-menu-base.mjs +1145 -0
  43. package/mwc-radio-base.mjs +528 -0
  44. package/mwc-radio.css.mjs +10 -0
  45. package/mwc-slider.css.mjs +956 -0
  46. package/mwc-tab-base.mjs +694 -0
  47. package/mwc-top-app-bar-base.mjs +380 -0
  48. package/nav-list-item.mjs +28 -20
  49. package/observer.mjs +32 -0
  50. package/package.json +9 -2
  51. package/property.mjs +20 -0
  52. package/query-assigned-elements.mjs +615 -0
  53. package/query-assigned-nodes.mjs +17 -0
  54. package/query.mjs +25 -0
  55. package/radio-list-item.mjs +93 -12
  56. package/radio.mjs +28 -15
  57. package/ripple-handlers.mjs +761 -0
  58. package/select.mjs +1257 -15
  59. package/side-sheet.mjs +21 -16
  60. package/slider-range.mjs +438 -11
  61. package/slider.mjs +253 -13
  62. package/snackbar.mjs +456 -15
  63. package/src/action-ribbon/action-ribbon-base.d.ts +30 -0
  64. package/src/action-ribbon/action-ribbon-base.d.ts.map +1 -0
  65. package/src/action-ribbon/action-ribbon.d.ts +15 -0
  66. package/src/action-ribbon/action-ribbon.d.ts.map +1 -0
  67. package/src/alert/alert-base.d.ts +31 -0
  68. package/src/alert/alert-base.d.ts.map +1 -0
  69. package/src/alert/alert.d.ts +15 -0
  70. package/src/alert/alert.d.ts.map +1 -0
  71. package/src/app-shell/app-shell.d.ts +26 -0
  72. package/src/app-shell/app-shell.d.ts.map +1 -0
  73. package/src/button/button.d.ts +10 -0
  74. package/src/button/button.d.ts.map +1 -0
  75. package/src/card/card-base.d.ts +25 -0
  76. package/src/card/card-base.d.ts.map +1 -0
  77. package/src/card/card.d.ts +10 -0
  78. package/src/card/card.d.ts.map +1 -0
  79. package/src/checkbox/checkbox.d.ts +10 -0
  80. package/src/checkbox/checkbox.d.ts.map +1 -0
  81. package/src/chips/chip-base.d.ts +52 -0
  82. package/src/chips/chip-base.d.ts.map +1 -0
  83. package/src/chips/chip-set-base.d.ts +33 -0
  84. package/src/chips/chip-set-base.d.ts.map +1 -0
  85. package/src/chips/chip-set.d.ts +15 -0
  86. package/src/chips/chip-set.d.ts.map +1 -0
  87. package/src/chips/chip.d.ts +15 -0
  88. package/src/chips/chip.d.ts.map +1 -0
  89. package/src/chips/foundation.d.ts +60 -0
  90. package/src/chips/foundation.d.ts.map +1 -0
  91. package/src/circular-progress/circular-progress.d.ts +10 -0
  92. package/src/circular-progress/circular-progress.d.ts.map +1 -0
  93. package/src/code-snippet/code-snippet.d.ts +21 -0
  94. package/src/code-snippet/code-snippet.d.ts.map +1 -0
  95. package/src/dialog/dialog.d.ts +10 -0
  96. package/src/dialog/dialog.d.ts.map +1 -0
  97. package/src/drawer/drawer.d.ts +10 -0
  98. package/src/drawer/drawer.d.ts.map +1 -0
  99. package/src/empty-state/empty-state.d.ts +16 -0
  100. package/src/empty-state/empty-state.d.ts.map +1 -0
  101. package/src/formfield/formfield.d.ts +10 -0
  102. package/src/formfield/formfield.d.ts.map +1 -0
  103. package/src/icon/icon.d.ts +10 -0
  104. package/src/icon/icon.d.ts.map +1 -0
  105. package/src/icon-button/icon-button.d.ts +10 -0
  106. package/src/icon-button/icon-button.d.ts.map +1 -0
  107. package/src/icon-checkbox/icon-check-toggle.d.ts +15 -0
  108. package/src/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
  109. package/src/icon-radio/icon-radio-toggle.d.ts +14 -0
  110. package/src/icon-radio/icon-radio-toggle.d.ts.map +1 -0
  111. package/src/index.d.ts +3 -0
  112. package/src/index.d.ts.map +1 -0
  113. package/src/linear-progress/linear-progress.d.ts +10 -0
  114. package/src/linear-progress/linear-progress.d.ts.map +1 -0
  115. package/src/list/check-list-item.d.ts +10 -0
  116. package/src/list/check-list-item.d.ts.map +1 -0
  117. package/src/list/list-expansion.d.ts +18 -0
  118. package/src/list/list-expansion.d.ts.map +1 -0
  119. package/src/list/list-item.d.ts +12 -0
  120. package/src/list/list-item.d.ts.map +1 -0
  121. package/src/list/list.d.ts +10 -0
  122. package/src/list/list.d.ts.map +1 -0
  123. package/src/list/nav-list-item.d.ts +12 -0
  124. package/src/list/nav-list-item.d.ts.map +1 -0
  125. package/src/list/radio-list-item.d.ts +10 -0
  126. package/src/list/radio-list-item.d.ts.map +1 -0
  127. package/src/menu/menu.d.ts +10 -0
  128. package/src/menu/menu.d.ts.map +1 -0
  129. package/src/radio/radio.d.ts +10 -0
  130. package/src/radio/radio.d.ts.map +1 -0
  131. package/src/select/select.d.ts +10 -0
  132. package/src/select/select.d.ts.map +1 -0
  133. package/src/side-sheet/side-sheet.d.ts +18 -0
  134. package/src/side-sheet/side-sheet.d.ts.map +1 -0
  135. package/src/slider/slider-range.d.ts +10 -0
  136. package/src/slider/slider-range.d.ts.map +1 -0
  137. package/src/slider/slider.d.ts +10 -0
  138. package/src/slider/slider.d.ts.map +1 -0
  139. package/src/snackbar/snackbar.d.ts +10 -0
  140. package/src/snackbar/snackbar.d.ts.map +1 -0
  141. package/src/status-header/status-header-base.d.ts +9 -0
  142. package/src/status-header/status-header-base.d.ts.map +1 -0
  143. package/src/status-header/status-header-item.d.ts +17 -0
  144. package/src/status-header/status-header-item.d.ts.map +1 -0
  145. package/src/status-header/status-header.d.ts +15 -0
  146. package/src/status-header/status-header.d.ts.map +1 -0
  147. package/src/switch/switch.d.ts +10 -0
  148. package/src/switch/switch.d.ts.map +1 -0
  149. package/src/tab/tab-bar.d.ts +10 -0
  150. package/src/tab/tab-bar.d.ts.map +1 -0
  151. package/src/tab/tab.d.ts +10 -0
  152. package/src/tab/tab.d.ts.map +1 -0
  153. package/src/text-lockup/text-lockup.d.ts +17 -0
  154. package/src/text-lockup/text-lockup.d.ts.map +1 -0
  155. package/src/textarea/textarea.d.ts +10 -0
  156. package/src/textarea/textarea.d.ts.map +1 -0
  157. package/src/textfield/textfield.d.ts +10 -0
  158. package/src/textfield/textfield.d.ts.map +1 -0
  159. package/src/toolbar/toolbar.d.ts +10 -0
  160. package/src/toolbar/toolbar.d.ts.map +1 -0
  161. package/src/tooltip/tooltip.d.ts +27 -0
  162. package/src/tooltip/tooltip.d.ts.map +1 -0
  163. package/src/top-app-bar/top-app-bar-fixed.d.ts +10 -0
  164. package/src/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
  165. package/src/top-app-bar/top-app-bar.d.ts +10 -0
  166. package/src/top-app-bar/top-app-bar.d.ts.map +1 -0
  167. package/src/tree-list/tree-list-item.d.ts +16 -0
  168. package/src/tree-list/tree-list-item.d.ts.map +1 -0
  169. package/src/tree-list/tree-list.d.ts +11 -0
  170. package/src/tree-list/tree-list.d.ts.map +1 -0
  171. package/src/typography/typography.d.ts +12 -0
  172. package/src/typography/typography.d.ts.map +1 -0
  173. package/state.mjs +12 -0
  174. package/status-header-item.mjs +16 -16
  175. package/status-header.mjs +5 -5
  176. package/style-map.mjs +40 -0
  177. package/switch.mjs +531 -15
  178. package/tab-bar.mjs +1030 -13
  179. package/tab.mjs +29 -15
  180. package/text-lockup.mjs +8 -8
  181. package/textarea.mjs +111 -16
  182. package/textfield.mjs +34 -18
  183. package/textfield2.mjs +929 -2
  184. package/toolbar.mjs +8 -3
  185. package/tooltip.mjs +1153 -96
  186. package/top-app-bar-fixed.mjs +78 -18
  187. package/top-app-bar.mjs +19 -15
  188. package/top-app-bar2.mjs +9 -2
  189. package/tree-list-item.mjs +3 -3
  190. package/tree-list.mjs +6 -7
  191. package/tslib.es6.mjs +82 -0
  192. package/typography.mjs +8 -8
  193. package/utils.mjs +52 -0
package/dialog.mjs CHANGED
@@ -1,20 +1,755 @@
1
- import { css as c, unsafeCSS as i } from "lit";
2
- import { customElement as n } from "lit/decorators.js";
3
- import { DialogBase as d } from "@material/mwc-dialog/mwc-dialog-base";
4
- import { styles as p } from "@material/mwc-dialog/mwc-dialog.css?used";
5
- const v = `:host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}
1
+ import { y as _, i as E, r as D, e as O } from "./query-assigned-elements.mjs";
2
+ import { _ as F, a as x, b as r } from "./tslib.es6.mjs";
3
+ import "./inert.esm.mjs";
4
+ import { B as T } from "./base-element.mjs";
5
+ import { o as h } from "./observer.mjs";
6
+ import { e as s } from "./property.mjs";
7
+ import { i as m } from "./query.mjs";
8
+ import { o as S } from "./class-map.mjs";
9
+ import { a as L } from "./utils.mjs";
10
+ /**
11
+ * @license
12
+ * Copyright 2016 Google Inc.
13
+ *
14
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ * of this software and associated documentation files (the "Software"), to deal
16
+ * in the Software without restriction, including without limitation the rights
17
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ * copies of the Software, and to permit persons to whom the Software is
19
+ * furnished to do so, subject to the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be included in
22
+ * all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
+ * THE SOFTWARE.
31
+ */
32
+ var a = {
33
+ CLOSING: "mdc-dialog--closing",
34
+ OPEN: "mdc-dialog--open",
35
+ OPENING: "mdc-dialog--opening",
36
+ SCROLLABLE: "mdc-dialog--scrollable",
37
+ SCROLL_LOCK: "mdc-dialog-scroll-lock",
38
+ STACKED: "mdc-dialog--stacked",
39
+ FULLSCREEN: "mdc-dialog--fullscreen",
40
+ // Class for showing a scroll divider on full-screen dialog header element.
41
+ // Should only be displayed on scrollable content, when the dialog content is
42
+ // scrolled "underneath" the header.
43
+ SCROLL_DIVIDER_HEADER: "mdc-dialog-scroll-divider-header",
44
+ // Class for showing a scroll divider on a full-screen dialog footer element.
45
+ // Should only be displayed on scrolalble content, when the dialog content is
46
+ // obscured "underneath" the footer.
47
+ SCROLL_DIVIDER_FOOTER: "mdc-dialog-scroll-divider-footer",
48
+ // The "surface scrim" is a scrim covering only the surface of a dialog. This
49
+ // is used in situations where a confirmation dialog is shown over an already
50
+ // opened full-screen dialog. On larger screen-sizes, the full-screen dialog
51
+ // is sized as a modal and so in these situations we display a "surface scrim"
52
+ // to prevent a "double scrim" (where the scrim from the secondary
53
+ // confirmation dialog would overlap with the scrim from the full-screen
54
+ // dialog).
55
+ SURFACE_SCRIM_SHOWN: "mdc-dialog__surface-scrim--shown",
56
+ // "Showing" animating class for the surface-scrim.
57
+ SURFACE_SCRIM_SHOWING: "mdc-dialog__surface-scrim--showing",
58
+ // "Hiding" animating class for the surface-scrim.
59
+ SURFACE_SCRIM_HIDING: "mdc-dialog__surface-scrim--hiding",
60
+ // Class to hide a dialog's scrim (used in conjunction with a surface-scrim).
61
+ // Note that we only hide the original scrim rather than removing it entirely
62
+ // to prevent interactions with the content behind this scrim, and to capture
63
+ // scrim clicks.
64
+ SCRIM_HIDDEN: "mdc-dialog__scrim--hidden"
65
+ }, u = {
66
+ ACTION_ATTRIBUTE: "data-mdc-dialog-action",
67
+ BUTTON_DEFAULT_ATTRIBUTE: "data-mdc-dialog-button-default",
68
+ BUTTON_SELECTOR: ".mdc-dialog__button",
69
+ CLOSED_EVENT: "MDCDialog:closed",
70
+ CLOSE_ACTION: "close",
71
+ CLOSING_EVENT: "MDCDialog:closing",
72
+ CONTAINER_SELECTOR: ".mdc-dialog__container",
73
+ CONTENT_SELECTOR: ".mdc-dialog__content",
74
+ DESTROY_ACTION: "destroy",
75
+ INITIAL_FOCUS_ATTRIBUTE: "data-mdc-dialog-initial-focus",
76
+ OPENED_EVENT: "MDCDialog:opened",
77
+ OPENING_EVENT: "MDCDialog:opening",
78
+ SCRIM_SELECTOR: ".mdc-dialog__scrim",
79
+ SUPPRESS_DEFAULT_PRESS_SELECTOR: [
80
+ "textarea",
81
+ ".mdc-menu .mdc-list-item",
82
+ ".mdc-menu .mdc-deprecated-list-item"
83
+ ].join(", "),
84
+ SURFACE_SELECTOR: ".mdc-dialog__surface"
85
+ }, y = {
86
+ DIALOG_ANIMATION_CLOSE_TIME_MS: 75,
87
+ DIALOG_ANIMATION_OPEN_TIME_MS: 150
88
+ };
89
+ /**
90
+ * @license
91
+ * Copyright 2020 Google Inc.
92
+ *
93
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
94
+ * of this software and associated documentation files (the "Software"), to deal
95
+ * in the Software without restriction, including without limitation the rights
96
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
97
+ * copies of the Software, and to permit persons to whom the Software is
98
+ * furnished to do so, subject to the following conditions:
99
+ *
100
+ * The above copyright notice and this permission notice shall be included in
101
+ * all copies or substantial portions of the Software.
102
+ *
103
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
104
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
105
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
106
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
107
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
108
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
109
+ * THE SOFTWARE.
110
+ */
111
+ var I = (
112
+ /** @class */
113
+ function() {
114
+ function o() {
115
+ this.rafIDs = /* @__PURE__ */ new Map();
116
+ }
117
+ return o.prototype.request = function(t, e) {
118
+ var i = this;
119
+ this.cancel(t);
120
+ var n = requestAnimationFrame(function(c) {
121
+ i.rafIDs.delete(t), e(c);
122
+ });
123
+ this.rafIDs.set(t, n);
124
+ }, o.prototype.cancel = function(t) {
125
+ var e = this.rafIDs.get(t);
126
+ e && (cancelAnimationFrame(e), this.rafIDs.delete(t));
127
+ }, o.prototype.cancelAll = function() {
128
+ var t = this;
129
+ this.rafIDs.forEach(function(e, i) {
130
+ t.cancel(i);
131
+ });
132
+ }, o.prototype.getQueue = function() {
133
+ var t = [];
134
+ return this.rafIDs.forEach(function(e, i) {
135
+ t.push(i);
136
+ }), t;
137
+ }, o;
138
+ }()
139
+ );
140
+ /**
141
+ * @license
142
+ * Copyright 2016 Google Inc.
143
+ *
144
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
145
+ * of this software and associated documentation files (the "Software"), to deal
146
+ * in the Software without restriction, including without limitation the rights
147
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
148
+ * copies of the Software, and to permit persons to whom the Software is
149
+ * furnished to do so, subject to the following conditions:
150
+ *
151
+ * The above copyright notice and this permission notice shall be included in
152
+ * all copies or substantial portions of the Software.
153
+ *
154
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
155
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
156
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
157
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
158
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
159
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
160
+ * THE SOFTWARE.
161
+ */
162
+ var R = (
163
+ /** @class */
164
+ function() {
165
+ function o(t) {
166
+ t === void 0 && (t = {}), this.adapter = t;
167
+ }
168
+ return Object.defineProperty(o, "cssClasses", {
169
+ get: function() {
170
+ return {};
171
+ },
172
+ enumerable: !1,
173
+ configurable: !0
174
+ }), Object.defineProperty(o, "strings", {
175
+ get: function() {
176
+ return {};
177
+ },
178
+ enumerable: !1,
179
+ configurable: !0
180
+ }), Object.defineProperty(o, "numbers", {
181
+ get: function() {
182
+ return {};
183
+ },
184
+ enumerable: !1,
185
+ configurable: !0
186
+ }), Object.defineProperty(o, "defaultAdapter", {
187
+ get: function() {
188
+ return {};
189
+ },
190
+ enumerable: !1,
191
+ configurable: !0
192
+ }), o.prototype.init = function() {
193
+ }, o.prototype.destroy = function() {
194
+ }, o;
195
+ }()
196
+ );
197
+ /**
198
+ * @license
199
+ * Copyright 2017 Google Inc.
200
+ *
201
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
202
+ * of this software and associated documentation files (the "Software"), to deal
203
+ * in the Software without restriction, including without limitation the rights
204
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
205
+ * copies of the Software, and to permit persons to whom the Software is
206
+ * furnished to do so, subject to the following conditions:
207
+ *
208
+ * The above copyright notice and this permission notice shall be included in
209
+ * all copies or substantial portions of the Software.
210
+ *
211
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
212
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
213
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
214
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
215
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
216
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
217
+ * THE SOFTWARE.
218
+ */
219
+ var p;
220
+ (function(o) {
221
+ o.POLL_SCROLL_POS = "poll_scroll_position", o.POLL_LAYOUT_CHANGE = "poll_layout_change";
222
+ })(p || (p = {}));
223
+ var k = (
224
+ /** @class */
225
+ function(o) {
226
+ F(t, o);
227
+ function t(e) {
228
+ var i = o.call(this, x(x({}, t.defaultAdapter), e)) || this;
229
+ return i.dialogOpen = !1, i.isFullscreen = !1, i.animationFrame = 0, i.animationTimer = 0, i.escapeKeyAction = u.CLOSE_ACTION, i.scrimClickAction = u.CLOSE_ACTION, i.autoStackButtons = !0, i.areButtonsStacked = !1, i.suppressDefaultPressSelector = u.SUPPRESS_DEFAULT_PRESS_SELECTOR, i.animFrame = new I(), i.contentScrollHandler = function() {
230
+ i.handleScrollEvent();
231
+ }, i.windowResizeHandler = function() {
232
+ i.layout();
233
+ }, i.windowOrientationChangeHandler = function() {
234
+ i.layout();
235
+ }, i;
236
+ }
237
+ return Object.defineProperty(t, "cssClasses", {
238
+ get: function() {
239
+ return a;
240
+ },
241
+ enumerable: !1,
242
+ configurable: !0
243
+ }), Object.defineProperty(t, "strings", {
244
+ get: function() {
245
+ return u;
246
+ },
247
+ enumerable: !1,
248
+ configurable: !0
249
+ }), Object.defineProperty(t, "numbers", {
250
+ get: function() {
251
+ return y;
252
+ },
253
+ enumerable: !1,
254
+ configurable: !0
255
+ }), Object.defineProperty(t, "defaultAdapter", {
256
+ get: function() {
257
+ return {
258
+ addBodyClass: function() {
259
+ },
260
+ addClass: function() {
261
+ },
262
+ areButtonsStacked: function() {
263
+ return !1;
264
+ },
265
+ clickDefaultButton: function() {
266
+ },
267
+ eventTargetMatches: function() {
268
+ return !1;
269
+ },
270
+ getActionFromEvent: function() {
271
+ return "";
272
+ },
273
+ getInitialFocusEl: function() {
274
+ return null;
275
+ },
276
+ hasClass: function() {
277
+ return !1;
278
+ },
279
+ isContentScrollable: function() {
280
+ return !1;
281
+ },
282
+ notifyClosed: function() {
283
+ },
284
+ notifyClosing: function() {
285
+ },
286
+ notifyOpened: function() {
287
+ },
288
+ notifyOpening: function() {
289
+ },
290
+ releaseFocus: function() {
291
+ },
292
+ removeBodyClass: function() {
293
+ },
294
+ removeClass: function() {
295
+ },
296
+ reverseButtons: function() {
297
+ },
298
+ trapFocus: function() {
299
+ },
300
+ registerContentEventHandler: function() {
301
+ },
302
+ deregisterContentEventHandler: function() {
303
+ },
304
+ isScrollableContentAtTop: function() {
305
+ return !1;
306
+ },
307
+ isScrollableContentAtBottom: function() {
308
+ return !1;
309
+ },
310
+ registerWindowEventHandler: function() {
311
+ },
312
+ deregisterWindowEventHandler: function() {
313
+ }
314
+ };
315
+ },
316
+ enumerable: !1,
317
+ configurable: !0
318
+ }), t.prototype.init = function() {
319
+ this.adapter.hasClass(a.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(a.FULLSCREEN);
320
+ }, t.prototype.destroy = function() {
321
+ this.animationTimer && (clearTimeout(this.animationTimer), this.handleAnimationTimerEnd()), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.animFrame.cancelAll(), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler);
322
+ }, t.prototype.open = function(e) {
323
+ var i = this;
324
+ this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(a.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), e && e.isAboveFullscreenDialog && this.adapter.addClass(a.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
325
+ i.adapter.addClass(a.OPEN), i.adapter.addBodyClass(a.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
326
+ i.handleAnimationTimerEnd(), i.adapter.trapFocus(i.adapter.getInitialFocusEl()), i.adapter.notifyOpened();
327
+ }, y.DIALOG_ANIMATION_OPEN_TIME_MS);
328
+ });
329
+ }, t.prototype.close = function(e) {
330
+ var i = this;
331
+ e === void 0 && (e = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(e), this.adapter.addClass(a.CLOSING), this.adapter.removeClass(a.OPEN), this.adapter.removeBodyClass(a.SCROLL_LOCK), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
332
+ i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(e);
333
+ }, y.DIALOG_ANIMATION_CLOSE_TIME_MS));
334
+ }, t.prototype.showSurfaceScrim = function() {
335
+ var e = this;
336
+ this.adapter.addClass(a.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
337
+ e.adapter.addClass(a.SURFACE_SCRIM_SHOWN);
338
+ });
339
+ }, t.prototype.hideSurfaceScrim = function() {
340
+ this.adapter.removeClass(a.SURFACE_SCRIM_SHOWN), this.adapter.addClass(a.SURFACE_SCRIM_HIDING);
341
+ }, t.prototype.handleSurfaceScrimTransitionEnd = function() {
342
+ this.adapter.removeClass(a.SURFACE_SCRIM_HIDING), this.adapter.removeClass(a.SURFACE_SCRIM_SHOWING);
343
+ }, t.prototype.isOpen = function() {
344
+ return this.dialogOpen;
345
+ }, t.prototype.getEscapeKeyAction = function() {
346
+ return this.escapeKeyAction;
347
+ }, t.prototype.setEscapeKeyAction = function(e) {
348
+ this.escapeKeyAction = e;
349
+ }, t.prototype.getScrimClickAction = function() {
350
+ return this.scrimClickAction;
351
+ }, t.prototype.setScrimClickAction = function(e) {
352
+ this.scrimClickAction = e;
353
+ }, t.prototype.getAutoStackButtons = function() {
354
+ return this.autoStackButtons;
355
+ }, t.prototype.setAutoStackButtons = function(e) {
356
+ this.autoStackButtons = e;
357
+ }, t.prototype.getSuppressDefaultPressSelector = function() {
358
+ return this.suppressDefaultPressSelector;
359
+ }, t.prototype.setSuppressDefaultPressSelector = function(e) {
360
+ this.suppressDefaultPressSelector = e;
361
+ }, t.prototype.layout = function() {
362
+ var e = this;
363
+ this.animFrame.request(p.POLL_LAYOUT_CHANGE, function() {
364
+ e.layoutInternal();
365
+ });
366
+ }, t.prototype.handleClick = function(e) {
367
+ var i = this.adapter.eventTargetMatches(e.target, u.SCRIM_SELECTOR);
368
+ if (i && this.scrimClickAction !== "")
369
+ this.close(this.scrimClickAction);
370
+ else {
371
+ var n = this.adapter.getActionFromEvent(e);
372
+ n && this.close(n);
373
+ }
374
+ }, t.prototype.handleKeydown = function(e) {
375
+ var i = e.key === "Enter" || e.keyCode === 13;
376
+ if (i) {
377
+ var n = this.adapter.getActionFromEvent(e);
378
+ if (!n) {
379
+ var c = e.composedPath ? e.composedPath()[0] : e.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
380
+ i && l && this.adapter.clickDefaultButton();
381
+ }
382
+ }
383
+ }, t.prototype.handleDocumentKeydown = function(e) {
384
+ var i = e.key === "Escape" || e.keyCode === 27;
385
+ i && this.escapeKeyAction !== "" && this.close(this.escapeKeyAction);
386
+ }, t.prototype.handleScrollEvent = function() {
387
+ var e = this;
388
+ this.animFrame.request(p.POLL_SCROLL_POS, function() {
389
+ e.toggleScrollDividerHeader(), e.toggleScrollDividerFooter();
390
+ });
391
+ }, t.prototype.layoutInternal = function() {
392
+ this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses();
393
+ }, t.prototype.handleAnimationTimerEnd = function() {
394
+ this.animationTimer = 0, this.adapter.removeClass(a.OPENING), this.adapter.removeClass(a.CLOSING);
395
+ }, t.prototype.runNextAnimationFrame = function(e) {
396
+ var i = this;
397
+ cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
398
+ i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(e, 0);
399
+ });
400
+ }, t.prototype.detectStackedButtons = function() {
401
+ this.adapter.removeClass(a.STACKED);
402
+ var e = this.adapter.areButtonsStacked();
403
+ e && this.adapter.addClass(a.STACKED), e !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = e);
404
+ }, t.prototype.toggleScrollableClasses = function() {
405
+ this.adapter.removeClass(a.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(a.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
406
+ }, t.prototype.toggleScrollDividerHeader = function() {
407
+ this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(a.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(a.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(a.SCROLL_DIVIDER_HEADER);
408
+ }, t.prototype.toggleScrollDividerFooter = function() {
409
+ this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(a.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(a.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(a.SCROLL_DIVIDER_FOOTER);
410
+ }, t;
411
+ }(R)
412
+ );
413
+ const H = k;
414
+ /**
415
+ * @license
416
+ * Copyright 2019 Google Inc.
417
+ *
418
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
419
+ * of this software and associated documentation files (the "Software"), to deal
420
+ * in the Software without restriction, including without limitation the rights
421
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
422
+ * copies of the Software, and to permit persons to whom the Software is
423
+ * furnished to do so, subject to the following conditions:
424
+ *
425
+ * The above copyright notice and this permission notice shall be included in
426
+ * all copies or substantial portions of the Software.
427
+ *
428
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
429
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
430
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
431
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
432
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
433
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
434
+ * THE SOFTWARE.
435
+ */
436
+ function g(o) {
437
+ return o === void 0 && (o = window), N(o) ? { passive: !0 } : !1;
438
+ }
439
+ function N(o) {
440
+ o === void 0 && (o = window);
441
+ var t = !1;
442
+ try {
443
+ var e = {
444
+ // This function will be called when the browser
445
+ // attempts to access the passive property.
446
+ get passive() {
447
+ return t = !0, !1;
448
+ }
449
+ }, i = function() {
450
+ };
451
+ o.document.addEventListener("test", i, e), o.document.removeEventListener("test", i, e);
452
+ } catch {
453
+ t = !1;
454
+ }
455
+ return t;
456
+ }
457
+ /**
458
+ * @license
459
+ * Copyright 2018 Google Inc.
460
+ *
461
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
462
+ * of this software and associated documentation files (the "Software"), to deal
463
+ * in the Software without restriction, including without limitation the rights
464
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
465
+ * copies of the Software, and to permit persons to whom the Software is
466
+ * furnished to do so, subject to the following conditions:
467
+ *
468
+ * The above copyright notice and this permission notice shall be included in
469
+ * all copies or substantial portions of the Software.
470
+ *
471
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
472
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
473
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
474
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
475
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
476
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
477
+ * THE SOFTWARE.
478
+ */
479
+ function P(o, t) {
480
+ if (o.closest)
481
+ return o.closest(t);
482
+ for (var e = o; e; ) {
483
+ if (C(e, t))
484
+ return e;
485
+ e = e.parentElement;
486
+ }
487
+ return null;
488
+ }
489
+ function C(o, t) {
490
+ var e = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
491
+ return e.call(o, t);
492
+ }
493
+ /**
494
+ * @license
495
+ * Copyright 2019 Google LLC
496
+ * SPDX-License-Identifier: Apache-2.0
497
+ */
498
+ const b = document.$blockingElements;
499
+ class d extends T {
500
+ constructor() {
501
+ super(...arguments), this.hideActions = !1, this.stacked = !1, this.heading = "", this.scrimClickAction = "close", this.escapeKeyAction = "close", this.open = !1, this.defaultAction = "close", this.actionAttribute = "dialogAction", this.initialFocusAttribute = "dialogInitialFocus", this.initialSupressDefaultPressSelector = "", this.mdcFoundationClass = H, this.boundHandleClick = null, this.boundHandleKeydown = null, this.boundHandleDocumentKeydown = null;
502
+ }
503
+ set suppressDefaultPressSelector(t) {
504
+ this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(t) : this.initialSupressDefaultPressSelector = t;
505
+ }
506
+ /**
507
+ * @export
508
+ */
509
+ get suppressDefaultPressSelector() {
510
+ return this.mdcFoundation ? this.mdcFoundation.getSuppressDefaultPressSelector() : this.initialSupressDefaultPressSelector;
511
+ }
512
+ get primaryButton() {
513
+ let t = this.primarySlot.assignedNodes();
514
+ t = t.filter((i) => i instanceof HTMLElement);
515
+ const e = t[0];
516
+ return e || null;
517
+ }
518
+ emitNotification(t, e) {
519
+ const i = { detail: e ? { action: e } : {} }, n = new CustomEvent(t, i);
520
+ this.dispatchEvent(n);
521
+ }
522
+ getInitialFocusEl() {
523
+ const t = `[${this.initialFocusAttribute}]`, e = this.querySelector(t);
524
+ if (e)
525
+ return e;
526
+ const n = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(n, this.initialFocusAttribute);
527
+ if (c)
528
+ return c;
529
+ const w = this.secondarySlot.assignedNodes({ flatten: !0 }), v = this.searchNodeTreesForAttribute(w, this.initialFocusAttribute);
530
+ if (v)
531
+ return v;
532
+ const A = this.contentSlot.assignedNodes({ flatten: !0 });
533
+ return this.searchNodeTreesForAttribute(A, this.initialFocusAttribute);
534
+ }
535
+ searchNodeTreesForAttribute(t, e) {
536
+ for (const i of t)
537
+ if (i instanceof HTMLElement) {
538
+ if (i.hasAttribute(e))
539
+ return i;
540
+ {
541
+ const n = i.querySelector(`[${e}]`);
542
+ if (n)
543
+ return n;
544
+ }
545
+ }
546
+ return null;
547
+ }
548
+ createAdapter() {
549
+ return Object.assign(Object.assign({}, L(this.mdcRoot)), { addBodyClass: () => document.body.style.overflow = "hidden", removeBodyClass: () => document.body.style.overflow = "", areButtonsStacked: () => this.stacked, clickDefaultButton: () => {
550
+ const t = this.primaryButton;
551
+ t && t.click();
552
+ }, eventTargetMatches: (t, e) => t ? C(t, e) : !1, getActionFromEvent: (t) => {
553
+ if (!t.target)
554
+ return "";
555
+ const e = P(t.target, `[${this.actionAttribute}]`);
556
+ return e && e.getAttribute(this.actionAttribute);
557
+ }, getInitialFocusEl: () => this.getInitialFocusEl(), isContentScrollable: () => {
558
+ const t = this.contentElement;
559
+ return t ? t.scrollHeight > t.offsetHeight : !1;
560
+ }, notifyClosed: (t) => this.emitNotification("closed", t), notifyClosing: (t) => {
561
+ this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", t);
562
+ }, notifyOpened: () => this.emitNotification("opened"), notifyOpening: () => {
563
+ this.open = !0, this.emitNotification("opening");
564
+ }, reverseButtons: () => {
565
+ }, releaseFocus: () => {
566
+ b.remove(this);
567
+ }, trapFocus: (t) => {
568
+ this.isConnected && (b.push(this), t && t.focus());
569
+ }, registerContentEventHandler: (t, e) => {
570
+ this.contentElement.addEventListener(t, e);
571
+ }, deregisterContentEventHandler: (t, e) => {
572
+ this.contentElement.removeEventListener(t, e);
573
+ }, isScrollableContentAtTop: () => {
574
+ const t = this.contentElement;
575
+ return t ? t.scrollTop === 0 : !1;
576
+ }, isScrollableContentAtBottom: () => {
577
+ const t = this.contentElement;
578
+ return t ? Math.ceil(t.scrollHeight - t.scrollTop) === t.clientHeight : !1;
579
+ }, registerWindowEventHandler: (t, e) => {
580
+ window.addEventListener(t, e, g());
581
+ }, deregisterWindowEventHandler: (t, e) => {
582
+ window.removeEventListener(t, e, g());
583
+ } });
584
+ }
585
+ render() {
586
+ const t = {
587
+ [a.STACKED]: this.stacked
588
+ };
589
+ let e = _``;
590
+ this.heading && (e = this.renderHeading());
591
+ const i = {
592
+ "mdc-dialog__actions": !this.hideActions
593
+ };
594
+ return _`
595
+ <div class="mdc-dialog ${S(t)}"
596
+ role="alertdialog"
597
+ aria-modal="true"
598
+ aria-labelledby="title"
599
+ aria-describedby="content">
600
+ <div class="mdc-dialog__container">
601
+ <div class="mdc-dialog__surface">
602
+ ${e}
603
+ <div id="content" class="mdc-dialog__content">
604
+ <slot id="contentSlot"></slot>
605
+ </div>
606
+ <footer
607
+ id="actions"
608
+ class="${S(i)}">
609
+ <span>
610
+ <slot name="secondaryAction"></slot>
611
+ </span>
612
+ <span>
613
+ <slot name="primaryAction"></slot>
614
+ </span>
615
+ </footer>
616
+ </div>
617
+ </div>
618
+ <div class="mdc-dialog__scrim"></div>
619
+ </div>`;
620
+ }
621
+ renderHeading() {
622
+ return _`
623
+ <h2 id="title" class="mdc-dialog__title">${this.heading}</h2>`;
624
+ }
625
+ firstUpdated() {
626
+ super.firstUpdated(), this.mdcFoundation.setAutoStackButtons(!0), this.initialSupressDefaultPressSelector ? this.suppressDefaultPressSelector = this.initialSupressDefaultPressSelector : this.suppressDefaultPressSelector = [
627
+ this.suppressDefaultPressSelector,
628
+ "mwc-textarea",
629
+ "mwc-menu mwc-list-item",
630
+ "mwc-select mwc-list-item"
631
+ ].join(", "), this.boundHandleClick = this.mdcFoundation.handleClick.bind(this.mdcFoundation), this.boundHandleKeydown = this.mdcFoundation.handleKeydown.bind(this.mdcFoundation), this.boundHandleDocumentKeydown = this.mdcFoundation.handleDocumentKeydown.bind(this.mdcFoundation);
632
+ }
633
+ connectedCallback() {
634
+ super.connectedCallback(), this.open && this.mdcFoundation && !this.mdcFoundation.isOpen() && (this.setEventListeners(), this.mdcFoundation.open());
635
+ }
636
+ disconnectedCallback() {
637
+ super.disconnectedCallback(), this.open && this.mdcFoundation && (this.removeEventListeners(), this.closingDueToDisconnect = !0, this.mdcFoundation.close(this.currentAction || this.defaultAction), this.closingDueToDisconnect = !1, this.currentAction = void 0, b.remove(this));
638
+ }
639
+ forceLayout() {
640
+ this.mdcFoundation.layout();
641
+ }
642
+ focus() {
643
+ const t = this.getInitialFocusEl();
644
+ t && t.focus();
645
+ }
646
+ blur() {
647
+ if (!this.shadowRoot)
648
+ return;
649
+ const t = this.shadowRoot.activeElement;
650
+ if (t)
651
+ t instanceof HTMLElement && t.blur();
652
+ else {
653
+ const e = this.getRootNode(), i = e instanceof Document ? e.activeElement : null;
654
+ i instanceof HTMLElement && i.blur();
655
+ }
656
+ }
657
+ setEventListeners() {
658
+ this.boundHandleClick && this.mdcRoot.addEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.addEventListener("keydown", this.boundHandleKeydown, g()), this.boundHandleDocumentKeydown && document.addEventListener("keydown", this.boundHandleDocumentKeydown, g());
659
+ }
660
+ removeEventListeners() {
661
+ this.boundHandleClick && this.mdcRoot.removeEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.removeEventListener("keydown", this.boundHandleKeydown), this.boundHandleDocumentKeydown && document.removeEventListener("keydown", this.boundHandleDocumentKeydown);
662
+ }
663
+ close() {
664
+ this.open = !1;
665
+ }
666
+ show() {
667
+ this.open = !0;
668
+ }
669
+ }
670
+ r([
671
+ m(".mdc-dialog")
672
+ ], d.prototype, "mdcRoot", void 0);
673
+ r([
674
+ m('slot[name="primaryAction"]')
675
+ ], d.prototype, "primarySlot", void 0);
676
+ r([
677
+ m('slot[name="secondaryAction"]')
678
+ ], d.prototype, "secondarySlot", void 0);
679
+ r([
680
+ m("#contentSlot")
681
+ ], d.prototype, "contentSlot", void 0);
682
+ r([
683
+ m(".mdc-dialog__content")
684
+ ], d.prototype, "contentElement", void 0);
685
+ r([
686
+ m(".mdc-container")
687
+ ], d.prototype, "conatinerElement", void 0);
688
+ r([
689
+ s({ type: Boolean })
690
+ ], d.prototype, "hideActions", void 0);
691
+ r([
692
+ s({ type: Boolean }),
693
+ h(function() {
694
+ this.forceLayout();
695
+ })
696
+ ], d.prototype, "stacked", void 0);
697
+ r([
698
+ s({ type: String })
699
+ ], d.prototype, "heading", void 0);
700
+ r([
701
+ s({ type: String }),
702
+ h(function(o) {
703
+ this.mdcFoundation.setScrimClickAction(o);
704
+ })
705
+ ], d.prototype, "scrimClickAction", void 0);
706
+ r([
707
+ s({ type: String }),
708
+ h(function(o) {
709
+ this.mdcFoundation.setEscapeKeyAction(o);
710
+ })
711
+ ], d.prototype, "escapeKeyAction", void 0);
712
+ r([
713
+ s({ type: Boolean, reflect: !0 }),
714
+ h(function(o) {
715
+ this.mdcFoundation && this.isConnected && (o ? (this.setEventListeners(), this.mdcFoundation.open()) : (this.removeEventListeners(), this.mdcFoundation.close(this.currentAction || this.defaultAction), this.currentAction = void 0));
716
+ })
717
+ ], d.prototype, "open", void 0);
718
+ r([
719
+ s()
720
+ ], d.prototype, "defaultAction", void 0);
721
+ r([
722
+ s()
723
+ ], d.prototype, "actionAttribute", void 0);
724
+ r([
725
+ s()
726
+ ], d.prototype, "initialFocusAttribute", void 0);
727
+ /**
728
+ * @license
729
+ * Copyright 2021 Google LLC
730
+ * SPDX-LIcense-Identifier: Apache-2.0
731
+ */
732
+ const B = E`.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}@media(min-width: 560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width, 560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32);background-color:var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87);color:var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6);color:var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width, 280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height, calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){margin-left:0;margin-right:8px}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions *:not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}`, M = `:host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}
6
733
  `;
7
- var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, h = (m, o, t, r) => {
8
- for (var e = r > 1 ? void 0 : r ? g(o, t) : o, s = m.length - 1, l; s >= 0; s--)
9
- (l = m[s]) && (e = (r ? l(o, t, e) : l(e)) || e);
10
- return r && e && f(o, t, e), e;
734
+ var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, U = (o, t, e, i) => {
735
+ for (var n = i > 1 ? void 0 : i ? z(t, e) : t, c = o.length - 1, l; c >= 0; c--)
736
+ (l = o[c]) && (n = (i ? l(t, e, n) : l(n)) || n);
737
+ return i && n && K(t, e, n), n;
11
738
  };
12
- let a = class extends d {
739
+ let f = class extends d {
13
740
  };
14
- a.styles = [p, c`${i(v)}`];
15
- a = h([
16
- n("cv-dialog")
17
- ], a);
741
+ f.styles = [B, E`${D(M)}`];
742
+ f = U([
743
+ O("cv-dialog")
744
+ ], f);
745
+ const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
746
+ __proto__: null,
747
+ get CovalentDialogBase() {
748
+ return f;
749
+ }
750
+ }, Symbol.toStringTag, { value: "Module" }));
18
751
  export {
19
- a as CovalentDialogBase
752
+ f as C,
753
+ tt as d,
754
+ B as s
20
755
  };