@covalent/components 6.0.3 → 6.0.5

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 (304) hide show
  1. package/action-ribbon/action-ribbon-base.d.ts.map +1 -0
  2. package/{src/action-ribbon → action-ribbon}/action-ribbon.d.ts +1 -0
  3. package/action-ribbon/action-ribbon.d.ts.map +1 -0
  4. package/action-ribbon.js +18 -0
  5. package/action-ribbon.mjs +13 -11
  6. package/alert/alert-base.d.ts.map +1 -0
  7. package/{src/alert → alert}/alert.d.ts +1 -0
  8. package/alert/alert.d.ts.map +1 -0
  9. package/alert.js +21 -0
  10. package/alert.mjs +14 -12
  11. package/{src/app-shell → app-shell}/app-shell.d.ts +1 -0
  12. package/app-shell/app-shell.d.ts.map +1 -0
  13. package/app-shell.js +41 -0
  14. package/app-shell.mjs +19 -17
  15. package/aria-property.mjs +2 -38
  16. package/base-element.mjs +2 -25
  17. package/{src/button → button}/button.d.ts +3 -2
  18. package/button/button.d.ts.map +1 -0
  19. package/button.js +44 -0
  20. package/button.mjs +11 -9
  21. package/card/card-base.d.ts.map +1 -0
  22. package/{src/card → card}/card.d.ts +3 -2
  23. package/card/card.d.ts.map +1 -0
  24. package/card.js +19 -0
  25. package/card.mjs +3 -1
  26. package/check-list-item.js +27 -0
  27. package/check-list-item.mjs +17 -15
  28. package/{src/checkbox → checkbox}/checkbox.d.ts +3 -2
  29. package/checkbox/checkbox.d.ts.map +1 -0
  30. package/checkbox.js +2 -0
  31. package/checkbox.mjs +15 -13
  32. package/chips/chip-base.d.ts.map +1 -0
  33. package/chips/chip-set-base.d.ts.map +1 -0
  34. package/{src/chips → chips}/chip-set.d.ts +1 -0
  35. package/chips/chip-set.d.ts.map +1 -0
  36. package/{src/chips → chips}/chip.d.ts +1 -0
  37. package/chips/chip.d.ts.map +1 -0
  38. package/chips/foundation.d.ts.map +1 -0
  39. package/circular-progress/circular-progress.d.ts +11 -0
  40. package/circular-progress/circular-progress.d.ts.map +1 -0
  41. package/circular-progress.js +65 -0
  42. package/circular-progress.mjs +11 -9
  43. package/class-map.mjs +3 -56
  44. package/{src/code-snippet → code-snippet}/code-snippet.d.ts +3 -2
  45. package/code-snippet/code-snippet.d.ts.map +1 -0
  46. package/code-snippet.js +13 -0
  47. package/code-snippet.mjs +36 -34
  48. package/{src/dialog → dialog}/dialog.d.ts +3 -2
  49. package/dialog/dialog.d.ts.map +1 -0
  50. package/dialog.js +1 -0
  51. package/dialog.mjs +15 -608
  52. package/dialog2.mjs +750 -0
  53. package/directive-helpers.mjs +2 -8
  54. package/{src/drawer → drawer}/drawer.d.ts +3 -2
  55. package/drawer/drawer.d.ts.map +1 -0
  56. package/drawer.js +6 -0
  57. package/drawer.mjs +11 -9
  58. package/{src/empty-state → empty-state}/empty-state.d.ts +3 -2
  59. package/empty-state/empty-state.d.ts.map +1 -0
  60. package/empty-state.js +27 -0
  61. package/empty-state.mjs +17 -15
  62. package/event-options.mjs +2 -11
  63. package/form-element.mjs +2 -47
  64. package/{src/formfield → formfield}/formfield.d.ts +3 -2
  65. package/formfield/formfield.d.ts.map +1 -0
  66. package/foundation.mjs +3 -112
  67. package/foundation2.mjs +2 -40
  68. package/{src/icon → icon}/icon.d.ts +1 -0
  69. package/icon/icon.d.ts.map +1 -0
  70. package/{src/icon-button → icon-button}/icon-button.d.ts +3 -2
  71. package/icon-button/icon-button.d.ts.map +1 -0
  72. package/icon-button.js +32 -0
  73. package/icon-button.mjs +23 -21
  74. package/icon-check-toggle.js +15 -0
  75. package/icon-check-toggle.mjs +5 -5
  76. package/{src/icon-checkbox → icon-checkbox}/icon-check-toggle.d.ts +3 -2
  77. package/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
  78. package/{src/icon-radio → icon-radio}/icon-radio-toggle.d.ts +3 -2
  79. package/icon-radio/icon-radio-toggle.d.ts.map +1 -0
  80. package/icon-radio-toggle.js +14 -0
  81. package/icon-radio-toggle.mjs +19 -19
  82. package/icon.js +5 -0
  83. package/icon.mjs +11 -9
  84. package/if-defined.mjs +2 -7
  85. package/index.d.ts +46 -0
  86. package/index.d.ts.map +1 -0
  87. package/index.js +1 -0
  88. package/index.mjs +126 -0
  89. package/inert.esm.mjs +3 -615
  90. package/linear-progress/linear-progress.d.ts +11 -0
  91. package/linear-progress/linear-progress.d.ts.map +1 -0
  92. package/linear-progress.js +36 -0
  93. package/linear-progress.mjs +21 -19
  94. package/list/check-list-item.d.ts +11 -0
  95. package/list/check-list-item.d.ts.map +1 -0
  96. package/{src/list → list}/list-expansion.d.ts +5 -4
  97. package/list/list-expansion.d.ts.map +1 -0
  98. package/{src/list → list}/list-item.d.ts +3 -2
  99. package/list/list-item.d.ts.map +1 -0
  100. package/{src/list → list}/list.d.ts +3 -2
  101. package/list/list.d.ts.map +1 -0
  102. package/{src/list → list}/nav-list-item.d.ts +3 -2
  103. package/list/nav-list-item.d.ts.map +1 -0
  104. package/list/radio-list-item.d.ts +11 -0
  105. package/list/radio-list-item.d.ts.map +1 -0
  106. package/list-expansion.js +9 -0
  107. package/list-expansion.mjs +20 -18
  108. package/list-item.js +1 -0
  109. package/list-item.mjs +8 -48
  110. package/list-item2.mjs +43 -0
  111. package/list.js +1 -0
  112. package/list.mjs +2 -27
  113. package/list2.mjs +25 -0
  114. package/{src/menu → menu}/menu.d.ts +3 -2
  115. package/menu/menu.d.ts.map +1 -0
  116. package/menu.js +5 -0
  117. package/menu.mjs +11 -9
  118. package/mwc-checkbox-base.mjs +11 -168
  119. package/mwc-checkbox.css.mjs +2 -7
  120. package/mwc-drawer-base.mjs +12 -242
  121. package/mwc-icon.mjs +3 -20
  122. package/mwc-line-ripple-directive.mjs +16 -452
  123. package/mwc-list-base.mjs +26 -755
  124. package/mwc-list-item-base.mjs +9 -183
  125. package/mwc-list-item.css.mjs +3 -11
  126. package/mwc-menu-base.mjs +21 -976
  127. package/mwc-radio-base.mjs +11 -438
  128. package/mwc-radio.css.mjs +2 -7
  129. package/mwc-slider.css.mjs +23 -794
  130. package/mwc-tab-base.mjs +25 -503
  131. package/mwc-top-app-bar-base.mjs +12 -282
  132. package/nav-list-item.js +10 -0
  133. package/nav-list-item.mjs +26 -24
  134. package/observer.mjs +2 -29
  135. package/package.json +226 -5
  136. package/property.mjs +2 -17
  137. package/query-assigned-elements.mjs +9 -591
  138. package/query-assigned-nodes.mjs +2 -14
  139. package/query.mjs +2 -22
  140. package/{src/radio → radio}/radio.d.ts +3 -2
  141. package/radio/radio.d.ts.map +1 -0
  142. package/radio-list-item.js +27 -0
  143. package/radio-list-item.mjs +17 -15
  144. package/radio.js +2 -0
  145. package/radio.mjs +12 -10
  146. package/ripple-handlers.mjs +12 -666
  147. package/{src/select → select}/select.d.ts +3 -2
  148. package/select/select.d.ts.map +1 -0
  149. package/select.js +272 -0
  150. package/select.mjs +124 -122
  151. package/{src/side-sheet → side-sheet}/side-sheet.d.ts +2 -2
  152. package/side-sheet/side-sheet.d.ts.map +1 -0
  153. package/side-sheet.js +4 -0
  154. package/side-sheet.mjs +3 -3
  155. package/slider/slider-range.d.ts +11 -0
  156. package/slider/slider-range.d.ts.map +1 -0
  157. package/{src/slider → slider}/slider.d.ts +3 -2
  158. package/slider/slider.d.ts.map +1 -0
  159. package/slider-range.js +64 -0
  160. package/slider-range.mjs +23 -21
  161. package/slider.js +14 -0
  162. package/slider.mjs +16 -14
  163. package/{src/snackbar → snackbar}/snackbar.d.ts +3 -2
  164. package/snackbar/snackbar.d.ts.map +1 -0
  165. package/snackbar.js +93 -0
  166. package/snackbar.mjs +12 -10
  167. package/state.mjs +2 -9
  168. package/status-header/status-header-base.d.ts.map +1 -0
  169. package/{src/status-header → status-header}/status-header-item.d.ts +1 -0
  170. package/status-header/status-header-item.d.ts.map +1 -0
  171. package/{src/status-header → status-header}/status-header.d.ts +1 -0
  172. package/status-header/status-header.d.ts.map +1 -0
  173. package/status-header-item.js +4 -0
  174. package/status-header-item.mjs +17 -15
  175. package/status-header.js +24 -0
  176. package/status-header.mjs +17 -15
  177. package/style-map.mjs +2 -37
  178. package/style.css +1 -0
  179. package/{src/switch → switch}/switch.d.ts +3 -2
  180. package/switch/switch.d.ts.map +1 -0
  181. package/switch.js +174 -0
  182. package/switch.mjs +10 -8
  183. package/{src/tab → tab}/tab-bar.d.ts +3 -2
  184. package/tab/tab-bar.d.ts.map +1 -0
  185. package/{src/tab → tab}/tab.d.ts +3 -2
  186. package/tab/tab.d.ts.map +1 -0
  187. package/tab-bar.js +278 -0
  188. package/tab-bar.mjs +23 -21
  189. package/tab.js +6 -0
  190. package/tab.mjs +11 -9
  191. package/{src/text-lockup → text-lockup}/text-lockup.d.ts +1 -0
  192. package/text-lockup/text-lockup.d.ts.map +1 -0
  193. package/text-lockup.js +7 -0
  194. package/text-lockup.mjs +11 -9
  195. package/{src/textarea → textarea}/textarea.d.ts +3 -2
  196. package/textarea/textarea.d.ts.map +1 -0
  197. package/textarea.js +40 -0
  198. package/textarea.mjs +14 -12
  199. package/{src/textfield → textfield}/textfield.d.ts +3 -2
  200. package/textfield/textfield.d.ts.map +1 -0
  201. package/textfield.js +7 -0
  202. package/textfield.mjs +132 -39
  203. package/textfield2.mjs +1 -1
  204. package/{src/toolbar → toolbar}/toolbar.d.ts +3 -2
  205. package/toolbar/toolbar.d.ts.map +1 -0
  206. package/toolbar.js +4 -0
  207. package/toolbar.mjs +11 -9
  208. package/{src/tooltip → tooltip}/tooltip.d.ts +3 -2
  209. package/tooltip/tooltip.d.ts.map +1 -0
  210. package/tooltip.js +126 -0
  211. package/tooltip.mjs +66 -64
  212. package/top-app-bar/top-app-bar-fixed.d.ts +11 -0
  213. package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
  214. package/{src/top-app-bar → top-app-bar}/top-app-bar.d.ts +3 -2
  215. package/top-app-bar/top-app-bar.d.ts.map +1 -0
  216. package/top-app-bar-fixed.js +28 -0
  217. package/top-app-bar-fixed.mjs +16 -14
  218. package/top-app-bar.js +3 -0
  219. package/top-app-bar.mjs +6 -28
  220. package/{src/tree-list → tree-list}/tree-list-item.d.ts +1 -0
  221. package/tree-list/tree-list-item.d.ts.map +1 -0
  222. package/{src/tree-list → tree-list}/tree-list.d.ts +1 -0
  223. package/tree-list/tree-list.d.ts.map +1 -0
  224. package/tree-list-item.js +26 -0
  225. package/tree-list-item.mjs +7 -5
  226. package/tree-list.js +10 -0
  227. package/tree-list.mjs +13 -12
  228. package/tslib.es6.mjs +1 -82
  229. package/{src/typography → typography}/typography.d.ts +1 -0
  230. package/typography/typography.d.ts.map +1 -0
  231. package/typography.js +4 -0
  232. package/typography.mjs +16 -14
  233. package/utils.mjs +2 -49
  234. package/covalent.mjs +0 -44
  235. package/covalent.umd.js +0 -3501
  236. package/src/action-ribbon/action-ribbon-base.d.ts.map +0 -1
  237. package/src/action-ribbon/action-ribbon.d.ts.map +0 -1
  238. package/src/alert/alert-base.d.ts.map +0 -1
  239. package/src/alert/alert.d.ts.map +0 -1
  240. package/src/app-shell/app-shell.d.ts.map +0 -1
  241. package/src/button/button.d.ts.map +0 -1
  242. package/src/card/card-base.d.ts.map +0 -1
  243. package/src/card/card.d.ts.map +0 -1
  244. package/src/checkbox/checkbox.d.ts.map +0 -1
  245. package/src/chips/chip-base.d.ts.map +0 -1
  246. package/src/chips/chip-set-base.d.ts.map +0 -1
  247. package/src/chips/chip-set.d.ts.map +0 -1
  248. package/src/chips/chip.d.ts.map +0 -1
  249. package/src/chips/foundation.d.ts.map +0 -1
  250. package/src/circular-progress/circular-progress.d.ts +0 -10
  251. package/src/circular-progress/circular-progress.d.ts.map +0 -1
  252. package/src/code-snippet/code-snippet.d.ts.map +0 -1
  253. package/src/dialog/dialog.d.ts.map +0 -1
  254. package/src/drawer/drawer.d.ts.map +0 -1
  255. package/src/empty-state/empty-state.d.ts.map +0 -1
  256. package/src/formfield/formfield.d.ts.map +0 -1
  257. package/src/icon/icon.d.ts.map +0 -1
  258. package/src/icon-button/icon-button.d.ts.map +0 -1
  259. package/src/icon-checkbox/icon-check-toggle.d.ts.map +0 -1
  260. package/src/icon-radio/icon-radio-toggle.d.ts.map +0 -1
  261. package/src/index.d.ts +0 -3
  262. package/src/index.d.ts.map +0 -1
  263. package/src/linear-progress/linear-progress.d.ts +0 -10
  264. package/src/linear-progress/linear-progress.d.ts.map +0 -1
  265. package/src/list/check-list-item.d.ts +0 -10
  266. package/src/list/check-list-item.d.ts.map +0 -1
  267. package/src/list/list-expansion.d.ts.map +0 -1
  268. package/src/list/list-item.d.ts.map +0 -1
  269. package/src/list/list.d.ts.map +0 -1
  270. package/src/list/nav-list-item.d.ts.map +0 -1
  271. package/src/list/radio-list-item.d.ts +0 -10
  272. package/src/list/radio-list-item.d.ts.map +0 -1
  273. package/src/menu/menu.d.ts.map +0 -1
  274. package/src/radio/radio.d.ts.map +0 -1
  275. package/src/select/select.d.ts.map +0 -1
  276. package/src/side-sheet/side-sheet.d.ts.map +0 -1
  277. package/src/slider/slider-range.d.ts +0 -10
  278. package/src/slider/slider-range.d.ts.map +0 -1
  279. package/src/slider/slider.d.ts.map +0 -1
  280. package/src/snackbar/snackbar.d.ts.map +0 -1
  281. package/src/status-header/status-header-base.d.ts.map +0 -1
  282. package/src/status-header/status-header-item.d.ts.map +0 -1
  283. package/src/status-header/status-header.d.ts.map +0 -1
  284. package/src/switch/switch.d.ts.map +0 -1
  285. package/src/tab/tab-bar.d.ts.map +0 -1
  286. package/src/tab/tab.d.ts.map +0 -1
  287. package/src/text-lockup/text-lockup.d.ts.map +0 -1
  288. package/src/textarea/textarea.d.ts.map +0 -1
  289. package/src/textfield/textfield.d.ts.map +0 -1
  290. package/src/toolbar/toolbar.d.ts.map +0 -1
  291. package/src/tooltip/tooltip.d.ts.map +0 -1
  292. package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -10
  293. package/src/top-app-bar/top-app-bar-fixed.d.ts.map +0 -1
  294. package/src/top-app-bar/top-app-bar.d.ts.map +0 -1
  295. package/src/tree-list/tree-list-item.d.ts.map +0 -1
  296. package/src/tree-list/tree-list.d.ts.map +0 -1
  297. package/src/typography/typography.d.ts.map +0 -1
  298. /package/{src/action-ribbon → action-ribbon}/action-ribbon-base.d.ts +0 -0
  299. /package/{src/alert → alert}/alert-base.d.ts +0 -0
  300. /package/{src/card → card}/card-base.d.ts +0 -0
  301. /package/{src/chips → chips}/chip-base.d.ts +0 -0
  302. /package/{src/chips → chips}/chip-set-base.d.ts +0 -0
  303. /package/{src/chips → chips}/foundation.d.ts +0 -0
  304. /package/{src/status-header → status-header}/status-header-base.d.ts +0 -0
