@esri/calcite-components 1.4.0-next.0 → 1.4.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (684) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +2 -2
  3. package/dist/calcite/{p-e243abb7.entry.js → p-011511cb.entry.js} +2 -2
  4. package/dist/calcite/{p-121f6053.js → p-05ab23a4.js} +1 -1
  5. package/dist/calcite/{p-4f208a60.js → p-06cbf43b.js} +2 -2
  6. package/dist/calcite/{p-d37c6c61.js → p-09ce5774.js} +1 -1
  7. package/dist/calcite/{p-5682711c.entry.js → p-0a0557cc.entry.js} +2 -2
  8. package/dist/calcite/{p-8bd7bc4a.js → p-0b2aa850.js} +1 -1
  9. package/dist/calcite/{p-00a2d9ab.entry.js → p-0c4f55c6.entry.js} +2 -2
  10. package/dist/calcite/{p-e7ad5add.js → p-10eb1cf9.js} +1 -1
  11. package/dist/calcite/{p-6011d8eb.entry.js → p-10ec592c.entry.js} +2 -2
  12. package/dist/calcite/{p-1d426b87.js → p-10efaa0b.js} +2 -2
  13. package/dist/calcite/{p-6505aa9e.entry.js → p-14f205c4.entry.js} +2 -2
  14. package/dist/calcite/{p-3255b488.js → p-167c3f00.js} +1 -1
  15. package/dist/calcite/{p-f357d9a8.entry.js → p-16ae9dd5.entry.js} +2 -2
  16. package/dist/calcite/{p-5fae16d7.js → p-1838bef0.js} +2 -2
  17. package/dist/calcite/{p-7b652538.entry.js → p-1e062ce4.entry.js} +2 -2
  18. package/dist/calcite/{p-8b364d5b.entry.js → p-1e6f6938.entry.js} +2 -2
  19. package/dist/calcite/p-1e7f7863.entry.js +6 -0
  20. package/dist/calcite/{p-2cccfd42.entry.js → p-1f687247.entry.js} +2 -2
  21. package/dist/calcite/{p-376775c7.entry.js → p-237ec06f.entry.js} +2 -2
  22. package/dist/calcite/{p-483b59be.entry.js → p-2b60af21.entry.js} +2 -2
  23. package/dist/calcite/{p-9748745f.entry.js → p-2c768295.entry.js} +2 -2
  24. package/dist/calcite/{p-e11ced36.js → p-2e87b4ea.js} +2 -2
  25. package/dist/calcite/{p-ba0d3bd7.entry.js → p-35d72eb4.entry.js} +2 -2
  26. package/dist/calcite/p-362d24e9.entry.js +6 -0
  27. package/dist/calcite/{p-4d55aa78.js → p-3a115254.js} +2 -2
  28. package/dist/calcite/p-3c4730c6.entry.js +6 -0
  29. package/dist/calcite/{p-b66a142d.js → p-3f3a92f5.js} +1 -1
  30. package/dist/calcite/{p-48622a82.entry.js → p-42754c9c.entry.js} +2 -2
  31. package/dist/calcite/{p-c01d0233.entry.js → p-45049315.entry.js} +2 -2
  32. package/dist/calcite/{p-0008c6a3.entry.js → p-476d3c6b.entry.js} +2 -2
  33. package/dist/calcite/{p-f4cf789b.js → p-4850b80c.js} +3 -3
  34. package/dist/calcite/{p-64a44a39.js → p-48e14553.js} +2 -2
  35. package/dist/calcite/{p-34268eb0.entry.js → p-4d4127c6.entry.js} +2 -2
  36. package/dist/calcite/{p-5368cb06.entry.js → p-50030a6a.entry.js} +2 -2
  37. package/dist/calcite/{p-b822b669.entry.js → p-58888daa.entry.js} +2 -2
  38. package/dist/calcite/{p-58337196.entry.js → p-5b32f67c.entry.js} +2 -2
  39. package/dist/calcite/{p-397fcd80.entry.js → p-5bea8f47.entry.js} +2 -2
  40. package/dist/calcite/{p-f77c2524.entry.js → p-5c0f2390.entry.js} +2 -2
  41. package/dist/calcite/{p-dc29d755.entry.js → p-6101b720.entry.js} +2 -2
  42. package/dist/calcite/{p-0847f232.entry.js → p-6119302f.entry.js} +2 -2
  43. package/dist/calcite/p-64f42987.js +6 -0
  44. package/dist/calcite/{p-dc1dcfc1.entry.js → p-65b29689.entry.js} +2 -2
  45. package/dist/calcite/{p-f8e0c9ff.js → p-71280366.js} +1 -1
  46. package/dist/calcite/{p-48afa956.entry.js → p-74da67fa.entry.js} +2 -2
  47. package/dist/calcite/{p-4326ccbd.js → p-79176fd4.js} +1 -1
  48. package/dist/calcite/{p-087c40ee.js → p-7f1b83e3.js} +1 -1
  49. package/dist/calcite/{p-57e653ea.js → p-80fa9ed2.js} +1 -1
  50. package/dist/calcite/{p-6b118e60.entry.js → p-8232fd95.entry.js} +2 -2
  51. package/dist/calcite/{p-0f59b0fa.js → p-88f36b22.js} +2 -2
  52. package/dist/calcite/{p-51cd139f.entry.js → p-8934ded4.entry.js} +2 -2
  53. package/dist/calcite/{p-695e0525.entry.js → p-8cb424e0.entry.js} +2 -2
  54. package/dist/calcite/{p-3c4b364e.entry.js → p-91e41742.entry.js} +2 -2
  55. package/dist/calcite/p-933dd110.js +6 -0
  56. package/dist/calcite/{p-6088fbfa.js → p-94c1d4af.js} +1 -1
  57. package/dist/calcite/{p-11beded1.js → p-97e2186f.js} +3 -3
  58. package/dist/calcite/p-9c064107.entry.js +6 -0
  59. package/dist/calcite/{p-97efa412.entry.js → p-9c1a4d11.entry.js} +2 -2
  60. package/dist/calcite/{p-6950ca4b.js → p-9c9d05de.js} +2 -2
  61. package/dist/calcite/{p-1f0e9bdc.entry.js → p-9df39fab.entry.js} +2 -2
  62. package/dist/calcite/{p-cdbd4c6f.entry.js → p-9e5ae80c.entry.js} +2 -2
  63. package/dist/calcite/{p-47d5e341.entry.js → p-9eb63dec.entry.js} +2 -2
  64. package/dist/calcite/{p-1d34d5b7.entry.js → p-a4947146.entry.js} +2 -2
  65. package/dist/calcite/{p-86a533d8.entry.js → p-a4a47fc0.entry.js} +2 -2
  66. package/dist/calcite/{p-b7cc02fa.js → p-a869afb5.js} +1 -1
  67. package/dist/calcite/{p-bf6df76d.js → p-a8dccd87.js} +2 -2
  68. package/dist/calcite/{p-6f2233a8.entry.js → p-af45c140.entry.js} +2 -2
  69. package/dist/calcite/{p-3b3b1e7e.entry.js → p-b36b7fa6.entry.js} +2 -2
  70. package/dist/calcite/{p-94f16774.js → p-b4ac3021.js} +2 -2
  71. package/dist/calcite/{p-7fb70776.entry.js → p-b4f0ddfa.entry.js} +2 -2
  72. package/dist/calcite/p-bb53dfac.entry.js +6 -0
  73. package/dist/calcite/{p-df66e5af.entry.js → p-bc17d945.entry.js} +2 -2
  74. package/dist/calcite/{p-f8e1c231.js → p-bd034ba6.js} +1 -1
  75. package/dist/calcite/{p-2fa9c44a.js → p-c0e3bcbb.js} +1 -1
  76. package/dist/calcite/{p-ffd4191d.js → p-c9cee6d4.js} +2 -2
  77. package/dist/calcite/{p-21bacae6.entry.js → p-cedb7c80.entry.js} +2 -2
  78. package/dist/calcite/{p-5b24b90a.js → p-cfc14f04.js} +1 -1
  79. package/dist/calcite/{p-83bf9a0f.entry.js → p-cff33ac3.entry.js} +2 -2
  80. package/dist/calcite/{p-8c54a92e.entry.js → p-d439462e.entry.js} +2 -2
  81. package/dist/calcite/{p-137b6f9b.js → p-d71b3bc7.js} +2 -2
  82. package/dist/calcite/{p-1abc82c2.entry.js → p-d9695128.entry.js} +2 -2
  83. package/dist/calcite/{p-2fceaf3f.entry.js → p-df991c6e.entry.js} +2 -2
  84. package/dist/calcite/{p-5e23d67e.entry.js → p-e45ccc87.entry.js} +2 -2
  85. package/dist/calcite/{p-06615599.entry.js → p-e4b00161.entry.js} +2 -2
  86. package/dist/calcite/{p-94aa5071.js → p-e57bae5e.js} +1 -1
  87. package/dist/calcite/{p-37d9d3e2.entry.js → p-e7796f2d.entry.js} +2 -2
  88. package/dist/calcite/{p-9779f6b5.entry.js → p-ec0ef27a.entry.js} +2 -2
  89. package/dist/calcite/{p-c86d27a3.entry.js → p-ecbe2fbf.entry.js} +2 -2
  90. package/dist/calcite/{p-c6b0ff12.entry.js → p-ef0730f1.entry.js} +2 -2
  91. package/dist/calcite/{p-02ef04d5.entry.js → p-efb4f4fc.entry.js} +2 -2
  92. package/dist/calcite/{p-f3753747.entry.js → p-f14c494f.entry.js} +2 -2
  93. package/dist/calcite/{p-db9631fc.entry.js → p-f3875914.entry.js} +2 -2
  94. package/dist/calcite/{p-2f0fa893.entry.js → p-f478a5cd.entry.js} +2 -2
  95. package/dist/calcite/{p-20ed5889.entry.js → p-f56550d0.entry.js} +2 -2
  96. package/dist/calcite/{p-425f369a.entry.js → p-f7a1014c.entry.js} +2 -2
  97. package/dist/calcite/{p-289f6317.js → p-f8c3ca31.js} +1 -1
  98. package/dist/calcite/p-fbc9f53b.js +6 -0
  99. package/dist/cjs/{ExpandToggle-bdfd6fa1.js → ExpandToggle-8be6c219.js} +5 -5
  100. package/dist/cjs/{FloatingArrow-2721f8fc.js → FloatingArrow-1d874dd3.js} +2 -2
  101. package/dist/cjs/{Heading-6ef1898d.js → Heading-6e8c6970.js} +2 -2
  102. package/dist/cjs/{app-globals-cd964522.js → app-globals-d6c6e491.js} +2 -2
  103. package/dist/cjs/{array-576d7912.js → array-a3559022.js} +1 -1
  104. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  105. package/dist/cjs/calcite-action-bar.cjs.entry.js +16 -16
  106. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  107. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  108. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  109. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  110. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  111. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  112. package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
  113. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  114. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  115. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  116. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
  117. package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
  118. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -15
  119. package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
  120. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
  121. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
  122. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  123. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  124. package/dist/cjs/calcite-flow-item.cjs.entry.js +14 -13
  125. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  126. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  127. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  128. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  129. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  130. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
  131. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  132. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  133. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  134. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +14 -14
  135. package/dist/cjs/calcite-input.cjs.entry.js +13 -13
  136. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  137. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  138. package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
  139. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  141. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  142. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  143. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  144. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  145. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  146. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  147. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  148. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  149. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  150. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  151. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  152. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
  153. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  154. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  155. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  156. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  157. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  158. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  159. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
  160. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
  161. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  162. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  163. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  164. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  165. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  166. package/dist/cjs/calcite.cjs.js +4 -4
  167. package/dist/cjs/{composed-offset-position.esm-1a67d05e.js → composed-offset-position.esm-bc107f9c.js} +1 -1
  168. package/dist/cjs/{conditionalSlot-229cfc41.js → conditionalSlot-85d8a39b.js} +3 -3
  169. package/dist/cjs/{debounce-b4f960bc.js → debounce-0b0c3e48.js} +1 -1
  170. package/dist/cjs/{dom-aa42bfcf.js → dom-f9400ca1.js} +3 -3
  171. package/dist/cjs/{filter-0dcbb310.js → filter-4b6a7ee1.js} +2 -2
  172. package/dist/cjs/{floating-ui-681123a5.js → floating-ui-49a14f8c.js} +4 -4
  173. package/dist/cjs/{focusTrapComponent-2d2242ef.js → focusTrapComponent-a4005ef0.js} +2 -2
  174. package/dist/cjs/{form-7bfb80aa.js → form-5319a134.js} +3 -3
  175. package/dist/cjs/{guid-00be0e24.js → guid-df0b1b5d.js} +1 -1
  176. package/dist/cjs/{index-8eb869ae.js → index-553d1664.js} +1 -1
  177. package/dist/cjs/index.cjs.js +2 -2
  178. package/dist/cjs/{interactive-2287fde4.js → interactive-afcd2bcf.js} +1 -1
  179. package/dist/cjs/{key-a8c7ee49.js → key-0e1104c8.js} +1 -1
  180. package/dist/cjs/{label-cd4c10e7.js → label-72c6b47e.js} +2 -2
  181. package/dist/cjs/{loadable-68686b66.js → loadable-e46bdd21.js} +1 -1
  182. package/dist/cjs/loader.cjs.js +4 -4
  183. package/dist/cjs/{locale-c1aecec9.js → locale-fc192d5d.js} +4 -4
  184. package/dist/cjs/{math-e324135c.js → math-45a48fac.js} +1 -1
  185. package/dist/cjs/{observers-2ab1ae0b.js → observers-8a5d00d6.js} +1 -1
  186. package/dist/cjs/{openCloseComponent-9ad26303.js → openCloseComponent-92417331.js} +2 -2
  187. package/dist/cjs/{resources-0e53773f.js → resources-0ea2e924.js} +1 -1
  188. package/dist/cjs/{resources-5c51a6fd.js → resources-449b65db.js} +5 -5
  189. package/dist/cjs/{resources-b8855250.js → resources-72928269.js} +1 -1
  190. package/dist/cjs/{resources-82f78554.js → resources-834a9b8e.js} +1 -1
  191. package/dist/cjs/{resources-cf6da3a8.js → resources-8fa519f6.js} +1 -1
  192. package/dist/cjs/{resources-d24283c8.js → resources-e173a921.js} +1 -1
  193. package/dist/cjs/{sortable.esm-b85af44a.js → sortable.esm-c2155b9b.js} +1 -1
  194. package/dist/cjs/{t9n-c3de7794.js → t9n-5b2dd7cc.js} +3 -3
  195. package/dist/cjs/{throttle-32a0520b.js → throttle-32e1a178.js} +2 -2
  196. package/dist/cjs/{utils-b82df3c4.js → utils-684ca27c.js} +3 -3
  197. package/dist/cjs/{utils-7c8d4b9c.js → utils-b3c74b4c.js} +1 -1
  198. package/dist/collection/components/accordion/accordion.js +1 -1
  199. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  200. package/dist/collection/components/accordion-item/resources.js +1 -1
  201. package/dist/collection/components/action/action.js +1 -1
  202. package/dist/collection/components/action/resources.js +1 -1
  203. package/dist/collection/components/action-bar/action-bar.css +9 -11
  204. package/dist/collection/components/action-bar/action-bar.js +1 -1
  205. package/dist/collection/components/action-bar/resources.js +1 -1
  206. package/dist/collection/components/action-bar/utils.js +1 -1
  207. package/dist/collection/components/action-group/action-group.js +1 -1
  208. package/dist/collection/components/action-group/resources.js +1 -1
  209. package/dist/collection/components/action-menu/action-menu.js +1 -1
  210. package/dist/collection/components/action-menu/resources.js +1 -1
  211. package/dist/collection/components/action-pad/action-pad.js +1 -1
  212. package/dist/collection/components/action-pad/resources.js +1 -1
  213. package/dist/collection/components/alert/alert.js +1 -1
  214. package/dist/collection/components/alert/resources.js +1 -1
  215. package/dist/collection/components/avatar/avatar.js +1 -1
  216. package/dist/collection/components/avatar/utils.js +1 -1
  217. package/dist/collection/components/block/block.css +1 -1
  218. package/dist/collection/components/block/block.js +1 -1
  219. package/dist/collection/components/block/resources.js +1 -1
  220. package/dist/collection/components/block-section/block-section.js +1 -1
  221. package/dist/collection/components/block-section/resources.js +1 -1
  222. package/dist/collection/components/button/button.js +1 -1
  223. package/dist/collection/components/button/resources.js +1 -1
  224. package/dist/collection/components/card/card.js +1 -1
  225. package/dist/collection/components/card/resources.js +1 -1
  226. package/dist/collection/components/checkbox/checkbox.js +1 -1
  227. package/dist/collection/components/chip/chip.js +1 -1
  228. package/dist/collection/components/chip/resources.js +1 -1
  229. package/dist/collection/components/chip-group/chip-group.js +1 -1
  230. package/dist/collection/components/color-picker/color-picker.js +1 -1
  231. package/dist/collection/components/color-picker/resources.js +1 -1
  232. package/dist/collection/components/color-picker/utils.js +1 -1
  233. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  234. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  235. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  236. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  237. package/dist/collection/components/combobox/combobox.js +1 -1
  238. package/dist/collection/components/combobox/resources.js +1 -1
  239. package/dist/collection/components/combobox/utils.js +1 -1
  240. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  241. package/dist/collection/components/combobox-item/resources.js +1 -1
  242. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  243. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  244. package/dist/collection/components/date-picker/date-picker.js +1 -1
  245. package/dist/collection/components/date-picker/resources.js +1 -1
  246. package/dist/collection/components/date-picker/utils.js +1 -1
  247. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  248. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  249. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  250. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  251. package/dist/collection/components/dropdown/dropdown.js +1 -1
  252. package/dist/collection/components/dropdown/resources.js +1 -1
  253. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  254. package/dist/collection/components/dropdown-group/resources.js +1 -1
  255. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  256. package/dist/collection/components/dropdown-item/resources.js +1 -1
  257. package/dist/collection/components/fab/fab.js +1 -1
  258. package/dist/collection/components/fab/resources.js +1 -1
  259. package/dist/collection/components/filter/filter.js +1 -1
  260. package/dist/collection/components/filter/resources.js +1 -1
  261. package/dist/collection/components/flow/flow.js +1 -1
  262. package/dist/collection/components/flow/resources.js +1 -1
  263. package/dist/collection/components/flow-item/flow-item.js +3 -2
  264. package/dist/collection/components/flow-item/resources.js +2 -1
  265. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  266. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  267. package/dist/collection/components/functional/Heading.js +1 -1
  268. package/dist/collection/components/graph/graph.js +1 -1
  269. package/dist/collection/components/graph/util.js +1 -1
  270. package/dist/collection/components/handle/handle.js +1 -1
  271. package/dist/collection/components/handle/resources.js +1 -1
  272. package/dist/collection/components/icon/icon.js +1 -1
  273. package/dist/collection/components/icon/resources.js +1 -1
  274. package/dist/collection/components/icon/utils.js +1 -1
  275. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  276. package/dist/collection/components/inline-editable/resources.js +1 -1
  277. package/dist/collection/components/input/input.js +1 -1
  278. package/dist/collection/components/input/resources.js +1 -1
  279. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  280. package/dist/collection/components/input-date-picker/resources.js +1 -1
  281. package/dist/collection/components/input-message/input-message.js +1 -1
  282. package/dist/collection/components/input-message/interfaces.js +1 -1
  283. package/dist/collection/components/input-number/input-number.js +1 -1
  284. package/dist/collection/components/input-number/resources.js +1 -1
  285. package/dist/collection/components/input-text/input-text.js +1 -1
  286. package/dist/collection/components/input-text/resources.js +1 -1
  287. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  288. package/dist/collection/components/input-time-picker/resources.js +1 -1
  289. package/dist/collection/components/label/label.js +1 -1
  290. package/dist/collection/components/label/resources.js +1 -1
  291. package/dist/collection/components/link/link.js +1 -1
  292. package/dist/collection/components/list/list.js +1 -1
  293. package/dist/collection/components/list/resources.js +1 -1
  294. package/dist/collection/components/list-item/list-item.js +1 -1
  295. package/dist/collection/components/list-item/resources.js +1 -1
  296. package/dist/collection/components/list-item/utils.js +1 -1
  297. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  298. package/dist/collection/components/list-item-group/resources.js +1 -1
  299. package/dist/collection/components/loader/loader.js +1 -1
  300. package/dist/collection/components/modal/modal.js +1 -1
  301. package/dist/collection/components/modal/resources.js +1 -1
  302. package/dist/collection/components/notice/notice.js +1 -1
  303. package/dist/collection/components/notice/resources.js +1 -1
  304. package/dist/collection/components/option/option.js +1 -1
  305. package/dist/collection/components/option-group/option-group.js +1 -1
  306. package/dist/collection/components/pagination/pagination.js +1 -1
  307. package/dist/collection/components/pagination/resources.js +1 -1
  308. package/dist/collection/components/panel/panel.js +1 -1
  309. package/dist/collection/components/panel/resources.js +1 -1
  310. package/dist/collection/components/pick-list/pick-list.js +1 -1
  311. package/dist/collection/components/pick-list/resources.js +1 -1
  312. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  313. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  314. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  315. package/dist/collection/components/pick-list-group/resources.js +1 -1
  316. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  317. package/dist/collection/components/pick-list-item/resources.js +1 -1
  318. package/dist/collection/components/popover/PopoverManager.js +1 -1
  319. package/dist/collection/components/popover/popover.js +1 -1
  320. package/dist/collection/components/popover/resources.js +1 -1
  321. package/dist/collection/components/progress/progress.js +1 -1
  322. package/dist/collection/components/radio-button/radio-button.js +1 -1
  323. package/dist/collection/components/radio-button/resources.js +1 -1
  324. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  325. package/dist/collection/components/rating/function/star.js +1 -1
  326. package/dist/collection/components/rating/rating.js +1 -1
  327. package/dist/collection/components/resources.js +1 -1
  328. package/dist/collection/components/scrim/resources.js +1 -1
  329. package/dist/collection/components/scrim/scrim.js +1 -1
  330. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  331. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  332. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  333. package/dist/collection/components/select/resources.js +1 -1
  334. package/dist/collection/components/select/select.js +1 -1
  335. package/dist/collection/components/shell/resources.js +1 -1
  336. package/dist/collection/components/shell/shell.js +1 -1
  337. package/dist/collection/components/shell-center-row/resources.js +1 -1
  338. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  339. package/dist/collection/components/shell-panel/resources.js +1 -1
  340. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  341. package/dist/collection/components/slider/resources.js +1 -1
  342. package/dist/collection/components/slider/slider.js +1 -1
  343. package/dist/collection/components/sortable-list/resources.js +1 -1
  344. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  345. package/dist/collection/components/split-button/resources.js +1 -1
  346. package/dist/collection/components/split-button/split-button.js +1 -1
  347. package/dist/collection/components/stepper/stepper.js +1 -1
  348. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  349. package/dist/collection/components/switch/switch.js +1 -1
  350. package/dist/collection/components/tab/tab.js +1 -1
  351. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  352. package/dist/collection/components/tab-title/resources.js +1 -1
  353. package/dist/collection/components/tab-title/tab-title.js +1 -1
  354. package/dist/collection/components/tabs/resources.js +1 -1
  355. package/dist/collection/components/tabs/tabs.js +1 -1
  356. package/dist/collection/components/text-area/resources.js +1 -1
  357. package/dist/collection/components/text-area/text-area.js +1 -1
  358. package/dist/collection/components/tile/resources.js +1 -1
  359. package/dist/collection/components/tile/tile.js +1 -1
  360. package/dist/collection/components/tile-select/resources.js +1 -1
  361. package/dist/collection/components/tile-select/tile-select.js +1 -1
  362. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  363. package/dist/collection/components/time-picker/resources.js +1 -1
  364. package/dist/collection/components/time-picker/time-picker.js +1 -1
  365. package/dist/collection/components/tip/resources.js +1 -1
  366. package/dist/collection/components/tip/tip.js +1 -1
  367. package/dist/collection/components/tip-group/tip-group.js +1 -1
  368. package/dist/collection/components/tip-manager/resources.js +1 -1
  369. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  370. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  371. package/dist/collection/components/tooltip/resources.js +1 -1
  372. package/dist/collection/components/tooltip/tooltip.js +1 -1
  373. package/dist/collection/components/tooltip/utils.js +1 -1
  374. package/dist/collection/components/tree/tree.js +1 -1
  375. package/dist/collection/components/tree/utils.js +1 -1
  376. package/dist/collection/components/tree-item/resources.js +1 -1
  377. package/dist/collection/components/tree-item/tree-item.js +1 -1
  378. package/dist/collection/components/value-list/resources.js +1 -1
  379. package/dist/collection/components/value-list/utils.js +1 -1
  380. package/dist/collection/components/value-list/value-list.js +1 -1
  381. package/dist/collection/components/value-list-item/resources.js +1 -1
  382. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  383. package/dist/collection/index.js +1 -1
  384. package/dist/collection/utils/array.js +1 -1
  385. package/dist/collection/utils/conditionalSlot.js +1 -1
  386. package/dist/collection/utils/config.js +1 -1
  387. package/dist/collection/utils/date.js +1 -1
  388. package/dist/collection/utils/dom.js +1 -1
  389. package/dist/collection/utils/filter.js +1 -1
  390. package/dist/collection/utils/floating-ui.js +1 -1
  391. package/dist/collection/utils/focusTrapComponent.js +1 -1
  392. package/dist/collection/utils/form.js +1 -1
  393. package/dist/collection/utils/globalAttributes.js +1 -1
  394. package/dist/collection/utils/globalScript.js +1 -1
  395. package/dist/collection/utils/guid.js +1 -1
  396. package/dist/collection/utils/interactive.js +1 -1
  397. package/dist/collection/utils/key.js +1 -1
  398. package/dist/collection/utils/label.js +1 -1
  399. package/dist/collection/utils/loadable.js +1 -1
  400. package/dist/collection/utils/locale.js +1 -1
  401. package/dist/collection/utils/math.js +1 -1
  402. package/dist/collection/utils/mode.js +1 -1
  403. package/dist/collection/utils/number.js +1 -1
  404. package/dist/collection/utils/observers.js +1 -1
  405. package/dist/collection/utils/openCloseComponent.js +1 -1
  406. package/dist/collection/utils/resources.js +1 -1
  407. package/dist/collection/utils/t9n.js +1 -1
  408. package/dist/collection/utils/time.js +1 -1
  409. package/dist/components/ExpandToggle.js +1 -1
  410. package/dist/components/FloatingArrow.js +1 -1
  411. package/dist/components/Heading.js +1 -1
  412. package/dist/components/action-group.js +1 -1
  413. package/dist/components/action-menu.js +1 -1
  414. package/dist/components/action.js +1 -1
  415. package/dist/components/array.js +1 -1
  416. package/dist/components/button.js +1 -1
  417. package/dist/components/calcite-accordion-item.js +1 -1
  418. package/dist/components/calcite-accordion.js +1 -1
  419. package/dist/components/calcite-action-bar.js +2 -2
  420. package/dist/components/calcite-action-group.js +1 -1
  421. package/dist/components/calcite-action-menu.js +1 -1
  422. package/dist/components/calcite-action-pad.js +1 -1
  423. package/dist/components/calcite-action.js +1 -1
  424. package/dist/components/calcite-alert.js +1 -1
  425. package/dist/components/calcite-avatar.js +1 -1
  426. package/dist/components/calcite-block-section.js +1 -1
  427. package/dist/components/calcite-block.js +2 -2
  428. package/dist/components/calcite-button.js +1 -1
  429. package/dist/components/calcite-card.js +1 -1
  430. package/dist/components/calcite-checkbox.js +1 -1
  431. package/dist/components/calcite-chip-group.js +1 -1
  432. package/dist/components/calcite-chip.js +1 -1
  433. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  434. package/dist/components/calcite-color-picker-swatch.js +1 -1
  435. package/dist/components/calcite-color-picker.js +1 -1
  436. package/dist/components/calcite-combobox-item-group.js +1 -1
  437. package/dist/components/calcite-combobox-item.js +1 -1
  438. package/dist/components/calcite-combobox.js +1 -1
  439. package/dist/components/calcite-date-picker-day.js +1 -1
  440. package/dist/components/calcite-date-picker-month-header.js +1 -1
  441. package/dist/components/calcite-date-picker-month.js +1 -1
  442. package/dist/components/calcite-date-picker.js +1 -1
  443. package/dist/components/calcite-dropdown-group.js +1 -1
  444. package/dist/components/calcite-dropdown-item.js +1 -1
  445. package/dist/components/calcite-dropdown.js +1 -1
  446. package/dist/components/calcite-fab.js +1 -1
  447. package/dist/components/calcite-filter.js +1 -1
  448. package/dist/components/calcite-flow-item.js +3 -2
  449. package/dist/components/calcite-flow.js +1 -1
  450. package/dist/components/calcite-graph.js +1 -1
  451. package/dist/components/calcite-handle.js +1 -1
  452. package/dist/components/calcite-icon.js +1 -1
  453. package/dist/components/calcite-inline-editable.js +1 -1
  454. package/dist/components/calcite-input-date-picker.js +1 -1
  455. package/dist/components/calcite-input-message.js +1 -1
  456. package/dist/components/calcite-input-number.js +1 -1
  457. package/dist/components/calcite-input-text.js +1 -1
  458. package/dist/components/calcite-input-time-picker.js +1 -1
  459. package/dist/components/calcite-input.js +1 -1
  460. package/dist/components/calcite-label.js +1 -1
  461. package/dist/components/calcite-link.js +1 -1
  462. package/dist/components/calcite-list-item-group.js +1 -1
  463. package/dist/components/calcite-list-item.js +1 -1
  464. package/dist/components/calcite-list.js +1 -1
  465. package/dist/components/calcite-loader.js +1 -1
  466. package/dist/components/calcite-modal.js +1 -1
  467. package/dist/components/calcite-notice.js +1 -1
  468. package/dist/components/calcite-option-group.js +1 -1
  469. package/dist/components/calcite-option.js +1 -1
  470. package/dist/components/calcite-pagination.js +1 -1
  471. package/dist/components/calcite-panel.js +1 -1
  472. package/dist/components/calcite-pick-list-group.js +1 -1
  473. package/dist/components/calcite-pick-list-item.js +1 -1
  474. package/dist/components/calcite-pick-list.js +1 -1
  475. package/dist/components/calcite-popover.js +1 -1
  476. package/dist/components/calcite-progress.js +1 -1
  477. package/dist/components/calcite-radio-button-group.js +1 -1
  478. package/dist/components/calcite-radio-button.js +1 -1
  479. package/dist/components/calcite-rating.js +1 -1
  480. package/dist/components/calcite-scrim.js +1 -1
  481. package/dist/components/calcite-segmented-control-item.js +1 -1
  482. package/dist/components/calcite-segmented-control.js +1 -1
  483. package/dist/components/calcite-select.js +1 -1
  484. package/dist/components/calcite-shell-center-row.js +1 -1
  485. package/dist/components/calcite-shell-panel.js +1 -1
  486. package/dist/components/calcite-shell.js +1 -1
  487. package/dist/components/calcite-slider.js +1 -1
  488. package/dist/components/calcite-sortable-list.js +1 -1
  489. package/dist/components/calcite-split-button.js +1 -1
  490. package/dist/components/calcite-stepper-item.js +1 -1
  491. package/dist/components/calcite-stepper.js +1 -1
  492. package/dist/components/calcite-switch.js +1 -1
  493. package/dist/components/calcite-tab-nav.js +1 -1
  494. package/dist/components/calcite-tab-title.js +1 -1
  495. package/dist/components/calcite-tab.js +1 -1
  496. package/dist/components/calcite-tabs.js +1 -1
  497. package/dist/components/calcite-text-area.js +1 -1
  498. package/dist/components/calcite-tile-select-group.js +1 -1
  499. package/dist/components/calcite-tile-select.js +1 -1
  500. package/dist/components/calcite-tile.js +1 -1
  501. package/dist/components/calcite-time-picker.js +1 -1
  502. package/dist/components/calcite-tip-group.js +1 -1
  503. package/dist/components/calcite-tip-manager.js +1 -1
  504. package/dist/components/calcite-tip.js +1 -1
  505. package/dist/components/calcite-tooltip.js +1 -1
  506. package/dist/components/calcite-tree-item.js +1 -1
  507. package/dist/components/calcite-tree.js +1 -1
  508. package/dist/components/calcite-value-list-item.js +1 -1
  509. package/dist/components/calcite-value-list.js +1 -1
  510. package/dist/components/checkbox.js +1 -1
  511. package/dist/components/chip.js +1 -1
  512. package/dist/components/color-picker-hex-input.js +1 -1
  513. package/dist/components/color-picker-swatch.js +1 -1
  514. package/dist/components/composed-offset-position.esm.js +1 -1
  515. package/dist/components/conditionalSlot.js +1 -1
  516. package/dist/components/date-picker-day.js +1 -1
  517. package/dist/components/date-picker-month-header.js +1 -1
  518. package/dist/components/date-picker-month.js +1 -1
  519. package/dist/components/date-picker.js +1 -1
  520. package/dist/components/date.js +1 -1
  521. package/dist/components/debounce.js +1 -1
  522. package/dist/components/dom.js +1 -1
  523. package/dist/components/dropdown.js +1 -1
  524. package/dist/components/filter.js +1 -1
  525. package/dist/components/filter2.js +1 -1
  526. package/dist/components/floating-ui.js +1 -1
  527. package/dist/components/focusTrapComponent.js +1 -1
  528. package/dist/components/form.js +1 -1
  529. package/dist/components/graph.js +1 -1
  530. package/dist/components/guid.js +1 -1
  531. package/dist/components/handle.js +1 -1
  532. package/dist/components/icon.js +1 -1
  533. package/dist/components/index.js +1 -1
  534. package/dist/components/input.js +1 -1
  535. package/dist/components/interactive.js +1 -1
  536. package/dist/components/key.js +1 -1
  537. package/dist/components/label.js +1 -1
  538. package/dist/components/label2.js +1 -1
  539. package/dist/components/link.js +1 -1
  540. package/dist/components/loadable.js +1 -1
  541. package/dist/components/loader.js +1 -1
  542. package/dist/components/locale.js +1 -1
  543. package/dist/components/math.js +1 -1
  544. package/dist/components/observers.js +1 -1
  545. package/dist/components/openCloseComponent.js +1 -1
  546. package/dist/components/panel.js +1 -1
  547. package/dist/components/pick-list-item.js +1 -1
  548. package/dist/components/popover.js +1 -1
  549. package/dist/components/progress.js +1 -1
  550. package/dist/components/resources.js +1 -1
  551. package/dist/components/resources2.js +1 -1
  552. package/dist/components/resources3.js +1 -1
  553. package/dist/components/scrim.js +1 -1
  554. package/dist/components/shared-list-render.js +1 -1
  555. package/dist/components/sortable.esm.js +1 -1
  556. package/dist/components/switch.js +1 -1
  557. package/dist/components/t9n.js +1 -1
  558. package/dist/components/tab-nav.js +1 -1
  559. package/dist/components/tab-title.js +1 -1
  560. package/dist/components/tab.js +1 -1
  561. package/dist/components/tabs.js +1 -1
  562. package/dist/components/throttle.js +1 -1
  563. package/dist/components/tile.js +1 -1
  564. package/dist/components/time-picker.js +1 -1
  565. package/dist/components/tooltip.js +1 -1
  566. package/dist/components/utils.js +1 -1
  567. package/dist/components/utils2.js +1 -1
  568. package/dist/components/utils3.js +1 -1
  569. package/dist/esm/{ExpandToggle-fde6af4a.js → ExpandToggle-37ab85de.js} +5 -5
  570. package/dist/esm/{FloatingArrow-22ca29de.js → FloatingArrow-11bd14e7.js} +2 -2
  571. package/dist/esm/{Heading-0cfa1161.js → Heading-fdd83b9d.js} +2 -2
  572. package/dist/esm/{app-globals-2838ecbb.js → app-globals-ee877a6d.js} +2 -2
  573. package/dist/esm/{array-2b055bc9.js → array-7bb8724e.js} +1 -1
  574. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  575. package/dist/esm/calcite-action-bar.entry.js +16 -16
  576. package/dist/esm/calcite-action-group.entry.js +13 -13
  577. package/dist/esm/calcite-action-menu.entry.js +9 -9
  578. package/dist/esm/calcite-action-pad.entry.js +14 -14
  579. package/dist/esm/calcite-action.entry.js +11 -11
  580. package/dist/esm/calcite-alert.entry.js +12 -12
  581. package/dist/esm/calcite-avatar.entry.js +6 -6
  582. package/dist/esm/calcite-block_2.entry.js +13 -13
  583. package/dist/esm/calcite-button.entry.js +13 -13
  584. package/dist/esm/calcite-card.entry.js +10 -10
  585. package/dist/esm/calcite-checkbox.entry.js +10 -10
  586. package/dist/esm/calcite-chip-group.entry.js +8 -8
  587. package/dist/esm/calcite-chip.entry.js +12 -12
  588. package/dist/esm/calcite-color-picker_3.entry.js +15 -15
  589. package/dist/esm/calcite-combobox_3.entry.js +18 -18
  590. package/dist/esm/calcite-date-picker_4.entry.js +13 -13
  591. package/dist/esm/calcite-dropdown_3.entry.js +12 -12
  592. package/dist/esm/calcite-fab.entry.js +7 -7
  593. package/dist/esm/calcite-filter.entry.js +13 -13
  594. package/dist/esm/calcite-flow-item.entry.js +14 -13
  595. package/dist/esm/calcite-flow.entry.js +3 -3
  596. package/dist/esm/calcite-graph_2.entry.js +13 -13
  597. package/dist/esm/calcite-handle.entry.js +10 -10
  598. package/dist/esm/calcite-icon.entry.js +6 -6
  599. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  600. package/dist/esm/calcite-input-date-picker.entry.js +18 -18
  601. package/dist/esm/calcite-input-message.entry.js +5 -5
  602. package/dist/esm/calcite-input-number.entry.js +13 -13
  603. package/dist/esm/calcite-input-text.entry.js +13 -13
  604. package/dist/esm/calcite-input-time-picker_2.entry.js +14 -14
  605. package/dist/esm/calcite-input.entry.js +13 -13
  606. package/dist/esm/calcite-label.entry.js +6 -6
  607. package/dist/esm/calcite-link.entry.js +7 -7
  608. package/dist/esm/calcite-list_3.entry.js +12 -12
  609. package/dist/esm/calcite-loader.entry.js +3 -3
  610. package/dist/esm/calcite-modal.entry.js +13 -13
  611. package/dist/esm/calcite-notice.entry.js +12 -12
  612. package/dist/esm/calcite-option_3.entry.js +10 -10
  613. package/dist/esm/calcite-pagination.entry.js +10 -10
  614. package/dist/esm/calcite-panel.entry.js +14 -14
  615. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  616. package/dist/esm/calcite-popover.entry.js +16 -16
  617. package/dist/esm/calcite-progress.entry.js +2 -2
  618. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  619. package/dist/esm/calcite-radio-button.entry.js +10 -10
  620. package/dist/esm/calcite-rating.entry.js +13 -13
  621. package/dist/esm/calcite-scrim.entry.js +9 -9
  622. package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
  623. package/dist/esm/calcite-shell_3.entry.js +11 -11
  624. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  625. package/dist/esm/calcite-split-button.entry.js +4 -4
  626. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  627. package/dist/esm/calcite-switch.entry.js +10 -10
  628. package/dist/esm/calcite-tab_4.entry.js +7 -7
  629. package/dist/esm/calcite-text-area.entry.js +15 -15
  630. package/dist/esm/calcite-tile-select_2.entry.js +5 -5
  631. package/dist/esm/calcite-tile.entry.js +8 -8
  632. package/dist/esm/calcite-tip_3.entry.js +11 -11
  633. package/dist/esm/calcite-tooltip.entry.js +9 -9
  634. package/dist/esm/calcite-tree_2.entry.js +9 -9
  635. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  636. package/dist/esm/calcite.js +5 -5
  637. package/dist/esm/{composed-offset-position.esm-3d3a33f0.js → composed-offset-position.esm-6288d3eb.js} +1 -1
  638. package/dist/esm/{conditionalSlot-cf62479a.js → conditionalSlot-eb838fe4.js} +3 -3
  639. package/dist/esm/{debounce-5d51c702.js → debounce-b35c3766.js} +1 -1
  640. package/dist/esm/{dom-edf2353d.js → dom-3cb097c2.js} +3 -3
  641. package/dist/esm/{filter-f186a577.js → filter-a466d2e1.js} +2 -2
  642. package/dist/esm/{floating-ui-6059a48a.js → floating-ui-8ee301e7.js} +4 -4
  643. package/dist/esm/{focusTrapComponent-3502b72b.js → focusTrapComponent-e55c1bf4.js} +2 -2
  644. package/dist/esm/{form-9792ef7d.js → form-ea7a276f.js} +3 -3
  645. package/dist/esm/{guid-f191591c.js → guid-c0b444ae.js} +1 -1
  646. package/dist/esm/{index-182e3b39.js → index-009a830f.js} +1 -1
  647. package/dist/esm/index.js +2 -2
  648. package/dist/esm/{interactive-e9ff4b45.js → interactive-2dc6e3d9.js} +1 -1
  649. package/dist/esm/{key-3503f056.js → key-020601a7.js} +1 -1
  650. package/dist/esm/{label-21907408.js → label-8a16f651.js} +2 -2
  651. package/dist/esm/{loadable-a090b4d4.js → loadable-9ee26e8f.js} +1 -1
  652. package/dist/esm/loader.js +5 -5
  653. package/dist/esm/{locale-6785b469.js → locale-66e78bdf.js} +4 -4
  654. package/dist/esm/{math-370975a2.js → math-ba32dfbf.js} +1 -1
  655. package/dist/esm/{observers-cd3c1de9.js → observers-f162baf7.js} +1 -1
  656. package/dist/esm/{openCloseComponent-f3ea7fc6.js → openCloseComponent-a6901300.js} +2 -2
  657. package/dist/esm/{resources-a3f184da.js → resources-0f990b54.js} +1 -1
  658. package/dist/esm/{resources-052baf79.js → resources-299906e1.js} +5 -5
  659. package/dist/esm/{resources-18d35b9a.js → resources-3607fb5e.js} +1 -1
  660. package/dist/esm/{resources-63300d44.js → resources-71166d4a.js} +1 -1
  661. package/dist/esm/{resources-f0665539.js → resources-9e83ab7a.js} +1 -1
  662. package/dist/esm/{resources-5b8d643e.js → resources-b3901356.js} +1 -1
  663. package/dist/esm/{sortable.esm-8a9dc2f0.js → sortable.esm-2349d0ea.js} +1 -1
  664. package/dist/esm/{t9n-ee8bc8cf.js → t9n-b3cf7529.js} +3 -3
  665. package/dist/esm/{throttle-e902571a.js → throttle-3463ef1d.js} +2 -2
  666. package/dist/esm/{utils-9af69cbe.js → utils-2e9ec747.js} +1 -1
  667. package/dist/esm/{utils-dfe7cb74.js → utils-c7729d2c.js} +3 -3
  668. package/dist/extras/docs-json.json +9 -1
  669. package/dist/loader/cdn.js +1 -1
  670. package/dist/loader/index.cjs.js +1 -1
  671. package/dist/loader/index.es2017.js +1 -1
  672. package/dist/loader/index.js +1 -1
  673. package/dist/types/components/flow-item/flow-item.d.ts +1 -0
  674. package/dist/types/components/flow-item/resources.d.ts +1 -0
  675. package/hydrate/index.js +6 -4
  676. package/package.json +1 -1
  677. package/dist/calcite/p-3b4e44ab.entry.js +0 -6
  678. package/dist/calcite/p-afae74bd.js +0 -6
  679. package/dist/calcite/p-cf703c59.entry.js +0 -6
  680. package/dist/calcite/p-d2900eba.js +0 -6
  681. package/dist/calcite/p-e6dc645d.entry.js +0 -6
  682. package/dist/calcite/p-ebefbd07.js +0 -6
  683. package/dist/calcite/p-edc60e96.entry.js +0 -6
  684. package/dist/calcite/p-f0f05600.entry.js +0 -6
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as t,c as i,h as e,H as s,a}from"./p-57e653ea.js";import{s as n,c as o,d as r,H as c}from"./p-ebefbd07.js";import{g as l}from"./p-3255b488.js";import{u as h}from"./p-b7cc02fa.js";import{n as u,i as d}from"./p-94aa5071.js";import{c as m,d as p,g as f}from"./p-4d55aa78.js";import{c as b,s as g,a as v}from"./p-f8e1c231.js";import{b as w,i as k,e as y,n as x,c as D,d as I}from"./p-94f16774.js";import{d as S,a as C,c as M}from"./p-f4cf789b.js";import{c as z,s as A,d as P,u as _}from"./p-64a44a39.js";import"./p-11beded1.js";import"./p-5b24b90a.js";import"./p-2fa9c44a.js";function $(t,i,e=!0){const s={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:y(i)};return e&&(s.second="2-digit"),w(t,s)}function L(t){const i=t.toString();return t>=0&&t<=9?i.padStart(2,"0"):i}function j(t,i){if(!t||!i)return null;if("hourSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"hour"===t))),e=i.indexOf(i.find((({type:t})=>"minute"===t))),s=i[t+1];return s&&"literal"===s.type&&e-t==2&&s.value?.trim()||null}if("minuteSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"minute"===t))),e=i.indexOf(i.find((({type:t})=>"second"===t))),s=i[t+1];return s&&"literal"===s.type&&e-t==2&&s.value?.trim()||null}if("secondSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"second"===t))),e=i[t+1];return e&&"literal"===e.type&&e.value?.trim()||null}return i.find((({type:i})=>"meridiem"==t?"dayPeriod"===i:i===t))?.value||null}function F(t){if(!t||t.startsWith(":")||t.endsWith(":"))return!1;const i=t.split(":");if(!(i.length>1&&i.length<4))return!1;const[e,s,a]=i,n=parseInt(i[0]),o=parseInt(i[1]),r=parseInt(i[2]),c=k(e)&&n>=0&&n<24,l=k(s)&&o>=0&&o<60,h=k(a)&&r>=0&&r<60;return!!(c&&l&&!a||c&&l&&h)||void 0}function T({value:t,part:i,locale:e,numberingSystem:s}){if(!function(t,i){if("meridiem"===i)return"AM"===t||"PM"===t;if(!k(t))return!1;const e=Number(t);return"hour"===i?e>=0&&e<24:e>=0&&e<60}(t,i))return;const a=parseInt(t),n=new Date(Date.UTC(0,0,0,"hour"===i?a:"meridiem"===i?"AM"===t?0:12:0,"minute"===i?a:0,"second"===i?a:0));return n?j(i,$(e,s).formatToParts(n)):void 0}function H({value:t,locale:i,numberingSystem:e,includeSeconds:s=!0}){if(!F(t))return null;const{hour:a,minute:n,second:o="0"}=O(t),r=new Date(Date.UTC(0,0,0,parseInt(a),parseInt(n),parseInt(o)));return $(i,e,s)?.format(r)||null}function K({value:t,locale:i,numberingSystem:e}){if(!F(t))return null;const{hour:s,minute:a,second:n="0"}=O(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(a),parseInt(n)));if(o){const t=$(i,e).formatToParts(o);return{localizedHour:j("hour",t),localizedHourSuffix:j("hourSuffix",t),localizedMinute:j("minute",t),localizedMinuteSuffix:j("minuteSuffix",t),localizedSecond:j("second",t),localizedSecondSuffix:j("secondSuffix",t),localizedMeridiem:j("meridiem",t)}}return null}function R({value:t,locale:i,numberingSystem:e}){if(!F(t))return null;const{hour:s,minute:a,second:n="0"}=O(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(a),parseInt(n)));return o?$(i,e).formatToParts(o):null}function O(t){if(F(t)){const[i,e,s]=t.split(":");return{hour:i,minute:e,second:s}}return{hour:null,minute:null,second:null}}const B=class{constructor(e){t(this,e),this.calciteInputTimePickerChange=i(this,"calciteInputTimePickerChange",7),this.focusOnOpen=!1,this.dialogId=`time-picker-dialog--${l()}`,this.internalValueChange=!1,this.previousValidValue=null,this.referenceElementId=`input-time-picker-${l()}`,this.calciteInternalInputBlurHandler=()=>{const t=this.shouldIncludeSeconds(),{effectiveLocale:i,numberingSystem:e,value:s,calciteInputEl:a}=this;x.numberFormatOptions={locale:i,numberingSystem:e,useGrouping:!1};const n=H({value:x.delocalize(a.value),includeSeconds:t,locale:i,numberingSystem:e});this.setInputValue(n||H({value:s,locale:i,numberingSystem:e,includeSeconds:t}))},this.calciteInternalInputFocusHandler=t=>{this.readOnly||t.stopPropagation()},this.calciteInputInputHandler=t=>{const i=t.target;x.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1};const e=x.delocalize(i.value);this.setValue({value:e});const s=e.split("").map((t=>u.includes(t)?x.numberFormatter.format(Number(t)):t)).join("");this.setInputValue(s)},this.timePickerChangeHandler=t=>{t.stopPropagation(),this.setValue({value:t.target.value,origin:"time-picker"})},this.popoverCloseHandler=()=>{S(this,{onDeactivate:()=>{this.calciteInputEl.setFocus(),this.focusOnOpen=!1}})},this.popoverOpenHandler=()=>{C(this,{onActivate:()=>{this.focusOnOpen&&(this.calciteTimePickerEl.setFocus(),this.focusOnOpen=!1)}})},this.keyDownHandler=t=>{const{defaultPrevented:i,key:e}=t;i||("Enter"===e?n(this)&&(t.preventDefault(),this.calciteInputEl.setFocus()):"ArrowDown"===e?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):"Escape"===e&&this.open&&(this.open=!1,t.preventDefault(),this.calciteInputEl.setFocus()))},this.setCalcitePopoverEl=t=>{this.popoverEl=t},this.setCalciteInputEl=t=>{this.calciteInputEl=t},this.setCalciteTimePickerEl=t=>{this.calciteTimePickerEl=t,M(this,{focusTrapEl:t,focusTrapOptions:{initialFocus:!1,setReturnFocus:!1}})},this.setInputValue=t=>{this.calciteInputEl&&(this.calciteInputEl.value=t)},this.setValue=({value:t,origin:i="input"})=>{const e=this.value,s=function(t){if(!F(t))return null;const[i,e,s]=t.split(":"),a=L(parseInt(i)),n=L(parseInt(e));return s?`${a}:${n}:${L(parseInt(s))}`:`${a}:${n}`}(t),a=H({value:s,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()});this.internalValueChange="external"!==i&&"loading"!==i;const n="loading"!==i&&"external"!==i&&(t!==this.previousValidValue&&!t||!(this.previousValidValue||!s)||s!==this.previousValidValue&&s);t?(n&&(this.previousValidValue=s),s&&s!==this.value&&(this.value=s),this.localizedValue=a):(this.value=t,this.localizedValue=null),"time-picker"!==i&&"external"!==i||this.setInputValue(a),n&&(this.calciteInputTimePickerChange.emit().defaultPrevented?(this.internalValueChange=!1,this.value=e,this.setInputValue(e),this.previousValidValue=e):this.previousValidValue=s)},this.onInputWrapperClick=()=>{this.open=!this.open},this.deactivate=()=>{this.open=!1},this.open=!1,this.disabled=!1,this.focusTrapDisabled=!1,this.form=void 0,this.readOnly=!1,this.messageOverrides=void 0,this.messages=void 0,this.name=void 0,this.numberingSystem=void 0,this.required=!1,this.scale="m",this.overlayPositioning="absolute",this.placement="auto",this.step=60,this.value=null,this.defaultMessages=void 0,this.effectiveLocale="",this.localizedValue=void 0}openHandler(t){this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}handleFocusTrapDisabled(t){this.open&&(t?S(this):C(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}onMessagesChange(){}valueWatcher(t){this.internalValueChange||this.setValue({value:t,origin:"external"}),this.internalValueChange=!1}valueRelatedPropChange(){this.setInputValue(H({value:this.value,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()}))}async setFocus(){await b(this),this.el.focus()}async reposition(t=!1){this.popoverEl?.reposition(t)}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}connectedCallback(){D(this),this.value&&this.setValue({value:F(this.value)?this.value:void 0,origin:"loading"}),m(this),o(this),z(this)}async componentWillLoad(){g(this),await A(this)}componentDidLoad(){v(this),this.setInputValue(this.localizedValue)}disconnectedCallback(){p(this),r(this),I(this),S(this),P(this)}componentDidRender(){h(this)}render(){const{disabled:t,messages:i,readOnly:a,dialogId:n}=this;return e(s,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler},e("div",{class:"input-wrapper",onClick:this.onInputWrapperClick},e("calcite-input",{"aria-autocomplete":"none","aria-haspopup":"dialog",disabled:t,icon:"clock",id:this.referenceElementId,label:f(this),onCalciteInputInput:this.calciteInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.calciteInternalInputFocusHandler,readOnly:a,role:"combobox",scale:this.scale,step:this.step,ref:this.setCalciteInputEl}),this.renderToggleIcon(this.open)),e("calcite-popover",{focusTrapDisabled:!0,id:n,label:i.chooseTime,onCalcitePopoverClose:this.popoverCloseHandler,onCalcitePopoverOpen:this.popoverOpenHandler,open:this.open,overlayPositioning:this.overlayPositioning,placement:this.placement,referenceElement:this.referenceElementId,triggerDisabled:!0,ref:this.setCalcitePopoverEl},e("calcite-time-picker",{lang:this.effectiveLocale,messageOverrides:this.messageOverrides,numberingSystem:this.numberingSystem,onCalciteInternalTimePickerChange:this.timePickerChangeHandler,scale:this.scale,step:this.step,tabIndex:this.open?void 0:-1,value:this.value,ref:this.setCalciteTimePickerEl})),e(c,{component:this}))}renderToggleIcon(t){return e("span",{class:"toggle-icon"},e("calcite-icon",{icon:t?"chevron-up":"chevron-down",scale:"s"}))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{open:["openHandler"],focusTrapDisabled:["handleFocusTrapDisabled"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],effectiveLocale:["valueRelatedPropChange"],step:["valueRelatedPropChange"]}}};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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}";const U={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",hour:"hour",input:"input",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(k(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.activeEl=t.currentTarget},this.hourDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=k(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=k(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.meridiemDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMeridiem()},this.minuteDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.minuteUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMinute()},this.secondDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementSecond()},this.secondKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setValue=(t,i=!0)=>{if(F(t)){const{hour:i,minute:e,second:s}=O(t),{effectiveLocale:a,numberingSystem:n}=this,{localizedHour:o,localizedHourSuffix:r,localizedMinute:c,localizedMinuteSuffix:l,localizedSecond:h,localizedSecondSuffix:u,localizedMeridiem:d}=K({value:t,locale:a,numberingSystem:n});if(this.localizedHour=o,this.localizedHourSuffix=r,this.localizedMinute=c,this.localizedMinuteSuffix=l,this.localizedSecond=h,this.localizedSecondSuffix=u,this.hour=i,this.minute=e,this.second=s,d){this.localizedMeridiem=d,this.meridiem=function(t){if(!k(t))return null;const i=parseInt(t);return i>=0&&i<=11?"AM":"PM"}(this.hour);const i=R({value:t,locale:a,numberingSystem:n});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.localizedHour=null,this.localizedHourSuffix=null,this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=null,this.localizedSecond=null,this.localizedSecondSuffix=null,this.meridiem=null,this.minute=null,this.second=null,this.value=null;i&&this.calciteInternalTimePickerChange.emit()},this.setValuePart=(t,i,e=!0)=>{const{effectiveLocale:s,numberingSystem:a}=this;if("meridiem"===t){if(this.meridiem=i,k(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=L(t-12));break;case"PM":t<12&&(this.hour=L(t+12))}this.localizedHour=T({value:this.hour,part:"hour",locale:s,numberingSystem:a})}}else this[t]="number"==typeof i?L(i):i,this[`localized${n=t,n.charAt(0).toUpperCase()+n.slice(1)}`]=T({value:this[t],part:t,locale:s,numberingSystem:a});var n;this.value=this.hour&&this.minute?`${this.hour}:${this.minute}:${this.second&&this.showSecond?this.second:"00"}`:null,this.localizedMeridiem=this.value?K({value:this.value,locale:s,numberingSystem:a})?.localizedMeridiem||null:T({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:a}),e&&this.calciteInternalTimePickerChange.emit()},this.scale="m",this.step=60,this.numberingSystem=void 0,this.value=null,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.hour=void 0,this.hourCycle=void 0,this.localizedHour=void 0,this.localizedHourSuffix=void 0,this.localizedMeridiem=void 0,this.localizedMinute=void 0,this.localizedMinuteSuffix=void 0,this.localizedSecond=void 0,this.localizedSecondSuffix=void 0,this.meridiem=void 0,this.minute=void 0,this.second=void 0,this.showSecond=void 0,this.defaultMessages=void 0}stepChange(){this.updateShowSecond()}valueWatcher(t){this.setValue(t,!1)}onMessagesChange(){}effectiveLocaleWatcher(){this.updateLocale()}hostBlurHandler(){this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.focusPart("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.focusPart("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.focusPart("second"),t.preventDefault()):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.focusPart("minute"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.meridiemEl:"ArrowLeft"===e&&(60!==this.step?(this.focusPart("second"),t.preventDefault()):(this.focusPart("minute"),t.preventDefault()))}}async setFocus(){await b(this),this.el?.focus()}updateShowSecond(){this.showSecond=this.step<60}async focusPart(t){await b(this),this[`${t||"hour"}El`]?.focus()}buttonActivated(t){const{key:i}=t;return" "===i&&t.preventDefault(),d(i)}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){_(this,this.effectiveLocale),this.hourCycle=j("meridiem",$(this.effectiveLocale,this.numberingSystem).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24",this.setValue(this.value,!1)}connectedCallback(){D(this),this.updateLocale(),z(this),this.updateShowSecond(),this.meridiemOrder=this.getMeridiemOrder(R({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}async componentWillLoad(){g(this),await A(this)}componentDidLoad(){v(this)}disconnectedCallback(){I(this),P(this)}render(){const t=k(this.hour),i="s"===this.scale||"m"===this.scale?"s":"m",s=k(this.minute),a=k(this.second),n="12"===this.hourCycle;return e("div",{class:{[U.timePicker]:!0,[U.showMeridiem]:n,[U.showSecond]:this.showSecond,[U[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.hourUp,class:{[U.button]:!0,[U.buttonHourUp]:!0,[U.buttonTopLeft]:!0},onClick:this.incrementHour,onKeyDown:this.hourUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.hour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[U.input]:!0,[U.hour]:!0},onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setHourEl},this.localizedHour||"--"),e("span",{"aria-label":this.messages.hourDown,class:{[U.button]:!0,[U.buttonHourDown]:!0,[U.buttonBottomLeft]:!0},onClick:this.decrementHour,onKeyDown:this.hourDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),e("span",{class:U.delimiter},this.localizedHourSuffix),e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.minuteUp,class:{[U.button]:!0,[U.buttonMinuteUp]:!0},onClick:this.incrementMinute,onKeyDown:this.minuteUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.minute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":s&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[U.input]:!0,[U.minute]:!0},onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMinuteEl},this.localizedMinute||"--"),e("span",{"aria-label":this.messages.minuteDown,class:{[U.button]:!0,[U.buttonMinuteDown]:!0},onClick:this.decrementMinute,onKeyDown:this.minuteDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{class:U.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.secondUp,class:{[U.button]:!0,[U.buttonSecondUp]:!0},onClick:this.incrementSecond,onKeyDown:this.secondUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.second,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":a&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[U.input]:!0,[U.second]:!0},onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setSecondEl},this.localizedSecond||"--"),e("span",{"aria-label":this.messages.secondDown,class:{[U.button]:!0,[U.buttonSecondDown]:!0},onClick:this.decrementSecond,onKeyDown:this.secondDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{class:U.delimiter},this.localizedSecondSuffix),n&&e("div",{class:{[U.column]:!0,[U.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{"aria-label":this.messages.meridiemUp,class:{[U.button]:!0,[U.buttonMeridiemUp]:!0,[U.buttonTopRight]:!0},onClick:this.incrementMeridiem,onKeyDown:this.meridiemUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.meridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[U.input]:!0,[U.meridiem]:!0},onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMeridiemEl},this.localizedMeridiem||"--"),e("span",{"aria-label":this.messages.meridiemDown,class:{[U.button]:!0,[U.buttonMeridiemDown]:!0,[U.buttonBottomRight]:!0},onClick:this.decrementMeridiem,onKeyDown:this.meridiemDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{step:["stepChange"],value:["valueWatcher"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleWatcher"]}}};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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:400;outline-offset:0}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);z-index:400}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);z-index:400;outline-offset:0}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}";export{B as calcite_input_time_picker,W as calcite_time_picker}
6
+ import{r as t,c as i,h as e,H as s,a}from"./p-80fa9ed2.js";import{s as n,c as o,d as r,H as c}from"./p-933dd110.js";import{g as l}from"./p-167c3f00.js";import{u as h}from"./p-a869afb5.js";import{n as u,i as d}from"./p-e57bae5e.js";import{c as m,d as p,g as f}from"./p-3a115254.js";import{c as b,s as g,a as v}from"./p-bd034ba6.js";import{b as w,i as k,e as y,n as x,c as D,d as I}from"./p-b4ac3021.js";import{d as S,a as C,c as M}from"./p-4850b80c.js";import{c as z,s as A,d as P,u as _}from"./p-48e14553.js";import"./p-97e2186f.js";import"./p-cfc14f04.js";import"./p-c0e3bcbb.js";function $(t,i,e=!0){const s={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:y(i)};return e&&(s.second="2-digit"),w(t,s)}function L(t){const i=t.toString();return t>=0&&t<=9?i.padStart(2,"0"):i}function j(t,i){if(!t||!i)return null;if("hourSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"hour"===t))),e=i.indexOf(i.find((({type:t})=>"minute"===t))),s=i[t+1];return s&&"literal"===s.type&&e-t==2&&s.value?.trim()||null}if("minuteSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"minute"===t))),e=i.indexOf(i.find((({type:t})=>"second"===t))),s=i[t+1];return s&&"literal"===s.type&&e-t==2&&s.value?.trim()||null}if("secondSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"second"===t))),e=i[t+1];return e&&"literal"===e.type&&e.value?.trim()||null}return i.find((({type:i})=>"meridiem"==t?"dayPeriod"===i:i===t))?.value||null}function F(t){if(!t||t.startsWith(":")||t.endsWith(":"))return!1;const i=t.split(":");if(!(i.length>1&&i.length<4))return!1;const[e,s,a]=i,n=parseInt(i[0]),o=parseInt(i[1]),r=parseInt(i[2]),c=k(e)&&n>=0&&n<24,l=k(s)&&o>=0&&o<60,h=k(a)&&r>=0&&r<60;return!!(c&&l&&!a||c&&l&&h)||void 0}function T({value:t,part:i,locale:e,numberingSystem:s}){if(!function(t,i){if("meridiem"===i)return"AM"===t||"PM"===t;if(!k(t))return!1;const e=Number(t);return"hour"===i?e>=0&&e<24:e>=0&&e<60}(t,i))return;const a=parseInt(t),n=new Date(Date.UTC(0,0,0,"hour"===i?a:"meridiem"===i?"AM"===t?0:12:0,"minute"===i?a:0,"second"===i?a:0));return n?j(i,$(e,s).formatToParts(n)):void 0}function H({value:t,locale:i,numberingSystem:e,includeSeconds:s=!0}){if(!F(t))return null;const{hour:a,minute:n,second:o="0"}=O(t),r=new Date(Date.UTC(0,0,0,parseInt(a),parseInt(n),parseInt(o)));return $(i,e,s)?.format(r)||null}function K({value:t,locale:i,numberingSystem:e}){if(!F(t))return null;const{hour:s,minute:a,second:n="0"}=O(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(a),parseInt(n)));if(o){const t=$(i,e).formatToParts(o);return{localizedHour:j("hour",t),localizedHourSuffix:j("hourSuffix",t),localizedMinute:j("minute",t),localizedMinuteSuffix:j("minuteSuffix",t),localizedSecond:j("second",t),localizedSecondSuffix:j("secondSuffix",t),localizedMeridiem:j("meridiem",t)}}return null}function R({value:t,locale:i,numberingSystem:e}){if(!F(t))return null;const{hour:s,minute:a,second:n="0"}=O(t),o=new Date(Date.UTC(0,0,0,parseInt(s),parseInt(a),parseInt(n)));return o?$(i,e).formatToParts(o):null}function O(t){if(F(t)){const[i,e,s]=t.split(":");return{hour:i,minute:e,second:s}}return{hour:null,minute:null,second:null}}const B=class{constructor(e){t(this,e),this.calciteInputTimePickerChange=i(this,"calciteInputTimePickerChange",7),this.focusOnOpen=!1,this.dialogId=`time-picker-dialog--${l()}`,this.internalValueChange=!1,this.previousValidValue=null,this.referenceElementId=`input-time-picker-${l()}`,this.calciteInternalInputBlurHandler=()=>{const t=this.shouldIncludeSeconds(),{effectiveLocale:i,numberingSystem:e,value:s,calciteInputEl:a}=this;x.numberFormatOptions={locale:i,numberingSystem:e,useGrouping:!1};const n=H({value:x.delocalize(a.value),includeSeconds:t,locale:i,numberingSystem:e});this.setInputValue(n||H({value:s,locale:i,numberingSystem:e,includeSeconds:t}))},this.calciteInternalInputFocusHandler=t=>{this.readOnly||t.stopPropagation()},this.calciteInputInputHandler=t=>{const i=t.target;x.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1};const e=x.delocalize(i.value);this.setValue({value:e});const s=e.split("").map((t=>u.includes(t)?x.numberFormatter.format(Number(t)):t)).join("");this.setInputValue(s)},this.timePickerChangeHandler=t=>{t.stopPropagation(),this.setValue({value:t.target.value,origin:"time-picker"})},this.popoverCloseHandler=()=>{S(this,{onDeactivate:()=>{this.calciteInputEl.setFocus(),this.focusOnOpen=!1}})},this.popoverOpenHandler=()=>{C(this,{onActivate:()=>{this.focusOnOpen&&(this.calciteTimePickerEl.setFocus(),this.focusOnOpen=!1)}})},this.keyDownHandler=t=>{const{defaultPrevented:i,key:e}=t;i||("Enter"===e?n(this)&&(t.preventDefault(),this.calciteInputEl.setFocus()):"ArrowDown"===e?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):"Escape"===e&&this.open&&(this.open=!1,t.preventDefault(),this.calciteInputEl.setFocus()))},this.setCalcitePopoverEl=t=>{this.popoverEl=t},this.setCalciteInputEl=t=>{this.calciteInputEl=t},this.setCalciteTimePickerEl=t=>{this.calciteTimePickerEl=t,M(this,{focusTrapEl:t,focusTrapOptions:{initialFocus:!1,setReturnFocus:!1}})},this.setInputValue=t=>{this.calciteInputEl&&(this.calciteInputEl.value=t)},this.setValue=({value:t,origin:i="input"})=>{const e=this.value,s=function(t){if(!F(t))return null;const[i,e,s]=t.split(":"),a=L(parseInt(i)),n=L(parseInt(e));return s?`${a}:${n}:${L(parseInt(s))}`:`${a}:${n}`}(t),a=H({value:s,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()});this.internalValueChange="external"!==i&&"loading"!==i;const n="loading"!==i&&"external"!==i&&(t!==this.previousValidValue&&!t||!(this.previousValidValue||!s)||s!==this.previousValidValue&&s);t?(n&&(this.previousValidValue=s),s&&s!==this.value&&(this.value=s),this.localizedValue=a):(this.value=t,this.localizedValue=null),"time-picker"!==i&&"external"!==i||this.setInputValue(a),n&&(this.calciteInputTimePickerChange.emit().defaultPrevented?(this.internalValueChange=!1,this.value=e,this.setInputValue(e),this.previousValidValue=e):this.previousValidValue=s)},this.onInputWrapperClick=()=>{this.open=!this.open},this.deactivate=()=>{this.open=!1},this.open=!1,this.disabled=!1,this.focusTrapDisabled=!1,this.form=void 0,this.readOnly=!1,this.messageOverrides=void 0,this.messages=void 0,this.name=void 0,this.numberingSystem=void 0,this.required=!1,this.scale="m",this.overlayPositioning="absolute",this.placement="auto",this.step=60,this.value=null,this.defaultMessages=void 0,this.effectiveLocale="",this.localizedValue=void 0}openHandler(t){this.disabled||this.readOnly?this.open=!1:t&&this.reposition(!0)}handleFocusTrapDisabled(t){this.open&&(t?S(this):C(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}onMessagesChange(){}valueWatcher(t){this.internalValueChange||this.setValue({value:t,origin:"external"}),this.internalValueChange=!1}valueRelatedPropChange(){this.setInputValue(H({value:this.value,locale:this.effectiveLocale,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds()}))}async setFocus(){await b(this),this.el.focus()}async reposition(t=!1){this.popoverEl?.reposition(t)}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}connectedCallback(){D(this),this.value&&this.setValue({value:F(this.value)?this.value:void 0,origin:"loading"}),m(this),o(this),z(this)}async componentWillLoad(){g(this),await A(this)}componentDidLoad(){v(this),this.setInputValue(this.localizedValue)}disconnectedCallback(){p(this),r(this),I(this),S(this),P(this)}componentDidRender(){h(this)}render(){const{disabled:t,messages:i,readOnly:a,dialogId:n}=this;return e(s,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler},e("div",{class:"input-wrapper",onClick:this.onInputWrapperClick},e("calcite-input",{"aria-autocomplete":"none","aria-haspopup":"dialog",disabled:t,icon:"clock",id:this.referenceElementId,label:f(this),onCalciteInputInput:this.calciteInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.calciteInternalInputFocusHandler,readOnly:a,role:"combobox",scale:this.scale,step:this.step,ref:this.setCalciteInputEl}),this.renderToggleIcon(this.open)),e("calcite-popover",{focusTrapDisabled:!0,id:n,label:i.chooseTime,onCalcitePopoverClose:this.popoverCloseHandler,onCalcitePopoverOpen:this.popoverOpenHandler,open:this.open,overlayPositioning:this.overlayPositioning,placement:this.placement,referenceElement:this.referenceElementId,triggerDisabled:!0,ref:this.setCalcitePopoverEl},e("calcite-time-picker",{lang:this.effectiveLocale,messageOverrides:this.messageOverrides,numberingSystem:this.numberingSystem,onCalciteInternalTimePickerChange:this.timePickerChangeHandler,scale:this.scale,step:this.step,tabIndex:this.open?void 0:-1,value:this.value,ref:this.setCalciteTimePickerEl})),e(c,{component:this}))}renderToggleIcon(t){return e("span",{class:"toggle-icon"},e("calcite-icon",{icon:t?"chevron-up":"chevron-down",scale:"s"}))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{open:["openHandler"],focusTrapDisabled:["handleFocusTrapDisabled"],disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],effectiveLocale:["valueRelatedPropChange"],step:["valueRelatedPropChange"]}}};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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}";const U={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",hour:"hour",input:"input",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",6),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",6),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",6),this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(k(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.activeEl=t.currentTarget},this.hourDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementHour()},this.hourKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":t.preventDefault()}},this.hourUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=k(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=k(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.meridiemDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":t.preventDefault()}},this.meridiemUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMeridiem()},this.minuteDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMinute()},this.minuteKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":t.preventDefault()}},this.minuteUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMinute()},this.secondDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementSecond()},this.secondKeyDownHandler=t=>{const{key:i}=t;if(u.includes(i)){const t=parseInt(i);let e;if(k(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":t.preventDefault()}},this.secondUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setValue=(t,i=!0)=>{if(F(t)){const{hour:i,minute:e,second:s}=O(t),{effectiveLocale:a,numberingSystem:n}=this,{localizedHour:o,localizedHourSuffix:r,localizedMinute:c,localizedMinuteSuffix:l,localizedSecond:h,localizedSecondSuffix:u,localizedMeridiem:d}=K({value:t,locale:a,numberingSystem:n});if(this.localizedHour=o,this.localizedHourSuffix=r,this.localizedMinute=c,this.localizedMinuteSuffix=l,this.localizedSecond=h,this.localizedSecondSuffix=u,this.hour=i,this.minute=e,this.second=s,d){this.localizedMeridiem=d,this.meridiem=function(t){if(!k(t))return null;const i=parseInt(t);return i>=0&&i<=11?"AM":"PM"}(this.hour);const i=R({value:t,locale:a,numberingSystem:n});this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.localizedHour=null,this.localizedHourSuffix=null,this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=null,this.localizedSecond=null,this.localizedSecondSuffix=null,this.meridiem=null,this.minute=null,this.second=null,this.value=null;i&&this.calciteInternalTimePickerChange.emit()},this.setValuePart=(t,i,e=!0)=>{const{effectiveLocale:s,numberingSystem:a}=this;if("meridiem"===t){if(this.meridiem=i,k(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=L(t-12));break;case"PM":t<12&&(this.hour=L(t+12))}this.localizedHour=T({value:this.hour,part:"hour",locale:s,numberingSystem:a})}}else this[t]="number"==typeof i?L(i):i,this[`localized${n=t,n.charAt(0).toUpperCase()+n.slice(1)}`]=T({value:this[t],part:t,locale:s,numberingSystem:a});var n;this.value=this.hour&&this.minute?`${this.hour}:${this.minute}:${this.second&&this.showSecond?this.second:"00"}`:null,this.localizedMeridiem=this.value?K({value:this.value,locale:s,numberingSystem:a})?.localizedMeridiem||null:T({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:a}),e&&this.calciteInternalTimePickerChange.emit()},this.scale="m",this.step=60,this.numberingSystem=void 0,this.value=null,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.hour=void 0,this.hourCycle=void 0,this.localizedHour=void 0,this.localizedHourSuffix=void 0,this.localizedMeridiem=void 0,this.localizedMinute=void 0,this.localizedMinuteSuffix=void 0,this.localizedSecond=void 0,this.localizedSecondSuffix=void 0,this.meridiem=void 0,this.minute=void 0,this.second=void 0,this.showSecond=void 0,this.defaultMessages=void 0}stepChange(){this.updateShowSecond()}valueWatcher(t){this.setValue(t,!1)}onMessagesChange(){}effectiveLocaleWatcher(){this.updateLocale()}hostBlurHandler(){this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){const{defaultPrevented:i,key:e}=t;if(!i)switch(this.activeEl){case this.hourEl:"ArrowRight"===e&&(this.focusPart("minute"),t.preventDefault());break;case this.minuteEl:switch(e){case"ArrowLeft":this.focusPart("hour"),t.preventDefault();break;case"ArrowRight":60!==this.step?(this.focusPart("second"),t.preventDefault()):"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.secondEl:switch(e){case"ArrowLeft":this.focusPart("minute"),t.preventDefault();break;case"ArrowRight":"12"===this.hourCycle&&(this.focusPart("meridiem"),t.preventDefault())}break;case this.meridiemEl:"ArrowLeft"===e&&(60!==this.step?(this.focusPart("second"),t.preventDefault()):(this.focusPart("minute"),t.preventDefault()))}}async setFocus(){await b(this),this.el?.focus()}updateShowSecond(){this.showSecond=this.step<60}async focusPart(t){await b(this),this[`${t||"hour"}El`]?.focus()}buttonActivated(t){const{key:i}=t;return" "===i&&t.preventDefault(),d(i)}getMeridiemOrder(t){const i=this.effectiveLocale;return t&&"ar"!==i&&"he"!==i?t.findIndex((t=>t.value===this.localizedMeridiem)):0}updateLocale(){_(this,this.effectiveLocale),this.hourCycle=j("meridiem",$(this.effectiveLocale,this.numberingSystem).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24",this.setValue(this.value,!1)}connectedCallback(){D(this),this.updateLocale(),z(this),this.updateShowSecond(),this.meridiemOrder=this.getMeridiemOrder(R({value:"0:00:00",locale:this.effectiveLocale,numberingSystem:this.numberingSystem}))}async componentWillLoad(){g(this),await A(this)}componentDidLoad(){v(this)}disconnectedCallback(){I(this),P(this)}render(){const t=k(this.hour),i="s"===this.scale||"m"===this.scale?"s":"m",s=k(this.minute),a=k(this.second),n="12"===this.hourCycle;return e("div",{class:{[U.timePicker]:!0,[U.showMeridiem]:n,[U.showSecond]:this.showSecond,[U[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.hourUp,class:{[U.button]:!0,[U.buttonHourUp]:!0,[U.buttonTopLeft]:!0},onClick:this.incrementHour,onKeyDown:this.hourUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.hour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[U.input]:!0,[U.hour]:!0},onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setHourEl},this.localizedHour||"--"),e("span",{"aria-label":this.messages.hourDown,class:{[U.button]:!0,[U.buttonHourDown]:!0,[U.buttonBottomLeft]:!0},onClick:this.decrementHour,onKeyDown:this.hourDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),e("span",{class:U.delimiter},this.localizedHourSuffix),e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.minuteUp,class:{[U.button]:!0,[U.buttonMinuteUp]:!0},onClick:this.incrementMinute,onKeyDown:this.minuteUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.minute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":s&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[U.input]:!0,[U.minute]:!0},onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMinuteEl},this.localizedMinute||"--"),e("span",{"aria-label":this.messages.minuteDown,class:{[U.button]:!0,[U.buttonMinuteDown]:!0},onClick:this.decrementMinute,onKeyDown:this.minuteDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{class:U.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{class:U.column,role:"group"},e("span",{"aria-label":this.messages.secondUp,class:{[U.button]:!0,[U.buttonSecondUp]:!0},onClick:this.incrementSecond,onKeyDown:this.secondUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.second,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":a&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[U.input]:!0,[U.second]:!0},onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setSecondEl},this.localizedSecond||"--"),e("span",{"aria-label":this.messages.secondDown,class:{[U.button]:!0,[U.buttonSecondDown]:!0},onClick:this.decrementSecond,onKeyDown:this.secondDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{class:U.delimiter},this.localizedSecondSuffix),n&&e("div",{class:{[U.column]:!0,[U.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{"aria-label":this.messages.meridiemUp,class:{[U.button]:!0,[U.buttonMeridiemUp]:!0,[U.buttonTopRight]:!0},onClick:this.incrementMeridiem,onKeyDown:this.meridiemUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.messages.meridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[U.input]:!0,[U.meridiem]:!0},onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,role:"spinbutton",tabIndex:0,ref:this.setMeridiemEl},this.localizedMeridiem||"--"),e("span",{"aria-label":this.messages.meridiemDown,class:{[U.button]:!0,[U.buttonMeridiemDown]:!0,[U.buttonBottomRight]:!0},onClick:this.decrementMeridiem,onKeyDown:this.meridiemDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{step:["stepChange"],value:["valueWatcher"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleWatcher"]}}};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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:400;outline-offset:0}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);z-index:400}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);z-index:400;outline-offset:0}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}";export{B as calcite_input_time_picker,W as calcite_time_picker}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as t,c as i,h as a,H as e,a as o}from"./p-57e653ea.js";import{c as n,d as s}from"./p-d2900eba.js";import{s as r,g as c}from"./p-11beded1.js";import{a as l,s as d,c as h}from"./p-f8e1c231.js";import{c as p,d as m}from"./p-94f16774.js";import{c as u}from"./p-2fa9c44a.js";import{u as f,c as g,s as x,d as b}from"./p-64a44a39.js";import{t as y,o as v,q as w,g as j,a as D,E as k,b as z}from"./p-afae74bd.js";import{d as C}from"./p-289f6317.js";import"./p-3255b488.js";import"./p-5b24b90a.js";import"./p-94aa5071.js";import"./p-4326ccbd.js";import"./p-e7ad5add.js";const H="bottom-actions",_="expand-tooltip",A=class{constructor(a){t(this,a),this.calciteActionBarToggle=i(this,"calciteActionBarToggle",6),this.mutationObserver=u("mutation",(()=>{const{el:t,expanded:i}=this;y({parent:t,expanded:i}),this.conditionallyOverflowActions()})),this.resizeObserver=u("resize",(t=>this.resizeHandlerEntries(t))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const i=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{i.includes(t)||(t.menuOpen=!1)}))}},this.resizeHandlerEntries=t=>{t.forEach(this.resizeHandler)},this.resizeHandler=t=>{const{width:i,height:a}=t.contentRect;this.resize({width:i,height:a})},this.resize=C((({width:t,height:i})=>{const{el:a,expanded:e,expandDisabled:o,layout:n}=this;if("vertical"===n&&!i||"horizontal"===n&&!t)return;const s=w(a),r=o?s.length:s.length+1,l=Array.from(a.querySelectorAll("calcite-action-group"));this.setGroupLayout(l);const d=c(a,H)||!o?l.length+1:l.length,{actionHeight:h,actionWidth:p}=j(s),m=z({layout:n,actionCount:r,actionHeight:h,actionWidth:p,height:i,width:t,groupCount:d});D({actionGroups:l,expanded:e,overflowCount:m})}),v),this.conditionallyOverflowActions=()=>{this.overflowActionsDisabled||this.overflowActions()},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const i=r(t).filter((t=>t?.matches("calcite-action-group")));this.setGroupLayout(i)},this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overflowActionsDisabled=!1,this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}expandHandler(){this.conditionallyOverflowActions()}expandedHandler(t){y({parent:this.el,expanded:t}),this.conditionallyOverflowActions()}layoutHandler(){this.updateGroups()}overflowDisabledHandler(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)}onMessagesChange(){}effectiveLocaleChange(){f(this,this.effectiveLocale)}componentDidLoad(){l(this),this.conditionallyOverflowActions()}connectedCallback(){const{el:t,expanded:i}=this;p(this),g(this),y({parent:t,expanded:i}),this.mutationObserver?.observe(t,{childList:!0,subtree:!0}),this.overflowActionsDisabled||this.resizeObserver?.observe(t),this.conditionallyOverflowActions(),n(this)}async componentWillLoad(){d(this),await x(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),s(this),m(this),b(this)}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await h(this),this.el?.focus()}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:i,el:e,position:o,toggleExpand:n,scale:s,layout:r,messages:l}=this,d=c(e,_),h=i?null:a(k,{el:e,expanded:t,intlCollapse:l.collapse,intlExpand:l.expand,position:o,scale:s,toggle:n,tooltip:d,ref:this.setExpandToggleRef});return c(e,H)||h?a("calcite-action-group",{class:"action-group--bottom",layout:r,scale:s},a("slot",{name:H}),a("slot",{name:_}),h):null}render(){return a(e,{onCalciteActionMenuOpen:this.actionMenuOpenHandler},a("slot",{onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};A.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.01}}: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{pointer-events:auto;display:inline-flex;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=horizontal]){flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-width:0px;border-inline-end-width:1px;border-style:solid}::slotted(calcite-action-group:last-child){border-block-end-width:0px;border-inline-end-width:0px}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px;padding-inline-end:0px}";export{A as calcite_action_bar}
6
+ import{r as t,c as i,h as a,H as e,a as o}from"./p-80fa9ed2.js";import{c as n,d as s}from"./p-fbc9f53b.js";import{s as c,g as r}from"./p-97e2186f.js";import{a as l,s as d,c as h}from"./p-bd034ba6.js";import{c as p,d as m}from"./p-b4ac3021.js";import{c as u}from"./p-c0e3bcbb.js";import{u as f,c as g,s as b,d as x}from"./p-48e14553.js";import{t as y,o as v,q as w,g as j,a as D,E as z,b as k}from"./p-64f42987.js";import{d as C}from"./p-f8c3ca31.js";import"./p-167c3f00.js";import"./p-cfc14f04.js";import"./p-e57bae5e.js";import"./p-79176fd4.js";import"./p-10eb1cf9.js";const H="bottom-actions",_="expand-tooltip",A=class{constructor(a){t(this,a),this.calciteActionBarToggle=i(this,"calciteActionBarToggle",6),this.mutationObserver=u("mutation",(()=>{const{el:t,expanded:i}=this;y({parent:t,expanded:i}),this.conditionallyOverflowActions()})),this.resizeObserver=u("resize",(t=>this.resizeHandlerEntries(t))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const i=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{i.includes(t)||(t.menuOpen=!1)}))}},this.resizeHandlerEntries=t=>{t.forEach(this.resizeHandler)},this.resizeHandler=t=>{const{width:i,height:a}=t.contentRect;this.resize({width:i,height:a})},this.resize=C((({width:t,height:i})=>{const{el:a,expanded:e,expandDisabled:o,layout:n}=this;if("vertical"===n&&!i||"horizontal"===n&&!t)return;const s=w(a),c=o?s.length:s.length+1,l=Array.from(a.querySelectorAll("calcite-action-group"));this.setGroupLayout(l);const d=r(a,H)||!o?l.length+1:l.length,{actionHeight:h,actionWidth:p}=j(s),m=k({layout:n,actionCount:c,actionHeight:h,actionWidth:p,height:i,width:t,groupCount:d});D({actionGroups:l,expanded:e,overflowCount:m})}),v),this.conditionallyOverflowActions=()=>{this.overflowActionsDisabled||this.overflowActions()},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const i=c(t).filter((t=>t?.matches("calcite-action-group")));this.setGroupLayout(i)},this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overflowActionsDisabled=!1,this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}expandHandler(){this.conditionallyOverflowActions()}expandedHandler(t){y({parent:this.el,expanded:t}),this.conditionallyOverflowActions()}layoutHandler(){this.updateGroups()}overflowDisabledHandler(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)}onMessagesChange(){}effectiveLocaleChange(){f(this,this.effectiveLocale)}componentDidLoad(){l(this),this.conditionallyOverflowActions()}connectedCallback(){const{el:t,expanded:i}=this;p(this),g(this),y({parent:t,expanded:i}),this.mutationObserver?.observe(t,{childList:!0,subtree:!0}),this.overflowActionsDisabled||this.resizeObserver?.observe(t),this.conditionallyOverflowActions(),n(this)}async componentWillLoad(){d(this),await b(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),s(this),m(this),x(this)}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await h(this),this.el?.focus()}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:i,el:e,position:o,toggleExpand:n,scale:s,layout:c,messages:l}=this,d=r(e,_),h=i?null:a(z,{el:e,expanded:t,intlCollapse:l.collapse,intlExpand:l.expand,position:o,scale:s,toggle:n,tooltip:d,ref:this.setExpandToggleRef});return r(e,H)||h?a("calcite-action-group",{class:"action-group--bottom",layout:c,scale:s},a("slot",{name:H}),a("slot",{name:_}),h):null}render(){return a(e,{onCalciteActionMenuOpen:this.actionMenuOpenHandler},a("slot",{onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};A.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.01}}: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{pointer-events:auto;display:inline-flex;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=horizontal]){flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-block-end:1px solid var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-block-end:0;border-inline-end:1px solid var(--calcite-ui-border-3)}:host([layout=horizontal][expand-disabled]) ::slotted(calcite-action-group:last-of-type){border-inline-end:0}::slotted(calcite-action-group:last-child){border-block-end:0;border-inline-end:0}.action-group--bottom{flex-grow:1;justify-content:flex-end}";export{A as calcite_action_bar}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.4.0-next.2
5
+ */
6
+ import{q as n,c as t}from"./p-97e2186f.js";import{h as e}from"./p-80fa9ed2.js";!function(n){function t(n,t,e){throw new n("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+t+".",e)}"function"!=typeof n.requestSubmit&&(n.requestSubmit=function(n){n?(function(n,e){n instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==n.type||t(TypeError,"The specified element is not a submit button"),n.form==e||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}(n,this),n.click()):((n=document.createElement("input")).type="submit",n.hidden=!0,this.appendChild(n),n.click(),this.removeChild(n))})}(HTMLFormElement.prototype);const o="hidden-form-input";function r(n){return"checked"in n}const i=new WeakMap,s=new WeakSet;function c(n){const{formEl:t}=n;return!!t&&(t.requestSubmit(),!0)}function u(n){n.formEl?.reset()}function f(n){const{el:e,value:o}=n,c=m(n);if(!c||function(n,e){if(t(e.parentElement,"[form]"))return!0;const o="calciteInternalFormComponentRegister";let r=!1;return n.addEventListener(o,(n=>{r=n.composedPath().some((n=>s.has(n))),n.stopPropagation()}),{once:!0}),e.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0})),r}(c,e))return;n.formEl=c,n.defaultValue=o,r(n)&&(n.defaultChecked=n.checked);const u=(n.onFormReset||a).bind(n);c.addEventListener("reset",u),i.set(n.el,u),s.add(e)}function m(e){const{el:o,form:r}=e;return r?n(o,{id:r}):t(o,"form")}function a(){r(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function l(n){const{el:t,formEl:e}=n;if(!e)return;const o=i.get(t);e.removeEventListener("reset",o),i.delete(t),n.formEl=null,s.delete(t)}function p(n,t){n.defaultValue=t}const d=n=>{n.target.dispatchEvent(new CustomEvent("calciteInternalHiddenInputChange",{bubbles:!0}))},h=n=>n.removeEventListener("change",d);function b(n,t,e){const{defaultValue:o,disabled:i,form:s,name:c,required:u}=n;t.defaultValue=o,t.disabled=i,t.name=c,t.required=u,t.tabIndex=-1,s?t.setAttribute("form",s):t.removeAttribute("form"),r(n)?(t.checked=n.checked,t.defaultChecked=n.defaultChecked,t.value=n.checked?e||"on":""):t.value=e||"",n.syncHiddenFormInput?.(t)}const E=({component:n})=>(function(n){const{el:t,formEl:e,name:r,value:i}=n,{ownerDocument:s}=t,c=t.querySelectorAll(`input[slot="${o}"]`);if(!e||!r)return void c.forEach((n=>{h(n),n.remove()}));const u=Array.isArray(i)?i:[i],f=[],m=new Set;let a;c.forEach((t=>{const e=u.find((n=>n==t.value));null!=e?(m.add(e),b(n,t,e)):f.push(t)})),u.forEach((t=>{if(m.has(t))return;let e=f.pop();e||(e=s.createElement("input"),e.slot=o),a||(a=s.createDocumentFragment()),a.append(e),e.addEventListener("change",d),b(n,e,t)})),a&&t.append(a),f.forEach((n=>{h(n),n.remove()}))}(n),e("slot",{name:o}));export{E as H,p as a,f as c,l as d,m as f,u as r,c as s}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
6
  /**!
7
7
  * Sortable 1.15.0
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{g as n}from"./p-3255b488.js";import{C as t}from"./p-5b24b90a.js";
6
+ import{g as n}from"./p-167c3f00.js";import{C as t}from"./p-cfc14f04.js";
7
7
  /*!
8
8
  * tabbable 6.1.1
9
9
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
10
  */
11
- var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],e=r.join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!o&&Element.prototype.getRootNode?function(n){var t;return null==n||null===(t=n.getRootNode)||void 0===t?void 0:t.call(n)}:function(n){return null==n?void 0:n.ownerDocument},a=function n(t,r){var e;void 0===r&&(r=!0);var o=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"inert");return""===o||"true"===o||r&&t&&n(t.parentNode)},f=function(n,t,r){if(a(n))return[];var o=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&i.call(n,e)&&o.unshift(n),o.filter(r)},l=function n(t,r,o){for(var u=[],f=Array.from(t);f.length;){var l=f.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),s=n(c.length?c:l.children,!0,o);o.flatten?u.push.apply(u,s):u.push({scopeParent:l,candidates:s})}else{i.call(l,e)&&o.filter(l)&&(r||!t.includes(l))&&u.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),v=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&v){var p=n(!0===d?l.children:d.children,!0,o);o.flatten?u.push.apply(u,p):u.push({scopeParent:l,candidates:p})}else f.unshift.apply(f,l.children)}}return u},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||function(n){var t,r=null==n||null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"contenteditable");return""===r||"true"===r}(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},s=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},d=function(n){return"INPUT"===n.tagName},v=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},p=function(n,t){return!(t.disabled||a(t)||function(n){return d(n)&&"hidden"===n.type}(t)||function(n,t){var r=t.displayCheck,e=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var o=i.call(n,"details>summary:first-of-type");if(i.call(o?n.parentElement:n,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return v(n)}else{if("function"==typeof e){for(var a=n;n;){var f=n.parentElement,l=u(n);if(f&&!f.shadowRoot&&!0===e(f))return v(n);n=n.assignedSlot?n.assignedSlot:f||l===n.ownerDocument?f:l.host}n=a}if(function(n){var t,r,e,o,i=n&&u(n),a=null===(t=i)||void 0===t?void 0:t.host,f=!1;if(i&&i!==n)for(f=!!(null!==(r=a)&&void 0!==r&&null!==(e=r.ownerDocument)&&void 0!==e&&e.contains(a)||null!=n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(n));!f&&a;){var l,c,s;f=!(null===(c=a=null===(l=i=u(a))||void 0===l?void 0:l.host)||void 0===c||null===(s=c.ownerDocument)||void 0===s||!s.contains(a))}return f}(n))return!n.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var e=t.children.item(r);if("LEGEND"===e.tagName)return!!i.call(t,"fieldset[disabled] *")||!e.contains(n)}return!0}t=t.parentElement}return!1}(t))},y=function(n,t){return!(function(n){return function(n){return d(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,r=n.form||u(n),e=function(n){return r.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=e(window.CSS.escape(n.name));else try{t=e(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var r=0;r<n.length;r++)if(n[r].checked&&n[r].form===t)return n[r]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!p(n,t))},m=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},w=function n(t){var r=[],e=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,a=c(u,i),f=i?n(t.candidates):u;0===a?i?r.push.apply(r,f):r.push(u):e.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:f})})),e.sort(s).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(r)},E=function(n,t){var r;return r=(t=t||{}).getShadowRoot?l([n],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:m}):f(n,t.includeContainer,y.bind(null,t)),w(r)},b=function(n,t){return(t=t||{}).getShadowRoot?l([n],t.includeContainer,{filter:p.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):f(n,t.includeContainer,p.bind(null,t))},h=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==i.call(n,e)&&y(t,n)},A=r.concat("iframe").join(","),S=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==i.call(n,A)&&p(t,n)};const g={getShadowRoot:!0};function I(t){return t?t.id=t.id||`${t.tagName.toLowerCase()}-${n()}`:""}function N(n){return Array.isArray(n)?n:Array.from(n)}function T(n){return D(n,`.${t.darkMode}, .${t.lightMode}`)?.classList.contains("calcite-mode-dark")?"dark":"light"}function x(n){const t=D(n,"[dir]");return t?t.getAttribute("dir"):"ltr"}function $(n,t,r){const e=n.closest(`[${t}]`);return e?e.getAttribute(t):r}function k(n){return n.getRootNode()}function L(n){return n.host||null}function R(n,{selector:t,id:r}){return function n(e){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);const o=k(e),i=r?"getElementById"in o?o.getElementById(r):null:t?o.querySelector(t):null,u=L(o);return i||(u?n(u):null)}(n)}function D(n,t){return function n(r){return r?r.closest(t)||n(L(k(r))):null}(n)}function C(n,t){return O(n,t)}function O(n,t){if(!n)return;const r=t(n);if(void 0!==r)return r;const{parentNode:e}=n;return O(e instanceof ShadowRoot?e.host:e,t)}function U(n,t){return!!C(t,(t=>t===n||void 0))}async function P(n){if(n)return function(n){return"function"==typeof n?.setFocus}(n)?n.setFocus():n.focus()}function j(n){n&&(E(n,g)[0]||n).focus()}const B=":not([slot])";function F(n,t,r){t&&!Array.isArray(t)&&"string"!=typeof t&&(r=t,t=null);const e=t?Array.isArray(t)?t.map((n=>`[slot="${n}"]`)).join(","):`[slot="${t}"]`:B;return r?.all?function(n,t,r){let e=t===B?M(n,B):Array.from(n.querySelectorAll(t));e=r&&!1===r.direct?e:e.filter((t=>t.parentElement===n)),e=r?.matches?e.filter((n=>n?.matches(r.matches))):e;const o=r?.selector;return o?e.map((n=>Array.from(n.querySelectorAll(o)))).reduce(((n,t)=>[...n,...t]),[]).filter((n=>!!n)):e}(n,e,r):function(n,t,r){let e=t===B?M(n,B)[0]||null:n.querySelector(t);e=r&&!1===r.direct||e?.parentElement===n?e:null,e=r?.matches?e?.matches(r.matches)?e:null:e;const o=r?.selector;return o?e?.querySelector(o):e}(n,e,r)}function M(n,t){return n?Array.from(n.children||[]).filter((n=>n?.matches(t))):[]}function q(n,t){return Array.from(n.children).filter((n=>n.matches(t)))}function z(n,t,r){return"string"==typeof t&&""!==t?t:""===t?n[r]:void 0}function G(n,t){return!(t.left>n.right||t.right<n.left||t.top>n.bottom||t.bottom<n.top)}function V(n){return Boolean(n).toString()}function X(n){return!!Y(n).length}function Y(n){return n.target.assignedElements({flatten:!0})}function H(n){return!(!n.isPrimary||0!==n.button)}const J=(n,t,r)=>{const e=n.indexOf(t);let o;switch(r="previous"===r&&0===e?"last":"next"===r&&e===n.length-1?"first":r){case"first":o=n[0];break;case"last":o=n[n.length-1];break;case"next":o=n[e+1]||n[0];break;case"previous":o=n[e-1]||n[n.length-1]}return P(o),o};export{U as a,x as b,D as c,X as d,z as e,P as f,F as g,T as h,H as i,J as j,E as k,b as l,h as m,S as n,g as o,j as p,R as q,I as r,Y as s,V as t,$ as u,G as v,N as w,k as x,q as y}
11
+ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],e=r.join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!o&&Element.prototype.getRootNode?function(n){var t;return null==n||null===(t=n.getRootNode)||void 0===t?void 0:t.call(n)}:function(n){return null==n?void 0:n.ownerDocument},a=function n(t,r){var e;void 0===r&&(r=!0);var o=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"inert");return""===o||"true"===o||r&&t&&n(t.parentNode)},f=function(n,t,r){if(a(n))return[];var o=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&i.call(n,e)&&o.unshift(n),o.filter(r)},l=function n(t,r,o){for(var u=[],f=Array.from(t);f.length;){var l=f.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),s=n(c.length?c:l.children,!0,o);o.flatten?u.push.apply(u,s):u.push({scopeParent:l,candidates:s})}else{i.call(l,e)&&o.filter(l)&&(r||!t.includes(l))&&u.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),v=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&v){var p=n(!0===d?l.children:d.children,!0,o);o.flatten?u.push.apply(u,p):u.push({scopeParent:l,candidates:p})}else f.unshift.apply(f,l.children)}}return u},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||function(n){var t,r=null==n||null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"contenteditable");return""===r||"true"===r}(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},s=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},d=function(n){return"INPUT"===n.tagName},v=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},p=function(n,t){return!(t.disabled||a(t)||function(n){return d(n)&&"hidden"===n.type}(t)||function(n,t){var r=t.displayCheck,e=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var o=i.call(n,"details>summary:first-of-type");if(i.call(o?n.parentElement:n,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return v(n)}else{if("function"==typeof e){for(var a=n;n;){var f=n.parentElement,l=u(n);if(f&&!f.shadowRoot&&!0===e(f))return v(n);n=n.assignedSlot?n.assignedSlot:f||l===n.ownerDocument?f:l.host}n=a}if(function(n){var t,r,e,o,i=n&&u(n),a=null===(t=i)||void 0===t?void 0:t.host,f=!1;if(i&&i!==n)for(f=!!(null!==(r=a)&&void 0!==r&&null!==(e=r.ownerDocument)&&void 0!==e&&e.contains(a)||null!=n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(n));!f&&a;){var l,c,s;f=!(null===(c=a=null===(l=i=u(a))||void 0===l?void 0:l.host)||void 0===c||null===(s=c.ownerDocument)||void 0===s||!s.contains(a))}return f}(n))return!n.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var e=t.children.item(r);if("LEGEND"===e.tagName)return!!i.call(t,"fieldset[disabled] *")||!e.contains(n)}return!0}t=t.parentElement}return!1}(t))},y=function(n,t){return!(function(n){return function(n){return d(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,r=n.form||u(n),e=function(n){return r.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=e(window.CSS.escape(n.name));else try{t=e(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var r=0;r<n.length;r++)if(n[r].checked&&n[r].form===t)return n[r]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!p(n,t))},m=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},w=function n(t){var r=[],e=[];return t.forEach((function(t,o){var i=!!t.scopeParent,u=i?t.scopeParent:t,a=c(u,i),f=i?n(t.candidates):u;0===a?i?r.push.apply(r,f):r.push(u):e.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:f})})),e.sort(s).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(r)},E=function(n,t){var r;return r=(t=t||{}).getShadowRoot?l([n],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:m}):f(n,t.includeContainer,y.bind(null,t)),w(r)},h=function(n,t){return(t=t||{}).getShadowRoot?l([n],t.includeContainer,{filter:p.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):f(n,t.includeContainer,p.bind(null,t))},A=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==i.call(n,e)&&y(t,n)},S=r.concat("iframe").join(","),b=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==i.call(n,S)&&p(t,n)};const g={getShadowRoot:!0};function I(t){return t?t.id=t.id||`${t.tagName.toLowerCase()}-${n()}`:""}function N(n){return Array.isArray(n)?n:Array.from(n)}function T(n){return D(n,`.${t.darkMode}, .${t.lightMode}`)?.classList.contains("calcite-mode-dark")?"dark":"light"}function x(n){const t=D(n,"[dir]");return t?t.getAttribute("dir"):"ltr"}function $(n,t,r){const e=n.closest(`[${t}]`);return e?e.getAttribute(t):r}function k(n){return n.getRootNode()}function L(n){return n.host||null}function R(n,{selector:t,id:r}){return function n(e){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);const o=k(e),i=r?"getElementById"in o?o.getElementById(r):null:t?o.querySelector(t):null,u=L(o);return i||(u?n(u):null)}(n)}function D(n,t){return function n(r){return r?r.closest(t)||n(L(k(r))):null}(n)}function C(n,t){return O(n,t)}function O(n,t){if(!n)return;const r=t(n);if(void 0!==r)return r;const{parentNode:e}=n;return O(e instanceof ShadowRoot?e.host:e,t)}function U(n,t){return!!C(t,(t=>t===n||void 0))}async function P(n){if(n)return function(n){return"function"==typeof n?.setFocus}(n)?n.setFocus():n.focus()}function j(n){n&&(E(n,g)[0]||n).focus()}const B=":not([slot])";function F(n,t,r){t&&!Array.isArray(t)&&"string"!=typeof t&&(r=t,t=null);const e=t?Array.isArray(t)?t.map((n=>`[slot="${n}"]`)).join(","):`[slot="${t}"]`:B;return r?.all?function(n,t,r){let e=t===B?M(n,B):Array.from(n.querySelectorAll(t));e=r&&!1===r.direct?e:e.filter((t=>t.parentElement===n)),e=r?.matches?e.filter((n=>n?.matches(r.matches))):e;const o=r?.selector;return o?e.map((n=>Array.from(n.querySelectorAll(o)))).reduce(((n,t)=>[...n,...t]),[]).filter((n=>!!n)):e}(n,e,r):function(n,t,r){let e=t===B?M(n,B)[0]||null:n.querySelector(t);e=r&&!1===r.direct||e?.parentElement===n?e:null,e=r?.matches?e?.matches(r.matches)?e:null:e;const o=r?.selector;return o?e?.querySelector(o):e}(n,e,r)}function M(n,t){return n?Array.from(n.children||[]).filter((n=>n?.matches(t))):[]}function q(n,t){return Array.from(n.children).filter((n=>n.matches(t)))}function z(n,t,r){return"string"==typeof t&&""!==t?t:""===t?n[r]:void 0}function G(n,t){return!(t.left>n.right||t.right<n.left||t.top>n.bottom||t.bottom<n.top)}function V(n){return Boolean(n).toString()}function X(n){return!!Y(n).length}function Y(n){return n.target.assignedElements({flatten:!0})}function H(n){return!(!n.isPrimary||0!==n.button)}const J=(n,t,r)=>{const e=n.indexOf(t);let o;switch(r="previous"===r&&0===e?"last":"next"===r&&e===n.length-1?"first":r){case"first":o=n[0];break;case"last":o=n[n.length-1];break;case"next":o=n[e+1]||n[0];break;case"previous":o=n[e-1]||n[n.length-1]}return P(o),o};export{U as a,x as b,D as c,X as d,z as e,P as f,F as g,T as h,H as i,J as j,E as k,h as l,A as m,b as n,g as o,j as p,R as q,I as r,Y as s,V as t,$ as u,G as v,N as w,k as x,q as y}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.4.0-next.2
5
+ */
6
+ import{r as t,c as a,h as i,H as o,a as e}from"./p-80fa9ed2.js";import{c as n,d as r}from"./p-fbc9f53b.js";import{s as c,g as s}from"./p-97e2186f.js";import{s as l,a as d,c as p}from"./p-bd034ba6.js";import{c as m,d as h}from"./p-b4ac3021.js";import{u,c as f,d as g,s as x}from"./p-48e14553.js";import{t as b,E as y}from"./p-64f42987.js";import{c as w}from"./p-c0e3bcbb.js";import"./p-167c3f00.js";import"./p-cfc14f04.js";import"./p-e57bae5e.js";import"./p-79176fd4.js";import"./p-10eb1cf9.js";const v="expand-tooltip",k=class{constructor(i){t(this,i),this.calciteActionPadToggle=a(this,"calciteActionPadToggle",6),this.mutationObserver=w("mutation",(()=>this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group"))))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const a=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{a.includes(t)||(t.menuOpen=!1)}))}},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const a=c(t).filter((t=>t?.matches("calcite-action-group")));this.setGroupLayout(a)},this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}expandedHandler(t){b({parent:this.el,expanded:t})}layoutHandler(){this.updateGroups()}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){n(this),m(this),f(this)}disconnectedCallback(){h(this),g(this),r(this)}async componentWillLoad(){l(this);const{el:t,expanded:a}=this;b({parent:t,expanded:a}),await x(this)}componentDidLoad(){d(this)}async setFocus(){await p(this),this.el?.focus()}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:a,messages:o,el:e,position:n,toggleExpand:r,scale:c,layout:l}=this,d=s(e,v),p=a?null:i(y,{el:e,expanded:t,intlCollapse:o.collapse,intlExpand:o.expand,position:n,scale:c,toggle:r,tooltip:d,ref:this.setExpandToggleRef});return p?i("calcite-action-group",{class:"action-group--bottom",layout:l,scale:c},i("slot",{name:v}),p):null}render(){return i(o,{onCalciteActionMenuOpen:this.actionMenuOpenHandler},i("div",{class:"container"},i("slot",{onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup()))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{expanded:["expandedHandler"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};k.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.01}}: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:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem;--calcite-action-pad-expanded-max-width:auto;background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px}.container{display:inline-flex;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--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)}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0px;padding:0px;border-inline-end-width:1px}::slotted(calcite-action-group:last-child){border-block-end-width:0px}";export{k as calcite_action_pad}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as t,c as i,h as e,H as s,a}from"./p-57e653ea.js";import{g as n,e as o,b as l}from"./p-11beded1.js";import{s as r,c,d as h,H as d}from"./p-ebefbd07.js";import{u}from"./p-b7cc02fa.js";import{c as p,d as m,g as b}from"./p-4d55aa78.js";import{s as f,a as v,c as g}from"./p-f8e1c231.js";import{c as x,d as y}from"./p-94f16774.js";import{c as k}from"./p-2fa9c44a.js";import{C as w}from"./p-5b24b90a.js";import{u as z,c as I,d as C,s as j}from"./p-64a44a39.js";import"./p-3255b488.js";import"./p-94aa5071.js";const D=class{constructor(e){t(this,e),this.calciteInternalInputTextFocus=i(this,"calciteInternalInputTextFocus",7),this.calciteInternalInputTextBlur=i(this,"calciteInternalInputTextBlur",7),this.calciteInputTextInput=i(this,"calciteInputTextInput",7),this.calciteInputTextChange=i(this,"calciteInputTextChange",7),this.previousValueOrigin="initial",this.mutationObserver=k("mutation",(()=>this.setDisabledAction())),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||(this.isClearable&&"Escape"===t.key&&(this.clearInputTextValue(t),t.preventDefault()),"Enter"!==t.key||t.defaultPrevented||r(this)&&t.preventDefault())},this.clearInputTextValue=t=>{this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&(this.calciteInputTextChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputTextBlurHandler=()=>{this.calciteInternalInputTextBlur.emit({element:this.childEl,value:this.value}),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;const i=n(this.el,"action");t.target!==i&&this.setFocus()},this.inputTextFocusHandler=()=>{this.calciteInternalInputTextFocus.emit({element:this.childEl,value:this.value})},this.inputTextInputHandler=t=>{this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})},this.inputTextKeyDownHandler=t=>{this.disabled||this.readOnly||"Enter"===t.key&&this.emitChangeIfUserModified()},this.hiddenInputChangeHandler=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),t.stopPropagation()},this.setChildElRef=t=>{this.childEl=t},this.setInputValue=t=>{this.childEl&&(this.childEl.value=t)},this.setPreviousEmittedValue=t=>{this.previousEmittedValue=t},this.setPreviousValue=t=>{this.previousValue=t},this.setValue=({committing:t=!1,nativeEvent:i,origin:e,previousValue:s,value:a})=>{this.setPreviousValue(s??this.value),this.previousValueOrigin=e,this.userChangedValue="user"===e&&a!==this.value,this.value=a,"direct"===e&&(this.setInputValue(a),this.setPreviousEmittedValue(a)),i&&(this.calciteInputTextInput.emit().defaultPrevented?this.value=this.previousValue:t&&this.emitChangeIfUserModified())},this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.form=void 0,this.hidden=!1,this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.loading=!1,this.maxLength=void 0,this.minLength=void 0,this.name=void 0,this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.autocomplete=void 0,this.inputMode="text",this.enterKeyHint=void 0,this.pattern=void 0,this.suffixText=void 0,this.editingEnabled=!1,this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.slottedActionElDisabledInternally=!1}disabledWatcher(){this.setDisabledAction()}onMessagesChange(){}valueWatcher(t,i){this.userChangedValue||this.setValue({origin:"direct",previousValue:i,value:t||""}),this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=o({},this.icon,"text")}get isClearable(){return this.clearable&&this.value.length>0}effectiveLocaleChange(){z(this,this.effectiveLocale)}connectedCallback(){x(this),I(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),p(this),c(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}disconnectedCallback(){m(this),h(this),y(this),C(this),this.mutationObserver?.disconnect(),this.el.removeEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}async componentWillLoad(){f(this),this.requestedIcon=o({},this.icon,"text"),await j(this)}componentDidLoad(){v(this)}componentDidRender(){u(this)}async setFocus(){await g(this),this.childEl?.focus()}async selectText(){this.childEl?.select()}onLabelClick(){this.setFocus()}onFormReset(){this.setValue({origin:"reset",value:this.defaultValue})}syncHiddenFormInput(t){null!=this.minLength&&(t.minLength=this.minLength),null!=this.maxLength&&(t.maxLength=this.maxLength)}setDisabledAction(){const t=n(this.el,"action");t&&(this.disabled?(null==t.getAttribute("disabled")&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}render(){const t=l(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.messages.loading,type:"indeterminate"})),a=e("button",{"aria-label":this.messages.clear,class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputTextValue,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),n=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"l"===this.scale?"m":"s"}),o=e("div",{class:"prefix"},this.prefixText),r=e("div",{class:"suffix"},this.suffixText),c=e("input",{"aria-label":b(this),autocomplete:this.autocomplete,autofocus:!!this.autofocus||null,class:{"editing-enabled":this.editingEnabled,"inline-child":!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.enterKeyHint,inputMode:this.inputMode,maxLength:this.maxLength,minLength:this.minLength,name:this.name,onBlur:this.inputTextBlurHandler,onFocus:this.inputTextFocusHandler,onInput:this.inputTextInputHandler,onKeyDown:this.inputTextKeyDownHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,required:!!this.required||null,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:"text",value:this.value,ref:this.setChildElRef});return e(s,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[w.rtl]:"rtl"===t}},this.prefixText?o:null,e("div",{class:"element-wrapper"},c,this.isClearable?a:null,this.requestedIcon?n:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),this.suffixText?r:null,e(d,{component:this})))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};D.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:1;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{order:2;border-inline-end-width:0px}.suffix{order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}.inline-child{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.inline-child .editing-enabled{background-color:inherit}.inline-child:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{D as calcite_input_text}
6
+ import{r as t,c as i,h as e,H as s,a}from"./p-80fa9ed2.js";import{g as n,e as o,b as l}from"./p-97e2186f.js";import{s as r,c,d as h,H as d}from"./p-933dd110.js";import{u}from"./p-a869afb5.js";import{c as p,d as m,g as b}from"./p-3a115254.js";import{s as f,a as v,c as g}from"./p-bd034ba6.js";import{c as x,d as y}from"./p-b4ac3021.js";import{c as k}from"./p-c0e3bcbb.js";import{C as w}from"./p-cfc14f04.js";import{u as z,c as I,d as C,s as j}from"./p-48e14553.js";import"./p-167c3f00.js";import"./p-e57bae5e.js";const D=class{constructor(e){t(this,e),this.calciteInternalInputTextFocus=i(this,"calciteInternalInputTextFocus",7),this.calciteInternalInputTextBlur=i(this,"calciteInternalInputTextBlur",7),this.calciteInputTextInput=i(this,"calciteInputTextInput",7),this.calciteInputTextChange=i(this,"calciteInputTextChange",7),this.previousValueOrigin="initial",this.mutationObserver=k("mutation",(()=>this.setDisabledAction())),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||(this.isClearable&&"Escape"===t.key&&(this.clearInputTextValue(t),t.preventDefault()),"Enter"!==t.key||t.defaultPrevented||r(this)&&t.preventDefault())},this.clearInputTextValue=t=>{this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&(this.calciteInputTextChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputTextBlurHandler=()=>{this.calciteInternalInputTextBlur.emit({element:this.childEl,value:this.value}),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;const i=n(this.el,"action");t.target!==i&&this.setFocus()},this.inputTextFocusHandler=()=>{this.calciteInternalInputTextFocus.emit({element:this.childEl,value:this.value})},this.inputTextInputHandler=t=>{this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})},this.inputTextKeyDownHandler=t=>{this.disabled||this.readOnly||"Enter"===t.key&&this.emitChangeIfUserModified()},this.hiddenInputChangeHandler=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),t.stopPropagation()},this.setChildElRef=t=>{this.childEl=t},this.setInputValue=t=>{this.childEl&&(this.childEl.value=t)},this.setPreviousEmittedValue=t=>{this.previousEmittedValue=t},this.setPreviousValue=t=>{this.previousValue=t},this.setValue=({committing:t=!1,nativeEvent:i,origin:e,previousValue:s,value:a})=>{this.setPreviousValue(s??this.value),this.previousValueOrigin=e,this.userChangedValue="user"===e&&a!==this.value,this.value=a,"direct"===e&&(this.setInputValue(a),this.setPreviousEmittedValue(a)),i&&(this.calciteInputTextInput.emit().defaultPrevented?this.value=this.previousValue:t&&this.emitChangeIfUserModified())},this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.form=void 0,this.hidden=!1,this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.loading=!1,this.maxLength=void 0,this.minLength=void 0,this.name=void 0,this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.autocomplete=void 0,this.inputMode="text",this.enterKeyHint=void 0,this.pattern=void 0,this.suffixText=void 0,this.editingEnabled=!1,this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.slottedActionElDisabledInternally=!1}disabledWatcher(){this.setDisabledAction()}onMessagesChange(){}valueWatcher(t,i){this.userChangedValue||this.setValue({origin:"direct",previousValue:i,value:t||""}),this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=o({},this.icon,"text")}get isClearable(){return this.clearable&&this.value.length>0}effectiveLocaleChange(){z(this,this.effectiveLocale)}connectedCallback(){x(this),I(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),p(this),c(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}disconnectedCallback(){m(this),h(this),y(this),C(this),this.mutationObserver?.disconnect(),this.el.removeEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}async componentWillLoad(){f(this),this.requestedIcon=o({},this.icon,"text"),await j(this)}componentDidLoad(){v(this)}componentDidRender(){u(this)}async setFocus(){await g(this),this.childEl?.focus()}async selectText(){this.childEl?.select()}onLabelClick(){this.setFocus()}onFormReset(){this.setValue({origin:"reset",value:this.defaultValue})}syncHiddenFormInput(t){null!=this.minLength&&(t.minLength=this.minLength),null!=this.maxLength&&(t.maxLength=this.maxLength)}setDisabledAction(){const t=n(this.el,"action");t&&(this.disabled?(null==t.getAttribute("disabled")&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}render(){const t=l(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.messages.loading,type:"indeterminate"})),a=e("button",{"aria-label":this.messages.clear,class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputTextValue,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),n=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"l"===this.scale?"m":"s"}),o=e("div",{class:"prefix"},this.prefixText),r=e("div",{class:"suffix"},this.suffixText),c=e("input",{"aria-label":b(this),autocomplete:this.autocomplete,autofocus:!!this.autofocus||null,class:{"editing-enabled":this.editingEnabled,"inline-child":!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.enterKeyHint,inputMode:this.inputMode,maxLength:this.maxLength,minLength:this.minLength,name:this.name,onBlur:this.inputTextBlurHandler,onFocus:this.inputTextFocusHandler,onInput:this.inputTextInputHandler,onKeyDown:this.inputTextKeyDownHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,required:!!this.required||null,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:"text",value:this.value,ref:this.setChildElRef});return e(s,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[w.rtl]:"rtl"===t}},this.prefixText?o:null,e("div",{class:"element-wrapper"},c,this.isClearable?a:null,this.requestedIcon?n:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),this.suffixText?r:null,e(d,{component:this})))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}};D.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:1;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{order:2;border-inline-end-width:0px}.suffix{order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}.inline-child{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.inline-child .editing-enabled{background-color:inherit}.inline-child:not(.editing-enabled){display:flex;cursor:pointer;border-color:transparent;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{D as calcite_input_text}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{a as r,S as t,i as n,b as e,c as o,r as u,f}from"./p-289f6317.js";var c=Array.isArray,a=t?t.prototype:void 0,i=a?a.toString:void 0;function l(t){if("string"==typeof t)return t;if(c(t))return function(r,t){for(var n=-1,e=null==r?0:r.length,o=Array(e);++n<e;)o[n]=t(r[n],n,r);return o}(t,l)+"";if(r(t))return i?i.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function s(r){return r}var v=/^(?:0|[1-9]\d*)$/;function b(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&v.test(r))&&r>-1&&r%1==0&&r<t}function p(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}var y=Object.prototype;function j(r){return o(r)&&"[object Arguments]"==e(r)}var d=Object.prototype,m=d.hasOwnProperty,x=d.propertyIsEnumerable,g=j(function(){return arguments}())?j:function(r){return o(r)&&m.call(r,"callee")&&!x.call(r,"callee")},O="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=O&&"object"==typeof module&&module&&!module.nodeType&&module,A=h&&h.exports===O?u.Buffer:void 0,F=(A?A.isBuffer:void 0)||function(){return!1},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var w,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,R=E&&"object"==typeof module&&module&&!module.nodeType&&module,S=R&&R.exports===E&&f.process,k=function(){try{return R&&R.require&&R.require("util").types||S&&S.binding&&S.binding("util")}catch(r){}}(),G=k&&k.isTypedArray,L=G?(w=G,function(r){return w(r)}):function(r){return o(r)&&p(r.length)&&!!$[e(r)]},N=Object.prototype.hasOwnProperty;var P=Object.prototype.hasOwnProperty;function T(r){return null!=(t=r)&&p(t.length)&&!function(r){if(!n(r))return!1;var t=e(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(r,t){var n=c(r),e=!n&&g(r),o=!n&&!e&&F(r),u=!n&&!e&&!o&&L(r),f=n||e||o||u,a=f?function(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}(r.length,String):[],i=a.length;for(var l in r)!t&&!N.call(r,l)||f&&("length"==l||o&&("offset"==l||"parent"==l)||u&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||b(l,i))||a.push(l);return a}(r,!0):function(r){if(!n(r))return function(r){var t=[];if(null!=r)for(var n in Object(r))t.push(n);return t}(r);var t,e,o=(t=r)===("function"==typeof(e=t&&t.constructor)&&e.prototype||y),u=[];for(var f in r)("constructor"!=f||!o&&P.call(r,f))&&u.push(f);return u}(r);var t}var q=/[\\^$.*+?()[\]{}|]/g,z=RegExp(q.source);function B(r,t){return null==r?r:function(r,t,n){for(var e=-1,o=Object(r),u=n(r),f=u.length;f--;){var c=u[++e];if(!1===t(o[c],c,o))break}return r}(r,"function"==typeof(n=t)?n:s,T);var n}const C=(r,t)=>{const n=function(r){var t;return(r=null==(t=r)?"":l(t))&&z.test(r)?r.replace(q,"\\$&"):r}(t),e=new RegExp(n,"i");0===r.length&&console.warn("No data was passed to the filter function.\n The data argument should be an array of objects");const o=(r,t)=>{if(r?.constant||r?.filterDisabled)return!0;let n=!1;return B(r,(r=>{"function"!=typeof r&&null!=r&&(Array.isArray(r)||"object"==typeof r&&null!==r?o(r,t)&&(n=!0):t.test(r)&&(n=!0))})),n};return r.filter((r=>o(r,e)))};export{C as f}
6
+ import{a as r,S as t,i as n,b as e,c as o,r as u,f}from"./p-f8c3ca31.js";var c=Array.isArray,a=t?t.prototype:void 0,i=a?a.toString:void 0;function l(t){if("string"==typeof t)return t;if(c(t))return function(r,t){for(var n=-1,e=null==r?0:r.length,o=Array(e);++n<e;)o[n]=t(r[n],n,r);return o}(t,l)+"";if(r(t))return i?i.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function s(r){return r}var v=/^(?:0|[1-9]\d*)$/;function b(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&v.test(r))&&r>-1&&r%1==0&&r<t}function p(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}var y=Object.prototype;function j(r){return o(r)&&"[object Arguments]"==e(r)}var d=Object.prototype,m=d.hasOwnProperty,x=d.propertyIsEnumerable,g=j(function(){return arguments}())?j:function(r){return o(r)&&m.call(r,"callee")&&!x.call(r,"callee")},O="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=O&&"object"==typeof module&&module&&!module.nodeType&&module,A=h&&h.exports===O?u.Buffer:void 0,F=(A?A.isBuffer:void 0)||function(){return!1},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var w,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,R=E&&"object"==typeof module&&module&&!module.nodeType&&module,S=R&&R.exports===E&&f.process,k=function(){try{return R&&R.require&&R.require("util").types||S&&S.binding&&S.binding("util")}catch(r){}}(),G=k&&k.isTypedArray,L=G?(w=G,function(r){return w(r)}):function(r){return o(r)&&p(r.length)&&!!$[e(r)]},N=Object.prototype.hasOwnProperty;var P=Object.prototype.hasOwnProperty;function T(r){return null!=(t=r)&&p(t.length)&&!function(r){if(!n(r))return!1;var t=e(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(r,t){var n=c(r),e=!n&&g(r),o=!n&&!e&&F(r),u=!n&&!e&&!o&&L(r),f=n||e||o||u,a=f?function(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}(r.length,String):[],i=a.length;for(var l in r)!t&&!N.call(r,l)||f&&("length"==l||o&&("offset"==l||"parent"==l)||u&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||b(l,i))||a.push(l);return a}(r,!0):function(r){if(!n(r))return function(r){var t=[];if(null!=r)for(var n in Object(r))t.push(n);return t}(r);var t,e,o=(t=r)===("function"==typeof(e=t&&t.constructor)&&e.prototype||y),u=[];for(var f in r)("constructor"!=f||!o&&P.call(r,f))&&u.push(f);return u}(r);var t}var q=/[\\^$.*+?()[\]{}|]/g,z=RegExp(q.source);function B(r,t){return null==r?r:function(r,t,n){for(var e=-1,o=Object(r),u=n(r),f=u.length;f--;){var c=u[++e];if(!1===t(o[c],c,o))break}return r}(r,"function"==typeof(n=t)?n:s,T);var n}const C=(r,t)=>{const n=function(r){var t;return(r=null==(t=r)?"":l(t))&&z.test(r)?r.replace(q,"\\$&"):r}(t),e=new RegExp(n,"i");0===r.length&&console.warn("No data was passed to the filter function.\n The data argument should be an array of objects");const o=(r,t)=>{if(r?.constant||r?.filterDisabled)return!0;let n=!1;return B(r,(r=>{"function"!=typeof r&&null!=r&&(Array.isArray(r)||"object"==typeof r&&null!==r?o(r,t)&&(n=!0):t.test(r)&&(n=!0))})),n};return r.filter((r=>o(r,e)))};export{C as f}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as e,c as t,f as i,h as a,H as s,a as n}from"./p-57e653ea.js";import{f as o,c as r,b as l,a as c,r as h,F as d}from"./p-5fae16d7.js";import{d as f,a as p,c as m,u}from"./p-f4cf789b.js";import{i as g,t as v,p as b,q as y}from"./p-11beded1.js";import{g as w}from"./p-3255b488.js";import{c as x,d as k}from"./p-1d426b87.js";import{H as E}from"./p-bf6df76d.js";import{c as D,d as z}from"./p-94f16774.js";import{u as H,c as j,s as P,d as C}from"./p-64a44a39.js";import{i as _}from"./p-94aa5071.js";import{s as L,a as O,c as R}from"./p-f8e1c231.js";import{c as A}from"./p-2fa9c44a.js";import{F as B}from"./p-137b6f9b.js";import"./p-289f6317.js";import"./p-5b24b90a.js";const F="close-button-container",S="header",T="aria-controls",M="aria-expanded",$=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():_(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{g(e)&&this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},X=class{constructor(i){e(this,i),this.calcitePopoverBeforeClose=t(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=t(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=t(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=t(this,"calcitePopoverOpen",6),this.mutationObserver=A("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${w()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e,x(this)},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?o(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:a}=this;e&&i&&!a&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(M,v(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(T,t),$.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(T),e.removeAttribute(M)),$.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handlefocusTrapDisabled(e){this.open&&(e?f(this):p(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){e&&this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){H(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),D(this),j(this),x(this),this.setUpReferenceElement(this.hasLoaded),m(this)}async componentWillLoad(){await P(this),L(this)}componentDidLoad(){O(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),z(this),C(this),c(this,this.effectiveReferenceElement,this.el),k(this),f(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:a,overlayPositioning:s,flipDisabled:n,filteredFlipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:t,referenceEl:i,overlayPositioning:s,placement:a,flipDisabled:n,flipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c,type:"popover"},e)}async setFocus(){await R(this),i(this.el),b(this.el)}async updateFocusTrapElements(){u(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?y(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),p(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),f(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?a("div",{class:F,key:F},a("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,scale:this.scale,text:e.close,ref:e=>this.closeButtonEl=e},a("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":this.scale}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,i=e?a(E,{class:"heading",level:t},e):null;return i?a("div",{class:S,key:S},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:i,open:n,pointerDisabled:o,floatingLayout:r}=this,l=e&&n,c=!l,h=o?null:a(B,{floatingLayout:r,key:"floating-arrow",ref:this.storeArrowEl});return a(s,{"aria-hidden":v(c),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":c,id:this.getId(),role:"dialog"},a("div",{class:{[d.animation]:!0,[d.animationActive]:l},ref:this.setTransitionEl},h,a("div",{class:{"has-header":!!t,container:!0}},this.renderHeader(),a("div",{class:"content"},a("slot",null)),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{focusTrapDisabled:["handlefocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};X.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-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.01}}: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-popover-z-index, 900);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}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:-1;fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.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)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}";export{X as calcite_popover}
6
+ import{r as e,c as t,f as i,h as a,H as s,a as n}from"./p-80fa9ed2.js";import{f as o,c as r,b as l,a as c,r as h,F as d}from"./p-1838bef0.js";import{d as f,a as p,c as m,u}from"./p-4850b80c.js";import{i as g,t as v,p as b,q as y}from"./p-97e2186f.js";import{g as w}from"./p-167c3f00.js";import{c as x,d as k}from"./p-10efaa0b.js";import{H as E}from"./p-a8dccd87.js";import{c as D,d as z}from"./p-b4ac3021.js";import{u as H,c as j,s as P,d as C}from"./p-48e14553.js";import{i as _}from"./p-e57bae5e.js";import{s as L,a as O,c as R}from"./p-bd034ba6.js";import{c as A}from"./p-c0e3bcbb.js";import{F as B}from"./p-d71b3bc7.js";import"./p-f8c3ca31.js";import"./p-cfc14f04.js";const F="close-button-container",S="header",T="aria-controls",M="aria-expanded",$=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{const{registeredElements:t}=this,i=e.find((e=>t.has(e)));return t.get(i)},this.togglePopovers=e=>{const t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((e=>e!==i&&e.autoClose&&e.open&&!t.includes(e))).forEach((e=>e.open=!1))},this.keyHandler=e=>{e.defaultPrevented||("Escape"===e.key?this.closeAllPopovers():_(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{g(e)&&this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),1===this.registeredElementCount&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((e=>e.open=!1))}addListeners(){document.addEventListener("pointerdown",this.clickHandler,{capture:!0}),document.addEventListener("keydown",this.keyHandler,{capture:!0})}removeListeners(){document.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),document.removeEventListener("keydown",this.keyHandler,{capture:!0})}},X=class{constructor(i){e(this,i),this.calcitePopoverBeforeClose=t(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=t(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=t(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=t(this,"calcitePopoverOpen",6),this.mutationObserver=A("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${w()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=e=>{this.transitionEl=e,x(this)},this.setFilteredPlacements=()=>{const{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?o(t,e):null},this.setUpReferenceElement=(e=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:t,referenceElement:i,effectiveReferenceElement:a}=this;e&&i&&!a&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(M,v(t))},this.addReferences=()=>{const{effectiveReferenceElement:e}=this;if(!e)return;const t=this.getId();"setAttribute"in e&&e.setAttribute(T,t),$.registerElement(e,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(T),e.removeAttribute(M)),$.unregisterElement(e))},this.hide=()=>{this.open=!1},this.storeArrowEl=e=>{this.arrowEl=e,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handlefocusTrapDisabled(e){this.open&&(e?f(this):p(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(e){e&&this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){H(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),D(this),j(this),x(this),this.setUpReferenceElement(this.hasLoaded),m(this)}async componentWillLoad(){await P(this),L(this)}componentDidLoad(){O(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),z(this),C(this),c(this,this.effectiveReferenceElement,this.el),k(this),f(this)}async reposition(e=!1){const{el:t,effectiveReferenceElement:i,placement:a,overlayPositioning:s,flipDisabled:n,filteredFlipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:t,referenceEl:i,overlayPositioning:s,placement:a,flipDisabled:n,flipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c,type:"popover"},e)}async setFocus(){await R(this),i(this.el),b(this.el)}async updateFocusTrapElements(){u(this)}getReferenceElement(){const{referenceElement:e,el:t}=this;return("string"==typeof e?y(t,{id:e}):e)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),p(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),f(this)}renderCloseButton(){const{messages:e,closable:t}=this;return t?a("div",{class:F,key:F},a("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,scale:this.scale,text:e.close,ref:e=>this.closeButtonEl=e},a("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":this.scale}))):null}renderHeader(){const{heading:e,headingLevel:t}=this,i=e?a(E,{class:"heading",level:t},e):null;return i?a("div",{class:S,key:S},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:e,heading:t,label:i,open:n,pointerDisabled:o,floatingLayout:r}=this,l=e&&n,c=!l,h=o?null:a(B,{floatingLayout:r,key:"floating-arrow",ref:this.storeArrowEl});return a(s,{"aria-hidden":v(c),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":c,id:this.getId(),role:"dialog"},a("div",{class:{[d.animation]:!0,[d.animationActive]:l},ref:this.setTransitionEl},h,a("div",{class:{"has-header":!!t,container:!0}},this.renderHeader(),a("div",{class:"content"},a("slot",null)),t?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{focusTrapDisabled:["handlefocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};X.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-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.01}}: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-popover-z-index, 900);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}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:-1;fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.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)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}";export{X as calcite_popover}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as a,c as i,h as t,a as e}from"./p-57e653ea.js";import{t as n}from"./p-11beded1.js";import{s as c,a as o,c as r}from"./p-f8e1c231.js";import{c as s,d as l}from"./p-94f16774.js";import{c as d,s as m,d as h,u as f}from"./p-64a44a39.js";import"./p-3255b488.js";import"./p-5b24b90a.js";import"./p-94aa5071.js";import"./p-2fa9c44a.js";const u=class{constructor(t){a(this,t),this.calciteHandleNudge=i(this,"calciteHandleNudge",6),this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated,a.preventDefault();break;case"ArrowUp":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"up"});break;case"ArrowDown":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"down"})}},this.handleBlur=()=>{this.activated=!1},this.activated=!1,this.dragHandle=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}connectedCallback(){d(this),s(this)}async componentWillLoad(){c(this),await m(this)}componentDidLoad(){o(this)}disconnectedCallback(){h(this),l(this)}effectiveLocaleChange(){f(this,this.effectiveLocale)}async setFocus(){await r(this),this.handleButton?.focus()}render(){return t("span",{"aria-pressed":n(this.activated),class:{handle:!0,"handle--activated":this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0",title:this.messages.dragHandle,ref:a=>{this.handleButton=a}},t("calcite-icon",{icon:"drag",scale:"s"}))}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};u.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex}.handle{display:flex;cursor:move;align-items:center;justify-content:center;align-self:stretch;border-style:none;background-color:transparent;outline-color:transparent;color:var(--calcite-ui-border-input);padding-block:0.75rem;padding-inline:0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}";export{u as calcite_handle}
6
+ import{r as a,c as i,h as t,a as e}from"./p-80fa9ed2.js";import{t as n}from"./p-97e2186f.js";import{s as c,a as o,c as r}from"./p-bd034ba6.js";import{c as s,d as l}from"./p-b4ac3021.js";import{c as d,s as m,d as h,u as f}from"./p-48e14553.js";import"./p-167c3f00.js";import"./p-cfc14f04.js";import"./p-e57bae5e.js";import"./p-c0e3bcbb.js";const u=class{constructor(t){a(this,t),this.calciteHandleNudge=i(this,"calciteHandleNudge",6),this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated,a.preventDefault();break;case"ArrowUp":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"up"});break;case"ArrowDown":if(!this.activated)return;a.preventDefault(),this.calciteHandleNudge.emit({direction:"down"})}},this.handleBlur=()=>{this.activated=!1},this.activated=!1,this.dragHandle=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}connectedCallback(){d(this),s(this)}async componentWillLoad(){c(this),await m(this)}componentDidLoad(){o(this)}disconnectedCallback(){h(this),l(this)}effectiveLocaleChange(){f(this,this.effectiveLocale)}async setFocus(){await r(this),this.handleButton?.focus()}render(){return t("span",{"aria-pressed":n(this.activated),class:{handle:!0,"handle--activated":this.activated},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0",title:this.messages.dragHandle,ref:a=>{this.handleButton=a}},t("calcite-icon",{icon:"drag",scale:"s"}))}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};u.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex}.handle{display:flex;cursor:move;align-items:center;justify-content:center;align-self:stretch;border-style:none;background-color:transparent;outline-color:transparent;color:var(--calcite-ui-border-input);padding-block:0.75rem;padding-inline:0.25rem;line-height:0}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}";export{u as calcite_handle}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.4.0-next.0
4
+ * v1.4.0-next.2
5
5
  */
6
- import{r as i,c as t,h as a,H as e,a as o}from"./p-57e653ea.js";import{f as n,t as r}from"./p-11beded1.js";import{c,d as s,H as l}from"./p-ebefbd07.js";import{u as d}from"./p-b7cc02fa.js";import{i as m}from"./p-94aa5071.js";import{c as h,d as p,g as b}from"./p-4d55aa78.js";import{c as u,s as f,a as v}from"./p-f8e1c231.js";import"./p-3255b488.js";import"./p-5b24b90a.js";const k=class{constructor(a){i(this,a),this.calciteSwitchChange=t(this,"calciteSwitchChange",6),this.keyDownHandler=i=>{!this.disabled&&m(i.key)&&(this.toggle(),i.preventDefault())},this.clickHandler=()=>{this.disabled||this.toggle()},this.setSwitchEl=i=>{this.switchEl=i},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.scale="m",this.checked=!1,this.value=void 0}async setFocus(){await u(this),n(this.switchEl)}syncHiddenFormInput(i){i.type="checkbox"}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit()}connectedCallback(){h(this),c(this)}componentWillLoad(){f(this)}componentDidLoad(){v(this)}disconnectedCallback(){p(this),s(this)}componentDidRender(){d(this)}render(){return a(e,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},a("div",{"aria-checked":r(this.checked),"aria-label":b(this),class:"container",role:"switch",tabIndex:0,ref:this.setSwitchEl},a("div",{class:"track"},a("div",{class:"handle"})),a(l,{component:this})))}get el(){return o(this)}};k.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host{inline-size:auto;outline-color:transparent}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}.container:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{k as calcite_switch}
6
+ import{r as i,c as t,h as a,H as e,a as o}from"./p-80fa9ed2.js";import{f as n,t as r}from"./p-97e2186f.js";import{c,d as s,H as l}from"./p-933dd110.js";import{u as d}from"./p-a869afb5.js";import{i as m}from"./p-e57bae5e.js";import{c as h,d as p,g as u}from"./p-3a115254.js";import{c as b,s as f,a as v}from"./p-bd034ba6.js";import"./p-167c3f00.js";import"./p-cfc14f04.js";const k=class{constructor(a){i(this,a),this.calciteSwitchChange=t(this,"calciteSwitchChange",6),this.keyDownHandler=i=>{!this.disabled&&m(i.key)&&(this.toggle(),i.preventDefault())},this.clickHandler=()=>{this.disabled||this.toggle()},this.setSwitchEl=i=>{this.switchEl=i},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.scale="m",this.checked=!1,this.value=void 0}async setFocus(){await b(this),n(this.switchEl)}syncHiddenFormInput(i){i.type="checkbox"}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit()}connectedCallback(){h(this),c(this)}componentWillLoad(){f(this)}componentDidLoad(){v(this)}disconnectedCallback(){p(this),s(this)}componentDidRender(){d(this)}render(){return a(e,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},a("div",{"aria-checked":r(this.checked),"aria-label":u(this),class:"container",role:"switch",tabIndex:0,ref:this.setSwitchEl},a("div",{class:"track"},a("div",{class:"handle"})),a(l,{component:this})))}get el(){return o(this)}};k.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.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host{inline-size:auto;outline-color:transparent}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}.container:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{k as calcite_switch}