@esri/calcite-components 1.0.0-next.489 → 1.0.0-next.491

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 (811) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/index.esm.js +1 -1
  4. package/dist/calcite/{p-5dea814b.system.js → p-00752768.system.js} +2 -2
  5. package/dist/calcite/{p-9cf72525.entry.js → p-00c69e39.entry.js} +2 -2
  6. package/dist/calcite/{p-519cf47c.system.entry.js → p-01a25c0c.system.entry.js} +2 -2
  7. package/dist/calcite/{p-7f6bb105.entry.js → p-01f7af85.entry.js} +2 -2
  8. package/dist/calcite/{p-3ae7de8f.system.entry.js → p-02003db4.system.entry.js} +2 -2
  9. package/dist/calcite/{p-956dc24e.system.js → p-0437b0d4.system.js} +1 -1
  10. package/dist/calcite/{p-5053a602.js → p-04ee43bb.js} +1 -1
  11. package/dist/calcite/{p-36030a3e.entry.js → p-05bbd823.entry.js} +2 -2
  12. package/dist/calcite/p-0765f396.system.entry.js +6 -0
  13. package/dist/calcite/{p-54b344e4.system.entry.js → p-07d0be55.system.entry.js} +2 -2
  14. package/dist/calcite/{p-52ee0a9a.js → p-081d4c3f.js} +1 -1
  15. package/dist/calcite/{p-68b1685c.system.entry.js → p-093bd71e.system.entry.js} +2 -2
  16. package/dist/calcite/p-0b5d39a2.entry.js +6 -0
  17. package/dist/calcite/{p-15af9652.system.entry.js → p-0cb3e906.system.entry.js} +2 -2
  18. package/dist/calcite/{p-21284bad.system.js → p-0f138cbd.system.js} +2 -2
  19. package/dist/calcite/{p-a5a1cd6f.entry.js → p-107ae122.entry.js} +2 -2
  20. package/dist/calcite/{p-ae68d9a4.system.js → p-121593ce.system.js} +1 -1
  21. package/dist/calcite/{p-cc1c49c2.system.entry.js → p-14069334.system.entry.js} +2 -2
  22. package/dist/calcite/{p-7986e418.entry.js → p-14eb26c5.entry.js} +2 -2
  23. package/dist/calcite/p-14f16b90.js +6 -0
  24. package/dist/calcite/{p-84e07bc5.system.entry.js → p-1b484144.system.entry.js} +2 -2
  25. package/dist/calcite/{p-5608a8f0.system.entry.js → p-1be5d846.system.entry.js} +2 -2
  26. package/dist/calcite/{p-ca95f3a2.js → p-1c727923.js} +1 -1
  27. package/dist/calcite/p-1d799deb.system.entry.js +6 -0
  28. package/dist/calcite/{p-079fda5b.system.entry.js → p-1f3ae7d1.system.entry.js} +2 -2
  29. package/dist/calcite/{p-f826c2e5.entry.js → p-1fca22c3.entry.js} +2 -2
  30. package/dist/calcite/{p-984e0357.entry.js → p-1fe0e500.entry.js} +2 -2
  31. package/dist/calcite/{p-090a06f4.system.entry.js → p-20dfc822.system.entry.js} +2 -2
  32. package/dist/calcite/p-231187d1.entry.js +6 -0
  33. package/dist/calcite/{p-e1fdc43e.system.entry.js → p-252a4979.system.entry.js} +2 -2
  34. package/dist/calcite/{p-fc3bb011.entry.js → p-2919c808.entry.js} +2 -2
  35. package/dist/calcite/{p-fb4327c1.system.js → p-29f5a03b.system.js} +1 -1
  36. package/dist/calcite/{p-fb607379.entry.js → p-2a8c9f0c.entry.js} +2 -2
  37. package/dist/calcite/{p-d9891a65.system.entry.js → p-2e02cadd.entry.js} +2 -2
  38. package/dist/calcite/{p-c349f17d.system.entry.js → p-300ce62a.system.entry.js} +2 -2
  39. package/dist/calcite/{p-376082e0.entry.js → p-311b48d3.entry.js} +2 -2
  40. package/dist/calcite/{p-ff4f3860.system.entry.js → p-317e4337.system.entry.js} +2 -2
  41. package/dist/calcite/{p-a2c4faba.js → p-332981de.js} +1 -1
  42. package/dist/calcite/{p-82822e75.entry.js → p-3355a1c8.entry.js} +2 -2
  43. package/dist/calcite/p-36dffb0c.system.js +6 -0
  44. package/dist/calcite/{p-bdb7692f.system.entry.js → p-37d7c202.system.entry.js} +2 -2
  45. package/dist/calcite/{p-99cb0d88.entry.js → p-394ea1fb.entry.js} +2 -2
  46. package/dist/calcite/{p-032083e8.entry.js → p-3c564563.entry.js} +2 -2
  47. package/dist/calcite/{p-ffc94e06.system.entry.js → p-3d032c2b.system.entry.js} +2 -2
  48. package/dist/calcite/{p-c783f464.js → p-3d5bf549.js} +1 -1
  49. package/dist/calcite/{p-c3964270.entry.js → p-3d9e9496.entry.js} +2 -2
  50. package/dist/calcite/{p-a1ef0ec7.system.entry.js → p-41714042.system.entry.js} +2 -2
  51. package/dist/calcite/{p-e9c07797.entry.js → p-421b822b.entry.js} +2 -2
  52. package/dist/calcite/{p-115511ca.system.js → p-448331d0.system.js} +2 -2
  53. package/dist/calcite/{p-14de45ac.system.entry.js → p-46dc1b48.system.entry.js} +2 -2
  54. package/dist/calcite/{p-f564b6ca.entry.js → p-4a415a87.entry.js} +2 -2
  55. package/dist/calcite/{p-ac1c986e.system.js → p-4b37568b.system.js} +1 -1
  56. package/dist/calcite/p-4d80af5a.system.js +6 -0
  57. package/dist/calcite/{p-3fc72ae9.system.entry.js → p-4e49334c.system.entry.js} +2 -2
  58. package/dist/calcite/{p-c505e7ce.js → p-4e6e1161.js} +2 -2
  59. package/dist/calcite/{p-35244a1c.system.entry.js → p-51e6292b.system.entry.js} +2 -2
  60. package/dist/calcite/{p-91cfb3e7.system.entry.js → p-5222d674.system.entry.js} +2 -2
  61. package/dist/calcite/{p-85add826.js → p-52591444.js} +1 -1
  62. package/dist/calcite/{p-739b0dd7.entry.js → p-5262ecd4.entry.js} +2 -2
  63. package/dist/calcite/{p-68e1154f.js → p-57875d94.js} +2 -2
  64. package/dist/calcite/{p-bfd50cd2.entry.js → p-57e5183c.entry.js} +2 -2
  65. package/dist/calcite/{p-b0af2437.system.entry.js → p-582b6177.system.entry.js} +2 -2
  66. package/dist/calcite/{p-9e880fe6.entry.js → p-5b25949e.entry.js} +2 -2
  67. package/dist/calcite/{p-7929e309.entry.js → p-5b96bdc1.entry.js} +2 -2
  68. package/dist/calcite/{p-994e51da.entry.js → p-5bc2a90a.entry.js} +2 -2
  69. package/dist/calcite/{p-985d9104.system.entry.js → p-5c642f40.system.entry.js} +2 -2
  70. package/dist/calcite/{p-994962fa.entry.js → p-5cac4f92.entry.js} +2 -2
  71. package/dist/calcite/{p-6888276b.system.js → p-5cce0983.system.js} +1 -1
  72. package/dist/calcite/{p-ea5bf895.system.entry.js → p-5f5fdf1b.system.entry.js} +2 -2
  73. package/dist/calcite/{p-249bb0cd.js → p-61e2bb4f.js} +1 -1
  74. package/dist/calcite/{p-b366719f.js → p-6240ecc8.js} +1 -1
  75. package/dist/calcite/{p-eebde484.entry.js → p-6460d8e3.entry.js} +2 -2
  76. package/dist/calcite/{p-bc710229.system.entry.js → p-67c54d7a.system.entry.js} +3 -3
  77. package/dist/calcite/{p-60e078b7.system.entry.js → p-688c54fe.system.entry.js} +2 -2
  78. package/dist/calcite/{p-6249f3b2.system.js → p-68abc44b.system.js} +1 -1
  79. package/dist/calcite/p-6cdda2cc.system.entry.js +6 -0
  80. package/dist/calcite/{p-2140b854.system.js → p-6d15e06e.system.js} +1 -1
  81. package/dist/calcite/{p-20eb30c2.system.entry.js → p-6ed2e32e.system.entry.js} +2 -2
  82. package/dist/calcite/{p-303b34a5.entry.js → p-6fd34f3b.entry.js} +2 -2
  83. package/dist/calcite/{p-2c5357ee.entry.js → p-7212ae05.entry.js} +2 -2
  84. package/dist/calcite/{p-e9db9f50.entry.js → p-75700a0f.entry.js} +2 -2
  85. package/dist/calcite/{p-8e8205fa.system.entry.js → p-76c8c1a6.system.entry.js} +2 -2
  86. package/dist/calcite/{p-be3c3e72.system.js → p-78243401.system.js} +1 -1
  87. package/dist/calcite/{p-f8fa3f14.entry.js → p-78f508a5.entry.js} +2 -2
  88. package/dist/calcite/p-791eeb1b.js +6 -0
  89. package/dist/calcite/{p-2335d959.system.entry.js → p-7de94678.system.entry.js} +2 -2
  90. package/dist/calcite/p-7ec467c7.entry.js +6 -0
  91. package/dist/calcite/{p-fa9b47eb.system.entry.js → p-7f8add09.system.entry.js} +2 -2
  92. package/dist/calcite/p-826fe9b7.system.entry.js +6 -0
  93. package/dist/calcite/{p-cbf0e5be.entry.js → p-833eca14.entry.js} +2 -2
  94. package/dist/calcite/{p-d4324b4a.entry.js → p-8407ccf7.entry.js} +2 -2
  95. package/dist/calcite/p-846e8a22.entry.js +6 -0
  96. package/dist/calcite/{p-74d3af97.entry.js → p-86d87f35.entry.js} +2 -2
  97. package/dist/calcite/{p-4d47ca16.system.entry.js → p-877fd266.system.entry.js} +2 -2
  98. package/dist/calcite/{p-b09ad530.system.entry.js → p-8803ff7d.system.entry.js} +2 -2
  99. package/dist/calcite/{p-9793a6e3.entry.js → p-8839da80.entry.js} +2 -2
  100. package/dist/calcite/{p-8015076c.system.js → p-88596079.system.js} +2 -2
  101. package/dist/calcite/{p-f56e9345.js → p-887c1cea.js} +1 -1
  102. package/dist/calcite/{p-5ec0f27d.system.js → p-899a2bff.system.js} +2 -2
  103. package/dist/calcite/{p-dba32ea3.system.js → p-90b20919.system.js} +1 -1
  104. package/dist/calcite/{p-c1fb5c76.entry.js → p-91563ddc.entry.js} +2 -2
  105. package/dist/calcite/{p-3433c180.js → p-91d78519.js} +2 -2
  106. package/dist/calcite/{p-8390b788.entry.js → p-9345b05c.entry.js} +2 -2
  107. package/dist/calcite/p-9473a4f5.system.js +6 -0
  108. package/dist/calcite/{p-285f30f0.system.js → p-9529204d.system.js} +2 -2
  109. package/dist/calcite/{p-8559036d.entry.js → p-957df75e.entry.js} +2 -2
  110. package/dist/calcite/p-96a9737a.entry.js +6 -0
  111. package/dist/calcite/p-96e56a61.js +6 -0
  112. package/dist/calcite/{p-85b1be70.system.entry.js → p-985c27e4.system.entry.js} +2 -2
  113. package/dist/calcite/{p-b52786c5.entry.js → p-98a9a0ec.entry.js} +2 -2
  114. package/dist/calcite/{p-f99f6479.system.entry.js → p-98f11ef1.system.entry.js} +2 -2
  115. package/dist/calcite/{p-290d0aa6.entry.js → p-99784526.entry.js} +2 -2
  116. package/dist/calcite/p-9999ca88.entry.js +6 -0
  117. package/dist/calcite/{p-5cb12216.entry.js → p-9cc7a6fb.entry.js} +2 -2
  118. package/dist/calcite/{p-69032165.system.js → p-a4336816.system.js} +1 -1
  119. package/dist/calcite/{p-5e845442.entry.js → p-a4a9aee9.entry.js} +2 -2
  120. package/dist/calcite/{p-ae51bf5a.system.entry.js → p-a6ab0e5c.system.entry.js} +2 -2
  121. package/dist/calcite/p-a83f0031.system.entry.js +6 -0
  122. package/dist/calcite/{p-939eec33.system.entry.js → p-a8d01a40.system.entry.js} +2 -2
  123. package/dist/calcite/{p-a9a4b7f4.js → p-a91b9c6d.js} +2 -2
  124. package/dist/calcite/{p-b7948b95.system.entry.js → p-aaac9c2d.system.entry.js} +2 -2
  125. package/dist/calcite/{p-4b6afc53.system.js → p-b10b265e.system.js} +1 -1
  126. package/dist/calcite/{p-24fa86a5.system.entry.js → p-b11f8240.system.entry.js} +2 -2
  127. package/dist/calcite/{p-89ed9ac8.entry.js → p-b2bd84d6.entry.js} +2 -2
  128. package/dist/calcite/{p-98ac3f66.system.entry.js → p-b4d9d1b7.system.entry.js} +2 -2
  129. package/dist/calcite/p-b626d30f.system.js +6 -0
  130. package/dist/calcite/{p-997b562f.entry.js → p-bcd6c00e.entry.js} +2 -2
  131. package/dist/calcite/{p-fbb58958.system.entry.js → p-bec7f175.system.entry.js} +2 -2
  132. package/dist/calcite/{p-9d099693.system.entry.js → p-bf9ee1ad.system.entry.js} +2 -2
  133. package/dist/calcite/{p-58548d51.system.entry.js → p-c13ced2a.system.entry.js} +2 -2
  134. package/dist/calcite/{p-cd96b449.entry.js → p-c5ed55d6.entry.js} +2 -2
  135. package/dist/calcite/{p-60764d8d.system.entry.js → p-c8e0532f.system.entry.js} +2 -2
  136. package/dist/calcite/{p-7e45837a.system.entry.js → p-cd51d2c4.system.entry.js} +2 -2
  137. package/dist/calcite/{p-92d28de8.system.entry.js → p-cda8ca71.system.entry.js} +2 -2
  138. package/dist/calcite/{p-09b4e21c.system.js → p-cefc6b5d.system.js} +1 -1
  139. package/dist/calcite/{p-e8e9a037.js → p-cf93d51c.js} +1 -1
  140. package/dist/calcite/{p-df7fc801.system.entry.js → p-d388ce30.system.entry.js} +2 -2
  141. package/dist/calcite/{p-10af1b13.system.entry.js → p-d3a0cd52.system.entry.js} +2 -2
  142. package/dist/calcite/p-d557dbbc.entry.js +6 -0
  143. package/dist/calcite/p-d9ce9a86.entry.js +6 -0
  144. package/dist/calcite/{p-c6a244cf.js → p-db6f8d83.js} +1 -1
  145. package/dist/calcite/{p-bc534cc8.entry.js → p-de7c752f.entry.js} +2 -2
  146. package/dist/calcite/p-df52c296.system.js +6 -0
  147. package/dist/calcite/{p-513aeb64.js → p-e2197696.js} +2 -2
  148. package/dist/calcite/{p-0f9cdf92.system.entry.js → p-e68c4a40.system.entry.js} +2 -2
  149. package/dist/calcite/{p-01d73d5f.entry.js → p-e84bbd3a.entry.js} +2 -2
  150. package/dist/calcite/{p-cc11fd96.system.entry.js → p-ebe1359b.system.entry.js} +2 -2
  151. package/dist/calcite/{p-d756a734.js → p-ec0039f0.js} +2 -2
  152. package/dist/calcite/{p-f3d25e2d.system.entry.js → p-ed1c47c8.system.entry.js} +2 -2
  153. package/dist/calcite/{p-f3cdfefa.entry.js → p-efd1ece3.entry.js} +2 -2
  154. package/dist/calcite/{p-bcc081c2.js → p-f0f4566d.js} +2 -2
  155. package/dist/calcite/{p-08fd68b6.entry.js → p-f4211281.entry.js} +2 -2
  156. package/dist/calcite/{p-8f9a8a6d.system.entry.js → p-f5073afc.system.entry.js} +2 -2
  157. package/dist/calcite/p-f6547917.js +6 -0
  158. package/dist/calcite/{p-bbf6dd07.system.js → p-f6d8ff49.system.js} +2 -2
  159. package/dist/calcite/{p-40ebbc20.entry.js → p-f922cf2e.entry.js} +2 -2
  160. package/dist/calcite/{p-90d6959b.system.entry.js → p-f9bfe203.system.entry.js} +2 -2
  161. package/dist/calcite/{p-e93aa221.entry.js → p-fa59dba2.entry.js} +2 -2
  162. package/dist/calcite/{p-3b85836e.js → p-fa6800f7.js} +1 -1
  163. package/dist/calcite/{p-34ca0207.system.js → p-fabf18bf.system.js} +1 -1
  164. package/dist/calcite/{p-2c8224eb.system.entry.js → p-fca776a0.system.entry.js} +2 -2
  165. package/dist/calcite/{p-eda3541b.entry.js → p-ffa7a5ad.entry.js} +2 -2
  166. package/dist/cjs/{ExpandToggle-5e1f4ae8.js → ExpandToggle-d1dcec7b.js} +5 -5
  167. package/dist/cjs/{Heading-6edefae8.js → Heading-08cb3ad8.js} +3 -3
  168. package/dist/cjs/{array-b64cf1d9.js → array-d376f65c.js} +1 -1
  169. package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
  170. package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
  171. package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
  172. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  173. package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
  174. package/dist/cjs/calcite-action.cjs.entry.js +6 -6
  175. package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
  176. package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
  177. package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
  178. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  179. package/dist/cjs/calcite-card.cjs.entry.js +6 -6
  180. package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
  181. package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
  183. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  184. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +8 -9
  185. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
  186. package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
  187. package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
  188. package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
  189. package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
  190. package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
  191. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  192. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  193. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -11
  194. package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
  195. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +27 -27
  196. package/dist/cjs/calcite-input.cjs.entry.js +21 -22
  197. package/dist/cjs/calcite-label.cjs.entry.js +5 -5
  198. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  199. package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
  200. package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
  201. package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
  202. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  203. package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
  204. package/dist/cjs/calcite-pagination.cjs.entry.js +4 -5
  205. package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
  206. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
  207. package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
  208. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  209. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  210. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  211. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
  212. package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
  213. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  214. package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
  215. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  216. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  217. package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
  219. package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
  220. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  221. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  222. package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
  223. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
  224. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
  225. package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
  226. package/dist/cjs/calcite.cjs.js +3 -3
  227. package/dist/cjs/{conditionalSlot-88002c5c.js → conditionalSlot-3359b0b5.js} +3 -3
  228. package/dist/cjs/{debounce-fe794b2e.js → debounce-a633dc9e.js} +1 -1
  229. package/dist/cjs/{dom-d188a05c.js → dom-9f6a96dd.js} +2 -2
  230. package/dist/cjs/{forIn-0b8b65a0.js → forIn-db536971.js} +2 -2
  231. package/dist/cjs/{form-61dd7c98.js → form-aebaa4f9.js} +3 -3
  232. package/dist/cjs/{guid-9ab6faec.js → guid-c7792ee3.js} +1 -1
  233. package/dist/cjs/{index-95f03452.js → index-f3c582e2.js} +1 -1
  234. package/dist/cjs/index.cjs.js +1 -1
  235. package/dist/cjs/{interactive-3762052b.js → interactive-9d05c40d.js} +1 -1
  236. package/dist/cjs/{interfaces-4e11089d.js → interfaces-d3cc8dfa.js} +1 -1
  237. package/dist/cjs/{label-8269a179.js → label-8103de35.js} +2 -2
  238. package/dist/cjs/loader.cjs.js +3 -3
  239. package/dist/cjs/locale-427f4205.js +266 -0
  240. package/dist/cjs/{math-93ab8570.js → math-aaa87ea6.js} +1 -1
  241. package/dist/cjs/{observers-ddfeeaeb.js → observers-a1608a7d.js} +1 -1
  242. package/dist/cjs/{popper-a0504b3a.js → popper-48289d39.js} +2 -2
  243. package/dist/cjs/{resources-ae6d75be.js → resources-18cda8b6.js} +3 -3
  244. package/dist/cjs/{resources-11cff30c.js → resources-8d12822f.js} +7 -19
  245. package/dist/cjs/{resources-b1d84ba6.js → resources-961c572d.js} +1 -1
  246. package/dist/cjs/{resources-8e1b4105.js → resources-e64d55c2.js} +1 -1
  247. package/dist/cjs/{sortable.esm-248db1f4.js → sortable.esm-72dcaaf5.js} +1 -1
  248. package/dist/cjs/{utils-bd4cabe8.js → utils-2ce8f1a3.js} +1 -1
  249. package/dist/collection/collection-manifest.json +1 -1
  250. package/dist/collection/components/accordion/accordion.js +1 -1
  251. package/dist/collection/components/accordion/interfaces.js +1 -1
  252. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  253. package/dist/collection/components/action/action.js +1 -1
  254. package/dist/collection/components/action/resources.js +1 -1
  255. package/dist/collection/components/action-bar/action-bar.js +1 -1
  256. package/dist/collection/components/action-bar/resources.js +1 -1
  257. package/dist/collection/components/action-bar/utils.js +1 -1
  258. package/dist/collection/components/action-group/action-group.js +1 -1
  259. package/dist/collection/components/action-group/resources.js +1 -1
  260. package/dist/collection/components/action-menu/action-menu.js +1 -1
  261. package/dist/collection/components/action-menu/resources.js +1 -1
  262. package/dist/collection/components/action-pad/action-pad.js +1 -1
  263. package/dist/collection/components/action-pad/resources.js +1 -1
  264. package/dist/collection/components/alert/alert.js +1 -1
  265. package/dist/collection/components/alert/interfaces.js +1 -1
  266. package/dist/collection/components/alert/resources.js +1 -1
  267. package/dist/collection/components/avatar/avatar.js +1 -1
  268. package/dist/collection/components/avatar/utils.js +1 -1
  269. package/dist/collection/components/block/block.js +1 -1
  270. package/dist/collection/components/block/resources.js +1 -1
  271. package/dist/collection/components/block-section/block-section.js +1 -1
  272. package/dist/collection/components/block-section/interfaces.js +1 -1
  273. package/dist/collection/components/block-section/resources.js +1 -1
  274. package/dist/collection/components/button/button.js +1 -1
  275. package/dist/collection/components/button/interfaces.js +1 -1
  276. package/dist/collection/components/button/resources.js +1 -1
  277. package/dist/collection/components/card/card.js +1 -1
  278. package/dist/collection/components/card/resources.js +1 -1
  279. package/dist/collection/components/checkbox/checkbox.js +1 -1
  280. package/dist/collection/components/chip/chip.js +1 -1
  281. package/dist/collection/components/chip/interfaces.js +1 -1
  282. package/dist/collection/components/chip/resources.js +1 -1
  283. package/dist/collection/components/color-picker/color-picker.js +1 -1
  284. package/dist/collection/components/color-picker/interfaces.js +1 -1
  285. package/dist/collection/components/color-picker/resources.js +1 -1
  286. package/dist/collection/components/color-picker/utils.js +1 -1
  287. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  288. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  289. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  290. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  291. package/dist/collection/components/combobox/combobox.js +1 -1
  292. package/dist/collection/components/combobox/interfaces.js +1 -1
  293. package/dist/collection/components/combobox/resources.js +1 -1
  294. package/dist/collection/components/combobox/utils.js +1 -1
  295. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  296. package/dist/collection/components/combobox-item/resources.js +1 -1
  297. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  298. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  299. package/dist/collection/components/date-picker/date-picker.js +1 -1
  300. package/dist/collection/components/date-picker/interfaces.js +1 -1
  301. package/dist/collection/components/date-picker/resources.js +1 -1
  302. package/dist/collection/components/date-picker/utils.js +1 -1
  303. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  304. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  305. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  306. package/dist/collection/components/dropdown/dropdown.js +1 -1
  307. package/dist/collection/components/dropdown/interfaces.js +1 -1
  308. package/dist/collection/components/dropdown/resources.js +1 -1
  309. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  310. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  311. package/dist/collection/components/dropdown-group/resources.js +1 -1
  312. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  313. package/dist/collection/components/dropdown-item/resources.js +1 -1
  314. package/dist/collection/components/fab/fab.js +1 -1
  315. package/dist/collection/components/fab/resources.js +1 -1
  316. package/dist/collection/components/filter/filter.js +1 -1
  317. package/dist/collection/components/filter/resources.js +1 -1
  318. package/dist/collection/components/flow/flow.js +1 -1
  319. package/dist/collection/components/flow/interfaces.js +1 -1
  320. package/dist/collection/components/flow/resources.js +1 -1
  321. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  322. package/dist/collection/components/functional/Heading.js +2 -2
  323. package/dist/collection/components/graph/graph.js +1 -1
  324. package/dist/collection/components/graph/interfaces.js +1 -1
  325. package/dist/collection/components/graph/util.js +1 -1
  326. package/dist/collection/components/handle/handle.js +1 -1
  327. package/dist/collection/components/handle/resources.js +1 -1
  328. package/dist/collection/components/icon/icon.js +1 -1
  329. package/dist/collection/components/icon/resources.js +1 -1
  330. package/dist/collection/components/icon/utils.js +1 -1
  331. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  332. package/dist/collection/components/inline-editable/resources.js +1 -1
  333. package/dist/collection/components/input/input.js +1 -1
  334. package/dist/collection/components/input/interfaces.js +1 -1
  335. package/dist/collection/components/input/resources.js +1 -1
  336. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  337. package/dist/collection/components/input-message/input-message.js +1 -1
  338. package/dist/collection/components/input-message/interfaces.js +1 -1
  339. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  340. package/dist/collection/components/interfaces.js +1 -1
  341. package/dist/collection/components/label/label.js +1 -1
  342. package/dist/collection/components/label/resources.js +1 -1
  343. package/dist/collection/components/link/link.js +1 -1
  344. package/dist/collection/components/list/list.js +1 -1
  345. package/dist/collection/components/list/resources.js +1 -1
  346. package/dist/collection/components/list-item/list-item.js +1 -1
  347. package/dist/collection/components/list-item/resources.js +1 -1
  348. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  349. package/dist/collection/components/list-item-group/resources.js +1 -1
  350. package/dist/collection/components/loader/loader.js +6 -6
  351. package/dist/collection/components/modal/interfaces.js +1 -1
  352. package/dist/collection/components/modal/modal.js +1 -1
  353. package/dist/collection/components/modal/resources.js +1 -1
  354. package/dist/collection/components/notice/notice.js +1 -1
  355. package/dist/collection/components/notice/resources.js +1 -1
  356. package/dist/collection/components/option/option.js +1 -1
  357. package/dist/collection/components/option-group/option-group.js +1 -1
  358. package/dist/collection/components/pagination/pagination.js +1 -1
  359. package/dist/collection/components/pagination/resources.js +1 -1
  360. package/dist/collection/components/panel/panel.js +1 -1
  361. package/dist/collection/components/panel/resources.js +1 -1
  362. package/dist/collection/components/pick-list/pick-list.js +1 -1
  363. package/dist/collection/components/pick-list/resources.js +1 -1
  364. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  365. package/dist/collection/components/pick-list/shared-list-render.js +3 -15
  366. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  367. package/dist/collection/components/pick-list-group/resources.js +1 -1
  368. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  369. package/dist/collection/components/pick-list-item/resources.js +1 -1
  370. package/dist/collection/components/popover/PopoverManager.js +1 -1
  371. package/dist/collection/components/popover/popover.js +1 -1
  372. package/dist/collection/components/popover/resources.js +1 -1
  373. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  374. package/dist/collection/components/progress/progress.js +1 -1
  375. package/dist/collection/components/radio-button/radio-button.js +1 -1
  376. package/dist/collection/components/radio-button/resources.js +1 -1
  377. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  378. package/dist/collection/components/radio-group/interfaces.js +1 -1
  379. package/dist/collection/components/radio-group/radio-group.js +1 -1
  380. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  381. package/dist/collection/components/radio-group-item/resources.js +1 -1
  382. package/dist/collection/components/rating/rating.js +1 -1
  383. package/dist/collection/components/rating/resources.js +1 -1
  384. package/dist/collection/components/scrim/resources.js +1 -1
  385. package/dist/collection/components/scrim/scrim.js +1 -1
  386. package/dist/collection/components/select/resources.js +1 -1
  387. package/dist/collection/components/select/select.js +1 -1
  388. package/dist/collection/components/shell/resources.js +1 -1
  389. package/dist/collection/components/shell/shell.js +1 -1
  390. package/dist/collection/components/shell-center-row/resources.js +1 -1
  391. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  392. package/dist/collection/components/shell-panel/resources.js +1 -1
  393. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  394. package/dist/collection/components/slider/slider.js +1 -1
  395. package/dist/collection/components/sortable-list/resources.js +1 -1
  396. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  397. package/dist/collection/components/split-button/resources.js +1 -1
  398. package/dist/collection/components/split-button/split-button.js +1 -1
  399. package/dist/collection/components/stepper/interfaces.js +1 -1
  400. package/dist/collection/components/stepper/stepper.js +1 -1
  401. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  402. package/dist/collection/components/switch/switch.js +1 -1
  403. package/dist/collection/components/tab/interfaces.js +1 -1
  404. package/dist/collection/components/tab/tab.js +1 -1
  405. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  406. package/dist/collection/components/tab-title/tab-title.js +1 -1
  407. package/dist/collection/components/tabs/interfaces.js +1 -1
  408. package/dist/collection/components/tabs/resources.js +1 -1
  409. package/dist/collection/components/tabs/tabs.js +1 -1
  410. package/dist/collection/components/tile/resources.js +1 -1
  411. package/dist/collection/components/tile/tile.js +1 -1
  412. package/dist/collection/components/tile-select/interfaces.js +1 -1
  413. package/dist/collection/components/tile-select/resources.js +1 -1
  414. package/dist/collection/components/tile-select/tile-select.js +1 -1
  415. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  416. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  417. package/dist/collection/components/time-picker/resources.js +1 -1
  418. package/dist/collection/components/time-picker/time-picker.js +1 -1
  419. package/dist/collection/components/tip/resources.js +1 -1
  420. package/dist/collection/components/tip/tip.js +1 -1
  421. package/dist/collection/components/tip-group/tip-group.js +1 -1
  422. package/dist/collection/components/tip-manager/resources.js +1 -1
  423. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  424. package/dist/collection/components/tooltip/TooltipManager.js +2 -2
  425. package/dist/collection/components/tooltip/resources.js +1 -1
  426. package/dist/collection/components/tooltip/tooltip.js +1 -1
  427. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  428. package/dist/collection/components/tree/interfaces.js +1 -1
  429. package/dist/collection/components/tree/tree.js +1 -1
  430. package/dist/collection/components/tree-item/interfaces.js +1 -1
  431. package/dist/collection/components/tree-item/resources.js +1 -1
  432. package/dist/collection/components/tree-item/tree-item.js +1 -1
  433. package/dist/collection/components/value-list/resources.js +1 -1
  434. package/dist/collection/components/value-list/value-list.js +1 -1
  435. package/dist/collection/components/value-list-item/resources.js +1 -1
  436. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  437. package/dist/collection/utils/array.js +1 -1
  438. package/dist/collection/utils/conditionalSlot.js +1 -1
  439. package/dist/collection/utils/date.js +1 -1
  440. package/dist/collection/utils/dom.js +1 -1
  441. package/dist/collection/utils/filter.js +1 -1
  442. package/dist/collection/utils/form.js +1 -1
  443. package/dist/collection/utils/globalAttributes.js +1 -1
  444. package/dist/collection/utils/guid.js +1 -1
  445. package/dist/collection/utils/interactive.js +1 -1
  446. package/dist/collection/utils/key.js +1 -1
  447. package/dist/collection/utils/label.js +1 -1
  448. package/dist/collection/utils/locale.js +6 -8
  449. package/dist/collection/utils/math.js +1 -1
  450. package/dist/collection/utils/number.js +71 -8
  451. package/dist/collection/utils/observers.js +1 -1
  452. package/dist/collection/utils/popper.js +1 -1
  453. package/dist/collection/utils/resources.js +1 -1
  454. package/dist/collection/utils/time.js +1 -1
  455. package/dist/components/ExpandToggle.js +1 -1
  456. package/dist/components/Heading.js +2 -2
  457. package/dist/components/action-group.js +1 -1
  458. package/dist/components/action-menu.js +1 -1
  459. package/dist/components/action.js +1 -1
  460. package/dist/components/array.js +1 -1
  461. package/dist/components/button.js +1 -1
  462. package/dist/components/calcite-accordion-item.js +1 -1
  463. package/dist/components/calcite-accordion.js +1 -1
  464. package/dist/components/calcite-action-bar.js +1 -1
  465. package/dist/components/calcite-action-group.js +1 -1
  466. package/dist/components/calcite-action-menu.js +1 -1
  467. package/dist/components/calcite-action-pad.js +1 -1
  468. package/dist/components/calcite-action.js +1 -1
  469. package/dist/components/calcite-alert.js +1 -1
  470. package/dist/components/calcite-avatar.js +1 -1
  471. package/dist/components/calcite-block-section.js +1 -1
  472. package/dist/components/calcite-block.js +1 -1
  473. package/dist/components/calcite-button.js +1 -1
  474. package/dist/components/calcite-card.js +1 -1
  475. package/dist/components/calcite-checkbox.js +1 -1
  476. package/dist/components/calcite-chip.js +1 -1
  477. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  478. package/dist/components/calcite-color-picker-swatch.js +1 -1
  479. package/dist/components/calcite-color-picker.js +1 -1
  480. package/dist/components/calcite-combobox-item-group.js +1 -1
  481. package/dist/components/calcite-combobox-item.js +1 -1
  482. package/dist/components/calcite-combobox.js +1 -1
  483. package/dist/components/calcite-date-picker-day.js +1 -1
  484. package/dist/components/calcite-date-picker-month-header.js +1 -1
  485. package/dist/components/calcite-date-picker-month.js +1 -1
  486. package/dist/components/calcite-date-picker.js +1 -1
  487. package/dist/components/calcite-dropdown-group.js +1 -1
  488. package/dist/components/calcite-dropdown-item.js +1 -1
  489. package/dist/components/calcite-dropdown.js +1 -1
  490. package/dist/components/calcite-fab.js +1 -1
  491. package/dist/components/calcite-filter.js +1 -1
  492. package/dist/components/calcite-flow.js +1 -1
  493. package/dist/components/calcite-graph.js +1 -1
  494. package/dist/components/calcite-handle.js +1 -1
  495. package/dist/components/calcite-icon.js +1 -1
  496. package/dist/components/calcite-inline-editable.js +1 -1
  497. package/dist/components/calcite-input-date-picker.js +1 -1
  498. package/dist/components/calcite-input-message.js +1 -1
  499. package/dist/components/calcite-input-time-picker.js +1 -1
  500. package/dist/components/calcite-input.js +1 -1
  501. package/dist/components/calcite-label.js +1 -1
  502. package/dist/components/calcite-link.js +1 -1
  503. package/dist/components/calcite-list-item-group.js +1 -1
  504. package/dist/components/calcite-list-item.js +1 -1
  505. package/dist/components/calcite-list.js +1 -1
  506. package/dist/components/calcite-loader.js +1 -1
  507. package/dist/components/calcite-modal.js +1 -1
  508. package/dist/components/calcite-notice.js +1 -1
  509. package/dist/components/calcite-option-group.js +1 -1
  510. package/dist/components/calcite-option.js +1 -1
  511. package/dist/components/calcite-pagination.js +1 -1
  512. package/dist/components/calcite-panel.js +1 -1
  513. package/dist/components/calcite-pick-list-group.js +1 -1
  514. package/dist/components/calcite-pick-list-item.js +1 -1
  515. package/dist/components/calcite-pick-list.js +1 -1
  516. package/dist/components/calcite-popover-manager.js +1 -1
  517. package/dist/components/calcite-popover.js +1 -1
  518. package/dist/components/calcite-progress.js +1 -1
  519. package/dist/components/calcite-radio-button-group.js +1 -1
  520. package/dist/components/calcite-radio-button.js +1 -1
  521. package/dist/components/calcite-radio-group-item.js +1 -1
  522. package/dist/components/calcite-radio-group.js +1 -1
  523. package/dist/components/calcite-rating.js +1 -1
  524. package/dist/components/calcite-scrim.js +1 -1
  525. package/dist/components/calcite-select.js +1 -1
  526. package/dist/components/calcite-shell-center-row.js +1 -1
  527. package/dist/components/calcite-shell-panel.js +1 -1
  528. package/dist/components/calcite-shell.js +1 -1
  529. package/dist/components/calcite-slider.js +1 -1
  530. package/dist/components/calcite-sortable-list.js +1 -1
  531. package/dist/components/calcite-split-button.js +1 -1
  532. package/dist/components/calcite-stepper-item.js +1 -1
  533. package/dist/components/calcite-stepper.js +1 -1
  534. package/dist/components/calcite-switch.js +1 -1
  535. package/dist/components/calcite-tab-nav.js +1 -1
  536. package/dist/components/calcite-tab-title.js +1 -1
  537. package/dist/components/calcite-tab.js +1 -1
  538. package/dist/components/calcite-tabs.js +1 -1
  539. package/dist/components/calcite-tile-select-group.js +1 -1
  540. package/dist/components/calcite-tile-select.js +1 -1
  541. package/dist/components/calcite-tile.js +1 -1
  542. package/dist/components/calcite-time-picker.js +1 -1
  543. package/dist/components/calcite-tip-group.js +1 -1
  544. package/dist/components/calcite-tip-manager.js +1 -1
  545. package/dist/components/calcite-tip.js +1 -1
  546. package/dist/components/calcite-tooltip-manager.js +1 -1
  547. package/dist/components/calcite-tooltip.js +2 -2
  548. package/dist/components/calcite-tree-item.js +1 -1
  549. package/dist/components/calcite-tree.js +1 -1
  550. package/dist/components/calcite-value-list-item.js +1 -1
  551. package/dist/components/calcite-value-list.js +1 -1
  552. package/dist/components/checkbox.js +1 -1
  553. package/dist/components/chip.js +1 -1
  554. package/dist/components/color-picker-hex-input.js +1 -1
  555. package/dist/components/color-picker-swatch.js +1 -1
  556. package/dist/components/conditionalSlot.js +1 -1
  557. package/dist/components/date-picker-day.js +1 -1
  558. package/dist/components/date-picker-month-header.js +1 -1
  559. package/dist/components/date-picker-month.js +1 -1
  560. package/dist/components/date-picker.js +1 -1
  561. package/dist/components/date.js +1 -1
  562. package/dist/components/debounce.js +1 -1
  563. package/dist/components/dom.js +1 -1
  564. package/dist/components/dropdown.js +1 -1
  565. package/dist/components/filter.js +1 -1
  566. package/dist/components/forIn.js +1 -1
  567. package/dist/components/form.js +1 -1
  568. package/dist/components/graph.js +1 -1
  569. package/dist/components/guid.js +1 -1
  570. package/dist/components/handle.js +1 -1
  571. package/dist/components/icon.js +1 -1
  572. package/dist/components/index.js +1 -1
  573. package/dist/components/input.js +2 -3
  574. package/dist/components/interactive.js +1 -1
  575. package/dist/components/interfaces.js +1 -1
  576. package/dist/components/interfaces2.js +1 -1
  577. package/dist/components/label.js +1 -1
  578. package/dist/components/label2.js +1 -1
  579. package/dist/components/link.js +1 -1
  580. package/dist/components/loader.js +2 -2
  581. package/dist/components/locale.js +137 -7
  582. package/dist/components/math.js +1 -1
  583. package/dist/components/observers.js +1 -1
  584. package/dist/components/pick-list-item.js +1 -1
  585. package/dist/components/popover.js +1 -1
  586. package/dist/components/popper.js +1 -1
  587. package/dist/components/progress.js +1 -1
  588. package/dist/components/resources.js +1 -1
  589. package/dist/components/resources2.js +1 -1
  590. package/dist/components/resources3.js +1 -1
  591. package/dist/components/scrim.js +1 -1
  592. package/dist/components/shared-list-render.js +3 -15
  593. package/dist/components/sortable.esm.js +1 -1
  594. package/dist/components/switch.js +1 -1
  595. package/dist/components/tab-nav.js +1 -1
  596. package/dist/components/tab-title.js +1 -1
  597. package/dist/components/tab.js +1 -1
  598. package/dist/components/tabs.js +1 -1
  599. package/dist/components/tile.js +1 -1
  600. package/dist/components/time-picker.js +2 -2
  601. package/dist/components/utils.js +1 -1
  602. package/dist/components/utils2.js +1 -1
  603. package/dist/custom-elements/index.js +78 -29
  604. package/dist/esm/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +5 -5
  605. package/dist/esm/{Heading-82d5894d.js → Heading-9a8fdd45.js} +3 -3
  606. package/dist/esm/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
  607. package/dist/esm/calcite-accordion_2.entry.js +4 -4
  608. package/dist/esm/calcite-action-bar.entry.js +10 -10
  609. package/dist/esm/calcite-action-group.entry.js +8 -8
  610. package/dist/esm/calcite-action-menu.entry.js +8 -8
  611. package/dist/esm/calcite-action-pad.entry.js +9 -9
  612. package/dist/esm/calcite-action.entry.js +6 -6
  613. package/dist/esm/calcite-alert.entry.js +5 -5
  614. package/dist/esm/calcite-avatar.entry.js +5 -5
  615. package/dist/esm/calcite-block_2.entry.js +8 -8
  616. package/dist/esm/calcite-button.entry.js +8 -8
  617. package/dist/esm/calcite-card.entry.js +6 -6
  618. package/dist/esm/calcite-checkbox.entry.js +7 -7
  619. package/dist/esm/calcite-chip.entry.js +6 -6
  620. package/dist/esm/calcite-color-picker_3.entry.js +8 -8
  621. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  622. package/dist/esm/calcite-date-picker_4.entry.js +8 -9
  623. package/dist/esm/calcite-dropdown_3.entry.js +7 -7
  624. package/dist/esm/calcite-fab.entry.js +5 -5
  625. package/dist/esm/calcite-filter.entry.js +7 -7
  626. package/dist/esm/calcite-flow.entry.js +2 -2
  627. package/dist/esm/calcite-graph_2.entry.js +9 -9
  628. package/dist/esm/calcite-handle.entry.js +4 -4
  629. package/dist/esm/calcite-icon.entry.js +5 -5
  630. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  631. package/dist/esm/calcite-input-date-picker.entry.js +10 -11
  632. package/dist/esm/calcite-input-message.entry.js +4 -4
  633. package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
  634. package/dist/esm/calcite-input.entry.js +10 -11
  635. package/dist/esm/calcite-label.entry.js +5 -5
  636. package/dist/esm/calcite-link.entry.js +5 -5
  637. package/dist/esm/calcite-list_3.entry.js +8 -8
  638. package/dist/esm/calcite-loader.entry.js +4 -4
  639. package/dist/esm/calcite-modal.entry.js +6 -6
  640. package/dist/esm/calcite-notice.entry.js +7 -7
  641. package/dist/esm/calcite-option_3.entry.js +8 -8
  642. package/dist/esm/calcite-pagination.entry.js +4 -5
  643. package/dist/esm/calcite-panel.entry.js +9 -9
  644. package/dist/esm/calcite-pick-list_3.entry.js +11 -11
  645. package/dist/esm/calcite-popover_2.entry.js +7 -7
  646. package/dist/esm/calcite-progress.entry.js +2 -2
  647. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  648. package/dist/esm/calcite-radio-button.entry.js +8 -8
  649. package/dist/esm/calcite-radio-group_2.entry.js +7 -7
  650. package/dist/esm/calcite-rating.entry.js +7 -7
  651. package/dist/esm/calcite-scrim.entry.js +2 -2
  652. package/dist/esm/calcite-shell_3.entry.js +7 -7
  653. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  654. package/dist/esm/calcite-split-button.entry.js +3 -3
  655. package/dist/esm/calcite-stepper_2.entry.js +5 -5
  656. package/dist/esm/calcite-switch.entry.js +7 -7
  657. package/dist/esm/calcite-tab_4.entry.js +6 -6
  658. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  659. package/dist/esm/calcite-tile.entry.js +7 -7
  660. package/dist/esm/calcite-tip_3.entry.js +7 -7
  661. package/dist/esm/calcite-tooltip_2.entry.js +6 -6
  662. package/dist/esm/calcite-tree_2.entry.js +6 -6
  663. package/dist/esm/calcite-value-list_2.entry.js +11 -11
  664. package/dist/esm/calcite.js +3 -3
  665. package/dist/esm/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +3 -3
  666. package/dist/esm/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
  667. package/dist/esm/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
  668. package/dist/esm/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
  669. package/dist/esm/{form-bfbfa460.js → form-56651950.js} +3 -3
  670. package/dist/esm/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
  671. package/dist/esm/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
  672. package/dist/esm/index.js +1 -1
  673. package/dist/esm/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
  674. package/dist/esm/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
  675. package/dist/esm/{label-2538c118.js → label-c6e0eb01.js} +2 -2
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/locale-faa0cde9.js +256 -0
  678. package/dist/esm/{math-1a419785.js → math-a7dc89ab.js} +1 -1
  679. package/dist/esm/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
  680. package/dist/esm/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
  681. package/dist/esm/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
  682. package/dist/esm/{resources-c81d67d8.js → resources-33b38352.js} +3 -3
  683. package/dist/esm/{resources-83cd537a.js → resources-a336bfcb.js} +7 -19
  684. package/dist/esm/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
  685. package/dist/esm/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
  686. package/dist/esm/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
  687. package/dist/esm-es5/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +2 -2
  688. package/dist/esm-es5/Heading-9a8fdd45.js +6 -0
  689. package/dist/esm-es5/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
  690. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  691. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  692. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  693. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  694. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  695. package/dist/esm-es5/calcite-action.entry.js +2 -2
  696. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  697. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  698. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  699. package/dist/esm-es5/calcite-button.entry.js +2 -2
  700. package/dist/esm-es5/calcite-card.entry.js +2 -2
  701. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  702. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  703. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  704. package/dist/esm-es5/calcite-combobox_3.entry.js +3 -3
  705. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  706. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  707. package/dist/esm-es5/calcite-fab.entry.js +3 -3
  708. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  709. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  710. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  711. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  712. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  713. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  714. package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
  715. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  716. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  717. package/dist/esm-es5/calcite-input.entry.js +2 -2
  718. package/dist/esm-es5/calcite-label.entry.js +2 -2
  719. package/dist/esm-es5/calcite-link.entry.js +2 -2
  720. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  721. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  722. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  723. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  724. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  725. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  726. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  727. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  728. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  729. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  730. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  731. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  732. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  733. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  734. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  735. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  736. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  737. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  738. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  739. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  740. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  741. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  742. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  743. package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
  744. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  745. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  746. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  747. package/dist/esm-es5/calcite.js +2 -2
  748. package/dist/esm-es5/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +2 -2
  749. package/dist/esm-es5/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
  750. package/dist/esm-es5/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
  751. package/dist/esm-es5/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
  752. package/dist/esm-es5/{form-bfbfa460.js → form-56651950.js} +2 -2
  753. package/dist/esm-es5/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
  754. package/dist/esm-es5/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
  755. package/dist/esm-es5/index.js +1 -1
  756. package/dist/esm-es5/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
  757. package/dist/esm-es5/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
  758. package/dist/esm-es5/{label-2538c118.js → label-c6e0eb01.js} +2 -2
  759. package/dist/esm-es5/loader.js +2 -2
  760. package/dist/esm-es5/locale-faa0cde9.js +6 -0
  761. package/dist/esm-es5/{math-1a419785.js → math-a7dc89ab.js} +1 -1
  762. package/dist/esm-es5/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
  763. package/dist/esm-es5/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
  764. package/dist/esm-es5/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
  765. package/dist/esm-es5/{resources-c81d67d8.js → resources-33b38352.js} +2 -2
  766. package/dist/esm-es5/{resources-83cd537a.js → resources-a336bfcb.js} +3 -3
  767. package/dist/esm-es5/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
  768. package/dist/esm-es5/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
  769. package/dist/esm-es5/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
  770. package/dist/extras/docs-json.json +2 -2
  771. package/dist/loader/cdn.js +1 -1
  772. package/dist/loader/index.cjs.js +1 -1
  773. package/dist/loader/index.es2017.js +1 -1
  774. package/dist/loader/index.js +1 -1
  775. package/dist/types/utils/locale.d.ts +1 -0
  776. package/dist/types/utils/number.d.ts +16 -0
  777. package/hydrate/index.js +84 -33
  778. package/package.json +4 -4
  779. package/readme.md +2 -2
  780. package/dist/calcite/p-0cea421a.entry.js +0 -6
  781. package/dist/calcite/p-1a41e999.system.js +0 -6
  782. package/dist/calcite/p-257a88b7.js +0 -6
  783. package/dist/calcite/p-27d329a5.entry.js +0 -6
  784. package/dist/calcite/p-388aa230.entry.js +0 -6
  785. package/dist/calcite/p-3fe4004f.entry.js +0 -6
  786. package/dist/calcite/p-4d41b90e.js +0 -6
  787. package/dist/calcite/p-4fd99cd6.system.js +0 -6
  788. package/dist/calcite/p-5feeee59.system.entry.js +0 -6
  789. package/dist/calcite/p-7029e37c.entry.js +0 -6
  790. package/dist/calcite/p-73d62a1e.js +0 -6
  791. package/dist/calcite/p-93799c84.js +0 -6
  792. package/dist/calcite/p-9ae158d9.entry.js +0 -6
  793. package/dist/calcite/p-9c62e05b.system.js +0 -6
  794. package/dist/calcite/p-b91c9315.entry.js +0 -6
  795. package/dist/calcite/p-c44484aa.system.js +0 -6
  796. package/dist/calcite/p-cdd5316c.system.entry.js +0 -6
  797. package/dist/calcite/p-d8e0fbd5.system.js +0 -6
  798. package/dist/calcite/p-e3be094f.entry.js +0 -6
  799. package/dist/calcite/p-e8e732b6.js +0 -6
  800. package/dist/calcite/p-eef03f2e.system.js +0 -6
  801. package/dist/calcite/p-f4ba5fb6.entry.js +0 -6
  802. package/dist/calcite/p-faf568dc.system.entry.js +0 -6
  803. package/dist/calcite/p-ffbed3fb.system.entry.js +0 -6
  804. package/dist/cjs/locale-80b9254a.js +0 -131
  805. package/dist/cjs/number-64bf4115.js +0 -85
  806. package/dist/components/number.js +0 -77
  807. package/dist/esm/locale-551a0e95.js +0 -126
  808. package/dist/esm/number-cb4048f3.js +0 -77
  809. package/dist/esm-es5/Heading-82d5894d.js +0 -6
  810. package/dist/esm-es5/locale-551a0e95.js +0 -6
  811. package/dist/esm-es5/number-cb4048f3.js +0 -6
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  const NAMESPACE = 'calcite';
7
7
 
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  function noopClick() {
7
7
  /** noop */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  var StatusIcons;
7
7
  (function (StatusIcons) {
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import { q as queryElementRoots, c as closestElementCrossShadowBoundary } from './dom-12f18439.js';
6
+ import { q as queryElementRoots, c as closestElementCrossShadowBoundary } from './dom-0f0ab4ab.js';
7
7
 
8
8
  /**
9
9
  * Exported for testing purposes only
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-f9bd5cb4.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-10bd8879.js';
7
7
 
8
8
  /*
9
- Stencil Client Patch Esm v2.16.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  const patchEsm = () => {
12
12
  return promiseResolve();
@@ -0,0 +1,256 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.491
5
+ */
6
+ function isActivationKey(key) {
7
+ return key === "Enter" || key === " ";
8
+ }
9
+ const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
10
+
11
+ // regex for number sanitization
12
+ const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
13
+ const decimalOnlyAtEndOfString = /(?!^\.)\.$/;
14
+ const allHyphensExceptTheStart = /(?!^-)-/g;
15
+ const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
16
+ // adopted from https://stackoverflow.com/a/66939244
17
+ class BigDecimal {
18
+ constructor(input) {
19
+ if (input instanceof BigDecimal) {
20
+ return input;
21
+ }
22
+ const [integers, decimals] = String(input).split(".").concat("");
23
+ this.value =
24
+ BigInt(integers + decimals.padEnd(BigDecimal.DECIMALS, "0").slice(0, BigDecimal.DECIMALS)) +
25
+ BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
26
+ this.isNegative = input.charAt(0) === "-";
27
+ }
28
+ static _divRound(dividend, divisor) {
29
+ return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
30
+ }
31
+ static fromBigInt(bigint) {
32
+ return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
33
+ }
34
+ toString() {
35
+ const s = this.value
36
+ .toString()
37
+ .replace(new RegExp("-", "g"), "")
38
+ .padStart(BigDecimal.DECIMALS + 1, "0");
39
+ const i = s.slice(0, -BigDecimal.DECIMALS);
40
+ const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
41
+ const value = i.concat(d.length ? "." + d : "");
42
+ return (this.isNegative ? "-" : "").concat(value);
43
+ }
44
+ formatToParts(locale, numberingSystem) {
45
+ const formatter = createLocaleNumberFormatter(locale, numberingSystem);
46
+ const s = this.value
47
+ .toString()
48
+ .replace(new RegExp("-", "g"), "")
49
+ .padStart(BigDecimal.DECIMALS + 1, "0");
50
+ const i = s.slice(0, -BigDecimal.DECIMALS);
51
+ const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
52
+ const parts = formatter.formatToParts(BigInt(i));
53
+ this.isNegative && parts.unshift({ type: "minusSign", value: getMinusSign(locale) });
54
+ if (d.length) {
55
+ parts.push({ type: "decimal", value: getDecimalSeparator(locale) });
56
+ d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
57
+ }
58
+ return parts;
59
+ }
60
+ add(num) {
61
+ return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
62
+ }
63
+ subtract(num) {
64
+ return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
65
+ }
66
+ multiply(num) {
67
+ return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
68
+ }
69
+ divide(num) {
70
+ return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
71
+ }
72
+ }
73
+ // Configuration: constants
74
+ BigDecimal.DECIMALS = 100; // number of decimals on all instances
75
+ BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
76
+ BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
77
+ function isValidNumber(numberString) {
78
+ return !(!numberString || isNaN(Number(numberString)));
79
+ }
80
+ function parseNumberString(numberString) {
81
+ if (!numberString || !stringContainsNumbers(numberString)) {
82
+ return "";
83
+ }
84
+ return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
85
+ let containsDecimal = false;
86
+ const result = nonExpoNumString
87
+ .split("")
88
+ .filter((value, i) => {
89
+ if (value.match(/\./g) && !containsDecimal) {
90
+ containsDecimal = true;
91
+ return true;
92
+ }
93
+ if (value.match(/\-/g) && i === 0) {
94
+ return true;
95
+ }
96
+ return numberKeys.includes(value);
97
+ })
98
+ .reduce((string, part) => string + part);
99
+ return isValidNumber(result) ? new BigDecimal(result).toString() : "";
100
+ });
101
+ }
102
+ function sanitizeDecimalString(decimalString) {
103
+ return decimalString.replace(decimalOnlyAtEndOfString, "");
104
+ }
105
+ function sanitizeNegativeString(negativeString) {
106
+ return negativeString.replace(allHyphensExceptTheStart, "");
107
+ }
108
+ function sanitizeLeadingZeroString(zeroString) {
109
+ return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
110
+ }
111
+ function sanitizeNumberString(numberString) {
112
+ return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
113
+ const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
114
+ return isValidNumber(sanitizedValue)
115
+ ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
116
+ ? sanitizedValue
117
+ : new BigDecimal(sanitizedValue).toString()
118
+ : nonExpoNumString;
119
+ });
120
+ }
121
+ function sanitizeExponentialNumberString(numberString, func) {
122
+ if (!numberString) {
123
+ return numberString;
124
+ }
125
+ const firstE = numberString.toLowerCase().indexOf("e") + 1;
126
+ return numberString
127
+ .replace(/[eE]*$/g, "")
128
+ .substring(0, firstE)
129
+ .concat(numberString.slice(firstE).replace(/[eE]/g, ""))
130
+ .split(/[eE]/)
131
+ .map((section, i) => (i === 1 ? func(section.replace(/\./g, "")) : func(section)))
132
+ .join("e")
133
+ .replace(/^e/, "1e");
134
+ }
135
+ function stringContainsNumbers(string) {
136
+ return numberKeys.some((number) => string.includes(number));
137
+ }
138
+
139
+ const locales = [
140
+ "ar",
141
+ "bg",
142
+ "bs",
143
+ "ca",
144
+ "cs",
145
+ "da",
146
+ "de",
147
+ "de-CH",
148
+ "el",
149
+ "en",
150
+ "en-AU",
151
+ "en-CA",
152
+ "en-GB",
153
+ "es",
154
+ "es-MX",
155
+ "et",
156
+ "fi",
157
+ "fr",
158
+ "fr-CH",
159
+ "he",
160
+ "hi",
161
+ "hr",
162
+ "hu",
163
+ "id",
164
+ "it",
165
+ "it-CH",
166
+ "ja",
167
+ "ko",
168
+ "lt",
169
+ "lv",
170
+ "mk",
171
+ "nb",
172
+ "nl",
173
+ "pl",
174
+ "pt",
175
+ "pt-PT",
176
+ "ro",
177
+ "ru",
178
+ "sk",
179
+ "sl",
180
+ "sr",
181
+ "sv",
182
+ "th",
183
+ "tr",
184
+ "uk",
185
+ "vi",
186
+ "zh-CN",
187
+ "zh-HK",
188
+ "zh-TW"
189
+ ];
190
+ const allDecimalsExceptLast = new RegExp(`[.](?=.*[.])`, "g");
191
+ const everythingExceptNumbersDecimalsAndMinusSigns = new RegExp("[^0-9-.]", "g");
192
+ const defaultGroupSeparator = new RegExp(",", "g");
193
+ const defaultNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;
194
+ function createLocaleNumberFormatter(locale, numberingSystem = defaultNumberingSystem) {
195
+ return new Intl.NumberFormat(locale, {
196
+ minimumFractionDigits: 0,
197
+ maximumFractionDigits: 20,
198
+ numberingSystem
199
+ });
200
+ }
201
+ function delocalizeNumberString(numberString, locale) {
202
+ return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
203
+ const delocalizedNumberString = nonExpoNumString
204
+ .replace(getMinusSign(locale), "-")
205
+ .replace(getGroupSeparator(locale), "")
206
+ .replace(getDecimalSeparator(locale), ".")
207
+ .replace(allDecimalsExceptLast, "")
208
+ .replace(everythingExceptNumbersDecimalsAndMinusSigns, "");
209
+ return isValidNumber(delocalizedNumberString) ? delocalizedNumberString : nonExpoNumString;
210
+ });
211
+ }
212
+ function getGroupSeparator(locale) {
213
+ const formatter = createLocaleNumberFormatter(locale);
214
+ const parts = formatter.formatToParts(1234567);
215
+ const value = parts.find((part) => part.type === "group").value;
216
+ // change whitespace group characters that don't render correctly
217
+ return value.trim().length === 0 ? " " : value;
218
+ }
219
+ function getDecimalSeparator(locale) {
220
+ const formatter = createLocaleNumberFormatter(locale);
221
+ const parts = formatter.formatToParts(1.1);
222
+ return parts.find((part) => part.type === "decimal").value;
223
+ }
224
+ function getMinusSign(locale) {
225
+ const formatter = createLocaleNumberFormatter(locale);
226
+ const parts = formatter.formatToParts(-9);
227
+ return parts.find((part) => part.type === "minusSign").value;
228
+ }
229
+ function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
230
+ return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
231
+ if (nonExpoNumString) {
232
+ const sanitizedNumberString = sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, ""));
233
+ if (isValidNumber(sanitizedNumberString)) {
234
+ const parts = new BigDecimal(sanitizedNumberString).formatToParts(locale, numberingSystem);
235
+ const localizedNumberString = parts
236
+ .map(({ type, value }) => {
237
+ switch (type) {
238
+ case "group":
239
+ return displayGroupSeparator ? getGroupSeparator(locale) : "";
240
+ case "decimal":
241
+ return getDecimalSeparator(locale);
242
+ case "minusSign":
243
+ return getMinusSign(locale);
244
+ default:
245
+ return value;
246
+ }
247
+ })
248
+ .reduce((string, part) => string + part);
249
+ return localizedNumberString;
250
+ }
251
+ }
252
+ return nonExpoNumString;
253
+ });
254
+ }
255
+
256
+ export { locales as a, isActivationKey as b, delocalizeNumberString as d, getDecimalSeparator as g, isValidNumber as i, localizeNumberString as l, numberKeys as n, parseNumberString as p, sanitizeNumberString as s };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
7
7
  const decimalPlaces = (value) => {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  /**
7
7
  * This utility ensures observers are created only for browser contexts.
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import { a as getElementDir } from './dom-12f18439.js';
6
+ import { a as getElementDir } from './dom-0f0ab4ab.js';
7
7
 
8
8
  var top = 'top';
9
9
  var bottom = 'bottom';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  const SLOTS = {
7
7
  menuActions: "menu-actions",
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import { a as getAssetPath } from './index-f9bd5cb4.js';
7
- import { a as locales } from './locale-551a0e95.js';
6
+ import { a as getAssetPath } from './index-10bd8879.js';
7
+ import { a as locales } from './locale-faa0cde9.js';
8
8
 
9
9
  /**
10
10
  * Get supported locale code from raw user input
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import { f as focusElement, g as getSlotted, t as toAriaBoolean } from './dom-12f18439.js';
7
- import { g as getRoundRobinIndex } from './array-101fa26b.js';
8
- import { d as debounce } from './debounce-632dc29a.js';
9
- import { h, H as Host } from './index-f9bd5cb4.js';
6
+ import { f as focusElement, g as getSlotted, t as toAriaBoolean } from './dom-0f0ab4ab.js';
7
+ import { g as getRoundRobinIndex } from './array-3b0b24fa.js';
8
+ import { d as debounce } from './debounce-717c15bb.js';
9
+ import { h, H as Host } from './index-10bd8879.js';
10
10
 
11
11
  const CSS$2 = {
12
12
  heading: "heading",
@@ -318,21 +318,9 @@ const SLOTS$1 = {
318
318
  menuActions: "menu-actions"
319
319
  };
320
320
 
321
- var __rest = (undefined && undefined.__rest) || function (s, e) {
322
- var t = {};
323
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
324
- t[p] = s[p];
325
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
326
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
327
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
328
- t[p[i]] = s[p[i]];
329
- }
330
- return t;
331
- };
332
- const List = (_a) => {
333
- var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
321
+ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl }, ...rest }) => {
334
322
  const defaultSlot = h("slot", null);
335
- return (h(Host, Object.assign({ "aria-busy": toAriaBoolean(loading), role: "menu" }, rest),
323
+ return (h(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
336
324
  h("section", null,
337
325
  h("header", { class: { [CSS$1.sticky]: true } },
338
326
  filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  const CSS = {
7
7
  menu: "menu",
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  /**!
7
7
  * Sortable 1.15.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  function rgbToHex(color) {
7
7
  const { r, g, b } = color;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import{f as forceUpdate,h}from"./index-f9bd5cb4.js";import{a as getElementDir}from"./dom-12f18439.js";import{S as SLOTS}from"./resources-018d3a40.js";import{S as SLOTS$1}from"./resources-0db5c853.js";var overflowActionsDebounceInMs=150;var groupBufferHeight=2;var getMaxActionCount=function(e){var t=e.height,o=e.actionHeight,r=e.groupCount;return Math.floor((t-r*groupBufferHeight)/o)};var getOverflowCount=function(e){var t=e.actionCount,o=e.actionHeight,r=e.height,n=e.groupCount;return Math.max(t-getMaxActionCount({height:r,actionHeight:o,groupCount:n}),0)};var queryActions=function(e){return Array.from(e.querySelectorAll("calcite-action")).filter((function(e){return e.closest("calcite-action-menu")?e.slot===SLOTS.trigger:true}))};var overflowActions=function(e){var t=e.actionGroups,o=e.expanded,r=e.overflowCount;var n=r;t.reverse().forEach((function(e){var t=0;var r=queryActions(e).reverse();r.forEach((function(e){if(e.slot===SLOTS$1.menuActions){e.removeAttribute("slot");e.textEnabled=o}}));if(n>0){r.some((function(e){var o=r.filter((function(e){return!e.slot}));if(o.length>1&&r.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",SLOTS$1.menuActions);t++;if(t>1){n--}}return n<1}))}forceUpdate(e)}))};var ICONS={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function getCalcitePosition(e,t){var o;return e||((o=t.closest("calcite-shell-panel"))===null||o===void 0?void 0:o.position)||"start"}function toggleChildActionText(e){var t=e.parent,o=e.expanded;queryActions(t).filter((function(e){return e.slot!==SLOTS$1.menuActions})).forEach((function(e){return e.textEnabled=o}));t.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((function(e){return e.expanded=o}))}var setTooltipReference=function(e){var t=e.tooltip,o=e.referenceElement,r=e.expanded,n=e.ref;if(t){t.referenceElement=!r&&o?o:null}if(n){n(o)}return o};var ExpandToggle=function(e){var t=e.expanded,o=e.intlExpand,r=e.intlCollapse,n=e.toggle,i=e.el,a=e.position,c=e.tooltip,l=e.ref,u=e.scale;var s=getElementDir(i)==="rtl";var f=t?r:o;var v=[ICONS.chevronsLeft,ICONS.chevronsRight];if(s){v.reverse()}var g=getCalcitePosition(a,i)==="end";var p=g?v[1]:v[0];var d=g?v[0]:v[1];var m=h("calcite-action",{icon:t?p:d,onClick:n,ref:function(e){return setTooltipReference({tooltip:c,referenceElement:e,expanded:t,ref:l})},scale:u,text:f,textEnabled:t});return m};export{ExpandToggle as E,overflowActions as a,getOverflowCount as g,overflowActionsDebounceInMs as o,queryActions as q,toggleChildActionText as t};
6
+ import{f as forceUpdate,h}from"./index-10bd8879.js";import{a as getElementDir}from"./dom-0f0ab4ab.js";import{S as SLOTS}from"./resources-dabd88c8.js";import{S as SLOTS$1}from"./resources-1946ae4b.js";var overflowActionsDebounceInMs=150;var groupBufferHeight=2;var getMaxActionCount=function(e){var t=e.height,o=e.actionHeight,r=e.groupCount;return Math.floor((t-r*groupBufferHeight)/o)};var getOverflowCount=function(e){var t=e.actionCount,o=e.actionHeight,r=e.height,n=e.groupCount;return Math.max(t-getMaxActionCount({height:r,actionHeight:o,groupCount:n}),0)};var queryActions=function(e){return Array.from(e.querySelectorAll("calcite-action")).filter((function(e){return e.closest("calcite-action-menu")?e.slot===SLOTS.trigger:true}))};var overflowActions=function(e){var t=e.actionGroups,o=e.expanded,r=e.overflowCount;var n=r;t.reverse().forEach((function(e){var t=0;var r=queryActions(e).reverse();r.forEach((function(e){if(e.slot===SLOTS$1.menuActions){e.removeAttribute("slot");e.textEnabled=o}}));if(n>0){r.some((function(e){var o=r.filter((function(e){return!e.slot}));if(o.length>1&&r.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",SLOTS$1.menuActions);t++;if(t>1){n--}}return n<1}))}forceUpdate(e)}))};var ICONS={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function getCalcitePosition(e,t){var o;return e||((o=t.closest("calcite-shell-panel"))===null||o===void 0?void 0:o.position)||"start"}function toggleChildActionText(e){var t=e.parent,o=e.expanded;queryActions(t).filter((function(e){return e.slot!==SLOTS$1.menuActions})).forEach((function(e){return e.textEnabled=o}));t.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((function(e){return e.expanded=o}))}var setTooltipReference=function(e){var t=e.tooltip,o=e.referenceElement,r=e.expanded,n=e.ref;if(t){t.referenceElement=!r&&o?o:null}if(n){n(o)}return o};var ExpandToggle=function(e){var t=e.expanded,o=e.intlExpand,r=e.intlCollapse,n=e.toggle,i=e.el,a=e.position,c=e.tooltip,l=e.ref,u=e.scale;var s=getElementDir(i)==="rtl";var f=t?r:o;var v=[ICONS.chevronsLeft,ICONS.chevronsRight];if(s){v.reverse()}var g=getCalcitePosition(a,i)==="end";var p=g?v[1]:v[0];var d=g?v[0]:v[1];var m=h("calcite-action",{icon:t?p:d,onClick:n,ref:function(e){return setTooltipReference({tooltip:c,referenceElement:e,expanded:t,ref:l})},scale:u,text:f,textEnabled:t});return m};export{ExpandToggle as E,overflowActions as a,getOverflowCount as g,overflowActionsDebounceInMs as o,queryActions as q,toggleChildActionText as t};
@@ -0,0 +1,6 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var a,e=1,t=arguments.length;e<t;e++){a=arguments[e];for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i))n[i]=a[i]}return n};return __assign.apply(this,arguments)};
2
+ /*!
3
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
+ * v1.0.0-next.491
6
+ */import{h}from"./index-10bd8879.js";function constrainHeadingLevel(n){return Math.min(Math.max(Math.ceil(n),1),6)}var Heading=function(n,a){var e="h".concat(n.level);delete n.level;return h(e,__assign({},n),a)};export{Heading as H,constrainHeadingLevel as c};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  function getRoundRobinIndex(n,e){return(n+e)%e}export{getRoundRobinIndex as g};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
- import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-f9bd5cb4.js";import{d as getElementProp,a as getElementDir,C as CSS_UTILITY,t as toAriaBoolean}from"./dom-12f18439.js";import{g as guid}from"./guid-294c4ade.js";var accordionCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";var Accordion=function(){function t(t){registerInstance(this,t);this.calciteInternalAccordionChange=createEvent(this,"calciteInternalAccordionChange",7);this.appearance="default";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=function(t){return t.sort((function(t,i){return t.position-i.position})).map((function(t){return t.item}))}}t.prototype.componentDidLoad=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){return h("div",{class:{"accordion--transparent":this.appearance==="transparent","accordion--minimal":this.appearance==="minimal",accordion:this.appearance==="default"}},h("slot",null))};t.prototype.calciteInternalAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var a=i.key;var o=t.target;var n=this.itemIndex(o)===0;var c=this.itemIndex(o)===this.items.length-1;switch(a){case"ArrowDown":if(c){this.focusFirstItem()}else{this.focusNextItem(o)}break;case"ArrowUp":if(n){this.focusLastItem()}else{this.focusPrevItem(o)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}t.stopPropagation()};t.prototype.registerCalciteAccordionItem=function(t){var i={item:t.target,parent:t.detail.parent,position:t.detail.position};if(this.el===i.parent){this.items.push(i)}t.stopPropagation()};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem});t.stopPropagation()};t.prototype.focusFirstItem=function(){var t=this.items[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var i=this.itemIndex(t);var e=this.items[i+1]||this.items[0];this.focusElement(e)};t.prototype.focusPrevItem=function(t){var i=this.itemIndex(t);var e=this.items[i-1]||this.items[this.items.length-1];this.focusElement(e)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.focusElement=function(t){var i=t;i.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Accordion.style=accordionCss;var accordionItemCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-color:transparent}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";var AccordionItem=function(){function t(t){var i=this;registerInstance(this,t);this.calciteInternalAccordionItemKeyEvent=createEvent(this,"calciteInternalAccordionItemKeyEvent",7);this.calciteInternalAccordionItemSelect=createEvent(this,"calciteInternalAccordionItemSelect",7);this.calciteInternalAccordionItemClose=createEvent(this,"calciteInternalAccordionItemClose",7);this.calciteInternalAccordionItemRegister=createEvent(this,"calciteInternalAccordionItemRegister",7);this.active=false;this.guid=guid();this.iconPosition="end";this.itemHeaderClickHandler=function(){return i.emitRequestedItem()}}t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=getElementProp(this.el,"selection-mode","multi");this.iconType=getElementProp(this.el,"icon-type","chevron");this.iconPosition=getElementProp(this.el,"icon-position",this.iconPosition)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.render=function(){var t,i;var e=getElementDir(this.el);var a=h("calcite-icon",{class:"accordion-item-icon",icon:this.icon,scale:"s"});var o=this.guid;var n="".concat(o,"-region");var c="".concat(o,"-button");return h(Host,{tabindex:"0"},h("div",{class:(t={},t["icon-position--".concat(this.iconPosition)]=true,t["icon-type--".concat(this.iconType)]=true,t)},h("div",{"aria-controls":n,class:(i={"accordion-item-header":true},i[CSS_UTILITY.rtl]=e==="rtl",i),id:c,onClick:this.itemHeaderClickHandler,role:"button"},this.icon?a:null,h("div",{class:"accordion-item-header-text"},h("span",{class:"accordion-item-title"},this.itemTitle),this.itemSubtitle?h("span",{class:"accordion-item-subtitle"},this.itemSubtitle):null),h("calcite-icon",{class:"accordion-item-expand-icon",icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.active?"minus":"plus",scale:"s"})),h("div",{"aria-expanded":toAriaBoolean(this.active),"aria-labelledby":c,class:"accordion-item-content",id:n,role:"region"},h("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(t.key){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteInternalAccordionItemKeyEvent.emit({parent:this.parent,item:t});t.preventDefault();break}}};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;if(this.el.parentNode!==this.requestedAccordionItem.parentNode){return}this.determineActiveItem();t.stopPropagation()};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.active=!this.active}break;case"single":this.active=this.el===this.requestedAccordionItem?!this.active:false;break;case"single-persist":this.active=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();AccordionItem.style=accordionItemCss;export{Accordion as calcite_accordion,AccordionItem as calcite_accordion_item};
6
+ import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-10bd8879.js";import{d as getElementProp,a as getElementDir,C as CSS_UTILITY,t as toAriaBoolean}from"./dom-0f0ab4ab.js";import{g as guid}from"./guid-6b3f1464.js";var accordionCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";var Accordion=function(){function t(t){registerInstance(this,t);this.calciteInternalAccordionChange=createEvent(this,"calciteInternalAccordionChange",7);this.appearance="default";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=function(t){return t.sort((function(t,i){return t.position-i.position})).map((function(t){return t.item}))}}t.prototype.componentDidLoad=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){return h("div",{class:{"accordion--transparent":this.appearance==="transparent","accordion--minimal":this.appearance==="minimal",accordion:this.appearance==="default"}},h("slot",null))};t.prototype.calciteInternalAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var a=i.key;var o=t.target;var n=this.itemIndex(o)===0;var c=this.itemIndex(o)===this.items.length-1;switch(a){case"ArrowDown":if(c){this.focusFirstItem()}else{this.focusNextItem(o)}break;case"ArrowUp":if(n){this.focusLastItem()}else{this.focusPrevItem(o)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}t.stopPropagation()};t.prototype.registerCalciteAccordionItem=function(t){var i={item:t.target,parent:t.detail.parent,position:t.detail.position};if(this.el===i.parent){this.items.push(i)}t.stopPropagation()};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem});t.stopPropagation()};t.prototype.focusFirstItem=function(){var t=this.items[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var i=this.itemIndex(t);var e=this.items[i+1]||this.items[0];this.focusElement(e)};t.prototype.focusPrevItem=function(t){var i=this.itemIndex(t);var e=this.items[i-1]||this.items[this.items.length-1];this.focusElement(e)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.focusElement=function(t){var i=t;i.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Accordion.style=accordionCss;var accordionItemCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-color:transparent}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";var AccordionItem=function(){function t(t){var i=this;registerInstance(this,t);this.calciteInternalAccordionItemKeyEvent=createEvent(this,"calciteInternalAccordionItemKeyEvent",7);this.calciteInternalAccordionItemSelect=createEvent(this,"calciteInternalAccordionItemSelect",7);this.calciteInternalAccordionItemClose=createEvent(this,"calciteInternalAccordionItemClose",7);this.calciteInternalAccordionItemRegister=createEvent(this,"calciteInternalAccordionItemRegister",7);this.active=false;this.guid=guid();this.iconPosition="end";this.itemHeaderClickHandler=function(){return i.emitRequestedItem()}}t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=getElementProp(this.el,"selection-mode","multi");this.iconType=getElementProp(this.el,"icon-type","chevron");this.iconPosition=getElementProp(this.el,"icon-position",this.iconPosition)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.render=function(){var t,i;var e=getElementDir(this.el);var a=h("calcite-icon",{class:"accordion-item-icon",icon:this.icon,scale:"s"});var o=this.guid;var n="".concat(o,"-region");var c="".concat(o,"-button");return h(Host,{tabindex:"0"},h("div",{class:(t={},t["icon-position--".concat(this.iconPosition)]=true,t["icon-type--".concat(this.iconType)]=true,t)},h("div",{"aria-controls":n,class:(i={"accordion-item-header":true},i[CSS_UTILITY.rtl]=e==="rtl",i),id:c,onClick:this.itemHeaderClickHandler,role:"button"},this.icon?a:null,h("div",{class:"accordion-item-header-text"},h("span",{class:"accordion-item-title"},this.itemTitle),this.itemSubtitle?h("span",{class:"accordion-item-subtitle"},this.itemSubtitle):null),h("calcite-icon",{class:"accordion-item-expand-icon",icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.active?"minus":"plus",scale:"s"})),h("div",{"aria-expanded":toAriaBoolean(this.active),"aria-labelledby":c,class:"accordion-item-content",id:n,role:"region"},h("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(t.key){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteInternalAccordionItemKeyEvent.emit({parent:this.parent,item:t});t.preventDefault();break}}};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;if(this.el.parentNode!==this.requestedAccordionItem.parentNode){return}this.determineActiveItem();t.stopPropagation()};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.active=!this.active}break;case"single":this.active=this.el===this.requestedAccordionItem?!this.active:false;break;case"single-persist":this.active=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();AccordionItem.style=accordionItemCss;export{Accordion as calcite_accordion,AccordionItem as calcite_accordion_item};
@@ -2,5 +2,5 @@ var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t ins
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.489
6
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f9bd5cb4.js";import{t as toggleChildActionText,o as overflowActionsDebounceInMs,q as queryActions,a as overflowActions,E as ExpandToggle,g as getOverflowCount}from"./ExpandToggle-a68202cf.js";import{f as focusElement,g as getSlotted}from"./dom-12f18439.js";import{c as createObserver}from"./observers-79c1e402.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-8c2fd9c9.js";import{d as debounce}from"./debounce-632dc29a.js";import"./resources-018d3a40.js";import"./resources-0db5c853.js";import"./guid-294c4ade.js";var CSS={actionGroupBottom:"action-group--bottom"};var SLOTS={bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"};var TEXT={expand:"Expand",collapse:"Collapse"};var actionBarCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";var ActionBar=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionBarToggle=createEvent(this,"calciteActionBarToggle",7);this.expandDisabled=false;this.expanded=false;this.overflowActionsDisabled=false;this.mutationObserver=createObserver("mutation",(function(){var t=e,n=t.el,o=t.expanded;toggleChildActionText({parent:n,expanded:o});e.conditionallyOverflowActions()}));this.resizeObserver=createObserver("resize",(function(t){return e.resizeHandlerEntries(t)}));this.actionMenuOpenChangeHandler=function(t){if(t.detail){var n=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!n.includes(t)){t.menuOpen=false}}))}};this.resizeHandlerEntries=function(t){t.forEach(e.resizeHandler)};this.resizeHandler=function(t){var n=t.contentRect.height;e.resize(n)};this.resize=debounce((function(t){var n;var o=e,i=o.el,a=o.expanded,r=o.expandDisabled;if(!t){return}var l=queryActions(i);var s=r?l.length:l.length+1;var c=Array.from(i.querySelectorAll("calcite-action-group"));var d=getSlotted(i,SLOTS.bottomActions)||!r?c.length+1:c.length;var p=getOverflowCount({actionCount:s,actionHeight:(n=l[0])===null||n===void 0?void 0:n.clientHeight,height:t,groupCount:d});overflowActions({actionGroups:c,expanded:a,overflowCount:p})}),overflowActionsDebounceInMs);this.conditionallyOverflowActions=function(){if(!e.overflowActionsDisabled){e.overflowActions()}};this.toggleExpand=function(){e.expanded=!e.expanded;e.calciteActionBarToggle.emit()};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(){this.conditionallyOverflowActions()};t.prototype.expandedHandler=function(t){toggleChildActionText({parent:this.el,expanded:t})};t.prototype.overflowDisabledHandler=function(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)};t.prototype.componentDidLoad=function(){this.conditionallyOverflowActions()};t.prototype.connectedCallback=function(){var t,e;var n=this,o=n.el,i=n.expanded;toggleChildActionText({parent:o,expanded:i});(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(o,{childList:true,subtree:true});if(!this.overflowActionsDisabled){(e=this.resizeObserver)===null||e===void 0?void 0:e.observe(o)}this.conditionallyOverflowActions();connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();disconnectConditionalSlotComponent(this)};t.prototype.overflowActions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.resize(this.el.clientHeight);return[2]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:e.sent();return[2];case 2:this.el.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,n=t.expandDisabled,o=t.intlExpand,i=t.intlCollapse,a=t.el,r=t.position,l=t.toggleExpand,s=t.scale;var c=getSlotted(a,SLOTS.expandTooltip);var d=o||TEXT.expand;var p=i||TEXT.collapse;var f=!n?h(ExpandToggle,{el:a,expanded:e,intlCollapse:p,intlExpand:d,position:r,ref:this.setExpandToggleRef,scale:s,toggle:l,tooltip:c}):null;return getSlotted(a,SLOTS.bottomActions)||f?h("calcite-action-group",{class:CSS.actionGroupBottom,scale:s},h("slot",{name:SLOTS.bottomActions}),h("slot",{name:SLOTS.expandTooltip}),f):null};t.prototype.render=function(){return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("slot",null),this.renderBottomActionGroup())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}},enumerable:false,configurable:true});return t}();ActionBar.style=actionBarCss;export{ActionBar as calcite_action_bar};
5
+ * v1.0.0-next.491
6
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-10bd8879.js";import{t as toggleChildActionText,o as overflowActionsDebounceInMs,q as queryActions,a as overflowActions,E as ExpandToggle,g as getOverflowCount}from"./ExpandToggle-fe0cdd0c.js";import{f as focusElement,g as getSlotted}from"./dom-0f0ab4ab.js";import{c as createObserver}from"./observers-f70b670d.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-d4c22346.js";import{d as debounce}from"./debounce-717c15bb.js";import"./resources-dabd88c8.js";import"./resources-1946ae4b.js";import"./guid-6b3f1464.js";var CSS={actionGroupBottom:"action-group--bottom"};var SLOTS={bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"};var TEXT={expand:"Expand",collapse:"Collapse"};var actionBarCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";var ActionBar=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionBarToggle=createEvent(this,"calciteActionBarToggle",7);this.expandDisabled=false;this.expanded=false;this.overflowActionsDisabled=false;this.mutationObserver=createObserver("mutation",(function(){var t=e,n=t.el,o=t.expanded;toggleChildActionText({parent:n,expanded:o});e.conditionallyOverflowActions()}));this.resizeObserver=createObserver("resize",(function(t){return e.resizeHandlerEntries(t)}));this.actionMenuOpenChangeHandler=function(t){if(t.detail){var n=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!n.includes(t)){t.menuOpen=false}}))}};this.resizeHandlerEntries=function(t){t.forEach(e.resizeHandler)};this.resizeHandler=function(t){var n=t.contentRect.height;e.resize(n)};this.resize=debounce((function(t){var n;var o=e,i=o.el,a=o.expanded,r=o.expandDisabled;if(!t){return}var l=queryActions(i);var s=r?l.length:l.length+1;var c=Array.from(i.querySelectorAll("calcite-action-group"));var d=getSlotted(i,SLOTS.bottomActions)||!r?c.length+1:c.length;var p=getOverflowCount({actionCount:s,actionHeight:(n=l[0])===null||n===void 0?void 0:n.clientHeight,height:t,groupCount:d});overflowActions({actionGroups:c,expanded:a,overflowCount:p})}),overflowActionsDebounceInMs);this.conditionallyOverflowActions=function(){if(!e.overflowActionsDisabled){e.overflowActions()}};this.toggleExpand=function(){e.expanded=!e.expanded;e.calciteActionBarToggle.emit()};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(){this.conditionallyOverflowActions()};t.prototype.expandedHandler=function(t){toggleChildActionText({parent:this.el,expanded:t})};t.prototype.overflowDisabledHandler=function(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)};t.prototype.componentDidLoad=function(){this.conditionallyOverflowActions()};t.prototype.connectedCallback=function(){var t,e;var n=this,o=n.el,i=n.expanded;toggleChildActionText({parent:o,expanded:i});(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(o,{childList:true,subtree:true});if(!this.overflowActionsDisabled){(e=this.resizeObserver)===null||e===void 0?void 0:e.observe(o)}this.conditionallyOverflowActions();connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();disconnectConditionalSlotComponent(this)};t.prototype.overflowActions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.resize(this.el.clientHeight);return[2]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:e.sent();return[2];case 2:this.el.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,n=t.expandDisabled,o=t.intlExpand,i=t.intlCollapse,a=t.el,r=t.position,l=t.toggleExpand,s=t.scale;var c=getSlotted(a,SLOTS.expandTooltip);var d=o||TEXT.expand;var p=i||TEXT.collapse;var f=!n?h(ExpandToggle,{el:a,expanded:e,intlCollapse:p,intlExpand:d,position:r,ref:this.setExpandToggleRef,scale:s,toggle:l,tooltip:c}):null;return getSlotted(a,SLOTS.bottomActions)||f?h("calcite-action-group",{class:CSS.actionGroupBottom,scale:s},h("slot",{name:SLOTS.bottomActions}),h("slot",{name:SLOTS.expandTooltip}),f):null};t.prototype.render=function(){return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("slot",null),this.renderBottomActionGroup())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}},enumerable:false,configurable:true});return t}();ActionBar.style=actionBarCss;export{ActionBar as calcite_action_bar};