@esri/calcite-components 1.4.0-next.20 → 1.4.0-next.21

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 (690) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +2 -2
  3. package/dist/calcite/{p-0f25ec0e.entry.js → p-05d2964d.entry.js} +2 -2
  4. package/dist/calcite/{p-8197584b.entry.js → p-06e5c216.entry.js} +2 -2
  5. package/dist/calcite/{p-b5048045.js → p-06ead0c7.js} +2 -2
  6. package/dist/calcite/{p-1875becc.entry.js → p-0a28a371.entry.js} +2 -2
  7. package/dist/calcite/p-0a2cfcb6.js +6 -0
  8. package/dist/calcite/{p-df755a81.entry.js → p-12229dfc.entry.js} +2 -2
  9. package/dist/calcite/{p-c8a51aeb.entry.js → p-13f03b21.entry.js} +2 -2
  10. package/dist/calcite/{p-6c6b3e21.js → p-15c00b78.js} +1 -1
  11. package/dist/calcite/{p-b66c6929.js → p-17c0b1c0.js} +1 -1
  12. package/dist/calcite/{p-2c947057.entry.js → p-22556072.entry.js} +2 -2
  13. package/dist/calcite/{p-1d019601.entry.js → p-250fe856.entry.js} +2 -2
  14. package/dist/calcite/{p-c682cd63.entry.js → p-2bdccc2b.entry.js} +2 -2
  15. package/dist/calcite/{p-641ba588.entry.js → p-2e656492.entry.js} +2 -2
  16. package/dist/calcite/{p-8b5944fd.entry.js → p-30331a93.entry.js} +2 -2
  17. package/dist/calcite/{p-7de3d104.entry.js → p-3ab44e61.entry.js} +2 -2
  18. package/dist/calcite/{p-813cd58b.entry.js → p-3d0c8d49.entry.js} +2 -2
  19. package/dist/calcite/{p-531eeaae.js → p-43d03fd8.js} +2 -2
  20. package/dist/calcite/{p-800dcf95.entry.js → p-45094659.entry.js} +2 -2
  21. package/dist/calcite/{p-20d9af3e.js → p-45bc485a.js} +1 -1
  22. package/dist/calcite/{p-24fad848.js → p-477278e2.js} +2 -2
  23. package/dist/calcite/{p-4d365d2d.js → p-4a73cb57.js} +2 -2
  24. package/dist/calcite/{p-c32bd269.entry.js → p-4e7930e1.entry.js} +2 -2
  25. package/dist/calcite/p-53194061.entry.js +6 -0
  26. package/dist/calcite/{p-fd2f63eb.js → p-54b04c94.js} +1 -1
  27. package/dist/calcite/{p-063a94be.entry.js → p-5d51cfe7.entry.js} +2 -2
  28. package/dist/calcite/{p-1a080dbb.js → p-60575de1.js} +1 -1
  29. package/dist/calcite/{p-f620343a.js → p-6856dcc1.js} +2 -2
  30. package/dist/calcite/{p-db62e1ae.entry.js → p-6880e9a0.entry.js} +2 -2
  31. package/dist/calcite/{p-369a6d61.js → p-69107c91.js} +1 -1
  32. package/dist/calcite/{p-1cb92832.js → p-6c30c9f4.js} +2 -2
  33. package/dist/calcite/{p-4113b967.entry.js → p-6c5d9dca.entry.js} +2 -2
  34. package/dist/calcite/{p-489c7ca8.js → p-6ee17287.js} +2 -2
  35. package/dist/calcite/{p-2254f65c.entry.js → p-724696ea.entry.js} +2 -2
  36. package/dist/calcite/{p-b5e6e3b2.entry.js → p-7af22107.entry.js} +2 -2
  37. package/dist/calcite/{p-a5e2c9c8.entry.js → p-7ee58330.entry.js} +2 -2
  38. package/dist/calcite/{p-2f742940.entry.js → p-83c50276.entry.js} +2 -2
  39. package/dist/calcite/{p-406cd8ed.entry.js → p-852f6dd2.entry.js} +2 -2
  40. package/dist/calcite/{p-3ab00712.entry.js → p-87b3b3f1.entry.js} +2 -2
  41. package/dist/calcite/{p-c6f08767.js → p-87c978cc.js} +2 -2
  42. package/dist/calcite/{p-9126b93b.entry.js → p-894c87ac.entry.js} +2 -2
  43. package/dist/calcite/{p-b735fea7.js → p-89505d85.js} +1 -1
  44. package/dist/calcite/{p-24b1f980.js → p-89c794a1.js} +1 -1
  45. package/dist/calcite/{p-5608cf26.entry.js → p-8c25591b.entry.js} +2 -2
  46. package/dist/calcite/{p-138e0e17.entry.js → p-8e0697db.entry.js} +2 -2
  47. package/dist/calcite/{p-159f2c58.entry.js → p-93062959.entry.js} +2 -2
  48. package/dist/calcite/{p-fbaa035d.entry.js → p-939c1edc.entry.js} +2 -2
  49. package/dist/calcite/{p-a987ace8.entry.js → p-93e9c87a.entry.js} +2 -2
  50. package/dist/calcite/{p-2948ab92.entry.js → p-9410cc32.entry.js} +2 -2
  51. package/dist/calcite/p-94950bc7.js +6 -0
  52. package/dist/calcite/{p-2b60ea9d.entry.js → p-9a88a419.entry.js} +2 -2
  53. package/dist/calcite/{p-18145aa6.entry.js → p-9edcd1a2.entry.js} +2 -2
  54. package/dist/calcite/{p-6b37b4d7.entry.js → p-9f407ff5.entry.js} +2 -2
  55. package/dist/calcite/{p-0ea4db6b.entry.js → p-9f5f6e15.entry.js} +2 -2
  56. package/dist/calcite/{p-188a62a0.entry.js → p-a178680b.entry.js} +2 -2
  57. package/dist/calcite/{p-fed4efb6.entry.js → p-a2b14361.entry.js} +2 -2
  58. package/dist/calcite/{p-c240f128.js → p-a5ff12d9.js} +1 -1
  59. package/dist/calcite/{p-eb031053.js → p-a608994e.js} +2 -2
  60. package/dist/calcite/{p-de4111ec.js → p-a8081c36.js} +1 -1
  61. package/dist/calcite/{p-d15b558c.entry.js → p-a9187cc7.entry.js} +2 -2
  62. package/dist/calcite/{p-8bb8c1d7.entry.js → p-a9966f50.entry.js} +2 -2
  63. package/dist/calcite/{p-3128231a.entry.js → p-abd877b7.entry.js} +2 -2
  64. package/dist/calcite/{p-759246d3.js → p-af417af6.js} +1 -1
  65. package/dist/calcite/{p-8740ae08.js → p-b12388a1.js} +2 -2
  66. package/dist/calcite/{p-12e6ceed.entry.js → p-b35c6697.entry.js} +2 -2
  67. package/dist/calcite/{p-d78cc2d0.entry.js → p-b421c34b.entry.js} +2 -2
  68. package/dist/calcite/{p-8c16227b.js → p-b7b0abbc.js} +1 -1
  69. package/dist/calcite/{p-88a710c8.entry.js → p-b7c533bb.entry.js} +2 -2
  70. package/dist/calcite/{p-00d74351.entry.js → p-bda9d673.entry.js} +2 -2
  71. package/dist/calcite/{p-df5a099f.entry.js → p-bdbec770.entry.js} +2 -2
  72. package/dist/calcite/{p-413dc30b.entry.js → p-c2806bec.entry.js} +2 -2
  73. package/dist/calcite/{p-a891e53e.js → p-c2b67777.js} +1 -1
  74. package/dist/calcite/{p-f1ae83fc.entry.js → p-c4e12767.entry.js} +2 -2
  75. package/dist/calcite/{p-9002f3f6.entry.js → p-c5af61f8.entry.js} +2 -2
  76. package/dist/calcite/{p-2dd9e177.js → p-c7f9bd7e.js} +2 -2
  77. package/dist/calcite/{p-fd1b2861.entry.js → p-c80e6cd5.entry.js} +2 -2
  78. package/dist/calcite/{p-9b8d8144.entry.js → p-caf6a8b0.entry.js} +2 -2
  79. package/dist/calcite/p-cce6cdae.entry.js +6 -0
  80. package/dist/calcite/p-d89f0080.entry.js +6 -0
  81. package/dist/calcite/{p-751d0bc4.js → p-da80d9da.js} +2 -2
  82. package/dist/calcite/{p-7808f962.entry.js → p-db7ce7a4.entry.js} +2 -2
  83. package/dist/calcite/{p-b56dd822.js → p-e0e1b52b.js} +2 -2
  84. package/dist/calcite/{p-83e8f61d.entry.js → p-e3c4c5d8.entry.js} +2 -2
  85. package/dist/calcite/p-e3e45e74.js +6 -0
  86. package/dist/calcite/{p-c713b8be.entry.js → p-e4ffac8e.entry.js} +2 -2
  87. package/dist/calcite/{p-b82b01ae.entry.js → p-e61c91ba.entry.js} +2 -2
  88. package/dist/calcite/{p-0c66b9b3.js → p-e881fccc.js} +2 -2
  89. package/dist/calcite/{p-a13ee23b.entry.js → p-f1321577.entry.js} +2 -2
  90. package/dist/calcite/{p-9af44623.entry.js → p-f14e4438.entry.js} +2 -2
  91. package/dist/calcite/{p-2172bf36.entry.js → p-f24fa227.entry.js} +2 -2
  92. package/dist/calcite/{p-71f4e221.entry.js → p-f32da99d.entry.js} +2 -2
  93. package/dist/calcite/{p-cec434f9.js → p-f650b423.js} +1 -1
  94. package/dist/calcite/{p-80947474.js → p-f68443a2.js} +1 -1
  95. package/dist/calcite/{p-5d66eea3.entry.js → p-f7c47d9f.entry.js} +2 -2
  96. package/dist/calcite/{p-25d9fe86.js → p-f843995e.js} +1 -1
  97. package/dist/calcite/{p-bb94c89b.entry.js → p-f9392607.entry.js} +2 -2
  98. package/dist/calcite/p-fb9dd264.entry.js +6 -0
  99. package/dist/calcite/{p-5bd2cf61.js → p-ff449e3b.js} +1 -1
  100. package/dist/cjs/{ExpandToggle-9da3f706.js → ExpandToggle-9af85b0b.js} +5 -5
  101. package/dist/cjs/{FloatingArrow-5d5959ac.js → FloatingArrow-ad48c166.js} +2 -2
  102. package/dist/cjs/{Heading-f2b60d92.js → Heading-1d030329.js} +2 -2
  103. package/dist/cjs/{app-globals-781b578d.js → app-globals-7b9a5ee8.js} +2 -2
  104. package/dist/cjs/{array-1152446c.js → array-fbe85cc9.js} +1 -1
  105. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  106. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  107. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  108. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  109. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  110. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  111. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  112. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  113. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
  114. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  115. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  116. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  117. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
  118. package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
  119. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -15
  120. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
  121. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
  122. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  123. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  124. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  125. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
  126. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  127. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  128. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  129. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  130. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  131. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
  132. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  133. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  134. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  135. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +14 -14
  136. package/dist/cjs/calcite-input.cjs.entry.js +13 -13
  137. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  138. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  139. package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
  140. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  141. package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
  142. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  143. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  144. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  145. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  146. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  147. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  148. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  149. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  150. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  151. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  152. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  153. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  154. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +15 -19
  155. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  156. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  157. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  158. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  159. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  160. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  161. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
  162. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  163. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  164. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  165. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  166. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  167. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  168. package/dist/cjs/calcite.cjs.js +4 -4
  169. package/dist/cjs/{composed-offset-position.esm-810f12ac.js → composed-offset-position.esm-673a3f3d.js} +1 -1
  170. package/dist/cjs/{conditionalSlot-d27c7f04.js → conditionalSlot-a339a9ed.js} +3 -3
  171. package/dist/cjs/{debounce-fc2a3717.js → debounce-af63da08.js} +1 -1
  172. package/dist/cjs/{dom-1d3a90aa.js → dom-7b094354.js} +3 -3
  173. package/dist/cjs/{filter-8d6beb8f.js → filter-c0840b74.js} +2 -2
  174. package/dist/cjs/{floating-ui-2589b0b1.js → floating-ui-43c57987.js} +4 -4
  175. package/dist/cjs/{focusTrapComponent-a806eb66.js → focusTrapComponent-d22ecd15.js} +2 -2
  176. package/dist/cjs/{form-31444c26.js → form-2388b68c.js} +3 -3
  177. package/dist/cjs/{guid-9e521450.js → guid-f8f47882.js} +1 -1
  178. package/dist/cjs/{index-248bd448.js → index-d8e24abf.js} +1 -1
  179. package/dist/cjs/index.cjs.js +2 -2
  180. package/dist/cjs/{interactive-3c986a37.js → interactive-30b0ad75.js} +1 -1
  181. package/dist/cjs/{key-7ac5795c.js → key-6e3ca482.js} +1 -1
  182. package/dist/cjs/{label-fee40c59.js → label-90c17caf.js} +2 -2
  183. package/dist/cjs/{loadable-ea5bbdb8.js → loadable-f9f97c8f.js} +1 -1
  184. package/dist/cjs/loader.cjs.js +4 -4
  185. package/dist/cjs/{locale-39cec447.js → locale-f6f5cb6e.js} +4 -4
  186. package/dist/cjs/{math-eea6ea8c.js → math-a5676914.js} +1 -1
  187. package/dist/cjs/{observers-26a36db2.js → observers-56b57916.js} +1 -1
  188. package/dist/cjs/{openCloseComponent-1b10fbe7.js → openCloseComponent-ad6f9ce8.js} +2 -2
  189. package/dist/cjs/{resources-b838a9c1.js → resources-308930a2.js} +1 -1
  190. package/dist/cjs/{resources-7d4404b3.js → resources-40ba6718.js} +1 -1
  191. package/dist/cjs/{resources-8230eb38.js → resources-5a8e9beb.js} +5 -5
  192. package/dist/cjs/{resources-bd22c564.js → resources-861c2ae8.js} +1 -1
  193. package/dist/cjs/{resources-f1784974.js → resources-86b99e1c.js} +1 -1
  194. package/dist/cjs/{resources-413f4d33.js → resources-ebb63cb0.js} +1 -1
  195. package/dist/cjs/{sortable.esm-fb2e8bd6.js → sortable.esm-515f03b4.js} +1 -1
  196. package/dist/cjs/{t9n-8c2128ec.js → t9n-dd5385bf.js} +3 -3
  197. package/dist/cjs/{throttle-d0662199.js → throttle-8287eb8d.js} +2 -2
  198. package/dist/cjs/{utils-f55ef1ec.js → utils-87f36947.js} +1 -1
  199. package/dist/cjs/{utils-3c1b6bfb.js → utils-d2238ca5.js} +3 -3
  200. package/dist/collection/components/accordion/accordion.js +1 -1
  201. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  202. package/dist/collection/components/accordion-item/resources.js +1 -1
  203. package/dist/collection/components/action/action.js +1 -1
  204. package/dist/collection/components/action/resources.js +1 -1
  205. package/dist/collection/components/action-bar/action-bar.js +1 -1
  206. package/dist/collection/components/action-bar/resources.js +1 -1
  207. package/dist/collection/components/action-bar/utils.js +1 -1
  208. package/dist/collection/components/action-group/action-group.js +1 -1
  209. package/dist/collection/components/action-group/resources.js +1 -1
  210. package/dist/collection/components/action-menu/action-menu.js +1 -1
  211. package/dist/collection/components/action-menu/resources.js +1 -1
  212. package/dist/collection/components/action-pad/action-pad.js +1 -1
  213. package/dist/collection/components/action-pad/resources.js +1 -1
  214. package/dist/collection/components/alert/alert.js +1 -1
  215. package/dist/collection/components/alert/resources.js +1 -1
  216. package/dist/collection/components/avatar/avatar.js +1 -1
  217. package/dist/collection/components/avatar/utils.js +1 -1
  218. package/dist/collection/components/block/block.js +1 -1
  219. package/dist/collection/components/block/resources.js +1 -1
  220. package/dist/collection/components/block-section/block-section.js +1 -1
  221. package/dist/collection/components/block-section/resources.js +1 -1
  222. package/dist/collection/components/button/button.js +1 -1
  223. package/dist/collection/components/button/resources.js +1 -1
  224. package/dist/collection/components/card/card.js +1 -1
  225. package/dist/collection/components/card/resources.js +1 -1
  226. package/dist/collection/components/checkbox/checkbox.js +1 -1
  227. package/dist/collection/components/chip/chip.js +1 -1
  228. package/dist/collection/components/chip/resources.js +1 -1
  229. package/dist/collection/components/chip-group/chip-group.js +1 -1
  230. package/dist/collection/components/color-picker/color-picker.js +1 -1
  231. package/dist/collection/components/color-picker/resources.js +1 -1
  232. package/dist/collection/components/color-picker/utils.js +1 -1
  233. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  234. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  235. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  236. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  237. package/dist/collection/components/combobox/combobox.js +1 -1
  238. package/dist/collection/components/combobox/resources.js +1 -1
  239. package/dist/collection/components/combobox/utils.js +1 -1
  240. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  241. package/dist/collection/components/combobox-item/resources.js +1 -1
  242. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  243. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  244. package/dist/collection/components/date-picker/date-picker.js +1 -1
  245. package/dist/collection/components/date-picker/resources.js +1 -1
  246. package/dist/collection/components/date-picker/utils.js +1 -1
  247. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  248. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  249. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  250. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  251. package/dist/collection/components/dropdown/dropdown.js +1 -1
  252. package/dist/collection/components/dropdown/resources.js +1 -1
  253. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  254. package/dist/collection/components/dropdown-group/resources.js +1 -1
  255. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  256. package/dist/collection/components/dropdown-item/resources.js +1 -1
  257. package/dist/collection/components/fab/fab.js +1 -1
  258. package/dist/collection/components/fab/resources.js +1 -1
  259. package/dist/collection/components/filter/filter.js +1 -1
  260. package/dist/collection/components/filter/resources.js +1 -1
  261. package/dist/collection/components/flow/flow.js +1 -1
  262. package/dist/collection/components/flow/resources.js +1 -1
  263. package/dist/collection/components/flow-item/flow-item.js +1 -1
  264. package/dist/collection/components/flow-item/resources.js +1 -1
  265. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  266. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  267. package/dist/collection/components/functional/Heading.js +1 -1
  268. package/dist/collection/components/graph/graph.js +1 -1
  269. package/dist/collection/components/graph/util.js +1 -1
  270. package/dist/collection/components/handle/handle.js +1 -1
  271. package/dist/collection/components/handle/resources.js +1 -1
  272. package/dist/collection/components/icon/icon.js +1 -1
  273. package/dist/collection/components/icon/resources.js +1 -1
  274. package/dist/collection/components/icon/utils.js +1 -1
  275. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  276. package/dist/collection/components/inline-editable/resources.js +1 -1
  277. package/dist/collection/components/input/input.js +1 -1
  278. package/dist/collection/components/input/resources.js +1 -1
  279. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  280. package/dist/collection/components/input-date-picker/resources.js +1 -1
  281. package/dist/collection/components/input-message/input-message.js +1 -1
  282. package/dist/collection/components/input-message/interfaces.js +1 -1
  283. package/dist/collection/components/input-number/input-number.js +1 -1
  284. package/dist/collection/components/input-number/resources.js +1 -1
  285. package/dist/collection/components/input-text/input-text.js +1 -1
  286. package/dist/collection/components/input-text/resources.js +1 -1
  287. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  288. package/dist/collection/components/input-time-picker/resources.js +1 -1
  289. package/dist/collection/components/label/label.js +1 -1
  290. package/dist/collection/components/label/resources.js +1 -1
  291. package/dist/collection/components/link/link.js +1 -1
  292. package/dist/collection/components/list/list.js +1 -1
  293. package/dist/collection/components/list/resources.js +1 -1
  294. package/dist/collection/components/list-item/list-item.js +1 -1
  295. package/dist/collection/components/list-item/resources.js +1 -1
  296. package/dist/collection/components/list-item/utils.js +1 -1
  297. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  298. package/dist/collection/components/list-item-group/resources.js +1 -1
  299. package/dist/collection/components/loader/loader.js +1 -1
  300. package/dist/collection/components/menu/menu.js +1 -1
  301. package/dist/collection/components/menu-item/menu-item.js +1 -1
  302. package/dist/collection/components/menu-item/resources.js +1 -1
  303. package/dist/collection/components/modal/modal.js +1 -1
  304. package/dist/collection/components/modal/resources.js +1 -1
  305. package/dist/collection/components/notice/notice.js +1 -1
  306. package/dist/collection/components/notice/resources.js +1 -1
  307. package/dist/collection/components/option/option.js +1 -1
  308. package/dist/collection/components/option-group/option-group.js +1 -1
  309. package/dist/collection/components/pagination/pagination.js +1 -1
  310. package/dist/collection/components/pagination/resources.js +1 -1
  311. package/dist/collection/components/panel/panel.js +1 -1
  312. package/dist/collection/components/panel/resources.js +1 -1
  313. package/dist/collection/components/pick-list/pick-list.js +1 -1
  314. package/dist/collection/components/pick-list/resources.js +1 -1
  315. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  316. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  317. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  318. package/dist/collection/components/pick-list-group/resources.js +1 -1
  319. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  320. package/dist/collection/components/pick-list-item/resources.js +1 -1
  321. package/dist/collection/components/popover/PopoverManager.js +1 -1
  322. package/dist/collection/components/popover/popover.js +1 -1
  323. package/dist/collection/components/popover/resources.js +1 -1
  324. package/dist/collection/components/progress/progress.js +1 -1
  325. package/dist/collection/components/radio-button/radio-button.js +1 -1
  326. package/dist/collection/components/radio-button/resources.js +1 -1
  327. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  328. package/dist/collection/components/rating/function/star.js +1 -1
  329. package/dist/collection/components/rating/rating.js +1 -1
  330. package/dist/collection/components/resources.js +1 -1
  331. package/dist/collection/components/scrim/resources.js +1 -1
  332. package/dist/collection/components/scrim/scrim.js +1 -1
  333. package/dist/collection/components/segmented-control/segmented-control.js +7 -11
  334. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  335. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  336. package/dist/collection/components/select/resources.js +1 -1
  337. package/dist/collection/components/select/select.js +1 -1
  338. package/dist/collection/components/shell/resources.js +1 -1
  339. package/dist/collection/components/shell/shell.js +1 -1
  340. package/dist/collection/components/shell-center-row/resources.js +1 -1
  341. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  342. package/dist/collection/components/shell-panel/resources.js +1 -1
  343. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  344. package/dist/collection/components/slider/resources.js +1 -1
  345. package/dist/collection/components/slider/slider.js +1 -1
  346. package/dist/collection/components/sortable-list/resources.js +1 -1
  347. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  348. package/dist/collection/components/split-button/resources.js +1 -1
  349. package/dist/collection/components/split-button/split-button.js +1 -1
  350. package/dist/collection/components/stepper/stepper.js +1 -1
  351. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  352. package/dist/collection/components/switch/switch.js +1 -1
  353. package/dist/collection/components/tab/tab.js +1 -1
  354. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  355. package/dist/collection/components/tab-title/resources.js +1 -1
  356. package/dist/collection/components/tab-title/tab-title.js +1 -1
  357. package/dist/collection/components/tabs/resources.js +1 -1
  358. package/dist/collection/components/tabs/tabs.js +1 -1
  359. package/dist/collection/components/text-area/resources.js +1 -1
  360. package/dist/collection/components/text-area/text-area.js +1 -1
  361. package/dist/collection/components/tile/resources.js +1 -1
  362. package/dist/collection/components/tile/tile.js +1 -1
  363. package/dist/collection/components/tile-select/resources.js +1 -1
  364. package/dist/collection/components/tile-select/tile-select.js +1 -1
  365. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  366. package/dist/collection/components/time-picker/resources.js +1 -1
  367. package/dist/collection/components/time-picker/time-picker.js +1 -1
  368. package/dist/collection/components/tip/resources.js +1 -1
  369. package/dist/collection/components/tip/tip.js +1 -1
  370. package/dist/collection/components/tip-group/tip-group.js +1 -1
  371. package/dist/collection/components/tip-manager/resources.js +1 -1
  372. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  373. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  374. package/dist/collection/components/tooltip/resources.js +1 -1
  375. package/dist/collection/components/tooltip/tooltip.js +1 -1
  376. package/dist/collection/components/tooltip/utils.js +1 -1
  377. package/dist/collection/components/tree/tree.js +1 -1
  378. package/dist/collection/components/tree/utils.js +1 -1
  379. package/dist/collection/components/tree-item/resources.js +1 -1
  380. package/dist/collection/components/tree-item/tree-item.js +1 -1
  381. package/dist/collection/components/value-list/resources.js +1 -1
  382. package/dist/collection/components/value-list/utils.js +1 -1
  383. package/dist/collection/components/value-list/value-list.js +1 -1
  384. package/dist/collection/components/value-list-item/resources.js +1 -1
  385. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  386. package/dist/collection/index.js +1 -1
  387. package/dist/collection/utils/array.js +1 -1
  388. package/dist/collection/utils/conditionalSlot.js +1 -1
  389. package/dist/collection/utils/config.js +1 -1
  390. package/dist/collection/utils/date.js +1 -1
  391. package/dist/collection/utils/dom.js +1 -1
  392. package/dist/collection/utils/filter.js +1 -1
  393. package/dist/collection/utils/floating-ui.js +1 -1
  394. package/dist/collection/utils/focusTrapComponent.js +1 -1
  395. package/dist/collection/utils/form.js +1 -1
  396. package/dist/collection/utils/globalAttributes.js +1 -1
  397. package/dist/collection/utils/globalScript.js +1 -1
  398. package/dist/collection/utils/guid.js +1 -1
  399. package/dist/collection/utils/interactive.js +1 -1
  400. package/dist/collection/utils/key.js +1 -1
  401. package/dist/collection/utils/label.js +1 -1
  402. package/dist/collection/utils/loadable.js +1 -1
  403. package/dist/collection/utils/locale.js +1 -1
  404. package/dist/collection/utils/math.js +1 -1
  405. package/dist/collection/utils/mode.js +1 -1
  406. package/dist/collection/utils/number.js +1 -1
  407. package/dist/collection/utils/observers.js +1 -1
  408. package/dist/collection/utils/openCloseComponent.js +1 -1
  409. package/dist/collection/utils/resources.js +1 -1
  410. package/dist/collection/utils/t9n.js +1 -1
  411. package/dist/collection/utils/time.js +1 -1
  412. package/dist/components/ExpandToggle.js +1 -1
  413. package/dist/components/FloatingArrow.js +1 -1
  414. package/dist/components/Heading.js +1 -1
  415. package/dist/components/action-group.js +1 -1
  416. package/dist/components/action-menu.js +1 -1
  417. package/dist/components/action.js +1 -1
  418. package/dist/components/array.js +1 -1
  419. package/dist/components/button.js +1 -1
  420. package/dist/components/calcite-accordion-item.js +1 -1
  421. package/dist/components/calcite-accordion.js +1 -1
  422. package/dist/components/calcite-action-bar.js +1 -1
  423. package/dist/components/calcite-action-group.js +1 -1
  424. package/dist/components/calcite-action-menu.js +1 -1
  425. package/dist/components/calcite-action-pad.js +1 -1
  426. package/dist/components/calcite-action.js +1 -1
  427. package/dist/components/calcite-alert.js +1 -1
  428. package/dist/components/calcite-avatar.js +1 -1
  429. package/dist/components/calcite-block-section.js +1 -1
  430. package/dist/components/calcite-block.js +1 -1
  431. package/dist/components/calcite-button.js +1 -1
  432. package/dist/components/calcite-card.js +1 -1
  433. package/dist/components/calcite-checkbox.js +1 -1
  434. package/dist/components/calcite-chip-group.js +1 -1
  435. package/dist/components/calcite-chip.js +1 -1
  436. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  437. package/dist/components/calcite-color-picker-swatch.js +1 -1
  438. package/dist/components/calcite-color-picker.js +1 -1
  439. package/dist/components/calcite-combobox-item-group.js +1 -1
  440. package/dist/components/calcite-combobox-item.js +1 -1
  441. package/dist/components/calcite-combobox.js +1 -1
  442. package/dist/components/calcite-date-picker-day.js +1 -1
  443. package/dist/components/calcite-date-picker-month-header.js +1 -1
  444. package/dist/components/calcite-date-picker-month.js +1 -1
  445. package/dist/components/calcite-date-picker.js +1 -1
  446. package/dist/components/calcite-dropdown-group.js +1 -1
  447. package/dist/components/calcite-dropdown-item.js +1 -1
  448. package/dist/components/calcite-dropdown.js +1 -1
  449. package/dist/components/calcite-fab.js +1 -1
  450. package/dist/components/calcite-filter.js +1 -1
  451. package/dist/components/calcite-flow-item.js +1 -1
  452. package/dist/components/calcite-flow.js +1 -1
  453. package/dist/components/calcite-graph.js +1 -1
  454. package/dist/components/calcite-handle.js +1 -1
  455. package/dist/components/calcite-icon.js +1 -1
  456. package/dist/components/calcite-inline-editable.js +1 -1
  457. package/dist/components/calcite-input-date-picker.js +1 -1
  458. package/dist/components/calcite-input-message.js +1 -1
  459. package/dist/components/calcite-input-number.js +1 -1
  460. package/dist/components/calcite-input-text.js +1 -1
  461. package/dist/components/calcite-input-time-picker.js +1 -1
  462. package/dist/components/calcite-input.js +1 -1
  463. package/dist/components/calcite-label.js +1 -1
  464. package/dist/components/calcite-link.js +1 -1
  465. package/dist/components/calcite-list-item-group.js +1 -1
  466. package/dist/components/calcite-list-item.js +1 -1
  467. package/dist/components/calcite-list.js +1 -1
  468. package/dist/components/calcite-loader.js +1 -1
  469. package/dist/components/calcite-menu-item.js +1 -1
  470. package/dist/components/calcite-menu.js +1 -1
  471. package/dist/components/calcite-modal.js +1 -1
  472. package/dist/components/calcite-notice.js +1 -1
  473. package/dist/components/calcite-option-group.js +1 -1
  474. package/dist/components/calcite-option.js +1 -1
  475. package/dist/components/calcite-pagination.js +1 -1
  476. package/dist/components/calcite-panel.js +1 -1
  477. package/dist/components/calcite-pick-list-group.js +1 -1
  478. package/dist/components/calcite-pick-list-item.js +1 -1
  479. package/dist/components/calcite-pick-list.js +1 -1
  480. package/dist/components/calcite-popover.js +1 -1
  481. package/dist/components/calcite-progress.js +1 -1
  482. package/dist/components/calcite-radio-button-group.js +1 -1
  483. package/dist/components/calcite-radio-button.js +1 -1
  484. package/dist/components/calcite-rating.js +1 -1
  485. package/dist/components/calcite-scrim.js +1 -1
  486. package/dist/components/calcite-segmented-control-item.js +1 -1
  487. package/dist/components/calcite-segmented-control.js +7 -11
  488. package/dist/components/calcite-select.js +1 -1
  489. package/dist/components/calcite-shell-center-row.js +1 -1
  490. package/dist/components/calcite-shell-panel.js +1 -1
  491. package/dist/components/calcite-shell.js +1 -1
  492. package/dist/components/calcite-slider.js +1 -1
  493. package/dist/components/calcite-sortable-list.js +1 -1
  494. package/dist/components/calcite-split-button.js +1 -1
  495. package/dist/components/calcite-stepper-item.js +1 -1
  496. package/dist/components/calcite-stepper.js +1 -1
  497. package/dist/components/calcite-switch.js +1 -1
  498. package/dist/components/calcite-tab-nav.js +1 -1
  499. package/dist/components/calcite-tab-title.js +1 -1
  500. package/dist/components/calcite-tab.js +1 -1
  501. package/dist/components/calcite-tabs.js +1 -1
  502. package/dist/components/calcite-text-area.js +1 -1
  503. package/dist/components/calcite-tile-select-group.js +1 -1
  504. package/dist/components/calcite-tile-select.js +1 -1
  505. package/dist/components/calcite-tile.js +1 -1
  506. package/dist/components/calcite-time-picker.js +1 -1
  507. package/dist/components/calcite-tip-group.js +1 -1
  508. package/dist/components/calcite-tip-manager.js +1 -1
  509. package/dist/components/calcite-tip.js +1 -1
  510. package/dist/components/calcite-tooltip.js +1 -1
  511. package/dist/components/calcite-tree-item.js +1 -1
  512. package/dist/components/calcite-tree.js +1 -1
  513. package/dist/components/calcite-value-list-item.js +1 -1
  514. package/dist/components/calcite-value-list.js +1 -1
  515. package/dist/components/checkbox.js +1 -1
  516. package/dist/components/chip.js +1 -1
  517. package/dist/components/color-picker-hex-input.js +1 -1
  518. package/dist/components/color-picker-swatch.js +1 -1
  519. package/dist/components/composed-offset-position.esm.js +1 -1
  520. package/dist/components/conditionalSlot.js +1 -1
  521. package/dist/components/date-picker-day.js +1 -1
  522. package/dist/components/date-picker-month-header.js +1 -1
  523. package/dist/components/date-picker-month.js +1 -1
  524. package/dist/components/date-picker.js +1 -1
  525. package/dist/components/date.js +1 -1
  526. package/dist/components/debounce.js +1 -1
  527. package/dist/components/dom.js +1 -1
  528. package/dist/components/dropdown.js +1 -1
  529. package/dist/components/filter.js +1 -1
  530. package/dist/components/filter2.js +1 -1
  531. package/dist/components/floating-ui.js +1 -1
  532. package/dist/components/focusTrapComponent.js +1 -1
  533. package/dist/components/form.js +1 -1
  534. package/dist/components/graph.js +1 -1
  535. package/dist/components/guid.js +1 -1
  536. package/dist/components/handle.js +1 -1
  537. package/dist/components/icon.js +1 -1
  538. package/dist/components/index.js +1 -1
  539. package/dist/components/index2.js +1 -1
  540. package/dist/components/input-number.js +1 -1
  541. package/dist/components/input.js +1 -1
  542. package/dist/components/interactive.js +1 -1
  543. package/dist/components/key.js +1 -1
  544. package/dist/components/label.js +1 -1
  545. package/dist/components/label2.js +1 -1
  546. package/dist/components/link.js +1 -1
  547. package/dist/components/loadable.js +1 -1
  548. package/dist/components/loader.js +1 -1
  549. package/dist/components/locale.js +1 -1
  550. package/dist/components/math.js +1 -1
  551. package/dist/components/menu.js +1 -1
  552. package/dist/components/observers.js +1 -1
  553. package/dist/components/openCloseComponent.js +1 -1
  554. package/dist/components/panel.js +1 -1
  555. package/dist/components/pick-list-item.js +1 -1
  556. package/dist/components/popover.js +1 -1
  557. package/dist/components/progress.js +1 -1
  558. package/dist/components/resources.js +1 -1
  559. package/dist/components/resources2.js +1 -1
  560. package/dist/components/resources3.js +1 -1
  561. package/dist/components/scrim.js +1 -1
  562. package/dist/components/shared-list-render.js +1 -1
  563. package/dist/components/sortable.esm.js +1 -1
  564. package/dist/components/switch.js +1 -1
  565. package/dist/components/t9n.js +1 -1
  566. package/dist/components/tab-nav.js +1 -1
  567. package/dist/components/tab-title.js +1 -1
  568. package/dist/components/tab.js +1 -1
  569. package/dist/components/tabs.js +1 -1
  570. package/dist/components/throttle.js +1 -1
  571. package/dist/components/tile.js +1 -1
  572. package/dist/components/time-picker.js +1 -1
  573. package/dist/components/tooltip.js +1 -1
  574. package/dist/components/utils.js +1 -1
  575. package/dist/components/utils2.js +1 -1
  576. package/dist/components/utils3.js +1 -1
  577. package/dist/esm/{ExpandToggle-a46eb936.js → ExpandToggle-1d09870a.js} +5 -5
  578. package/dist/esm/{FloatingArrow-7c8928ed.js → FloatingArrow-d832089d.js} +2 -2
  579. package/dist/esm/{Heading-15926526.js → Heading-43af885b.js} +2 -2
  580. package/dist/esm/{app-globals-fd116ec8.js → app-globals-4a38c82d.js} +2 -2
  581. package/dist/esm/{array-89bb05ce.js → array-afc2d001.js} +1 -1
  582. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  583. package/dist/esm/calcite-action-bar.entry.js +15 -15
  584. package/dist/esm/calcite-action-group.entry.js +13 -13
  585. package/dist/esm/calcite-action-menu.entry.js +9 -9
  586. package/dist/esm/calcite-action-pad.entry.js +14 -14
  587. package/dist/esm/calcite-action.entry.js +11 -11
  588. package/dist/esm/calcite-alert.entry.js +12 -12
  589. package/dist/esm/calcite-avatar.entry.js +6 -6
  590. package/dist/esm/calcite-block_2.entry.js +12 -12
  591. package/dist/esm/calcite-button.entry.js +13 -13
  592. package/dist/esm/calcite-card.entry.js +10 -10
  593. package/dist/esm/calcite-checkbox.entry.js +10 -10
  594. package/dist/esm/calcite-chip-group.entry.js +8 -8
  595. package/dist/esm/calcite-chip.entry.js +12 -12
  596. package/dist/esm/calcite-color-picker_3.entry.js +15 -15
  597. package/dist/esm/calcite-combobox_3.entry.js +18 -18
  598. package/dist/esm/calcite-date-picker_4.entry.js +13 -13
  599. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  600. package/dist/esm/calcite-fab.entry.js +7 -7
  601. package/dist/esm/calcite-filter.entry.js +13 -13
  602. package/dist/esm/calcite-flow-item.entry.js +12 -12
  603. package/dist/esm/calcite-flow.entry.js +3 -3
  604. package/dist/esm/calcite-graph_2.entry.js +13 -13
  605. package/dist/esm/calcite-handle.entry.js +10 -10
  606. package/dist/esm/calcite-icon.entry.js +6 -6
  607. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  608. package/dist/esm/calcite-input-date-picker.entry.js +18 -18
  609. package/dist/esm/calcite-input-message.entry.js +5 -5
  610. package/dist/esm/calcite-input-number.entry.js +13 -13
  611. package/dist/esm/calcite-input-text.entry.js +13 -13
  612. package/dist/esm/calcite-input-time-picker_2.entry.js +14 -14
  613. package/dist/esm/calcite-input.entry.js +13 -13
  614. package/dist/esm/calcite-label.entry.js +6 -6
  615. package/dist/esm/calcite-link.entry.js +7 -7
  616. package/dist/esm/calcite-list_3.entry.js +12 -12
  617. package/dist/esm/calcite-loader.entry.js +3 -3
  618. package/dist/esm/calcite-menu_2.entry.js +10 -10
  619. package/dist/esm/calcite-modal.entry.js +13 -13
  620. package/dist/esm/calcite-notice.entry.js +12 -12
  621. package/dist/esm/calcite-option_3.entry.js +10 -10
  622. package/dist/esm/calcite-pagination.entry.js +10 -10
  623. package/dist/esm/calcite-panel.entry.js +14 -14
  624. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  625. package/dist/esm/calcite-popover.entry.js +16 -16
  626. package/dist/esm/calcite-progress.entry.js +2 -2
  627. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  628. package/dist/esm/calcite-radio-button.entry.js +10 -10
  629. package/dist/esm/calcite-rating.entry.js +13 -13
  630. package/dist/esm/calcite-scrim.entry.js +9 -9
  631. package/dist/esm/calcite-segmented-control_2.entry.js +15 -19
  632. package/dist/esm/calcite-shell_3.entry.js +11 -11
  633. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  634. package/dist/esm/calcite-split-button.entry.js +4 -4
  635. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  636. package/dist/esm/calcite-switch.entry.js +10 -10
  637. package/dist/esm/calcite-tab_4.entry.js +7 -7
  638. package/dist/esm/calcite-text-area.entry.js +15 -15
  639. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  640. package/dist/esm/calcite-tile.entry.js +8 -8
  641. package/dist/esm/calcite-tip_3.entry.js +11 -11
  642. package/dist/esm/calcite-tooltip.entry.js +9 -9
  643. package/dist/esm/calcite-tree_2.entry.js +9 -9
  644. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  645. package/dist/esm/calcite.js +5 -5
  646. package/dist/esm/{composed-offset-position.esm-af8d8742.js → composed-offset-position.esm-ee319961.js} +1 -1
  647. package/dist/esm/{conditionalSlot-9a4e13ad.js → conditionalSlot-d15fc540.js} +3 -3
  648. package/dist/esm/{debounce-f9c2892c.js → debounce-9bc2036e.js} +1 -1
  649. package/dist/esm/{dom-cd37f375.js → dom-8d684de8.js} +3 -3
  650. package/dist/esm/{filter-2d6bd85c.js → filter-f88de3dd.js} +2 -2
  651. package/dist/esm/{floating-ui-acd0d9bb.js → floating-ui-a08f9e1c.js} +4 -4
  652. package/dist/esm/{focusTrapComponent-02a08a42.js → focusTrapComponent-f6dfdfb4.js} +2 -2
  653. package/dist/esm/{form-3583adc1.js → form-e3b986d8.js} +3 -3
  654. package/dist/esm/{guid-e678466c.js → guid-57804517.js} +1 -1
  655. package/dist/esm/{index-c256b4bc.js → index-5f30e00e.js} +1 -1
  656. package/dist/esm/index.js +2 -2
  657. package/dist/esm/{interactive-1b666a39.js → interactive-b976c6b3.js} +1 -1
  658. package/dist/esm/{key-9d064620.js → key-20c233e2.js} +1 -1
  659. package/dist/esm/{label-c88d2bdc.js → label-1e9c637f.js} +2 -2
  660. package/dist/esm/{loadable-8efbf5e8.js → loadable-651cf40c.js} +1 -1
  661. package/dist/esm/loader.js +5 -5
  662. package/dist/esm/{locale-595fbc8d.js → locale-eb3922f6.js} +4 -4
  663. package/dist/esm/{math-96229b44.js → math-a11aef07.js} +1 -1
  664. package/dist/esm/{observers-2a07f537.js → observers-715d472d.js} +1 -1
  665. package/dist/esm/{openCloseComponent-a158127f.js → openCloseComponent-383397bd.js} +2 -2
  666. package/dist/esm/{resources-f82c3332.js → resources-36904b1b.js} +1 -1
  667. package/dist/esm/{resources-6c62362b.js → resources-5648a640.js} +1 -1
  668. package/dist/esm/{resources-2f9d78a2.js → resources-96a1345d.js} +1 -1
  669. package/dist/esm/{resources-5957e5c5.js → resources-9cbb6240.js} +1 -1
  670. package/dist/esm/{resources-040675cd.js → resources-9fdac6af.js} +5 -5
  671. package/dist/esm/{resources-7390676a.js → resources-c7dfe6d9.js} +1 -1
  672. package/dist/esm/{sortable.esm-5fb9cdb4.js → sortable.esm-9210c8e4.js} +1 -1
  673. package/dist/esm/{t9n-70f45ebc.js → t9n-802655a2.js} +3 -3
  674. package/dist/esm/{throttle-28db8a39.js → throttle-252c53c1.js} +2 -2
  675. package/dist/esm/{utils-1838cb77.js → utils-05a58580.js} +3 -3
  676. package/dist/esm/{utils-3c27ebcf.js → utils-fc71a786.js} +1 -1
  677. package/dist/extras/docs-json.json +1 -1
  678. package/dist/loader/cdn.js +1 -1
  679. package/dist/loader/index.cjs.js +1 -1
  680. package/dist/loader/index.es2017.js +1 -1
  681. package/dist/loader/index.js +1 -1
  682. package/hydrate/index.js +7 -11
  683. package/package.json +1 -1
  684. package/dist/calcite/p-0be1a3b2.js +0 -6
  685. package/dist/calcite/p-0eb552a1.entry.js +0 -6
  686. package/dist/calcite/p-410b6876.js +0 -6
  687. package/dist/calcite/p-48e75521.entry.js +0 -6
  688. package/dist/calcite/p-4e68216c.entry.js +0 -6
  689. package/dist/calcite/p-7ad05749.js +0 -6
  690. package/dist/calcite/p-f6d7fe0c.entry.js +0 -6
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as t,c as i,h as a,a as e}from"./p-20d9af3e.js";import{j as n,t as s}from"./p-2dd9e177.js";import{u as c}from"./p-8c16227b.js";import{c as o}from"./p-80947474.js";import{a as r,s as l,c as h}from"./p-b735fea7.js";import"./p-a891e53e.js";import"./p-5bd2cf61.js";const m=class{constructor(a){t(this,a),this.calciteChipGroupSelect=i(this,"calciteChipGroupSelect",6),this.mutationObserver=o("mutation",(()=>this.updateItems())),this.items=[],this.updateItems=t=>{this.items=(t?t.target:this.slotRefEl).assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-chip"))),this.items.forEach((t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(t,i)=>{i&&this.items.forEach((t=>{const a=i===t;switch(this.selectionMode){case"multiple":a&&(t.selected=!t.selected);break;case"single":t.selected=!!a&&!t.selected;break;case"single-persist":t.selected=!!a}})),this.selectedItems=this.items.filter((t=>t.selected)),t&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}componentDidRender(){c(this)}componentDidLoad(){r(this)}disconnectedCallback(){this.mutationObserver?.disconnect()}async componentWillLoad(){l(this)}calciteInternalChipKeyEventListener(t){if(t.composedPath().includes(this.el)){const i=this.items.filter((t=>!t.disabled));switch(t.detail.key){case"ArrowRight":n(i,t.detail.target,"next");break;case"ArrowLeft":n(i,t.detail.target,"previous");break;case"Home":n(i,t.detail.target,"first");break;case"End":n(i,t.detail.target,"last")}}}calciteChipCloseListener(t){const i=t.target;this.items.includes(i)&&(this.items.indexOf(i)>0?n(this.items,i,"previous"):0===this.items.indexOf(i)?n(this.items,i,"next"):n(this.items,i,"first")),this.items=this.items.filter((t=>t!==i))}calciteChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!0,t.target)}async setFocus(){await h(this),this.disabled||(this.selectedItems[0]||this.items[0])?.setFocus()}render(){const t="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return a("div",{"aria-disabled":s(this.disabled),"aria-label":this.label,class:"container",role:t},a("slot",{onSlotchange:this.updateItems,ref:t=>this.slotRefEl=t}))}get el(){return e(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};m.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{m as calcite_chip_group}
6
+ import{r as t,c as i,h as a,a as e}from"./p-45bc485a.js";import{j as n,t as s}from"./p-c7f9bd7e.js";import{u as c}from"./p-b7b0abbc.js";import{c as o}from"./p-f68443a2.js";import{a as r,s as l,c as h}from"./p-89505d85.js";import"./p-c2b67777.js";import"./p-ff449e3b.js";const m=class{constructor(a){t(this,a),this.calciteChipGroupSelect=i(this,"calciteChipGroupSelect",6),this.mutationObserver=o("mutation",(()=>this.updateItems())),this.items=[],this.updateItems=t=>{this.items=(t?t.target:this.slotRefEl).assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-chip"))),this.items.forEach((t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(t,i)=>{i&&this.items.forEach((t=>{const a=i===t;switch(this.selectionMode){case"multiple":a&&(t.selected=!t.selected);break;case"single":t.selected=!!a&&!t.selected;break;case"single-persist":t.selected=!!a}})),this.selectedItems=this.items.filter((t=>t.selected)),t&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}componentDidRender(){c(this)}componentDidLoad(){r(this)}disconnectedCallback(){this.mutationObserver?.disconnect()}async componentWillLoad(){l(this)}calciteInternalChipKeyEventListener(t){if(t.composedPath().includes(this.el)){const i=this.items.filter((t=>!t.disabled));switch(t.detail.key){case"ArrowRight":n(i,t.detail.target,"next");break;case"ArrowLeft":n(i,t.detail.target,"previous");break;case"Home":n(i,t.detail.target,"first");break;case"End":n(i,t.detail.target,"last")}}}calciteChipCloseListener(t){const i=t.target;this.items.includes(i)&&(this.items.indexOf(i)>0?n(this.items,i,"previous"):0===this.items.indexOf(i)?n(this.items,i,"next"):n(this.items,i,"first")),this.items=this.items.filter((t=>t!==i))}calciteChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!0,t.target)}async setFocus(){await h(this),this.disabled||(this.selectedItems[0]||this.items[0])?.setFocus()}render(){const t="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return a("div",{"aria-disabled":s(this.disabled),"aria-label":this.label,class:"container",role:t},a("slot",{onSlotchange:this.updateItems,ref:t=>this.slotRefEl=t}))}get el(){return e(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};m.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{m as calcite_chip_group}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as i,c as t,h as a,a as n,H as e}from"./p-20d9af3e.js";import{c,d as o}from"./p-0be1a3b2.js";import{v as r,g as s,b as l,t as d}from"./p-2dd9e177.js";import{C as m}from"./p-5bd2cf61.js";import"./p-80947474.js";import"./p-a891e53e.js";const h=class{constructor(a){i(this,a),this.calciteInternalAccordionChange=t(this,"calciteInternalAccordionChange",6),this.items=[],this.sorted=!1,this.sortItems=i=>i.sort(((i,t)=>i.position-t.position)).map((i=>i.item)),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}componentDidLoad(){this.sorted||(this.items=this.sortItems(this.items),this.sorted=!0)}render(){const i="transparent"===this.appearance;return a("div",{class:{"accordion--transparent":i,accordion:!i}},a("slot",null))}registerCalciteAccordionItem(i){const t={item:i.target,parent:i.detail.parent,position:i.detail.position};this.el===t.parent&&this.items.push(t),i.stopPropagation()}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem}),i.stopPropagation()}get el(){return n(this)}};h.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}: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-inline-size: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{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";const p="actions-start",u="actions-end",f=class{constructor(a){i(this,a),this.calciteInternalAccordionItemSelect=t(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=t(this,"calciteInternalAccordionItemClose",6),this.calciteInternalAccordionItemRegister=t(this,"calciteInternalAccordionItemRegister",6),this.iconPosition="end",this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.scale="m",this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0}connectedCallback(){this.parent=this.el.parentElement,this.iconType=r(this.el,"icon-type","chevron"),this.iconPosition=r(this.el,"icon-position",this.iconPosition),this.scale=r(this.el,"scale",this.scale),c(this)}componentDidLoad(){this.itemPosition=this.getItemPosition(),this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})}disconnectedCallback(){o(this)}renderActionsStart(){const{el:i}=this;return s(i,p)?a("div",{class:"actions-start"},a("slot",{name:p})):null}renderActionsEnd(){const{el:i}=this;return s(i,u)?a("div",{class:"actions-end"},a("slot",{name:u})):null}render(){const{iconFlipRtl:i}=this,t=l(this.el),n=this.iconStart?a("calcite-icon",{class:"icon--start",flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:"l"===this.scale?"m":"s"}):null,c=this.iconEnd?a("calcite-icon",{class:"icon--end",flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:"l"===this.scale?"m":"s"}):null,{description:o}=this;return a(e,null,a("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},a("div",{class:{header:!0,[m.rtl]:"rtl"===t}},this.renderActionsStart(),a("div",{"aria-expanded":d(this.expanded),class:"header-content",onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},a("div",{class:"header-container"},n,a("div",{class:"header-text"},a("span",{class:"heading"},this.heading),o?a("span",{class:"description"},o):null),c),a("calcite-icon",{class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:"l"===this.scale?"m":"s"})),this.renderActionsEnd()),a("div",{class:"content"},a("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.el.parentNode===this.requestedAccordionItem.parentNode&&(this.determineActiveItem(),i.stopPropagation())}determineActiveItem(){switch(this.selectionMode=r(this.el,"selection-mode","multiple"),this.selectionMode){case"multiple":this.el===this.requestedAccordionItem&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===this.requestedAccordionItem&&!this.expanded;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}getItemPosition(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)}get el(){return n(this)}};f.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}: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:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:flex;align-items:stretch}:host .icon{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}:host .content{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}:host .heading,:host .description{display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:flex;align-items:center}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";export{h as calcite_accordion,f as calcite_accordion_item}
6
+ import{r as i,c as t,h as a,a as n,H as e}from"./p-45bc485a.js";import{c,d as o}from"./p-0a2cfcb6.js";import{v as r,g as s,b as l,t as d}from"./p-c7f9bd7e.js";import{C as m}from"./p-ff449e3b.js";import"./p-f68443a2.js";import"./p-c2b67777.js";const h=class{constructor(a){i(this,a),this.calciteInternalAccordionChange=t(this,"calciteInternalAccordionChange",6),this.items=[],this.sorted=!1,this.sortItems=i=>i.sort(((i,t)=>i.position-t.position)).map((i=>i.item)),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}componentDidLoad(){this.sorted||(this.items=this.sortItems(this.items),this.sorted=!0)}render(){const i="transparent"===this.appearance;return a("div",{class:{"accordion--transparent":i,accordion:!i}},a("slot",null))}registerCalciteAccordionItem(i){const t={item:i.target,parent:i.detail.parent,position:i.detail.position};this.el===t.parent&&this.items.push(t),i.stopPropagation()}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem}),i.stopPropagation()}get el(){return n(this)}};h.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}: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-inline-size: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{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";const p="actions-start",u="actions-end",f=class{constructor(a){i(this,a),this.calciteInternalAccordionItemSelect=t(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=t(this,"calciteInternalAccordionItemClose",6),this.calciteInternalAccordionItemRegister=t(this,"calciteInternalAccordionItemRegister",6),this.iconPosition="end",this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.scale="m",this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0}connectedCallback(){this.parent=this.el.parentElement,this.iconType=r(this.el,"icon-type","chevron"),this.iconPosition=r(this.el,"icon-position",this.iconPosition),this.scale=r(this.el,"scale",this.scale),c(this)}componentDidLoad(){this.itemPosition=this.getItemPosition(),this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})}disconnectedCallback(){o(this)}renderActionsStart(){const{el:i}=this;return s(i,p)?a("div",{class:"actions-start"},a("slot",{name:p})):null}renderActionsEnd(){const{el:i}=this;return s(i,u)?a("div",{class:"actions-end"},a("slot",{name:u})):null}render(){const{iconFlipRtl:i}=this,t=l(this.el),n=this.iconStart?a("calcite-icon",{class:"icon--start",flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:"l"===this.scale?"m":"s"}):null,c=this.iconEnd?a("calcite-icon",{class:"icon--end",flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:"l"===this.scale?"m":"s"}):null,{description:o}=this;return a(e,null,a("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},a("div",{class:{header:!0,[m.rtl]:"rtl"===t}},this.renderActionsStart(),a("div",{"aria-expanded":d(this.expanded),class:"header-content",onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},a("div",{class:"header-container"},n,a("div",{class:"header-text"},a("span",{class:"heading"},this.heading),o?a("span",{class:"description"},o):null),c),a("calcite-icon",{class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:"l"===this.scale?"m":"s"})),this.renderActionsEnd()),a("div",{class:"content"},a("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){this.requestedAccordionItem=i.detail.requestedAccordionItem,this.el.parentNode===this.requestedAccordionItem.parentNode&&(this.determineActiveItem(),i.stopPropagation())}determineActiveItem(){switch(this.selectionMode=r(this.el,"selection-mode","multiple"),this.selectionMode){case"multiple":this.el===this.requestedAccordionItem&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===this.requestedAccordionItem&&!this.expanded;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}getItemPosition(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)}get el(){return n(this)}};f.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}: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:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:flex;align-items:stretch}:host .icon{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}:host .content{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}:host .heading,:host .description{display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:flex;align-items:center}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";export{h as calcite_accordion,f as calcite_accordion_item}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as t,c as e,h as i,H as a,a as s}from"./p-20d9af3e.js";import{d as n,e as o,t as l,g as r}from"./p-2dd9e177.js";import{s as c,a as d,c as h}from"./p-b735fea7.js";import{c as m,d as u,n as p}from"./p-b56dd822.js";import{c as g,d as f}from"./p-0c66b9b3.js";import{c as v,s as b,d as k,u as w}from"./p-1cb92832.js";import{K as x}from"./p-759246d3.js";import"./p-a891e53e.js";import"./p-5bd2cf61.js";import"./p-6c6b3e21.js";import"./p-80947474.js";const y={slow:14e3,medium:1e4,fast:6e3},z=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",6),this.calciteAlertClose=e(this,"calciteAlertClose",6),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",6),this.calciteAlertOpen=e(this,"calciteAlertOpen",6),this.calciteInternalAlertSync=e(this,"calciteInternalAlertSync",6),this.calciteInternalAlertRegister=e(this,"calciteInternalAlertRegister",6),this.autoCloseTimeoutId=null,this.totalOpenTime=0,this.totalHoverTime=0,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,g(this)},this.closeAlert=()=>{this.autoCloseTimeoutId=null,this.queued=!1,this.open=!1,this.queue=this.queue.filter((t=>t!==this.el)),this.determineActiveAlert(),this.calciteInternalAlertSync.emit({queue:this.queue})},this.actionsEndSlotChangeHandler=t=>{this.hasEndActions=n(t)},this.handleMouseOver=()=>{window.clearTimeout(this.autoCloseTimeoutId),this.totalOpenTime=Date.now()-this.initialOpenTime,this.lastMouseOverBegin=Date.now()},this.handleMouseLeave=()=>{const t=Date.now()-this.lastMouseOverBegin,e=y[this.autoCloseDuration]-this.totalOpenTime+this.totalHoverTime;this.totalHoverTime=this.totalHoverTime?t+this.totalHoverTime:t,this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),e)},this.open=!1,this.autoClose=!1,this.autoCloseDuration=this.autoClose?"medium":null,this.kind="brand",this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.numberingSystem=void 0,this.placement="bottom",this.scale="m",this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasEndActions=!1,this.queue=[],this.queueLength=0,this.queued=!1,this.requestedIcon=void 0}openHandler(){this.open&&!this.queued&&this.calciteInternalAlertRegister.emit(),this.open||(this.queue=this.queue.filter((t=>t!==this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}))}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=o(x,this.icon,this.kind)}updateDuration(){this.autoClose&&this.autoCloseTimeoutId&&(window.clearTimeout(this.autoCloseTimeoutId),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),y[this.autoCloseDuration]))}connectedCallback(){m(this),v(this),this.open&&!this.queued&&(this.openHandler(),this.calciteInternalAlertRegister.emit()),g(this)}async componentWillLoad(){c(this),this.requestedIcon=o(x,this.icon,this.kind),await b(this)}componentDidLoad(){d(this)}disconnectedCallback(){window.clearTimeout(this.autoCloseTimeoutId),window.clearTimeout(this.queueTimeout),f(this),u(this),k(this),this.slottedInShell=!1}render(){const{hasEndActions:t}=this,e=i("button",{"aria-label":this.messages.close,class:"alert-close",onClick:this.closeAlert,type:"button",ref:t=>this.closeButton=t},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"}));p.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"};const s=p.numberFormatter.format(this.queueLength>2?this.queueLength-1:1),n=i("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},i("calcite-chip",{scale:this.scale,value:s},s)),{open:o,autoClose:r,label:c,placement:d,queued:h,requestedIcon:m,iconFlipRtl:u}=this,g=r?"alert":"alertdialog",f=!o,v=i("slot",{key:"actionsEndSlot",name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler});return i(a,{"aria-hidden":l(f),"aria-label":c,"calcite-hydrated-hidden":f,role:g},i("div",{class:{container:!0,queued:h,[d]:!0,"slotted-in-shell":this.slottedInShell},onPointerEnter:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseOver:null,onPointerLeave:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseLeave:null,ref:this.setTransitionEl},m?i("div",{class:"alert-icon"},i("calcite-icon",{flipRtl:u,icon:m,scale:"l"===this.scale?"m":"s"})):null,i("div",{class:"alert-content"},i("slot",{name:"title"}),i("slot",{name:"message"}),i("slot",{name:"link"})),i("div",{class:"actions-end",hidden:!t},v),this.queueLength>1?n:null,e,o&&!h&&r?i("div",{class:"alert-dismiss-progress"}):null))}alertSync(t){this.queue!==t.detail.queue&&(this.queue=t.detail.queue),this.queueLength=this.queue.length,this.determineActiveAlert(),t.stopPropagation()}alertRegister(){this.open&&!this.queue.includes(this.el)&&(this.queued=!0,this.queue.push(this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}),this.determineActiveAlert()}async setFocus(){await h(this);const t=r(this.el,{selector:"calcite-link"});(this.closeButton||t)&&(t?t.setFocus():this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){w(this,this.effectiveLocale)}determineActiveAlert(){this.queue?.[0]===this.el&&(this.openAlert(),this.autoClose&&!this.autoCloseTimeoutId&&(this.initialOpenTime=Date.now(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),y[this.autoCloseDuration])))}onBeforeOpen(){this.calciteAlertBeforeOpen.emit()}onOpen(){this.calciteAlertOpen.emit()}onBeforeClose(){this.calciteAlertBeforeClose.emit()}onClose(){this.calciteAlertClose.emit()}openAlert(){window.clearTimeout(this.queueTimeout),this.queueTimeout=window.setTimeout((()=>this.queued=!1),300)}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],autoCloseDuration:["updateDuration"],effectiveLocale:["effectiveLocaleChange"]}}};z.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;z-index:var(--calcite-app-z-index-toast);margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}[hidden]{display:none}.container{display:flex;inline-size:100%;align-items:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([open]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([open]) .container:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;flex-direction:column;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 0;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px;border-start-start-radius:var(--calcite-border-radius);border-end-start-radius:var(--calcite-border-radius)}.alert-close{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius);border-start-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:open{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-close])>.alert-queue-count{border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([kind=brand]) .container .alert-icon{color:var(--calcite-ui-brand)}:host([kind=info]) .container{border-block-start-color:var(--calcite-ui-info)}:host([kind=info]) .container .alert-icon{color:var(--calcite-ui-info)}:host([kind=danger]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([kind=danger]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([kind=success]) .container{border-block-start-color:var(--calcite-ui-success)}:host([kind=success]) .container .alert-icon{color:var(--calcite-ui-success)}:host([kind=warning]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([kind=warning]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([auto-close-duration=fast]) .alert-dismiss-progress:after{animation:dismissProgress 6000ms ease-out}:host(:hover[auto-close-duration=fast]) .alert-dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=medium]) .alert-dismiss-progress:after{animation:dismissProgress 10000ms ease-out}:host(:hover[auto-close-duration=medium]) .alert-dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=slow]) .alert-dismiss-progress:after{animation:dismissProgress 14000ms ease-out}:host(:hover[auto-close-duration=slow]) .alert-dismiss-progress:after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}.container.slotted-in-shell{position:absolute}';export{z as calcite_alert}
6
+ import{r as t,c as e,h as i,H as a,a as s}from"./p-45bc485a.js";import{d as n,e as o,t as l,g as r}from"./p-c7f9bd7e.js";import{s as c,a as d,c as h}from"./p-89505d85.js";import{c as m,d as u,n as p}from"./p-e0e1b52b.js";import{c as g,d as f}from"./p-e881fccc.js";import{c as v,s as b,d as k,u as w}from"./p-6c30c9f4.js";import{K as x}from"./p-af417af6.js";import"./p-c2b67777.js";import"./p-ff449e3b.js";import"./p-15c00b78.js";import"./p-f68443a2.js";const y={slow:14e3,medium:1e4,fast:6e3},z=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",6),this.calciteAlertClose=e(this,"calciteAlertClose",6),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",6),this.calciteAlertOpen=e(this,"calciteAlertOpen",6),this.calciteInternalAlertSync=e(this,"calciteInternalAlertSync",6),this.calciteInternalAlertRegister=e(this,"calciteInternalAlertRegister",6),this.autoCloseTimeoutId=null,this.totalOpenTime=0,this.totalHoverTime=0,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,g(this)},this.closeAlert=()=>{this.autoCloseTimeoutId=null,this.queued=!1,this.open=!1,this.queue=this.queue.filter((t=>t!==this.el)),this.determineActiveAlert(),this.calciteInternalAlertSync.emit({queue:this.queue})},this.actionsEndSlotChangeHandler=t=>{this.hasEndActions=n(t)},this.handleMouseOver=()=>{window.clearTimeout(this.autoCloseTimeoutId),this.totalOpenTime=Date.now()-this.initialOpenTime,this.lastMouseOverBegin=Date.now()},this.handleMouseLeave=()=>{const t=Date.now()-this.lastMouseOverBegin,e=y[this.autoCloseDuration]-this.totalOpenTime+this.totalHoverTime;this.totalHoverTime=this.totalHoverTime?t+this.totalHoverTime:t,this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),e)},this.open=!1,this.autoClose=!1,this.autoCloseDuration=this.autoClose?"medium":null,this.kind="brand",this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.numberingSystem=void 0,this.placement="bottom",this.scale="m",this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasEndActions=!1,this.queue=[],this.queueLength=0,this.queued=!1,this.requestedIcon=void 0}openHandler(){this.open&&!this.queued&&this.calciteInternalAlertRegister.emit(),this.open||(this.queue=this.queue.filter((t=>t!==this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}))}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=o(x,this.icon,this.kind)}updateDuration(){this.autoClose&&this.autoCloseTimeoutId&&(window.clearTimeout(this.autoCloseTimeoutId),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),y[this.autoCloseDuration]))}connectedCallback(){m(this),v(this),this.open&&!this.queued&&(this.openHandler(),this.calciteInternalAlertRegister.emit()),g(this)}async componentWillLoad(){c(this),this.requestedIcon=o(x,this.icon,this.kind),await b(this)}componentDidLoad(){d(this)}disconnectedCallback(){window.clearTimeout(this.autoCloseTimeoutId),window.clearTimeout(this.queueTimeout),f(this),u(this),k(this),this.slottedInShell=!1}render(){const{hasEndActions:t}=this,e=i("button",{"aria-label":this.messages.close,class:"alert-close",onClick:this.closeAlert,type:"button",ref:t=>this.closeButton=t},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"}));p.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"};const s=p.numberFormatter.format(this.queueLength>2?this.queueLength-1:1),n=i("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},i("calcite-chip",{scale:this.scale,value:s},s)),{open:o,autoClose:r,label:c,placement:d,queued:h,requestedIcon:m,iconFlipRtl:u}=this,g=r?"alert":"alertdialog",f=!o,v=i("slot",{key:"actionsEndSlot",name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler});return i(a,{"aria-hidden":l(f),"aria-label":c,"calcite-hydrated-hidden":f,role:g},i("div",{class:{container:!0,queued:h,[d]:!0,"slotted-in-shell":this.slottedInShell},onPointerEnter:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseOver:null,onPointerLeave:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseLeave:null,ref:this.setTransitionEl},m?i("div",{class:"alert-icon"},i("calcite-icon",{flipRtl:u,icon:m,scale:"l"===this.scale?"m":"s"})):null,i("div",{class:"alert-content"},i("slot",{name:"title"}),i("slot",{name:"message"}),i("slot",{name:"link"})),i("div",{class:"actions-end",hidden:!t},v),this.queueLength>1?n:null,e,o&&!h&&r?i("div",{class:"alert-dismiss-progress"}):null))}alertSync(t){this.queue!==t.detail.queue&&(this.queue=t.detail.queue),this.queueLength=this.queue.length,this.determineActiveAlert(),t.stopPropagation()}alertRegister(){this.open&&!this.queue.includes(this.el)&&(this.queued=!0,this.queue.push(this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}),this.determineActiveAlert()}async setFocus(){await h(this);const t=r(this.el,{selector:"calcite-link"});(this.closeButton||t)&&(t?t.setFocus():this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){w(this,this.effectiveLocale)}determineActiveAlert(){this.queue?.[0]===this.el&&(this.openAlert(),this.autoClose&&!this.autoCloseTimeoutId&&(this.initialOpenTime=Date.now(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),y[this.autoCloseDuration])))}onBeforeOpen(){this.calciteAlertBeforeOpen.emit()}onOpen(){this.calciteAlertOpen.emit()}onBeforeClose(){this.calciteAlertBeforeClose.emit()}onClose(){this.calciteAlertClose.emit()}openAlert(){window.clearTimeout(this.queueTimeout),this.queueTimeout=window.setTimeout((()=>this.queued=!1),300)}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],autoCloseDuration:["updateDuration"],effectiveLocale:["effectiveLocaleChange"]}}};z.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;z-index:var(--calcite-app-z-index-toast);margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}[hidden]{display:none}.container{display:flex;inline-size:100%;align-items:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([open]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([open]) .container:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;flex-direction:column;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 0;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px;border-start-start-radius:var(--calcite-border-radius);border-end-start-radius:var(--calcite-border-radius)}.alert-close{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius);border-start-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:open{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-close])>.alert-queue-count{border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([kind=brand]) .container .alert-icon{color:var(--calcite-ui-brand)}:host([kind=info]) .container{border-block-start-color:var(--calcite-ui-info)}:host([kind=info]) .container .alert-icon{color:var(--calcite-ui-info)}:host([kind=danger]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([kind=danger]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([kind=success]) .container{border-block-start-color:var(--calcite-ui-success)}:host([kind=success]) .container .alert-icon{color:var(--calcite-ui-success)}:host([kind=warning]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([kind=warning]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([auto-close-duration=fast]) .alert-dismiss-progress:after{animation:dismissProgress 6000ms ease-out}:host(:hover[auto-close-duration=fast]) .alert-dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=medium]) .alert-dismiss-progress:after{animation:dismissProgress 10000ms ease-out}:host(:hover[auto-close-duration=medium]) .alert-dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=slow]) .alert-dismiss-progress:after{animation:dismissProgress 14000ms ease-out}:host(:hover[auto-close-duration=slow]) .alert-dismiss-progress:after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}.container.slotted-in-shell{position:absolute}';export{z as calcite_alert}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as t,c as i,h as a,a as e,H as s}from"./p-20d9af3e.js";import{S as n}from"./p-cec434f9.js";import{u as o}from"./p-8c16227b.js";import{s as r,a as c,c as l}from"./p-b735fea7.js";import{c as h,d}from"./p-b56dd822.js";import{c as m}from"./p-80947474.js";import{u as p,c as u,s as f,d as v}from"./p-1cb92832.js";import{g,m as w,d as b,a as y,s as x,h as k,b as D,c as _,k as L,e as j,i as I,f as C,j as z,l as A,n as H,r as F,o as R,p as S,q as U,t as B,L as $,I as M,C as O,S as V}from"./p-751d0bc4.js";import{c as q,d as K}from"./p-0be1a3b2.js";import{g as T}from"./p-2dd9e177.js";import{g as W}from"./p-a891e53e.js";import"./p-6c6b3e21.js";import"./p-b66c6929.js";import"./p-de4111ec.js";import"./p-5bd2cf61.js";var E;function P(t,i,a){const{items:e,messages:s}=a,n=e.length,o=g(a,t)+1;return function(t,i,a,e){return t.replace("${position}",a.toString()).replace("${itemLabel}",i).replace("${total}",e.toString())}("idle"===i?s.dragHandleIdle:"active"===i?s.dragHandleActive:"change"===i?s.dragHandleChange:s.dragHandleCommit,t.label,o,n)}function G(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(E||(E={}));const J=class{constructor(a){t(this,a),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=m("mutation",w.bind(this)),this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=b.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=x.bind(this),this.handleFilter=k.bind(this),this.handleFilterEvent=D.bind(this),this.getItemData=_.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:a}=G(t);if(i&&!a.handleActivated&&" "===t.key&&this.updateScreenReaderText(P(a,"commit",this)),!i||!a.handleActivated)return void L.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(P(a,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:s}=this,n=j(this,a,"ArrowUp"===t.key?"up":"down");if(n===e.length-1)s.appendChild(a);else{const t=s.children[n];s.insertBefore(a,t===a.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>i?.focus())),a.handleActivated=!0,this.updateHandleAriaLabel(i,P(a,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:a}=G(t);!a?.handleActivated&&a&&i&&this.updateHandleAriaLabel(i,P(a,"idle",this))},this.disabled=!1,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){p(this,this.effectiveLocale)}connectedCallback(){h(this),u(this),I.call(this),C.call(this)}async componentWillLoad(){r(this),await f(this)}componentDidLoad(){c(this),this.setUpDragAndDrop(),z.call(this)}componentDidRender(){o(this)}disconnectedCallback(){d(this),v(this),A.call(this),this.cleanUpDragAndDrop()}calciteListFocusOutHandler(t){H.call(this,t)}calciteListItemRemoveHandler(t){F.call(this,t)}calciteListItemChangeHandler(t){R.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){S.call(this,t),t.stopPropagation()}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){U.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.cleanUpDragAndDrop(),this.dragEnabled&&(this.sortable=n.create(this.el,{dataIdAttr:"id",handle:".handle",draggable:"calcite-value-list-item",group:this.group,onSort:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.sortable?.destroy(),this.sortable=null}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),B.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=E.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:a}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(a,P(i,"idle",this)),t.stopPropagation()}render(){return a($,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};J.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";const N="actions-end",Q="actions-start",X=class{constructor(a){t(this,a),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${W()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){q(this)}disconnectedCallback(){K(this)}componentWillLoad(){r(this)}componentDidLoad(){c(this)}componentDidRender(){o(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return T(t,N)?a("slot",{name:N,slot:V.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return T(t,Q)?a("slot",{name:Q,slot:V.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===M.grip)return a("span",{class:{[O.handle]:!0,[O.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},a("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return a(s,{id:this.el.id||this.guid},this.renderHandle(),a("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};X.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{J as calcite_value_list,X as calcite_value_list_item}
6
+ import{r as t,c as i,h as a,a as e,H as s}from"./p-45bc485a.js";import{S as n}from"./p-f650b423.js";import{u as o}from"./p-b7b0abbc.js";import{s as r,a as c,c as l}from"./p-89505d85.js";import{c as h,d}from"./p-e0e1b52b.js";import{c as m}from"./p-f68443a2.js";import{u as p,c as u,s as f,d as v}from"./p-6c30c9f4.js";import{g,m as w,d as b,a as y,s as x,h as k,b as D,c as _,k as L,e as j,i as I,f as C,j as z,l as A,n as H,r as F,o as R,p as S,q as U,t as B,L as $,I as M,C as O,S as V}from"./p-da80d9da.js";import{c as q,d as K}from"./p-0a2cfcb6.js";import{g as T}from"./p-c7f9bd7e.js";import{g as W}from"./p-c2b67777.js";import"./p-15c00b78.js";import"./p-17c0b1c0.js";import"./p-a8081c36.js";import"./p-ff449e3b.js";var E;function P(t,i,a){const{items:e,messages:s}=a,n=e.length,o=g(a,t)+1;return function(t,i,a,e){return t.replace("${position}",a.toString()).replace("${itemLabel}",i).replace("${total}",e.toString())}("idle"===i?s.dragHandleIdle:"active"===i?s.dragHandleActive:"change"===i?s.dragHandleChange:s.dragHandleCommit,t.label,o,n)}function G(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(E||(E={}));const J=class{constructor(a){t(this,a),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=m("mutation",w.bind(this)),this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=b.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=x.bind(this),this.handleFilter=k.bind(this),this.handleFilterEvent=D.bind(this),this.getItemData=_.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:a}=G(t);if(i&&!a.handleActivated&&" "===t.key&&this.updateScreenReaderText(P(a,"commit",this)),!i||!a.handleActivated)return void L.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(P(a,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:s}=this,n=j(this,a,"ArrowUp"===t.key?"up":"down");if(n===e.length-1)s.appendChild(a);else{const t=s.children[n];s.insertBefore(a,t===a.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>i?.focus())),a.handleActivated=!0,this.updateHandleAriaLabel(i,P(a,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:a}=G(t);!a?.handleActivated&&a&&i&&this.updateHandleAriaLabel(i,P(a,"idle",this))},this.disabled=!1,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){p(this,this.effectiveLocale)}connectedCallback(){h(this),u(this),I.call(this),C.call(this)}async componentWillLoad(){r(this),await f(this)}componentDidLoad(){c(this),this.setUpDragAndDrop(),z.call(this)}componentDidRender(){o(this)}disconnectedCallback(){d(this),v(this),A.call(this),this.cleanUpDragAndDrop()}calciteListFocusOutHandler(t){H.call(this,t)}calciteListItemRemoveHandler(t){F.call(this,t)}calciteListItemChangeHandler(t){R.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){S.call(this,t),t.stopPropagation()}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){U.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.cleanUpDragAndDrop(),this.dragEnabled&&(this.sortable=n.create(this.el,{dataIdAttr:"id",handle:".handle",draggable:"calcite-value-list-item",group:this.group,onSort:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.sortable?.destroy(),this.sortable=null}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),B.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=E.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:a}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(a,P(i,"idle",this)),t.stopPropagation()}render(){return a($,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};J.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";const N="actions-end",Q="actions-start",X=class{constructor(a){t(this,a),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${W()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){q(this)}disconnectedCallback(){K(this)}componentWillLoad(){r(this)}componentDidLoad(){c(this)}componentDidRender(){o(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return T(t,N)?a("slot",{name:N,slot:V.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return T(t,Q)?a("slot",{name:Q,slot:V.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===M.grip)return a("span",{class:{[O.handle]:!0,[O.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},a("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return a(s,{id:this.el.id||this.guid},this.renderHandle(),a("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};X.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{J as calcite_value_list,X as calcite_value_list_item}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
6
  const n={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},o={menu:"ellipsis"};export{o as I,n as S}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{b as t}from"./p-2dd9e177.js";import{d as n}from"./p-de4111ec.js";function e(t){return t.split("-")[1]}function o(t){return"y"===t?"height":"width"}function r(t){return t.split("-")[0]}function i(t){return["top","bottom"].includes(r(t))?"x":"y"}function a(t,n,a){let{reference:l,floating:s}=t;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=i(n),d=o(u),m=l[d]/2-s[d]/2,p="x"===u;let y;switch(r(n)){case"top":y={x:c,y:l.y-s.height};break;case"bottom":y={x:c,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-s.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(n)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function l(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=n,g=l(y),h=c[p?"floating"===m?"reference":"floating":m],x=s(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(h)))||e?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:f})),v="floating"===m?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:f}):v);return{top:(x.top-A.top+g.top)/w.y,bottom:(A.bottom-x.bottom+g.bottom)/w.y,left:(x.left-A.left+g.left)/w.x,right:(A.right-x.right+g.right)/w.x}}const f=Math.min,u=Math.max;function d(t,n,e){return u(t,f(n,e))}const m=["top","right","bottom","left"],p=m.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),y={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t){return t.replace(/left|right|bottom|top/g,(t=>y[t]))}function h(t,n,r){void 0===r&&(r=!1);const a=e(t),l=i(t),s=o(l);let c="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=g(c)),{main:c,cross:g(c)}}const x={start:"end",end:"start"};function v(t){return t.replace(/start|end/g,(t=>x[t]))}const b=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var o;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:f,elements:u}=n,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...w}=t,A=r(i),P=r(s)===s,k=await(null==f.isRTL?void 0:f.isRTL(u.floating)),D=p||(P||!b?[g(s)]:function(t){const n=g(t);return[v(t),n,v(n)]}(s));p||"none"===x||D.push(...function(t,n,o,i){const a=e(t);let l=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(r(t),"start"===o,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(v)))),l}(s,b,x,k));const R=[s,...D],F=await c(n,w),M=[];let E=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&M.push(F[A]),m){const{main:t,cross:n}=h(i,l,k);M.push(F[t],F[n])}if(E=[...E,{placement:i,overflows:M}],!M.every((t=>t<=0))){var S,C;const t=((null==(S=a.flip)?void 0:S.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:E},reset:{placement:n}};let e=null==(C=E.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:C.placement;if(!e)switch(y){case"bestFit":{var O;const t=null==(O=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:O[0];t&&(e=t);break}case"initialPlacement":e=s}if(i!==e)return{reset:{placement:e}}}return{}}}};function w(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function A(t){return m.some((n=>t[n]>=0))}const P=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{strategy:e="referenceHidden",...o}=t,{rects:r}=n;switch(e){case"referenceHidden":{const t=w(await c(n,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:A(t)}}}case"escaped":{const t=w(await c(n,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:A(t)}}}default:return{}}}}};function k(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function D(t){return k(t).getComputedStyle(t)}function R(t){return t instanceof k(t).Node}function F(t){return R(t)?(t.nodeName||"").toLowerCase():""}let M;function E(){if(M)return M;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(M=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),M):navigator.userAgent}function S(t){return t instanceof k(t).HTMLElement}function C(t){return t instanceof k(t).Element}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof k(t).ShadowRoot||t instanceof ShadowRoot)}function T(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=D(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function $(t){return["table","td","th"].includes(F(t))}function j(t){const n=/firefox/i.test(E()),e=D(t),o=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!o&&"none"!==o||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some((t=>e.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const n=e.contain;return null!=n&&n.includes(t)}))}function z(){return/^((?!chrome|android).)*safari/i.test(E())}function B(t){return["html","body","#document"].includes(F(t))}const L=Math.min,H=Math.max,N=Math.round;function I(t){const n=D(t);let e=parseFloat(n.width),o=parseFloat(n.height);const r=S(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=N(e)!==i||N(o)!==a;return l&&(e=i,o=a),{width:e,height:o,fallback:l}}function W(t){return C(t)?t:t.contextElement}const V={x:1,y:1};function q(t){const n=W(t);if(!S(n))return V;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=I(n);let a=(i?N(e.width):e.width)/o,l=(i?N(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function G(t,n,e,o){var r,i;void 0===n&&(n=!1),void 0===e&&(e=!1);const a=t.getBoundingClientRect(),l=W(t);let c=V;n&&(o?C(o)&&(c=q(o)):c=q(t));const f=l?k(l):window,u=z()&&e;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/c.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/c.y,p=a.width/c.x,y=a.height/c.y;if(l){const t=k(l),n=o&&C(o)?k(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=q(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=n.x,m+=n.y,e=k(e).frameElement}}return s({width:p,height:y,x:d,y:m})}function U(t){return((R(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return G(U(t)).left+X(t).scrollLeft}function _(t){if("html"===F(t))return t;const n=t.assignedSlot||t.parentNode||O(t)&&t.host||U(t);return O(n)?n.host:n}function J(t){const n=_(t);return B(n)?n.ownerDocument.body:S(n)&&T(n)?n:J(n)}function K(t,n){var e;void 0===n&&(n=[]);const o=J(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=k(o);return r?n.concat(i,i.visualViewport||[],T(o)?o:[]):n.concat(o,K(o))}function Q(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=k(t),o=U(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=z();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,e);else if("document"===n)o=function(t){const n=U(t),e=X(t),o=t.ownerDocument.body,r=H(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=H(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Y(t);const l=-e.scrollTop;return"rtl"===D(o).direction&&(a+=H(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(U(t));else if(C(n))o=function(t,n){const e=G(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=S(t)?q(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e={...n};if(z()){var r,i;const n=k(t);e.x-=(null==(r=n.visualViewport)?void 0:r.offsetLeft)||0,e.y-=(null==(i=n.visualViewport)?void 0:i.offsetTop)||0}o=e}return s(o)}function Z(t,n){const e=_(t);return!(e===n||!C(e)||B(e))&&("fixed"===D(e).position||Z(e,n))}function tt(t,n){return S(t)&&"fixed"!==D(t).position?n?n(t):t.offsetParent:null}function nt(t,n){const e=k(t);if(!S(t))return e;let o=tt(t,n);for(;o&&$(o)&&"static"===D(o).position;)o=tt(o,n);return o&&("html"===F(o)||"body"===F(o)&&"static"===D(o).position&&!j(o))?e:o||function(t){let n=_(t);for(;S(n)&&!B(n);){if(j(n))return n;n=_(n)}return null}(t)||e}function et(t,n,e){const o=S(n),r=U(n),i=G(t,!0,"fixed"===e,n);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==e)if(("body"!==F(n)||T(r))&&(a=X(n)),S(n)){const t=G(n,!0);l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const ot={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=K(t).filter((t=>C(t)&&"body"!==F(t))),r=null;const i="fixed"===D(t).position;let a=i?_(t):t;for(;C(a)&&!B(a);){const n=D(a),e=j(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||T(a)&&!e&&Z(t,a))?o=o.filter((t=>t!==a)):r=n,a=_(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=Q(n,e,r);return t.top=H(o.top,t.top),t.right=L(o.right,t.right),t.bottom=L(o.bottom,t.bottom),t.left=H(o.left,t.left),t}),Q(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=S(e),i=U(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(e)||T(i))&&(a=X(e)),S(e))){const t=G(e);l=q(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+s.x,y:n.y*l.y-a.scrollTop*l.y+s.y}},isElement:C,getDimensions:function(t){return I(t)},getOffsetParent:nt,getDocumentElement:U,getScale:q,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||nt,i=this.getDimensions;return{reference:et(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===D(t).direction};const rt={floatingUINonChromiumPositioningFix:!0,...globalThis.calciteComponentsConfig},it=async function(){function t(){return navigator.userAgentData}if(rt.floatingUINonChromiumPositioningFix&&(/firefox|safari/i.test(function(){const n=t();return n?.brands?n.brands.map((({brand:t,version:n})=>`${t}/${n}`)).join(" "):navigator.userAgent}())||function(){const n=t();return n?.brands?!!n.brands.find((({brand:t,version:n})=>("Google Chrome"===t||"Chromium"===t)&&Number(n)>=109)):!!navigator.userAgent.split(" ").find((t=>{const[n,e]=t.split("/");return"Chrome"===n&&parseInt(e)>=109}))}())){const{offsetParent:t}=await import("./p-24b1f980.js"),n=ot.getOffsetParent;ot.getOffsetParent=e=>n(e,t)}}(),at=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],lt="bottom-start",st={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function ct({placement:t,flipDisabled:n,flipPlacements:a,offsetDistance:s,offsetSkidding:f,arrowEl:u,type:m}){const y=[(void 0===g&&(g={}),{name:"shift",options:g,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=g,u={x:n,y:e},m=await c(t,f),p=i(r(o)),y="x"===p?"y":"x";let h=u[p],x=u[y];a&&(h=d(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(x=d(x+m["y"===y?"top":"left"],x,x-m["y"===y?"bottom":"right"]));const v=s.fn({...t,[p]:h,[y]:x});return{...v,data:{x:v.x-n,y:v.y-e}}}}),P()];var g,x;if("menu"===m)return[...y,b({fallbackPlacements:a||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===m||"tooltip"===m){const m=[...y,(x={mainAxis:"number"==typeof s?s:0,crossAxis:"number"==typeof f?f:0},void 0===x&&(x=0),{name:"offset",options:x,async fn(t){const{x:n,y:o}=t,a=await async function(t,n){const{placement:o,platform:a,elements:l}=t,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=r(o),f=e(o),u="x"===i(o),d=["left","top"].includes(c)?-1:1,m=s&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:g,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof h&&(g="end"===f?-1*h:h),u?{x:g*m,y:y*d}:{x:y*d,y:g*m}}(t,x);return{x:n+a.x,y:o+a.y,data:a}}})];return"auto"===t||"auto-start"===t||"auto-end"===t?m.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var o,i,a;const{rects:l,middlewareData:s,placement:f,platform:u,elements:d}=n,{crossAxis:m=!1,alignment:y,allowedPlacements:g=p,autoAlignment:x=!0,...b}=t,w=void 0!==y||g===p?function(t,n,o){return(t?[...o.filter((n=>e(n)===t)),...o.filter((n=>e(n)!==t))]:o.filter((t=>r(t)===t))).filter((o=>!t||e(o)===t||!!n&&v(o)!==o))}(y||null,x,g):g,A=await c(n,b),P=(null==(o=s.autoPlacement)?void 0:o.index)||0,k=w[P];if(null==k)return{};const{main:D,cross:R}=h(k,l,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(f!==k)return{reset:{placement:w[0]}};const F=[A[r(k)],A[D],A[R]],M=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:k,overflows:F}],E=w[P+1];if(E)return{data:{index:P+1,overflows:M},reset:{placement:E}};const S=M.map((t=>{const n=e(t.placement);return[t.placement,n&&m?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),C=(null==(a=S.filter((t=>t[2].slice(0,e(t[0])?2:3).every((t=>t<=0))))[0])?void 0:a[0])||S[0][0];return C!==f?{data:{index:P+1,overflows:M},reset:{placement:C}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||m.push(b(a?{fallbackPlacements:a}:{})),u&&m.push((t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:a=0}=t||{},{x:s,y:c,placement:f,rects:u,platform:m,elements:p}=n;if(null==r)return{};const y=l(a),g={x:s,y:c},h=i(f),x=o(h),v=await m.getDimensions(r),b="y"===h,w=b?"top":"left",A=b?"bottom":"right",P=b?"clientHeight":"clientWidth",k=u.reference[x]+u.reference[h]-g[h]-u.floating[x],D=g[h]-u.reference[h],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(r));let F=R?R[P]:0;F&&await(null==m.isElement?void 0:m.isElement(R))||(F=p.floating[P]||u.floating[x]);const M=y[w],E=F-v[x]-y[A],S=F/2-v[x]/2+(k/2-D/2),C=d(M,S,E),O=null!=e(f)&&S!=C&&u.reference[x]/2-(S<M?y[w]:y[A])-v[x]/2<0;return{[h]:g[h]-(O?S<M?M-S:E-S:0),data:{[h]:C,centerOffset:S-C}}}}))({element:u})),m}return[]}function ft(t,n){const e=t.filter((t=>at.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${at.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ut(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function dt(t,n,e=!1){if(t.open)return e?mt(t,n):yt(t,n)}const mt=n(yt,100,{leading:!0,maxWait:100}),pt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"};async function yt(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:s,offsetSkidding:c,arrowEl:f,type:u}){if(!n||!e)return null;await it;const{x:d,y:m,placement:p,strategy:y,middlewareData:g}=await((t,n,e)=>{const o=new Map,r={platform:ot,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(n));let f=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:d}=a(f,o,c),m=o,p={},y=0;for(let e=0;e<s.length;e++){const{name:i,fn:g}=s[e],{x:h,y:x,data:v,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:n}});u=null!=h?h:u,d=null!=x?x:d,p={...p,[i]:{...p[i],...v}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:u,y:d}=a(f,m,c))),e=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:ut(e,r),middleware:ct({placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:s,offsetSkidding:c,arrowEl:f,type:u})});if(f&&g.arrow){const{x:n,y:e}=g.arrow,o=p.split("-")[0],r=null!=n?"left":"top",i=pt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(f.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const h=g.hide?.referenceHidden,x=h?"hidden":null,v=x?"none":null;e.setAttribute("data-placement",p);const b=`translate(${Math.round(d)}px,${Math.round(m)}px)`;Object.assign(e.style,{visibility:x,pointerEvents:v,position:y,top:"0",left:"0",transform:b})}const gt=new WeakMap;function ht(t,n,e){e&&n&&(xt(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),gt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=o,s=r||i?[...C(t)?K(t):t.contextElement?K(t.contextElement):[],...K(n)]:[];s.forEach((t=>{const n=!C(t)&&t.toString().includes("V");!r||l&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let c,f=null;a&&(f=new ResizeObserver((()=>{e()})),C(t)&&!l&&f.observe(t),C(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(n));let u=l?G(t):null;return l&&function n(){const o=G(t);!u||o.x===u.x&&o.y===u.y&&o.width===u.width&&o.height===u.height||e(),u=o,c=requestAnimationFrame(n)}(),e(),()=>{var t;s.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(c)}}(n,e,(()=>t.reposition()))))}function xt(t,n,e){if(!e||!n)return;const o=gt.get(t);o&&o(),gt.delete(t)}const vt=Math.ceil(Math.hypot(4,4));export{st as F,xt as a,vt as b,ht as c,lt as d,ft as f,dt as r}
6
+ import{b as t}from"./p-c7f9bd7e.js";import{d as n}from"./p-a8081c36.js";function e(t){return t.split("-")[1]}function o(t){return"y"===t?"height":"width"}function r(t){return t.split("-")[0]}function i(t){return["top","bottom"].includes(r(t))?"x":"y"}function a(t,n,a){let{reference:l,floating:s}=t;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=i(n),d=o(u),m=l[d]/2-s[d]/2,p="x"===u;let y;switch(r(n)){case"top":y={x:c,y:l.y-s.height};break;case"bottom":y={x:c,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:f};break;case"left":y={x:l.x-s.width,y:f};break;default:y={x:l.x,y:l.y}}switch(e(n)){case"start":y[u]-=m*(a&&p?-1:1);break;case"end":y[u]+=m*(a&&p?-1:1)}return y}function l(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=n,g=l(y),h=c[p?"floating"===m?"reference":"floating":m],x=s(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(h)))||e?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:f})),v="floating"===m?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:f}):v);return{top:(x.top-A.top+g.top)/w.y,bottom:(A.bottom-x.bottom+g.bottom)/w.y,left:(x.left-A.left+g.left)/w.x,right:(A.right-x.right+g.right)/w.x}}const f=Math.min,u=Math.max;function d(t,n,e){return u(t,f(n,e))}const m=["top","right","bottom","left"],p=m.reduce(((t,n)=>t.concat(n,n+"-start",n+"-end")),[]),y={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t){return t.replace(/left|right|bottom|top/g,(t=>y[t]))}function h(t,n,r){void 0===r&&(r=!1);const a=e(t),l=i(t),s=o(l);let c="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=g(c)),{main:c,cross:g(c)}}const x={start:"end",end:"start"};function v(t){return t.replace(/start|end/g,(t=>x[t]))}const b=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var o;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:f,elements:u}=n,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...w}=t,A=r(i),P=r(s)===s,k=await(null==f.isRTL?void 0:f.isRTL(u.floating)),D=p||(P||!b?[g(s)]:function(t){const n=g(t);return[v(t),n,v(n)]}(s));p||"none"===x||D.push(...function(t,n,o,i){const a=e(t);let l=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(r(t),"start"===o,i);return a&&(l=l.map((t=>t+"-"+a)),n&&(l=l.concat(l.map(v)))),l}(s,b,x,k));const R=[s,...D],F=await c(n,w),M=[];let E=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&M.push(F[A]),m){const{main:t,cross:n}=h(i,l,k);M.push(F[t],F[n])}if(E=[...E,{placement:i,overflows:M}],!M.every((t=>t<=0))){var S,C;const t=((null==(S=a.flip)?void 0:S.index)||0)+1,n=R[t];if(n)return{data:{index:t,overflows:E},reset:{placement:n}};let e=null==(C=E.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:C.placement;if(!e)switch(y){case"bestFit":{var O;const t=null==(O=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:O[0];t&&(e=t);break}case"initialPlacement":e=s}if(i!==e)return{reset:{placement:e}}}return{}}}};function w(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function A(t){return m.some((n=>t[n]>=0))}const P=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{strategy:e="referenceHidden",...o}=t,{rects:r}=n;switch(e){case"referenceHidden":{const t=w(await c(n,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:A(t)}}}case"escaped":{const t=w(await c(n,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:A(t)}}}default:return{}}}}};function k(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function D(t){return k(t).getComputedStyle(t)}function R(t){return t instanceof k(t).Node}function F(t){return R(t)?(t.nodeName||"").toLowerCase():""}let M;function E(){if(M)return M;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(M=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),M):navigator.userAgent}function S(t){return t instanceof k(t).HTMLElement}function C(t){return t instanceof k(t).Element}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof k(t).ShadowRoot||t instanceof ShadowRoot)}function T(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=D(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function $(t){return["table","td","th"].includes(F(t))}function j(t){const n=/firefox/i.test(E()),e=D(t),o=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!o&&"none"!==o||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some((t=>e.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const n=e.contain;return null!=n&&n.includes(t)}))}function z(){return/^((?!chrome|android).)*safari/i.test(E())}function B(t){return["html","body","#document"].includes(F(t))}const L=Math.min,H=Math.max,N=Math.round;function I(t){const n=D(t);let e=parseFloat(n.width),o=parseFloat(n.height);const r=S(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=N(e)!==i||N(o)!==a;return l&&(e=i,o=a),{width:e,height:o,fallback:l}}function W(t){return C(t)?t:t.contextElement}const V={x:1,y:1};function q(t){const n=W(t);if(!S(n))return V;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=I(n);let a=(i?N(e.width):e.width)/o,l=(i?N(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function G(t,n,e,o){var r,i;void 0===n&&(n=!1),void 0===e&&(e=!1);const a=t.getBoundingClientRect(),l=W(t);let c=V;n&&(o?C(o)&&(c=q(o)):c=q(t));const f=l?k(l):window,u=z()&&e;let d=(a.left+(u&&(null==(r=f.visualViewport)?void 0:r.offsetLeft)||0))/c.x,m=(a.top+(u&&(null==(i=f.visualViewport)?void 0:i.offsetTop)||0))/c.y,p=a.width/c.x,y=a.height/c.y;if(l){const t=k(l),n=o&&C(o)?k(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=q(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,p*=t.x,y*=t.y,d+=n.x,m+=n.y,e=k(e).frameElement}}return s({width:p,height:y,x:d,y:m})}function U(t){return((R(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return G(U(t)).left+X(t).scrollLeft}function _(t){if("html"===F(t))return t;const n=t.assignedSlot||t.parentNode||O(t)&&t.host||U(t);return O(n)?n.host:n}function J(t){const n=_(t);return B(n)?n.ownerDocument.body:S(n)&&T(n)?n:J(n)}function K(t,n){var e;void 0===n&&(n=[]);const o=J(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=k(o);return r?n.concat(i,i.visualViewport||[],T(o)?o:[]):n.concat(o,K(o))}function Q(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=k(t),o=U(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const t=z();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(t,e);else if("document"===n)o=function(t){const n=U(t),e=X(t),o=t.ownerDocument.body,r=H(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=H(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Y(t);const l=-e.scrollTop;return"rtl"===D(o).direction&&(a+=H(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(U(t));else if(C(n))o=function(t,n){const e=G(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=S(t)?q(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e={...n};if(z()){var r,i;const n=k(t);e.x-=(null==(r=n.visualViewport)?void 0:r.offsetLeft)||0,e.y-=(null==(i=n.visualViewport)?void 0:i.offsetTop)||0}o=e}return s(o)}function Z(t,n){const e=_(t);return!(e===n||!C(e)||B(e))&&("fixed"===D(e).position||Z(e,n))}function tt(t,n){return S(t)&&"fixed"!==D(t).position?n?n(t):t.offsetParent:null}function nt(t,n){const e=k(t);if(!S(t))return e;let o=tt(t,n);for(;o&&$(o)&&"static"===D(o).position;)o=tt(o,n);return o&&("html"===F(o)||"body"===F(o)&&"static"===D(o).position&&!j(o))?e:o||function(t){let n=_(t);for(;S(n)&&!B(n);){if(j(n))return n;n=_(n)}return null}(t)||e}function et(t,n,e){const o=S(n),r=U(n),i=G(t,!0,"fixed"===e,n);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==e)if(("body"!==F(n)||T(r))&&(a=X(n)),S(n)){const t=G(n,!0);l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}else r&&(l.x=Y(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const ot={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=K(t).filter((t=>C(t)&&"body"!==F(t))),r=null;const i="fixed"===D(t).position;let a=i?_(t):t;for(;C(a)&&!B(a);){const n=D(a),e=j(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||T(a)&&!e&&Z(t,a))?o=o.filter((t=>t!==a)):r=n,a=_(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=Q(n,e,r);return t.top=H(o.top,t.top),t.right=L(o.right,t.right),t.bottom=L(o.bottom,t.bottom),t.left=H(o.left,t.left),t}),Q(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=S(e),i=U(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(e)||T(i))&&(a=X(e)),S(e))){const t=G(e);l=q(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+s.x,y:n.y*l.y-a.scrollTop*l.y+s.y}},isElement:C,getDimensions:function(t){return I(t)},getOffsetParent:nt,getDocumentElement:U,getScale:q,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||nt,i=this.getDimensions;return{reference:et(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===D(t).direction};const rt={floatingUINonChromiumPositioningFix:!0,...globalThis.calciteComponentsConfig},it=async function(){function t(){return navigator.userAgentData}if(rt.floatingUINonChromiumPositioningFix&&(/firefox|safari/i.test(function(){const n=t();return n?.brands?n.brands.map((({brand:t,version:n})=>`${t}/${n}`)).join(" "):navigator.userAgent}())||function(){const n=t();return n?.brands?!!n.brands.find((({brand:t,version:n})=>("Google Chrome"===t||"Chromium"===t)&&Number(n)>=109)):!!navigator.userAgent.split(" ").find((t=>{const[n,e]=t.split("/");return"Chrome"===n&&parseInt(e)>=109}))}())){const{offsetParent:t}=await import("./p-89c794a1.js"),n=ot.getOffsetParent;ot.getOffsetParent=e=>n(e,t)}}(),at=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],lt="bottom-start",st={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};function ct({placement:t,flipDisabled:n,flipPlacements:a,offsetDistance:s,offsetSkidding:f,arrowEl:u,type:m}){const y=[(void 0===g&&(g={}),{name:"shift",options:g,async fn(t){const{x:n,y:e,placement:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=g,u={x:n,y:e},m=await c(t,f),p=i(r(o)),y="x"===p?"y":"x";let h=u[p],x=u[y];a&&(h=d(h+m["y"===p?"top":"left"],h,h-m["y"===p?"bottom":"right"])),l&&(x=d(x+m["y"===y?"top":"left"],x,x-m["y"===y?"bottom":"right"]));const v=s.fn({...t,[p]:h,[y]:x});return{...v,data:{x:v.x-n,y:v.y-e}}}}),P()];var g,x;if("menu"===m)return[...y,b({fallbackPlacements:a||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===m||"tooltip"===m){const m=[...y,(x={mainAxis:"number"==typeof s?s:0,crossAxis:"number"==typeof f?f:0},void 0===x&&(x=0),{name:"offset",options:x,async fn(t){const{x:n,y:o}=t,a=await async function(t,n){const{placement:o,platform:a,elements:l}=t,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=r(o),f=e(o),u="x"===i(o),d=["left","top"].includes(c)?-1:1,m=s&&u?-1:1,p="function"==typeof n?n(t):n;let{mainAxis:y,crossAxis:g,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof h&&(g="end"===f?-1*h:h),u?{x:g*m,y:y*d}:{x:y*d,y:g*m}}(t,x);return{x:n+a.x,y:o+a.y,data:a}}})];return"auto"===t||"auto-start"===t||"auto-end"===t?m.push(function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var o,i,a;const{rects:l,middlewareData:s,placement:f,platform:u,elements:d}=n,{crossAxis:m=!1,alignment:y,allowedPlacements:g=p,autoAlignment:x=!0,...b}=t,w=void 0!==y||g===p?function(t,n,o){return(t?[...o.filter((n=>e(n)===t)),...o.filter((n=>e(n)!==t))]:o.filter((t=>r(t)===t))).filter((o=>!t||e(o)===t||!!n&&v(o)!==o))}(y||null,x,g):g,A=await c(n,b),P=(null==(o=s.autoPlacement)?void 0:o.index)||0,k=w[P];if(null==k)return{};const{main:D,cross:R}=h(k,l,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(f!==k)return{reset:{placement:w[0]}};const F=[A[r(k)],A[D],A[R]],M=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:k,overflows:F}],E=w[P+1];if(E)return{data:{index:P+1,overflows:M},reset:{placement:E}};const S=M.map((t=>{const n=e(t.placement);return[t.placement,n&&m?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),C=(null==(a=S.filter((t=>t[2].slice(0,e(t[0])?2:3).every((t=>t<=0))))[0])?void 0:a[0])||S[0][0];return C!==f?{data:{index:P+1,overflows:M},reset:{placement:C}}:{}}}}({alignment:"auto-start"===t?"start":"auto-end"===t?"end":null})):n||m.push(b(a?{fallbackPlacements:a}:{})),u&&m.push((t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:a=0}=t||{},{x:s,y:c,placement:f,rects:u,platform:m,elements:p}=n;if(null==r)return{};const y=l(a),g={x:s,y:c},h=i(f),x=o(h),v=await m.getDimensions(r),b="y"===h,w=b?"top":"left",A=b?"bottom":"right",P=b?"clientHeight":"clientWidth",k=u.reference[x]+u.reference[h]-g[h]-u.floating[x],D=g[h]-u.reference[h],R=await(null==m.getOffsetParent?void 0:m.getOffsetParent(r));let F=R?R[P]:0;F&&await(null==m.isElement?void 0:m.isElement(R))||(F=p.floating[P]||u.floating[x]);const M=y[w],E=F-v[x]-y[A],S=F/2-v[x]/2+(k/2-D/2),C=d(M,S,E),O=null!=e(f)&&S!=C&&u.reference[x]/2-(S<M?y[w]:y[A])-v[x]/2<0;return{[h]:g[h]-(O?S<M?M-S:E-S:0),data:{[h]:C,centerOffset:S-C}}}}))({element:u})),m}return[]}function ft(t,n){const e=t.filter((t=>at.includes(t)));return e.length!==t.length&&console.warn(`${n.tagName}: Invalid value found in: flipPlacements. Try any of these: ${at.map((t=>`"${t}"`)).join(", ").trim()}`,{el:n}),e}function ut(n,e){const o=["left","right"];return"rtl"===t(n)&&o.reverse(),e.replace(/leading/gi,o[0]).replace(/trailing/gi,o[1])}async function dt(t,n,e=!1){if(t.open)return e?mt(t,n):yt(t,n)}const mt=n(yt,100,{leading:!0,maxWait:100}),pt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"};async function yt(t,{referenceEl:n,floatingEl:e,overlayPositioning:o="absolute",placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:s,offsetSkidding:c,arrowEl:f,type:u}){if(!n||!e)return null;await it;const{x:d,y:m,placement:p,strategy:y,middlewareData:g}=await((t,n,e)=>{const o=new Map,r={platform:ot,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(n));let f=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:d}=a(f,o,c),m=o,p={},y=0;for(let e=0;e<s.length;e++){const{name:i,fn:g}=s[e],{x:h,y:x,data:v,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:f,platform:l,elements:{reference:t,floating:n}});u=null!=h?h:u,d=null!=x?x:d,p={...p,[i]:{...p[i],...v}},b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:u,y:d}=a(f,m,c))),e=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:p}})(t,n,{...r,platform:i})})(n,e,{strategy:o,placement:"auto"===r||"auto-start"===r||"auto-end"===r?void 0:ut(e,r),middleware:ct({placement:r,flipDisabled:i,flipPlacements:l,offsetDistance:s,offsetSkidding:c,arrowEl:f,type:u})});if(f&&g.arrow){const{x:n,y:e}=g.arrow,o=p.split("-")[0],r=null!=n?"left":"top",i=pt[o],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout="left"===o||"right"===o?"horizontal":"vertical"),Object.assign(f.style,{...a,[r]:`${"left"==r?n:e}px`,[o]:"100%",transform:i})}const h=g.hide?.referenceHidden,x=h?"hidden":null,v=x?"none":null;e.setAttribute("data-placement",p);const b=`translate(${Math.round(d)}px,${Math.round(m)}px)`;Object.assign(e.style,{visibility:x,pointerEvents:v,position:y,top:"0",left:"0",transform:b})}const gt=new WeakMap;function ht(t,n,e){e&&n&&(xt(t,n,e),Object.assign(e.style,{visibility:"hidden",pointerEvents:"none",position:t.overlayPositioning,top:"0",left:"0"}),gt.set(t,function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=o,s=r||i?[...C(t)?K(t):t.contextElement?K(t.contextElement):[],...K(n)]:[];s.forEach((t=>{const n=!C(t)&&t.toString().includes("V");!r||l&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let c,f=null;a&&(f=new ResizeObserver((()=>{e()})),C(t)&&!l&&f.observe(t),C(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(n));let u=l?G(t):null;return l&&function n(){const o=G(t);!u||o.x===u.x&&o.y===u.y&&o.width===u.width&&o.height===u.height||e(),u=o,c=requestAnimationFrame(n)}(),e(),()=>{var t;s.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(c)}}(n,e,(()=>t.reposition()))))}function xt(t,n,e){if(!e||!n)return;const o=gt.get(t);o&&o(),gt.delete(t)}const vt=Math.ceil(Math.hypot(4,4));export{st as F,xt as a,vt as b,ht as c,lt as d,ft as f,dt as r}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
6
  var t="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),e=r.Symbol,o=Object.prototype,i=o.hasOwnProperty,u=o.toString,f=e?e.toStringTag:void 0,a=Object.prototype.toString,c=e?e.toStringTag:void 0;function v(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var n=i.call(t,f),r=t[f];try{t[f]=void 0;var e=!0}catch(t){}var o=u.call(t);return e&&(n?t[f]=r:delete t[f]),o}(t):function(t){return a.call(t)}(t)}function l(t){return null!=t&&"object"==typeof t}function s(t){return"symbol"==typeof t||l(t)&&"[object Symbol]"==v(t)}var b=/\s/,d=/^\s+/;function p(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}var y=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,m=/^0o[0-7]+$/i,T=parseInt;function g(t){if("number"==typeof t)return t;if(s(t))return NaN;if(p(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=p(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;var r;t=(r=t)?r.slice(0,function(t){for(var n=t.length;n--&&b.test(t.charAt(n)););return n}(r)+1).replace(d,""):r;var e=j.test(t);return e||m.test(t)?T(t.slice(2),e?2:8):y.test(t)?NaN:+t}var h=function(){return r.Date.now()},N=Math.max,O=Math.min;function x(t,n,r){var e,o,i,u,f,a,c=0,v=!1,l=!1,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(n){var r=e,i=o;return e=o=void 0,c=n,u=t.apply(i,r)}function d(t){return c=t,f=setTimeout(j,n),v?b(t):u}function y(t){var r=t-a;return void 0===a||r>=n||r<0||l&&t-c>=i}function j(){var t=h();if(y(t))return m(t);f=setTimeout(j,function(t){var r=n-(t-a);return l?O(r,i-(t-c)):r}(t))}function m(t){return f=void 0,s&&e?b(t):(e=o=void 0,u)}function T(){var t=h(),r=y(t);if(e=arguments,o=this,a=t,r){if(void 0===f)return d(a);if(l)return clearTimeout(f),f=setTimeout(j,n),b(a)}return void 0===f&&(f=setTimeout(j,n)),u}return n=g(n)||0,p(r)&&(v=!!r.leading,i=(l="maxWait"in r)?N(g(r.maxWait)||0,n):i,s="trailing"in r?!!r.trailing:s),T.cancel=function(){void 0!==f&&clearTimeout(f),c=0,e=a=o=f=void 0},T.flush=function(){return void 0===f?u:m(h())},T}export{e as S,s as a,v as b,l as c,x as d,t as f,p as i,r}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as t,c as i,h as a,H as e,a as o}from"./p-20d9af3e.js";import{g as s}from"./p-b66c6929.js";import{b as n,f as r,t as c}from"./p-2dd9e177.js";import{c as d,d as l,H as h}from"./p-531eeaae.js";import{g as m}from"./p-a891e53e.js";import{u}from"./p-8c16227b.js";import{c as p,d as f,g as b}from"./p-4d365d2d.js";import{c as v,s as k,a as x}from"./p-b735fea7.js";import"./p-5bd2cf61.js";const g=class{constructor(a){t(this,a),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((t=>t.name===this.name)),this.isDefaultSelectable=()=>{const t=this.queryButtons();return!t.some((t=>t.checked))&&t[0]===this.el},this.check=()=>{this.disabled||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.focused=!0,this.calciteRadioButtonChange.emit(),this.setFocus())},this.clickHandler=()=>{this.disabled||this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const{key:i}=t,{el:a}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return this.check(),void t.preventDefault();let e=i;"rtl"===n(a)&&("ArrowRight"===i&&(e="ArrowLeft"),"ArrowLeft"===i&&(e="ArrowRight"));const o=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let r=0;const c=o.length;switch(o.some(((t,i)=>{if(t.checked)return r=i,!0})),e){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(o,s(Math.max(r-1,-1),c));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(o,s(r+1,c));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.form=void 0,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await v(this),this.disabled||r(this.containerEl)}syncHiddenFormInput(t){t.type="radio"}onLabelClick(t){if(!this.disabled&&!this.hidden){this.uncheckOtherRadioButtonsInGroup();const i=t.currentTarget,a=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);a&&(a.checked=!0,a.focused=!0),this.calciteRadioButtonChange.emit(),this.setFocus()}}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if(t?.length>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isDefaultSelectable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${m()}`,this.name&&this.checkLastRadioButton(),p(this),d(this)}componentWillLoad(){k(this)}componentDidLoad(){x(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){f(this),l(this)}componentDidRender(){u(this)}render(){const t=this.getTabIndex();return a(e,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},a("div",{"aria-checked":c(this.checked),"aria-label":b(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"radio",tabIndex:t,ref:this.setContainerEl},a("div",{class:"radio"})),a(h,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};g.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';export{g as calcite_radio_button}
6
+ import{r as t,c as i,h as a,H as e,a as o}from"./p-45bc485a.js";import{g as s}from"./p-17c0b1c0.js";import{b as n,f as r,t as c}from"./p-c7f9bd7e.js";import{c as d,d as l,H as h}from"./p-43d03fd8.js";import{g as m}from"./p-c2b67777.js";import{u}from"./p-b7b0abbc.js";import{c as p,d as f,g as b}from"./p-4a73cb57.js";import{c as v,s as k,a as x}from"./p-89505d85.js";import"./p-ff449e3b.js";const g=class{constructor(a){t(this,a),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((t=>t.name===this.name)),this.isDefaultSelectable=()=>{const t=this.queryButtons();return!t.some((t=>t.checked))&&t[0]===this.el},this.check=()=>{this.disabled||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.focused=!0,this.calciteRadioButtonChange.emit(),this.setFocus())},this.clickHandler=()=>{this.disabled||this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const{key:i}=t,{el:a}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return this.check(),void t.preventDefault();let e=i;"rtl"===n(a)&&("ArrowRight"===i&&(e="ArrowLeft"),"ArrowLeft"===i&&(e="ArrowRight"));const o=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let r=0;const c=o.length;switch(o.some(((t,i)=>{if(t.checked)return r=i,!0})),e){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(o,s(Math.max(r-1,-1),c));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(o,s(r+1,c));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.form=void 0,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await v(this),this.disabled||r(this.containerEl)}syncHiddenFormInput(t){t.type="radio"}onLabelClick(t){if(!this.disabled&&!this.hidden){this.uncheckOtherRadioButtonsInGroup();const i=t.currentTarget,a=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);a&&(a.checked=!0,a.focused=!0),this.calciteRadioButtonChange.emit(),this.setFocus()}}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if(t?.length>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isDefaultSelectable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${m()}`,this.name&&this.checkLastRadioButton(),p(this),d(this)}componentWillLoad(){k(this)}componentDidLoad(){x(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){f(this),l(this)}componentDidRender(){u(this)}render(){const t=this.getTabIndex();return a(e,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},a("div",{"aria-checked":c(this.checked),"aria-label":b(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"radio",tabIndex:t,ref:this.setContainerEl},a("div",{class:"radio"})),a(h,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};g.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';export{g as calcite_radio_button}
@@ -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.4.0-next.20
4
+ * v1.4.0-next.21
5
5
  */
6
- import{r as a,c as t,h as i,a as e}from"./p-20d9af3e.js";import{t as n}from"./p-2dd9e177.js";import{s as c,a as r,c as o}from"./p-b735fea7.js";import{c as s,d as l}from"./p-b56dd822.js";import{c as m,s as d,d as h,u as f}from"./p-1cb92832.js";import"./p-a891e53e.js";import"./p-5bd2cf61.js";import"./p-6c6b3e21.js";import"./p-80947474.js";const p=class{constructor(i){a(this,i),this.calciteHandleNudge=t(this,"calciteHandleNudge",6),this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated,a.preventDefault();break;case"ArrowUp":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"up"});break;case"ArrowDown":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"down"})}},this.handleBlur=()=>{this.activated=!1},this.activated=!1,this.dragHandle=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}connectedCallback(){m(this),s(this)}async componentWillLoad(){c(this),await d(this)}componentDidLoad(){r(this)}disconnectedCallback(){h(this),l(this)}effectiveLocaleChange(){f(this,this.effectiveLocale)}async setFocus(){await o(this),this.handleButton?.focus()}render(){return i("span",{"aria-pressed":n(this.activated),class:{handle:!0,"handle--activated":this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0",title:this.messages.dragHandle,ref:a=>{this.handleButton=a}},i("calcite-icon",{icon:"drag",scale:"s"}))}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};p.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host{display:flex}.handle{display:flex;cursor:move;align-items:center;justify-content:center;align-self:stretch;border-style:none;background-color:transparent;outline-color:transparent;color:var(--calcite-ui-border-input);padding-block:0.75rem;padding-inline:0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}";export{p as calcite_handle}
6
+ import{r as a,c as t,h as i,a as e}from"./p-45bc485a.js";import{t as n}from"./p-c7f9bd7e.js";import{s as c,a as r,c as o}from"./p-89505d85.js";import{c as s,d as l}from"./p-e0e1b52b.js";import{c as m,s as d,d as f,u as h}from"./p-6c30c9f4.js";import"./p-c2b67777.js";import"./p-ff449e3b.js";import"./p-15c00b78.js";import"./p-f68443a2.js";const p=class{constructor(i){a(this,i),this.calciteHandleNudge=t(this,"calciteHandleNudge",6),this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated,a.preventDefault();break;case"ArrowUp":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"up"});break;case"ArrowDown":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"down"})}},this.handleBlur=()=>{this.activated=!1},this.activated=!1,this.dragHandle=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}connectedCallback(){m(this),s(this)}async componentWillLoad(){c(this),await d(this)}componentDidLoad(){r(this)}disconnectedCallback(){f(this),l(this)}effectiveLocaleChange(){h(this,this.effectiveLocale)}async setFocus(){await o(this),this.handleButton?.focus()}render(){return i("span",{"aria-pressed":n(this.activated),class:{handle:!0,"handle--activated":this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0",title:this.messages.dragHandle,ref:a=>{this.handleButton=a}},i("calcite-icon",{icon:"drag",scale:"s"}))}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};p.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown)}:host([hidden]){display:none}:host{display:flex}.handle{display:flex;cursor:move;align-items:center;justify-content:center;align-self:stretch;border-style:none;background-color:transparent;outline-color:transparent;color:var(--calcite-ui-border-input);padding-block:0.75rem;padding-inline:0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}";export{p as calcite_handle}