@esri/calcite-components 1.3.0-next.3 → 1.3.0-next.5

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 (679) hide show
  1. package/dist/calcite/assets/date-picker/nls/de-AT.json +32 -0
  2. package/dist/calcite/calcite.esm.js +2 -2
  3. package/dist/calcite/index.esm.js +2 -2
  4. package/dist/calcite/{p-fed20e09.entry.js → p-019b964a.entry.js} +2 -2
  5. package/dist/calcite/{p-02d06e51.js → p-0676f65d.js} +1 -1
  6. package/dist/calcite/{p-c0af78dc.js → p-09af5ae9.js} +3 -3
  7. package/dist/calcite/{p-776fafb6.js → p-0cf12141.js} +2 -2
  8. package/dist/calcite/{p-3f7f7cce.js → p-0dcd2f47.js} +1 -1
  9. package/dist/calcite/{p-d15e6a92.entry.js → p-178d4b27.entry.js} +2 -2
  10. package/dist/calcite/{p-6cdc3489.entry.js → p-19fc09c3.entry.js} +2 -2
  11. package/dist/calcite/{p-3406f7c1.entry.js → p-1e8a46bc.entry.js} +2 -2
  12. package/dist/calcite/{p-6d661269.js → p-2048dbc4.js} +2 -2
  13. package/dist/calcite/{p-bdf8d76e.entry.js → p-221b0ca4.entry.js} +2 -2
  14. package/dist/calcite/{p-410c4772.entry.js → p-22de3df3.entry.js} +2 -2
  15. package/dist/calcite/{p-2997b10c.js → p-23b1fdd2.js} +2 -2
  16. package/dist/calcite/{p-824da334.entry.js → p-242778ff.entry.js} +2 -2
  17. package/dist/calcite/{p-8734ecd6.entry.js → p-2702bb4a.entry.js} +2 -2
  18. package/dist/calcite/{p-a28f983a.entry.js → p-28e680ce.entry.js} +2 -2
  19. package/dist/calcite/{p-df45bfef.js → p-2b011f25.js} +1 -1
  20. package/dist/calcite/{p-08356c15.js → p-2b89042d.js} +2 -2
  21. package/dist/calcite/p-2d9c3436.entry.js +6 -0
  22. package/dist/calcite/{p-2f90ba1a.entry.js → p-2f34ee4a.entry.js} +2 -2
  23. package/dist/calcite/{p-d0e18607.entry.js → p-36386dd3.entry.js} +2 -2
  24. package/dist/calcite/{p-23551e86.js → p-3a885fe7.js} +1 -1
  25. package/dist/calcite/{p-f0054f65.entry.js → p-3cc53e12.entry.js} +2 -2
  26. package/dist/calcite/{p-6b692774.entry.js → p-3d33d762.entry.js} +2 -2
  27. package/dist/calcite/{p-a0ad54ef.entry.js → p-484a2a05.entry.js} +2 -2
  28. package/dist/calcite/p-4ab5e5e0.entry.js +6 -0
  29. package/dist/calcite/p-503f6514.entry.js +6 -0
  30. package/dist/calcite/{p-65b6b8e2.entry.js → p-587dc4ca.entry.js} +2 -2
  31. package/dist/calcite/p-5b406c99.entry.js +6 -0
  32. package/dist/calcite/{p-70cd2e63.js → p-5d2f71b2.js} +2 -2
  33. package/dist/calcite/{p-5cc4f8ec.entry.js → p-60383a02.entry.js} +2 -2
  34. package/dist/calcite/{p-320c8770.js → p-60cb66b3.js} +1 -1
  35. package/dist/calcite/{p-e6cd6c44.js → p-63fce264.js} +1 -1
  36. package/dist/calcite/{p-5d3cbd71.entry.js → p-6e27210a.entry.js} +2 -2
  37. package/dist/calcite/{p-fb8d0259.js → p-6e33c506.js} +1 -1
  38. package/dist/calcite/{p-86e4551d.js → p-6e6a11a5.js} +2 -2
  39. package/dist/calcite/{p-a1f8ee99.js → p-6ea60e70.js} +1 -1
  40. package/dist/calcite/p-6ed575f1.entry.js +6 -0
  41. package/dist/calcite/{p-98f62757.entry.js → p-73844f36.entry.js} +2 -2
  42. package/dist/calcite/{p-00f81113.js → p-74703bf4.js} +1 -1
  43. package/dist/calcite/p-78260608.entry.js +6 -0
  44. package/dist/calcite/{p-bfeee6f9.entry.js → p-7849269e.entry.js} +2 -2
  45. package/dist/calcite/{p-1508b083.js → p-7a842c1c.js} +2 -2
  46. package/dist/calcite/{p-a32d7b56.js → p-7bcc4850.js} +1 -1
  47. package/dist/calcite/{p-81cd2ef1.entry.js → p-7d687d05.entry.js} +2 -2
  48. package/dist/calcite/p-820eb5b8.entry.js +6 -0
  49. package/dist/calcite/{p-5818d9f0.entry.js → p-89ee3bdd.entry.js} +2 -2
  50. package/dist/calcite/{p-ad9c66bf.entry.js → p-8ad338be.entry.js} +2 -2
  51. package/dist/calcite/p-8b580c72.entry.js +6 -0
  52. package/dist/calcite/p-8b996b2e.js +6 -0
  53. package/dist/calcite/{p-e1c494d2.js → p-8c4d81ce.js} +1 -1
  54. package/dist/calcite/{p-2048f5f4.entry.js → p-8e381147.entry.js} +2 -2
  55. package/dist/calcite/{p-932ac6c6.entry.js → p-8f2fa63c.entry.js} +2 -2
  56. package/dist/calcite/{p-2a572f44.entry.js → p-91b2f898.entry.js} +2 -2
  57. package/dist/calcite/{p-99e339dd.js → p-95208481.js} +1 -1
  58. package/dist/calcite/{p-db433016.entry.js → p-9708a54c.entry.js} +2 -2
  59. package/dist/calcite/p-9b271c96.js +6 -0
  60. package/dist/calcite/{p-924c7698.entry.js → p-9b55ad14.entry.js} +2 -2
  61. package/dist/calcite/{p-14f8d56b.js → p-9e0b440b.js} +1 -1
  62. package/dist/calcite/{p-e62b0c2a.entry.js → p-9e907f71.entry.js} +2 -2
  63. package/dist/calcite/{p-f4689d82.js → p-a1ff96f3.js} +1 -1
  64. package/dist/calcite/{p-8d43975c.entry.js → p-a25a28c7.entry.js} +2 -2
  65. package/dist/calcite/{p-bdd11a4a.entry.js → p-aca55f61.entry.js} +2 -2
  66. package/dist/calcite/{p-33666a63.entry.js → p-ae475fe4.entry.js} +2 -2
  67. package/dist/calcite/{p-f61f936a.js → p-b06834fd.js} +1 -1
  68. package/dist/calcite/{p-88292a27.entry.js → p-b67cd404.entry.js} +2 -2
  69. package/dist/calcite/{p-546b8d7c.entry.js → p-b67e5e4d.entry.js} +2 -2
  70. package/dist/calcite/p-b8179426.entry.js +6 -0
  71. package/dist/calcite/{p-e1fa48e6.entry.js → p-bb46d7f9.entry.js} +2 -2
  72. package/dist/calcite/{p-26aefa93.entry.js → p-c1e325b6.entry.js} +2 -2
  73. package/dist/calcite/{p-e35f5811.entry.js → p-c226c5ed.entry.js} +2 -2
  74. package/dist/calcite/{p-6fc7aabd.js → p-c27a9a3b.js} +2 -2
  75. package/dist/calcite/p-c37592ed.entry.js +6 -0
  76. package/dist/calcite/{p-373f77d1.entry.js → p-c570c8c1.entry.js} +2 -2
  77. package/dist/calcite/{p-e673032f.js → p-c73a15d7.js} +3 -3
  78. package/dist/calcite/p-c7f95e4a.js +6 -0
  79. package/dist/calcite/p-ce1ba9c7.js +6 -0
  80. package/dist/calcite/{p-67141cc2.entry.js → p-d1b8ed3e.entry.js} +2 -2
  81. package/dist/calcite/{p-0f92442e.entry.js → p-d38f93a8.entry.js} +2 -2
  82. package/dist/calcite/{p-6169bb3a.entry.js → p-d56ca16f.entry.js} +2 -2
  83. package/dist/calcite/{p-b4d3021c.entry.js → p-d6997053.entry.js} +2 -2
  84. package/dist/calcite/{p-14b2465e.entry.js → p-dcea8c60.entry.js} +2 -2
  85. package/dist/calcite/{p-42967353.js → p-e3370b1d.js} +2 -2
  86. package/dist/calcite/{p-bd28cc44.js → p-e59bdff5.js} +2 -2
  87. package/dist/calcite/{p-fd7dbc37.entry.js → p-ea0da711.entry.js} +2 -2
  88. package/dist/calcite/{p-8dd157a7.entry.js → p-ec0a1224.entry.js} +2 -2
  89. package/dist/calcite/{p-0da18018.js → p-ee6cc5d2.js} +1 -1
  90. package/dist/calcite/{p-087353ea.js → p-efa904af.js} +1 -1
  91. package/dist/calcite/{p-454f8ba2.entry.js → p-f5b6322c.entry.js} +2 -2
  92. package/dist/calcite/{p-314212e0.entry.js → p-f5d49a55.entry.js} +2 -2
  93. package/dist/calcite/{p-a90df436.entry.js → p-f688698a.entry.js} +2 -2
  94. package/dist/calcite/{p-0dc872de.entry.js → p-fb81bcbc.entry.js} +2 -2
  95. package/dist/calcite/{p-e9e1190b.entry.js → p-fd704fa6.entry.js} +2 -2
  96. package/dist/calcite/{p-98e4b28f.entry.js → p-fe524be6.entry.js} +2 -2
  97. package/dist/calcite/{p-f6768944.entry.js → p-feccd73b.entry.js} +2 -2
  98. package/dist/cjs/{ExpandToggle-2700f7b5.js → ExpandToggle-2b7d3196.js} +5 -5
  99. package/dist/cjs/{Heading-c611c426.js → Heading-6bb5aa6b.js} +2 -2
  100. package/dist/cjs/{app-globals-5354cc6f.js → app-globals-efbd9a46.js} +2 -2
  101. package/dist/cjs/{array-bd04194e.js → array-9071d00a.js} +1 -1
  102. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  103. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  104. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  105. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  106. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  107. package/dist/cjs/calcite-action.cjs.entry.js +11 -11
  108. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  109. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  110. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
  111. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  112. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  113. package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
  114. package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
  115. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -15
  116. package/dist/cjs/calcite-combobox_3.cjs.entry.js +20 -23
  117. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
  118. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -18
  119. package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
  120. package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
  121. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
  122. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  123. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
  124. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  125. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  126. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
  127. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -22
  128. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  129. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  130. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  131. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -13
  132. package/dist/cjs/calcite-input.cjs.entry.js +13 -13
  133. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  134. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  135. package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
  136. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  137. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  138. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  139. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
  140. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  141. package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
  142. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
  143. package/dist/cjs/calcite-popover.cjs.entry.js +15 -18
  144. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  145. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  146. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  147. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  148. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  149. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
  150. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  151. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  152. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  153. package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
  154. package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
  155. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  156. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
  157. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +9 -13
  158. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  159. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  160. package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -11
  161. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
  162. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
  163. package/dist/cjs/calcite.cjs.js +4 -4
  164. package/dist/cjs/{composed-offset-position.esm-3b37635f.js → composed-offset-position.esm-cdda4333.js} +1 -1
  165. package/dist/cjs/{conditionalSlot-b5edf919.js → conditionalSlot-90d6bd74.js} +3 -3
  166. package/dist/cjs/{debounce-3a4166a0.js → debounce-d7763e50.js} +1 -1
  167. package/dist/cjs/{dom-c3099ebd.js → dom-3e382558.js} +3 -3
  168. package/dist/cjs/{filter-d064fe50.js → filter-2e29c38f.js} +2 -2
  169. package/dist/cjs/{floating-ui-03c8d3a6.js → floating-ui-6ed05010.js} +8 -49
  170. package/dist/cjs/{focusTrapComponent-9b8f50e0.js → focusTrapComponent-ae2b30cd.js} +2 -2
  171. package/dist/cjs/{form-8207bcb1.js → form-17a42e68.js} +3 -3
  172. package/dist/cjs/{guid-3b5ea58d.js → guid-9f03de64.js} +1 -1
  173. package/dist/cjs/{index-1fac4546.js → index-0c25a78a.js} +1 -1
  174. package/dist/cjs/index.cjs.js +2 -2
  175. package/dist/cjs/{interactive-ce81f0db.js → interactive-b63c92c9.js} +1 -1
  176. package/dist/cjs/{key-ca7de978.js → key-5d919370.js} +1 -1
  177. package/dist/cjs/{label-ae38ffa4.js → label-b54c25b6.js} +2 -2
  178. package/dist/cjs/{loadable-024f3df3.js → loadable-ba0e98eb.js} +1 -1
  179. package/dist/cjs/loader.cjs.js +4 -4
  180. package/dist/cjs/{locale-74c607c9.js → locale-15a1f453.js} +5 -4
  181. package/dist/cjs/{math-4f7ac68f.js → math-8c7a6ad0.js} +1 -1
  182. package/dist/cjs/{observers-28d889d7.js → observers-30d3acec.js} +1 -1
  183. package/dist/cjs/{openCloseComponent-09fd32b7.js → openCloseComponent-1dfd39d7.js} +2 -2
  184. package/dist/cjs/{resources-f91f1111.js → resources-106354be.js} +5 -5
  185. package/dist/cjs/{resources-cf6ac069.js → resources-1568dbbd.js} +1 -1
  186. package/dist/cjs/{resources-4fe7a38b.js → resources-718e338e.js} +1 -1
  187. package/dist/cjs/{resources-1ce97cca.js → resources-8433506d.js} +1 -1
  188. package/dist/cjs/{resources-d73f1a7b.js → resources-898eda19.js} +1 -1
  189. package/dist/cjs/{resources-85cc0480.js → resources-e0a6aecc.js} +1 -1
  190. package/dist/cjs/{sortable.esm-3d71a093.js → sortable.esm-12739f4f.js} +1 -1
  191. package/dist/cjs/{t9n-dabb60e9.js → t9n-430aaea6.js} +3 -3
  192. package/dist/cjs/{throttle-e8b54e0a.js → throttle-c2880ab2.js} +2 -2
  193. package/dist/cjs/{utils-61c9b6d4.js → utils-6f4230d1.js} +3 -3
  194. package/dist/cjs/{utils-d13193ec.js → utils-78cb8197.js} +1 -1
  195. package/dist/collection/components/accordion/accordion.js +1 -1
  196. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  197. package/dist/collection/components/accordion-item/resources.js +1 -1
  198. package/dist/collection/components/action/action.js +1 -1
  199. package/dist/collection/components/action/resources.js +1 -1
  200. package/dist/collection/components/action-bar/action-bar.js +1 -1
  201. package/dist/collection/components/action-bar/resources.js +1 -1
  202. package/dist/collection/components/action-bar/utils.js +1 -1
  203. package/dist/collection/components/action-group/action-group.js +1 -1
  204. package/dist/collection/components/action-group/resources.js +1 -1
  205. package/dist/collection/components/action-menu/action-menu.js +1 -1
  206. package/dist/collection/components/action-menu/resources.js +1 -1
  207. package/dist/collection/components/action-pad/action-pad.js +1 -1
  208. package/dist/collection/components/action-pad/resources.js +1 -1
  209. package/dist/collection/components/alert/alert.js +1 -1
  210. package/dist/collection/components/alert/resources.js +1 -1
  211. package/dist/collection/components/avatar/avatar.js +1 -1
  212. package/dist/collection/components/avatar/utils.js +1 -1
  213. package/dist/collection/components/block/block.js +1 -1
  214. package/dist/collection/components/block/resources.js +1 -1
  215. package/dist/collection/components/block-section/block-section.js +1 -1
  216. package/dist/collection/components/block-section/resources.js +1 -1
  217. package/dist/collection/components/button/button.js +1 -1
  218. package/dist/collection/components/button/resources.js +1 -1
  219. package/dist/collection/components/card/card.js +1 -1
  220. package/dist/collection/components/card/resources.js +1 -1
  221. package/dist/collection/components/checkbox/checkbox.js +1 -1
  222. package/dist/collection/components/chip/chip.js +1 -1
  223. package/dist/collection/components/chip/resources.js +1 -1
  224. package/dist/collection/components/color-picker/color-picker.js +1 -1
  225. package/dist/collection/components/color-picker/resources.js +1 -1
  226. package/dist/collection/components/color-picker/utils.js +1 -1
  227. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  228. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  229. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  230. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  231. package/dist/collection/components/combobox/combobox.js +4 -7
  232. package/dist/collection/components/combobox/resources.js +1 -1
  233. package/dist/collection/components/combobox/utils.js +1 -1
  234. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  235. package/dist/collection/components/combobox-item/resources.js +1 -1
  236. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  237. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  238. package/dist/collection/components/date-picker/assets/date-picker/nls/de-AT.json +32 -0
  239. package/dist/collection/components/date-picker/date-picker.js +1 -1
  240. package/dist/collection/components/date-picker/resources.js +1 -1
  241. package/dist/collection/components/date-picker/utils.js +1 -1
  242. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  243. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  244. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  245. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  246. package/dist/collection/components/dropdown/dropdown.js +2 -8
  247. package/dist/collection/components/dropdown/resources.js +1 -1
  248. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  249. package/dist/collection/components/dropdown-group/resources.js +1 -1
  250. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  251. package/dist/collection/components/dropdown-item/resources.js +1 -1
  252. package/dist/collection/components/fab/fab.js +1 -1
  253. package/dist/collection/components/fab/resources.js +1 -1
  254. package/dist/collection/components/filter/filter.js +1 -1
  255. package/dist/collection/components/filter/resources.js +1 -1
  256. package/dist/collection/components/flow/flow.js +1 -1
  257. package/dist/collection/components/flow/resources.js +1 -1
  258. package/dist/collection/components/flow-item/flow-item.js +1 -1
  259. package/dist/collection/components/flow-item/resources.js +1 -1
  260. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  261. package/dist/collection/components/functional/Heading.js +1 -1
  262. package/dist/collection/components/graph/graph.js +1 -1
  263. package/dist/collection/components/graph/util.js +1 -1
  264. package/dist/collection/components/handle/handle.js +1 -1
  265. package/dist/collection/components/handle/resources.js +1 -1
  266. package/dist/collection/components/icon/icon.js +1 -1
  267. package/dist/collection/components/icon/resources.js +1 -1
  268. package/dist/collection/components/icon/utils.js +1 -1
  269. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  270. package/dist/collection/components/inline-editable/resources.js +1 -1
  271. package/dist/collection/components/input/input.js +1 -1
  272. package/dist/collection/components/input/resources.js +1 -1
  273. package/dist/collection/components/input-date-picker/input-date-picker.js +2 -8
  274. package/dist/collection/components/input-date-picker/resources.js +1 -1
  275. package/dist/collection/components/input-message/input-message.js +1 -1
  276. package/dist/collection/components/input-message/interfaces.js +1 -1
  277. package/dist/collection/components/input-number/input-number.js +1 -1
  278. package/dist/collection/components/input-number/resources.js +1 -1
  279. package/dist/collection/components/input-text/input-text.js +1 -1
  280. package/dist/collection/components/input-text/resources.js +1 -1
  281. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  282. package/dist/collection/components/label/label.js +1 -1
  283. package/dist/collection/components/label/resources.js +1 -1
  284. package/dist/collection/components/link/link.js +1 -1
  285. package/dist/collection/components/list/list.js +1 -1
  286. package/dist/collection/components/list/resources.js +1 -1
  287. package/dist/collection/components/list-item/list-item.js +1 -1
  288. package/dist/collection/components/list-item/resources.js +1 -1
  289. package/dist/collection/components/list-item/utils.js +1 -1
  290. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  291. package/dist/collection/components/list-item-group/resources.js +1 -1
  292. package/dist/collection/components/loader/loader.js +1 -1
  293. package/dist/collection/components/modal/modal.js +1 -1
  294. package/dist/collection/components/modal/resources.js +1 -1
  295. package/dist/collection/components/notice/notice.js +1 -1
  296. package/dist/collection/components/notice/resources.js +1 -1
  297. package/dist/collection/components/option/option.js +1 -1
  298. package/dist/collection/components/option-group/option-group.js +1 -1
  299. package/dist/collection/components/pagination/pagination.js +1 -1
  300. package/dist/collection/components/pagination/resources.js +1 -1
  301. package/dist/collection/components/panel/panel.js +1 -1
  302. package/dist/collection/components/panel/resources.js +1 -1
  303. package/dist/collection/components/pick-list/pick-list.js +1 -1
  304. package/dist/collection/components/pick-list/resources.js +1 -1
  305. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  306. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  307. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  308. package/dist/collection/components/pick-list-group/resources.js +1 -1
  309. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  310. package/dist/collection/components/pick-list-item/resources.js +1 -1
  311. package/dist/collection/components/popover/PopoverManager.js +1 -1
  312. package/dist/collection/components/popover/popover.js +2 -5
  313. package/dist/collection/components/popover/resources.js +1 -1
  314. package/dist/collection/components/progress/progress.js +1 -1
  315. package/dist/collection/components/radio-button/radio-button.js +1 -1
  316. package/dist/collection/components/radio-button/resources.js +1 -1
  317. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  318. package/dist/collection/components/rating/function/star.js +1 -1
  319. package/dist/collection/components/rating/rating.js +1 -1
  320. package/dist/collection/components/resources.js +1 -1
  321. package/dist/collection/components/scrim/resources.js +1 -1
  322. package/dist/collection/components/scrim/scrim.js +1 -1
  323. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  324. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  325. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  326. package/dist/collection/components/select/resources.js +1 -1
  327. package/dist/collection/components/select/select.js +1 -1
  328. package/dist/collection/components/shell/resources.js +1 -1
  329. package/dist/collection/components/shell/shell.js +1 -1
  330. package/dist/collection/components/shell-center-row/resources.js +1 -1
  331. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  332. package/dist/collection/components/shell-panel/resources.js +1 -1
  333. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  334. package/dist/collection/components/slider/resources.js +1 -1
  335. package/dist/collection/components/slider/slider.js +1 -1
  336. package/dist/collection/components/sortable-list/resources.js +1 -1
  337. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  338. package/dist/collection/components/split-button/resources.js +1 -1
  339. package/dist/collection/components/split-button/split-button.js +1 -1
  340. package/dist/collection/components/stepper/stepper.js +1 -1
  341. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  342. package/dist/collection/components/switch/switch.js +1 -1
  343. package/dist/collection/components/tab/tab.js +1 -1
  344. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  345. package/dist/collection/components/tab-title/resources.js +1 -1
  346. package/dist/collection/components/tab-title/tab-title.js +1 -1
  347. package/dist/collection/components/tabs/resources.js +1 -1
  348. package/dist/collection/components/tabs/tabs.js +1 -1
  349. package/dist/collection/components/text-area/resources.js +1 -1
  350. package/dist/collection/components/text-area/text-area.js +1 -1
  351. package/dist/collection/components/tile/resources.js +1 -1
  352. package/dist/collection/components/tile/tile.js +1 -1
  353. package/dist/collection/components/tile-select/resources.js +1 -1
  354. package/dist/collection/components/tile-select/tile-select.js +5 -9
  355. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  356. package/dist/collection/components/time-picker/resources.js +1 -1
  357. package/dist/collection/components/time-picker/time-picker.js +1 -1
  358. package/dist/collection/components/tip/resources.js +1 -1
  359. package/dist/collection/components/tip/tip.js +1 -1
  360. package/dist/collection/components/tip-group/tip-group.js +1 -1
  361. package/dist/collection/components/tip-manager/resources.js +1 -1
  362. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  363. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  364. package/dist/collection/components/tooltip/resources.js +1 -1
  365. package/dist/collection/components/tooltip/tooltip.js +2 -5
  366. package/dist/collection/components/tooltip/utils.js +1 -1
  367. package/dist/collection/components/tree/tree.js +1 -1
  368. package/dist/collection/components/tree/utils.js +1 -1
  369. package/dist/collection/components/tree-item/resources.js +1 -1
  370. package/dist/collection/components/tree-item/tree-item.js +1 -1
  371. package/dist/collection/components/value-list/resources.js +1 -1
  372. package/dist/collection/components/value-list/utils.js +1 -1
  373. package/dist/collection/components/value-list/value-list.js +1 -1
  374. package/dist/collection/components/value-list-item/resources.js +1 -1
  375. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  376. package/dist/collection/index.js +1 -1
  377. package/dist/collection/utils/array.js +1 -1
  378. package/dist/collection/utils/conditionalSlot.js +1 -1
  379. package/dist/collection/utils/config.js +1 -1
  380. package/dist/collection/utils/date.js +1 -1
  381. package/dist/collection/utils/dom.js +1 -1
  382. package/dist/collection/utils/filter.js +1 -1
  383. package/dist/collection/utils/floating-ui.js +6 -46
  384. package/dist/collection/utils/focusTrapComponent.js +1 -1
  385. package/dist/collection/utils/form.js +1 -1
  386. package/dist/collection/utils/globalAttributes.js +1 -1
  387. package/dist/collection/utils/globalScript.js +1 -1
  388. package/dist/collection/utils/guid.js +1 -1
  389. package/dist/collection/utils/interactive.js +1 -1
  390. package/dist/collection/utils/key.js +1 -1
  391. package/dist/collection/utils/label.js +1 -1
  392. package/dist/collection/utils/loadable.js +1 -1
  393. package/dist/collection/utils/locale.js +2 -1
  394. package/dist/collection/utils/math.js +1 -1
  395. package/dist/collection/utils/mode.js +1 -1
  396. package/dist/collection/utils/number.js +1 -1
  397. package/dist/collection/utils/observers.js +1 -1
  398. package/dist/collection/utils/openCloseComponent.js +1 -1
  399. package/dist/collection/utils/resources.js +1 -1
  400. package/dist/collection/utils/t9n.js +1 -1
  401. package/dist/collection/utils/time.js +1 -1
  402. package/dist/components/ExpandToggle.js +1 -1
  403. package/dist/components/Heading.js +1 -1
  404. package/dist/components/action-group.js +1 -1
  405. package/dist/components/action-menu.js +1 -1
  406. package/dist/components/action.js +1 -1
  407. package/dist/components/array.js +1 -1
  408. package/dist/components/button.js +1 -1
  409. package/dist/components/calcite-accordion-item.js +1 -1
  410. package/dist/components/calcite-accordion.js +1 -1
  411. package/dist/components/calcite-action-bar.js +1 -1
  412. package/dist/components/calcite-action-group.js +1 -1
  413. package/dist/components/calcite-action-menu.js +1 -1
  414. package/dist/components/calcite-action-pad.js +1 -1
  415. package/dist/components/calcite-action.js +1 -1
  416. package/dist/components/calcite-alert.js +1 -1
  417. package/dist/components/calcite-avatar.js +1 -1
  418. package/dist/components/calcite-block-section.js +1 -1
  419. package/dist/components/calcite-block.js +1 -1
  420. package/dist/components/calcite-button.js +1 -1
  421. package/dist/components/calcite-card.js +1 -1
  422. package/dist/components/calcite-checkbox.js +1 -1
  423. package/dist/components/calcite-chip.js +1 -1
  424. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  425. package/dist/components/calcite-color-picker-swatch.js +1 -1
  426. package/dist/components/calcite-color-picker.js +1 -1
  427. package/dist/components/calcite-combobox-item-group.js +1 -1
  428. package/dist/components/calcite-combobox-item.js +1 -1
  429. package/dist/components/calcite-combobox.js +4 -7
  430. package/dist/components/calcite-date-picker-day.js +1 -1
  431. package/dist/components/calcite-date-picker-month-header.js +1 -1
  432. package/dist/components/calcite-date-picker-month.js +1 -1
  433. package/dist/components/calcite-date-picker.js +1 -1
  434. package/dist/components/calcite-dropdown-group.js +1 -1
  435. package/dist/components/calcite-dropdown-item.js +1 -1
  436. package/dist/components/calcite-dropdown.js +1 -1
  437. package/dist/components/calcite-fab.js +1 -1
  438. package/dist/components/calcite-filter.js +1 -1
  439. package/dist/components/calcite-flow-item.js +1 -1
  440. package/dist/components/calcite-flow.js +1 -1
  441. package/dist/components/calcite-graph.js +1 -1
  442. package/dist/components/calcite-handle.js +1 -1
  443. package/dist/components/calcite-icon.js +1 -1
  444. package/dist/components/calcite-inline-editable.js +1 -1
  445. package/dist/components/calcite-input-date-picker.js +2 -8
  446. package/dist/components/calcite-input-message.js +1 -1
  447. package/dist/components/calcite-input-number.js +1 -1
  448. package/dist/components/calcite-input-text.js +1 -1
  449. package/dist/components/calcite-input-time-picker.js +1 -1
  450. package/dist/components/calcite-input.js +1 -1
  451. package/dist/components/calcite-label.js +1 -1
  452. package/dist/components/calcite-link.js +1 -1
  453. package/dist/components/calcite-list-item-group.js +1 -1
  454. package/dist/components/calcite-list-item.js +1 -1
  455. package/dist/components/calcite-list.js +1 -1
  456. package/dist/components/calcite-loader.js +1 -1
  457. package/dist/components/calcite-modal.js +1 -1
  458. package/dist/components/calcite-notice.js +1 -1
  459. package/dist/components/calcite-option-group.js +1 -1
  460. package/dist/components/calcite-option.js +1 -1
  461. package/dist/components/calcite-pagination.js +1 -1
  462. package/dist/components/calcite-panel.js +1 -1
  463. package/dist/components/calcite-pick-list-group.js +1 -1
  464. package/dist/components/calcite-pick-list-item.js +1 -1
  465. package/dist/components/calcite-pick-list.js +1 -1
  466. package/dist/components/calcite-popover.js +1 -1
  467. package/dist/components/calcite-progress.js +1 -1
  468. package/dist/components/calcite-radio-button-group.js +1 -1
  469. package/dist/components/calcite-radio-button.js +1 -1
  470. package/dist/components/calcite-rating.js +1 -1
  471. package/dist/components/calcite-scrim.js +1 -1
  472. package/dist/components/calcite-segmented-control-item.js +1 -1
  473. package/dist/components/calcite-segmented-control.js +1 -1
  474. package/dist/components/calcite-select.js +1 -1
  475. package/dist/components/calcite-shell-center-row.js +1 -1
  476. package/dist/components/calcite-shell-panel.js +1 -1
  477. package/dist/components/calcite-shell.js +1 -1
  478. package/dist/components/calcite-slider.js +1 -1
  479. package/dist/components/calcite-sortable-list.js +1 -1
  480. package/dist/components/calcite-split-button.js +1 -1
  481. package/dist/components/calcite-stepper-item.js +1 -1
  482. package/dist/components/calcite-stepper.js +1 -1
  483. package/dist/components/calcite-switch.js +1 -1
  484. package/dist/components/calcite-tab-nav.js +1 -1
  485. package/dist/components/calcite-tab-title.js +1 -1
  486. package/dist/components/calcite-tab.js +1 -1
  487. package/dist/components/calcite-tabs.js +1 -1
  488. package/dist/components/calcite-text-area.js +1 -1
  489. package/dist/components/calcite-tile-select-group.js +1 -1
  490. package/dist/components/calcite-tile-select.js +5 -9
  491. package/dist/components/calcite-tile.js +1 -1
  492. package/dist/components/calcite-time-picker.js +1 -1
  493. package/dist/components/calcite-tip-group.js +1 -1
  494. package/dist/components/calcite-tip-manager.js +1 -1
  495. package/dist/components/calcite-tip.js +1 -1
  496. package/dist/components/calcite-tooltip.js +1 -1
  497. package/dist/components/calcite-tree-item.js +1 -1
  498. package/dist/components/calcite-tree.js +1 -1
  499. package/dist/components/calcite-value-list-item.js +1 -1
  500. package/dist/components/calcite-value-list.js +1 -1
  501. package/dist/components/checkbox.js +1 -1
  502. package/dist/components/chip.js +1 -1
  503. package/dist/components/color-picker-hex-input.js +1 -1
  504. package/dist/components/color-picker-swatch.js +1 -1
  505. package/dist/components/composed-offset-position.esm.js +1 -1
  506. package/dist/components/conditionalSlot.js +1 -1
  507. package/dist/components/date-picker-day.js +1 -1
  508. package/dist/components/date-picker-month-header.js +1 -1
  509. package/dist/components/date-picker-month.js +1 -1
  510. package/dist/components/date-picker.js +1 -1
  511. package/dist/components/date.js +1 -1
  512. package/dist/components/debounce.js +1 -1
  513. package/dist/components/dom.js +1 -1
  514. package/dist/components/dropdown.js +2 -8
  515. package/dist/components/filter.js +1 -1
  516. package/dist/components/filter2.js +1 -1
  517. package/dist/components/floating-ui.js +7 -47
  518. package/dist/components/focusTrapComponent.js +1 -1
  519. package/dist/components/form.js +1 -1
  520. package/dist/components/graph.js +1 -1
  521. package/dist/components/guid.js +1 -1
  522. package/dist/components/handle.js +1 -1
  523. package/dist/components/icon.js +1 -1
  524. package/dist/components/index.js +1 -1
  525. package/dist/components/input.js +1 -1
  526. package/dist/components/interactive.js +1 -1
  527. package/dist/components/key.js +1 -1
  528. package/dist/components/label.js +1 -1
  529. package/dist/components/label2.js +1 -1
  530. package/dist/components/link.js +1 -1
  531. package/dist/components/loadable.js +1 -1
  532. package/dist/components/loader.js +1 -1
  533. package/dist/components/locale.js +2 -1
  534. package/dist/components/math.js +1 -1
  535. package/dist/components/observers.js +1 -1
  536. package/dist/components/openCloseComponent.js +1 -1
  537. package/dist/components/panel.js +1 -1
  538. package/dist/components/pick-list-item.js +1 -1
  539. package/dist/components/popover.js +2 -5
  540. package/dist/components/progress.js +1 -1
  541. package/dist/components/resources.js +1 -1
  542. package/dist/components/resources2.js +1 -1
  543. package/dist/components/resources3.js +1 -1
  544. package/dist/components/scrim.js +1 -1
  545. package/dist/components/shared-list-render.js +1 -1
  546. package/dist/components/sortable.esm.js +1 -1
  547. package/dist/components/switch.js +1 -1
  548. package/dist/components/t9n.js +1 -1
  549. package/dist/components/tab-nav.js +1 -1
  550. package/dist/components/tab-title.js +1 -1
  551. package/dist/components/tab.js +1 -1
  552. package/dist/components/tabs.js +1 -1
  553. package/dist/components/throttle.js +1 -1
  554. package/dist/components/tile.js +1 -1
  555. package/dist/components/time-picker.js +1 -1
  556. package/dist/components/tooltip.js +2 -5
  557. package/dist/components/utils.js +1 -1
  558. package/dist/components/utils2.js +1 -1
  559. package/dist/components/utils3.js +1 -1
  560. package/dist/esm/{ExpandToggle-7197a522.js → ExpandToggle-f976053d.js} +5 -5
  561. package/dist/esm/{Heading-7c309215.js → Heading-6cc4c1e5.js} +2 -2
  562. package/dist/esm/{app-globals-0acbda05.js → app-globals-d9bb2566.js} +2 -2
  563. package/dist/esm/{array-867a105a.js → array-23ec01f6.js} +1 -1
  564. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  565. package/dist/esm/calcite-action-bar.entry.js +15 -15
  566. package/dist/esm/calcite-action-group.entry.js +13 -13
  567. package/dist/esm/calcite-action-menu.entry.js +9 -9
  568. package/dist/esm/calcite-action-pad.entry.js +14 -14
  569. package/dist/esm/calcite-action.entry.js +11 -11
  570. package/dist/esm/calcite-alert.entry.js +12 -12
  571. package/dist/esm/calcite-avatar.entry.js +6 -6
  572. package/dist/esm/calcite-block_2.entry.js +12 -12
  573. package/dist/esm/calcite-button.entry.js +13 -13
  574. package/dist/esm/calcite-card.entry.js +10 -10
  575. package/dist/esm/calcite-checkbox.entry.js +10 -10
  576. package/dist/esm/calcite-chip.entry.js +11 -11
  577. package/dist/esm/calcite-color-picker_3.entry.js +15 -15
  578. package/dist/esm/calcite-combobox_3.entry.js +20 -23
  579. package/dist/esm/calcite-date-picker_4.entry.js +13 -13
  580. package/dist/esm/calcite-dropdown_3.entry.js +12 -18
  581. package/dist/esm/calcite-fab.entry.js +7 -7
  582. package/dist/esm/calcite-filter.entry.js +13 -13
  583. package/dist/esm/calcite-flow-item.entry.js +12 -12
  584. package/dist/esm/calcite-flow.entry.js +3 -3
  585. package/dist/esm/calcite-graph_2.entry.js +13 -13
  586. package/dist/esm/calcite-handle.entry.js +10 -10
  587. package/dist/esm/calcite-icon.entry.js +6 -6
  588. package/dist/esm/calcite-inline-editable.entry.js +12 -12
  589. package/dist/esm/calcite-input-date-picker.entry.js +16 -22
  590. package/dist/esm/calcite-input-message.entry.js +5 -5
  591. package/dist/esm/calcite-input-number.entry.js +13 -13
  592. package/dist/esm/calcite-input-text.entry.js +13 -13
  593. package/dist/esm/calcite-input-time-picker_2.entry.js +13 -13
  594. package/dist/esm/calcite-input.entry.js +13 -13
  595. package/dist/esm/calcite-label.entry.js +6 -6
  596. package/dist/esm/calcite-link.entry.js +7 -7
  597. package/dist/esm/calcite-list_3.entry.js +9 -9
  598. package/dist/esm/calcite-loader.entry.js +3 -3
  599. package/dist/esm/calcite-modal.entry.js +13 -13
  600. package/dist/esm/calcite-notice.entry.js +12 -12
  601. package/dist/esm/calcite-option_3.entry.js +10 -10
  602. package/dist/esm/calcite-pagination.entry.js +10 -10
  603. package/dist/esm/calcite-panel.entry.js +14 -14
  604. package/dist/esm/calcite-pick-list_3.entry.js +16 -16
  605. package/dist/esm/calcite-popover.entry.js +15 -18
  606. package/dist/esm/calcite-progress.entry.js +2 -2
  607. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  608. package/dist/esm/calcite-radio-button.entry.js +10 -10
  609. package/dist/esm/calcite-rating.entry.js +13 -13
  610. package/dist/esm/calcite-scrim.entry.js +9 -9
  611. package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
  612. package/dist/esm/calcite-shell_3.entry.js +11 -11
  613. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  614. package/dist/esm/calcite-split-button.entry.js +4 -4
  615. package/dist/esm/calcite-stepper_2.entry.js +10 -10
  616. package/dist/esm/calcite-switch.entry.js +10 -10
  617. package/dist/esm/calcite-tab_4.entry.js +7 -7
  618. package/dist/esm/calcite-text-area.entry.js +15 -15
  619. package/dist/esm/calcite-tile-select_2.entry.js +9 -13
  620. package/dist/esm/calcite-tile.entry.js +8 -8
  621. package/dist/esm/calcite-tip_3.entry.js +11 -11
  622. package/dist/esm/calcite-tooltip.entry.js +8 -11
  623. package/dist/esm/calcite-tree_2.entry.js +9 -9
  624. package/dist/esm/calcite-value-list_2.entry.js +16 -16
  625. package/dist/esm/calcite.js +5 -5
  626. package/dist/esm/{composed-offset-position.esm-baeaa0df.js → composed-offset-position.esm-5d61598c.js} +1 -1
  627. package/dist/esm/{conditionalSlot-e30bdf0c.js → conditionalSlot-184b42f5.js} +3 -3
  628. package/dist/esm/{debounce-5fb1a0ae.js → debounce-6926631f.js} +1 -1
  629. package/dist/esm/{dom-620d6b46.js → dom-70757e0c.js} +3 -3
  630. package/dist/esm/{filter-ce77a4e4.js → filter-98f299a9.js} +2 -2
  631. package/dist/esm/{floating-ui-319ed5e4.js → floating-ui-e9a5effe.js} +9 -49
  632. package/dist/esm/{focusTrapComponent-83c06a2c.js → focusTrapComponent-64358a63.js} +2 -2
  633. package/dist/esm/{form-64445850.js → form-b3bf3b92.js} +3 -3
  634. package/dist/esm/{guid-8a110996.js → guid-9e6cd0b0.js} +1 -1
  635. package/dist/esm/{index-385fb006.js → index-a82533d1.js} +1 -1
  636. package/dist/esm/index.js +2 -2
  637. package/dist/esm/{interactive-538ec824.js → interactive-ce7fa759.js} +1 -1
  638. package/dist/esm/{key-4d29e56b.js → key-bb776dd8.js} +1 -1
  639. package/dist/esm/{label-7a49f88b.js → label-836e1eee.js} +2 -2
  640. package/dist/esm/{loadable-d37c46d7.js → loadable-062352c9.js} +1 -1
  641. package/dist/esm/loader.js +5 -5
  642. package/dist/esm/{locale-61b9f0ef.js → locale-ac5b8120.js} +5 -4
  643. package/dist/esm/{math-1d4abede.js → math-3383df7f.js} +1 -1
  644. package/dist/esm/{observers-6383bc12.js → observers-5ffe7fc8.js} +1 -1
  645. package/dist/esm/{openCloseComponent-cbc0d616.js → openCloseComponent-8b0f2d5a.js} +2 -2
  646. package/dist/esm/{resources-2902159c.js → resources-17610c31.js} +1 -1
  647. package/dist/esm/{resources-9bac21e5.js → resources-5e666259.js} +1 -1
  648. package/dist/esm/{resources-3a47b8ec.js → resources-66a7968c.js} +1 -1
  649. package/dist/esm/{resources-abe8d5e1.js → resources-78fbd7ad.js} +1 -1
  650. package/dist/esm/{resources-c3b819f1.js → resources-bc93ce67.js} +5 -5
  651. package/dist/esm/{resources-e8a25f9f.js → resources-c272deb0.js} +1 -1
  652. package/dist/esm/{sortable.esm-1a2bc3ca.js → sortable.esm-e295f0f5.js} +1 -1
  653. package/dist/esm/{t9n-fcf2df27.js → t9n-c33212fc.js} +3 -3
  654. package/dist/esm/{throttle-283e4a66.js → throttle-30465dc5.js} +2 -2
  655. package/dist/esm/{utils-48097228.js → utils-1d047160.js} +1 -1
  656. package/dist/esm/{utils-a3c72413.js → utils-5faaba8c.js} +3 -3
  657. package/dist/extras/docs-json.json +2 -2
  658. package/dist/loader/cdn.js +1 -1
  659. package/dist/loader/index.cjs.js +1 -1
  660. package/dist/loader/index.es2017.js +1 -1
  661. package/dist/loader/index.js +1 -1
  662. package/dist/types/components/combobox/combobox.d.ts +1 -1
  663. package/dist/types/utils/floating-ui.d.ts +0 -8
  664. package/hydrate/index.js +12 -76
  665. package/package.json +1 -1
  666. package/dist/calcite/p-36c21849.entry.js +0 -6
  667. package/dist/calcite/p-396b8d49.entry.js +0 -6
  668. package/dist/calcite/p-406bd9a9.js +0 -6
  669. package/dist/calcite/p-57a2b992.entry.js +0 -6
  670. package/dist/calcite/p-69264c97.entry.js +0 -6
  671. package/dist/calcite/p-6d4326c9.entry.js +0 -6
  672. package/dist/calcite/p-7844333b.entry.js +0 -6
  673. package/dist/calcite/p-8cdbf8b5.entry.js +0 -6
  674. package/dist/calcite/p-94db30ae.js +0 -6
  675. package/dist/calcite/p-9d8f86bb.entry.js +0 -6
  676. package/dist/calcite/p-a7db3a72.entry.js +0 -6
  677. package/dist/calcite/p-b6ca749d.entry.js +0 -6
  678. package/dist/calcite/p-c23eff7d.js +0 -6
  679. package/dist/calcite/p-ecf60d43.js +0 -6
