@covalent/components 10.4.0-beta.3 → 11.0.0-beta.1

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 (222) hide show
  1. package/_commonjsHelpers-DGT2Y9Xa.js +1 -0
  2. package/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-MdHo5S7N.mjs} +1 -1
  3. package/action-ribbon.js +5 -5
  4. package/action-ribbon.mjs +33 -33
  5. package/alert.js +5 -5
  6. package/alert.mjs +48 -48
  7. package/app-shell.js +1 -1
  8. package/app-shell.mjs +7 -7
  9. package/async-directive-JqUnzsgG.mjs +66 -0
  10. package/async-directive-X7VhNdG3.js +5 -0
  11. package/badge.js +1 -1
  12. package/badge.mjs +4 -4
  13. package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
  14. package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
  15. package/button.js +2 -2
  16. package/button.mjs +26 -26
  17. package/card.js +8 -8
  18. package/card.mjs +39 -39
  19. package/check-list-item.js +8 -8
  20. package/check-list-item.mjs +34 -34
  21. package/checkbox.js +1 -1
  22. package/checkbox.mjs +15 -15
  23. package/{chip-DmwMNZYy.js → chip-BjFvUMom.js} +44 -44
  24. package/{chip-tQfbvpbh.mjs → chip-Dc7_8pVI.mjs} +412 -408
  25. package/chip-set.js +5 -5
  26. package/chip-set.mjs +125 -125
  27. package/chip.js +1 -1
  28. package/chip.mjs +2 -2
  29. package/circular-progress.js +15 -15
  30. package/circular-progress.mjs +25 -25
  31. package/class-map-DPUylGZM.mjs +36 -0
  32. package/class-map-DTzB8z-1.js +5 -0
  33. package/{code-editor-CryBkPGy.js → code-editor-Bu3qtyEg.js} +110 -110
  34. package/{code-editor-XU5DhFbC.mjs → code-editor-CPpojoPe.mjs} +5423 -5477
  35. package/code-editor.js +1 -1
  36. package/code-editor.mjs +2 -2
  37. package/code-snippet.js +11 -11
  38. package/code-snippet.mjs +2611 -2641
  39. package/{dialog-DMqDMT_N.js → dialog-BShWbhKq.js} +9 -9
  40. package/{dialog-BodJc4rc.mjs → dialog-CGLRIM8z.mjs} +186 -186
  41. package/dialog.js +1 -1
  42. package/dialog.mjs +2 -2
  43. package/directive-C7oCP5Bh.js +5 -0
  44. package/directive-helpers-C-un5pST.js +5 -0
  45. package/directive-helpers-DS-VuBZD.mjs +11 -0
  46. package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
  47. package/drawer.js +2 -2
  48. package/drawer.mjs +14 -14
  49. package/empty-state.js +1 -1
  50. package/empty-state.mjs +6 -6
  51. package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
  52. package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
  53. package/expansion-panel-item.js +1 -1
  54. package/expansion-panel-item.mjs +3 -3
  55. package/expansion-panel.js +1 -1
  56. package/expansion-panel.mjs +5 -5
  57. package/focused-page.js +1 -1
  58. package/focused-page.mjs +7 -7
  59. package/form-element-BOhYShN_.mjs +50 -0
  60. package/form-element-BSAsNxWv.js +5 -0
  61. package/formfield.js +7 -7
  62. package/formfield.mjs +45 -45
  63. package/{foundation-BYhAXCW_.mjs → foundation-CZtT3AWn.mjs} +15 -17
  64. package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
  65. package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
  66. package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
  67. package/full-screen-dialog.js +2 -2
  68. package/full-screen-dialog.mjs +10 -10
  69. package/{html-DW6Y8eLM.mjs → html-DC72jQvb.mjs} +1 -1
  70. package/{html-CEiNqoVv.js → html-wWghN8cA.js} +1 -1
  71. package/icon-button-toggle.js +6 -6
  72. package/icon-button-toggle.mjs +32 -32
  73. package/icon-button.js +5 -5
  74. package/icon-button.mjs +36 -36
  75. package/icon-check-toggle.js +1 -1
  76. package/icon-check-toggle.mjs +7 -7
  77. package/icon-lockup.js +5 -5
  78. package/icon-lockup.mjs +4 -4
  79. package/icon-radio-toggle.js +1 -1
  80. package/icon-radio-toggle.mjs +13 -13
  81. package/icon.js +1 -1
  82. package/icon.mjs +13 -13
  83. package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
  84. package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
  85. package/index.js +7 -7
  86. package/index.mjs +121 -121
  87. package/inert.esm-CknhJysw.mjs +645 -0
  88. package/inert.esm-D2PJKL9E.js +28 -0
  89. package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
  90. package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
  91. package/linear-progress.js +7 -7
  92. package/linear-progress.mjs +32 -32
  93. package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
  94. package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
  95. package/list-item.js +7 -7
  96. package/list-item.mjs +21 -21
  97. package/list.js +3 -3
  98. package/list.mjs +16 -16
  99. package/menu.js +3 -3
  100. package/menu.mjs +16 -16
  101. package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-BrjbMwch.mjs} +28 -28
  102. package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
  103. package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
  104. package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-_d7xArWM.mjs} +11 -11
  105. package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
  106. package/{mwc-icon-DTCUplqR.mjs → mwc-icon-U80igLyY.mjs} +2 -2
  107. package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
  108. package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
  109. package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
  110. package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-at_ngzOj.mjs} +35 -34
  111. package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
  112. package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BtGzAhUF.mjs} +10 -10
  113. package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-BBbQixrF.mjs} +100 -100
  114. package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
  115. package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-BUjxqJjM.mjs} +303 -303
  116. package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
  117. package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
  118. package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-DPbyzNg_.mjs} +8 -8
  119. package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-CBNgYCJf.mjs} +277 -288
  120. package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
  121. package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
  122. package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DJHVL7wZ.mjs} +31 -31
  123. package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
  124. package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-N3OLLWe5.mjs} +21 -21
  125. package/nav-list-item.js +1 -1
  126. package/nav-list-item.mjs +13 -13
  127. package/notebook-cell.js +1 -1
  128. package/notebook-cell.mjs +23 -23
  129. package/package.json +3 -3
  130. package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
  131. package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
  132. package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
  133. package/query-CDOd1Kwm.mjs +15 -0
  134. package/query-Dv2F3m_t.js +5 -0
  135. package/query-assigned-elements-8EurZY45.js +31 -0
  136. package/query-assigned-elements-D930kELM.mjs +591 -0
  137. package/query-assigned-nodes-BAfLwxmx.js +5 -0
  138. package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
  139. package/radio-list-item.js +9 -9
  140. package/radio-list-item.mjs +28 -28
  141. package/radio.js +1 -1
  142. package/radio.mjs +15 -15
  143. package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
  144. package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-_gEIkKpx.mjs} +71 -71
  145. package/select.js +15 -15
  146. package/select.mjs +166 -167
  147. package/side-sheet.js +1 -1
  148. package/side-sheet.mjs +8 -8
  149. package/slider-range.js +5 -5
  150. package/slider-range.mjs +43 -43
  151. package/slider.js +2 -2
  152. package/slider.mjs +19 -19
  153. package/snackbar.js +11 -11
  154. package/snackbar.mjs +54 -54
  155. package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
  156. package/status-dialog.js +1 -1
  157. package/status-dialog.mjs +6 -6
  158. package/status-header-item.js +1 -1
  159. package/status-header-item.mjs +17 -17
  160. package/status-header.js +5 -5
  161. package/status-header.mjs +34 -34
  162. package/style-map-D2TR7M-D.mjs +42 -0
  163. package/style-map-DOMuf9Fg.js +5 -0
  164. package/switch.js +5 -5
  165. package/switch.mjs +42 -42
  166. package/tab-bar.js +11 -11
  167. package/tab-bar.mjs +98 -98
  168. package/tab.js +1 -1
  169. package/tab.mjs +13 -13
  170. package/text-lockup.js +1 -1
  171. package/text-lockup.mjs +9 -9
  172. package/textarea.js +6 -6
  173. package/textarea.mjs +29 -29
  174. package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
  175. package/{textfield-i_Whj47J.mjs → textfield-RbQ6Kwq7.mjs} +102 -102
  176. package/textfield.js +3 -3
  177. package/textfield.mjs +17 -17
  178. package/theme/prebuilt/dark-theme.css +1 -1
  179. package/theme/prebuilt/light-theme.css +1 -1
  180. package/toolbar.js +1 -1
  181. package/toolbar.mjs +4 -4
  182. package/tooltip.js +3 -3
  183. package/tooltip.mjs +54 -55
  184. package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
  185. package/top-app-bar-fixed.js +8 -8
  186. package/top-app-bar-fixed.mjs +40 -40
  187. package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
  188. package/top-app-bar.js +3 -3
  189. package/top-app-bar.mjs +18 -18
  190. package/tree-list-item.js +1 -1
  191. package/tree-list-item.mjs +4 -4
  192. package/tree-list.js +4 -4
  193. package/tree-list.mjs +22 -22
  194. package/tslib.es6-CJ7TUrOc.mjs +75 -0
  195. package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
  196. package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
  197. package/typography.js +1 -1
  198. package/typography.mjs +3 -3
  199. package/_commonjsHelpers-6jR-N8xe.js +0 -1
  200. package/async-directive-2AOdKBUW.mjs +0 -66
  201. package/async-directive-DZ3MjSIj.js +0 -5
  202. package/class-map-BHl5MHd7.mjs +0 -36
  203. package/class-map-PsUYVqvf.js +0 -5
  204. package/directive-C_VV3qwo.js +0 -5
  205. package/directive-helpers-6HCt_-zj.mjs +0 -11
  206. package/directive-helpers-BnUMbYHh.js +0 -5
  207. package/form-element--PS8uSRI.js +0 -5
  208. package/form-element-Dn0Lerng.mjs +0 -50
  209. package/inert.esm-C8R-X3j4.mjs +0 -639
  210. package/inert.esm-t-228rpY.js +0 -28
  211. package/query-BvlE-gMJ.js +0 -5
  212. package/query-DSO61t36.mjs +0 -15
  213. package/query-assigned-elements-BQszEgac.js +0 -31
  214. package/query-assigned-elements-DhyCP_2z.mjs +0 -591
  215. package/query-assigned-nodes-9DFnkxV8.js +0 -5
  216. package/query-assigned-nodes-B-jCihdA.mjs +0 -17
  217. package/style-map-3QfsA_1O.js +0 -5
  218. package/style-map-QxIETvrs.mjs +0 -42
  219. package/theme/prebuilt/dark-theme.css.map +0 -1
  220. package/theme/prebuilt/light-theme.css.map +0 -1
  221. package/tslib.es6-CISSdiiH.mjs +0 -75
  222. /package/{style.css → covalent.css} +0 -0