package/inert.esm.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /**
1
+ "use strict";/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc. All rights reserved.
4
4
  *
@@ -13,602 +13,7 @@
13
13
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
- */
17
- (() => {
18
- var E, m, N;
19
- const l = Symbol(), g = Symbol(), I = Symbol(), v = Symbol(), S = Symbol(), T = Symbol(), u = Symbol(), t = Symbol(), e = Symbol(), i = Symbol(), r = Symbol(), a = Symbol(), f = Symbol();
20
- class _ {
21
- constructor() {
22
- this[E] = [], this[m] = [], this[N] = /* @__PURE__ */ new Set();
23
- }
24
- destructor() {
25
- this[e](this[I]);
26
- const n = this;
27
- n[l] = null, n[I] = null, n[g] = null;
28
- }
29
- get top() {
30
- const n = this[l];
31
- return n[n.length - 1] || null;
32
- }
33
- push(n) {
34
- !n || n === this.top || (this.remove(n), this[T](n), this[l].push(n));
35
- }
36
- remove(n) {
37
- const o = this[l].indexOf(n);
38
- return o === -1 ? !1 : (this[l].splice(o, 1), o === this[l].length && this[T](this.top), !0);
39
- }
40
- pop() {
41
- const n = this.top;
42
- return n && this.remove(n), n;
43
- }
44
- has(n) {
45
- return this[l].indexOf(n) !== -1;
46
- }
47
- /**
48
- * Sets `inert` to all document elements except the new top element, its
49
- * parents, and its distributed content.
50
- */
51
- [(E = l, m = I, N = g, T)](n) {
52
- const o = this[g], s = this[I];
53
- if (!n) {
54
- this[e](s), o.clear(), this[I] = [];
55
- return;
56
- }
57
- const d = this[i](n);
58
- if (d[d.length - 1].parentNode !== document.body)
59
- throw Error("Non-connected element cannot be a blocking element");
60
- this[I] = d;
61
- const b = this[r](n);
62
- if (!s.length) {
63
- this[t](d, b, o);
64
- return;
65
- }
66
- let c = s.length - 1, h = d.length - 1;
67
- for (; c > 0 && h > 0 && s[c] === d[h]; )
68
- c--, h--;
69
- s[c] !== d[h] && this[u](s[c], d[h]), c > 0 && this[e](s.slice(0, c)), h > 0 && this[t](d.slice(0, h), b, null);
70
- }
71
- /**
72
- * Swaps inertness between two sibling elements.
73
- * Sets the property `inert` over the attribute since the inert spec
74
- * doesn't specify if it should be reflected.
75
- * https://html.spec.whatwg.org/multipage/interaction.html#inert
76
- */
77
- [u](n, o) {
78
- const s = n[v];
79
- this[a](n) && !n.inert && (n.inert = !0, s.add(n)), s.has(o) && (o.inert = !1, s.delete(o)), o[S] = n[S], o[v] = s, n[S] = void 0, n[v] = void 0;
80
- }
81
- /**
82
- * Restores original inertness to the siblings of the elements.
83
- * Sets the property `inert` over the attribute since the inert spec
84
- * doesn't specify if it should be reflected.
85
- * https://html.spec.whatwg.org/multipage/interaction.html#inert
86
- */
87
- [e](n) {
88
- for (const o of n) {
89
- o[S].disconnect(), o[S] = void 0;
90
- const d = o[v];
91
- for (const b of d)
92
- b.inert = !1;
93
- o[v] = void 0;
94
- }
95
- }
96
- /**
97
- * Inerts the siblings of the elements except the elements to skip. Stores
98
- * the inerted siblings into the element's symbol `_siblingsToRestore`.
99
- * Pass `toKeepInert` to collect the already inert elements.
100
- * Sets the property `inert` over the attribute since the inert spec
101
- * doesn't specify if it should be reflected.
102
- * https://html.spec.whatwg.org/multipage/interaction.html#inert
103
- */
104
- [t](n, o, s) {
105
- for (const d of n) {
106
- const b = d.parentNode, c = b.children, h = /* @__PURE__ */ new Set();
107
- for (let R = 0; R < c.length; R++) {
108
- const M = c[R];
109
- M === d || !this[a](M) || o && o.has(M) || (s && M.inert ? s.add(M) : (M.inert = !0, h.add(M)));
110
- }
111
- d[v] = h;
112
- const k = new MutationObserver(this[f].bind(this));
113
- d[S] = k;
114
- let p = b;
115
- const y = p;
116
- y.__shady && y.host && (p = y.host), k.observe(p, {
117
- childList: !0
118
- });
119
- }
120
- }
121
- /**
122
- * Handles newly added/removed nodes by toggling their inertness.
123
- * It also checks if the current top Blocking Element has been removed,
124
- * notifying and removing it.
125
- */
126
- [f](n) {
127
- const o = this[I], s = this[g];
128
- for (const d of n) {
129
- const b = d.target.host || d.target, c = b === document.body ? o.length : o.indexOf(b), h = o[c - 1], k = h[v];
130
- for (let p = 0; p < d.removedNodes.length; p++) {
131
- const y = d.removedNodes[p];
132
- if (y === h) {
133
- console.info("Detected removal of the top Blocking Element."), this.pop();
134
- return;
135
- }
136
- k.has(y) && (y.inert = !1, k.delete(y));
137
- }
138
- for (let p = 0; p < d.addedNodes.length; p++) {
139
- const y = d.addedNodes[p];
140
- this[a](y) && (s && y.inert ? s.add(y) : (y.inert = !0, k.add(y)));
141
- }
142
- }
143
- }
144
- /**
145
- * Returns if the element is inertable.
146
- */
147
- [a](n) {
148
- return /^(style|template|script)$/.test(n.localName) === !1;
149
- }
150
- /**
151
- * Returns the list of newParents of an element, starting from element
152
- * (included) up to `document.body` (excluded).
153
- */
154
- [i](n) {
155
- const o = [];
156
- let s = n;
157
- for (; s && s !== document.body; ) {
158
- if (s.nodeType === Node.ELEMENT_NODE && o.push(s), s.assignedSlot) {
159
- for (; s = s.assignedSlot; )
160
- o.push(s);
161
- s = o.pop();
162
- continue;
163
- }
164
- s = s.parentNode || s.host;
165
- }
166
- return o;
167
- }
168
- /**
169
- * Returns the distributed children of the element's shadow root.
170
- * Returns null if the element doesn't have a shadow root.
171
- */
172
- [r](n) {
173
- const o = n.shadowRoot;
174
- if (!o)
175
- return null;
176
- const s = /* @__PURE__ */ new Set();
177
- let d, b, c;
178
- const h = o.querySelectorAll("slot");
179
- if (h.length && h[0].assignedNodes)
180
- for (d = 0; d < h.length; d++)
181
- for (c = h[d].assignedNodes({
182
- flatten: !0
183
- }), b = 0; b < c.length; b++)
184
- c[b].nodeType === Node.ELEMENT_NODE && s.add(c[b]);
185
- return s;
186
- }
187
- }
188
- document.$blockingElements = new _();
189
- })();
190
- var A = function() {
191
- function E(m, N) {
192
- for (var l = 0; l < N.length; l++) {
193
- var g = N[l];
194
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(m, g.key, g);
195
- }
196
- }
197
- return function(m, N, l) {
198
- return N && E(m.prototype, N), l && E(m, l), m;
199
- };
200
- }();
201
- function x(E, m) {
202
- if (!(E instanceof m))
203
- throw new TypeError("Cannot call a class as a function");
204
- }
205
- (function() {
206
- if (typeof window > "u")
207
- return;
208
- var E = Array.prototype.slice, m = Element.prototype.matches || Element.prototype.msMatchesSelector, N = ["a[href]", "area[href]", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", "button:not([disabled])", "details", "summary", "iframe", "object", "embed", "[contenteditable]"].join(","), l = function() {
209
- function u(t, e) {
210
- x(this, u), this._inertManager = e, this._rootElement = t, this._managedNodes = /* @__PURE__ */ new Set(), this._rootElement.hasAttribute("aria-hidden") ? this._savedAriaHidden = this._rootElement.getAttribute("aria-hidden") : this._savedAriaHidden = null, this._rootElement.setAttribute("aria-hidden", "true"), this._makeSubtreeUnfocusable(this._rootElement), this._observer = new MutationObserver(this._onMutation.bind(this)), this._observer.observe(this._rootElement, { attributes: !0, childList: !0, subtree: !0 });
211
- }
212
- return A(u, [{
213
- key: "destructor",
214
- value: function() {
215
- this._observer.disconnect(), this._rootElement && (this._savedAriaHidden !== null ? this._rootElement.setAttribute("aria-hidden", this._savedAriaHidden) : this._rootElement.removeAttribute("aria-hidden")), this._managedNodes.forEach(function(e) {
216
- this._unmanageNode(e.node);
217
- }, this), this._observer = /** @type {?} */
218
- null, this._rootElement = /** @type {?} */
219
- null, this._managedNodes = /** @type {?} */
220
- null, this._inertManager = /** @type {?} */
221
- null;
222
- }
223
- /**
224
- * @return {!Set<!InertNode>} A copy of this InertRoot's managed nodes set.
225
- */
226
- }, {
227
- key: "_makeSubtreeUnfocusable",
228
- /**
229
- * @param {!Node} startNode
230
- */
231
- value: function(e) {
232
- var i = this;
233
- v(e, function(_) {
234
- return i._visitNode(_);
235
- });
236
- var r = document.activeElement;
237
- if (!document.body.contains(e)) {
238
- for (var a = e, f = void 0; a; ) {
239
- if (a.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
240
- f = /** @type {!ShadowRoot} */
241
- a;
242
- break;
243
- }
244
- a = a.parentNode;
245
- }
246
- f && (r = f.activeElement);
247
- }
248
- e.contains(r) && (r.blur(), r === document.activeElement && document.body.focus());
249
- }
250
- /**
251
- * @param {!Node} node
252
- */
253
- }, {
254
- key: "_visitNode",
255
- value: function(e) {
256
- if (e.nodeType === Node.ELEMENT_NODE) {
257
- var i = (
258
- /** @type {!HTMLElement} */
259
- e
260
- );
261
- i !== this._rootElement && i.hasAttribute("inert") && this._adoptInertRoot(i), (m.call(i, N) || i.hasAttribute("tabindex")) && this._manageNode(i);
262
- }
263
- }
264
- /**
265
- * Register the given node with this InertRoot and with InertManager.
266
- * @param {!Node} node
267
- */
268
- }, {
269
- key: "_manageNode",
270
- value: function(e) {
271
- var i = this._inertManager.register(e, this);
272
- this._managedNodes.add(i);
273
- }
274
- /**
275
- * Unregister the given node with this InertRoot and with InertManager.
276
- * @param {!Node} node
277
- */
278
- }, {
279
- key: "_unmanageNode",
280
- value: function(e) {
281
- var i = this._inertManager.deregister(e, this);
282
- i && this._managedNodes.delete(i);
283
- }
284
- /**
285
- * Unregister the entire subtree starting at `startNode`.
286
- * @param {!Node} startNode
287
- */
288
- }, {
289
- key: "_unmanageSubtree",
290
- value: function(e) {
291
- var i = this;
292
- v(e, function(r) {
293
- return i._unmanageNode(r);
294
- });
295
- }
296
- /**
297
- * If a descendant node is found with an `inert` attribute, adopt its managed nodes.
298
- * @param {!HTMLElement} node
299
- */
300
- }, {
301
- key: "_adoptInertRoot",
302
- value: function(e) {
303
- var i = this._inertManager.getInertRoot(e);
304
- i || (this._inertManager.setInert(e, !0), i = this._inertManager.getInertRoot(e)), i.managedNodes.forEach(function(r) {
305
- this._manageNode(r.node);
306
- }, this);
307
- }
308
- /**
309
- * Callback used when mutation observer detects subtree additions, removals, or attribute changes.
310
- * @param {!Array<!MutationRecord>} records
311
- * @param {!MutationObserver} self
312
- */
313
- }, {
314
- key: "_onMutation",
315
- value: function(e, i) {
316
- e.forEach(function(r) {
317
- var a = (
318
- /** @type {!HTMLElement} */
319
- r.target
320
- );
321
- if (r.type === "childList")
322
- E.call(r.addedNodes).forEach(function(_) {
323
- this._makeSubtreeUnfocusable(_);
324
- }, this), E.call(r.removedNodes).forEach(function(_) {
325
- this._unmanageSubtree(_);
326
- }, this);
327
- else if (r.type === "attributes") {
328
- if (r.attributeName === "tabindex")
329
- this._manageNode(a);
330
- else if (a !== this._rootElement && r.attributeName === "inert" && a.hasAttribute("inert")) {
331
- this._adoptInertRoot(a);
332
- var f = this._inertManager.getInertRoot(a);
333
- this._managedNodes.forEach(function(_) {
334
- a.contains(_.node) && f._manageNode(_.node);
335
- });
336
- }
337
- }
338
- }, this);
339
- }
340
- }, {
341
- key: "managedNodes",
342
- get: function() {
343
- return new Set(this._managedNodes);
344
- }
345
- /** @return {boolean} */
346
- }, {
347
- key: "hasSavedAriaHidden",
348
- get: function() {
349
- return this._savedAriaHidden !== null;
350
- }
351
- /** @param {?string} ariaHidden */
352
- }, {
353
- key: "savedAriaHidden",
354
- set: function(e) {
355
- this._savedAriaHidden = e;
356
- },
357
- get: function() {
358
- return this._savedAriaHidden;
359
- }
360
- }]), u;
361
- }(), g = function() {
362
- function u(t, e) {
363
- x(this, u), this._node = t, this._overrodeFocusMethod = !1, this._inertRoots = /* @__PURE__ */ new Set([e]), this._savedTabIndex = null, this._destroyed = !1, this.ensureUntabbable();
364
- }
365
- return A(u, [{
366
- key: "destructor",
367
- value: function() {
368
- if (this._throwIfDestroyed(), this._node && this._node.nodeType === Node.ELEMENT_NODE) {
369
- var e = (
370
- /** @type {!HTMLElement} */
371
- this._node
372
- );
373
- this._savedTabIndex !== null ? e.setAttribute("tabindex", this._savedTabIndex) : e.removeAttribute("tabindex"), this._overrodeFocusMethod && delete e.focus;
374
- }
375
- this._node = /** @type {?} */
376
- null, this._inertRoots = /** @type {?} */
377
- null, this._destroyed = !0;
378
- }
379
- /**
380
- * @type {boolean} Whether this object is obsolete because the managed node is no longer inert.
381
- * If the object has been destroyed, any attempt to access it will cause an exception.
382
- */
383
- }, {
384
- key: "_throwIfDestroyed",
385
- /**
386
- * Throw if user tries to access destroyed InertNode.
387
- */
388
- value: function() {
389
- if (this.destroyed)
390
- throw new Error("Trying to access destroyed InertNode");
391
- }
392
- /** @return {boolean} */
393
- }, {
394
- key: "ensureUntabbable",
395
- /** Save the existing tabindex value and make the node untabbable and unfocusable */
396
- value: function() {
397
- if (this.node.nodeType === Node.ELEMENT_NODE) {
398
- var e = (
399
- /** @type {!HTMLElement} */
400
- this.node
401
- );
402
- if (m.call(e, N)) {
403
- if (
404
- /** @type {!HTMLElement} */
405
- e.tabIndex === -1 && this.hasSavedTabIndex
406
- )
407
- return;
408
- e.hasAttribute("tabindex") && (this._savedTabIndex = /** @type {!HTMLElement} */
409
- e.tabIndex), e.setAttribute("tabindex", "-1"), e.nodeType === Node.ELEMENT_NODE && (e.focus = function() {
410
- }, this._overrodeFocusMethod = !0);
411
- } else
412
- e.hasAttribute("tabindex") && (this._savedTabIndex = /** @type {!HTMLElement} */
413
- e.tabIndex, e.removeAttribute("tabindex"));
414
- }
415
- }
416
- /**
417
- * Add another inert root to this inert node's set of managing inert roots.
418
- * @param {!InertRoot} inertRoot
419
- */
420
- }, {
421
- key: "addInertRoot",
422
- value: function(e) {
423
- this._throwIfDestroyed(), this._inertRoots.add(e);
424
- }
425
- /**
426
- * Remove the given inert root from this inert node's set of managing inert roots.
427
- * If the set of managing inert roots becomes empty, this node is no longer inert,
428
- * so the object should be destroyed.
429
- * @param {!InertRoot} inertRoot
430
- */
431
- }, {
432
- key: "removeInertRoot",
433
- value: function(e) {
434
- this._throwIfDestroyed(), this._inertRoots.delete(e), this._inertRoots.size === 0 && this.destructor();
435
- }
436
- }, {
437
- key: "destroyed",
438
- get: function() {
439
- return (
440
- /** @type {!InertNode} */
441
- this._destroyed
442
- );
443
- }
444
- }, {
445
- key: "hasSavedTabIndex",
446
- get: function() {
447
- return this._savedTabIndex !== null;
448
- }
449
- /** @return {!Node} */
450
- }, {
451
- key: "node",
452
- get: function() {
453
- return this._throwIfDestroyed(), this._node;
454
- }
455
- /** @param {?number} tabIndex */
456
- }, {
457
- key: "savedTabIndex",
458
- set: function(e) {
459
- this._throwIfDestroyed(), this._savedTabIndex = e;
460
- },
461
- get: function() {
462
- return this._throwIfDestroyed(), this._savedTabIndex;
463
- }
464
- }]), u;
465
- }(), I = function() {
466
- function u(t) {
467
- if (x(this, u), !t)
468
- throw new Error("Missing required argument; InertManager needs to wrap a document.");
469
- this._document = t, this._managedNodes = /* @__PURE__ */ new Map(), this._inertRoots = /* @__PURE__ */ new Map(), this._observer = new MutationObserver(this._watchForInert.bind(this)), S(t.head || t.body || t.documentElement), t.readyState === "loading" ? t.addEventListener("DOMContentLoaded", this._onDocumentLoaded.bind(this)) : this._onDocumentLoaded();
470
- }
471
- return A(u, [{
472
- key: "setInert",
473
- value: function(e, i) {
474
- if (i) {
475
- if (this._inertRoots.has(e))
476
- return;
477
- var r = new l(e, this);
478
- if (e.setAttribute("inert", ""), this._inertRoots.set(e, r), !this._document.body.contains(e))
479
- for (var a = e.parentNode; a; )
480
- a.nodeType === 11 && S(a), a = a.parentNode;
481
- } else {
482
- if (!this._inertRoots.has(e))
483
- return;
484
- var f = this._inertRoots.get(e);
485
- f.destructor(), this._inertRoots.delete(e), e.removeAttribute("inert");
486
- }
487
- }
488
- /**
489
- * Get the InertRoot object corresponding to the given inert root element, if any.
490
- * @param {!Node} element
491
- * @return {!InertRoot|undefined}
492
- */
493
- }, {
494
- key: "getInertRoot",
495
- value: function(e) {
496
- return this._inertRoots.get(e);
497
- }
498
- /**
499
- * Register the given InertRoot as managing the given node.
500
- * In the case where the node has a previously existing inert root, this inert root will
501
- * be added to its set of inert roots.
502
- * @param {!Node} node
503
- * @param {!InertRoot} inertRoot
504
- * @return {!InertNode} inertNode
505
- */
506
- }, {
507
- key: "register",
508
- value: function(e, i) {
509
- var r = this._managedNodes.get(e);
510
- return r !== void 0 ? r.addInertRoot(i) : r = new g(e, i), this._managedNodes.set(e, r), r;
511
- }
512
- /**
513
- * De-register the given InertRoot as managing the given inert node.
514
- * Removes the inert root from the InertNode's set of managing inert roots, and remove the inert
515
- * node from the InertManager's set of managed nodes if it is destroyed.
516
- * If the node is not currently managed, this is essentially a no-op.
517
- * @param {!Node} node
518
- * @param {!InertRoot} inertRoot
519
- * @return {?InertNode} The potentially destroyed InertNode associated with this node, if any.
520
- */
521
- }, {
522
- key: "deregister",
523
- value: function(e, i) {
524
- var r = this._managedNodes.get(e);
525
- return r ? (r.removeInertRoot(i), r.destroyed && this._managedNodes.delete(e), r) : null;
526
- }
527
- /**
528
- * Callback used when document has finished loading.
529
- */
530
- }, {
531
- key: "_onDocumentLoaded",
532
- value: function() {
533
- var e = E.call(this._document.querySelectorAll("[inert]"));
534
- e.forEach(function(i) {
535
- this.setInert(i, !0);
536
- }, this), this._observer.observe(this._document.body || this._document.documentElement, { attributes: !0, subtree: !0, childList: !0 });
537
- }
538
- /**
539
- * Callback used when mutation observer detects attribute changes.
540
- * @param {!Array<!MutationRecord>} records
541
- * @param {!MutationObserver} self
542
- */
543
- }, {
544
- key: "_watchForInert",
545
- value: function(e, i) {
546
- var r = this;
547
- e.forEach(function(a) {
548
- switch (a.type) {
549
- case "childList":
550
- E.call(a.addedNodes).forEach(function(w) {
551
- if (w.nodeType === Node.ELEMENT_NODE) {
552
- var n = E.call(w.querySelectorAll("[inert]"));
553
- m.call(w, "[inert]") && n.unshift(w), n.forEach(function(o) {
554
- this.setInert(o, !0);
555
- }, r);
556
- }
557
- }, r);
558
- break;
559
- case "attributes":
560
- if (a.attributeName !== "inert")
561
- return;
562
- var f = (
563
- /** @type {!HTMLElement} */
564
- a.target
565
- ), _ = f.hasAttribute("inert");
566
- r.setInert(f, _);
567
- break;
568
- }
569
- }, this);
570
- }
571
- }]), u;
572
- }();
573
- function v(u, t, e) {
574
- if (u.nodeType == Node.ELEMENT_NODE) {
575
- var i = (
576
- /** @type {!HTMLElement} */
577
- u
578
- );
579
- t && t(i);
580
- var r = (
581
- /** @type {!HTMLElement} */
582
- i.shadowRoot
583
- );
584
- if (r) {
585
- v(r, t);
586
- return;
587
- }
588
- if (i.localName == "content") {
589
- for (var a = (
590
- /** @type {!HTMLContentElement} */
591
- i
592
- ), f = a.getDistributedNodes ? a.getDistributedNodes() : [], _ = 0; _ < f.length; _++)
593
- v(f[_], t);
594
- return;
595
- }
596
- if (i.localName == "slot") {
597
- for (var w = (
598
- /** @type {!HTMLSlotElement} */
599
- i
600
- ), n = w.assignedNodes ? w.assignedNodes({ flatten: !0 }) : [], o = 0; o < n.length; o++)
601
- v(n[o], t);
602
- return;
603
- }
604
- }
605
- for (var s = u.firstChild; s != null; )
606
- v(s, t), s = s.nextSibling;
607
- }
608
- function S(u) {
609
- if (!u.querySelector("style#inert-style, link#inert-style")) {
610
- var t = document.createElement("style");
611
- t.setAttribute("id", "inert-style"), t.textContent = `
16
+ */(()=>{var E,m,N;const l=Symbol(),g=Symbol(),I=Symbol(),v=Symbol(),S=Symbol(),T=Symbol(),u=Symbol(),t=Symbol(),e=Symbol(),i=Symbol(),r=Symbol(),a=Symbol(),f=Symbol();class _{constructor(){this[E]=[],this[m]=[],this[N]=new Set}destructor(){this[e](this[I]);const n=this;n[l]=null,n[I]=null,n[g]=null}get top(){const n=this[l];return n[n.length-1]||null}push(n){!n||n===this.top||(this.remove(n),this[T](n),this[l].push(n))}remove(n){const o=this[l].indexOf(n);return o===-1?!1:(this[l].splice(o,1),o===this[l].length&&this[T](this.top),!0)}pop(){const n=this.top;return n&&this.remove(n),n}has(n){return this[l].indexOf(n)!==-1}[(E=l,m=I,N=g,T)](n){const o=this[g],s=this[I];if(!n){this[e](s),o.clear(),this[I]=[];return}const d=this[i](n);if(d[d.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[I]=d;const b=this[r](n);if(!s.length){this[t](d,b,o);return}let c=s.length-1,h=d.length-1;for(;c>0&&h>0&&s[c]===d[h];)c--,h--;s[c]!==d[h]&&this[u](s[c],d[h]),c>0&&this[e](s.slice(0,c)),h>0&&this[t](d.slice(0,h),b,null)}[u](n,o){const s=n[v];this[a](n)&&!n.inert&&(n.inert=!0,s.add(n)),s.has(o)&&(o.inert=!1,s.delete(o)),o[S]=n[S],o[v]=s,n[S]=void 0,n[v]=void 0}[e](n){for(const o of n){o[S].disconnect(),o[S]=void 0;const d=o[v];for(const b of d)b.inert=!1;o[v]=void 0}}[t](n,o,s){for(const d of n){const b=d.parentNode,c=b.children,h=new Set;for(let R=0;R<c.length;R++){const M=c[R];M===d||!this[a](M)||o&&o.has(M)||(s&&M.inert?s.add(M):(M.inert=!0,h.add(M)))}d[v]=h;const k=new MutationObserver(this[f].bind(this));d[S]=k;let p=b;const y=p;y.__shady&&y.host&&(p=y.host),k.observe(p,{childList:!0})}}[f](n){const o=this[I],s=this[g];for(const d of n){const b=d.target.host||d.target,c=b===document.body?o.length:o.indexOf(b),h=o[c-1],k=h[v];for(let p=0;p<d.removedNodes.length;p++){const y=d.removedNodes[p];if(y===h){console.info("Detected removal of the top Blocking Element."),this.pop();return}k.has(y)&&(y.inert=!1,k.delete(y))}for(let p=0;p<d.addedNodes.length;p++){const y=d.addedNodes[p];this[a](y)&&(s&&y.inert?s.add(y):(y.inert=!0,k.add(y)))}}}[a](n){return/^(style|template|script)$/.test(n.localName)===!1}[i](n){const o=[];let s=n;for(;s&&s!==document.body;){if(s.nodeType===Node.ELEMENT_NODE&&o.push(s),s.assignedSlot){for(;s=s.assignedSlot;)o.push(s);s=o.pop();continue}s=s.parentNode||s.host}return o}[r](n){const o=n.shadowRoot;if(!o)return null;const s=new Set;let d,b,c;const h=o.querySelectorAll("slot");if(h.length&&h[0].assignedNodes)for(d=0;d<h.length;d++)for(c=h[d].assignedNodes({flatten:!0}),b=0;b<c.length;b++)c[b].nodeType===Node.ELEMENT_NODE&&s.add(c[b]);return s}}document.$blockingElements=new _})();var A=function(){function E(m,N){for(var l=0;l<N.length;l++){var g=N[l];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,N,l){return N&&E(m.prototype,N),l&&E(m,l),m}}();function x(E,m){if(!(E instanceof m))throw new TypeError("Cannot call a class as a function")}(function(){if(typeof window>"u")return;var E=Array.prototype.slice,m=Element.prototype.matches||Element.prototype.msMatchesSelector,N=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),l=function(){function u(t,e){x(this,u),this._inertManager=e,this._rootElement=t,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return A(u,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(this._savedAriaHidden!==null?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach(function(e){this._unmanageNode(e.node)},this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var i=this;v(e,function(_){return i._visitNode(_)});var r=document.activeElement;if(!document.body.contains(e)){for(var a=e,f=void 0;a;){if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){f=a;break}a=a.parentNode}f&&(r=f.activeElement)}e.contains(r)&&(r.blur(),r===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i!==this._rootElement&&i.hasAttribute("inert")&&this._adoptInertRoot(i),(m.call(i,N)||i.hasAttribute("tabindex"))&&this._manageNode(i)}}},{key:"_manageNode",value:function(e){var i=this._inertManager.register(e,this);this._managedNodes.add(i)}},{key:"_unmanageNode",value:function(e){var i=this._inertManager.deregister(e,this);i&&this._managedNodes.delete(i)}},{key:"_unmanageSubtree",value:function(e){var i=this;v(e,function(r){return i._unmanageNode(r)})}},{key:"_adoptInertRoot",value:function(e){var i=this._inertManager.getInertRoot(e);i||(this._inertManager.setInert(e,!0),i=this._inertManager.getInertRoot(e)),i.managedNodes.forEach(function(r){this._manageNode(r.node)},this)}},{key:"_onMutation",value:function(e,i){e.forEach(function(r){var a=r.target;if(r.type==="childList")E.call(r.addedNodes).forEach(function(_){this._makeSubtreeUnfocusable(_)},this),E.call(r.removedNodes).forEach(function(_){this._unmanageSubtree(_)},this);else if(r.type==="attributes"){if(r.attributeName==="tabindex")this._manageNode(a);else if(a!==this._rootElement&&r.attributeName==="inert"&&a.hasAttribute("inert")){this._adoptInertRoot(a);var f=this._inertManager.getInertRoot(a);this._managedNodes.forEach(function(_){a.contains(_.node)&&f._manageNode(_.node)})}}},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return this._savedAriaHidden!==null}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),u}(),g=function(){function u(t,e){x(this,u),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([e]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return A(u,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;this._savedTabIndex!==null?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(m.call(e,N)){if(e.tabIndex===-1&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),this._inertRoots.size===0&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return this._savedTabIndex!==null}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),u}(),I=function(){function u(t){if(x(this,u),!t)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=t,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),S(t.head||t.body||t.documentElement),t.readyState==="loading"?t.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return A(u,[{key:"setInert",value:function(e,i){if(i){if(this._inertRoots.has(e))return;var r=new l(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,r),!this._document.body.contains(e))for(var a=e.parentNode;a;)a.nodeType===11&&S(a),a=a.parentNode}else{if(!this._inertRoots.has(e))return;var f=this._inertRoots.get(e);f.destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,i){var r=this._managedNodes.get(e);return r!==void 0?r.addInertRoot(i):r=new g(e,i),this._managedNodes.set(e,r),r}},{key:"deregister",value:function(e,i){var r=this._managedNodes.get(e);return r?(r.removeInertRoot(i),r.destroyed&&this._managedNodes.delete(e),r):null}},{key:"_onDocumentLoaded",value:function(){var e=E.call(this._document.querySelectorAll("[inert]"));e.forEach(function(i){this.setInert(i,!0)},this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(e,i){var r=this;e.forEach(function(a){switch(a.type){case"childList":E.call(a.addedNodes).forEach(function(w){if(w.nodeType===Node.ELEMENT_NODE){var n=E.call(w.querySelectorAll("[inert]"));m.call(w,"[inert]")&&n.unshift(w),n.forEach(function(o){this.setInert(o,!0)},r)}},r);break;case"attributes":if(a.attributeName!=="inert")return;var f=a.target,_=f.hasAttribute("inert");r.setInert(f,_);break}},this)}}]),u}();function v(u,t,e){if(u.nodeType==Node.ELEMENT_NODE){var i=u;t&&t(i);var r=i.shadowRoot;if(r){v(r,t);return}if(i.localName=="content"){for(var a=i,f=a.getDistributedNodes?a.getDistributedNodes():[],_=0;_<f.length;_++)v(f[_],t);return}if(i.localName=="slot"){for(var w=i,n=w.assignedNodes?w.assignedNodes({flatten:!0}):[],o=0;o<n.length;o++)v(n[o],t);return}}for(var s=u.firstChild;s!=null;)v(s,t),s=s.nextSibling}function S(u){if(!u.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent=`
612
17
  [inert] {
613
18
  pointer-events: none;
614
19
  cursor: default;
@@ -620,21 +25,4 @@ function x(E, m) {
620
25
  -ms-user-select: none;
621
26
  user-select: none;
622
27
  }
623
- `, u.appendChild(t);
624
- }
625
- }
626
- if (!HTMLElement.prototype.hasOwnProperty("inert")) {
627
- var T = new I(document);
628
- Object.defineProperty(HTMLElement.prototype, "inert", {
629
- enumerable: !0,
630
- /** @this {!HTMLElement} */
631
- get: function() {
632
- return this.hasAttribute("inert");
633
- },
634
- /** @this {!HTMLElement} */
635
- set: function(t) {
636
- T.setInert(this, t);
637
- }
638
- });
639
- }
640
- })();
28
+ `,u.appendChild(t)}}if(!HTMLElement.prototype.hasOwnProperty("inert")){var T=new I(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(t){T.setInert(this,t)}})}})();
@@ -0,0 +1,11 @@
1
+ import { LinearProgressBase } from '@material/mwc-linear-progress/mwc-linear-progress-base';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'cv-linear-progress': CovalentLinearProgress;
5
+ }
6
+ }
7
+ export declare class CovalentLinearProgress extends LinearProgressBase {
8
+ static styles: import("lit").CSSResult[];
9
+ }
10
+ export default CovalentLinearProgress;
11
+ //# sourceMappingURL=linear-progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-progress.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/linear-progress/linear-progress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAI5F,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,sBAAsB,CAAC;KAC9C;CACF;AAED,qBACa,sBAAuB,SAAQ,kBAAkB;IAC5D,OAAgB,MAAM,4BAA2C;CAClE;AAED,eAAe,sBAAsB,CAAC"}