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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-B52_cu2H.mjs} +3 -3
  2. package/_commonjsHelpers-DGT2Y9Xa.js +1 -0
  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-set.js +5 -5
  25. package/chip-set.mjs +126 -126
  26. package/{chip-tQfbvpbh.mjs → chip-vV-teZYv.mjs} +412 -408
  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-ChTd6dnt.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-BSAsNxWv.js +5 -0
  60. package/form-element-QkRofWU9.mjs +50 -0
  61. package/formfield.js +7 -7
  62. package/formfield.mjs +45 -45
  63. package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
  64. package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
  65. package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
  66. package/{foundation-BYhAXCW_.mjs → foundation-qQ4jzaAu.mjs} +15 -17
  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 +34 -34
  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.d.ts +0 -1
  86. package/index.js +1 -10
  87. package/index.mjs +112 -450
  88. package/inert.esm-CknhJysw.mjs +645 -0
  89. package/inert.esm-D2PJKL9E.js +28 -0
  90. package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
  91. package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
  92. package/linear-progress.js +7 -7
  93. package/linear-progress.mjs +32 -32
  94. package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
  95. package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
  96. package/list-item.js +7 -7
  97. package/list-item.mjs +21 -21
  98. package/list.js +3 -3
  99. package/list.mjs +16 -16
  100. package/menu.js +3 -3
  101. package/menu.mjs +16 -16
  102. package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-2vEWGIGy.mjs} +28 -28
  103. package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
  104. package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-BKjve51A.mjs} +11 -11
  105. package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
  106. package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
  107. package/{mwc-icon-DTCUplqR.mjs → mwc-icon-CU54ISyR.mjs} +2 -2
  108. package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
  109. package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
  110. package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-D6JvHdq9.mjs} +35 -34
  111. package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
  112. package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BfvtPwr2.mjs} +10 -10
  113. package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
  114. package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-CnoVmMrq.mjs} +100 -100
  115. package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
  116. package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
  117. package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-zLJoUMUW.mjs} +303 -303
  118. package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-6ufegTtG.mjs} +8 -8
  119. package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
  120. package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-Cq4ygmy4.mjs} +277 -288
  121. package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
  122. package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
  123. package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DUOF704w.mjs} +31 -31
  124. package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-CY0I98Qf.mjs} +21 -21
  125. package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
  126. package/nav-list-item.js +1 -1
  127. package/nav-list-item.mjs +13 -13
  128. package/notebook-cell.js +1 -1
  129. package/notebook-cell.mjs +23 -23
  130. package/package.json +3 -8
  131. package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
  132. package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
  133. package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
  134. package/query-CDOd1Kwm.mjs +15 -0
  135. package/query-Dv2F3m_t.js +5 -0
  136. package/query-assigned-elements-8EurZY45.js +31 -0
  137. package/query-assigned-elements-D930kELM.mjs +591 -0
  138. package/query-assigned-nodes-BAfLwxmx.js +5 -0
  139. package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
  140. package/radio-list-item.js +9 -9
  141. package/radio-list-item.mjs +28 -28
  142. package/radio.js +1 -1
  143. package/radio.mjs +15 -15
  144. package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-BzwD98Ty.mjs} +71 -71
  145. package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
  146. package/select.js +15 -15
  147. package/select.mjs +166 -167
  148. package/side-sheet.js +1 -1
  149. package/side-sheet.mjs +8 -8
  150. package/slider-range.js +5 -5
  151. package/slider-range.mjs +43 -43
  152. package/slider.js +2 -2
  153. package/slider.mjs +19 -19
  154. package/snackbar.js +11 -11
  155. package/snackbar.mjs +54 -54
  156. package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
  157. package/status-dialog.js +1 -1
  158. package/status-dialog.mjs +6 -6
  159. package/status-header-item.js +1 -1
  160. package/status-header-item.mjs +17 -17
  161. package/status-header.js +5 -5
  162. package/status-header.mjs +34 -34
  163. package/style-map-D2TR7M-D.mjs +42 -0
  164. package/style-map-DOMuf9Fg.js +5 -0
  165. package/switch.js +5 -5
  166. package/switch.mjs +42 -42
  167. package/tab-bar.js +11 -11
  168. package/tab-bar.mjs +98 -98
  169. package/tab.js +1 -1
  170. package/tab.mjs +13 -13
  171. package/text-lockup.js +1 -1
  172. package/text-lockup.mjs +9 -9
  173. package/textarea.js +6 -6
  174. package/textarea.mjs +29 -29
  175. package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
  176. package/{textfield-i_Whj47J.mjs → textfield-vzZ-4E3g.mjs} +102 -102
  177. package/textfield.js +3 -3
  178. package/textfield.mjs +17 -17
  179. package/theme/prebuilt/dark-theme.css +1 -1
  180. package/theme/prebuilt/light-theme.css +1 -1
  181. package/toolbar.js +1 -1
  182. package/toolbar.mjs +4 -4
  183. package/tooltip.js +3 -3
  184. package/tooltip.mjs +54 -55
  185. package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
  186. package/top-app-bar-fixed.js +8 -8
  187. package/top-app-bar-fixed.mjs +40 -40
  188. package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
  189. package/top-app-bar.js +3 -3
  190. package/top-app-bar.mjs +18 -18
  191. package/tree-list-item.js +1 -1
  192. package/tree-list-item.mjs +4 -4
  193. package/tree-list.js +4 -4
  194. package/tree-list.mjs +22 -22
  195. package/tslib.es6-pPsSiLLK.mjs +75 -0
  196. package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
  197. package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
  198. package/typography.js +1 -1
  199. package/typography.mjs +3 -3
  200. package/_commonjsHelpers-6jR-N8xe.js +0 -1
  201. package/async-directive-2AOdKBUW.mjs +0 -66
  202. package/async-directive-DZ3MjSIj.js +0 -5
  203. package/class-map-BHl5MHd7.mjs +0 -36
  204. package/class-map-PsUYVqvf.js +0 -5
  205. package/directive-C_VV3qwo.js +0 -5
  206. package/directive-helpers-6HCt_-zj.mjs +0 -11
  207. package/directive-helpers-BnUMbYHh.js +0 -5
  208. package/form-element--PS8uSRI.js +0 -5
  209. package/form-element-Dn0Lerng.mjs +0 -50
  210. package/icon/_icon-list.d.ts +0 -3
  211. package/icon/icon-demo.d.ts +0 -13
  212. package/inert.esm-C8R-X3j4.mjs +0 -639
  213. package/inert.esm-t-228rpY.js +0 -28
  214. package/query-BvlE-gMJ.js +0 -5
  215. package/query-DSO61t36.mjs +0 -15
  216. package/query-assigned-elements-BQszEgac.js +0 -31
  217. package/query-assigned-elements-DhyCP_2z.mjs +0 -591
  218. package/query-assigned-nodes-9DFnkxV8.js +0 -5
  219. package/query-assigned-nodes-B-jCihdA.mjs +0 -17
  220. package/style-map-3QfsA_1O.js +0 -5
  221. package/style-map-QxIETvrs.mjs +0 -42
  222. package/theme/prebuilt/dark-theme.css.map +0 -1
  223. package/theme/prebuilt/light-theme.css.map +0 -1
  224. package/tslib.es6-CISSdiiH.mjs +0 -75
  225. /package/{style.css → covalent.css} +0 -0