@@ -1,11 +1,11 @@
1
- import { x as _, i as S, r as F, e as O } from "./query-assigned-elements-DhyCP_2z.mjs";
1
+ import { x as _, i as S, r as F, e as O } from "./query-assigned-elements-D930kELM.mjs";
2
2
  import { n as s } from "./property-DJzm_oB9.mjs";
3
- import { _ as L, a as x, b as r } from "./tslib.es6-CISSdiiH.mjs";
4
- import "./inert.esm-C8R-X3j4.mjs";
5
- import { B as T } from "./base-element-CzNmpVoz.mjs";
6
- import { o as h } from "./observer-DQ8OfVDQ.mjs";
7
- import { i as m } from "./query-DSO61t36.mjs";
8
- import { o as E } from "./class-map-BHl5MHd7.mjs";
3
+ import { _ as L, a as x, b as r } from "./tslib.es6-CJ7TUrOc.mjs";
4
+ import "./inert.esm-CknhJysw.mjs";
5
+ import { B as T } from "./base-element-DUJkJh_y.mjs";
6
+ import { o as f } from "./observer-DQ8OfVDQ.mjs";
7
+ import { i as m } from "./query-CDOd1Kwm.mjs";
8
+ import { o as E } from "./class-map-DPUylGZM.mjs";
9
9
  import { a as I } from "./utils-Dr5MegQq.mjs";