@@ -136,12 +136,4 @@ export declare function disconnectFloatingUI(component: FloatingUIComponent, ref
136
136
  * @default 6
137
137
  */
138
138
  export declare const defaultOffsetDistance: number;
139
- /**
140
- * This utils applies floating element styles to avoid affecting layout when closed.
141
- *
142
- * This should be called when the closing transition will start.
143
- *
144
- * @param floatingEl
145
- */
146
- export declare function updateAfterClose(floatingEl: HTMLElement): void;
147
139
  export {};
package/hydrate/index.js CHANGED
@@ -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.3.0-next.3
4
+ * v1.3.0-next.5
5
5
  */
6
6
  'use strict';
7
7
 
@@ -7267,6 +7267,7 @@ const locales = [
7267
7267
  "cs",
7268
7268
  "da",
7269
7269
  "de",
7270
+ "de-AT",
7270
7271
  "de-CH",
7271
7272
  "el",
7272
7273
  defaultLocale,
@@ -16805,16 +16806,14 @@ function connectFloatingUI(component, referenceEl, floatingEl) {
16805
16806
  return;
16806
16807
  }
16807
16808
  disconnectFloatingUI(component, referenceEl, floatingEl);
16808
- const position = component.overlayPositioning;
16809
- // ensure position matches for initial positioning
16810
16809
  Object.assign(floatingEl.style, {
16811
16810
  visibility: "hidden",
16812
16811
  pointerEvents: "none",
16813
- position
16812
+ // initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
16813
+ position: component.overlayPositioning,
16814
+ top: "0",
16815
+ left: "0"
16814
16816
  });
16815
- if (position === "absolute") {
16816
- resetPosition(floatingEl);
16817
- }
16818
16817
  const runAutoUpdate = (_refEl, _floatingEl, updateCallback) => {
16819
16818
  updateCallback();
16820
16819
  return () => {
@@ -16834,7 +16833,6 @@ function disconnectFloatingUI(component, referenceEl, floatingEl) {
16834
16833
  if (!floatingEl || !referenceEl) {
16835
16834
  return;
16836
16835
  }
16837
- getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
16838
16836
  const cleanup = cleanupMap.get(component);
16839
16837
  if (cleanup) {
16840
16838
  cleanup();
@@ -16848,43 +16846,6 @@ const visiblePointerSize = 4;
16848
16846
  * @default 6
16849
16847
  */
16850
16848
  const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
16851
- /**
16852
- * This utils applies floating element styles to avoid affecting layout when closed.
16853
- *
16854
- * This should be called when the closing transition will start.
16855
- *
16856
- * @param floatingEl
16857
- */
16858
- function updateAfterClose(floatingEl) {
16859
- if (!floatingEl || floatingEl.style.position !== "absolute") {
16860
- return;
16861
- }
16862
- getTransitionTarget(floatingEl).addEventListener("transitionend", handleTransitionElTransitionEnd);
16863
- }
16864
- function getTransitionTarget(floatingEl) {
16865
- // assumes floatingEl w/ shadowRoot is a FloatingUIComponent
16866
- return floatingEl.shadowRoot || floatingEl;
16867
- }
16868
- function handleTransitionElTransitionEnd(event) {
16869
- const floatingTransitionEl = event.target;
16870
- if (
16871
- // using any prop from floating-ui transition
16872
- event.propertyName === "opacity" &&
16873
- floatingTransitionEl.classList.contains(FloatingCSS.animation)) {
16874
- const floatingEl = getFloatingElFromTransitionTarget(floatingTransitionEl);
16875
- resetPosition(floatingEl);
16876
- getTransitionTarget(floatingEl).removeEventListener("transitionend", handleTransitionElTransitionEnd);
16877
- }
16878
- }
16879
- function resetPosition(floatingEl) {
16880
- // resets position to better match https://floating-ui.com/docs/computePosition#initial-layout
16881
- floatingEl.style.transform = "";
16882
- floatingEl.style.top = "0";
16883
- floatingEl.style.left = "0";
16884
- }
16885
- function getFloatingElFromTransitionTarget(floatingTransitionEl) {
16886
- return closestElementCrossShadowBoundary(floatingTransitionEl, `[${placementDataAttribute}]`);
16887
- }
16888
16849
 
16889
16850
  const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
16890
16851
  const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
@@ -17238,10 +17199,7 @@ class Combobox {
17238
17199
  this.effectiveLocale = undefined;
17239
17200
  this.defaultMessages = undefined;
17240
17201
  }
17241
- openHandler(value) {
17242
- if (!value) {
17243
- updateAfterClose(this.floatingEl);
17244
- }
17202
+ openHandler() {
17245
17203
  if (this.disabled) {
17246
17204
  this.open = false;
17247
17205
  return;
@@ -17352,7 +17310,7 @@ class Combobox {
17352
17310
  this.setFilteredPlacements();
17353
17311
  this.reposition(true);
17354
17312
  if (this.open) {
17355
- this.openHandler(this.open);
17313
+ this.openHandler();
17356
17314
  }
17357
17315
  }
17358
17316
  async componentWillLoad() {
@@ -19437,14 +19395,8 @@ class Dropdown {
19437
19395
  if (value) {
19438
19396
  this.reposition(true);
19439
19397
  }
19440
- else {
19441
- updateAfterClose(this.floatingEl);
19442
- }
19443
19398
  return;
19444
19399
  }
19445
- if (!value) {
19446
- updateAfterClose(this.floatingEl);
19447
- }
19448
19400
  this.open = false;
19449
19401
  }
19450
19402
  handleDisabledChange(value) {
@@ -22210,18 +22162,12 @@ class InputDatePicker {
22210
22162
  }
22211
22163
  openHandler(value) {
22212
22164
  if (this.disabled || this.readOnly) {
22213
- if (!value) {
22214
- updateAfterClose(this.floatingEl);
22215
- }
22216
22165
  this.open = false;
22217
22166
  return;
22218
22167
  }
22219
22168
  if (value) {
22220
22169
  this.reposition(true);
22221
22170
  }
22222
- else {
22223
- updateAfterClose(this.floatingEl);
22224
- }
22225
22171
  }
22226
22172
  overlayPositioningHandler() {
22227
22173
  this.reposition(true);
@@ -27945,9 +27891,6 @@ class Popover {
27945
27891
  if (value) {
27946
27892
  this.reposition(true);
27947
27893
  }
27948
- else {
27949
- updateAfterClose(this.el);
27950
- }
27951
27894
  this.setExpandedAttr();
27952
27895
  }
27953
27896
  overlayPositioningHandler() {
@@ -35685,18 +35628,14 @@ class TileSelect {
35685
35628
  }
35686
35629
  }
35687
35630
  pointerEnterHandler() {
35688
- if (this.input.localName === "calcite-radio-button") {
35689
- this.input.hovered = true;
35690
- }
35691
- if (this.input.localName === "calcite-checkbox") {
35631
+ const { localName } = this.input;
35632
+ if (localName === "calcite-radio-button" || localName === "calcite-checkbox") {
35692
35633
  this.input.hovered = true;
35693
35634
  }
35694
35635
  }
35695
35636
  pointerLeaveHandler() {
35696
- if (this.input.localName === "calcite-radio-button") {
35697
- this.input.hovered = false;
35698
- }
35699
- if (this.input.localName === "calcite-checkbox") {
35637
+ const { localName } = this.input;
35638
+ if (localName === "calcite-radio-button" || localName === "calcite-checkbox") {
35700
35639
  this.input.hovered = false;
35701
35640
  }
35702
35641
  }
@@ -37102,9 +37041,6 @@ class Tooltip {
37102
37041
  if (value) {
37103
37042
  this.reposition(true);
37104
37043
  }
37105
- else {
37106
- updateAfterClose(this.el);
37107
- }
37108
37044
  }
37109
37045
  overlayPositioningHandler() {
37110
37046
  this.reposition(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.3.0-next.3",
3
+ "version": "1.3.0-next.5",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as e,h as i,a}from"./p-f4689d82.js";import{c as n,d as o}from"./p-94db30ae.js";import{t as r,g as s}from"./p-e673032f.js";import{c,d as l}from"./p-ecf60d43.js";import{c as d,d as m,s as h,u as f}from"./p-1508b083.js";import"./p-0da18018.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";import"./p-02d06e51.js";const p="thumbnail",u="title",g="subtitle",b="footer-start",v="footer-end",w=class{constructor(i){t(this,i),this.calciteCardSelect=e(this,"calciteCardSelect",6),this.cardSelectClick=()=>{this.selectCard()},this.cardSelectKeyDown=t=>{switch(t.key){case" ":case"Enter":this.selectCard(),t.preventDefault()}},this.loading=!1,this.selected=!1,this.selectable=!1,this.thumbnailPosition="block-start",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}connectedCallback(){n(this),c(this),d(this)}disonnectedCallback(){o(this),l(this),m(this)}async componentWillLoad(){await h(this)}render(){const t=this.thumbnailPosition.startsWith("inline"),e=this.thumbnailPosition.endsWith("start");return i("div",{class:{"calcite-card-container":!0,inline:t}},this.loading?i("div",{class:"calcite-card-loader-container"},i("calcite-loader",{label:this.messages.loading})):null,e&&this.renderThumbnail(),i("section",{"aria-busy":r(this.loading),class:{container:!0}},this.selectable?this.renderCheckbox():null,this.renderHeader(),i("div",{class:"card-content"},i("slot",null)),this.renderFooter()),!e&&this.renderThumbnail())}effectiveLocaleChange(){f(this,this.effectiveLocale)}selectCard(){this.selected=!this.selected,this.calciteCardSelect.emit()}renderThumbnail(){return s(this.el,p)?i("section",{class:"thumbnail-wrapper"},i("slot",{name:p})):null}renderCheckbox(){return i("calcite-label",{class:"checkbox-wrapper",onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown},i("calcite-checkbox",{checked:this.selected,label:this.messages.select}))}renderHeader(){const{el:t}=this,e=s(t,u),a=s(t,g);return e||a?i("header",{class:"header"},i("slot",{name:u}),i("slot",{name:g})):null}renderFooter(){const{el:t}=this,e=s(t,b),a=s(t,v);return e||a?i("footer",{class:"footer"},i("slot",{name:b}),i("slot",{name:v})):null}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};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:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:var(--calcite-border-radius-base)}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0px;display:flex;align-items:center}.header,.footer{display:flex;padding-inline:0.75rem;padding-block:0.75rem 0.25rem}.header{flex-direction:column}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:0.75rem;padding-block:0.25rem 0.75rem}.card-content{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selectable]) .header{padding-inline-end:2rem}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;margin-block-start:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;inset-block-start:0.5rem;inset-inline-end:0.5rem}.thumbnail-wrapper{display:flex}.calcite-card-container.inline{flex-direction:row}.calcite-card-container.inline>.container{inline-size:60%}.calcite-card-container.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.calcite-card-container.inline slot[name=thumbnail]::slotted(img),.calcite-card-container.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:0.25rem}";export{w as calcite_card}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as e,f as i,h as a,H as s,a as n}from"./p-f4689d82.js";import{f as o,c as r,b as l,u as c,a as d,r as h,F as f}from"./p-c23eff7d.js";import{d as p,a as m,c as u,u as g}from"./p-c0af78dc.js";import{i as v,t as b,j as w,q as x}from"./p-e673032f.js";import{g as y}from"./p-99e339dd.js";import{c as k,d as E}from"./p-08356c15.js";import{H as z}from"./p-406bd9a9.js";import{c as D,d as H}from"./p-ecf60d43.js";import{u as j,c as P,s as C,d as _}from"./p-1508b083.js";import{i as L}from"./p-02d06e51.js";import{s as A,a as O,c as R}from"./p-f61f936a.js";import{c as B}from"./p-0da18018.js";import"./p-00f81113.js";import"./p-14f8d56b.js";const S="close-button-container",F="header",T="aria-controls",M="aria-expanded",$=new class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:e}=this,i=t.find((t=>e.has(t)));return e.get(i)},this.togglePopovers=t=>{const e=t.composedPath(),i=this.queryPopover(e);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((t=>t!==i&&t.autoClose&&t.open&&!e.includes(t))).forEach((t=>t.open=!1))},this.keyHandler=t=>{t.defaultPrevented||("Escape"===t.key?this.closeAllPopovers():L(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{v(t)&&this.togglePopovers(t)}}registerElement(t,e){this.registeredElementCount++,this.registeredElements.set(t,e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((t=>t.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){t(this,i),this.calcitePopoverBeforeClose=e(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=e(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=e(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=e(this,"calcitePopoverOpen",6),this.mutationObserver=B("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${y()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t,k(this)},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?o(e,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),r(this,this.effectiveReferenceElement,this.el);const{el:e,referenceElement:i,effectiveReferenceElement:a}=this;t&&i&&!a&&console.warn(`${e.tagName}: reference-element id "${i}" was not found.`,{el:e}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;t&&"setAttribute"in t&&t.setAttribute(M,b(e))},this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();"setAttribute"in t&&t.setAttribute(T,e),$.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(T),t.removeAttribute(M)),$.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,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.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handlefocusTrapDisabled(t){this.open&&(t?p(this):m(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):c(this.el),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){j(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),D(this),P(this),k(this),this.setUpReferenceElement(this.hasLoaded),u(this)}async componentWillLoad(){await C(this),A(this)}componentDidLoad(){O(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),H(this),_(this),d(this,this.effectiveReferenceElement,this.el),E(this),p(this)}async reposition(t=!1){const{el:e,effectiveReferenceElement:i,placement:a,overlayPositioning:s,flipDisabled:n,filteredFlipPlacements:o,offsetDistance:r,offsetSkidding:l,arrowEl:c}=this;return h(this,{floatingEl:e,referenceEl:i,overlayPositioning:s,placement:a,flipDisabled:n,flipPlacements:o,offsetDistance:r,offsetSkidding:l,includeArrow:!this.pointerDisabled,arrowEl:c,type:"popover"},t)}async setFocus(){await R(this),i(this.el),w(this.el)}async updateFocusTrapElements(){g(this)}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?x(e,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),m(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),p(this)}renderCloseButton(){const{messages:t,closable:e}=this;return e?a("div",{class:S,key:S},a("calcite-action",{class:"close-button",onClick:this.hide,scale:this.scale,text:t.close,ref:t=>this.closeButtonEl=t},a("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":this.scale}))):null}renderHeader(){const{heading:t,headingLevel:e}=this,i=t?a(z,{class:"heading",level:e},t):null;return i?a("div",{class:F,key:F},i,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,heading:e,label:i,open:n,pointerDisabled:o}=this,r=t&&n,l=!r,c=o?null:a("div",{class:"arrow",ref:this.storeArrowEl});return a(s,{"aria-hidden":b(l),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":l,id:this.getId(),role:"dialog"},a("div",{class:{[f.animation]:!0,[f.animationActive]:r},ref:this.setTransitionEl},c,a("div",{class:{"has-header":!!e,container:!0}},this.renderHeader(),a("div",{class:"content"},a("slot",null)),e?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}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}: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;background-color:var(--calcite-ui-foreground-1);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;background-color:var(--calcite-ui-foreground-1);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 +0,0 @@
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.3.0-next.3
5
- */
6
- import{h as t}from"./p-f4689d82.js";function r(t){return Math.min(Math.max(Math.ceil(t),1),6)}const e=(r,e)=>{const n=r.level?`h${r.level}`:"div";return delete r.level,t(n,{...r},e)};export{e as H,r as c}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,h as e,F as i,a,f as n}from"./p-f4689d82.js";import{c as o,d as l}from"./p-94db30ae.js";import{d as s,s as c,g as r,b as d,i as h}from"./p-e673032f.js";import{c as p,d as m}from"./p-ecf60d43.js";import{c as f}from"./p-e1c494d2.js";import{c as u,s as w,d as x,u as b}from"./p-1508b083.js";import"./p-0da18018.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";import"./p-02d06e51.js";const v="content",g=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),c(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),c(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1}connectedCallback(){o(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),a=e("slot",{key:"panel-top-slot",name:"panel-bottom"}),n=e("slot",{key:"panel-bottom-slot",name:"panel-top"}),o="content-container";return this.contentBehind?[e("div",{class:{[v]:!0,"content--behind":!0},key:o},t),e("div",{class:"center-content"},n,a,i)]:[e("div",{class:v,key:o},n,t,a,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return a(this)}};g.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.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{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}";const y="action-bar",k=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){o(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,a=e("div",{class:"content"},e("slot",null)),n=r(t,y);n&&(n.layout="horizontal");const o=[n?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:y})):null,a];return"end"===n?.position&&o.reverse(),e(i,null,o)}get el(){return a(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}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}";const z="header",_=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialClientX=null,this.contentWidthMax=null,this.contentWidthMin=null,this.step=1,this.stepMultiplier=10,this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedWidth=t=>{const{key:e}=t,{el:i,step:a,stepMultiplier:n,contentWidthMin:o,contentWidthMax:l,initialContentWidth:s,position:c}=this,r=a*n;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const h=["ArrowLeft","ArrowRight"],p="rtl"===d(i)&&h.includes(e)?-1:1;return"ArrowUp"===e||("end"===c?e===h[0]:e===h[1])?s+p*(t.shiftKey?r:a):"ArrowDown"===e||("end"===c?e===h[1]:e===h[0])?s-p*(t.shiftKey?r:a):"number"==typeof o&&"Home"===e?o:"number"==typeof l&&"End"===e?l:"PageDown"===e?s-r:"PageUp"===e?s+r:null},this.separatorKeyDown=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedWidth(t);"number"==typeof e&&this.setContentWidth(e)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,initialContentWidth:i,position:a,initialClientX:n}=this,o=t.clientX-n,l="rtl"===d(e)?-1:1;this.setContentWidth(i+("end"===a?-l*o:l*o))},this.separatorPointerUp=t=>{h(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!h(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),this.setInitialContentWidth(),this.initialClientX=t.clientX,document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.handleActionBarSlotChange=t=>{c(t).filter((t=>t?.matches("calcite-action-bar"))).forEach((t=>t.layout="vertical"))},this.collapsed=!1,this.detached=!1,this.detachedHeightScale="l",this.widthScale="m",this.position=void 0,this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){o(this),p(this),u(this)}async componentWillLoad(){await w(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),m(this),x(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){b(this,this.effectiveLocale)}renderHeader(){const{el:t}=this;return r(t,z)?e("div",{class:"content__header",key:"header"},e("slot",{name:z})):null}render(){const{collapsed:t,detached:i,position:a,initialContentWidth:n,contentWidth:o,contentWidthMax:l,contentWidthMin:s,resizable:c}=this,r=!i&&c,d=e("div",{class:{content:!0,"content--detached":i},hidden:t,key:"content",style:r&&o?{width:`${o}px`}:null,ref:this.storeContentEl},this.renderHeader(),e("div",{class:"content__body"},e("slot",null))),h=r?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal","aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":o??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,p=[e("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),d,h];return"end"===a&&p.reverse(),e("div",{class:{container:!0}},p)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,a=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?f(a,i,e):a}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);if(!e)return;const i=parseInt(e.getPropertyValue("max-width"),10),a=parseInt(e.getPropertyValue("min-width"),10),o=parseInt(e.getPropertyValue("width"),10);"number"!=typeof o||isNaN(o)||(this.initialContentWidth=o),"number"!=typeof i||isNaN(i)||(this.contentWidthMax=i),"number"!=typeof a||isNaN(a)||(this.contentWidthMin=a),n(this)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};_.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{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}:host([width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 40vh)}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 60vh)}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height-internal:var(--calcite-shell-panel-detached-max-height, 80vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-detached-max-height-internal)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}";export{g as calcite_shell,k as calcite_shell_center_row,_ as calcite_shell_panel}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as i,c as t,h as e,H as n,a}from"./p-f4689d82.js";import{t as o,i as r,v as s,f as c,r as l}from"./p-e673032f.js";import{f as d,c as h,d as m,u as p,a as u,F as f,r as g}from"./p-c23eff7d.js";import{g as w}from"./p-99e339dd.js";import{u as v}from"./p-23551e86.js";import{i as b}from"./p-02d06e51.js";import{c as y,s as k,a as x}from"./p-f61f936a.js";import{c as D}from"./p-0da18018.js";import{c as z,d as _}from"./p-08356c15.js";import"./p-14f8d56b.js";import"./p-00f81113.js";const I=class{constructor(e){i(this,e),this.calciteDropdownSelect=t(this,"calciteDropdownSelect",6),this.calciteDropdownBeforeClose=t(this,"calciteDropdownBeforeClose",6),this.calciteDropdownClose=t(this,"calciteDropdownClose",6),this.calciteDropdownBeforeOpen=t(this,"calciteDropdownBeforeOpen",6),this.calciteDropdownOpen=t(this,"calciteDropdownOpen",6),this.items=[],this.groups=[],this.mutationObserver=D("mutation",(()=>this.updateItems())),this.resizeObserver=D("resize",(i=>this.resizeObserverCallback(i))),this.openTransitionProp="opacity",this.guid=`calcite-dropdown-${w()}`,this.defaultAssignedElements=[],this.slotChangeHandler=i=>{this.defaultAssignedElements=i.target.assignedElements({flatten:!0}),this.updateItems()},this.setFilteredPlacements=()=>{const{el:i,flipPlacements:t}=this;this.filteredFlipPlacements=t?d(t,i):null},this.updateTriggers=i=>{this.triggers=i.target.assignedElements({flatten:!0}),this.reposition(!0)},this.updateItems=()=>{this.items=this.groups.map((i=>Array.from(i?.querySelectorAll("calcite-dropdown-item")))).reduce(((i,t)=>[...i,...t]),[]),this.updateSelectedItems(),this.reposition(!0)},this.updateGroups=i=>{const t=i.target.assignedElements({flatten:!0}).filter((i=>i?.matches("calcite-dropdown-group")));this.groups=t,this.updateItems()},this.resizeObserverCallback=i=>{i.forEach((i=>{const{target:t}=i;t===this.referenceEl?this.setDropdownWidth():t===this.scrollerEl&&this.setMaxScrollerHeight()}))},this.setDropdownWidth=()=>{const{referenceEl:i,scrollerEl:t}=this,e=i?.clientWidth;e&&t&&(t.style.minWidth=`${e}px`)},this.setMaxScrollerHeight=()=>{const{scrollerEl:i}=this;if(!i)return;this.reposition(!0);const t=this.getMaxScrollerHeight();i.style.maxHeight=t>0?`${t}px`:"",this.reposition(!0)},this.setScrollerAndTransitionEl=i=>{this.resizeObserver.observe(i),this.scrollerEl=i,this.transitionEl=i,z(this)},this.setReferenceEl=i=>{this.referenceEl=i,h(this,this.referenceEl,this.floatingEl),this.resizeObserver.observe(i)},this.setFloatingEl=i=>{this.floatingEl=i,h(this,this.referenceEl,this.floatingEl)},this.keyDownHandler=i=>{if(i.target!==this.referenceEl)return;const{defaultPrevented:t,key:e}=i;if(!t){if(this.open){if("Escape"===e)return this.closeCalciteDropdown(),void i.preventDefault();if(i.shiftKey&&"Tab"===e)return this.closeCalciteDropdown(),void i.preventDefault()}b(e)?(this.openCalciteDropdown(),i.preventDefault()):"Escape"===e&&(this.closeCalciteDropdown(),i.preventDefault())}},this.focusOnFirstActiveOrFirstItem=()=>{this.getFocusableElement(this.items.find((i=>i.selected))||this.items[0])},this.toggleOpenEnd=()=>{this.focusOnFirstActiveOrFirstItem(),this.el.removeEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.openCalciteDropdown=()=>{this.open=!this.open,this.open&&this.el.addEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.open=!1,this.closeOnSelectDisabled=!1,this.disabled=!1,this.flipPlacements=void 0,this.maxItems=0,this.overlayPositioning="absolute",this.placement=m,this.scale="m",this.selectedItems=[],this.type="click",this.width=void 0}openHandler(i){this.disabled?(i||p(this.floatingEl),this.open=!1):i?this.reposition(!0):p(this.floatingEl)}handleDisabledChange(i){i||(this.open=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}maxItemsHandler(){this.setMaxScrollerHeight()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}async setFocus(){await y(this),this.el.focus()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),this.reposition(!0),this.open&&this.openHandler(this.open),z(this)}componentWillLoad(){k(this)}componentDidLoad(){x(this),this.reposition(!0)}componentDidRender(){v(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),u(this,this.referenceEl,this.floatingEl),this.resizeObserver?.disconnect(),_(this)}render(){const{open:i,guid:t}=this;return e(n,null,e("div",{class:"calcite-trigger-container",id:`${t}-menubutton`,onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},e("slot",{"aria-controls":`${t}-menu`,"aria-expanded":o(i),"aria-haspopup":"menu",name:"trigger",onSlotchange:this.updateTriggers})),e("div",{"aria-hidden":o(!i),class:"calcite-dropdown-wrapper",ref:this.setFloatingEl},e("div",{"aria-labelledby":`${t}-menubutton`,class:{"calcite-dropdown-content":!0,[f.animation]:!0,[f.animationActive]:i},id:`${t}-menu`,role:"menu",ref:this.setScrollerAndTransitionEl},e("slot",{onSlotchange:this.updateGroups}))))}async reposition(i=!1){const{floatingEl:t,referenceEl:e,placement:n,overlayPositioning:a,filteredFlipPlacements:o}=this;return g(this,{floatingEl:t,referenceEl:e,overlayPositioning:a,placement:n,flipPlacements:o,type:"menu"},i)}closeCalciteDropdownOnClick(i){r(i)&&this.open&&!i.composedPath().includes(this.el)&&this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(i){this.closeCalciteDropdown(),i.stopPropagation()}closeCalciteDropdownOnOpenEvent(i){i.composedPath().includes(this.el)||(this.open=!1)}mouseEnterHandler(){"hover"===this.type&&this.openCalciteDropdown()}mouseLeaveHandler(){"hover"===this.type&&this.closeCalciteDropdown()}calciteInternalDropdownItemKeyEvent(i){const{keyboardEvent:t}=i.detail,e=t.target;switch(t.key){case"Tab":this.items.indexOf(e)!==this.items.length-1||t.shiftKey?0===this.items.indexOf(e)&&t.shiftKey&&this.closeCalciteDropdown():this.closeCalciteDropdown();break;case"ArrowDown":s(this.items,e,"next");break;case"ArrowUp":s(this.items,e,"previous");break;case"Home":s(this.items,e,"first");break;case"End":s(this.items,e,"last")}i.stopPropagation()}handleItemSelect(i){this.updateSelectedItems(),i.stopPropagation(),this.calciteDropdownSelect.emit(),this.closeOnSelectDisabled&&"none"!==i.detail.requestedDropdownGroup.selectionMode||this.closeCalciteDropdown(),i.stopPropagation()}onBeforeOpen(){this.calciteDropdownBeforeOpen.emit()}onOpen(){this.calciteDropdownOpen.emit()}onBeforeClose(){this.calciteDropdownBeforeClose.emit()}onClose(){this.calciteDropdownClose.emit()}updateSelectedItems(){this.selectedItems=this.items.filter((i=>i.selected))}getMaxScrollerHeight(){const{maxItems:i,items:t}=this;let e,n=0,a=0;return this.groups.forEach((t=>{i>0&&n<i&&Array.from(t.children).forEach(((t,o)=>{0===o&&(isNaN(e)&&(e=t.offsetTop),a+=e),n<i&&(a+=t.offsetHeight,n+=1)}))})),t.length>i?a:0}closeCalciteDropdown(i=!0){this.open=!1,i&&c(this.triggers[0])}getFocusableElement(i){if(!i)return;const t=i.attributes.isLink?i.shadowRoot.querySelector("a"):i;c(t)}static get delegatesFocus(){return!0}get el(){return a(this)}static get watchers(){return{open:["openHandler"],disabled:["handleDisabledChange"],flipPlacements:["flipPlacementsHandler"],maxItems:["maxItemsHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"]}}};I.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]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-flex;flex:0 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{--calcite-floating-ui-z-index:600;display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.calcite-dropdown-wrapper .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}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .calcite-dropdown-wrapper{visibility:visible}:host .calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;flex:1 1 auto;word-wrap:break-word;word-break:break-word}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";const E=class{constructor(e){i(this,e),this.calciteInternalDropdownItemChange=t(this,"calciteInternalDropdownItemChange",6),this.groupTitle=void 0,this.selectionMode="single",this.scale=void 0}componentWillLoad(){this.groupPosition=this.getGroupPosition()}render(){const i=this.scale||l(this.el,"scale","m"),t=this.groupTitle?e("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null,a=this.groupPosition>0?e("div",{class:"dropdown-separator",role:"separator"}):null;return e(n,{"aria-label":this.groupTitle,role:"group"},e("div",{class:{container:!0,"container--s":"s"===i,"container--m":"m"===i,"container--l":"l"===i},title:this.groupTitle},a,t,e("slot",null)))}updateActiveItemOnChange(i){this.requestedDropdownGroup=i.detail.requestedDropdownGroup,this.requestedDropdownItem=i.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}static get delegatesFocus(){return!0}get el(){return a(this)}};E.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{position:relative;display:block}.container{text-align:start}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-ui-border-3)}";const C=class{constructor(e){i(this,e),this.calciteDropdownItemSelect=t(this,"calciteDropdownItemSelect",6),this.calciteInternalDropdownItemSelect=t(this,"calciteInternalDropdownItemSelect",6),this.calciteInternalDropdownItemKeyEvent=t(this,"calciteInternalDropdownItemKeyEvent",6),this.calciteInternalDropdownCloseRequest=t(this,"calciteInternalDropdownCloseRequest",6),this.scale="m",this.selected=!1,this.iconFlipRtl=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.href=void 0,this.label=void 0,this.rel=void 0,this.target=void 0}async setFocus(){await y(this),this.el?.focus()}componentWillLoad(){k(this),this.initialize()}componentDidLoad(){x(this)}connectedCallback(){this.initialize()}render(){const i=l(this.el,"scale",this.scale),t=e("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"l"===i?"m":"s"}),a=e("span",{class:"dropdown-item-content"},e("slot",null)),r=e("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"l"===i?"m":"s"}),s=this.iconStart&&this.iconEnd?[t,a,r]:this.iconStart?[t,a]:this.iconEnd?[a,r]:a,c=this.href?e("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,rel:this.rel,tabIndex:-1,target:this.target,ref:i=>this.childLink=i},s):s,d=this.href?null:"single"===this.selectionMode?"menuitemradio":"multiple"===this.selectionMode?"menuitemcheckbox":"menuitem",h="none"!==this.selectionMode?o(this.selected):null;return e(n,{"aria-checked":h,role:d,tabindex:"0"},e("div",{class:{container:!0,"container--link":!!this.href,"container--s":"s"===i,"container--m":"m"===i,"container--l":"l"===i,"container--multi-selection":"multiple"===this.selectionMode,"container--single-selection":"single"===this.selectionMode,"container--none-selection":"none"===this.selectionMode}},"none"!==this.selectionMode?e("calcite-icon",{class:"dropdown-item-icon",icon:"multiple"===this.selectionMode?"check":"bullet-point",scale:"l"===i?"m":"s"}):null,c))}onClick(){this.emitRequestedItem()}keyDownHandler(i){switch(i.key){case" ":case"Enter":this.emitRequestedItem(),this.href&&this.childLink.click(),i.preventDefault();break;case"Escape":this.calciteInternalDropdownCloseRequest.emit(),i.preventDefault();break;case"Tab":this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:i});break;case"ArrowUp":case"ArrowDown":case"Home":case"End":i.preventDefault(),this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:i})}}updateActiveItemOnChange(i){i.composedPath().includes(this.parentDropdownGroupEl)&&(this.requestedDropdownGroup=i.detail.requestedDropdownGroup,this.requestedDropdownItem=i.detail.requestedDropdownItem,this.determineActiveItem()),i.stopPropagation()}initialize(){this.selectionMode=l(this.el,"selection-mode","single"),this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group"),"none"===this.selectionMode&&(this.selected=!1)}determineActiveItem(){switch(this.selectionMode){case"multiple":this.el===this.requestedDropdownItem&&(this.selected=!this.selected);break;case"single":this.el===this.requestedDropdownItem?this.selected=!0:this.requestedDropdownGroup===this.parentDropdownGroupEl&&(this.selected=!1);break;case"none":this.selected=!1}}emitRequestedItem(){this.calciteDropdownItemSelect.emit(),this.calciteInternalDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}get el(){return a(this)}};C.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}.container--s{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}.container--s.container--none-selection{padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{padding-inline-start:0px}.container--m.container--none-selection{padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{padding-inline-start:0px}.container--l.container--none-selection{padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{padding-inline-start:0px}:host{position:relative;display:flex;flex-grow:1;align-items:center}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}.dropdown-item-content{flex:1 1 auto;padding-block:0.125rem;padding-inline-end:auto;padding-inline-start:0.25rem}:host,.container--link a{outline-color:transparent}:host(:focus){outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0px}.container--link a{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.container--s .dropdown-link{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([selected]) .container:not(.container--none-selection),:host([selected]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected]) .container:not(.container--none-selection):before,:host([selected]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([selected]) .container:not(.container--none-selection) calcite-icon,:host([selected]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([selected]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-inline-end:0.5rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{margin-inline-end:0.75rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{margin-inline-end:1rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{margin-inline-start:1rem}";export{I as calcite_dropdown,E as calcite_dropdown_group,C as calcite_dropdown_item}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as i,h as e,H as a,a as o}from"./p-f4689d82.js";import{q as n,i as s,t as r}from"./p-e673032f.js";import{c,b as l,u as h,a as d,r as p,F as m}from"./p-c23eff7d.js";import{g as f}from"./p-99e339dd.js";import{c as u,d as g}from"./p-08356c15.js";import"./p-14f8d56b.js";import"./p-00f81113.js";const v="aria-describedby";function w(t){const{referenceElement:i}=t;return("string"==typeof i?n(t,{id:i}):i)||null}const b=new class{constructor(){this.registeredElements=new WeakMap,this.hoverTimeout=null,this.registeredElementCount=0,this.queryTooltip=t=>{const{registeredElements:i}=this,e=t.find((t=>i.has(t)));return i.get(e)},this.keyDownHandler=t=>{if("Escape"===t.key&&!t.defaultPrevented){const{activeTooltipEl:i}=this;if(i&&i.open){this.clearHoverTimeout(),this.toggleTooltip(i,!1);const e=w(i);e instanceof Element&&e.contains(t.target)&&t.preventDefault()}}},this.queryHoveredTooltip=t=>{const{activeTooltipEl:i}=this;if(i&&t.includes(i))return void this.clearHoverTimeout();const e=this.queryTooltip(t);e?this.toggleHoveredTooltip(e,!0):i&&this.toggleHoveredTooltip(i,!1)},this.pointerMoveHandler=t=>{const i=t.composedPath();this.clearHoverTimeout(),this.hoverTimeout=window.setTimeout((()=>this.queryHoveredTooltip(i)),500)},this.pointerDownHandler=t=>{if(!s(t))return;const i=this.queryTooltip(t.composedPath());this.clickedTooltip=i,i?.closeOnClick&&(this.toggleTooltip(i,!1),this.clearHoverTimeout())},this.focusInHandler=t=>{this.queryFocusedTooltip(t,!0)},this.focusOutHandler=t=>{this.queryFocusedTooltip(t,!1)},this.toggleHoveredTooltip=(t,i)=>{i&&this.closeExistingTooltip(),this.toggleTooltip(t,i)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addListeners(){document.addEventListener("keydown",this.keyDownHandler,{capture:!0}),document.addEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.addEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.addEventListener("focusin",this.focusInHandler,{capture:!0}),document.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeListeners(){document.removeEventListener("keydown",this.keyDownHandler,{capture:!0}),document.removeEventListener("pointermove",this.pointerMoveHandler,{capture:!0}),document.removeEventListener("pointerdown",this.pointerDownHandler,{capture:!0}),document.removeEventListener("focusin",this.focusInHandler,{capture:!0}),document.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}clearHoverTimeout(){window.clearTimeout(this.hoverTimeout)}closeExistingTooltip(){const{activeTooltipEl:t}=this;t&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeExistingTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,i&&(this.activeTooltipEl=t)}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&e!==this.clickedTooltip?this.toggleFocusedTooltip(e,i):this.clickedTooltip=null}},x=class{constructor(e){t(this,e),this.calciteTooltipBeforeClose=i(this,"calciteTooltipBeforeClose",6),this.calciteTooltipClose=i(this,"calciteTooltipClose",6),this.calciteTooltipBeforeOpen=i(this,"calciteTooltipBeforeOpen",6),this.calciteTooltipOpen=i(this,"calciteTooltipOpen",6),this.guid=`calcite-tooltip-${f()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,u(this)},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=w(this.el),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:a}=this;t&&e&&!a&&console.warn(`${i.tagName}: reference-element id "${e}" was not found.`,{el:i}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const i=this.getId();"setAttribute"in t&&t.setAttribute(v,i),b.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute(v),b.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=l,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){t?this.reposition(!0):h(this.el)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){u(this),this.setUpReferenceElement(this.hasLoaded)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el),g(this)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:a,overlayPositioning:o,offsetDistance:n,offsetSkidding:s,arrowEl:r}=this;return p(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:a,offsetDistance:n,offsetSkidding:s,includeArrow:!0,arrowEl:r,type:"tooltip"},t)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit()}render(){const{effectiveReferenceElement:t,label:i,open:o}=this,n=t&&o,s=!n;return e(a,{"aria-hidden":r(s),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":s,id:this.getId(),role:"tooltip"},e("div",{class:{[m.animation]:!0,[m.animationActive]:n},ref:this.setTransitionEl},e("div",{class:"arrow",ref:t=>this.arrowEl=t}),e("div",{class:"container"},e("slot",null))))}get el(){return o(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};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-tooltip-z-index, 901);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=right]) .arrow,:host([data-placement^=left]) .arrow{direction:ltr;text-align:start}:host([data-placement^=left]) .arrow{inset-inline-end:-4px}:host([data-placement^=right]) .arrow{inset-inline-start:-4px}.container{position:relative;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);max-inline-size:20rem;max-block-size:20rem;text-align:start}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}';export{x as calcite_tooltip}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as a,h as i,H as o,a as e}from"./p-f4689d82.js";import{c as n,d as r}from"./p-94db30ae.js";import{s,g as c}from"./p-e673032f.js";import{s as l,a as d,c as p}from"./p-f61f936a.js";import{c as m,d as h}from"./p-ecf60d43.js";import{u,c as f,d as g,s as x}from"./p-1508b083.js";import{t as b,E as y}from"./p-bd28cc44.js";import{c as w}from"./p-0da18018.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";import"./p-02d06e51.js";import"./p-087353ea.js";import"./p-a32d7b56.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=s(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:s,layout:l}=this,d=c(e,v),p=a?null:i(y,{el:e,expanded:t,intlCollapse:o.collapse,intlExpand:o.expand,position:n,scale:s,toggle:r,tooltip:d,ref:this.setExpandToggleRef});return p?i("calcite-action-group",{class:"action-group--bottom",layout:l,scale:s},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 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as i,h as a,H as e,a as s}from"./p-f4689d82.js";import{d as n,a as r,i as o,b as c,g as l,c as h,e as d,f as p}from"./p-42967353.js";import{t as m}from"./p-e673032f.js";import{f as u,c as f,d as g,u as v,r as y,a as b,F as w}from"./p-c23eff7d.js";import{s as x,c as k,d as D,H as C}from"./p-6fc7aabd.js";import{u as I}from"./p-23551e86.js";import{n as z}from"./p-02d06e51.js";import{c as P,d as A,g as j}from"./p-2997b10c.js";import{c as _,s as O,a as R}from"./p-f61f936a.js";import{n as E,c as S,d as H}from"./p-ecf60d43.js";import{c as F,d as L}from"./p-08356c15.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";import"./p-00f81113.js";import"./p-0da18018.js";const Y=class{constructor(a){t(this,a),this.calciteInputDatePickerChange=i(this,"calciteInputDatePickerChange",6),this.calciteInputDatePickerBeforeClose=i(this,"calciteInputDatePickerBeforeClose",6),this.calciteInputDatePickerClose=i(this,"calciteInputDatePickerClose",6),this.calciteInputDatePickerBeforeOpen=i(this,"calciteInputDatePickerBeforeOpen",6),this.calciteInputDatePickerOpen=i(this,"calciteInputDatePickerOpen",6),this.calciteInternalInputInputHandler=t=>{const i=t.target,a=i.value,e=this.parseNumerals(a),s=this.formatNumerals(e);i.value=s;const{year:c}=n(a,this.localeData);if(c&&c.length<4)return;const l=r(a,this.localeData);o(l,this.min,this.max)&&(this.datePickerActiveDate=l)},this.calciteInternalInputBlurHandler=()=>{this.commitValue()},this.userChangedValue=!1,this.openTransitionProp="opacity",this.valueAsDateChangedExternally=!1,this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?u(i,t):null},this.setTransitionEl=t=>{this.transitionEl=t,F(this)},this.setStartInput=t=>{this.startInput=t},this.setEndInput=t=>{this.endInput=t},this.deactivate=()=>{this.open=!1},this.keyDownHandler=t=>{const{defaultPrevented:i,key:a}=t;"Enter"!==a||i?"Escape"!==a||i||(this.open=!1,t.preventDefault()):(this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),x(this)&&t.preventDefault())},this.startInputFocus=()=>{this.readOnly||(this.open=!0),this.focusedInput="start"},this.endInputFocus=()=>{this.readOnly||(this.open=!0),this.focusedInput="end"},this.setFloatingEl=t=>{t&&(this.floatingEl=t,f(this,this.referenceEl,this.floatingEl))},this.setStartWrapper=t=>{this.startWrapper=t,this.setReferenceEl()},this.setEndWrapper=t=>{this.endWrapper=t,this.setReferenceEl()},this.handleDateChange=t=>{this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues())},this.handleDateRangeChange=t=>{this.range&&(t.stopPropagation(),this.setRangeValue(t.target.valueAsDate),this.localizeInputValues(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus())},this.setInputValue=(t,i="start")=>{const a=this[`${i}Input`];a&&(a.value=t)},this.setRangeValue=t=>{if(!this.range)return;const{value:i}=this,a=Array.isArray(i),e=Array.isArray(t),s=e?c(e?t[0]:null):"",n=e?c(e?t[1]:null):"",r=s||n?[s,n]:"";if(r===i)return;this.userChangedValue=!0,this.value=r,this.valueAsDate=r?l(r):void 0;const o=this.calciteInputDatePickerChange.emit();o&&o.defaultPrevented&&(this.value=i,a?(this.setInputValue(i[0],"start"),this.setInputValue(i[1],"end")):(this.value=i,this.setInputValue(i)))},this.setValue=t=>{if(this.range)return;const i=this.value,a=c(t);a!==i&&(this.userChangedValue=!0,this.valueAsDate=a?h(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=i,this.setInputValue(i)))},this.commonDateSeparators=[".","-","/"],this.formatNumerals=t=>t?t.split("").map((t=>this.commonDateSeparators?.includes(t)?this.localeData?.separator:z?.includes(t)?E?.numberFormatter?.format(Number(t)):t)).join(""):"",this.parseNumerals=t=>t?t.split("").map((t=>z.includes(t)?E.delocalize(t):t)).join(""):"",this.disabled=!1,this.form=void 0,this.readOnly=!1,this.value="",this.flipPlacements=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.open=!1,this.name=void 0,this.numberingSystem=void 0,this.scale="m",this.placement=g,this.range=!1,this.required=!1,this.overlayPositioning="absolute",this.proximitySelectionDisabled=!1,this.layout="horizontal",this.messageOverrides=void 0,this.datePickerActiveDate=void 0,this.effectiveLocale="",this.focusedInput="start",this.globalAttributes={},this.localeData=void 0}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let i;i=Array.isArray(t)?l(t):t?h(t):void 0,this.valueAsDateChangedExternally||i===this.valueAsDate||(this.valueAsDate=i),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){this.datePickerActiveDate=t;const i=this.range&&Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.value!==i&&(this.valueAsDateChangedExternally=!0,this.value=i,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMinChanged(t){t&&(this.minAsDate=h(t))}onMaxChanged(t){t&&(this.maxAsDate=h(t))}openHandler(t){if(this.disabled||this.readOnly)return t||v(this.floatingEl),void(this.open=!1);t?this.reposition(!0):v(this.floatingEl)}overlayPositioningHandler(){this.reposition(!0)}calciteDaySelectHandler(){this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()||(this.open=!1)}async setFocus(){await _(this),this.el.focus()}async reposition(t=!1){const{floatingEl:i,referenceEl:a,placement:e,overlayPositioning:s,filteredFlipPlacements:n}=this;return y(this,{floatingEl:i,referenceEl:a,overlayPositioning:s,placement:e,flipPlacements:n,type:"menu"},t)}connectedCallback(){S(this);const{open:t}=this;if(t&&this.openHandler(t),Array.isArray(this.value))this.valueAsDate=l(this.value);else if(this.value)try{this.valueAsDate=h(this.value)}catch(t){this.warnAboutInvalidValue(this.value),this.value=""}else this.range&&this.valueAsDate&&this.setRangeValue(this.valueAsDate);this.min&&(this.minAsDate=h(this.min)),this.max&&(this.maxAsDate=h(this.max)),P(this),k(this),F(this),this.setFilteredPlacements(),this.reposition(!0),E.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1}}async componentWillLoad(){O(this),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}componentDidLoad(){R(this),this.localizeInputValues(),this.reposition(!0)}disconnectedCallback(){A(this),D(this),b(this,this.referenceEl,this.floatingEl),L(this),H(this)}componentDidRender(){I(this)}render(){const{disabled:t,effectiveLocale:i,numberingSystem:s,readOnly:n}=this;return E.numberFormatOptions={numberingSystem:s,locale:i,useGrouping:!1},a(e,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler,role:"application"},this.localeData&&a("div",{"aria-expanded":m(this.open),class:"input-container",role:"application"},a("div",{class:"input-wrapper",ref:this.setStartWrapper},a("calcite-input",{class:"input "+("vertical"===this.layout&&this.range?"no-bottom-border":""),disabled:t,icon:"calendar",label:j(this),"number-button-type":"none",numberingSystem:s,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.startInputFocus,placeholder:this.localeData?.placeholder,readOnly:n,scale:this.scale,type:"text",ref:this.setStartInput})),a("div",{"aria-hidden":m(!this.open),class:{"menu-container":!0,"menu-container--active":this.open},ref:this.setFloatingEl},a("div",{class:{"calendar-picker-wrapper":!0,"calendar-picker-wrapper--end":"end"===this.focusedInput,[w.animation]:!0,[w.animationActive]:this.open},ref:this.setTransitionEl},a("calcite-date-picker",{activeDate:this.datePickerActiveDate,activeRange:this.focusedInput,headingLevel:this.headingLevel,max:this.max,maxAsDate:this.maxAsDate,messageOverrides:this.messageOverrides,min:this.min,minAsDate:this.minAsDate,numberingSystem:s,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,tabIndex:0,valueAsDate:this.valueAsDate}))),this.range&&"horizontal"===this.layout&&a("div",{class:"horizontal-arrow-container"},a("calcite-icon",{flipRtl:!0,icon:"arrow-right",scale:"l"===this.scale?"m":"s"})),this.range&&"vertical"===this.layout&&"s"!==this.scale&&a("div",{class:"vertical-arrow-container"},a("calcite-icon",{icon:"arrow-down",scale:"l"===this.scale?"m":"s"})),this.range&&a("div",{class:"input-wrapper",ref:this.setEndWrapper},a("calcite-input",{class:{input:!0,"border-top-color-one":"vertical"===this.layout&&this.range},disabled:t,icon:"calendar","number-button-type":"none",numberingSystem:s,onCalciteInputInput:this.calciteInternalInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.endInputFocus,placeholder:this.localeData?.placeholder,readOnly:n,scale:this.scale,type:"text",ref:this.setEndInput}))),a(C,{component:this}))}setReferenceEl(){const{focusedInput:t,layout:i,endWrapper:a,startWrapper:e}=this;this.referenceEl="end"===t||"vertical"===i?a||e:e||a,f(this,this.referenceEl,this.floatingEl)}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit()}commitValue(){const{focusedInput:t,value:i}=this,a=r(this[`${t}Input`].value,this.localeData),e=c(a),s=Array.isArray(i);if(this.range)if(s){if(e===i["start"===t?0:1])return;a?(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues()):this.setRangeValue(["end"===t&&h(i[0]),"start"===t&&h(i[1])])}else a&&(this.setRangeValue(["start"===t?a:h(i[0]),"end"===t?a:h(i[1])]),this.localizeInputValues());else{if(e===i)return;this.setValue(a),this.localizeInputValues()}}async loadLocaleData(){E.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await d(this.effectiveLocale),this.localizeInputValues()}shouldFocusRangeStart(){return!(!this.value[1]||this.value[0]||"end"!==this.focusedInput||!this.startInput)}shouldFocusRangeEnd(){return!(!this.value[0]||this.value[1]||"start"!==this.focusedInput||!this.endInput)}localizeInputValues(){const t=p(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),i=this.range?p(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null,a=t&&this.formatNumerals(t.toLocaleDateString(this.effectiveLocale)),e=i&&this.formatNumerals(i.toLocaleDateString(this.effectiveLocale));a&&this.setInputValue(a,"start"),this.range&&e&&this.setInputValue(e,"end")}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}static get delegatesFocus(){return!0}get el(){return s(this)}static get watchers(){return{disabled:["handleDisabledAndReadOnlyChange"],readOnly:["handleDisabledAndReadOnlyChange"],value:["valueWatcher"],valueAsDate:["valueAsDateWatcher"],flipPlacements:["flipPlacementsHandler"],min:["onMinChanged"],max:["onMaxChanged"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],effectiveLocale:["loadLocaleData"]}}};Y.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .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 .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;inline-size:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:flex}:host([range]) .input-wrapper{flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:flex;align-items:center;border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-block:0px;padding-inline:0.25rem}:host([range][layout=vertical]) .input-wrapper{inline-size:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{inset-block-start:1.5rem;position:absolute;z-index:1;margin-inline:1px;background-color:var(--calcite-ui-foreground-1);padding-inline:0.625rem;inset-inline-start:0}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{inline-size:398px}.menu-container{--calcite-floating-ui-z-index:600;display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}.menu-container .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}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{transform:translateY(-5px)}.menu-container[data-placement^=top] .calcite-floating-ui-anim{transform:translateY(5px)}.menu-container[data-placement^=left] .calcite-floating-ui-anim{transform:translateX(5px)}.menu-container[data-placement^=right] .calcite-floating-ui-anim{transform:translateX(-5px)}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([open]) .menu-container{visibility:visible}.menu-container--active{visibility:visible}.input .calcite-input__wrapper{margin-block-start:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{inset-block-start:1.5rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{block-size:0.75rem;inline-size:0.75rem;min-inline-size:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{inset-block-start:2.25rem;padding-inline:0.875rem}:host([range][layout=vertical][open]) .vertical-arrow-container{display:none}::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{Y as calcite_input_date_picker}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{f as t}from"./p-f4689d82.js";import{c as o}from"./p-0da18018.js";const n=new Set;let s;const c={childList:!0};function f(t){s||(s=o("mutation",a)),s.observe(t.el,c)}function i(t){n.delete(t.el),a(s.takeRecords()),s.disconnect();for(const[t]of n.entries())s.observe(t,c)}function a(o){o.forEach((({target:o})=>{t(o)}))}export{f as c,i as d}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as t,c as e,h as i,F as n,a}from"./p-f4689d82.js";import{s as o,j as s,t as r}from"./p-e673032f.js";import{u as c}from"./p-23551e86.js";import{s as l,a as d,c as h}from"./p-f61f936a.js";import{c as m}from"./p-0da18018.js";import{S as p}from"./p-a32d7b56.js";import{H as f}from"./p-406bd9a9.js";import{S as u,C as g,I as b}from"./p-3f7f7cce.js";import{c as v,d as x}from"./p-ecf60d43.js";import{c as y,s as k,d as w,u as z}from"./p-1508b083.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";import"./p-02d06e51.js";const S=class{constructor(i){t(this,i),this.calcitePanelClose=e(this,"calcitePanelClose",6),this.calcitePanelScroll=e(this,"calcitePanelScroll",6),this.resizeObserver=m("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:t}=this;t&&"number"==typeof t.scrollHeight&&"number"==typeof t.offsetHeight&&(t.tabIndex=t.scrollHeight>t.offsetHeight?0:-1)},this.setContainerRef=t=>{this.containerEl=t},this.setCloseRef=t=>{this.closeButtonEl=t},this.setBackRef=t=>{this.backButtonEl=t},this.panelKeyDownHandler=t=>{this.closable&&"Escape"===t.key&&!t.defaultPrevented&&(this.close(),t.preventDefault())},this.close=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasStartActions=!!e.length},this.handleHeaderActionsEndSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasEndActions=!!e.length},this.handleHeaderMenuActionsSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasMenuItems=!!e.length},this.handleActionBarSlotChange=t=>{const e=o(t).filter((t=>t?.matches("calcite-action-bar")));e.forEach((t=>t.layout="horizontal")),this.hasActionBar=!!e.length},this.handleHeaderContentSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasHeaderContent=!!e.length},this.handleFooterSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasFooterContent=!!e.length},this.handleFooterActionsSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasFooterActions=!!e.length},this.handleFabSlotChange=t=>{const e=t.target.assignedElements({flatten:!0});this.hasFab=!!e.length},this.setPanelScrollEl=t=>{this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())},this.closed=!1,this.disabled=!1,this.closable=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasFooterContent=!1,this.hasFooterActions=!1,this.hasFab=!1,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){v(this),y(this)}async componentWillLoad(){l(this),await k(this)}componentDidLoad(){d(this)}componentDidRender(){c(this)}disconnectedCallback(){x(this),w(this),this.resizeObserver?.disconnect()}effectiveLocaleChange(){z(this,this.effectiveLocale)}async setFocus(){await h(this),s(this.containerEl)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}renderHeaderContent(){const{heading:t,headingLevel:e,description:n,hasHeaderContent:a}=this,o=t?i(f,{class:g.heading,level:e},t):null,s=n?i("span",{class:g.description},n):null;return a||!o&&!s?null:i("div",{class:g.headerContent,key:"header-content"},o,s)}renderActionBar(){return i("div",{class:g.actionBarContainer,hidden:!this.hasActionBar},i("slot",{name:u.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return i("div",{class:g.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},i("slot",{name:u.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:t}=this;return i("div",{class:{[g.headerActionsStart]:!0,[g.headerActions]:!0},hidden:!t,key:"header-actions-start"},i("slot",{name:u.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{close:t,hasEndActions:e,messages:n,closable:a,hasMenuItems:o}=this,s=n.close,r=a?i("calcite-action",{"aria-label":s,"data-test":"close",icon:b.close,onClick:t,text:s,ref:this.setCloseRef}):null,c=i("slot",{name:u.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange});return i("div",{class:{[g.headerActionsEnd]:!0,[g.headerActions]:!0},hidden:!(e||r||o),key:"header-actions-end"},c,this.renderMenu(),r)}renderMenu(){const{hasMenuItems:t,messages:e,menuOpen:n}=this;return i("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!t,key:"menu",label:e.options,open:n,placement:"bottom-end"},i("calcite-action",{icon:b.menu,slot:p.trigger,text:e.options}),i("slot",{name:u.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{hasHeaderContent:t,hasStartActions:e,hasEndActions:n,closable:a,hasMenuItems:o}=this,s=this.renderHeaderContent();return i("header",{class:g.header,hidden:!(t||s||e||n||a||o)},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),s,this.renderHeaderActionsEnd())}renderFooterNode(){const{hasFooterContent:t,hasFooterActions:e}=this;return i("footer",{class:g.footer,hidden:!(t||e)},i("slot",{key:"footer-slot",name:u.footer,onSlotchange:this.handleFooterSlotChange}),i("slot",{key:"footer-actions-slot",name:u.footerActions,onSlotchange:this.handleFooterActionsSlotChange}))}renderContent(){const{hasFab:t}=this,e=i("slot",{key:"default-slot"}),n=t?i("section",{class:g.contentContainer},e):e;return i("div",{class:{[g.contentWrapper]:!0,[g.contentContainer]:!t,[g.contentHeight]:t},onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},n,this.renderFab())}renderFab(){return i("div",{class:g.fabContainer,hidden:!this.hasFab},i("slot",{name:u.fab,onSlotchange:this.handleFabSlotChange}))}render(){const{loading:t,panelKeyDownHandler:e,closed:a,closable:o}=this,s=i("article",{"aria-busy":r(t),class:g.container,hidden:a,onKeyDown:e,tabIndex:o?0:-1,ref:this.setContainerRef},this.renderHeaderNode(),this.renderActionBar(),this.renderContent(),this.renderFooterNode());return i(n,null,t?i("calcite-scrim",{loading:t}):null,s)}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};S.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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{border-block-end:1px solid;z-index:400;inline-size:100%;align-items:stretch;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);flex:0 0 auto}.action-bar-container{border-block-end:1px solid;z-index:400;inline-size:100%;border-block-end-color:var(--calcite-ui-border-3)}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{border-block-start:1px solid;display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:sticky;inset-block-end:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}[hidden]{display:none}";export{S as calcite_panel}
@@ -1,6 +0,0 @@
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.3.0-next.3
5
- */
6
- import{r as i,h as t,a}from"./p-f4689d82.js";import{h as e}from"./p-e673032f.js";import{h as n,i as r}from"./p-fb8d0259.js";import"./p-99e339dd.js";import"./p-14f8d56b.js";const o=class{constructor(t){i(this,t),this.scale="m",this.thumbnail=void 0,this.fullName=void 0,this.username=void 0,this.userId=void 0,this.thumbnailFailedToLoad=!1}render(){return this.determineContent()}determineContent(){if(this.thumbnail&&!this.thumbnailFailedToLoad)return t("img",{alt:"",class:"thumbnail",onError:()=>this.thumbnailFailedToLoad=!0,src:this.thumbnail});const i=this.generateInitials(),a=this.generateFillColor();return t("span",{class:"background",style:{backgroundColor:a}},i?t("span",{"aria-hidden":"true",class:"initials"},i):t("calcite-icon",{class:"icon",icon:"user",scale:this.scale}))}generateFillColor(){const{userId:i,username:t,fullName:a,el:o}=this,c=e(o),s=i&&`#${i.substr(i.length-6)}`,l=t||a||"",m=s&&r(s)?s:function(i){let t=0;for(let a=0;a<i.length;a++)t=i.charCodeAt(a)+((t<<5)-t);let a="#";for(let i=0;i<3;i++)a+=("00"+(t>>8*i&255).toString(16)).substr(-2);return a}(l);return(i||l)&&r(m)?`hsl(${function(i){return function(i){let{r:t,g:a,b:e}=i;t/=255,a/=255,e/=255;const n=Math.max(t,a,e),r=Math.min(t,a,e),o=n-r;if(n===r)return 0;let c=(n+r)/2;switch(n){case t:c=(a-e)/o+(a<e?6:0);break;case a:c=(e-t)/o+2;break;case e:c=(t-a)/o+4}return Math.round(60*c)}(n(i))}(m)}, 60%, ${"dark"===c?20:90}%)`:"var(--calcite-ui-foreground-2)"}generateInitials(){const{fullName:i,username:t}=this;return i?i.trim().split(" ").map((i=>i.substring(0,1))).join(""):!!t&&t.substring(0,2)}get el(){return a(this)}};o.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host{display:inline-block;overflow:hidden;border-radius:50%}:host([scale=s]){block-size:1.5rem;inline-size:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){block-size:2rem;inline-size:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){block-size:2.75rem;inline-size:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:flex}.background{display:flex;block-size:100%;inline-size:100%;align-items:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-2)}.thumbnail{block-size:100%;inline-size:100%;border-radius:50%}";export{o as calcite_avatar}