@esri/calcite-components 1.0.4-next.1 → 1.0.4-next.3

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 (660) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/calcite/calcite.esm.js +2 -2
  3. package/dist/calcite/index.esm.js +1 -1
  4. package/dist/calcite/{p-776bd6fe.js → p-00fb80c6.js} +1 -1
  5. package/dist/calcite/{p-82a69866.entry.js → p-02d67678.entry.js} +2 -2
  6. package/dist/calcite/{p-f1ca850e.entry.js → p-082c36bb.entry.js} +2 -2
  7. package/dist/calcite/{p-daff5cd8.entry.js → p-09018875.entry.js} +2 -2
  8. package/dist/calcite/{p-0cdbce46.entry.js → p-0a29f48b.entry.js} +2 -2
  9. package/dist/calcite/{p-6999b5a2.entry.js → p-0e8af323.entry.js} +2 -2
  10. package/dist/calcite/{p-8832a5db.entry.js → p-0fb0a260.entry.js} +2 -2
  11. package/dist/calcite/{p-e66cd738.entry.js → p-0fce854d.entry.js} +2 -2
  12. package/dist/calcite/{p-de290d01.entry.js → p-139858e9.entry.js} +2 -2
  13. package/dist/calcite/{p-9bd46a0a.js → p-168b9252.js} +1 -1
  14. package/dist/calcite/{p-a1924c95.entry.js → p-190d8acd.entry.js} +2 -2
  15. package/dist/calcite/{p-8f34215a.js → p-1b5aedf5.js} +1 -1
  16. package/dist/calcite/{p-962febd2.entry.js → p-20670d13.entry.js} +2 -2
  17. package/dist/calcite/{p-fb052bfc.entry.js → p-21a1c05c.entry.js} +2 -2
  18. package/dist/calcite/{p-a2f24ecd.js → p-231af337.js} +2 -2
  19. package/dist/calcite/{p-088beec0.entry.js → p-238b17a9.entry.js} +2 -2
  20. package/dist/calcite/{p-ad2ed733.entry.js → p-26b6afe4.entry.js} +2 -2
  21. package/dist/calcite/{p-9eafa133.entry.js → p-2d06d071.entry.js} +2 -2
  22. package/dist/calcite/p-30b16ee7.js +6 -0
  23. package/dist/calcite/{p-e5d37e6c.entry.js → p-31d920de.entry.js} +2 -2
  24. package/dist/calcite/{p-336172ed.entry.js → p-322905c1.entry.js} +2 -2
  25. package/dist/calcite/{p-29eafa1b.js → p-322ea05d.js} +2 -2
  26. package/dist/calcite/{p-de809cf2.entry.js → p-3625a625.entry.js} +2 -2
  27. package/dist/calcite/{p-75d43e2b.entry.js → p-363ff7b8.entry.js} +2 -2
  28. package/dist/calcite/{p-86181526.entry.js → p-38cc2c04.entry.js} +2 -2
  29. package/dist/calcite/{p-3784823d.js → p-3d7c1780.js} +1 -1
  30. package/dist/calcite/{p-c6036fcb.entry.js → p-3fc05b76.entry.js} +2 -2
  31. package/dist/calcite/{p-cebc4397.entry.js → p-414f053f.entry.js} +2 -2
  32. package/dist/calcite/{p-c5e8ae82.js → p-43551a1e.js} +1 -1
  33. package/dist/calcite/{p-5a8c4fc8.entry.js → p-449797f7.entry.js} +2 -2
  34. package/dist/calcite/{p-e47ac2cd.js → p-462f3d73.js} +2 -2
  35. package/dist/calcite/{p-dc867530.js → p-4e8b8de5.js} +2 -2
  36. package/dist/calcite/{p-789ce85d.entry.js → p-4f796b7e.entry.js} +2 -2
  37. package/dist/calcite/{p-fadffec5.entry.js → p-50a93ffc.entry.js} +2 -2
  38. package/dist/calcite/{p-b574e67b.entry.js → p-511347b7.entry.js} +2 -2
  39. package/dist/calcite/{p-2a492c3c.entry.js → p-52443d96.entry.js} +2 -2
  40. package/dist/calcite/{p-252220da.entry.js → p-538742e9.entry.js} +2 -2
  41. package/dist/calcite/{p-dfc48405.js → p-54ce87f0.js} +2 -2
  42. package/dist/calcite/{p-06b1cbd1.js → p-5dd8e31d.js} +1 -1
  43. package/dist/calcite/{p-fa77fc91.js → p-60a4aa82.js} +1 -1
  44. package/dist/calcite/{p-354c5edb.js → p-67cbfedd.js} +1 -1
  45. package/dist/calcite/{p-01f961a4.entry.js → p-6b9d652e.entry.js} +2 -2
  46. package/dist/calcite/{p-f3537889.entry.js → p-6e10a6ff.entry.js} +2 -2
  47. package/dist/calcite/{p-f629bf5e.js → p-6e27aba9.js} +2 -2
  48. package/dist/calcite/{p-868e52f5.entry.js → p-6ecf49c7.entry.js} +2 -2
  49. package/dist/calcite/{p-9d50a9a5.js → p-6f7787a7.js} +2 -2
  50. package/dist/calcite/{p-7748f8ce.entry.js → p-70af0aa8.entry.js} +2 -2
  51. package/dist/calcite/{p-75c27b64.entry.js → p-7d64e5df.entry.js} +2 -2
  52. package/dist/calcite/{p-77892551.entry.js → p-7ef2dc9e.entry.js} +2 -2
  53. package/dist/calcite/p-82bd2418.entry.js +6 -0
  54. package/dist/calcite/{p-e5940b26.entry.js → p-84155c63.entry.js} +2 -2
  55. package/dist/calcite/{p-dcb71db4.entry.js → p-847da719.entry.js} +2 -2
  56. package/dist/calcite/{p-318665f3.entry.js → p-85f1ab50.entry.js} +2 -2
  57. package/dist/calcite/{p-a6d8f60f.js → p-8655c622.js} +1 -1
  58. package/dist/calcite/{p-a1b0d8cd.js → p-870c92b8.js} +1 -1
  59. package/dist/calcite/{p-4fa9547a.js → p-882373b6.js} +2 -2
  60. package/dist/calcite/p-8ed979c2.entry.js +6 -0
  61. package/dist/calcite/{p-7129b555.entry.js → p-8faed266.entry.js} +2 -2
  62. package/dist/calcite/{p-b3d97e7f.entry.js → p-956b56e8.entry.js} +2 -2
  63. package/dist/calcite/{p-d6917686.js → p-97d97a05.js} +3 -3
  64. package/dist/calcite/{p-4852bbca.entry.js → p-98851303.entry.js} +2 -2
  65. package/dist/calcite/{p-3b440428.entry.js → p-9e7fa285.entry.js} +2 -2
  66. package/dist/calcite/{p-7fa24b50.entry.js → p-9f58cbd0.entry.js} +2 -2
  67. package/dist/calcite/{p-3db71314.js → p-a19eac5f.js} +1 -1
  68. package/dist/calcite/{p-85db137d.entry.js → p-a380408f.entry.js} +2 -2
  69. package/dist/calcite/{p-cd6dd966.js → p-a3cb8f5e.js} +2 -2
  70. package/dist/calcite/{p-05acdf1c.entry.js → p-a77f13ed.entry.js} +2 -2
  71. package/dist/calcite/{p-4c7dc39a.js → p-ad1a5423.js} +1 -1
  72. package/dist/calcite/{p-b8f975f0.entry.js → p-ae55b30b.entry.js} +2 -2
  73. package/dist/calcite/{p-4c3a83fd.js → p-b5f2d8f1.js} +3 -3
  74. package/dist/calcite/{p-1071fb36.entry.js → p-bbf27551.entry.js} +2 -2
  75. package/dist/calcite/{p-7af2ebcd.js → p-bfc6d2d0.js} +1 -1
  76. package/dist/calcite/{p-e8d17c86.js → p-c0bdbdae.js} +1 -1
  77. package/dist/calcite/{p-2e915ad9.entry.js → p-c45f6214.entry.js} +2 -2
  78. package/dist/calcite/{p-1612e8d4.js → p-c5e974c4.js} +2 -2
  79. package/dist/calcite/{p-cd3df430.js → p-ca232f52.js} +2 -2
  80. package/dist/calcite/{p-24b623d6.entry.js → p-ce6357c9.entry.js} +2 -2
  81. package/dist/calcite/{p-5f5132bc.entry.js → p-cfc19ba7.entry.js} +2 -2
  82. package/dist/calcite/{p-7c66ffa5.entry.js → p-cfc96af0.entry.js} +2 -2
  83. package/dist/calcite/{p-49f5ddcf.entry.js → p-cfd09030.entry.js} +2 -2
  84. package/dist/calcite/p-d23edb07.js +6 -0
  85. package/dist/calcite/{p-c335a85a.entry.js → p-d391dd01.entry.js} +2 -2
  86. package/dist/calcite/{p-9780a1e1.js → p-d54e062b.js} +1 -1
  87. package/dist/calcite/{p-7e1c31b9.entry.js → p-d9490d37.entry.js} +2 -2
  88. package/dist/calcite/{p-91073236.entry.js → p-db2a584b.entry.js} +2 -2
  89. package/dist/calcite/{p-434d2755.entry.js → p-e65e81ba.entry.js} +2 -2
  90. package/dist/calcite/{p-7f5c4915.js → p-e91ff91b.js} +1 -1
  91. package/dist/calcite/{p-180cca7c.entry.js → p-f2ffddc1.entry.js} +2 -2
  92. package/dist/calcite/{p-425fc804.entry.js → p-f94a2ff4.entry.js} +2 -2
  93. package/dist/calcite/{p-e4fa9a15.entry.js → p-faa251e4.entry.js} +2 -2
  94. package/dist/calcite/p-fc31cbd0.js +6 -0
  95. package/dist/calcite/{p-b8dbeb13.entry.js → p-fe3f1ea4.entry.js} +2 -2
  96. package/dist/cjs/{ExpandToggle-2363789a.js → ExpandToggle-f830f08c.js} +5 -5
  97. package/dist/cjs/{Heading-7215c262.js → Heading-8240a5f4.js} +2 -2
  98. package/dist/cjs/{app-globals-e3d17ead.js → app-globals-be01bec0.js} +2 -2
  99. package/dist/cjs/{array-e7b0474d.js → array-e796a798.js} +1 -1
  100. package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
  101. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  102. package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
  103. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  104. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  105. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  106. package/dist/cjs/calcite-alert.cjs.entry.js +13 -13
  107. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  108. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
  109. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  110. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  111. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  112. package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
  113. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +14 -14
  114. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
  115. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
  116. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  117. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  118. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  119. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
  120. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  121. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  122. package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
  123. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  124. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  125. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
  126. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  127. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
  128. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  129. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -13
  130. package/dist/cjs/calcite-input.cjs.entry.js +14 -14
  131. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  132. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  133. package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
  134. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  135. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  136. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  137. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  138. package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
  139. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  140. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  141. package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
  142. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  143. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  144. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  145. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  146. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  147. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
  148. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  149. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  150. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  151. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  152. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  153. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  154. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  155. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  156. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  157. package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
  158. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  159. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  160. package/dist/cjs/calcite.cjs.js +4 -4
  161. package/dist/cjs/{conditionalSlot-76689329.js → conditionalSlot-bc2679a4.js} +3 -3
  162. package/dist/cjs/{debounce-7afe4f17.js → debounce-13bae6a2.js} +1 -1
  163. package/dist/cjs/{dom-1b8e5198.js → dom-b3669831.js} +3 -3
  164. package/dist/cjs/{filter-7efe32ad.js → filter-dbe93b07.js} +2 -2
  165. package/dist/cjs/{floating-ui-7b81c163.js → floating-ui-d208330d.js} +4 -4
  166. package/dist/cjs/{focusTrapComponent-eb7a1362.js → focusTrapComponent-799cd251.js} +2 -2
  167. package/dist/cjs/{form-e67b4d2a.js → form-c18c2280.js} +3 -3
  168. package/dist/cjs/{guid-c17205f2.js → guid-091ac5ea.js} +1 -1
  169. package/dist/cjs/{index-3c5be6da.js → index-fd714131.js} +1 -1
  170. package/dist/cjs/index.cjs.js +1 -1
  171. package/dist/cjs/{interactive-112def9f.js → interactive-5f1e808e.js} +1 -1
  172. package/dist/cjs/{key-5b64174d.js → key-99f2b192.js} +1 -1
  173. package/dist/cjs/{label-eedd47c5.js → label-46caca3a.js} +2 -2
  174. package/dist/cjs/{loadable-217b0191.js → loadable-23a84e0e.js} +1 -1
  175. package/dist/cjs/loader.cjs.js +4 -4
  176. package/dist/cjs/{locale-ac606830.js → locale-8c4134d2.js} +4 -4
  177. package/dist/cjs/{math-e54757e6.js → math-4c1aa82b.js} +1 -1
  178. package/dist/cjs/{nonChromiumPlatformUtils-2ad1ee83.js → nonChromiumPlatformUtils-99e91741.js} +6 -6
  179. package/dist/cjs/{observers-d1b28288.js → observers-01289d76.js} +1 -1
  180. package/dist/cjs/{openCloseComponent-6f0108da.js → openCloseComponent-ad85f5d8.js} +2 -2
  181. package/dist/cjs/{resources-f929f517.js → resources-05bc8f34.js} +1 -1
  182. package/dist/cjs/{resources-be3c1944.js → resources-141a991e.js} +5 -5
  183. package/dist/cjs/{resources-8863bd52.js → resources-19f88264.js} +1 -1
  184. package/dist/cjs/{resources-87e96778.js → resources-75067543.js} +1 -1
  185. package/dist/cjs/{resources-e25967a0.js → resources-cca86eb7.js} +1 -1
  186. package/dist/cjs/{resources-ad3e2189.js → resources-fef86fa7.js} +1 -1
  187. package/dist/cjs/{sortable.esm-9076b83a.js → sortable.esm-d743ee4e.js} +1 -1
  188. package/dist/cjs/{t9n-8e11963c.js → t9n-15212a7a.js} +3 -3
  189. package/dist/cjs/{utils-9a048cff.js → utils-7df7598d.js} +1 -1
  190. package/dist/cjs/{utils-774258a0.js → utils-c70ca0e0.js} +3 -3
  191. package/dist/collection/components/accordion/accordion.js +1 -1
  192. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  193. package/dist/collection/components/accordion-item/resources.js +1 -1
  194. package/dist/collection/components/action/action.js +1 -1
  195. package/dist/collection/components/action/resources.js +1 -1
  196. package/dist/collection/components/action-bar/action-bar.js +1 -1
  197. package/dist/collection/components/action-bar/resources.js +1 -1
  198. package/dist/collection/components/action-bar/utils.js +1 -1
  199. package/dist/collection/components/action-group/action-group.js +1 -1
  200. package/dist/collection/components/action-group/resources.js +1 -1
  201. package/dist/collection/components/action-menu/action-menu.js +1 -1
  202. package/dist/collection/components/action-menu/resources.js +1 -1
  203. package/dist/collection/components/action-pad/action-pad.js +1 -1
  204. package/dist/collection/components/action-pad/resources.js +1 -1
  205. package/dist/collection/components/alert/alert.css +4 -2
  206. package/dist/collection/components/alert/alert.js +1 -1
  207. package/dist/collection/components/alert/resources.js +1 -1
  208. package/dist/collection/components/avatar/avatar.js +1 -1
  209. package/dist/collection/components/avatar/utils.js +1 -1
  210. package/dist/collection/components/block/block.js +1 -1
  211. package/dist/collection/components/block/resources.js +1 -1
  212. package/dist/collection/components/block-section/block-section.js +1 -1
  213. package/dist/collection/components/block-section/resources.js +1 -1
  214. package/dist/collection/components/button/button.js +1 -1
  215. package/dist/collection/components/button/resources.js +1 -1
  216. package/dist/collection/components/card/card.js +1 -1
  217. package/dist/collection/components/card/resources.js +1 -1
  218. package/dist/collection/components/checkbox/checkbox.js +1 -1
  219. package/dist/collection/components/chip/chip.js +1 -1
  220. package/dist/collection/components/chip/resources.js +1 -1
  221. package/dist/collection/components/color-picker/color-picker.js +1 -1
  222. package/dist/collection/components/color-picker/resources.js +1 -1
  223. package/dist/collection/components/color-picker/utils.js +1 -1
  224. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  225. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  226. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  227. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  228. package/dist/collection/components/combobox/combobox.js +1 -1
  229. package/dist/collection/components/combobox/resources.js +1 -1
  230. package/dist/collection/components/combobox/utils.js +1 -1
  231. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  232. package/dist/collection/components/combobox-item/resources.js +1 -1
  233. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  234. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  235. package/dist/collection/components/date-picker/date-picker.js +1 -1
  236. package/dist/collection/components/date-picker/resources.js +1 -1
  237. package/dist/collection/components/date-picker/utils.js +1 -1
  238. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  239. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  240. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  241. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  242. package/dist/collection/components/dropdown/dropdown.js +1 -1
  243. package/dist/collection/components/dropdown/resources.js +1 -1
  244. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  245. package/dist/collection/components/dropdown-group/resources.js +1 -1
  246. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  247. package/dist/collection/components/dropdown-item/resources.js +1 -1
  248. package/dist/collection/components/fab/fab.js +1 -1
  249. package/dist/collection/components/fab/resources.js +1 -1
  250. package/dist/collection/components/filter/filter.js +1 -1
  251. package/dist/collection/components/filter/resources.js +1 -1
  252. package/dist/collection/components/flow/flow.js +1 -1
  253. package/dist/collection/components/flow/resources.js +1 -1
  254. package/dist/collection/components/flow-item/flow-item.js +1 -1
  255. package/dist/collection/components/flow-item/resources.js +1 -1
  256. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  257. package/dist/collection/components/functional/Heading.js +1 -1
  258. package/dist/collection/components/graph/graph.js +1 -1
  259. package/dist/collection/components/graph/util.js +1 -1
  260. package/dist/collection/components/handle/handle.js +1 -1
  261. package/dist/collection/components/handle/resources.js +1 -1
  262. package/dist/collection/components/icon/icon.js +1 -1
  263. package/dist/collection/components/icon/resources.js +1 -1
  264. package/dist/collection/components/icon/utils.js +1 -1
  265. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  266. package/dist/collection/components/inline-editable/resources.js +1 -1
  267. package/dist/collection/components/input/input.js +1 -1
  268. package/dist/collection/components/input/resources.js +1 -1
  269. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  270. package/dist/collection/components/input-date-picker/resources.js +1 -1
  271. package/dist/collection/components/input-message/input-message.js +1 -1
  272. package/dist/collection/components/input-message/interfaces.js +1 -1
  273. package/dist/collection/components/input-number/input-number.js +1 -1
  274. package/dist/collection/components/input-number/resources.js +1 -1
  275. package/dist/collection/components/input-text/input-text.js +1 -1
  276. package/dist/collection/components/input-text/resources.js +1 -1
  277. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  278. package/dist/collection/components/label/label.js +1 -1
  279. package/dist/collection/components/label/resources.js +1 -1
  280. package/dist/collection/components/link/link.js +1 -1
  281. package/dist/collection/components/list/list.js +1 -1
  282. package/dist/collection/components/list/resources.js +1 -1
  283. package/dist/collection/components/list-item/list-item.js +1 -1
  284. package/dist/collection/components/list-item/resources.js +1 -1
  285. package/dist/collection/components/list-item/utils.js +1 -1
  286. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  287. package/dist/collection/components/list-item-group/resources.js +1 -1
  288. package/dist/collection/components/loader/loader.js +1 -1
  289. package/dist/collection/components/modal/modal.js +1 -1
  290. package/dist/collection/components/modal/resources.js +1 -1
  291. package/dist/collection/components/notice/notice.js +1 -1
  292. package/dist/collection/components/notice/resources.js +1 -1
  293. package/dist/collection/components/option/option.js +1 -1
  294. package/dist/collection/components/option-group/option-group.js +1 -1
  295. package/dist/collection/components/pagination/pagination.js +1 -1
  296. package/dist/collection/components/pagination/resources.js +1 -1
  297. package/dist/collection/components/panel/panel.js +1 -1
  298. package/dist/collection/components/panel/resources.js +1 -1
  299. package/dist/collection/components/pick-list/pick-list.js +1 -1
  300. package/dist/collection/components/pick-list/resources.js +1 -1
  301. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  302. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  303. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  304. package/dist/collection/components/pick-list-group/resources.js +1 -1
  305. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  306. package/dist/collection/components/pick-list-item/resources.js +1 -1
  307. package/dist/collection/components/popover/PopoverManager.js +1 -1
  308. package/dist/collection/components/popover/popover.js +1 -1
  309. package/dist/collection/components/popover/resources.js +1 -1
  310. package/dist/collection/components/progress/progress.js +1 -1
  311. package/dist/collection/components/radio-button/radio-button.js +1 -1
  312. package/dist/collection/components/radio-button/resources.js +1 -1
  313. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  314. package/dist/collection/components/rating/function/star.js +1 -1
  315. package/dist/collection/components/rating/rating.js +1 -1
  316. package/dist/collection/components/resources.js +1 -1
  317. package/dist/collection/components/scrim/resources.js +1 -1
  318. package/dist/collection/components/scrim/scrim.js +1 -1
  319. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  320. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  321. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  322. package/dist/collection/components/select/resources.js +1 -1
  323. package/dist/collection/components/select/select.js +1 -1
  324. package/dist/collection/components/shell/resources.js +1 -1
  325. package/dist/collection/components/shell/shell.js +1 -1
  326. package/dist/collection/components/shell-center-row/resources.js +1 -1
  327. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  328. package/dist/collection/components/shell-panel/resources.js +1 -1
  329. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  330. package/dist/collection/components/slider/resources.js +1 -1
  331. package/dist/collection/components/slider/slider.js +1 -1
  332. package/dist/collection/components/sortable-list/resources.js +1 -1
  333. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  334. package/dist/collection/components/split-button/resources.js +1 -1
  335. package/dist/collection/components/split-button/split-button.js +1 -1
  336. package/dist/collection/components/stepper/stepper.js +1 -1
  337. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  338. package/dist/collection/components/switch/switch.js +1 -1
  339. package/dist/collection/components/tab/tab.js +1 -1
  340. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  341. package/dist/collection/components/tab-title/resources.js +1 -1
  342. package/dist/collection/components/tab-title/tab-title.js +1 -1
  343. package/dist/collection/components/tabs/resources.js +1 -1
  344. package/dist/collection/components/tabs/tabs.js +1 -1
  345. package/dist/collection/components/tile/resources.js +1 -1
  346. package/dist/collection/components/tile/tile.js +1 -1
  347. package/dist/collection/components/tile-select/resources.js +1 -1
  348. package/dist/collection/components/tile-select/tile-select.js +1 -1
  349. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  350. package/dist/collection/components/time-picker/resources.js +1 -1
  351. package/dist/collection/components/time-picker/time-picker.js +1 -1
  352. package/dist/collection/components/tip/resources.js +1 -1
  353. package/dist/collection/components/tip/tip.js +1 -1
  354. package/dist/collection/components/tip-group/tip-group.js +1 -1
  355. package/dist/collection/components/tip-manager/resources.js +1 -1
  356. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  357. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  358. package/dist/collection/components/tooltip/resources.js +1 -1
  359. package/dist/collection/components/tooltip/tooltip.js +1 -1
  360. package/dist/collection/components/tree/tree.js +1 -1
  361. package/dist/collection/components/tree/utils.js +1 -1
  362. package/dist/collection/components/tree-item/resources.js +1 -1
  363. package/dist/collection/components/tree-item/tree-item.js +1 -1
  364. package/dist/collection/components/value-list/resources.js +1 -1
  365. package/dist/collection/components/value-list/utils.js +1 -1
  366. package/dist/collection/components/value-list/value-list.js +1 -1
  367. package/dist/collection/components/value-list-item/resources.js +1 -1
  368. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  369. package/dist/collection/utils/array.js +1 -1
  370. package/dist/collection/utils/conditionalSlot.js +1 -1
  371. package/dist/collection/utils/config.js +1 -1
  372. package/dist/collection/utils/date.js +1 -1
  373. package/dist/collection/utils/dom.js +1 -1
  374. package/dist/collection/utils/filter.js +1 -1
  375. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  376. package/dist/collection/utils/floating-ui.js +1 -1
  377. package/dist/collection/utils/focusTrapComponent.js +1 -1
  378. package/dist/collection/utils/form.js +1 -1
  379. package/dist/collection/utils/globalAttributes.js +1 -1
  380. package/dist/collection/utils/globalScript.js +1 -1
  381. package/dist/collection/utils/guid.js +1 -1
  382. package/dist/collection/utils/interactive.js +1 -1
  383. package/dist/collection/utils/key.js +1 -1
  384. package/dist/collection/utils/label.js +1 -1
  385. package/dist/collection/utils/loadable.js +1 -1
  386. package/dist/collection/utils/locale.js +1 -1
  387. package/dist/collection/utils/math.js +1 -1
  388. package/dist/collection/utils/mode.js +1 -1
  389. package/dist/collection/utils/number.js +1 -1
  390. package/dist/collection/utils/observers.js +1 -1
  391. package/dist/collection/utils/openCloseComponent.js +1 -1
  392. package/dist/collection/utils/resources.js +1 -1
  393. package/dist/collection/utils/t9n.js +1 -1
  394. package/dist/collection/utils/time.js +1 -1
  395. package/dist/components/ExpandToggle.js +1 -1
  396. package/dist/components/Heading.js +1 -1
  397. package/dist/components/action-group.js +1 -1
  398. package/dist/components/action-menu.js +1 -1
  399. package/dist/components/action.js +1 -1
  400. package/dist/components/array.js +1 -1
  401. package/dist/components/button.js +1 -1
  402. package/dist/components/calcite-accordion-item.js +2 -2
  403. package/dist/components/calcite-accordion.js +1 -1
  404. package/dist/components/calcite-action-bar.js +1 -1
  405. package/dist/components/calcite-action-group.js +1 -1
  406. package/dist/components/calcite-action-menu.js +1 -1
  407. package/dist/components/calcite-action-pad.js +1 -1
  408. package/dist/components/calcite-action.js +1 -1
  409. package/dist/components/calcite-alert.js +2 -2
  410. package/dist/components/calcite-avatar.js +1 -1
  411. package/dist/components/calcite-block-section.js +1 -1
  412. package/dist/components/calcite-block.js +1 -1
  413. package/dist/components/calcite-button.js +1 -1
  414. package/dist/components/calcite-card.js +1 -1
  415. package/dist/components/calcite-checkbox.js +1 -1
  416. package/dist/components/calcite-chip.js +1 -1
  417. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  418. package/dist/components/calcite-color-picker-swatch.js +1 -1
  419. package/dist/components/calcite-color-picker.js +1 -1
  420. package/dist/components/calcite-combobox-item-group.js +1 -1
  421. package/dist/components/calcite-combobox-item.js +1 -1
  422. package/dist/components/calcite-combobox.js +1 -1
  423. package/dist/components/calcite-date-picker-day.js +1 -1
  424. package/dist/components/calcite-date-picker-month-header.js +1 -1
  425. package/dist/components/calcite-date-picker-month.js +1 -1
  426. package/dist/components/calcite-date-picker.js +1 -1
  427. package/dist/components/calcite-dropdown-group.js +1 -1
  428. package/dist/components/calcite-dropdown-item.js +1 -1
  429. package/dist/components/calcite-dropdown.js +1 -1
  430. package/dist/components/calcite-fab.js +1 -1
  431. package/dist/components/calcite-filter.js +1 -1
  432. package/dist/components/calcite-flow-item.js +1 -1
  433. package/dist/components/calcite-flow.js +1 -1
  434. package/dist/components/calcite-graph.js +1 -1
  435. package/dist/components/calcite-handle.js +1 -1
  436. package/dist/components/calcite-icon.js +1 -1
  437. package/dist/components/calcite-inline-editable.js +1 -1
  438. package/dist/components/calcite-input-date-picker.js +1 -1
  439. package/dist/components/calcite-input-message.js +1 -1
  440. package/dist/components/calcite-input-number.js +1 -1
  441. package/dist/components/calcite-input-text.js +1 -1
  442. package/dist/components/calcite-input-time-picker.js +1 -1
  443. package/dist/components/calcite-input.js +1 -1
  444. package/dist/components/calcite-label.js +1 -1
  445. package/dist/components/calcite-link.js +1 -1
  446. package/dist/components/calcite-list-item-group.js +1 -1
  447. package/dist/components/calcite-list-item.js +1 -1
  448. package/dist/components/calcite-list.js +1 -1
  449. package/dist/components/calcite-loader.js +1 -1
  450. package/dist/components/calcite-modal.js +1 -1
  451. package/dist/components/calcite-notice.js +1 -1
  452. package/dist/components/calcite-option-group.js +1 -1
  453. package/dist/components/calcite-option.js +1 -1
  454. package/dist/components/calcite-pagination.js +1 -1
  455. package/dist/components/calcite-panel.js +1 -1
  456. package/dist/components/calcite-pick-list-group.js +1 -1
  457. package/dist/components/calcite-pick-list-item.js +1 -1
  458. package/dist/components/calcite-pick-list.js +1 -1
  459. package/dist/components/calcite-popover.js +1 -1
  460. package/dist/components/calcite-progress.js +1 -1
  461. package/dist/components/calcite-radio-button-group.js +1 -1
  462. package/dist/components/calcite-radio-button.js +1 -1
  463. package/dist/components/calcite-rating.js +1 -1
  464. package/dist/components/calcite-scrim.js +1 -1
  465. package/dist/components/calcite-segmented-control-item.js +1 -1
  466. package/dist/components/calcite-segmented-control.js +1 -1
  467. package/dist/components/calcite-select.js +1 -1
  468. package/dist/components/calcite-shell-center-row.js +1 -1
  469. package/dist/components/calcite-shell-panel.js +1 -1
  470. package/dist/components/calcite-shell.js +1 -1
  471. package/dist/components/calcite-slider.js +1 -1
  472. package/dist/components/calcite-sortable-list.js +1 -1
  473. package/dist/components/calcite-split-button.js +1 -1
  474. package/dist/components/calcite-stepper-item.js +1 -1
  475. package/dist/components/calcite-stepper.js +1 -1
  476. package/dist/components/calcite-switch.js +1 -1
  477. package/dist/components/calcite-tab-nav.js +1 -1
  478. package/dist/components/calcite-tab-title.js +1 -1
  479. package/dist/components/calcite-tab.js +1 -1
  480. package/dist/components/calcite-tabs.js +1 -1
  481. package/dist/components/calcite-tile-select-group.js +1 -1
  482. package/dist/components/calcite-tile-select.js +1 -1
  483. package/dist/components/calcite-tile.js +1 -1
  484. package/dist/components/calcite-time-picker.js +1 -1
  485. package/dist/components/calcite-tip-group.js +1 -1
  486. package/dist/components/calcite-tip-manager.js +1 -1
  487. package/dist/components/calcite-tip.js +1 -1
  488. package/dist/components/calcite-tooltip.js +1 -1
  489. package/dist/components/calcite-tree-item.js +1 -1
  490. package/dist/components/calcite-tree.js +1 -1
  491. package/dist/components/calcite-value-list-item.js +1 -1
  492. package/dist/components/calcite-value-list.js +1 -1
  493. package/dist/components/checkbox.js +1 -1
  494. package/dist/components/chip.js +1 -1
  495. package/dist/components/color-picker-hex-input.js +1 -1
  496. package/dist/components/color-picker-swatch.js +1 -1
  497. package/dist/components/conditionalSlot.js +1 -1
  498. package/dist/components/date-picker-day.js +1 -1
  499. package/dist/components/date-picker-month-header.js +1 -1
  500. package/dist/components/date-picker-month.js +1 -1
  501. package/dist/components/date-picker.js +1 -1
  502. package/dist/components/date.js +1 -1
  503. package/dist/components/debounce.js +1 -1
  504. package/dist/components/dom.js +1 -1
  505. package/dist/components/dropdown.js +1 -1
  506. package/dist/components/filter.js +1 -1
  507. package/dist/components/filter2.js +1 -1
  508. package/dist/components/floating-ui.js +1 -1
  509. package/dist/components/focusTrapComponent.js +1 -1
  510. package/dist/components/form.js +1 -1
  511. package/dist/components/graph.js +1 -1
  512. package/dist/components/guid.js +1 -1
  513. package/dist/components/handle.js +1 -1
  514. package/dist/components/icon.js +1 -1
  515. package/dist/components/index.js +1 -1
  516. package/dist/components/input.js +1 -1
  517. package/dist/components/interactive.js +1 -1
  518. package/dist/components/key.js +1 -1
  519. package/dist/components/label.js +1 -1
  520. package/dist/components/label2.js +1 -1
  521. package/dist/components/link.js +1 -1
  522. package/dist/components/loadable.js +1 -1
  523. package/dist/components/loader.js +1 -1
  524. package/dist/components/locale.js +1 -1
  525. package/dist/components/math.js +1 -1
  526. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  527. package/dist/components/observers.js +1 -1
  528. package/dist/components/openCloseComponent.js +1 -1
  529. package/dist/components/panel.js +1 -1
  530. package/dist/components/pick-list-item.js +1 -1
  531. package/dist/components/popover.js +1 -1
  532. package/dist/components/progress.js +1 -1
  533. package/dist/components/resources.js +1 -1
  534. package/dist/components/resources2.js +1 -1
  535. package/dist/components/resources3.js +1 -1
  536. package/dist/components/scrim.js +1 -1
  537. package/dist/components/shared-list-render.js +1 -1
  538. package/dist/components/sortable.esm.js +1 -1
  539. package/dist/components/switch.js +1 -1
  540. package/dist/components/t9n.js +1 -1
  541. package/dist/components/tab-nav.js +1 -1
  542. package/dist/components/tab-title.js +1 -1
  543. package/dist/components/tab.js +1 -1
  544. package/dist/components/tabs.js +1 -1
  545. package/dist/components/tile.js +1 -1
  546. package/dist/components/time-picker.js +1 -1
  547. package/dist/components/tooltip.js +1 -1
  548. package/dist/components/utils.js +1 -1
  549. package/dist/components/utils2.js +1 -1
  550. package/dist/components/utils3.js +1 -1
  551. package/dist/esm/{ExpandToggle-1957d81e.js → ExpandToggle-09f11355.js} +5 -5
  552. package/dist/esm/{Heading-74f0471e.js → Heading-6fc3290b.js} +2 -2
  553. package/dist/esm/{app-globals-99986300.js → app-globals-89ace5cb.js} +2 -2
  554. package/dist/esm/{array-69e48504.js → array-232ad159.js} +1 -1
  555. package/dist/esm/calcite-accordion_2.entry.js +8 -8
  556. package/dist/esm/calcite-action-bar.entry.js +15 -15
  557. package/dist/esm/calcite-action-group.entry.js +12 -12
  558. package/dist/esm/calcite-action-menu.entry.js +9 -9
  559. package/dist/esm/calcite-action-pad.entry.js +14 -14
  560. package/dist/esm/calcite-action.entry.js +11 -11
  561. package/dist/esm/calcite-alert.entry.js +13 -13
  562. package/dist/esm/calcite-avatar.entry.js +6 -6
  563. package/dist/esm/calcite-block_2.entry.js +12 -12
  564. package/dist/esm/calcite-button.entry.js +13 -13
  565. package/dist/esm/calcite-card.entry.js +10 -10
  566. package/dist/esm/calcite-checkbox.entry.js +10 -10
  567. package/dist/esm/calcite-chip.entry.js +11 -11
  568. package/dist/esm/calcite-color-picker_3.entry.js +14 -14
  569. package/dist/esm/calcite-combobox_3.entry.js +18 -18
  570. package/dist/esm/calcite-date-picker_4.entry.js +12 -12
  571. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  572. package/dist/esm/calcite-fab.entry.js +7 -7
  573. package/dist/esm/calcite-filter.entry.js +13 -13
  574. package/dist/esm/calcite-flow-item.entry.js +12 -12
  575. package/dist/esm/calcite-flow.entry.js +3 -3
  576. package/dist/esm/calcite-graph_2.entry.js +13 -13
  577. package/dist/esm/calcite-handle.entry.js +6 -6
  578. package/dist/esm/calcite-icon.entry.js +6 -6
  579. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  580. package/dist/esm/calcite-input-date-picker.entry.js +16 -16
  581. package/dist/esm/calcite-input-message.entry.js +5 -5
  582. package/dist/esm/calcite-input-number.entry.js +14 -14
  583. package/dist/esm/calcite-input-text.entry.js +13 -13
  584. package/dist/esm/calcite-input-time-picker_2.entry.js +13 -13
  585. package/dist/esm/calcite-input.entry.js +14 -14
  586. package/dist/esm/calcite-label.entry.js +6 -6
  587. package/dist/esm/calcite-link.entry.js +7 -7
  588. package/dist/esm/calcite-list_3.entry.js +9 -9
  589. package/dist/esm/calcite-loader.entry.js +3 -3
  590. package/dist/esm/calcite-modal.entry.js +13 -13
  591. package/dist/esm/calcite-notice.entry.js +12 -12
  592. package/dist/esm/calcite-option_3.entry.js +10 -10
  593. package/dist/esm/calcite-pagination.entry.js +9 -9
  594. package/dist/esm/calcite-panel.entry.js +14 -14
  595. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  596. package/dist/esm/calcite-popover.entry.js +15 -15
  597. package/dist/esm/calcite-progress.entry.js +2 -2
  598. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  599. package/dist/esm/calcite-radio-button.entry.js +10 -10
  600. package/dist/esm/calcite-rating.entry.js +13 -13
  601. package/dist/esm/calcite-scrim.entry.js +9 -9
  602. package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
  603. package/dist/esm/calcite-shell_3.entry.js +11 -11
  604. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  605. package/dist/esm/calcite-split-button.entry.js +3 -3
  606. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  607. package/dist/esm/calcite-switch.entry.js +10 -10
  608. package/dist/esm/calcite-tab_4.entry.js +7 -7
  609. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  610. package/dist/esm/calcite-tile.entry.js +8 -8
  611. package/dist/esm/calcite-tip_3.entry.js +11 -11
  612. package/dist/esm/calcite-tooltip.entry.js +8 -8
  613. package/dist/esm/calcite-tree_2.entry.js +9 -9
  614. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  615. package/dist/esm/calcite.js +4 -4
  616. package/dist/esm/{conditionalSlot-0763bea2.js → conditionalSlot-1b455b8e.js} +3 -3
  617. package/dist/esm/{debounce-26095e18.js → debounce-03956a4e.js} +1 -1
  618. package/dist/esm/{dom-39947472.js → dom-99ae2c9c.js} +3 -3
  619. package/dist/esm/{filter-0169f6f5.js → filter-90861bc5.js} +2 -2
  620. package/dist/esm/{floating-ui-fc311610.js → floating-ui-c2cef6f1.js} +4 -4
  621. package/dist/esm/{focusTrapComponent-5414d552.js → focusTrapComponent-7c46a9cb.js} +2 -2
  622. package/dist/esm/{form-fe021d9d.js → form-ef628813.js} +3 -3
  623. package/dist/esm/{guid-fb423738.js → guid-ea575183.js} +1 -1
  624. package/dist/esm/{index-90b3f02f.js → index-eb969fa0.js} +1 -1
  625. package/dist/esm/index.js +1 -1
  626. package/dist/esm/{interactive-f4341dd1.js → interactive-0c7d06fb.js} +1 -1
  627. package/dist/esm/{key-ffa4462c.js → key-61fa8a52.js} +1 -1
  628. package/dist/esm/{label-38d998fd.js → label-17d08b33.js} +2 -2
  629. package/dist/esm/{loadable-cdc38810.js → loadable-de2d3455.js} +1 -1
  630. package/dist/esm/loader.js +4 -4
  631. package/dist/esm/{locale-1fd8916c.js → locale-959c3f84.js} +4 -4
  632. package/dist/esm/{math-52d54e77.js → math-1bf6c8ad.js} +1 -1
  633. package/dist/esm/{nonChromiumPlatformUtils-85ee3a72.js → nonChromiumPlatformUtils-78371880.js} +6 -6
  634. package/dist/esm/{observers-f70a0380.js → observers-aca9962b.js} +1 -1
  635. package/dist/esm/{openCloseComponent-446f2341.js → openCloseComponent-fdcd28ab.js} +2 -2
  636. package/dist/esm/{resources-17c4d927.js → resources-0249d3a7.js} +1 -1
  637. package/dist/esm/{resources-2e9e2f90.js → resources-4c1cab26.js} +1 -1
  638. package/dist/esm/{resources-8acc19d7.js → resources-94d44b13.js} +1 -1
  639. package/dist/esm/{resources-d0f2813f.js → resources-9d4a23cc.js} +1 -1
  640. package/dist/esm/{resources-fe07a362.js → resources-b3e03196.js} +5 -5
  641. package/dist/esm/{resources-c97f26b9.js → resources-cca32b07.js} +1 -1
  642. package/dist/esm/{sortable.esm-8bac98b1.js → sortable.esm-8fa13529.js} +1 -1
  643. package/dist/esm/{t9n-7831517f.js → t9n-9566f580.js} +3 -3
  644. package/dist/esm/{utils-9924b058.js → utils-698d2fa0.js} +3 -3
  645. package/dist/esm/{utils-86c1d097.js → utils-8add23a2.js} +1 -1
  646. package/dist/extras/docs-json.json +3 -3
  647. package/dist/extras/vscode-data.json +1 -1
  648. package/dist/loader/cdn.js +1 -1
  649. package/dist/loader/index.cjs.js +1 -1
  650. package/dist/loader/index.es2017.js +1 -1
  651. package/dist/loader/index.js +1 -1
  652. package/dist/types/components/alert/alert.d.ts +1 -1
  653. package/hydrate/index.js +3 -3
  654. package/package.json +8 -8
  655. package/readme.md +1 -1
  656. package/dist/calcite/p-15c09a02.entry.js +0 -6
  657. package/dist/calcite/p-3b6d274c.js +0 -6
  658. package/dist/calcite/p-d780f755.entry.js +0 -6
  659. package/dist/calcite/p-f0536e69.js +0 -6
  660. package/dist/calcite/p-f30e0051.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.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as t,h as a,F as i,g as e}from"./p-a6d8f60f.js";import{c as n,d as o}from"./p-f0536e69.js";import{g as c}from"./p-4c3a83fd.js";import{c as s,d as r}from"./p-f629bf5e.js";import{u as l,c as m,d,s as p}from"./p-3b6d274c.js";import{S as u}from"./p-776bd6fe.js";import{S as f,I as h}from"./p-3784823d.js";import"./p-7af2ebcd.js";import"./p-9bd46a0a.js";import"./p-3db71314.js";import"./p-7f5c4915.js";const g=class{constructor(a){t(this,a),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.expanded=!1,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){l(this,this.effectiveLocale)}connectedCallback(){s(this),m(this),n(this)}disconnectedCallback(){r(this),d(this),o(this)}async componentWillLoad(){await p(this)}renderTooltip(){const{el:t}=this;return c(t,f.menuTooltip)?a("slot",{name:f.menuTooltip,slot:u.tooltip}):null}renderMenu(){const{el:t,expanded:i,menuOpen:e,scale:n,layout:o,messages:s}=this;return c(t,f.menuActions)?a("calcite-action-menu",{expanded:i,flipPlacements:["left","right"],label:s.more,onCalciteActionMenuOpen:this.setMenuOpen,open:e,placement:"horizontal"===o?"bottom-start":"leading-start",scale:n},a("calcite-action",{icon:h.menu,scale:n,slot:u.trigger,text:s.more,textEnabled:i}),a("slot",{name:f.menuActions}),this.renderTooltip()):null}render(){return a(i,null,a("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]){flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}';export{g as calcite_action_group}
6
+ import{r as t,h as a,F as i,g as e}from"./p-8655c622.js";import{c as n,d as o}from"./p-fc31cbd0.js";import{g as c}from"./p-b5f2d8f1.js";import{c as s,d as r}from"./p-6e27aba9.js";import{u as l,c as m,d,s as p}from"./p-d23edb07.js";import{S as u}from"./p-00fb80c6.js";import{S as h,I as f}from"./p-3d7c1780.js";import"./p-bfc6d2d0.js";import"./p-168b9252.js";import"./p-a19eac5f.js";import"./p-e91ff91b.js";const g=class{constructor(a){t(this,a),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.expanded=!1,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){l(this,this.effectiveLocale)}connectedCallback(){s(this),m(this),n(this)}disconnectedCallback(){r(this),d(this),o(this)}async componentWillLoad(){await p(this)}renderTooltip(){const{el:t}=this;return c(t,h.menuTooltip)?a("slot",{name:h.menuTooltip,slot:u.tooltip}):null}renderMenu(){const{el:t,expanded:i,menuOpen:e,scale:n,layout:o,messages:s}=this;return c(t,h.menuActions)?a("calcite-action-menu",{expanded:i,flipPlacements:["left","right"],label:s.more,onCalciteActionMenuOpen:this.setMenuOpen,open:e,placement:"horizontal"===o?"bottom-start":"leading-start",scale:n},a("calcite-action",{icon:f.menu,scale:n,slot:u.trigger,text:s.more,textEnabled:i}),a("slot",{name:h.menuActions}),this.renderTooltip()):null}render(){return a(i,null,a("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]){flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}';export{g as calcite_action_group}
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{l as t,m as n,n as e,o as r,f as o,p as u}from"./p-4c3a83fd.js";
6
+ import{l as t,m as n,n as e,o as r,f as o,p as u}from"./p-b5f2d8f1.js";
7
7
  /*!
8
8
  * focus-trap 7.2.0
9
9
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
10
- */function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function c(t,n,e){return(n=function(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof n?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var f=function(t){return"Tab"===t.key||9===t.keyCode},s=function(t){return f(t)&&!t.shiftKey},v=function(t){return f(t)&&t.shiftKey},l=function(t){return setTimeout(t,0)},d=function(t,n){var e=-1;return t.every((function(t,r){return!n(t)||(e=r,!1)})),e},b=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,e):t},p=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},h=[];const w=[];function m(i){const{focusTrapEl:c}=i;c&&(null==c.tabIndex&&(c.tabIndex=-1),i.focusTrap=function(o,u){var i,c=(null==u?void 0:u.document)||document,w=(null==u?void 0:u.trapStack)||h,m=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:s,isKeyBackward:v},u),y={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},F=function(t,n,e){return t&&void 0!==t[n]?t[n]:m[e||n]},O=function(t){return y.containerGroups.findIndex((function(n){var e=n.tabbableNodes;return n.container.contains(t)||e.find((function(n){return n===t}))}))},j=function(t){var n=m[t];if("function"==typeof n){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var u=n;if("string"==typeof n&&!(u=c.querySelector(n)))throw new Error("`".concat(t,"` as selector refers to no known node"));return u},k=function(){var t=j("initialFocus");if(!1===t)return!1;if(void 0===t)if(O(c.activeElement)>=0)t=c.activeElement;else{var n=y.tabbableGroups[0];t=n&&n.firstTabbableNode||j("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},D=function(){if(y.containerGroups=y.containers.map((function(r){var o=t(r,m.tabbableOptions),u=n(r,m.tabbableOptions);return{container:r,tabbableNodes:o,focusableNodes:u,firstTabbableNode:o.length>0?o[0]:null,lastTabbableNode:o.length>0?o[o.length-1]:null,nextTabbableNode:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=u.findIndex((function(n){return n===t}));if(!(r<0))return n?u.slice(r+1).find((function(t){return e(t,m.tabbableOptions)})):u.slice(0,r).reverse().find((function(t){return e(t,m.tabbableOptions)}))}}})),y.tabbableGroups=y.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),y.tabbableGroups.length<=0&&!j("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},T=function t(n){!1!==n&&n!==c.activeElement&&(n&&n.focus?(n.focus({preventScroll:!!m.preventScroll}),y.mostRecentlyFocusedNode=n,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(n)&&n.select()):t(k()))},E=function(t){var n=j("setReturnFocus",t);return n||!1!==n&&t},g=function(t){var n=p(t);O(n)>=0||(b(m.clickOutsideDeactivates,t)?i.deactivate({returnFocus:m.returnFocusOnDeactivate&&!r(n,m.tabbableOptions)}):b(m.allowOutsideClick,t)||t.preventDefault())},N=function(t){var n=p(t),e=O(n)>=0;e||n instanceof Document?e&&(y.mostRecentlyFocusedNode=n):(t.stopImmediatePropagation(),T(y.mostRecentlyFocusedNode||k()))},A=function(t){if(("Escape"===(n=t).key||"Esc"===n.key||27===n.keyCode)&&!1!==b(m.escapeDeactivates,t))return t.preventDefault(),void i.deactivate();var n;(m.isKeyForward(t)||m.isKeyBackward(t))&&function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=p(t);D();var u=null;if(y.tabbableGroups.length>0){var i=O(o),a=i>=0?y.containerGroups[i]:void 0;if(i<0)u=n?y.tabbableGroups[y.tabbableGroups.length-1].lastTabbableNode:y.tabbableGroups[0].firstTabbableNode;else if(n){var c=d(y.tabbableGroups,(function(t){return o===t.firstTabbableNode}));c<0&&(a.container===o||r(o,m.tabbableOptions)&&!e(o,m.tabbableOptions)&&!a.nextTabbableNode(o,!1))&&(c=i),c>=0?u=y.tabbableGroups[0===c?y.tabbableGroups.length-1:c-1].lastTabbableNode:f(t)||(u=a.nextTabbableNode(o,!1))}else{var s=d(y.tabbableGroups,(function(t){return o===t.lastTabbableNode}));s<0&&(a.container===o||r(o,m.tabbableOptions)&&!e(o,m.tabbableOptions)&&!a.nextTabbableNode(o))&&(s=i),s>=0?u=y.tabbableGroups[s===y.tabbableGroups.length-1?0:s+1].firstTabbableNode:f(t)||(u=a.nextTabbableNode(o))}}else u=j("fallbackFocus");u&&(f(t)&&t.preventDefault(),T(u))}(t,m.isKeyBackward(t))},R=function(t){var n=p(t);O(n)>=0||b(m.clickOutsideDeactivates,t)||b(m.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},S=function(){if(y.active)return function(t,n){if(t.length>0){var e=t[t.length-1];e!==n&&e.pause()}var r=t.indexOf(n);-1===r||t.splice(r,1),t.push(n)}(w,i),y.delayInitialFocusTimer=m.delayInitialFocus?l((function(){T(k())})):T(k()),c.addEventListener("focusin",N,!0),c.addEventListener("mousedown",g,{capture:!0,passive:!1}),c.addEventListener("touchstart",g,{capture:!0,passive:!1}),c.addEventListener("click",R,{capture:!0,passive:!1}),c.addEventListener("keydown",A,{capture:!0,passive:!1}),i},C=function(){if(y.active)return c.removeEventListener("focusin",N,!0),c.removeEventListener("mousedown",g,!0),c.removeEventListener("touchstart",g,!0),c.removeEventListener("click",R,!0),c.removeEventListener("keydown",A,!0),i};return(i={get active(){return y.active},get paused(){return y.paused},activate:function(t){if(y.active)return this;var n=F(t,"onActivate"),e=F(t,"onPostActivate"),r=F(t,"checkCanFocusTrap");r||D(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=c.activeElement,n&&n();var o=function(){r&&D(),S(),e&&e()};return r?(r(y.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(t){if(!y.active)return this;var n=a({onDeactivate:m.onDeactivate,onPostDeactivate:m.onPostDeactivate,checkCanReturnFocus:m.checkCanReturnFocus},t);clearTimeout(y.delayInitialFocusTimer),y.delayInitialFocusTimer=void 0,C(),y.active=!1,y.paused=!1,function(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1),t.length>0&&t[t.length-1].unpause()}(w,i);var e=F(n,"onDeactivate"),r=F(n,"onPostDeactivate"),o=F(n,"checkCanReturnFocus"),u=F(n,"returnFocus","returnFocusOnDeactivate");e&&e();var c=function(){l((function(){u&&T(E(y.nodeFocusedBeforeActivation)),r&&r()}))};return u&&o?(o(E(y.nodeFocusedBeforeActivation)).then(c,c),this):(c(),this)},pause:function(){return y.paused||!y.active||(y.paused=!0,C()),this},unpause:function(){return y.paused&&y.active?(y.paused=!1,D(),S(),this):this},updateContainerElements:function(t){var n=[].concat(t).filter(Boolean);return y.containers=n.map((function(t){return"string"==typeof t?c.querySelector(t):t})),y.active&&D(),this}}).updateContainerElements(o),i}(c,{clickOutsideDeactivates:!0,document:c.ownerDocument,escapeDeactivates:!1,fallbackFocus:c,setReturnFocus:t=>(o(t),!1),tabbableOptions:u,trapStack:w}))}function y(t){t.focusTrapDisabled||t.focusTrap?.activate()}function F(t){t.focusTrap?.deactivate()}function O(t){t.focusTrap?.updateContainerElements(t.focusTrapEl)}export{y as a,m as c,F as d,O as u}
10
+ */function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function c(t,n,e){return(n=function(t){var n=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof n?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var f=function(t){return"Tab"===t.key||9===t.keyCode},s=function(t){return f(t)&&!t.shiftKey},v=function(t){return f(t)&&t.shiftKey},l=function(t){return setTimeout(t,0)},b=function(t,n){var e=-1;return t.every((function(t,r){return!n(t)||(e=r,!1)})),e},d=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,e):t},p=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},h=[];const w=[];function m(i){const{focusTrapEl:c}=i;c&&(null==c.tabIndex&&(c.tabIndex=-1),i.focusTrap=function(o,u){var i,c=(null==u?void 0:u.document)||document,w=(null==u?void 0:u.trapStack)||h,m=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:s,isKeyBackward:v},u),y={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},F=function(t,n,e){return t&&void 0!==t[n]?t[n]:m[e||n]},O=function(t){return y.containerGroups.findIndex((function(n){var e=n.tabbableNodes;return n.container.contains(t)||e.find((function(n){return n===t}))}))},j=function(t){var n=m[t];if("function"==typeof n){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var u=n;if("string"==typeof n&&!(u=c.querySelector(n)))throw new Error("`".concat(t,"` as selector refers to no known node"));return u},k=function(){var t=j("initialFocus");if(!1===t)return!1;if(void 0===t)if(O(c.activeElement)>=0)t=c.activeElement;else{var n=y.tabbableGroups[0];t=n&&n.firstTabbableNode||j("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},D=function(){if(y.containerGroups=y.containers.map((function(r){var o=t(r,m.tabbableOptions),u=n(r,m.tabbableOptions);return{container:r,tabbableNodes:o,focusableNodes:u,firstTabbableNode:o.length>0?o[0]:null,lastTabbableNode:o.length>0?o[o.length-1]:null,nextTabbableNode:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=u.findIndex((function(n){return n===t}));if(!(r<0))return n?u.slice(r+1).find((function(t){return e(t,m.tabbableOptions)})):u.slice(0,r).reverse().find((function(t){return e(t,m.tabbableOptions)}))}}})),y.tabbableGroups=y.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),y.tabbableGroups.length<=0&&!j("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},T=function t(n){!1!==n&&n!==c.activeElement&&(n&&n.focus?(n.focus({preventScroll:!!m.preventScroll}),y.mostRecentlyFocusedNode=n,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(n)&&n.select()):t(k()))},E=function(t){var n=j("setReturnFocus",t);return n||!1!==n&&t},g=function(t){var n=p(t);O(n)>=0||(d(m.clickOutsideDeactivates,t)?i.deactivate({returnFocus:m.returnFocusOnDeactivate&&!r(n,m.tabbableOptions)}):d(m.allowOutsideClick,t)||t.preventDefault())},N=function(t){var n=p(t),e=O(n)>=0;e||n instanceof Document?e&&(y.mostRecentlyFocusedNode=n):(t.stopImmediatePropagation(),T(y.mostRecentlyFocusedNode||k()))},A=function(t){if(("Escape"===(n=t).key||"Esc"===n.key||27===n.keyCode)&&!1!==d(m.escapeDeactivates,t))return t.preventDefault(),void i.deactivate();var n;(m.isKeyForward(t)||m.isKeyBackward(t))&&function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=p(t);D();var u=null;if(y.tabbableGroups.length>0){var i=O(o),a=i>=0?y.containerGroups[i]:void 0;if(i<0)u=n?y.tabbableGroups[y.tabbableGroups.length-1].lastTabbableNode:y.tabbableGroups[0].firstTabbableNode;else if(n){var c=b(y.tabbableGroups,(function(t){return o===t.firstTabbableNode}));c<0&&(a.container===o||r(o,m.tabbableOptions)&&!e(o,m.tabbableOptions)&&!a.nextTabbableNode(o,!1))&&(c=i),c>=0?u=y.tabbableGroups[0===c?y.tabbableGroups.length-1:c-1].lastTabbableNode:f(t)||(u=a.nextTabbableNode(o,!1))}else{var s=b(y.tabbableGroups,(function(t){return o===t.lastTabbableNode}));s<0&&(a.container===o||r(o,m.tabbableOptions)&&!e(o,m.tabbableOptions)&&!a.nextTabbableNode(o))&&(s=i),s>=0?u=y.tabbableGroups[s===y.tabbableGroups.length-1?0:s+1].firstTabbableNode:f(t)||(u=a.nextTabbableNode(o))}}else u=j("fallbackFocus");u&&(f(t)&&t.preventDefault(),T(u))}(t,m.isKeyBackward(t))},R=function(t){var n=p(t);O(n)>=0||d(m.clickOutsideDeactivates,t)||d(m.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},S=function(){if(y.active)return function(t,n){if(t.length>0){var e=t[t.length-1];e!==n&&e.pause()}var r=t.indexOf(n);-1===r||t.splice(r,1),t.push(n)}(w,i),y.delayInitialFocusTimer=m.delayInitialFocus?l((function(){T(k())})):T(k()),c.addEventListener("focusin",N,!0),c.addEventListener("mousedown",g,{capture:!0,passive:!1}),c.addEventListener("touchstart",g,{capture:!0,passive:!1}),c.addEventListener("click",R,{capture:!0,passive:!1}),c.addEventListener("keydown",A,{capture:!0,passive:!1}),i},C=function(){if(y.active)return c.removeEventListener("focusin",N,!0),c.removeEventListener("mousedown",g,!0),c.removeEventListener("touchstart",g,!0),c.removeEventListener("click",R,!0),c.removeEventListener("keydown",A,!0),i};return(i={get active(){return y.active},get paused(){return y.paused},activate:function(t){if(y.active)return this;var n=F(t,"onActivate"),e=F(t,"onPostActivate"),r=F(t,"checkCanFocusTrap");r||D(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=c.activeElement,n&&n();var o=function(){r&&D(),S(),e&&e()};return r?(r(y.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(t){if(!y.active)return this;var n=a({onDeactivate:m.onDeactivate,onPostDeactivate:m.onPostDeactivate,checkCanReturnFocus:m.checkCanReturnFocus},t);clearTimeout(y.delayInitialFocusTimer),y.delayInitialFocusTimer=void 0,C(),y.active=!1,y.paused=!1,function(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1),t.length>0&&t[t.length-1].unpause()}(w,i);var e=F(n,"onDeactivate"),r=F(n,"onPostDeactivate"),o=F(n,"checkCanReturnFocus"),u=F(n,"returnFocus","returnFocusOnDeactivate");e&&e();var c=function(){l((function(){u&&T(E(y.nodeFocusedBeforeActivation)),r&&r()}))};return u&&o?(o(E(y.nodeFocusedBeforeActivation)).then(c,c),this):(c(),this)},pause:function(){return y.paused||!y.active||(y.paused=!0,C()),this},unpause:function(){return y.paused&&y.active?(y.paused=!1,D(),S(),this):this},updateContainerElements:function(t){var n=[].concat(t).filter(Boolean);return y.containers=n.map((function(t){return"string"==typeof t?c.querySelector(t):t})),y.active&&D(),this}}).updateContainerElements(o),i}(c,{clickOutsideDeactivates:!0,document:c.ownerDocument,escapeDeactivates:!1,fallbackFocus:c,setReturnFocus:t=>(o(t),!1),tabbableOptions:u,trapStack:w}))}function y(t){t.focusTrapDisabled||t.focusTrap?.activate()}function F(t){t.focusTrap?.deactivate()}function O(t){t.focusTrap?.updateContainerElements(t.focusTrapEl)}export{y as a,m as c,F as d,O as u}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as t,c as e,h as i,g as a,H as n}from"./p-a6d8f60f.js";import{u as o,h as r,t as s}from"./p-4c3a83fd.js";import{u as c}from"./p-9780a1e1.js";import{n as l,c as p,d}from"./p-f629bf5e.js";import{s as h,a as m,c as u}from"./p-4c7dc39a.js";import"./p-9bd46a0a.js";import"./p-3db71314.js";import"./p-7f5c4915.js";import"./p-7af2ebcd.js";const f=class{constructor(i){t(this,i),this.calciteStepperItemChange=e(this,"calciteStepperItemChange",6),this.calciteInternalStepperItemChange=e(this,"calciteInternalStepperItemChange",6),this.itemMap=new Map,this.items=[],this.enabledItems=[],this.icon=!1,this.layout="horizontal",this.numbered=!1,this.numberingSystem=void 0,this.selectedItem=null,this.scale="m"}componentDidLoad(){"number"!=typeof this.currentPosition&&this.calciteInternalStepperItemChange.emit({position:0})}render(){return i("slot",{onSlotchange:t=>{const e=t.currentTarget.assignedElements().filter((t=>"CALCITE-STEPPER-ITEM"===t?.tagName)),i=Array(e.length).fill("1fr").join(" ");this.el.style.gridTemplateAreas=i,this.el.style.gridTemplateColumns=i}})}calciteInternalStepperItemKeyEvent(t){const e=t.target;switch(t.detail.item.key){case"ArrowDown":case"ArrowRight":o(this.enabledItems,e,"next");break;case"ArrowUp":case"ArrowLeft":o(this.enabledItems,e,"previous");break;case"Home":o(this.enabledItems,e,"first");break;case"End":o(this.enabledItems,e,"last")}t.stopPropagation()}registerItem(t){const e=t.target,{content:i,position:a}=t.detail;this.itemMap.set(e,{position:a,content:i}),this.items=this.sortItems(),this.enabledItems=this.filterItems(),t.stopPropagation()}updateItem(t){const{position:e}=t.detail;"number"==typeof e&&(this.currentPosition=e,this.selectedItem=t.target),this.calciteInternalStepperItemChange.emit({position:e})}handleUserRequestedStepperItemSelect(){this.calciteStepperItemChange.emit()}async nextStep(){const t=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof t&&this.updateStep(t)}async prevStep(){const t=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof t&&this.updateStep(t)}async goToStep(t){const e=t-1;this.currentPosition!==e&&this.updateStep(e)}async startStep(){const t=this.getEnabledStepIndex(0,"next");"number"==typeof t&&this.updateStep(t)}async endStep(){const t=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof t&&this.updateStep(t)}getEnabledStepIndex(t,e="next"){const{items:i,currentPosition:a}=this;let n=t;for(;i[n]?.disabled;)n+="previous"===e?-1:1;return n!==a&&n<i.length&&n>=0?n:null}updateStep(t){this.currentPosition=t,this.calciteInternalStepperItemChange.emit({position:t})}sortItems(){const{itemMap:t}=this;return Array.from(t.keys()).sort(((e,i)=>t.get(e).position-t.get(i).position))}filterItems(){return this.items.filter((t=>!t.disabled))}get el(){return a(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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}';const b=class{constructor(i){t(this,i),this.calciteInternalStepperItemKeyEvent=e(this,"calciteInternalStepperItemKeyEvent",6),this.calciteInternalStepperItemSelect=e(this,"calciteInternalStepperItemSelect",6),this.calciteInternalUserRequestedStepperItemSelect=e(this,"calciteInternalUserRequestedStepperItemSelect",6),this.calciteInternalStepperItemRegister=e(this,"calciteInternalStepperItemRegister",6),this.keyDownHandler=t=>{if(!this.disabled&&t.target===this.el)switch(t.key){case" ":case"Enter":this.emitUserRequestedItem(),t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:t}),t.preventDefault()}},this.handleItemClick=t=>{"horizontal"===this.layout&&t.composedPath().some((t=>t.classList?.contains("stepper-item-content")))||this.emitUserRequestedItem()},this.emitUserRequestedItem=()=>{this.emitRequestedItem(),this.disabled||this.calciteInternalUserRequestedStepperItemSelect.emit({position:this.itemPosition})},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition})},this.selected=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.heading=void 0,this.description=void 0,this.layout="horizontal",this.icon=!1,this.iconFlipRtl=!1,this.numbered=!1,this.scale="m",this.effectiveLocale=""}selectedHandler(){this.selected&&this.emitRequestedItem()}disabledWatcher(){this.registerStepperItem()}effectiveLocaleWatcher(t){l.numberFormatOptions={locale:t,numberingSystem:this.parentStepperEl?.numberingSystem,useGrouping:!1}}connectedCallback(){p(this)}componentWillLoad(){h(this),this.icon=r(this.el,"icon",!1),this.numbered=r(this.el,"numbered",!1),this.layout=r(this.el,"layout",!1),this.scale=r(this.el,"scale","m"),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem(),l.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.parentStepperEl?.numberingSystem,useGrouping:!1}}componentDidLoad(){m(this)}componentDidRender(){c(this,!0)}disconnectedCallback(){d(this)}render(){return i(n,{"aria-expanded":s(this.selected),onClick:this.handleItemClick,onKeyDown:this.keyDownHandler},i("div",{class:"container"},i("div",{class:"stepper-item-header",ref:t=>this.headerEl=t,tabIndex:"horizontal"!==this.layout||this.disabled?null:0},this.icon?this.renderIcon():null,this.numbered?i("div",{class:"stepper-item-number"},l.numberFormatter.format(this.itemPosition+1),"."):null,i("div",{class:"stepper-item-header-text"},i("span",{class:"stepper-item-heading"},this.heading),i("span",{class:"stepper-item-description"},this.description))),i("div",{class:"stepper-item-content"},i("slot",null))))}updateActiveItemOnChange(t){(t.target===this.parentStepperEl||t.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=t.detail.position,this.determineSelectedItem())}async setFocus(){await u(this),("vertical"===this.layout?this.el:this.headerEl)?.focus()}renderIcon(){return i("calcite-icon",{class:"stepper-item-icon",flipRtl:this.iconFlipRtl,icon:this.selected?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}get el(){return a(this)}static get watchers(){return{selected:["selectedHandler"],disabled:["disabledWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};b.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);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-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content ::slotted(:last-child){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-danger-hover)}:host([layout=horizontal]){display:contents}:host([layout=horizontal]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][complete]) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal][error]) .stepper-item-header{border-color:var(--calcite-ui-danger)}:host([layout=horizontal][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}";export{f as calcite_stepper,b as calcite_stepper_item}
6
+ import{r as t,c as e,h as i,g as a,H as n}from"./p-8655c622.js";import{u as o,h as r,t as s}from"./p-b5f2d8f1.js";import{u as c}from"./p-d54e062b.js";import{n as l,c as p,d}from"./p-6e27aba9.js";import{s as h,a as m,c as u}from"./p-ad1a5423.js";import"./p-168b9252.js";import"./p-a19eac5f.js";import"./p-e91ff91b.js";import"./p-bfc6d2d0.js";const f=class{constructor(i){t(this,i),this.calciteStepperItemChange=e(this,"calciteStepperItemChange",6),this.calciteInternalStepperItemChange=e(this,"calciteInternalStepperItemChange",6),this.itemMap=new Map,this.items=[],this.enabledItems=[],this.icon=!1,this.layout="horizontal",this.numbered=!1,this.numberingSystem=void 0,this.selectedItem=null,this.scale="m"}componentDidLoad(){"number"!=typeof this.currentPosition&&this.calciteInternalStepperItemChange.emit({position:0})}render(){return i("slot",{onSlotchange:t=>{const e=t.currentTarget.assignedElements().filter((t=>"CALCITE-STEPPER-ITEM"===t?.tagName)),i=Array(e.length).fill("1fr").join(" ");this.el.style.gridTemplateAreas=i,this.el.style.gridTemplateColumns=i}})}calciteInternalStepperItemKeyEvent(t){const e=t.target;switch(t.detail.item.key){case"ArrowDown":case"ArrowRight":o(this.enabledItems,e,"next");break;case"ArrowUp":case"ArrowLeft":o(this.enabledItems,e,"previous");break;case"Home":o(this.enabledItems,e,"first");break;case"End":o(this.enabledItems,e,"last")}t.stopPropagation()}registerItem(t){const e=t.target,{content:i,position:a}=t.detail;this.itemMap.set(e,{position:a,content:i}),this.items=this.sortItems(),this.enabledItems=this.filterItems(),t.stopPropagation()}updateItem(t){const{position:e}=t.detail;"number"==typeof e&&(this.currentPosition=e,this.selectedItem=t.target),this.calciteInternalStepperItemChange.emit({position:e})}handleUserRequestedStepperItemSelect(){this.calciteStepperItemChange.emit()}async nextStep(){const t=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof t&&this.updateStep(t)}async prevStep(){const t=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof t&&this.updateStep(t)}async goToStep(t){const e=t-1;this.currentPosition!==e&&this.updateStep(e)}async startStep(){const t=this.getEnabledStepIndex(0,"next");"number"==typeof t&&this.updateStep(t)}async endStep(){const t=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof t&&this.updateStep(t)}getEnabledStepIndex(t,e="next"){const{items:i,currentPosition:a}=this;let n=t;for(;i[n]?.disabled;)n+="previous"===e?-1:1;return n!==a&&n<i.length&&n>=0?n:null}updateStep(t){this.currentPosition=t,this.calciteInternalStepperItemChange.emit({position:t})}sortItems(){const{itemMap:t}=this;return Array.from(t.keys()).sort(((e,i)=>t.get(e).position-t.get(i).position))}filterItems(){return this.items.filter((t=>!t.disabled))}get el(){return a(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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}';const b=class{constructor(i){t(this,i),this.calciteInternalStepperItemKeyEvent=e(this,"calciteInternalStepperItemKeyEvent",6),this.calciteInternalStepperItemSelect=e(this,"calciteInternalStepperItemSelect",6),this.calciteInternalUserRequestedStepperItemSelect=e(this,"calciteInternalUserRequestedStepperItemSelect",6),this.calciteInternalStepperItemRegister=e(this,"calciteInternalStepperItemRegister",6),this.keyDownHandler=t=>{if(!this.disabled&&t.target===this.el)switch(t.key){case" ":case"Enter":this.emitUserRequestedItem(),t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:t}),t.preventDefault()}},this.handleItemClick=t=>{"horizontal"===this.layout&&t.composedPath().some((t=>t.classList?.contains("stepper-item-content")))||this.emitUserRequestedItem()},this.emitUserRequestedItem=()=>{this.emitRequestedItem(),this.disabled||this.calciteInternalUserRequestedStepperItemSelect.emit({position:this.itemPosition})},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition})},this.selected=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.heading=void 0,this.description=void 0,this.layout="horizontal",this.icon=!1,this.iconFlipRtl=!1,this.numbered=!1,this.scale="m",this.effectiveLocale=""}selectedHandler(){this.selected&&this.emitRequestedItem()}disabledWatcher(){this.registerStepperItem()}effectiveLocaleWatcher(t){l.numberFormatOptions={locale:t,numberingSystem:this.parentStepperEl?.numberingSystem,useGrouping:!1}}connectedCallback(){p(this)}componentWillLoad(){h(this),this.icon=r(this.el,"icon",!1),this.numbered=r(this.el,"numbered",!1),this.layout=r(this.el,"layout",!1),this.scale=r(this.el,"scale","m"),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem(),l.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.parentStepperEl?.numberingSystem,useGrouping:!1}}componentDidLoad(){m(this)}componentDidRender(){c(this,!0)}disconnectedCallback(){d(this)}render(){return i(n,{"aria-expanded":s(this.selected),onClick:this.handleItemClick,onKeyDown:this.keyDownHandler},i("div",{class:"container"},i("div",{class:"stepper-item-header",ref:t=>this.headerEl=t,tabIndex:"horizontal"!==this.layout||this.disabled?null:0},this.icon?this.renderIcon():null,this.numbered?i("div",{class:"stepper-item-number"},l.numberFormatter.format(this.itemPosition+1),"."):null,i("div",{class:"stepper-item-header-text"},i("span",{class:"stepper-item-heading"},this.heading),i("span",{class:"stepper-item-description"},this.description))),i("div",{class:"stepper-item-content"},i("slot",null))))}updateActiveItemOnChange(t){(t.target===this.parentStepperEl||t.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=t.detail.position,this.determineSelectedItem())}async setFocus(){await u(this),("vertical"===this.layout?this.el:this.headerEl)?.focus()}renderIcon(){return i("calcite-icon",{class:"stepper-item-icon",flipRtl:this.iconFlipRtl,icon:this.selected?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}get el(){return a(this)}static get watchers(){return{selected:["selectedHandler"],disabled:["disabledWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};b.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);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-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content ::slotted(:last-child){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-danger-hover)}:host([layout=horizontal]){display:contents}:host([layout=horizontal]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][complete]) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal][error]) .stepper-item-header{border-color:var(--calcite-ui-danger)}:host([layout=horizontal][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}";export{f as calcite_stepper,b as calcite_stepper_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.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as i,h as t,H as a,g as e}from"./p-a6d8f60f.js";import{d as n,h as c}from"./p-4c3a83fd.js";import"./p-9bd46a0a.js";import"./p-3db71314.js";var s;!function(i){i.valid="check-circle",i.invalid="exclamation-mark-triangle",i.idle="information"}(s||(s={}));const o=class{constructor(t){i(this,t),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=n(s,this.icon,this.status)}connectedCallback(){this.scale=c(this.el,"scale",this.scale),this.requestedIcon=n(s,this.icon,this.status)}render(){return t(a,{"calcite-hydrated-hidden":this.el.hidden},this.renderIcon(this.requestedIcon),t("slot",null))}renderIcon(i){if(i)return t("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:i,scale:"s"})}get el(){return e(this)}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}};o.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([scale=m]),:host([scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);visibility:visible;height:auto;opacity:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([scale=m]),:host([scale=l]){margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-ui-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-ui-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-ui-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-ui-brand)}:host([status]){color:var(--calcite-ui-text-1)}:host([status][scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([status][scale=m]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([status][scale=l]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}";export{o as calcite_input_message}
6
+ import{r as i,h as t,H as a,g as e}from"./p-8655c622.js";import{d as n,h as c}from"./p-b5f2d8f1.js";import"./p-168b9252.js";import"./p-a19eac5f.js";var s;!function(i){i.valid="check-circle",i.invalid="exclamation-mark-triangle",i.idle="information"}(s||(s={}));const o=class{constructor(t){i(this,t),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=n(s,this.icon,this.status)}connectedCallback(){this.scale=c(this.el,"scale",this.scale),this.requestedIcon=n(s,this.icon,this.status)}render(){return t(a,{"calcite-hydrated-hidden":this.el.hidden},this.renderIcon(this.requestedIcon),t("slot",null))}renderIcon(i){if(i)return t("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:i,scale:"s"})}get el(){return e(this)}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}};o.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([scale=m]),:host([scale=l]){--calcite-input-message-spacing-value:0.25rem}:host{visibility:hidden;box-sizing:border-box;display:flex;block-size:0px;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);visibility:visible;height:auto;opacity:1;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([scale=m]),:host([scale=l]){margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-ui-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-ui-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-ui-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-ui-brand)}:host([status]){color:var(--calcite-ui-text-1)}:host([status][scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([status][scale=m]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([status][scale=l]){margin-block-start:0.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}";export{o as calcite_input_message}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as t,c as i,h as e,F as a,g as n}from"./p-a6d8f60f.js";import{g as s}from"./p-c5e8ae82.js";import{t as o,i as c,f as r}from"./p-4c3a83fd.js";import{g as l}from"./p-9bd46a0a.js";import{i as h}from"./p-7f5c4915.js";import{s as d,a as m,c as p}from"./p-4c7dc39a.js";import{C as u,I as f,S as v}from"./p-776bd6fe.js";import"./p-3db71314.js";const x=["ArrowUp","ArrowDown","End","Home"],g=class{constructor(e){t(this,e),this.calciteActionMenuOpen=i(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${l()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:t,menuId:i,open:e,label:a}=this,n=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==n&&(this.disconnectMenuButtonEl(),this.menuButtonEl=n,this.setTooltipReferenceElement(),n&&(n.active=e,n.setAttribute("aria-controls",i),n.setAttribute("aria-expanded",o(e)),n.setAttribute("aria-haspopup","true"),n.id||(n.id=t),n.label||(n.label=a),n.text||(n.text=a),n.addEventListener("pointerdown",this.menuButtonClick),n.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("pointerdown",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-action")));this.slottedMenuButtonEl=i[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=t=>{c(t)&&this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e,open:a}=this;t&&(t.referenceElement=i||a?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:a}=this,n=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=n),t.active=i===a},this.updateActions=t=>{t?.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-action")));this.actionElements=i},this.menuButtonKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:a,open:n}=this;if(e.length){if(h(i)){if(t.preventDefault(),!n)return void this.toggleOpen();const i=e[a];i?i.click():this.toggleOpen(!1)}if("Tab"!==i)return"Escape"===i?(this.toggleOpen(!1),void t.preventDefault()):void this.handleActionNavigation(t,i,e);this.open=!1}},this.handleActionNavigation=(t,i,e)=>{if(!this.isValidKey(i,x))return;if(t.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==i&&"ArrowDown"!==i||(this.activeMenuItemIndex=0),void("End"!==i&&"ArrowUp"!==i||(this.activeMenuItemIndex=e.length-1));"Home"===i&&(this.activeMenuItemIndex=0),"End"===i&&(this.activeMenuItemIndex=e.length-1);const a=this.activeMenuItemIndex;"ArrowUp"===i&&(this.activeMenuItemIndex=s(Math.max(a-1,-1),e.length)),"ArrowDown"===i&&(this.activeMenuItemIndex=s(a+1,e.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){d(this)}componentDidLoad(){m(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(t){c(t)&&(t.composedPath().includes(this.el)||(this.open=!1))}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){await p(this),r(this.menuButtonEl)}renderMenuButton(){const{label:t,scale:i,expanded:a}=this;return e("slot",{name:v.trigger,onSlotchange:this.setMenuButtonEl},e("calcite-action",{class:u.defaultTrigger,icon:f.menu,ref:this.setDefaultMenuButtonEl,scale:i,text:t,textEnabled:a}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:i,open:a,menuId:n,menuButtonEl:s,label:o,placement:c,overlayPositioning:r,flipPlacements:l}=this;return e("calcite-popover",{flipPlacements:l,focusTrapDisabled:!0,label:o,offsetDistance:0,open:a,overlayPositioning:r,placement:c,pointerDisabled:!0,referenceElement:s},e("div",{"aria-activedescendant":t[i]?.id||null,"aria-labelledby":s?.id,class:u.menu,id:n,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},e("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return e(a,null,this.renderMenuButton(),this.renderMenuItems(),e("slot",{name:v.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";export{g as calcite_action_menu}
6
+ import{r as t,c as i,h as e,F as a,g as n}from"./p-8655c622.js";import{g as s}from"./p-43551a1e.js";import{t as o,i as c,f as r}from"./p-b5f2d8f1.js";import{g as l}from"./p-168b9252.js";import{i as h}from"./p-e91ff91b.js";import{s as m,a as d,c as p}from"./p-ad1a5423.js";import{C as u,I as f,S as v}from"./p-00fb80c6.js";import"./p-a19eac5f.js";const x=["ArrowUp","ArrowDown","End","Home"],g=class{constructor(e){t(this,e),this.calciteActionMenuOpen=i(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${l()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:t,menuId:i,open:e,label:a}=this,n=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==n&&(this.disconnectMenuButtonEl(),this.menuButtonEl=n,this.setTooltipReferenceElement(),n&&(n.active=e,n.setAttribute("aria-controls",i),n.setAttribute("aria-expanded",o(e)),n.setAttribute("aria-haspopup","true"),n.id||(n.id=t),n.label||(n.label=a),n.text||(n.text=a),n.addEventListener("pointerdown",this.menuButtonClick),n.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("pointerdown",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-action")));this.slottedMenuButtonEl=i[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=t=>{c(t)&&this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e,open:a}=this;t&&(t.referenceElement=i||a?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:a}=this,n=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=n),t.active=i===a},this.updateActions=t=>{t?.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-action")));this.actionElements=i},this.menuButtonKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:a,open:n}=this;if(e.length){if(h(i)){if(t.preventDefault(),!n)return void this.toggleOpen();const i=e[a];i?i.click():this.toggleOpen(!1)}if("Tab"!==i)return"Escape"===i?(this.toggleOpen(!1),void t.preventDefault()):void this.handleActionNavigation(t,i,e);this.open=!1}},this.handleActionNavigation=(t,i,e)=>{if(!this.isValidKey(i,x))return;if(t.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==i&&"ArrowDown"!==i||(this.activeMenuItemIndex=0),void("End"!==i&&"ArrowUp"!==i||(this.activeMenuItemIndex=e.length-1));"Home"===i&&(this.activeMenuItemIndex=0),"End"===i&&(this.activeMenuItemIndex=e.length-1);const a=this.activeMenuItemIndex;"ArrowUp"===i&&(this.activeMenuItemIndex=s(Math.max(a-1,-1),e.length)),"ArrowDown"===i&&(this.activeMenuItemIndex=s(a+1,e.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){m(this)}componentDidLoad(){d(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(t){c(t)&&(t.composedPath().includes(this.el)||(this.open=!1))}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){await p(this),r(this.menuButtonEl)}renderMenuButton(){const{label:t,scale:i,expanded:a}=this;return e("slot",{name:v.trigger,onSlotchange:this.setMenuButtonEl},e("calcite-action",{class:u.defaultTrigger,icon:f.menu,ref:this.setDefaultMenuButtonEl,scale:i,text:t,textEnabled:a}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:i,open:a,menuId:n,menuButtonEl:s,label:o,placement:c,overlayPositioning:r,flipPlacements:l}=this;return e("calcite-popover",{flipPlacements:l,focusTrapDisabled:!0,label:o,offsetDistance:0,open:a,overlayPositioning:r,placement:c,pointerDisabled:!0,referenceElement:s},e("div",{"aria-activedescendant":t[i]?.id||null,"aria-labelledby":s?.id,class:u.menu,id:n,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},e("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return e(a,null,this.renderMenuButton(),this.renderMenuItems(),e("slot",{name:v.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";export{g as calcite_action_menu}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
6
  const a="calcite-mode-auto",e="calcite-mode-dark",t={autoMode:"calcite-mode-auto",darkMode:"calcite-mode-dark",lightMode:"calcite-mode-light",rtl:"calcite--rtl"};export{t as C,a,e as d}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as t,h as e,F as i,g as a,f as n}from"./p-a6d8f60f.js";import{c as o,d as l}from"./p-f0536e69.js";import{s,y as c,g as r,b as d,i as h}from"./p-4c3a83fd.js";import{c as p,d as m}from"./p-f629bf5e.js";import{c as f}from"./p-06b1cbd1.js";import{c as u,s as x,d as w,u as b}from"./p-3b6d274c.js";import"./p-7af2ebcd.js";import"./p-9bd46a0a.js";import"./p-3db71314.js";import"./p-7f5c4915.js";const v=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),c(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),c(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1}connectedCallback(){o(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),a="content-container";return this.contentBehind?[e("div",{class:{content:!0,"content--behind":!0},key:a},t),i]:[e("div",{class:"content",key:a},t,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return a(this)}};v.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--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);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}.position-wrapper{position:absolute;pointer-events:none;inset:0}";const g=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){o(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,a=e("div",{class:"content"},e("slot",null)),n=r(t,"action-bar"),o=[n?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:"action-bar"})):null,a];return"end"===n?.position&&o.reverse(),e(i,null,o)}get el(){return a(this)}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}";const y=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialClientX=null,this.contentWidthMax=null,this.contentWidthMin=null,this.step=1,this.stepMultiplier=10,this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedWidth=t=>{const{key:e}=t,{el:i,step:a,stepMultiplier:n,contentWidthMin:o,contentWidthMax:l,initialContentWidth:s,position:c}=this,r=a*n;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const h=["ArrowLeft","ArrowRight"],p="rtl"===d(i)&&h.includes(e)?-1:1;return"ArrowUp"===e||("end"===c?e===h[0]:e===h[1])?s+p*(t.shiftKey?r:a):"ArrowDown"===e||("end"===c?e===h[1]:e===h[0])?s-p*(t.shiftKey?r:a):"number"==typeof o&&"Home"===e?o:"number"==typeof l&&"End"===e?l:"PageDown"===e?s-r:"PageUp"===e?s+r:null},this.separatorKeyDown=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedWidth(t);"number"==typeof e&&this.setContentWidth(e)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,initialContentWidth:i,position:a,initialClientX:n}=this,o=t.clientX-n,l="rtl"===d(e)?-1:1;this.setContentWidth(i+("end"===a?-l*o:l*o))},this.separatorPointerUp=t=>{h(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!h(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),this.setInitialContentWidth(),this.initialClientX=t.clientX,document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.collapsed=!1,this.detached=!1,this.detachedHeightScale="l",this.widthScale="m",this.position=void 0,this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){o(this),p(this),u(this)}async componentWillLoad(){await x(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),m(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){b(this,this.effectiveLocale)}renderHeader(){const{el:t}=this;return r(t,"header")?e("div",{class:"content__header",key:"header"},e("slot",{name:"header"})):null}render(){const{collapsed:t,detached:i,position:a,initialContentWidth:n,contentWidth:o,contentWidthMax:l,contentWidthMin:s,resizable:c}=this,r=!i&&c,d=e("div",{class:{content:!0,"content--detached":i},hidden:t,key:"content",ref:this.storeContentEl,style:r&&o?{width:`${o}px`}:null},this.renderHeader(),e("div",{class:"content__body"},e("slot",null))),h=r?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal","aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":o??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,ref:this.connectSeparator,role:"separator",tabIndex:0,"touch-action":"none"}):null,p=[e("slot",{key:"action-bar",name:"action-bar"}),d,h];return"end"===a&&p.reverse(),e("div",{class:{container:!0}},p)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,a=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?f(a,i,e):a}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);if(!e)return;const i=parseInt(e.getPropertyValue("max-width"),10),a=parseInt(e.getPropertyValue("min-width"),10),o=parseInt(e.getPropertyValue("width"),10);"number"!=typeof o||isNaN(o)||(this.initialContentWidth=o),"number"!=typeof i||isNaN(i)||(this.contentWidthMax=i),"number"!=typeof a||isNaN(a)||(this.contentWidthMin=a),n(this)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};y.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}:host([width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 40vh)}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 60vh)}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 80vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);max-block-size:var(--calcite-shell-panel-detached-max-height-internal)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}";export{v as calcite_shell,g as calcite_shell_center_row,y as calcite_shell_panel}
6
+ import{r as t,h as e,F as i,g as a,f as n}from"./p-8655c622.js";import{c as o,d as l}from"./p-fc31cbd0.js";import{s,y as c,g as r,b as d,i as h}from"./p-b5f2d8f1.js";import{c as p,d as m}from"./p-6e27aba9.js";import{c as f}from"./p-5dd8e31d.js";import{c as u,s as x,d as w,u as b}from"./p-d23edb07.js";import"./p-bfc6d2d0.js";import"./p-168b9252.js";import"./p-a19eac5f.js";import"./p-e91ff91b.js";const v=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),c(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),c(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1}connectedCallback(){o(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),a="content-container";return this.contentBehind?[e("div",{class:{content:!0,"content--behind":!0},key:a},t),i]:[e("div",{class:"content",key:a},t,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return a(this)}};v.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--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);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}.position-wrapper{position:absolute;pointer-events:none;inset:0}";const g=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){o(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,a=e("div",{class:"content"},e("slot",null)),n=r(t,"action-bar"),o=[n?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:"action-bar"})):null,a];return"end"===n?.position&&o.reverse(),e(i,null,o)}get el(){return a(this)}};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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}";const y=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialClientX=null,this.contentWidthMax=null,this.contentWidthMin=null,this.step=1,this.stepMultiplier=10,this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedWidth=t=>{const{key:e}=t,{el:i,step:a,stepMultiplier:n,contentWidthMin:o,contentWidthMax:l,initialContentWidth:s,position:c}=this,r=a*n;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const h=["ArrowLeft","ArrowRight"],p="rtl"===d(i)&&h.includes(e)?-1:1;return"ArrowUp"===e||("end"===c?e===h[0]:e===h[1])?s+p*(t.shiftKey?r:a):"ArrowDown"===e||("end"===c?e===h[1]:e===h[0])?s-p*(t.shiftKey?r:a):"number"==typeof o&&"Home"===e?o:"number"==typeof l&&"End"===e?l:"PageDown"===e?s-r:"PageUp"===e?s+r:null},this.separatorKeyDown=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedWidth(t);"number"==typeof e&&this.setContentWidth(e)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,initialContentWidth:i,position:a,initialClientX:n}=this,o=t.clientX-n,l="rtl"===d(e)?-1:1;this.setContentWidth(i+("end"===a?-l*o:l*o))},this.separatorPointerUp=t=>{h(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!h(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),this.setInitialContentWidth(),this.initialClientX=t.clientX,document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.collapsed=!1,this.detached=!1,this.detachedHeightScale="l",this.widthScale="m",this.position=void 0,this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){o(this),p(this),u(this)}async componentWillLoad(){await x(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),m(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){b(this,this.effectiveLocale)}renderHeader(){const{el:t}=this;return r(t,"header")?e("div",{class:"content__header",key:"header"},e("slot",{name:"header"})):null}render(){const{collapsed:t,detached:i,position:a,initialContentWidth:n,contentWidth:o,contentWidthMax:l,contentWidthMin:s,resizable:c}=this,r=!i&&c,d=e("div",{class:{content:!0,"content--detached":i},hidden:t,key:"content",ref:this.storeContentEl,style:r&&o?{width:`${o}px`}:null},this.renderHeader(),e("div",{class:"content__body"},e("slot",null))),h=r?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal","aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":o??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,ref:this.connectSeparator,role:"separator",tabIndex:0,"touch-action":"none"}):null,p=[e("slot",{key:"action-bar",name:"action-bar"}),d,h];return"end"===a&&p.reverse(),e("div",{class:{container:!0}},p)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,a=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?f(a,i,e):a}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);if(!e)return;const i=parseInt(e.getPropertyValue("max-width"),10),a=parseInt(e.getPropertyValue("min-width"),10),o=parseInt(e.getPropertyValue("width"),10);"number"!=typeof o||isNaN(o)||(this.initialContentWidth=o),"number"!=typeof i||isNaN(i)||(this.contentWidthMax=i),"number"!=typeof a||isNaN(a)||(this.contentWidthMin=a),n(this)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};y.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}:host([width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 40vh)}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 60vh)}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 80vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);max-block-size:var(--calcite-shell-panel-detached-max-height-internal)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}";export{v as calcite_shell,g as calcite_shell_center_row,y as calcite_shell_panel}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{g as t}from"./p-c5e8ae82.js";import{f as i,g as s,t as n}from"./p-4c3a83fd.js";import{d as e}from"./p-e8d17c86.js";import{h as a,H as o}from"./p-a6d8f60f.js";const c={heading:"heading",container:"container",indented:"container--indented"},r={parentItem:"parent-item"};function l(){this.setUpItems(),this.setUpFilter(),this.deselectRemovedItems()}const h=["ArrowUp","ArrowDown"];function u(){this.setUpItems(),this.setUpFilter(),this.emitCalciteListChange=e(F.bind(this),0),this.emitCalciteListFilter=e(A.bind(this),0)}function f(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}function d(){this.mutationObserver?.disconnect()}function m(t){const{selectedValues:s}=this,{item:n,value:e,selected:a,shiftPressed:o}=t.detail;a?(this.multiple&&o&&this.selectSiblings(n),this.multiple||this.deselectSiblingItems(n),s.set(e,n)):(s.delete(e),this.multiple&&o&&this.selectSiblings(n,!0)),this.multiple||(y(n,a),a&&i(n)),this.lastSelectedItem=n,this.emitCalciteListChange()}function p(t){const i=t.detail.oldValue,s=this.selectedValues;if(s.has(i)){const n=s.get(i);s.delete(i),s.set(t.detail.newValue,n)}t.stopPropagation()}function g(t){const{el:i,items:s,multiple:n,selectedValues:e}=this;n||i.contains(t.relatedTarget)||x(s).forEach((i=>{y(i,0===e.size?i.contains(t.target)||t.target===i:i.selected)}))}function v(t){const{key:s,target:n}=t;if(!function(t){return!!h.find((i=>i===t))}(s))return;const{items:e,multiple:a,selectionFollowsFocus:o}=this,{length:c}=e,r=e.indexOf(n);if(!c||-1===r)return;t.preventDefault();const l=e[b(this,n,"ArrowUp"===s?"up":"down")];e.forEach((t=>y(t,t===l))),!a&&o&&(l.selected=!0),i(l)}function b(i,s,n){const{items:e}=i,{length:a}=e,o=e.indexOf(s),c="up"===n?-1:1;let r=1,l=t(o+c*r++,a);const h=l;for(;e[l].disabled&&(l=t(o+c*r++,a),l!==h););return l}function w(t,i){const{items:s}=t;return s.indexOf(i)}function x(t){return t.filter((t=>!t.disabled))}function A(){this.calciteListFilter.emit()}function F(){this.calciteListChange.emit(this.selectedValues)}function E(t){if(t.defaultPrevented)return;const i=t.target,s=this.selectedValues;"CALCITE-PICK-LIST-GROUP"===i.parentElement.tagName&&i.slot===r.parentItem?(i.parentElement.remove(),Array.from(i.parentElement.children).forEach((t=>s.delete(t.value)))):(i.remove(),s.delete(i.value)),this.emitCalciteListChange()}function y(t,i){t.disabled||(i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1"))}async function C(t){if(this.filterEnabled&&"filter"===t)return void await i(this.filterEl);const{items:s,multiple:n,selectionFollowsFocus:e}=this;if(0===s.length)return;if(n)return x(s)[0]?.setFocus();const a=x(s),o=a.find((t=>t.selected))||a[0];return e&&o&&(o.selected=!0),o.setFocus()}function k(t){this.items=Array.from(this.el.querySelectorAll(t));let i=!1;const{items:s}=this;s.forEach((t=>{t.icon=this.getIconType(),this.multiple||(t.deselectDisabled=!0,y(t,!1)),t.selected&&(i=!0,y(t,!0),this.selectedValues.set(t.value,t))}));const[n]=s;i||!n||n.disabled||y(n,!0)}function I(){const t=this.selectedValues,i=this.items.map((({value:t})=>t));t.forEach((t=>{i.includes(t.value)||this.selectedValues.delete(t.value)}))}function j(t){this.items.forEach((i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))}))}function S(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,n=s.findIndex((t=>t.value===this.lastSelectedItem.value)),e=s.findIndex((i=>i.value===t.value));s.slice(Math.min(n,e),Math.max(n,e)).forEach((t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)}))}let L;function P(t=!1){const{filteredData:i,filterText:n}=this,e=i.map((t=>t.value));let a=!1;L||(L=new Set);const o=this.items?.filter((t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&L.add(i);const s=!n||e.includes(t.value);return t.hidden=!s,a||(a=s&&t.selected),s}))||[];L.forEach((t=>{const i=o.some((i=>t.contains(i)));if(t.hidden=!i,!i)return;const n=s(t,"parent-item");n&&(n.hidden=!1,o.includes(n)&&Array.from(t.children).forEach((t=>t.hidden=!1)))})),L.clear(),o.length>0&&!a&&!this.multiple&&y(o[0],!0),this.setFilteredItems(o),t&&this.emitCalciteListFilter()}function T(){const t=this.filterEl?.filteredItems;t&&(this.filteredData=t),this.handleFilter()}function D(t){t.stopPropagation();const{filteredItems:i,value:s}=t.currentTarget;this.filterText=s,this.filteredData=i,this.handleFilter(!0)}function U(){return this.items.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value})))}var q;!function(t){t.circle="circle",t.square="square",t.grip="grip"}(q||(q={}));const M=({props:{disabled:t,loading:i,filterEnabled:s,dataForFilter:e,handleFilterEvent:c,filterPlaceholder:r,filterText:l,setFilterEl:h,dragEnabled:u,storeAssistiveEl:f},...d})=>{const m=a("slot",null);return a(o,{"aria-busy":n(i),role:"menu",...d},a("section",null,u?a("span",{"aria-live":"assertive",class:"assistive-text",ref:f}):null,a("header",{class:{"sticky-pos":!0}},s?a("calcite-filter",{"aria-label":r,disabled:i||t,items:e,onCalciteFilterChange:c,placeholder:r,ref:h,value:l}):null,a("slot",{name:"menu-actions"})),i?a("calcite-scrim",{loading:i}):null,m))},V={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"},G={checked:"check",remove:"x"},H={actionsEnd:"actions-end",actionsStart:"actions-start"};export{V as C,q as I,M as L,H as S,j as a,D as b,U as c,I as d,b as e,f,w as g,P as h,u as i,T as j,v as k,d as l,l as m,g as n,m as o,p,k as q,E as r,S as s,C as t,r as u,c as v,G as w}
6
+ import{g as t}from"./p-43551a1e.js";import{f as i,g as s,t as n}from"./p-b5f2d8f1.js";import{d as e}from"./p-c0bdbdae.js";import{h as a,H as o}from"./p-8655c622.js";const c={heading:"heading",container:"container",indented:"container--indented"},r={parentItem:"parent-item"};function l(){this.setUpItems(),this.setUpFilter(),this.deselectRemovedItems()}const h=["ArrowUp","ArrowDown"];function u(){this.setUpItems(),this.setUpFilter(),this.emitCalciteListChange=e(F.bind(this),0),this.emitCalciteListFilter=e(A.bind(this),0)}function f(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}function d(){this.mutationObserver?.disconnect()}function m(t){const{selectedValues:s}=this,{item:n,value:e,selected:a,shiftPressed:o}=t.detail;a?(this.multiple&&o&&this.selectSiblings(n),this.multiple||this.deselectSiblingItems(n),s.set(e,n)):(s.delete(e),this.multiple&&o&&this.selectSiblings(n,!0)),this.multiple||(y(n,a),a&&i(n)),this.lastSelectedItem=n,this.emitCalciteListChange()}function p(t){const i=t.detail.oldValue,s=this.selectedValues;if(s.has(i)){const n=s.get(i);s.delete(i),s.set(t.detail.newValue,n)}t.stopPropagation()}function g(t){const{el:i,items:s,multiple:n,selectedValues:e}=this;n||i.contains(t.relatedTarget)||x(s).forEach((i=>{y(i,0===e.size?i.contains(t.target)||t.target===i:i.selected)}))}function v(t){const{key:s,target:n}=t;if(!function(t){return!!h.find((i=>i===t))}(s))return;const{items:e,multiple:a,selectionFollowsFocus:o}=this,{length:c}=e,r=e.indexOf(n);if(!c||-1===r)return;t.preventDefault();const l=e[b(this,n,"ArrowUp"===s?"up":"down")];e.forEach((t=>y(t,t===l))),!a&&o&&(l.selected=!0),i(l)}function b(i,s,n){const{items:e}=i,{length:a}=e,o=e.indexOf(s),c="up"===n?-1:1;let r=1,l=t(o+c*r++,a);const h=l;for(;e[l].disabled&&(l=t(o+c*r++,a),l!==h););return l}function w(t,i){const{items:s}=t;return s.indexOf(i)}function x(t){return t.filter((t=>!t.disabled))}function A(){this.calciteListFilter.emit()}function F(){this.calciteListChange.emit(this.selectedValues)}function E(t){if(t.defaultPrevented)return;const i=t.target,s=this.selectedValues;"CALCITE-PICK-LIST-GROUP"===i.parentElement.tagName&&i.slot===r.parentItem?(i.parentElement.remove(),Array.from(i.parentElement.children).forEach((t=>s.delete(t.value)))):(i.remove(),s.delete(i.value)),this.emitCalciteListChange()}function y(t,i){t.disabled||(i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1"))}async function C(t){if(this.filterEnabled&&"filter"===t)return void await i(this.filterEl);const{items:s,multiple:n,selectionFollowsFocus:e}=this;if(0===s.length)return;if(n)return x(s)[0]?.setFocus();const a=x(s),o=a.find((t=>t.selected))||a[0];return e&&o&&(o.selected=!0),o.setFocus()}function k(t){this.items=Array.from(this.el.querySelectorAll(t));let i=!1;const{items:s}=this;s.forEach((t=>{t.icon=this.getIconType(),this.multiple||(t.deselectDisabled=!0,y(t,!1)),t.selected&&(i=!0,y(t,!0),this.selectedValues.set(t.value,t))}));const[n]=s;i||!n||n.disabled||y(n,!0)}function I(){const t=this.selectedValues,i=this.items.map((({value:t})=>t));t.forEach((t=>{i.includes(t.value)||this.selectedValues.delete(t.value)}))}function j(t){this.items.forEach((i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))}))}function S(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,n=s.findIndex((t=>t.value===this.lastSelectedItem.value)),e=s.findIndex((i=>i.value===t.value));s.slice(Math.min(n,e),Math.max(n,e)).forEach((t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)}))}let L;function P(t=!1){const{filteredData:i,filterText:n}=this,e=i.map((t=>t.value));let a=!1;L||(L=new Set);const o=this.items?.filter((t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&L.add(i);const s=!n||e.includes(t.value);return t.hidden=!s,a||(a=s&&t.selected),s}))||[];L.forEach((t=>{const i=o.some((i=>t.contains(i)));if(t.hidden=!i,!i)return;const n=s(t,"parent-item");n&&(n.hidden=!1,o.includes(n)&&Array.from(t.children).forEach((t=>t.hidden=!1)))})),L.clear(),o.length>0&&!a&&!this.multiple&&y(o[0],!0),this.setFilteredItems(o),t&&this.emitCalciteListFilter()}function T(){const t=this.filterEl?.filteredItems;t&&(this.filteredData=t),this.handleFilter()}function D(t){t.stopPropagation();const{filteredItems:i,value:s}=t.currentTarget;this.filterText=s,this.filteredData=i,this.handleFilter(!0)}function U(){return this.items.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value})))}var q;!function(t){t.circle="circle",t.square="square",t.grip="grip"}(q||(q={}));const M=({props:{disabled:t,loading:i,filterEnabled:s,dataForFilter:e,handleFilterEvent:c,filterPlaceholder:r,filterText:l,setFilterEl:h,dragEnabled:u,storeAssistiveEl:f},...d})=>{const m=a("slot",null);return a(o,{"aria-busy":n(i),role:"menu",...d},a("section",null,u?a("span",{"aria-live":"assertive",class:"assistive-text",ref:f}):null,a("header",{class:{"sticky-pos":!0}},s?a("calcite-filter",{"aria-label":r,disabled:i||t,items:e,onCalciteFilterChange:c,placeholder:r,ref:h,value:l}):null,a("slot",{name:"menu-actions"})),i?a("calcite-scrim",{loading:i}):null,m))},V={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"},G={checked:"check",remove:"x"},H={actionsEnd:"actions-end",actionsStart:"actions-start"};export{V as C,q as I,M as L,H as S,j as a,D as b,U as c,I as d,b as e,f,w as g,P as h,u as i,T as j,v as k,d as l,l as m,g as n,m as o,p,k as q,E as r,S as s,C as t,r as u,c as v,G as w}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
- import{r as t,c as i,h as e,H as a,g as o}from"./p-a6d8f60f.js";import{i as n,q as s,t as r}from"./p-4c3a83fd.js";import{c,b as l,u as h,a as d,r as m,F as p}from"./p-dfc48405.js";import{g as f}from"./p-9bd46a0a.js";import{c as u,d as g}from"./p-29eafa1b.js";import"./p-3db71314.js";import"./p-e8d17c86.js";const v=new class{constructor(){this.registeredElements=new WeakMap,this.hoverTimeout=null,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key){const{activeTooltipEl:t}=this;t&&(this.clearHoverTimeout(),this.toggleTooltip(t,!1))}},this.queryHoveredTooltip=t=>{const{activeTooltipEl:i}=this;if(i&&t.includes(i))return void this.clearHoverTimeout();const e=this.queryTooltip(t);e?this.toggleHoveredTooltip(e,!0):i&&this.toggleHoveredTooltip(i,!1)},this.pointerMoveHandler=t=>{const i=t.composedPath();this.clearHoverTimeout(),this.hoverTimeout=window.setTimeout((()=>this.queryHoveredTooltip(i)),500)},this.pointerDownHandler=t=>{if(!n(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,i?.closeOnClick&&(this.toggleTooltip(i,!1),this.clearHoverTimeout())},this.focusInHandler=t=>{this.queryFocusedTooltip(t,!0)},this.focusOutHandler=t=>{this.queryFocusedTooltip(t,!1)},this.toggleHoveredTooltip=(t,i)=>{i&&this.closeExistingTooltip(),this.toggleTooltip(t,i)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("keydown",this.keyDownHandler),document.addEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.addEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.addEventListener("focusin",this.focusInHandler,{capture:!0}),document.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler),document.removeEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.removeEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.removeEventListener("focusin",this.focusInHandler,{capture:!0}),document.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}clearHoverTimeout(){window.clearTimeout(this.hoverTimeout)}closeExistingTooltip(){const{activeTooltipEl:t}=this;t&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeExistingTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,i&&(this.activeTooltipEl=t)}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&e!==this.clickedTooltip?this.toggleFocusedTooltip(e,i):this.clickedTooltip=null}},w=class{constructor(e){t(this,e),this.calciteTooltipBeforeClose=i(this,"calciteTooltipBeforeClose",6),this.calciteTooltipClose=i(this,"calciteTooltipClose",6),this.calciteTooltipBeforeOpen=i(this,"calciteTooltipBeforeOpen",6),this.calciteTooltipOpen=i(this,"calciteTooltipOpen",6),this.guid=`calcite-tooltip-${f()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,u(this)},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:a}=this;t&&e&&!a&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute("aria-describedby",i),v.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute("aria-describedby"),v.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):h(this.el)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){u(this),this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el),g(this)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:a,overlayPositioning:o,offsetDistance:n,offsetSkidding:s,arrowEl:r}=this;return m(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:a,offsetDistance:n,offsetSkidding:s,includeArrow:!0,arrowEl:r,type:"tooltip"},t)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit()}getReferenceElement(){const{referenceElement:t,el:i}=this;return("string"==typeof t?s(i,{id:t}):t)||null}render(){const{effectiveReferenceElement:t,label:i,open:o}=this,n=t&&o,s=!n;return e(a,{"aria-hidden":r(s),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":s,id:this.getId(),role:"tooltip"},e("div",{class:{[p.animation]:!0,[p.animationActive]:n},ref:this.setTransitionEl},e("div",{class:"arrow",ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return o(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};w.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{--calcite-floating-ui-z-index:var(--calcite-tooltip-z-index, 901);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}.container{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';export{w as calcite_tooltip}
6
+ import{r as t,c as i,h as e,H as a,g as o}from"./p-8655c622.js";import{i as n,q as s,t as r}from"./p-b5f2d8f1.js";import{c,b as l,u as h,a as d,r as m,F as p}from"./p-54ce87f0.js";import{g as f}from"./p-168b9252.js";import{c as u,d as g}from"./p-322ea05d.js";import"./p-a19eac5f.js";import"./p-c0bdbdae.js";const v=new class{constructor(){this.registeredElements=new WeakMap,this.hoverTimeout=null,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key){const{activeTooltipEl:t}=this;t&&(this.clearHoverTimeout(),this.toggleTooltip(t,!1))}},this.queryHoveredTooltip=t=>{const{activeTooltipEl:i}=this;if(i&&t.includes(i))return void this.clearHoverTimeout();const e=this.queryTooltip(t);e?this.toggleHoveredTooltip(e,!0):i&&this.toggleHoveredTooltip(i,!1)},this.pointerMoveHandler=t=>{const i=t.composedPath();this.clearHoverTimeout(),this.hoverTimeout=window.setTimeout((()=>this.queryHoveredTooltip(i)),500)},this.pointerDownHandler=t=>{if(!n(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,i?.closeOnClick&&(this.toggleTooltip(i,!1),this.clearHoverTimeout())},this.focusInHandler=t=>{this.queryFocusedTooltip(t,!0)},this.focusOutHandler=t=>{this.queryFocusedTooltip(t,!1)},this.toggleHoveredTooltip=(t,i)=>{i&&this.closeExistingTooltip(),this.toggleTooltip(t,i)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("keydown",this.keyDownHandler),document.addEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.addEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.addEventListener("focusin",this.focusInHandler,{capture:!0}),document.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler),document.removeEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.removeEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.removeEventListener("focusin",this.focusInHandler,{capture:!0}),document.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}clearHoverTimeout(){window.clearTimeout(this.hoverTimeout)}closeExistingTooltip(){const{activeTooltipEl:t}=this;t&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeExistingTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,i&&(this.activeTooltipEl=t)}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&e!==this.clickedTooltip?this.toggleFocusedTooltip(e,i):this.clickedTooltip=null}},w=class{constructor(e){t(this,e),this.calciteTooltipBeforeClose=i(this,"calciteTooltipBeforeClose",6),this.calciteTooltipClose=i(this,"calciteTooltipClose",6),this.calciteTooltipBeforeOpen=i(this,"calciteTooltipBeforeOpen",6),this.calciteTooltipOpen=i(this,"calciteTooltipOpen",6),this.guid=`calcite-tooltip-${f()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,u(this)},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:a}=this;t&&e&&!a&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute("aria-describedby",i),v.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute("aria-describedby"),v.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):h(this.el)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){u(this),this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el),g(this)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:a,overlayPositioning:o,offsetDistance:n,offsetSkidding:s,arrowEl:r}=this;return m(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:a,offsetDistance:n,offsetSkidding:s,includeArrow:!0,arrowEl:r,type:"tooltip"},t)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit()}getReferenceElement(){const{referenceElement:t,el:i}=this;return("string"==typeof t?s(i,{id:t}):t)||null}render(){const{effectiveReferenceElement:t,label:i,open:o}=this,n=t&&o,s=!n;return e(a,{"aria-hidden":r(s),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":s,id:this.getId(),role:"tooltip"},e("div",{class:{[p.animation]:!0,[p.animationActive]:n},ref:this.setTransitionEl},e("div",{class:"arrow",ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return o(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};w.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-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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{--calcite-floating-ui-z-index:var(--calcite-tooltip-z-index, 901);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}.container{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';export{w as calcite_tooltip}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.4-next.1
4
+ * v1.0.4-next.3
5
5
  */
6
6
  const n=new WeakMap,a=new WeakMap;function e(e){a.set(e,new Promise((a=>n.set(e,a))))}function o(a){n.get(a)()}function s(n){return a.get(n)}export{o as a,s as c,e as s}