package/chip-set.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-BQszEgac.js"),c=require("./chip-DmwMNZYy.js"),d=require("./tslib.es6-CHeFCc6E.js"),S=require("./foundation-aT_gy6X8.js"),C=require("./keyboard-CZlaSOb1.js"),E=require("./property-BRKnMYJe.js"),N=require("./query-BvlE-gMJ.js");/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("./query-assigned-elements-8EurZY45.js"),c=require("./chip-BjFvUMom.js"),d=require("./tslib.es6-CHeFCc6E.js"),S=require("./foundation-pgmPu2iJ.js"),C=require("./keyboard-CZlaSOb1.js"),E=require("./property-DYTC_2-m.js"),N=require("./query-Dv2F3m_t.js");/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc.
4
4
  *
@@ -61,7 +61,7 @@
61
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
63
  * THE SOFTWARE.
64
- */var b;(function(a){a.POLITE="polite",a.ASSERTIVE="assertive"})(b||(b={}));var M="data-mdc-dom-announce";function D(a,i){T.getInstance().say(a,i)}var T=function(){function a(){this.liveRegions=new Map}return a.getInstance=function(){return a.instance||(a.instance=new a),a.instance},a.prototype.say=function(i,e){var t,r,n=(t=e==null?void 0:e.priority)!==null&&t!==void 0?t:b.POLITE,o=(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document,h=this.getLiveRegion(n,o);h.textContent="",setTimeout(function(){h.textContent=i,o.addEventListener("click",s)},1);function s(){h.textContent="",o.removeEventListener("click",s)}},a.prototype.getLiveRegion=function(i,e){var t=this.liveRegions.get(e);t||(t=new Map,this.liveRegions.set(e,t));var r=t.get(i);if(r&&e.body.contains(r))return r;var n=this.createLiveRegion(i,e);return t.set(i,n),n},a.prototype.createLiveRegion=function(i,e){var t=e.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.overflow="hidden",t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",i),t.setAttribute(M,"true"),e.body.appendChild(t),t},a}(),O=Object.defineProperty,g=(a,i,e,t)=>{for(var r=void 0,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=o(i,e,r)||r);return r&&O(i,e,r),r};class A extends I.s{constructor(){super(...arguments),this.selectable=!1,this.multi=!1,this.label="",this.activeIndex=0,this._previousActiveIndex=-1,this.chips=[]}render(){return I.x`<span
64
+ */var b;(function(a){a.POLITE="polite",a.ASSERTIVE="assertive"})(b||(b={}));var M="data-mdc-dom-announce";function D(a,i){T.getInstance().say(a,i)}var T=function(){function a(){this.liveRegions=new Map}return a.getInstance=function(){return a.instance||(a.instance=new a),a.instance},a.prototype.say=function(i,e){var t,r,n=(t=e==null?void 0:e.priority)!==null&&t!==void 0?t:b.POLITE,o=(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document,h=this.getLiveRegion(n,o);h.textContent="",setTimeout(function(){h.textContent=i,o.addEventListener("click",s)},1);function s(){h.textContent="",o.removeEventListener("click",s)}},a.prototype.getLiveRegion=function(i,e){var t=this.liveRegions.get(e);t||(t=new Map,this.liveRegions.set(e,t));var r=t.get(i);if(r&&e.body.contains(r))return r;var n=this.createLiveRegion(i,e);return t.set(i,n),n},a.prototype.createLiveRegion=function(i,e){var t=e.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.height="1px",t.style.overflow="hidden",t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live",i),t.setAttribute(M,"true"),e.body.appendChild(t),t},a}(),L=Object.defineProperty,g=(a,i,e,t)=>{for(var r=void 0,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=o(i,e,r)||r);return r&&L(i,e,r),r};class A extends I.s{constructor(){super(...arguments),this.selectable=!1,this.multi=!1,this.label="",this.activeIndex=0,this._previousActiveIndex=-1,this.chips=[]}render(){return I.x`<span
65
65
  class="mdc-evolution-chip-set"
66
66
  role="${this.selectable||this.multi?"listbox":"grid"}"
67
67
  aria-label="${this.label}"
@@ -70,6 +70,6 @@
70
70
  <span class="mdc-evolution-chip-set__chips" role="presentation">
71
71
  <slot></slot>
72
72
  </span>
73
- </span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot");g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable");g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi");g([E.n()],A.prototype,"label");g([E.n({type:Number})],A.prototype,"activeIndex");const L=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";var _=Object.defineProperty,w=Object.getOwnPropertyDescriptor,B=(a,i,e,t)=>{for(var r=t>1?void 0:t?w(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=(t?o(i,e,r):o(r))||r);return t&&r&&_(i,e,r),r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
74
- ${I.r(L)}
75
- `];exports.CovalentChipSet=B([I.e("cv-chip-set")],exports.CovalentChipSet);const P=exports.CovalentChipSet;exports.default=P;
73
+ </span>`}async updated(i){super.updated(i),await this.updateComplete,this.activeIndex!=this._previousActiveIndex&&this.mdcFoundation.setChipSelected(this.activeIndex,c.MDCChipActionType.PRIMARY,!0)}firstUpdated(i){var r;super.firstUpdated(i);const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),t=(e==null?void 0:e.assignedElements().filter(n=>n instanceof c.CovalentChip))??[];for(let n=0;n<t.length;n++){const o=t[n];this.chips.push(o)}this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundation=new R(this.createAdapter()),this.mdcFoundation.init()}connectedCallback(){super.connectedCallback(),this.addEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.addEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.addEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c.MDCChipEvents.ANIMATION,this._handleChipAnimation),this.removeEventListener(c.MDCChipEvents.INTERACTION,this._handleChipInteraction),this.removeEventListener(c.MDCChipEvents.NAVIGATION,this._handleChipNavigation)}createAdapter(){return{announceMessage:D,emitEvent:(i,e)=>this.dispatchEvent(new CustomEvent(i,{bubbles:!0,detail:e})),getAttribute:i=>this.mdcRoot.getAttribute(i),getChipActionsAtIndex:i=>this.chips[i].getActions(),getChipCount:()=>this.chips.length,getChipIdAtIndex:i=>this.chips[i].getElementID(),getChipIndexById:i=>this.chips.findIndex(e=>e.getElementID()===i),isChipFocusableAtIndex:(i,e)=>this.chips[i].isActionFocusable(e),isChipSelectableAtIndex:(i,e)=>this.chips[i].isActionSelectable(e),isChipSelectedAtIndex:(i,e)=>this.chips[i].isActionSelected(e),removeChipAtIndex:i=>this.chips[i].remove(),setChipFocusAtIndex:(i,e,t)=>this.chips[i].setActionFocus(e,t),setChipSelectedAtIndex:(i,e,t)=>this.chips[i].setActionSelected(e,t),startChipAnimationAtIndex:(i,e)=>this.chips[i].startAnimation(e)}}_handleChipAnimation(i){this.mdcFoundation.handleChipAnimation(i)}_handleChipInteraction(i){this.mdcFoundation.handleChipInteraction(i)}_handleChipNavigation(i){this.mdcFoundation.handleChipNavigation(i)}}g([N.i(".mdc-evolution-chip-set")],A.prototype,"mdcRoot");g([E.n({type:Boolean,reflect:!0})],A.prototype,"selectable");g([E.n({type:Boolean,reflect:!0})],A.prototype,"multi");g([E.n()],A.prototype,"label");g([E.n({type:Number})],A.prototype,"activeIndex");const O=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";var _=Object.getOwnPropertyDescriptor,w=(a,i,e,t)=>{for(var r=t>1?void 0:t?_(i,e):i,n=a.length-1,o;n>=0;n--)(o=a[n])&&(r=o(r)||r);return r};exports.CovalentChipSet=class extends A{};exports.CovalentChipSet.styles=[I.i`
74
+ ${I.r(O)}
75
+ `];exports.CovalentChipSet=w([I.e("cv-chip-set")],exports.CovalentChipSet);const B=exports.CovalentChipSet;exports.default=B;
package/chip-set.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { s as M, x as D, i as L, r as O, e as _ } from "./query-assigned-elements-DhyCP_2z.mjs";
2
- import { M as E, a as A, b as T, C as w, c as f } from "./chip-tQfbvpbh.mjs";
3
- import { _ as P, a as F, c as I } from "./tslib.es6-CISSdiiH.mjs";
4
- import { M as B } from "./foundation-D6JHa7Lg.mjs";
5
- import { K as d } from "./keyboard-BLpVBEDM.mjs";
1
+ import { s as M, x as D, r as L, i as O, e as w } from "./query-assigned-elements-D930kELM.mjs";
2
+ import { M as E, a as A, b as T, C as _, c as v } from "./chip-vV-teZYv.mjs";
3
+ import { a as B, b as F, c as I } from "./tslib.es6-pPsSiLLK.mjs";
4
+ import { M as P } from "./foundation-PL3XY-m_.mjs";
5
+ import { K as l } from "./keyboard-BLpVBEDM.mjs";
6
6
  import { n as y } from "./property-DJzm_oB9.mjs";
7
- import { i as U } from "./query-DSO61t36.mjs";
7
+ import { i as U } from "./query-CDOd1Kwm.mjs";
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2016 Google Inc.
@@ -35,10 +35,10 @@ var S;
35
35
  (function(a) {
36
36
  a.CHIP = "mdc-evolution-chip";
37
37
  })(S || (S = {}));
38
- var v;
38
+ var f;
39
39
  (function(a) {
40
40
  a.INTERACTION = "MDCChipSet:interaction", a.REMOVAL = "MDCChipSet:removal", a.SELECTION = "MDCChipSet:selection";
41
- })(v || (v = {}));
41
+ })(f || (f = {}));
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2020 Google Inc.
@@ -61,16 +61,16 @@ var v;
61
61
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
62
62
  * THE SOFTWARE.
63
63
  */
64
- var l;
64
+ var d;
65
65
  (function(a) {
66
66
  a[a.INCREMENT = 0] = "INCREMENT", a[a.DECREMENT = 1] = "DECREMENT";
67
- })(l || (l = {}));
68
- var $ = (
67
+ })(d || (d = {}));
68
+ var k = (
69
69
  /** @class */
70
70
  function(a) {
71
- P(i, a);
72
- function i(e) {
73
- return a.call(this, F(F({}, i.defaultAdapter), e)) || this;
71
+ B(i, a);
72
+ function i(t) {
73
+ return a.call(this, F(F({}, i.defaultAdapter), t)) || this;
74
74
  }
75
75
  return Object.defineProperty(i, "defaultAdapter", {
76
76
  get: function() {
@@ -115,8 +115,8 @@ var $ = (
115
115
  },
116
116
  enumerable: !1,
117
117
  configurable: !0
118
- }), i.prototype.handleChipAnimation = function(e) {
119
- var t = e.detail, r = t.chipID, n = t.animation, o = t.isComplete, h = t.addedAnnouncement, s = t.removedAnnouncement, p = this.adapter.getChipIndexById(r);
118
+ }), i.prototype.handleChipAnimation = function(t) {
119
+ var e = t.detail, r = e.chipID, n = e.animation, o = e.isComplete, h = e.addedAnnouncement, s = e.removedAnnouncement, p = this.adapter.getChipIndexById(r);
120
120
  if (n === E.EXIT && o) {
121
121
  s && this.adapter.announceMessage(s), this.removeAfterAnimation(p, r);
122
122
  return;
@@ -125,99 +125,99 @@ var $ = (
125
125
  this.adapter.announceMessage(h);
126
126
  return;
127
127
  }
128
- }, i.prototype.handleChipInteraction = function(e) {
129
- var t = e.detail, r = t.source, n = t.chipID, o = t.isSelectable, h = t.isSelected, s = t.shouldRemove, p = this.adapter.getChipIndexById(n);
128
+ }, i.prototype.handleChipInteraction = function(t) {
129
+ var e = t.detail, r = e.source, n = e.chipID, o = e.isSelectable, h = e.isSelected, s = e.shouldRemove, p = this.adapter.getChipIndexById(n);
130
130
  if (s) {
131
131
  this.removeChip(p);
132
132
  return;
133
133
  }
134
- this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(v.INTERACTION, {
134
+ this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(f.INTERACTION, {
135
135
  chipIndex: p,
136
136
  chipID: n
137
137
  }), o && this.setSelection(p, r, !h);
138
- }, i.prototype.handleChipNavigation = function(e) {
139
- var t = e.detail, r = t.chipID, n = t.key, o = t.isRTL, h = t.source, s = this.adapter.getChipIndexById(r), p = n === d.ARROW_RIGHT && !o || n === d.ARROW_LEFT && o;
138
+ }, i.prototype.handleChipNavigation = function(t) {
139
+ var e = t.detail, r = e.chipID, n = e.key, o = e.isRTL, h = e.source, s = this.adapter.getChipIndexById(r), p = n === l.ARROW_RIGHT && !o || n === l.ARROW_LEFT && o;
140
140
  if (p) {
141
141
  this.focusNextChipFrom(s + 1);
142
142
  return;
143
143
  }
144
- var c = n === d.ARROW_LEFT && !o || n === d.ARROW_RIGHT && o;
144
+ var c = n === l.ARROW_LEFT && !o || n === l.ARROW_RIGHT && o;
145
145
  if (c) {
146
146
  this.focusPrevChipFrom(s - 1);
147
147
  return;
148
148
  }
149
- if (n === d.ARROW_DOWN) {
149
+ if (n === l.ARROW_DOWN) {
150
150
  this.focusNextChipFrom(s + 1, h);
151
151
  return;
152
152
  }
153
- if (n === d.ARROW_UP) {
153
+ if (n === l.ARROW_UP) {
154
154
  this.focusPrevChipFrom(s - 1, h);
155
155
  return;
156
156
  }
157
- if (n === d.HOME) {
157
+ if (n === l.HOME) {
158
158
  this.focusNextChipFrom(0, h);
159
159
  return;
160
160
  }
161
- if (n === d.END) {
161
+ if (n === l.END) {
162
162
  this.focusPrevChipFrom(this.adapter.getChipCount() - 1, h);
163
163
  return;
164
164
  }
165
165
  }, i.prototype.getSelectedChipIndexes = function() {
166
- for (var e, t, r = /* @__PURE__ */ new Set(), n = this.adapter.getChipCount(), o = 0; o < n; o++) {
166
+ for (var t, e, r = /* @__PURE__ */ new Set(), n = this.adapter.getChipCount(), o = 0; o < n; o++) {
167
167
  var h = this.adapter.getChipActionsAtIndex(o);
168
168
  try {
169
- for (var s = (e = void 0, I(h)), p = s.next(); !p.done; p = s.next()) {
169
+ for (var s = (t = void 0, I(h)), p = s.next(); !p.done; p = s.next()) {
170
170
  var c = p.value;
171
171
  this.adapter.isChipSelectedAtIndex(o, c) && r.add(o);
172
172
  }
173
173
  } catch (u) {
174
- e = { error: u };
174
+ t = { error: u };
175
175
  } finally {
176
176
  try {
177
- p && !p.done && (t = s.return) && t.call(s);
177
+ p && !p.done && (e = s.return) && e.call(s);
178
178
  } finally {
179
- if (e) throw e.error;
179
+ if (t) throw t.error;
180
180
  }
181
181
  }
182
182
  }
183
183
  return r;
184
- }, i.prototype.setChipSelected = function(e, t, r) {
185
- this.adapter.isChipSelectableAtIndex(e, t) && this.setSelection(e, t, r);
186
- }, i.prototype.isChipSelected = function(e, t) {
187
- return this.adapter.isChipSelectedAtIndex(e, t);
188
- }, i.prototype.removeChip = function(e) {
189
- e >= this.adapter.getChipCount() || e < 0 || (this.adapter.startChipAnimationAtIndex(e, E.EXIT), this.adapter.emitEvent(v.REMOVAL, {
190
- chipID: this.adapter.getChipIdAtIndex(e),
191
- chipIndex: e,
184
+ }, i.prototype.setChipSelected = function(t, e, r) {
185
+ this.adapter.isChipSelectableAtIndex(t, e) && this.setSelection(t, e, r);
186
+ }, i.prototype.isChipSelected = function(t, e) {
187
+ return this.adapter.isChipSelectedAtIndex(t, e);
188
+ }, i.prototype.removeChip = function(t) {
189
+ t >= this.adapter.getChipCount() || t < 0 || (this.adapter.startChipAnimationAtIndex(t, E.EXIT), this.adapter.emitEvent(f.REMOVAL, {
190
+ chipID: this.adapter.getChipIdAtIndex(t),
191
+ chipIndex: t,
192
192
  isComplete: !1
193
193
  }));
194
- }, i.prototype.addChip = function(e) {
195
- e >= this.adapter.getChipCount() || e < 0 || this.adapter.startChipAnimationAtIndex(e, E.ENTER);
196
- }, i.prototype.focusNextChipFrom = function(e, t) {
197
- for (var r = this.adapter.getChipCount(), n = e; n < r; n++) {
198
- var o = this.getFocusableAction(n, l.INCREMENT, t);
194
+ }, i.prototype.addChip = function(t) {
195
+ t >= this.adapter.getChipCount() || t < 0 || this.adapter.startChipAnimationAtIndex(t, E.ENTER);
196
+ }, i.prototype.focusNextChipFrom = function(t, e) {
197
+ for (var r = this.adapter.getChipCount(), n = t; n < r; n++) {
198
+ var o = this.getFocusableAction(n, d.INCREMENT, e);
199
199
  if (o) {
200
200
  this.focusChip(n, o, A.FOCUSABLE_AND_FOCUSED);
201
201
  return;
202
202
  }
203
203
  }
204
- }, i.prototype.focusPrevChipFrom = function(e, t) {
205
- for (var r = e; r > -1; r--) {
206
- var n = this.getFocusableAction(r, l.DECREMENT, t);
204
+ }, i.prototype.focusPrevChipFrom = function(t, e) {
205
+ for (var r = t; r > -1; r--) {
206
+ var n = this.getFocusableAction(r, d.DECREMENT, e);
207
207
  if (n) {
208
208
  this.focusChip(r, n, A.FOCUSABLE_AND_FOCUSED);
209
209
  return;
210
210
  }
211
211
  }
212
- }, i.prototype.getFocusableAction = function(e, t, r) {
213
- var n = this.adapter.getChipActionsAtIndex(e);
214
- return t === l.DECREMENT && n.reverse(), r ? this.getMatchingFocusableAction(e, n, r) : this.getFirstFocusableAction(e, n);
215
- }, i.prototype.getFirstFocusableAction = function(e, t) {
212
+ }, i.prototype.getFocusableAction = function(t, e, r) {
213
+ var n = this.adapter.getChipActionsAtIndex(t);
214
+ return e === d.DECREMENT && n.reverse(), r ? this.getMatchingFocusableAction(t, n, r) : this.getFirstFocusableAction(t, n);
215
+ }, i.prototype.getFirstFocusableAction = function(t, e) {
216
216
  var r, n;
217
217
  try {
218
- for (var o = I(t), h = o.next(); !h.done; h = o.next()) {
218
+ for (var o = I(e), h = o.next(); !h.done; h = o.next()) {
219
219
  var s = h.value;
220
- if (this.adapter.isChipFocusableAtIndex(e, s))
220
+ if (this.adapter.isChipFocusableAtIndex(t, s))
221
221
  return s;
222
222
  }
223
223
  } catch (p) {
@@ -230,12 +230,12 @@ var $ = (
230
230
  }
231
231
  }
232
232
  return null;
233
- }, i.prototype.getMatchingFocusableAction = function(e, t, r) {
233
+ }, i.prototype.getMatchingFocusableAction = function(t, e, r) {
234
234
  var n, o, h = null;
235
235
  try {
236
- for (var s = I(t), p = s.next(); !p.done; p = s.next()) {
236
+ for (var s = I(e), p = s.next(); !p.done; p = s.next()) {
237
237
  var c = p.value;
238
- if (this.adapter.isChipFocusableAtIndex(e, c) && (h = c), h === r)
238
+ if (this.adapter.isChipFocusableAtIndex(t, c) && (h = c), h === r)
239
239
  return h;
240
240
  }
241
241
  } catch (u) {
@@ -248,15 +248,15 @@ var $ = (
248
248
  }
249
249
  }
250
250
  return h;
251
- }, i.prototype.focusChip = function(e, t, r) {
251
+ }, i.prototype.focusChip = function(t, e, r) {
252
252
  var n, o;
253
- this.adapter.setChipFocusAtIndex(e, t, r);
253
+ this.adapter.setChipFocusAtIndex(t, e, r);
254
254
  for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
255
255
  var p = this.adapter.getChipActionsAtIndex(s);
256
256
  try {
257
257
  for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
258
258
  var m = u.value;
259
- m === t && s === e || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
259
+ m === e && s === t || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
260
260
  }
261
261
  } catch (b) {
262
262
  n = { error: b };
@@ -270,11 +270,11 @@ var $ = (
270
270
  }
271
271
  }, i.prototype.supportsMultiSelect = function() {
272
272
  return this.adapter.getAttribute(N.ARIA_MULTISELECTABLE) === "true";
273
- }, i.prototype.setSelection = function(e, t, r) {
273
+ }, i.prototype.setSelection = function(t, e, r) {
274
274
  var n, o;
275
- if (this.adapter.setChipSelectedAtIndex(e, t, r), this.adapter.emitEvent(v.SELECTION, {
276
- chipID: this.adapter.getChipIdAtIndex(e),
277
- chipIndex: e,
275
+ if (this.adapter.setChipSelectedAtIndex(t, e, r), this.adapter.emitEvent(f.SELECTION, {
276
+ chipID: this.adapter.getChipIdAtIndex(t),
277
+ chipIndex: t,
278
278
  isSelected: r
279
279
  }), !this.supportsMultiSelect())
280
280
  for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
@@ -282,7 +282,7 @@ var $ = (
282
282
  try {
283
283
  for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
284
284
  var m = u.value;
285
- m === t && s === e || this.adapter.setChipSelectedAtIndex(s, m, !1);
285
+ m === e && s === t || this.adapter.setChipSelectedAtIndex(s, m, !1);
286
286
  }
287
287
  } catch (b) {
288
288
  n = { error: b };
@@ -294,16 +294,16 @@ var $ = (
294
294
  }
295
295
  }
296
296
  }
297
- }, i.prototype.removeAfterAnimation = function(e, t) {
298
- this.adapter.removeChipAtIndex(e), this.adapter.emitEvent(v.REMOVAL, {
299
- chipIndex: e,
297
+ }, i.prototype.removeAfterAnimation = function(t, e) {
298
+ this.adapter.removeChipAtIndex(t), this.adapter.emitEvent(f.REMOVAL, {
299
+ chipIndex: t,
300
300
  isComplete: !0,
301
- chipID: t
301
+ chipID: e
302
302
  });
303
303
  var r = this.adapter.getChipCount();
304
- r <= 0 || this.focusNearestFocusableAction(e);
305
- }, i.prototype.focusNearestFocusableAction = function(e) {
306
- for (var t = this.adapter.getChipCount(), r = e, n = e; r > -1 || n < t; ) {
304
+ r <= 0 || this.focusNearestFocusableAction(t);
305
+ }, i.prototype.focusNearestFocusableAction = function(t) {
306
+ for (var e = this.adapter.getChipCount(), r = t, n = t; r > -1 || n < e; ) {
307
307
  var o = this.getNearestFocusableAction(r, n, T.TRAILING);
308
308
  if (o) {
309
309
  this.focusChip(o.index, o.action, A.FOCUSABLE_AND_FOCUSED);
@@ -311,22 +311,22 @@ var $ = (
311
311
  }
312
312
  r--, n++;
313
313
  }
314
- }, i.prototype.getNearestFocusableAction = function(e, t, r) {
315
- var n = this.getFocusableAction(e, l.DECREMENT, r);
314
+ }, i.prototype.getNearestFocusableAction = function(t, e, r) {
315
+ var n = this.getFocusableAction(t, d.DECREMENT, r);
316
316
  if (n)
317
317
  return {
318
- index: e,
318
+ index: t,
319
319
  action: n
320
320
  };
321
- if (t === e)
321
+ if (e === t)
322
322
  return null;
323
- var o = this.getFocusableAction(t, l.INCREMENT, r);
323
+ var o = this.getFocusableAction(e, d.INCREMENT, r);
324
324
  return o ? {
325
- index: t,
325
+ index: e,
326
326
  action: o
327
327
  } : null;
328
328
  }, i;
329
- }(B)
329
+ }(P)
330
330
  );
331
331
  /**
332
332
  * @license
@@ -355,10 +355,10 @@ var R;
355
355
  a.POLITE = "polite", a.ASSERTIVE = "assertive";
356
356
  })(R || (R = {}));
357
357
  var W = "data-mdc-dom-announce";
358
- function V(a, i) {
359
- G.getInstance().say(a, i);
358
+ function $(a, i) {
359
+ V.getInstance().say(a, i);
360
360
  }
361
- var G = (
361
+ var V = (
362
362
  /** @class */
363
363
  function() {
364
364
  function a() {
@@ -366,31 +366,31 @@ var G = (
366
366
  }
367
367
  return a.getInstance = function() {
368
368
  return a.instance || (a.instance = new a()), a.instance;
369
- }, a.prototype.say = function(i, e) {
370
- var t, r, n = (t = e == null ? void 0 : e.priority) !== null && t !== void 0 ? t : R.POLITE, o = (r = e == null ? void 0 : e.ownerDocument) !== null && r !== void 0 ? r : document, h = this.getLiveRegion(n, o);
369
+ }, a.prototype.say = function(i, t) {
370
+ var e, r, n = (e = t == null ? void 0 : t.priority) !== null && e !== void 0 ? e : R.POLITE, o = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, h = this.getLiveRegion(n, o);
371
371
  h.textContent = "", setTimeout(function() {
372
372
  h.textContent = i, o.addEventListener("click", s);
373
373
  }, 1);
374
374
  function s() {
375
375
  h.textContent = "", o.removeEventListener("click", s);
376
376
  }
377
- }, a.prototype.getLiveRegion = function(i, e) {
378
- var t = this.liveRegions.get(e);
379
- t || (t = /* @__PURE__ */ new Map(), this.liveRegions.set(e, t));
380
- var r = t.get(i);
381
- if (r && e.body.contains(r))
377
+ }, a.prototype.getLiveRegion = function(i, t) {
378
+ var e = this.liveRegions.get(t);
379
+ e || (e = /* @__PURE__ */ new Map(), this.liveRegions.set(t, e));
380
+ var r = e.get(i);
381
+ if (r && t.body.contains(r))
382
382
  return r;
383
- var n = this.createLiveRegion(i, e);
384
- return t.set(i, n), n;
385
- }, a.prototype.createLiveRegion = function(i, e) {
386
- var t = e.createElement("div");
387
- return t.style.position = "absolute", t.style.top = "-9999px", t.style.left = "-9999px", t.style.height = "1px", t.style.overflow = "hidden", t.setAttribute("aria-atomic", "true"), t.setAttribute("aria-live", i), t.setAttribute(W, "true"), e.body.appendChild(t), t;
383
+ var n = this.createLiveRegion(i, t);
384
+ return e.set(i, n), n;
385
+ }, a.prototype.createLiveRegion = function(i, t) {
386
+ var e = t.createElement("div");
387
+ return e.style.position = "absolute", e.style.top = "-9999px", e.style.left = "-9999px", e.style.height = "1px", e.style.overflow = "hidden", e.setAttribute("aria-atomic", "true"), e.setAttribute("aria-live", i), e.setAttribute(W, "true"), t.body.appendChild(e), e;
388
388
  }, a;
389
389
  }()
390
- ), j = Object.defineProperty, g = (a, i, e, t) => {
390
+ ), G = Object.defineProperty, g = (a, i, t, e) => {
391
391
  for (var r = void 0, n = a.length - 1, o; n >= 0; n--)
392
- (o = a[n]) && (r = o(i, e, r) || r);
393
- return r && j(i, e, r), r;
392
+ (o = a[n]) && (r = o(i, t, r) || r);
393
+ return r && G(i, t, r), r;
394
394
  };
395
395
  class C extends M {
396
396
  constructor() {
@@ -418,38 +418,38 @@ class C extends M {
418
418
  firstUpdated(i) {
419
419
  var r;
420
420
  super.firstUpdated(i);
421
- const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), t = (e == null ? void 0 : e.assignedElements().filter((n) => n instanceof w)) ?? [];
422
- for (let n = 0; n < t.length; n++) {
423
- const o = t[n];
421
+ const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), e = (t == null ? void 0 : t.assignedElements().filter((n) => n instanceof _)) ?? [];
422
+ for (let n = 0; n < e.length; n++) {
423
+ const o = e[n];
424
424
  this.chips.push(o);
425
425
  }
426
- this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new $(this.createAdapter()), this.mdcFoundation.init();
426
+ this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new k(this.createAdapter()), this.mdcFoundation.init();
427
427
  }
428
428
  connectedCallback() {
429
- super.connectedCallback(), this.addEventListener(f.ANIMATION, this._handleChipAnimation), this.addEventListener(
430
- f.INTERACTION,
429
+ super.connectedCallback(), this.addEventListener(v.ANIMATION, this._handleChipAnimation), this.addEventListener(
430
+ v.INTERACTION,
431
431
  this._handleChipInteraction
432
- ), this.addEventListener(f.NAVIGATION, this._handleChipNavigation);
432
+ ), this.addEventListener(v.NAVIGATION, this._handleChipNavigation);
433
433
  }
434
434
  disconnectedCallback() {
435
435
  super.disconnectedCallback(), this.removeEventListener(
436
- f.ANIMATION,
436
+ v.ANIMATION,
437
437
  this._handleChipAnimation
438
438
  ), this.removeEventListener(
439
- f.INTERACTION,
439
+ v.INTERACTION,
440
440
  this._handleChipInteraction
441
441
  ), this.removeEventListener(
442
- f.NAVIGATION,
442
+ v.NAVIGATION,
443
443
  this._handleChipNavigation
444
444
  );
445
445
  }
446
446
  createAdapter() {
447
447
  return {
448
448
  /** Announces the message via an aria-live region */
449
- announceMessage: V,
449
+ announceMessage: $,
450
450
  /** Emits the given event with the given detail. */
451
- emitEvent: (i, e) => this.dispatchEvent(
452
- new CustomEvent(i, { bubbles: !0, detail: e })
451
+ emitEvent: (i, t) => this.dispatchEvent(
452
+ new CustomEvent(i, { bubbles: !0, detail: t })
453
453
  ),
454
454
  /** Returns the value for the given attribute, if it exists. */
455
455
  getAttribute: (i) => this.mdcRoot.getAttribute(i),
@@ -460,21 +460,21 @@ class C extends M {
460
460
  /** Returns the ID of the chip at the given index. */
461
461
  getChipIdAtIndex: (i) => this.chips[i].getElementID(),
462
462
  /** Returns the index of the child chip with the matching ID. */
463
- getChipIndexById: (i) => this.chips.findIndex((e) => e.getElementID() === i),
463
+ getChipIndexById: (i) => this.chips.findIndex((t) => t.getElementID() === i),
464
464
  /** Proxies to the MDCChip#isActionFocusable method. */
465
- isChipFocusableAtIndex: (i, e) => this.chips[i].isActionFocusable(e),
465
+ isChipFocusableAtIndex: (i, t) => this.chips[i].isActionFocusable(t),
466
466
  /** Proxies to the MDCChip#isActionSelectable method. */
467
- isChipSelectableAtIndex: (i, e) => this.chips[i].isActionSelectable(e),
467
+ isChipSelectableAtIndex: (i, t) => this.chips[i].isActionSelectable(t),
468
468
  /** Proxies to the MDCChip#isActionSelected method. */
469
- isChipSelectedAtIndex: (i, e) => this.chips[i].isActionSelected(e),
469
+ isChipSelectedAtIndex: (i, t) => this.chips[i].isActionSelected(t),
470
470
  /** Removes the chip at the given index. */
471
471
  removeChipAtIndex: (i) => this.chips[i].remove(),
472
472
  /** Proxies to the MDCChip#setActionFocus method. */
473
- setChipFocusAtIndex: (i, e, t) => this.chips[i].setActionFocus(e, t),
473
+ setChipFocusAtIndex: (i, t, e) => this.chips[i].setActionFocus(t, e),
474
474
  /** Proxies to the MDCChip#setActionSelected method. */
475
- setChipSelectedAtIndex: (i, e, t) => this.chips[i].setActionSelected(e, t),
475
+ setChipSelectedAtIndex: (i, t, e) => this.chips[i].setActionSelected(t, e),
476
476
  /** Starts the chip animation at the given index. */
477
- startChipAnimationAtIndex: (i, e) => this.chips[i].startAnimation(e)
477
+ startChipAnimationAtIndex: (i, t) => this.chips[i].startAnimation(t)
478
478
  };
479
479
  }
480
480
  _handleChipAnimation(i) {
@@ -503,23 +503,23 @@ g([
503
503
  y({ type: Number })
504
504
  ], C.prototype, "activeIndex");
505
505
  const H = ".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";
506
- var k = Object.defineProperty, K = Object.getOwnPropertyDescriptor, X = (a, i, e, t) => {
507
- for (var r = t > 1 ? void 0 : t ? K(i, e) : i, n = a.length - 1, o; n >= 0; n--)
508
- (o = a[n]) && (r = (t ? o(i, e, r) : o(r)) || r);
509
- return t && r && k(i, e, r), r;
506
+ var j = Object.getOwnPropertyDescriptor, K = (a, i, t, e) => {
507
+ for (var r = e > 1 ? void 0 : e ? j(i, t) : i, n = a.length - 1, o; n >= 0; n--)
508
+ (o = a[n]) && (r = o(r) || r);
509
+ return r;
510
510
  };
511
511
  let x = class extends C {
512
512
  };
513
513
  x.styles = [
514
- L`
515
- ${O(H)}
514
+ O`
515
+ ${L(H)}
516
516
  `
517
517
  ];
518
- x = X([
519
- _("cv-chip-set")
518
+ x = K([
519
+ w("cv-chip-set")
520
520
  ], x);
521
- const te = x;
521
+ const tt = x;
522
522
  export {
523
523
  x as CovalentChipSet,
524
- te as default
524
+ tt as default
525
525
  };