10
10
  /**
11
11
  * @license
@@ -29,7 +29,7 @@ import { a as I } from "./utils-Dr5MegQq.mjs";
29
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
30
  * THE SOFTWARE.
31
31
  */
32
- var n = {
32
+ var a = {
33
33
  CLOSING: "mdc-dialog--closing",
34
34
  OPEN: "mdc-dialog--open",
35
35
  OPENING: "mdc-dialog--opening",
@@ -114,26 +114,26 @@ var R = (
114
114
  function o() {
115
115
  this.rafIDs = /* @__PURE__ */ new Map();
116
116
  }
117
- return o.prototype.request = function(e, t) {
117
+ return o.prototype.request = function(t, e) {
118
118
  var i = this;
119
- this.cancel(e);
120
- var a = requestAnimationFrame(function(c) {
121
- i.rafIDs.delete(e), t(c);
119
+ this.cancel(t);
120
+ var n = requestAnimationFrame(function(c) {
121
+ i.rafIDs.delete(t), e(c);
122
122
  });
123
- this.rafIDs.set(e, a);
124
- }, o.prototype.cancel = function(e) {
125
- var t = this.rafIDs.get(e);
126
- t && (cancelAnimationFrame(t), this.rafIDs.delete(e));
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
127
  }, o.prototype.cancelAll = function() {
128
- var e = this;
129
- this.rafIDs.forEach(function(t, i) {
130
- e.cancel(i);
128
+ var t = this;
129
+ this.rafIDs.forEach(function(e, i) {
130
+ t.cancel(i);
131
131
  });
132
132
  }, o.prototype.getQueue = function() {
133
- var e = [];
134
- return this.rafIDs.forEach(function(t, i) {
135
- e.push(i);
136
- }), e;
133
+ var t = [];
134
+ return this.rafIDs.forEach(function(e, i) {
135
+ t.push(i);
136
+ }), t;
137
137
  }, o;
138
138
  }()
139
139
  );
@@ -162,8 +162,8 @@ var R = (
162
162
  var k = (
163
163
  /** @class */
164
164
  function() {
165
- function o(e) {
166
- e === void 0 && (e = {}), this.adapter = e;
165
+ function o(t) {
166
+ t === void 0 && (t = {}), this.adapter = t;
167
167
  }
168
168
  return Object.defineProperty(o, "cssClasses", {
169
169
  get: function() {
@@ -216,16 +216,16 @@ var k = (
216
216
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
217
217
  * THE SOFTWARE.
218
218
  */
219
- var f;
219
+ var h;
220
220
  (function(o) {
221
221
  o.POLL_SCROLL_POS = "poll_scroll_position", o.POLL_LAYOUT_CHANGE = "poll_layout_change";
222
- })(f || (f = {}));
222
+ })(h || (h = {}));
223
223
  var H = (
224
224
  /** @class */
225
225
  function(o) {
226
- L(e, o);
227
- function e(t) {
228
- var i = o.call(this, x(x({}, e.defaultAdapter), t)) || this;
226
+ L(t, o);
227
+ function t(e) {
228
+ var i = o.call(this, x(x({}, t.defaultAdapter), e)) || this;
229
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 R(), i.contentScrollHandler = function() {
230
230
  i.handleScrollEvent();
231
231
  }, i.windowResizeHandler = function() {
@@ -234,25 +234,25 @@ var H = (
234
234
  i.layout();
235
235
  }, i;
236
236
  }
237
- return Object.defineProperty(e, "cssClasses", {
237
+ return Object.defineProperty(t, "cssClasses", {
238
238
  get: function() {
239
- return n;
239
+ return a;
240
240
  },
241
241
  enumerable: !1,
242
242
  configurable: !0
243
- }), Object.defineProperty(e, "strings", {
243
+ }), Object.defineProperty(t, "strings", {
244
244
  get: function() {
245
245
  return u;
246
246
  },
247
247
  enumerable: !1,
248
248
  configurable: !0
249
- }), Object.defineProperty(e, "numbers", {
249
+ }), Object.defineProperty(t, "numbers", {
250
250
  get: function() {
251
251
  return y;
252
252
  },
253
253
  enumerable: !1,
254
254
  configurable: !0
255
- }), Object.defineProperty(e, "defaultAdapter", {
255
+ }), Object.defineProperty(t, "defaultAdapter", {
256
256
  get: function() {
257
257
  return {
258
258
  addBodyClass: function() {
@@ -315,99 +315,99 @@ var H = (
315
315
  },
316
316
  enumerable: !1,
317
317
  configurable: !0
318
- }), e.prototype.init = function() {
319
- this.adapter.hasClass(n.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(n.FULLSCREEN);
320
- }, e.prototype.destroy = function() {
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
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
- }, e.prototype.open = function(t) {
322
+ }, t.prototype.open = function(e) {
323
323
  var i = this;
324
- this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(n.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), t && t.isAboveFullscreenDialog && this.adapter.addClass(n.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
325
- i.adapter.addClass(n.OPEN), i.adapter.addBodyClass(n.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
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
326
  i.handleAnimationTimerEnd(), i.adapter.trapFocus(i.adapter.getInitialFocusEl()), i.adapter.notifyOpened();
327
327
  }, y.DIALOG_ANIMATION_OPEN_TIME_MS);
328
328
  });
329
- }, e.prototype.close = function(t) {
329
+ }, t.prototype.close = function(e) {
330
330
  var i = this;
331
- t === void 0 && (t = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(t), this.adapter.addClass(n.CLOSING), this.adapter.removeClass(n.OPEN), this.adapter.removeBodyClass(n.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(t);
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
333
  }, y.DIALOG_ANIMATION_CLOSE_TIME_MS));
334
- }, e.prototype.showSurfaceScrim = function() {
335
- var t = this;
336
- this.adapter.addClass(n.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
337
- t.adapter.addClass(n.SURFACE_SCRIM_SHOWN);
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
338
  });
339
- }, e.prototype.hideSurfaceScrim = function() {
340
- this.adapter.removeClass(n.SURFACE_SCRIM_SHOWN), this.adapter.addClass(n.SURFACE_SCRIM_HIDING);
341
- }, e.prototype.handleSurfaceScrimTransitionEnd = function() {
342
- this.adapter.removeClass(n.SURFACE_SCRIM_HIDING), this.adapter.removeClass(n.SURFACE_SCRIM_SHOWING);
343
- }, e.prototype.isOpen = function() {
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
344
  return this.dialogOpen;
345
- }, e.prototype.getEscapeKeyAction = function() {
345
+ }, t.prototype.getEscapeKeyAction = function() {
346
346
  return this.escapeKeyAction;
347
- }, e.prototype.setEscapeKeyAction = function(t) {
348
- this.escapeKeyAction = t;
349
- }, e.prototype.getScrimClickAction = function() {
347
+ }, t.prototype.setEscapeKeyAction = function(e) {
348
+ this.escapeKeyAction = e;
349
+ }, t.prototype.getScrimClickAction = function() {
350
350
  return this.scrimClickAction;
351
- }, e.prototype.setScrimClickAction = function(t) {
352
- this.scrimClickAction = t;
353
- }, e.prototype.getAutoStackButtons = function() {
351
+ }, t.prototype.setScrimClickAction = function(e) {
352
+ this.scrimClickAction = e;
353
+ }, t.prototype.getAutoStackButtons = function() {
354
354
  return this.autoStackButtons;
355
- }, e.prototype.setAutoStackButtons = function(t) {
356
- this.autoStackButtons = t;
357
- }, e.prototype.getSuppressDefaultPressSelector = function() {
355
+ }, t.prototype.setAutoStackButtons = function(e) {
356
+ this.autoStackButtons = e;
357
+ }, t.prototype.getSuppressDefaultPressSelector = function() {
358
358
  return this.suppressDefaultPressSelector;
359
- }, e.prototype.setSuppressDefaultPressSelector = function(t) {
360
- this.suppressDefaultPressSelector = t;
361
- }, e.prototype.layout = function() {
362
- var t = this;
363
- this.animFrame.request(f.POLL_LAYOUT_CHANGE, function() {
364
- t.layoutInternal();
359
+ }, t.prototype.setSuppressDefaultPressSelector = function(e) {
360
+ this.suppressDefaultPressSelector = e;
361
+ }, t.prototype.layout = function() {
362
+ var e = this;
363
+ this.animFrame.request(h.POLL_LAYOUT_CHANGE, function() {
364
+ e.layoutInternal();
365
365
  });
366
- }, e.prototype.handleClick = function(t) {
367
- var i = this.adapter.eventTargetMatches(t.target, u.SCRIM_SELECTOR);
366
+ }, t.prototype.handleClick = function(e) {
367
+ var i = this.adapter.eventTargetMatches(e.target, u.SCRIM_SELECTOR);
368
368
  if (i && this.scrimClickAction !== "")
369
369
  this.close(this.scrimClickAction);
370
370
  else {
371
- var a = this.adapter.getActionFromEvent(t);
372
- a && this.close(a);
371
+ var n = this.adapter.getActionFromEvent(e);
372
+ n && this.close(n);
373
373
  }
374
- }, e.prototype.handleKeydown = function(t) {
375
- var i = t.key === "Enter" || t.keyCode === 13;
374
+ }, t.prototype.handleKeydown = function(e) {
375
+ var i = e.key === "Enter" || e.keyCode === 13;
376
376
  if (i) {
377
- var a = this.adapter.getActionFromEvent(t);
378
- if (!a) {
379
- var c = t.composedPath ? t.composedPath()[0] : t.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
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
380
  i && l && this.adapter.clickDefaultButton();
381
381
  }
382
382
  }
383
- }, e.prototype.handleDocumentKeydown = function(t) {
384
- var i = t.key === "Escape" || t.keyCode === 27;
383
+ }, t.prototype.handleDocumentKeydown = function(e) {
384
+ var i = e.key === "Escape" || e.keyCode === 27;
385
385
  i && this.escapeKeyAction !== "" && this.close(this.escapeKeyAction);
386
- }, e.prototype.handleScrollEvent = function() {
387
- var t = this;
388
- this.animFrame.request(f.POLL_SCROLL_POS, function() {
389
- t.toggleScrollDividerHeader(), t.toggleScrollDividerFooter();
386
+ }, t.prototype.handleScrollEvent = function() {
387
+ var e = this;
388
+ this.animFrame.request(h.POLL_SCROLL_POS, function() {
389
+ e.toggleScrollDividerHeader(), e.toggleScrollDividerFooter();
390
390
  });
391
- }, e.prototype.layoutInternal = function() {
391
+ }, t.prototype.layoutInternal = function() {
392
392
  this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses();
393
- }, e.prototype.handleAnimationTimerEnd = function() {
394
- this.animationTimer = 0, this.adapter.removeClass(n.OPENING), this.adapter.removeClass(n.CLOSING);
395
- }, e.prototype.runNextAnimationFrame = function(t) {
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
396
  var i = this;
397
397
  cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
398
- i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(t, 0);
398
+ i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(e, 0);
399
399
  });
400
- }, e.prototype.detectStackedButtons = function() {
401
- this.adapter.removeClass(n.STACKED);
402
- var t = this.adapter.areButtonsStacked();
403
- t && this.adapter.addClass(n.STACKED), t !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = t);
404
- }, e.prototype.toggleScrollableClasses = function() {
405
- this.adapter.removeClass(n.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(n.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
406
- }, e.prototype.toggleScrollDividerHeader = function() {
407
- this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(n.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(n.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(n.SCROLL_DIVIDER_HEADER);
408
- }, e.prototype.toggleScrollDividerFooter = function() {
409
- this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(n.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(n.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(n.SCROLL_DIVIDER_FOOTER);
410
- }, e;
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
411
  }(k)
412
412
  );
413
413
  /**
@@ -437,21 +437,21 @@ function p(o) {
437
437
  }
438
438
  function N(o) {
439
439
  o === void 0 && (o = window);
440
- var e = !1;
440
+ var t = !1;
441
441
  try {
442
- var t = {
442
+ var e = {
443
443
  // This function will be called when the browser
444
444
  // attempts to access the passive property.
445
445
  get passive() {
446
- return e = !0, !1;
446
+ return t = !0, !1;
447
447
  }
448
448
  }, i = function() {
449
449
  };
450
- o.document.addEventListener("test", i, t), o.document.removeEventListener("test", i, t);
450
+ o.document.addEventListener("test", i, e), o.document.removeEventListener("test", i, e);
451
451
  } catch {
452
- e = !1;
452
+ t = !1;
453
453
  }
454
- return e;
454
+ return t;
455
455
  }
456
456
  /**
457
457
  * @license
@@ -475,32 +475,32 @@ function N(o) {
475
475
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
476
476
  * THE SOFTWARE.
477
477
  */
478
- function P(o, e) {
478
+ function P(o, t) {
479
479
  if (o.closest)
480
- return o.closest(e);
481
- for (var t = o; t; ) {
482
- if (C(t, e))
483
- return t;
484
- t = t.parentElement;
480
+ return o.closest(t);
481
+ for (var e = o; e; ) {
482
+ if (C(e, t))
483
+ return e;
484
+ e = e.parentElement;
485
485
  }
486
486
  return null;
487
487
  }
488
- function C(o, e) {
489
- var t = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
490
- return t.call(o, e);
488
+ function C(o, t) {
489
+ var e = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
490
+ return e.call(o, t);
491
491
  }
492
492
  /**
493
493
  * @license
494
494
  * Copyright 2019 Google LLC
495
495
  * SPDX-License-Identifier: Apache-2.0
496
496
  */
497
- const b = document.$blockingElements;
497
+ const v = document.$blockingElements;
498
498
  class d extends T {
499
499
  constructor() {
500
500
  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;
501
501
  }
502
- set suppressDefaultPressSelector(e) {
503
- this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(e) : this.initialSupressDefaultPressSelector = e;
502
+ set suppressDefaultPressSelector(t) {
503
+ this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(t) : this.initialSupressDefaultPressSelector = t;
504
504
  }
505
505
  /**
506
506
  * @export
@@ -509,96 +509,96 @@ class d extends T {
509
509
  return this.mdcFoundation ? this.mdcFoundation.getSuppressDefaultPressSelector() : this.initialSupressDefaultPressSelector;
510
510
  }
511
511
  get primaryButton() {
512
- let e = this.primarySlot.assignedNodes();
513
- e = e.filter((i) => i instanceof HTMLElement);
514
- const t = e[0];
515
- return t || null;
512
+ let t = this.primarySlot.assignedNodes();
513
+ t = t.filter((i) => i instanceof HTMLElement);
514
+ const e = t[0];
515
+ return e || null;
516
516
  }
517
- emitNotification(e, t) {
518
- const i = { detail: t ? { action: t } : {} }, a = new CustomEvent(e, i);
519
- this.dispatchEvent(a);
517
+ emitNotification(t, e) {
518
+ const i = { detail: e ? { action: e } : {} }, n = new CustomEvent(t, i);
519
+ this.dispatchEvent(n);
520
520
  }
521
521
  getInitialFocusEl() {
522
- const e = `[${this.initialFocusAttribute}]`, t = this.querySelector(e);
523
- if (t)
524
- return t;
525
- const a = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(a, this.initialFocusAttribute);
522
+ const t = `[${this.initialFocusAttribute}]`, e = this.querySelector(t);
523
+ if (e)
524
+ return e;
525
+ const n = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(n, this.initialFocusAttribute);
526
526
  if (c)
527
527
  return c;
528
- const A = this.secondarySlot.assignedNodes({ flatten: !0 }), v = this.searchNodeTreesForAttribute(A, this.initialFocusAttribute);
529
- if (v)
530
- return v;
528
+ const A = this.secondarySlot.assignedNodes({ flatten: !0 }), b = this.searchNodeTreesForAttribute(A, this.initialFocusAttribute);
529
+ if (b)
530
+ return b;
531
531
  const D = this.contentSlot.assignedNodes({ flatten: !0 });
532
532
  return this.searchNodeTreesForAttribute(D, this.initialFocusAttribute);
533
533
  }
534
- searchNodeTreesForAttribute(e, t) {
535
- for (const i of e)
534
+ searchNodeTreesForAttribute(t, e) {
535
+ for (const i of t)
536
536
  if (i instanceof HTMLElement) {
537
- if (i.hasAttribute(t))
537
+ if (i.hasAttribute(e))
538
538
  return i;
539
539
  {
540
- const a = i.querySelector(`[${t}]`);
541
- if (a)
542
- return a;
540
+ const n = i.querySelector(`[${e}]`);
541
+ if (n)
542
+ return n;
543
543
  }
544
544
  }
545
545
  return null;
546
546
  }
547
547
  createAdapter() {
548
548
  return Object.assign(Object.assign({}, I(this.mdcRoot)), { addBodyClass: () => document.body.style.overflow = "hidden", removeBodyClass: () => document.body.style.overflow = "", areButtonsStacked: () => this.stacked, clickDefaultButton: () => {
549
- const e = this.primaryButton;
550
- e && e.click();
551
- }, eventTargetMatches: (e, t) => e ? C(e, t) : !1, getActionFromEvent: (e) => {
552
- if (!e.target)
549
+ const t = this.primaryButton;
550
+ t && t.click();
551
+ }, eventTargetMatches: (t, e) => t ? C(t, e) : !1, getActionFromEvent: (t) => {
552
+ if (!t.target)
553
553
  return "";
554
- const t = P(e.target, `[${this.actionAttribute}]`);
555
- return t && t.getAttribute(this.actionAttribute);
554
+ const e = P(t.target, `[${this.actionAttribute}]`);
555
+ return e && e.getAttribute(this.actionAttribute);
556
556
  }, getInitialFocusEl: () => this.getInitialFocusEl(), isContentScrollable: () => {
557
- const e = this.contentElement;
558
- return e ? e.scrollHeight > e.offsetHeight : !1;
559
- }, notifyClosed: (e) => this.emitNotification("closed", e), notifyClosing: (e) => {
560
- this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", e);
557
+ const t = this.contentElement;
558
+ return t ? t.scrollHeight > t.offsetHeight : !1;
559
+ }, notifyClosed: (t) => this.emitNotification("closed", t), notifyClosing: (t) => {
560
+ this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", t);
561
561
  }, notifyOpened: () => this.emitNotification("opened"), notifyOpening: () => {
562
562
  this.open = !0, this.emitNotification("opening");
563
563
  }, reverseButtons: () => {
564
564
  }, releaseFocus: () => {
565
- b.remove(this);
566
- }, trapFocus: (e) => {
567
- this.isConnected && (b.push(this), e && e.focus());
568
- }, registerContentEventHandler: (e, t) => {
569
- this.contentElement.addEventListener(e, t);
570
- }, deregisterContentEventHandler: (e, t) => {
571
- this.contentElement.removeEventListener(e, t);
565
+ v.remove(this);
566
+ }, trapFocus: (t) => {
567
+ this.isConnected && (v.push(this), t && t.focus());
568
+ }, registerContentEventHandler: (t, e) => {
569
+ this.contentElement.addEventListener(t, e);
570
+ }, deregisterContentEventHandler: (t, e) => {
571
+ this.contentElement.removeEventListener(t, e);
572
572
  }, isScrollableContentAtTop: () => {
573
- const e = this.contentElement;
574
- return e ? e.scrollTop === 0 : !1;
573
+ const t = this.contentElement;
574
+ return t ? t.scrollTop === 0 : !1;
575
575
  }, isScrollableContentAtBottom: () => {
576
- const e = this.contentElement;
577
- return e ? Math.ceil(e.scrollHeight - e.scrollTop) === e.clientHeight : !1;
578
- }, registerWindowEventHandler: (e, t) => {
579
- window.addEventListener(e, t, p());
580
- }, deregisterWindowEventHandler: (e, t) => {
581
- window.removeEventListener(e, t, p());
576
+ const t = this.contentElement;
577
+ return t ? Math.ceil(t.scrollHeight - t.scrollTop) === t.clientHeight : !1;
578
+ }, registerWindowEventHandler: (t, e) => {
579
+ window.addEventListener(t, e, p());
580
+ }, deregisterWindowEventHandler: (t, e) => {
581
+ window.removeEventListener(t, e, p());
582
582
  } });
583
583
  }
584
584
  render() {
585
- const e = {
586
- [n.STACKED]: this.stacked
585
+ const t = {
586
+ [a.STACKED]: this.stacked
587
587
  };
588
- let t = _``;
589
- this.heading && (t = this.renderHeading());
588
+ let e = _``;
589
+ this.heading && (e = this.renderHeading());
590
590
  const i = {
591
591
  "mdc-dialog__actions": !this.hideActions
592
592
  };
593
593
  return _`
594
- <div class="mdc-dialog ${E(e)}"
594
+ <div class="mdc-dialog ${E(t)}"
595
595
  role="alertdialog"
596
596
  aria-modal="true"
597
597
  aria-labelledby="title"
598
598
  aria-describedby="content">
599
599
  <div class="mdc-dialog__container">
600
600
  <div class="mdc-dialog__surface">
601
- ${t}
601
+ ${e}
602
602
  <div id="content" class="mdc-dialog__content">
603
603
  <slot id="contentSlot"></slot>
604
604
  </div>
@@ -633,23 +633,23 @@ class d extends T {
633
633
  super.connectedCallback(), this.open && this.mdcFoundation && !this.mdcFoundation.isOpen() && (this.setEventListeners(), this.mdcFoundation.open());
634
634
  }
635
635
  disconnectedCallback() {
636
- 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));
636
+ 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, v.remove(this));
637
637
  }
638
638
  forceLayout() {
639
639
  this.mdcFoundation.layout();
640
640
  }
641
641
  focus() {
642
- const e = this.getInitialFocusEl();
643
- e && e.focus();
642
+ const t = this.getInitialFocusEl();
643
+ t && t.focus();
644
644
  }
645
645
  blur() {
646
646
  if (!this.shadowRoot)
647
647
  return;
648
- const e = this.shadowRoot.activeElement;
649
- if (e)
650
- e instanceof HTMLElement && e.blur();
648
+ const t = this.shadowRoot.activeElement;
649
+ if (t)
650
+ t instanceof HTMLElement && t.blur();
651
651
  else {
652
- const t = this.getRootNode(), i = t instanceof Document ? t.activeElement : null;
652
+ const e = this.getRootNode(), i = e instanceof Document ? e.activeElement : null;
653
653
  i instanceof HTMLElement && i.blur();
654
654
  }
655
655
  }
@@ -689,7 +689,7 @@ r([
689
689
  ], d.prototype, "hideActions", void 0);
690
690
  r([
691
691
  s({ type: Boolean }),
692
- h(function() {
692
+ f(function() {
693
693
  this.forceLayout();
694
694
  })
695
695
  ], d.prototype, "stacked", void 0);
@@ -698,19 +698,19 @@ r([
698
698
  ], d.prototype, "heading", void 0);
699
699
  r([
700
700
  s({ type: String }),
701
- h(function(o) {
701
+ f(function(o) {
702
702
  this.mdcFoundation.setScrimClickAction(o);
703
703
  })
704
704
  ], d.prototype, "scrimClickAction", void 0);
705
705
  r([
706
706
  s({ type: String }),
707
- h(function(o) {
707
+ f(function(o) {
708
708
  this.mdcFoundation.setEscapeKeyAction(o);
709
709
  })
710
710
  ], d.prototype, "escapeKeyAction", void 0);
711
711
  r([
712
712
  s({ type: Boolean, reflect: !0 }),
713
- h(function(o) {
713
+ f(function(o) {
714
714
  this.mdcFoundation && this.isConnected && (o ? (this.setEventListeners(), this.mdcFoundation.open()) : (this.removeEventListeners(), this.mdcFoundation.close(this.currentAction || this.defaultAction), this.currentAction = void 0));
715
715
  })
716
716
  ], d.prototype, "open", void 0);
@@ -729,10 +729,10 @@ r([
729
729
  * SPDX-LIcense-Identifier: Apache-2.0
730
730
  */
731
731
  const B = S`.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)}:host .mdc-dialog .mdc-dialog__surface{border-radius:var(--cv-dialog-border-radius, var(--mdc-shape-medium, 4));min-height:var(--mdc-dialog-min-height)}:host .mdc-dialog .mdc-dialog__content{padding:var(--cv-dialog-vertical-padding, 20px) var(--cv-dialog-horizontal-padding, 24px)}";
732
- var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, w = (o, e, t, i) => {
733
- for (var a = i > 1 ? void 0 : i ? z(e, t) : e, c = o.length - 1, l; c >= 0; c--)
734
- (l = o[c]) && (a = (i ? l(e, t, a) : l(a)) || a);
735
- return i && a && K(e, t, a), a;
732
+ var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, w = (o, t, e, i) => {
733
+ for (var n = i > 1 ? void 0 : i ? z(t, e) : t, c = o.length - 1, l; c >= 0; c--)
734
+ (l = o[c]) && (n = (i ? l(t, e, n) : l(n)) || n);
735
+ return i && n && K(t, e, n), n;
736
736
  };
737
737
  let g = class extends d {
738
738
  constructor() {
@@ -743,8 +743,8 @@ let g = class extends d {
743
743
  return {
744
744
  ...o,
745
745
  // Override the trapFocus method to prevent the blocking-elements from assigning inert attribute
746
- trapFocus: (e) => {
747
- this.trapFocus ? o.trapFocus(e) : e && !this.isConnected && e.focus();
746
+ trapFocus: (t) => {
747
+ this.trapFocus ? o.trapFocus(t) : t && !this.isConnected && t.focus();
748
748
  }
749
749
  };
750
750
  }
package/dialog.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-BQszEgac.js");require("./property-BRKnMYJe.js");const e=require("./dialog-DMqDMT_N.js");Object.defineProperty(exports,"CovalentDialog",{enumerable:!0,get:()=>e.CovalentDialog});exports.default=e.CovalentDialog$1;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-8EurZY45.js");require("./property-DYTC_2-m.js");const e=require("./dialog-BShWbhKq.js");Object.defineProperty(exports,"CovalentDialog",{enumerable:!0,get:()=>e.CovalentDialog});exports.default=e.CovalentDialog$1;