@esri/solutions-components 0.6.8 → 0.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (789) hide show
  1. package/dist/assets/t9n/crowdsource-manager/resources.json +2 -1
  2. package/dist/assets/t9n/crowdsource-manager/resources_en.json +2 -1
  3. package/dist/assets/t9n/info-card/resources.json +5 -2
  4. package/dist/assets/t9n/info-card/resources_en.json +5 -2
  5. package/dist/assets/t9n/layer-table/resources.json +2 -1
  6. package/dist/assets/t9n/layer-table/resources_en.json +2 -1
  7. package/dist/assets/t9n/map-tools/resources.json +1 -4
  8. package/dist/assets/t9n/map-tools/resources_en.json +1 -4
  9. package/dist/cjs/{ExpandToggle-e6a0d66e.js → ExpandToggle-c5690e14.js} +5 -5
  10. package/dist/cjs/{FloatingArrow-0119ec6e.js → FloatingArrow-675171a6.js} +1 -1
  11. package/dist/cjs/{Heading-521f39ac.js → Heading-3712677d.js} +1 -1
  12. package/dist/cjs/{app-globals-72576a1c.js → app-globals-a62ad1ad.js} +3 -3
  13. package/dist/cjs/{ar-1718ae57.js → ar-1dc23c0a.js} +14 -14
  14. package/dist/cjs/{array-46bb7df1.js → array-2db3fd4a.js} +1 -1
  15. package/dist/cjs/{basemap-gallery_4.cjs.entry.js → basemap-gallery_5.cjs.entry.js} +120 -66
  16. package/dist/cjs/{bg-190a176c.js → bg-4024b354.js} +14 -14
  17. package/dist/cjs/{bs-919e0de8.js → bs-3134d711.js} +14 -14
  18. package/dist/cjs/buffer-tools_4.cjs.entry.js +15 -15
  19. package/dist/cjs/{ca-94918e06.js → ca-8d6647d3.js} +14 -14
  20. package/dist/cjs/calcite-accordion-item.cjs.entry.js +7 -12
  21. package/dist/cjs/calcite-accordion.cjs.entry.js +1 -6
  22. package/dist/cjs/calcite-action-bar.cjs.entry.js +31 -26
  23. package/dist/cjs/calcite-action-group_2.cjs.entry.js +18 -20
  24. package/dist/cjs/calcite-action-pad.cjs.entry.js +20 -16
  25. package/dist/cjs/calcite-action_2.cjs.entry.js +17 -22
  26. package/dist/cjs/calcite-alert.cjs.entry.js +11 -11
  27. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  28. package/dist/cjs/calcite-block-section.cjs.entry.js +9 -9
  29. package/dist/cjs/calcite-block.cjs.entry.js +12 -12
  30. package/dist/cjs/calcite-button.cjs.entry.js +12 -12
  31. package/dist/cjs/calcite-card.cjs.entry.js +9 -9
  32. package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -13
  33. package/dist/cjs/calcite-chip-group.cjs.entry.js +6 -11
  34. package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
  35. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
  36. package/dist/cjs/calcite-color-picker.cjs.entry.js +12 -12
  37. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +5 -5
  38. package/dist/cjs/calcite-combobox_6.cjs.entry.js +21 -26
  39. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +10 -10
  40. package/dist/cjs/calcite-date-picker.cjs.entry.js +11 -11
  41. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  42. package/dist/cjs/calcite-filter_5.cjs.entry.js +16 -16
  43. package/dist/cjs/calcite-flow-item.cjs.entry.js +11 -11
  44. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  45. package/dist/cjs/calcite-graph.cjs.entry.js +5 -10
  46. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  47. package/dist/cjs/calcite-inline-editable.cjs.entry.js +11 -11
  48. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +17 -17
  49. package/dist/cjs/calcite-input-number_2.cjs.entry.js +13 -13
  50. package/dist/cjs/{calcite-input-time-picker-b99baf7b.js → calcite-input-time-picker-4efcd55d.js} +60 -60
  51. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +14 -14
  52. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +12 -12
  53. package/dist/cjs/calcite-input_2.cjs.entry.js +12 -12
  54. package/dist/cjs/calcite-label.cjs.entry.js +5 -5
  55. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  56. package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
  57. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  58. package/dist/cjs/calcite-menu-item.cjs.entry.js +9 -9
  59. package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
  60. package/dist/cjs/calcite-modal.cjs.entry.js +12 -12
  61. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
  62. package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
  63. package/dist/cjs/calcite-navigation.cjs.entry.js +5 -5
  64. package/dist/cjs/calcite-notice.cjs.entry.js +11 -11
  65. package/dist/cjs/calcite-option_2.cjs.entry.js +9 -9
  66. package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
  67. package/dist/cjs/calcite-panel_2.cjs.entry.js +14 -14
  68. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
  69. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +12 -12
  70. package/dist/cjs/calcite-pick-list.cjs.entry.js +10 -10
  71. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -7
  72. package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
  73. package/dist/cjs/calcite-rating.cjs.entry.js +12 -12
  74. package/dist/cjs/calcite-scrim.cjs.entry.js +8 -8
  75. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +8 -8
  76. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
  77. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +29 -32
  78. package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -7
  79. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  80. package/dist/cjs/calcite-stepper-item.cjs.entry.js +8 -8
  81. package/dist/cjs/calcite-stepper.cjs.entry.js +3 -8
  82. package/dist/cjs/calcite-switch.cjs.entry.js +8 -8
  83. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
  84. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +1 -1
  85. package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
  86. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  87. package/dist/cjs/calcite-time-picker.cjs.entry.js +10 -10
  88. package/dist/cjs/calcite-tip-manager.cjs.entry.js +9 -9
  89. package/dist/cjs/calcite-tip.cjs.entry.js +10 -10
  90. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  91. package/dist/cjs/calcite-tree_3.cjs.entry.js +8 -8
  92. package/dist/cjs/{card-manager_4.cjs.entry.js → card-manager_3.cjs.entry.js} +65 -101
  93. package/dist/cjs/{conditionalSlot-85b3a6b3.js → conditionalSlot-126d557f.js} +2 -2
  94. package/dist/cjs/crowdsource-manager.cjs.entry.js +50 -16
  95. package/dist/cjs/{cs-fe27e732.js → cs-b24cd994.js} +14 -14
  96. package/dist/cjs/{da-1b7f3440.js → da-9dee3a1f.js} +14 -14
  97. package/dist/cjs/{date-cec32b0e.js → date-0fec6f6b.js} +2 -2
  98. package/dist/cjs/{de-0dc1effa.js → de-1a98b964.js} +14 -14
  99. package/dist/cjs/{de-at-acdc4d01.js → de-at-782e6c7f.js} +14 -14
  100. package/dist/cjs/{de-ch-778a0d99.js → de-ch-d5c95469.js} +14 -14
  101. package/dist/cjs/{dom-c1807fc1.js → dom-456f9f13.js} +3 -3
  102. package/dist/cjs/{downloadUtils-a8c530f7.js → downloadUtils-471a6a2d.js} +258 -265
  103. package/dist/cjs/edit-card_2.cjs.entry.js +38 -5
  104. package/dist/cjs/{el-fdbc9bc1.js → el-af28cafa.js} +14 -14
  105. package/dist/cjs/{en-au-0ff50cdf.js → en-au-109f3119.js} +14 -14
  106. package/dist/cjs/{en-ca-284e9368.js → en-ca-22890a25.js} +14 -14
  107. package/dist/cjs/{en-gb-0fcae8ae.js → en-gb-dc23c9dd.js} +14 -14
  108. package/dist/cjs/{es-cd54acba.js → es-3f353355.js} +14 -14
  109. package/dist/cjs/{es-mx-2078d50f.js → es-mx-ccb57857.js} +14 -14
  110. package/dist/cjs/{et-17f323f6.js → et-119c047b.js} +14 -14
  111. package/dist/cjs/{fi-82f27397.js → fi-13096d81.js} +14 -14
  112. package/dist/cjs/{filter-bda212b4.js → filter-8d8c453e.js} +1 -1
  113. package/dist/cjs/{floating-ui-8d10af88.js → floating-ui-2b0fbba0.js} +2 -2
  114. package/dist/cjs/{focusTrapComponent-a22fc6a8.js → focusTrapComponent-d8412ddc.js} +4 -4
  115. package/dist/cjs/{form-9d8ebf06.js → form-7c6054c3.js} +2 -2
  116. package/dist/cjs/{fr-af7e1192.js → fr-563dfcd5.js} +14 -14
  117. package/dist/cjs/{fr-ch-5e1f2c28.js → fr-ch-f66cfd49.js} +14 -14
  118. package/dist/cjs/{guid-3abe3cc6.js → guid-d1123d5e.js} +1 -1
  119. package/dist/cjs/{he-ea851800.js → he-d8253a1a.js} +14 -14
  120. package/dist/cjs/{hi-5212a21d.js → hi-58c7c3b5.js} +14 -14
  121. package/dist/cjs/{hr-4eecb2ed.js → hr-5aba114a.js} +14 -14
  122. package/dist/cjs/{hu-6b527d8e.js → hu-38c15915.js} +14 -14
  123. package/dist/cjs/{id-d78f12ec.js → id-3a94c080.js} +14 -14
  124. package/dist/cjs/{index.es-4542630e.js → index.es-33154f03.js} +3 -3
  125. package/dist/cjs/{interactive-2fe0f43a.js → interactive-48299817.js} +2 -2
  126. package/dist/cjs/{it-15242935.js → it-88834555.js} +14 -14
  127. package/dist/cjs/{it-ch-9dc21944.js → it-ch-970563cd.js} +14 -14
  128. package/dist/cjs/{ja-f702cfc2.js → ja-13d4b1ae.js} +14 -14
  129. package/dist/cjs/{key-b8b55ea3.js → key-8de93212.js} +1 -1
  130. package/dist/cjs/{ko-aa9bde2c.js → ko-10cbdd98.js} +14 -14
  131. package/dist/cjs/{label-6e33e971.js → label-166e2d81.js} +3 -3
  132. package/dist/cjs/layout-manager.cjs.entry.js +93 -0
  133. package/dist/cjs/{loadModules-31cab7ac.js → loadModules-c5490589.js} +1 -1
  134. package/dist/cjs/{loadable-bac9cdd6.js → loadable-6925d840.js} +1 -1
  135. package/dist/cjs/loader.cjs.js +3 -3
  136. package/dist/cjs/{locale-c63a1b57.js → locale-79c3d30e.js} +5 -5
  137. package/dist/cjs/{locale-d15cd743.js → locale-88c21da2.js} +15 -15
  138. package/dist/cjs/{lt-e741ff2f.js → lt-3fc5017a.js} +14 -14
  139. package/dist/cjs/{lv-92d6768e.js → lv-9d9cf999.js} +14 -14
  140. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  141. package/dist/cjs/{math-5132d9bd.js → math-f28069f3.js} +1 -1
  142. package/dist/cjs/{mk-b209ac0d.js → mk-9f79812b.js} +14 -14
  143. package/dist/cjs/{nb-db13e666.js → nb-673fe3fd.js} +14 -14
  144. package/dist/cjs/{nl-fcd9e0c5.js → nl-4dc0504f.js} +14 -14
  145. package/dist/cjs/{observers-f5fa975b.js → observers-9912f013.js} +1 -1
  146. package/dist/cjs/{openCloseComponent-5d70fcd8.js → openCloseComponent-05cb01ff.js} +9 -4
  147. package/dist/cjs/{pl-87c83322.js → pl-d809a6c3.js} +14 -14
  148. package/dist/cjs/{pt-b0b5f472.js → pt-78eefbc7.js} +14 -14
  149. package/dist/cjs/{pt-br-03333e90.js → pt-br-55f1893a.js} +14 -14
  150. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  151. package/dist/cjs/{resources-60c27547.js → resources-030a27ed.js} +1 -1
  152. package/dist/cjs/{resources-91409a5d.js → resources-10d29626.js} +1 -1
  153. package/dist/cjs/{resources-9f2b33ee.js → resources-24b6eee0.js} +1 -1
  154. package/dist/cjs/{resources-4da89742.js → resources-2b51cf4c.js} +1 -1
  155. package/dist/cjs/{resources-e1258e8a.js → resources-8f4e8ba8.js} +1 -1
  156. package/dist/cjs/{resources-77713c2e.js → resources-993f6faf.js} +1 -1
  157. package/dist/cjs/{resources-2901b608.js → resources-a2e2a544.js} +1 -1
  158. package/dist/cjs/{resources-c913200c.js → resources-acf9a7ea.js} +1 -1
  159. package/dist/cjs/{resources-8233a151.js → resources-caca31c2.js} +1 -1
  160. package/dist/cjs/{ro-c3661b73.js → ro-f0cff196.js} +14 -14
  161. package/dist/cjs/{ru-8dd3fd58.js → ru-5e9b37f9.js} +14 -14
  162. package/dist/cjs/{shared-list-render-c0adb192.js → shared-list-render-9bbcb306.js} +6 -6
  163. package/dist/cjs/{sk-151d9acf.js → sk-322cd349.js} +14 -14
  164. package/dist/cjs/{sl-9b45a152.js → sl-fd948e50.js} +14 -14
  165. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  166. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  167. package/dist/cjs/solutions-components.cjs.js +3 -3
  168. package/dist/cjs/{sortableComponent-58679f07.js → sortableComponent-70bf79de.js} +2 -2
  169. package/dist/cjs/{sr-186bf15c.js → sr-f0058b24.js} +14 -14
  170. package/dist/cjs/{sv-a93fee0c.js → sv-8a8378bf.js} +14 -14
  171. package/dist/cjs/{t9n-1d032c30.js → t9n-62d807df.js} +2 -2
  172. package/dist/cjs/{th-41680352.js → th-f219fad6.js} +14 -14
  173. package/dist/cjs/{time-5e450ec8.js → time-24d40c60.js} +2 -2
  174. package/dist/cjs/{tr-0bd886d6.js → tr-03109641.js} +14 -14
  175. package/dist/cjs/{uk-4fade133.js → uk-dde46112.js} +14 -14
  176. package/dist/cjs/{utils-cd14113f.js → utils-09191c93.js} +2 -2
  177. package/dist/cjs/{utils-acfeed9d.js → utils-651e6663.js} +3 -3
  178. package/dist/cjs/{utils-ae9bdd59.js → utils-852fe124.js} +3 -3
  179. package/dist/cjs/{utils-bae432a9.js → utils-a194dc3d.js} +5 -2
  180. package/dist/cjs/{vi-1c9fe343.js → vi-60ed6e30.js} +14 -14
  181. package/dist/cjs/{zh-cn-28fa1fe1.js → zh-cn-a2f6f51d.js} +14 -14
  182. package/dist/cjs/{zh-hk-5abf8eb5.js → zh-hk-e14e2fc0.js} +14 -14
  183. package/dist/cjs/{zh-tw-07500357.js → zh-tw-7ea0d7e4.js} +14 -14
  184. package/dist/collection/collection-manifest.json +1 -0
  185. package/dist/collection/components/card-manager/card-manager.js +1 -1
  186. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +23 -2
  187. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +49 -32
  188. package/dist/collection/components/info-card/info-card.css +27 -0
  189. package/dist/collection/components/info-card/info-card.js +36 -2
  190. package/dist/collection/components/layer-table/layer-table.css +20 -0
  191. package/dist/collection/components/layer-table/layer-table.js +65 -10
  192. package/dist/collection/components/map-card/map-card.css +0 -7
  193. package/dist/collection/components/map-card/map-card.js +20 -10
  194. package/dist/collection/components/map-legend/map-legend.css +3 -0
  195. package/dist/collection/components/map-legend/map-legend.js +166 -0
  196. package/dist/collection/components/map-legend/test/map-legend.e2e.js +14 -0
  197. package/dist/collection/components/map-legend/test/map-legend.spec.js +22 -0
  198. package/dist/collection/components/map-picker/map-picker.css +5 -1
  199. package/dist/collection/components/map-picker/map-picker.js +2 -2
  200. package/dist/collection/components/map-tools/map-tools.css +14 -0
  201. package/dist/collection/components/map-tools/map-tools.js +26 -62
  202. package/dist/collection/demos/crowdsource-manager.html +26 -1
  203. package/dist/collection/utils/downloadUtils.js +258 -232
  204. package/dist/collection/utils/downloadUtils.ts +358 -326
  205. package/dist/collection/utils/interfaces.ts +11 -0
  206. package/dist/collection/utils/test/downloadUtils.spec.js +503 -57
  207. package/dist/collection/utils/test/downloadUtils.spec.tsx +587 -61
  208. package/dist/components/ExpandToggle.js +2 -2
  209. package/dist/components/FloatingArrow.js +1 -1
  210. package/dist/components/Heading.js +1 -1
  211. package/dist/components/action-bar.js +23 -15
  212. package/dist/components/action-group.js +9 -10
  213. package/dist/components/action-menu.js +1 -1
  214. package/dist/components/action.js +1 -1
  215. package/dist/components/alert.js +2 -2
  216. package/dist/components/array.js +1 -1
  217. package/dist/components/avatar.js +2 -2
  218. package/dist/components/button.js +1 -1
  219. package/dist/components/calcite-accordion-item.js +2 -7
  220. package/dist/components/calcite-accordion.js +0 -5
  221. package/dist/components/calcite-action-pad.js +10 -5
  222. package/dist/components/calcite-block-section.js +2 -2
  223. package/dist/components/calcite-block.js +2 -2
  224. package/dist/components/calcite-card.js +1 -1
  225. package/dist/components/calcite-chip-group.js +0 -5
  226. package/dist/components/calcite-combobox-item-group.js +1 -1
  227. package/dist/components/calcite-fab.js +1 -1
  228. package/dist/components/calcite-flow-item.js +1 -1
  229. package/dist/components/calcite-flow.js +1 -1
  230. package/dist/components/calcite-inline-editable.js +1 -1
  231. package/dist/components/calcite-input-date-picker.js +1 -1
  232. package/dist/components/calcite-input-time-picker.js +1 -1
  233. package/dist/components/calcite-input-time-zone.js +1 -1
  234. package/dist/components/calcite-list-item-group.js +1 -1
  235. package/dist/components/calcite-menu-item.js +1 -1
  236. package/dist/components/calcite-modal.js +2 -2
  237. package/dist/components/calcite-navigation-logo.js +1 -1
  238. package/dist/components/calcite-navigation-user.js +1 -1
  239. package/dist/components/calcite-navigation.js +2 -2
  240. package/dist/components/calcite-pagination.js +1 -1
  241. package/dist/components/calcite-radio-button-group.js +0 -5
  242. package/dist/components/calcite-radio-button.js +1 -1
  243. package/dist/components/calcite-rating.js +1 -1
  244. package/dist/components/calcite-shell-center-row.js +1 -1
  245. package/dist/components/calcite-sortable-list.js +1 -1
  246. package/dist/components/calcite-split-button.js +1 -1
  247. package/dist/components/calcite-stepper.js +0 -5
  248. package/dist/components/calcite-text-area.js +5 -5
  249. package/dist/components/calcite-tile-select.js +1 -1
  250. package/dist/components/calcite-tip-manager.js +1 -1
  251. package/dist/components/calcite-tip.js +1 -1
  252. package/dist/components/card-manager2.js +1 -1
  253. package/dist/components/checkbox.js +0 -5
  254. package/dist/components/chip.js +2 -2
  255. package/dist/components/color-picker-hex-input.js +2 -2
  256. package/dist/components/color-picker-swatch.js +1 -1
  257. package/dist/components/combobox-item.js +1 -1
  258. package/dist/components/combobox.js +1 -6
  259. package/dist/components/conditionalSlot.js +1 -1
  260. package/dist/components/crowdsource-manager.js +57 -23
  261. package/dist/components/date-picker-month-header.js +1 -1
  262. package/dist/components/date-picker.js +2 -2
  263. package/dist/components/date.js +1 -1
  264. package/dist/components/dom.js +2 -2
  265. package/dist/components/downloadUtils.js +256 -263
  266. package/dist/components/dropdown-group.js +1 -1
  267. package/dist/components/dropdown-item.js +1 -1
  268. package/dist/components/dropdown.js +1 -1
  269. package/dist/components/esri-loader.js +15 -15
  270. package/dist/components/filter.js +1 -1
  271. package/dist/components/filter2.js +1 -1
  272. package/dist/components/floating-ui.js +1 -1
  273. package/dist/components/focusTrapComponent.js +4 -4
  274. package/dist/components/form.js +1 -1
  275. package/dist/components/graph.js +3 -8
  276. package/dist/components/guid.js +1 -1
  277. package/dist/components/handle.js +1 -1
  278. package/dist/components/icon.js +2 -2
  279. package/dist/components/index.js +2 -2
  280. package/dist/components/info-card2.js +37 -3
  281. package/dist/components/input-message.js +1 -1
  282. package/dist/components/input-number.js +1 -1
  283. package/dist/components/input-text.js +1 -1
  284. package/dist/components/input.js +1 -1
  285. package/dist/components/interactive.js +2 -2
  286. package/dist/components/key.js +1 -1
  287. package/dist/components/label.js +2 -2
  288. package/dist/components/label2.js +1 -1
  289. package/dist/components/layer-table2.js +46 -11
  290. package/dist/components/layout-manager.js +129 -1
  291. package/dist/components/list-item2.js +1 -1
  292. package/dist/components/list.js +2 -2
  293. package/dist/components/loadable.js +1 -1
  294. package/dist/components/locale2.js +2 -2
  295. package/dist/components/map-card2.js +57 -42
  296. package/dist/components/map-legend.d.ts +11 -0
  297. package/dist/components/map-legend.js +11 -0
  298. package/dist/components/map-legend2.js +118 -0
  299. package/dist/components/map-picker2.js +3 -3
  300. package/dist/components/map-tools2.js +49 -79
  301. package/dist/components/math.js +1 -1
  302. package/dist/components/menu.js +1 -1
  303. package/dist/components/notice.js +1 -1
  304. package/dist/components/observers.js +1 -1
  305. package/dist/components/openCloseComponent.js +9 -4
  306. package/dist/components/panel.js +2 -2
  307. package/dist/components/pick-list-item.js +1 -1
  308. package/dist/components/popover.js +3 -8
  309. package/dist/components/resources.js +1 -1
  310. package/dist/components/resources2.js +1 -1
  311. package/dist/components/resources3.js +1 -1
  312. package/dist/components/resources4.js +1 -1
  313. package/dist/components/scrim.js +1 -1
  314. package/dist/components/segmented-control-item.js +1 -1
  315. package/dist/components/select.js +1 -1
  316. package/dist/components/shared-list-render.js +2 -2
  317. package/dist/components/shell-panel.js +9 -6
  318. package/dist/components/shell.js +2 -2
  319. package/dist/components/slider.js +1 -1
  320. package/dist/components/sortableComponent.js +1 -1
  321. package/dist/components/stack.js +2 -2
  322. package/dist/components/t9n.js +1 -1
  323. package/dist/components/tab-title.js +1 -6
  324. package/dist/components/tabs.js +1 -1
  325. package/dist/components/tile.js +1 -1
  326. package/dist/components/time-picker.js +2 -2
  327. package/dist/components/tooltip.js +3 -3
  328. package/dist/components/tree-item.js +2 -2
  329. package/dist/components/tree.js +1 -1
  330. package/dist/components/utils.js +5 -2
  331. package/dist/components/utils2.js +2 -2
  332. package/dist/components/utils3.js +2 -2
  333. package/dist/components/value-list-item.js +1 -1
  334. package/dist/components/value-list.js +2 -2
  335. package/dist/esm/{ExpandToggle-3d10bd1e.js → ExpandToggle-3bfcb842.js} +5 -5
  336. package/dist/esm/{FloatingArrow-29db6da6.js → FloatingArrow-cf140d6b.js} +1 -1
  337. package/dist/esm/{Heading-cb79e5b2.js → Heading-140d10ff.js} +1 -1
  338. package/dist/esm/{app-globals-5cbac6b0.js → app-globals-fffe4e27.js} +3 -3
  339. package/dist/esm/{ar-4b751ba8.js → ar-45abeb31.js} +14 -14
  340. package/dist/esm/{array-751a2b87.js → array-d95985ad.js} +1 -1
  341. package/dist/esm/{basemap-gallery_4.entry.js → basemap-gallery_5.entry.js} +120 -67
  342. package/dist/esm/{bg-5d8bf5ea.js → bg-af759e86.js} +14 -14
  343. package/dist/esm/{bs-ff510e71.js → bs-20d012de.js} +14 -14
  344. package/dist/esm/buffer-tools_4.entry.js +15 -15
  345. package/dist/esm/{ca-b9a5e51a.js → ca-1498df65.js} +14 -14
  346. package/dist/esm/calcite-accordion-item.entry.js +7 -12
  347. package/dist/esm/calcite-accordion.entry.js +1 -6
  348. package/dist/esm/calcite-action-bar.entry.js +31 -26
  349. package/dist/esm/calcite-action-group_2.entry.js +18 -20
  350. package/dist/esm/calcite-action-pad.entry.js +20 -16
  351. package/dist/esm/calcite-action_2.entry.js +17 -22
  352. package/dist/esm/calcite-alert.entry.js +11 -11
  353. package/dist/esm/calcite-avatar.entry.js +6 -6
  354. package/dist/esm/calcite-block-section.entry.js +9 -9
  355. package/dist/esm/calcite-block.entry.js +12 -12
  356. package/dist/esm/calcite-button.entry.js +12 -12
  357. package/dist/esm/calcite-card.entry.js +9 -9
  358. package/dist/esm/calcite-checkbox.entry.js +8 -13
  359. package/dist/esm/calcite-chip-group.entry.js +6 -11
  360. package/dist/esm/calcite-chip.entry.js +11 -11
  361. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
  362. package/dist/esm/calcite-color-picker.entry.js +12 -12
  363. package/dist/esm/calcite-combobox-item-group.entry.js +5 -5
  364. package/dist/esm/calcite-combobox_6.entry.js +21 -26
  365. package/dist/esm/calcite-date-picker-day_3.entry.js +10 -10
  366. package/dist/esm/calcite-date-picker.entry.js +11 -11
  367. package/dist/esm/calcite-fab.entry.js +6 -6
  368. package/dist/esm/calcite-filter_5.entry.js +16 -16
  369. package/dist/esm/calcite-flow-item.entry.js +11 -11
  370. package/dist/esm/calcite-flow.entry.js +3 -3
  371. package/dist/esm/calcite-graph.entry.js +5 -10
  372. package/dist/esm/calcite-icon.entry.js +6 -6
  373. package/dist/esm/calcite-inline-editable.entry.js +11 -11
  374. package/dist/esm/calcite-input-date-picker.entry.js +17 -17
  375. package/dist/esm/calcite-input-number_2.entry.js +13 -13
  376. package/dist/esm/{calcite-input-time-picker-13448515.js → calcite-input-time-picker-227e60c3.js} +60 -60
  377. package/dist/esm/calcite-input-time-picker.entry.js +14 -14
  378. package/dist/esm/calcite-input-time-zone.entry.js +12 -12
  379. package/dist/esm/calcite-input_2.entry.js +12 -12
  380. package/dist/esm/calcite-label.entry.js +5 -5
  381. package/dist/esm/calcite-link.entry.js +5 -5
  382. package/dist/esm/calcite-list-item-group.entry.js +3 -3
  383. package/dist/esm/calcite-loader.entry.js +1 -1
  384. package/dist/esm/calcite-menu-item.entry.js +9 -9
  385. package/dist/esm/calcite-menu.entry.js +9 -9
  386. package/dist/esm/calcite-modal.entry.js +12 -12
  387. package/dist/esm/calcite-navigation-logo.entry.js +2 -2
  388. package/dist/esm/calcite-navigation-user.entry.js +2 -2
  389. package/dist/esm/calcite-navigation.entry.js +5 -5
  390. package/dist/esm/calcite-notice.entry.js +11 -11
  391. package/dist/esm/calcite-option_2.entry.js +9 -9
  392. package/dist/esm/calcite-pagination.entry.js +9 -9
  393. package/dist/esm/calcite-panel_2.entry.js +14 -14
  394. package/dist/esm/calcite-pick-list-group.entry.js +7 -7
  395. package/dist/esm/calcite-pick-list-item.entry.js +12 -12
  396. package/dist/esm/calcite-pick-list.entry.js +10 -10
  397. package/dist/esm/calcite-radio-button-group.entry.js +2 -7
  398. package/dist/esm/calcite-radio-button.entry.js +9 -9
  399. package/dist/esm/calcite-rating.entry.js +12 -12
  400. package/dist/esm/calcite-scrim.entry.js +8 -8
  401. package/dist/esm/calcite-segmented-control_2.entry.js +8 -8
  402. package/dist/esm/calcite-shell-center-row.entry.js +6 -6
  403. package/dist/esm/calcite-shell-panel_14.entry.js +29 -32
  404. package/dist/esm/calcite-sortable-list.entry.js +7 -7
  405. package/dist/esm/calcite-split-button.entry.js +3 -3
  406. package/dist/esm/calcite-stepper-item.entry.js +8 -8
  407. package/dist/esm/calcite-stepper.entry.js +3 -8
  408. package/dist/esm/calcite-switch.entry.js +8 -8
  409. package/dist/esm/calcite-text-area.entry.js +15 -15
  410. package/dist/esm/calcite-tile-select-group.entry.js +1 -1
  411. package/dist/esm/calcite-tile-select.entry.js +4 -4
  412. package/dist/esm/calcite-tile.entry.js +7 -7
  413. package/dist/esm/calcite-time-picker.entry.js +10 -10
  414. package/dist/esm/calcite-tip-manager.entry.js +9 -9
  415. package/dist/esm/calcite-tip.entry.js +10 -10
  416. package/dist/esm/calcite-tooltip.entry.js +9 -9
  417. package/dist/esm/calcite-tree_3.entry.js +8 -8
  418. package/dist/esm/{card-manager_4.entry.js → card-manager_3.entry.js} +66 -101
  419. package/dist/esm/{conditionalSlot-27a0fce0.js → conditionalSlot-55a14abd.js} +2 -2
  420. package/dist/esm/crowdsource-manager.entry.js +50 -16
  421. package/dist/esm/{cs-f21a0628.js → cs-3bd67855.js} +14 -14
  422. package/dist/esm/{da-dc48fc4c.js → da-7a76e131.js} +14 -14
  423. package/dist/esm/{date-0ed48e97.js → date-bd5b879c.js} +2 -2
  424. package/dist/esm/{de-59290071.js → de-0808a43e.js} +14 -14
  425. package/dist/esm/{de-at-cd6e6ab7.js → de-at-0b6874cb.js} +14 -14
  426. package/dist/esm/{de-ch-27c44e34.js → de-ch-c9d429dd.js} +14 -14
  427. package/dist/esm/{dom-843e3afd.js → dom-37f2dec9.js} +3 -3
  428. package/dist/esm/{downloadUtils-63661805.js → downloadUtils-8d4c13bb.js} +258 -265
  429. package/dist/esm/edit-card_2.entry.js +38 -5
  430. package/dist/esm/{el-f09fdec6.js → el-66001281.js} +14 -14
  431. package/dist/esm/{en-au-90087aa5.js → en-au-6424fec0.js} +14 -14
  432. package/dist/esm/{en-ca-10751695.js → en-ca-f5f1659d.js} +14 -14
  433. package/dist/esm/{en-gb-0f8547bd.js → en-gb-796beadd.js} +14 -14
  434. package/dist/esm/{es-b0997cf1.js → es-cd139926.js} +14 -14
  435. package/dist/esm/{es-mx-226f5028.js → es-mx-854dc3e4.js} +14 -14
  436. package/dist/esm/{et-dc96c453.js → et-2aa6782d.js} +14 -14
  437. package/dist/esm/{fi-0941704d.js → fi-965727bd.js} +14 -14
  438. package/dist/esm/{filter-1cac3edf.js → filter-60517290.js} +1 -1
  439. package/dist/esm/{floating-ui-d28d0fd6.js → floating-ui-7cde67cf.js} +2 -2
  440. package/dist/esm/{focusTrapComponent-ff3a9f28.js → focusTrapComponent-ec344399.js} +4 -4
  441. package/dist/esm/{form-11c6a015.js → form-04d47b0b.js} +2 -2
  442. package/dist/esm/{fr-8da3458d.js → fr-c1884e89.js} +14 -14
  443. package/dist/esm/{fr-ch-739ceddf.js → fr-ch-1fd8dd3a.js} +14 -14
  444. package/dist/esm/{guid-2bbb8cd1.js → guid-70cda807.js} +1 -1
  445. package/dist/esm/{he-8b662dfa.js → he-0d7b78b4.js} +14 -14
  446. package/dist/esm/{hi-10996f89.js → hi-0376c82d.js} +14 -14
  447. package/dist/esm/{hr-42c2024d.js → hr-28a64903.js} +14 -14
  448. package/dist/esm/{hu-4768b3ff.js → hu-44a02ff7.js} +14 -14
  449. package/dist/esm/{id-24a08170.js → id-034fc4a5.js} +14 -14
  450. package/dist/esm/{index.es-3a3aa8e3.js → index.es-065c3035.js} +3 -3
  451. package/dist/esm/{interactive-eaf4be29.js → interactive-bd6837bc.js} +2 -2
  452. package/dist/esm/{it-ad09649f.js → it-56e52026.js} +14 -14
  453. package/dist/esm/{it-ch-b05fc10d.js → it-ch-a4a0e136.js} +14 -14
  454. package/dist/esm/{ja-ab839b73.js → ja-f2365272.js} +14 -14
  455. package/dist/esm/{key-7a525416.js → key-02fa06ae.js} +1 -1
  456. package/dist/esm/{ko-c778539e.js → ko-e7650b4c.js} +14 -14
  457. package/dist/esm/{label-6a1caf64.js → label-b6dfb4d5.js} +3 -3
  458. package/dist/{components/layout-manager2.js → esm/layout-manager.entry.js} +11 -58
  459. package/dist/esm/{loadModules-2ecd1e44.js → loadModules-f5f910b6.js} +1 -1
  460. package/dist/esm/{loadable-6bca96ad.js → loadable-47170cb6.js} +1 -1
  461. package/dist/esm/loader.js +3 -3
  462. package/dist/esm/{locale-d8561d54.js → locale-146251f7.js} +5 -5
  463. package/dist/esm/{locale-aa3de591.js → locale-efad8f83.js} +15 -15
  464. package/dist/esm/{lt-447d9aa9.js → lt-1577a952.js} +14 -14
  465. package/dist/esm/{lv-4d715e11.js → lv-9ef7e4f6.js} +14 -14
  466. package/dist/esm/map-select-tools_3.entry.js +3 -3
  467. package/dist/esm/{math-5f92f517.js → math-0d6817c3.js} +1 -1
  468. package/dist/esm/{mk-b3d7401a.js → mk-94264e08.js} +14 -14
  469. package/dist/esm/{nb-2b4a8366.js → nb-fa24d5b2.js} +14 -14
  470. package/dist/esm/{nl-c0db1da2.js → nl-33f10900.js} +14 -14
  471. package/dist/esm/{observers-9d66685a.js → observers-95c50046.js} +1 -1
  472. package/dist/esm/{openCloseComponent-2b5c6bed.js → openCloseComponent-10efeff3.js} +9 -4
  473. package/dist/esm/{pl-0d322bb4.js → pl-9ed16565.js} +14 -14
  474. package/dist/esm/{pt-5997598c.js → pt-52731ddf.js} +14 -14
  475. package/dist/esm/{pt-br-6b77e7db.js → pt-br-8de51ff4.js} +14 -14
  476. package/dist/esm/public-notification.entry.js +3 -3
  477. package/dist/esm/{resources-5bce3953.js → resources-0151b0c0.js} +1 -1
  478. package/dist/esm/{resources-94c47e64.js → resources-1e6d76df.js} +1 -1
  479. package/dist/esm/{resources-40d8e06f.js → resources-24255b05.js} +1 -1
  480. package/dist/esm/{resources-dca3d475.js → resources-2e5aa562.js} +1 -1
  481. package/dist/esm/{resources-c253772f.js → resources-2edfa0af.js} +1 -1
  482. package/dist/esm/{resources-a9b2d33c.js → resources-41416583.js} +1 -1
  483. package/dist/esm/{resources-d6a4d343.js → resources-b392187d.js} +1 -1
  484. package/dist/esm/{resources-58d30a0f.js → resources-c676d5de.js} +1 -1
  485. package/dist/esm/{resources-c65f5654.js → resources-efae7280.js} +1 -1
  486. package/dist/esm/{ro-ac3724e0.js → ro-99f009ad.js} +14 -14
  487. package/dist/esm/{ru-4e75151f.js → ru-592ffaf0.js} +14 -14
  488. package/dist/esm/{shared-list-render-abd19c8d.js → shared-list-render-4f0f6af8.js} +6 -6
  489. package/dist/esm/{sk-bbfa22a3.js → sk-44f7bd19.js} +14 -14
  490. package/dist/esm/{sl-867cecfc.js → sl-08cad9bd.js} +14 -14
  491. package/dist/esm/solution-configuration.entry.js +1 -1
  492. package/dist/esm/solution-contents_3.entry.js +1 -1
  493. package/dist/esm/solutions-components.js +3 -3
  494. package/dist/esm/{sortableComponent-db502e97.js → sortableComponent-8a84709a.js} +2 -2
  495. package/dist/esm/{sr-198b5c00.js → sr-84f261fc.js} +14 -14
  496. package/dist/esm/{sv-02d64370.js → sv-d0d7bc1e.js} +14 -14
  497. package/dist/esm/{t9n-76168237.js → t9n-5f748619.js} +2 -2
  498. package/dist/esm/{th-1616e303.js → th-a5149d44.js} +14 -14
  499. package/dist/esm/{time-6721a4c2.js → time-fa1151aa.js} +2 -2
  500. package/dist/esm/{tr-f4619f64.js → tr-feb0cad4.js} +14 -14
  501. package/dist/esm/{uk-df7df34a.js → uk-c9ba62a0.js} +14 -14
  502. package/dist/esm/{utils-f54411df.js → utils-0a5c1a07.js} +3 -3
  503. package/dist/esm/{utils-ccfd94a7.js → utils-667cc396.js} +3 -3
  504. package/dist/esm/{utils-18db6b1d.js → utils-7af1efcc.js} +2 -2
  505. package/dist/esm/{utils-2c91c963.js → utils-7cf107ec.js} +5 -2
  506. package/dist/esm/{vi-176ca9f7.js → vi-788dcb99.js} +14 -14
  507. package/dist/esm/{zh-cn-e13d83d1.js → zh-cn-3ccfb820.js} +14 -14
  508. package/dist/esm/{zh-hk-d97365d8.js → zh-hk-b29b61e8.js} +14 -14
  509. package/dist/esm/{zh-tw-a2b6f0b7.js → zh-tw-2bdbc6eb.js} +14 -14
  510. package/dist/solutions-components/assets/icon/applySelectionToExistingView16.json +1 -0
  511. package/dist/solutions-components/assets/icon/applySelectionToExistingView24.json +1 -0
  512. package/dist/solutions-components/assets/icon/applySelectionToExistingView32.json +1 -0
  513. package/dist/solutions-components/assets/icon/channels16.json +1 -0
  514. package/dist/solutions-components/assets/icon/channels24.json +1 -0
  515. package/dist/solutions-components/assets/icon/channels32.json +1 -0
  516. package/dist/solutions-components/assets/icon/chevronDownLeft16.json +1 -0
  517. package/dist/solutions-components/assets/icon/chevronDownLeft24.json +1 -0
  518. package/dist/solutions-components/assets/icon/chevronDownLeft32.json +1 -0
  519. package/dist/solutions-components/assets/icon/chevronDownRight16.json +1 -0
  520. package/dist/solutions-components/assets/icon/chevronDownRight24.json +1 -0
  521. package/dist/solutions-components/assets/icon/chevronDownRight32.json +1 -0
  522. package/dist/solutions-components/assets/icon/chevronUpLeft16.json +1 -0
  523. package/dist/solutions-components/assets/icon/chevronUpLeft24.json +1 -0
  524. package/dist/solutions-components/assets/icon/chevronUpLeft32.json +1 -0
  525. package/dist/solutions-components/assets/icon/chevronUpRight16.json +1 -0
  526. package/dist/solutions-components/assets/icon/chevronUpRight24.json +1 -0
  527. package/dist/solutions-components/assets/icon/chevronUpRight32.json +1 -0
  528. package/dist/solutions-components/assets/icon/clearSelection16.json +1 -0
  529. package/dist/solutions-components/assets/icon/clearSelection24.json +1 -0
  530. package/dist/solutions-components/assets/icon/clearSelection32.json +1 -0
  531. package/dist/solutions-components/assets/icon/communityLinkChartLayout16.json +1 -0
  532. package/dist/solutions-components/assets/icon/communityLinkChartLayout24.json +1 -0
  533. package/dist/solutions-components/assets/icon/communityLinkChartLayout32.json +1 -0
  534. package/dist/solutions-components/assets/icon/dataCard16.json +1 -0
  535. package/dist/solutions-components/assets/icon/dataCard24.json +1 -0
  536. package/dist/solutions-components/assets/icon/dataCard32.json +1 -0
  537. package/dist/solutions-components/assets/icon/dateTime16.json +1 -0
  538. package/dist/solutions-components/assets/icon/dateTime24.json +1 -0
  539. package/dist/solutions-components/assets/icon/dateTime32.json +1 -0
  540. package/dist/solutions-components/assets/icon/expressionDefinedColor16.json +1 -0
  541. package/dist/solutions-components/assets/icon/expressionDefinedColor24.json +1 -0
  542. package/dist/solutions-components/assets/icon/expressionDefinedColor32.json +1 -0
  543. package/dist/solutions-components/assets/icon/forceDirectedLinkChartLayout16.json +1 -0
  544. package/dist/solutions-components/assets/icon/forceDirectedLinkChartLayout24.json +1 -0
  545. package/dist/solutions-components/assets/icon/forceDirectedLinkChartLayout32.json +1 -0
  546. package/dist/solutions-components/assets/icon/hierarchicalLinkChartLayout16.json +1 -0
  547. package/dist/solutions-components/assets/icon/hierarchicalLinkChartLayout24.json +1 -0
  548. package/dist/solutions-components/assets/icon/hierarchicalLinkChartLayout32.json +1 -0
  549. package/dist/solutions-components/assets/icon/knowledgeStudio16.json +1 -0
  550. package/dist/solutions-components/assets/icon/knowledgeStudio24.json +1 -0
  551. package/dist/solutions-components/assets/icon/knowledgeStudio32.json +1 -0
  552. package/dist/solutions-components/assets/icon/linkChartExpand16.json +1 -0
  553. package/dist/solutions-components/assets/icon/linkChartExpand24.json +1 -0
  554. package/dist/solutions-components/assets/icon/linkChartExpand32.json +1 -0
  555. package/dist/solutions-components/assets/icon/minusSquare16F.json +1 -0
  556. package/dist/solutions-components/assets/icon/minusSquare24F.json +1 -0
  557. package/dist/solutions-components/assets/icon/minusSquare32F.json +1 -0
  558. package/dist/solutions-components/assets/icon/newLinkChart16.json +1 -0
  559. package/dist/solutions-components/assets/icon/newLinkChart24.json +1 -0
  560. package/dist/solutions-components/assets/icon/newLinkChart32.json +1 -0
  561. package/dist/solutions-components/assets/icon/radialTreeLinkChartYayout16.json +1 -0
  562. package/dist/solutions-components/assets/icon/radialTreeLinkChartYayout24.json +1 -0
  563. package/dist/solutions-components/assets/icon/radialTreeLinkChartYayout32.json +1 -0
  564. package/dist/solutions-components/assets/icon/removeLinkchart16.json +1 -0
  565. package/dist/solutions-components/assets/icon/removeLinkchart24.json +1 -0
  566. package/dist/solutions-components/assets/icon/removeLinkchart32.json +1 -0
  567. package/dist/solutions-components/assets/icon/simpleLinkChartLayout16.json +1 -0
  568. package/dist/solutions-components/assets/icon/simpleLinkChartLayout24.json +1 -0
  569. package/dist/solutions-components/assets/icon/simpleLinkChartLayout32.json +1 -0
  570. package/dist/solutions-components/assets/icon/smartTreeLinkChartLayout16.json +1 -0
  571. package/dist/solutions-components/assets/icon/smartTreeLinkChartLayout24.json +1 -0
  572. package/dist/solutions-components/assets/icon/smartTreeLinkChartLayout32.json +1 -0
  573. package/dist/solutions-components/assets/icon/sortAscendingArrow16.json +1 -1
  574. package/dist/solutions-components/assets/icon/sortAscendingArrow24.json +1 -1
  575. package/dist/solutions-components/assets/icon/sortAscendingArrow32.json +1 -1
  576. package/dist/solutions-components/assets/icon/sortDescendingArrow16.json +1 -1
  577. package/dist/solutions-components/assets/icon/sortDescendingArrow24.json +1 -1
  578. package/dist/solutions-components/assets/icon/sortDescendingArrow32.json +1 -1
  579. package/dist/solutions-components/assets/icon/timeZone16.json +1 -0
  580. package/dist/solutions-components/assets/icon/timeZone24.json +1 -0
  581. package/dist/solutions-components/assets/icon/timeZone32.json +1 -0
  582. package/dist/solutions-components/assets/icon/updateProject16.json +1 -0
  583. package/dist/solutions-components/assets/icon/updateProject24.json +1 -0
  584. package/dist/solutions-components/assets/icon/updateProject32.json +1 -0
  585. package/dist/solutions-components/demos/crowdsource-manager.html +26 -1
  586. package/dist/solutions-components/{p-9fb16c72.entry.js → p-0109bef4.entry.js} +10 -10
  587. package/dist/solutions-components/{p-46d5970b.entry.js → p-01c83b8c.entry.js} +1 -1
  588. package/dist/solutions-components/{p-6de98c51.js → p-0266ca81.js} +1 -1
  589. package/dist/solutions-components/{p-8a758303.js → p-05b2bdf9.js} +3 -3
  590. package/dist/solutions-components/p-072155f9.js +12 -0
  591. package/dist/solutions-components/{p-e07b8a72.entry.js → p-082365d6.entry.js} +3 -3
  592. package/dist/solutions-components/{p-ea282908.js → p-0b8463d6.js} +1 -1
  593. package/dist/solutions-components/{p-cad5587c.entry.js → p-0c2e392e.entry.js} +6 -6
  594. package/dist/solutions-components/{p-7c33e500.entry.js → p-0dd8368d.entry.js} +1 -1
  595. package/dist/solutions-components/{p-c3f8b670.js → p-0ecd7346.js} +1 -1
  596. package/dist/solutions-components/{p-18f1772b.js → p-0ed14b4b.js} +1 -1
  597. package/dist/solutions-components/p-0f77e83c.entry.js +11 -0
  598. package/dist/solutions-components/{p-29d41c7e.js → p-0f85fa4b.js} +1 -1
  599. package/dist/solutions-components/{p-541697d0.js → p-0fa3d1aa.js} +2 -2
  600. package/dist/solutions-components/{p-a6900100.entry.js → p-10e1ebe4.entry.js} +3 -3
  601. package/dist/solutions-components/{p-f41105c8.js → p-138cf009.js} +1 -1
  602. package/dist/solutions-components/{p-2b96e551.entry.js → p-149b4d3c.entry.js} +3 -3
  603. package/dist/solutions-components/{p-022a9b7a.js → p-167eb73b.js} +1 -1
  604. package/dist/solutions-components/{p-32f9c709.js → p-168a7d63.js} +1 -1
  605. package/dist/solutions-components/{p-2b252afd.entry.js → p-17a29fa6.entry.js} +1 -1
  606. package/dist/solutions-components/p-18538cd9.entry.js +11 -0
  607. package/dist/solutions-components/p-1bcfca9b.entry.js +6 -0
  608. package/dist/solutions-components/{p-19fe7725.js → p-1cebde99.js} +1 -1
  609. package/dist/solutions-components/{p-b948ecd2.entry.js → p-1dbaff04.entry.js} +2 -2
  610. package/dist/solutions-components/{p-2656168f.entry.js → p-1e7a31c1.entry.js} +3 -3
  611. package/dist/solutions-components/{p-d554507d.js → p-1eda2d20.js} +1 -1
  612. package/dist/solutions-components/{p-ef48bd77.entry.js → p-1efcac52.entry.js} +3 -3
  613. package/dist/solutions-components/{p-c6d83122.entry.js → p-1fba74a5.entry.js} +3 -3
  614. package/dist/solutions-components/{p-3cbe5ef3.js → p-2154de6d.js} +1 -1
  615. package/dist/solutions-components/{p-1ede2e18.js → p-2592c0b8.js} +3 -3
  616. package/dist/solutions-components/{p-90bbf223.entry.js → p-261394d7.entry.js} +1 -1
  617. package/dist/solutions-components/{p-754e2df2.js → p-27e0f599.js} +1 -1
  618. package/dist/solutions-components/{p-6a820c4d.js → p-28b5a7cf.js} +1 -1
  619. package/dist/solutions-components/{p-804e4751.entry.js → p-29efbf76.entry.js} +3 -3
  620. package/dist/solutions-components/{p-421d5e7c.js → p-2bf63e2e.js} +1 -1
  621. package/dist/solutions-components/{p-d4c103a8.js → p-2e8a41da.js} +1 -1
  622. package/dist/solutions-components/{p-de59d2f5.js → p-31aaa60f.js} +1 -1
  623. package/dist/solutions-components/{p-a2748b38.entry.js → p-34ef43ce.entry.js} +1 -1
  624. package/dist/solutions-components/{p-97c47bbd.entry.js → p-35cb6eca.entry.js} +3 -3
  625. package/dist/solutions-components/{p-39ff5ee5.js → p-3766be72.js} +2 -2
  626. package/dist/solutions-components/{p-9e727488.js → p-38f906f2.js} +1 -1
  627. package/dist/solutions-components/{p-c5e294e4.js → p-3948a96c.js} +1 -1
  628. package/dist/solutions-components/{p-9bbc05ff.js → p-3a844a72.js} +1 -1
  629. package/dist/solutions-components/{p-825bac0e.js → p-3c15959e.js} +1 -1
  630. package/dist/solutions-components/{p-ffac6f88.entry.js → p-3ce89910.entry.js} +1 -1
  631. package/dist/solutions-components/{p-7920b5a2.entry.js → p-3cfaf52b.entry.js} +2 -2
  632. package/dist/solutions-components/{p-b9749e09.js → p-3d3e6e20.js} +1 -1
  633. package/dist/solutions-components/{p-844ee452.entry.js → p-410068d9.entry.js} +2 -2
  634. package/dist/solutions-components/{p-a775ba2f.entry.js → p-42f9ab43.entry.js} +3 -3
  635. package/dist/solutions-components/{p-2291b598.js → p-43ba7a04.js} +1 -1
  636. package/dist/solutions-components/{p-f28d69ac.entry.js → p-446ab7f8.entry.js} +3 -3
  637. package/dist/solutions-components/{p-4bc7b875.entry.js → p-452850b4.entry.js} +2 -2
  638. package/dist/solutions-components/{p-0fbc27fd.entry.js → p-456f5afe.entry.js} +2 -2
  639. package/dist/solutions-components/p-46352a57.entry.js +6 -0
  640. package/dist/solutions-components/{p-b86b4512.entry.js → p-46e0ce0c.entry.js} +2 -2
  641. package/dist/solutions-components/p-470a9ec4.entry.js +6 -0
  642. package/dist/solutions-components/{p-d62784a4.js → p-476e5302.js} +1 -1
  643. package/dist/solutions-components/{p-5961c4e0.js → p-4a75b3dc.js} +1 -1
  644. package/dist/solutions-components/{p-42c7a5fa.entry.js → p-4d76eaf6.entry.js} +2 -2
  645. package/dist/solutions-components/{p-4e4b55b9.entry.js → p-4f9f97b2.entry.js} +3 -3
  646. package/dist/solutions-components/{p-67ce3c0c.entry.js → p-56f1d66b.entry.js} +3 -3
  647. package/dist/solutions-components/{p-5b9b1cbb.entry.js → p-58167087.entry.js} +3 -3
  648. package/dist/solutions-components/{p-ad72a379.entry.js → p-586f0e3d.entry.js} +3 -3
  649. package/dist/solutions-components/{p-6f2edf5b.js → p-588bc0c0.js} +1 -1
  650. package/dist/solutions-components/{p-a040efff.js → p-5958dad9.js} +1 -1
  651. package/dist/solutions-components/{p-4d17943f.js → p-5c9fa0e7.js} +1 -1
  652. package/dist/solutions-components/{p-b4157e6a.js → p-5ceef49b.js} +1 -1
  653. package/dist/solutions-components/{p-c9858d8f.entry.js → p-5d62566c.entry.js} +2 -2
  654. package/dist/solutions-components/{p-5f5c371e.js → p-5e08d4de.js} +1 -1
  655. package/dist/solutions-components/{p-b684bbc7.entry.js → p-5eaaf6ea.entry.js} +1 -1
  656. package/dist/solutions-components/{p-10248e04.js → p-60c15592.js} +1 -1
  657. package/dist/solutions-components/{p-7601988d.entry.js → p-6295e168.entry.js} +2 -2
  658. package/dist/solutions-components/{p-4f0c3fc1.js → p-635bbbd4.js} +1 -1
  659. package/dist/solutions-components/{p-aeebdb15.js → p-636f4631.js} +1 -1
  660. package/dist/solutions-components/{p-fb7e0054.js → p-643a0325.js} +1 -1
  661. package/dist/solutions-components/{p-606ca126.js → p-64e2c099.js} +1 -1
  662. package/dist/solutions-components/{p-ad4d6d02.entry.js → p-651459e2.entry.js} +4 -4
  663. package/dist/solutions-components/{p-b0c4138f.entry.js → p-667e7134.entry.js} +2 -2
  664. package/dist/solutions-components/{p-4b95d05e.entry.js → p-66b5211f.entry.js} +1 -1
  665. package/dist/solutions-components/{p-216801d5.js → p-688f6a0a.js} +1 -1
  666. package/dist/solutions-components/{p-3e139360.js → p-6be3c411.js} +1 -1
  667. package/dist/solutions-components/{p-6a524392.entry.js → p-6ce7b446.entry.js} +2 -2
  668. package/dist/solutions-components/{p-0e7914e6.entry.js → p-6ddc9567.entry.js} +3 -3
  669. package/dist/solutions-components/{p-1ea1dcac.js → p-6eb4ba8f.js} +1 -1
  670. package/dist/solutions-components/{p-7b9adfff.js → p-7060caf6.js} +1 -1
  671. package/dist/solutions-components/{p-bd3a3afe.js → p-7262469a.js} +1 -1
  672. package/dist/solutions-components/{p-3f0193e9.js → p-73220ff1.js} +1 -1
  673. package/dist/solutions-components/{p-31ff3452.entry.js → p-78a40191.entry.js} +2 -2
  674. package/dist/solutions-components/{p-82199b7b.entry.js → p-7a027758.entry.js} +1 -1
  675. package/dist/solutions-components/{p-a843af2a.js → p-7b2314ac.js} +1 -1
  676. package/dist/solutions-components/p-7bb12deb.js +11 -0
  677. package/dist/solutions-components/{p-56300653.js → p-7f271c31.js} +5 -5
  678. package/dist/solutions-components/p-7f9642d5.js +21 -0
  679. package/dist/solutions-components/{p-5c097e25.entry.js → p-80cb42e4.entry.js} +3 -3
  680. package/dist/solutions-components/{p-5383607a.js → p-80ea5869.js} +3 -3
  681. package/dist/solutions-components/{p-ab8f5c6b.entry.js → p-81814234.entry.js} +2 -2
  682. package/dist/solutions-components/{p-abda8ca2.entry.js → p-8544d557.entry.js} +2 -2
  683. package/dist/solutions-components/{p-680d193d.entry.js → p-864c190b.entry.js} +3 -3
  684. package/dist/solutions-components/p-869d4521.entry.js +6 -0
  685. package/dist/solutions-components/{p-d3a22725.js → p-872036a8.js} +1 -1
  686. package/dist/solutions-components/{p-22d580b0.entry.js → p-879d6377.entry.js} +3 -3
  687. package/dist/solutions-components/{p-4805ff13.js → p-87d66120.js} +1 -1
  688. package/dist/solutions-components/{p-9cb94ea0.js → p-8927339d.js} +1 -1
  689. package/dist/solutions-components/{p-7aa949a3.entry.js → p-89504313.entry.js} +2 -2
  690. package/dist/solutions-components/{p-cf43278c.entry.js → p-8af52074.entry.js} +3 -3
  691. package/dist/solutions-components/{p-3fc17d72.js → p-8b448a5b.js} +1 -1
  692. package/dist/solutions-components/{p-03fccde6.entry.js → p-8b74f5bb.entry.js} +3 -3
  693. package/dist/solutions-components/{p-2ae17fa2.js → p-8c61431d.js} +1 -1
  694. package/dist/solutions-components/{p-634e1240.js → p-8d00a17e.js} +1 -1
  695. package/dist/solutions-components/{p-c07af9c2.entry.js → p-8f68f1d3.entry.js} +2 -2
  696. package/dist/solutions-components/{p-e6bee82f.js → p-8f8d2861.js} +1 -1
  697. package/dist/solutions-components/{p-108fbf59.entry.js → p-90cef98d.entry.js} +1 -1
  698. package/dist/solutions-components/{p-9603c3ff.entry.js → p-9370bb48.entry.js} +2 -2
  699. package/dist/solutions-components/{p-75f26870.js → p-95c11620.js} +13 -13
  700. package/dist/solutions-components/{p-a777b18c.js → p-96239d0d.js} +2 -2
  701. package/dist/solutions-components/{p-215d3505.js → p-99402001.js} +1 -1
  702. package/dist/solutions-components/p-99891e57.js +11 -0
  703. package/dist/solutions-components/{p-15ef7894.js → p-9a35ef8e.js} +1 -1
  704. package/dist/solutions-components/{p-35123c90.js → p-9b76bf3d.js} +1 -1
  705. package/dist/solutions-components/p-9eba78eb.entry.js +6 -0
  706. package/dist/solutions-components/{p-6b2f2b85.js → p-a16feeec.js} +4 -4
  707. package/dist/solutions-components/{p-e645edf2.entry.js → p-a1c6db13.entry.js} +1 -1
  708. package/dist/solutions-components/{p-0cc32f06.js → p-a287be8b.js} +1 -1
  709. package/dist/solutions-components/{p-052ff2c7.js → p-a46f1b45.js} +1 -1
  710. package/dist/solutions-components/{p-1f468797.js → p-ab072027.js} +1 -1
  711. package/dist/solutions-components/{p-31316d61.entry.js → p-ac0abf04.entry.js} +3 -3
  712. package/dist/solutions-components/{p-38ef0684.js → p-ad75b9bb.js} +2 -2
  713. package/dist/solutions-components/{p-a08bd8c1.entry.js → p-ae6a7b3b.entry.js} +1 -1
  714. package/dist/solutions-components/{p-05db4340.js → p-aea37c90.js} +1 -1
  715. package/dist/solutions-components/{p-164be8ef.entry.js → p-b25005cf.entry.js} +1 -1
  716. package/dist/solutions-components/{p-b2e6c578.js → p-b28b6d40.js} +1 -1
  717. package/dist/solutions-components/{p-639cca97.js → p-b28ff52c.js} +1 -1
  718. package/dist/solutions-components/{p-21f00df6.js → p-bde323ec.js} +1 -1
  719. package/dist/solutions-components/{p-a0edbb27.js → p-be146646.js} +1 -1
  720. package/dist/solutions-components/{p-a258f5e7.js → p-c1dcc1e7.js} +1 -1
  721. package/dist/solutions-components/{p-5e59219b.entry.js → p-c26cd409.entry.js} +1 -1
  722. package/dist/solutions-components/p-c3ab7439.js +11 -0
  723. package/dist/solutions-components/{p-283e3a2d.js → p-c6e55b32.js} +1 -1
  724. package/dist/solutions-components/{p-e10a62f4.entry.js → p-c79c7978.entry.js} +3 -3
  725. package/dist/solutions-components/{p-647a4130.js → p-c9633864.js} +3 -3
  726. package/dist/solutions-components/{p-916f90ec.entry.js → p-c968f9aa.entry.js} +1 -1
  727. package/dist/solutions-components/{p-cf1af08f.entry.js → p-c9df539a.entry.js} +1 -1
  728. package/dist/solutions-components/{p-93074bd4.entry.js → p-ca3d7edd.entry.js} +2 -2
  729. package/dist/solutions-components/{p-2005280f.js → p-cacfa6ae.js} +2 -2
  730. package/dist/solutions-components/{p-27a1ac1f.entry.js → p-cc2393c3.entry.js} +3 -3
  731. package/dist/solutions-components/p-cd673260.js +6 -0
  732. package/dist/solutions-components/{p-761a033a.entry.js → p-cec47579.entry.js} +2 -2
  733. package/dist/solutions-components/{p-32ef065d.entry.js → p-ced11bea.entry.js} +2 -2
  734. package/dist/solutions-components/{p-ee066c67.js → p-cee23126.js} +5 -5
  735. package/dist/solutions-components/p-d2d3e4b5.js +11 -0
  736. package/dist/solutions-components/p-d4cb29ed.entry.js +6 -0
  737. package/dist/solutions-components/{p-0ece6df1.entry.js → p-d6f68a4e.entry.js} +2 -2
  738. package/dist/solutions-components/{p-326fa270.js → p-d864b7e3.js} +1 -1
  739. package/dist/solutions-components/{p-5adf37ea.entry.js → p-da6acb22.entry.js} +2 -2
  740. package/dist/solutions-components/{p-de58bd49.js → p-e0c011b8.js} +1 -1
  741. package/dist/solutions-components/{p-58ce5639.js → p-e0fb0920.js} +1 -1
  742. package/dist/solutions-components/{p-b1f84ae5.js → p-e2637fe6.js} +1 -1
  743. package/dist/solutions-components/{p-ef96894d.entry.js → p-e2eb4fd3.entry.js} +4 -4
  744. package/dist/solutions-components/{p-18869c0f.js → p-e3525c00.js} +1 -1
  745. package/dist/solutions-components/{p-1add4e39.entry.js → p-e3d72832.entry.js} +2 -2
  746. package/dist/solutions-components/{p-6431fd69.js → p-e4d2fcc5.js} +3 -3
  747. package/dist/solutions-components/{p-f055a840.js → p-e761b7cd.js} +1 -1
  748. package/dist/solutions-components/{p-4daae757.js → p-ea285144.js} +1 -1
  749. package/dist/solutions-components/p-ebbff02e.js +6 -0
  750. package/dist/solutions-components/{p-07bc4f07.entry.js → p-ec378ea0.entry.js} +3 -3
  751. package/dist/solutions-components/{p-12a4fa84.js → p-ec889511.js} +1 -1
  752. package/dist/solutions-components/{p-e02fcfa9.entry.js → p-f153f1c9.entry.js} +2 -2
  753. package/dist/solutions-components/{p-b49bdc72.entry.js → p-f596eabd.entry.js} +1 -1
  754. package/dist/solutions-components/{p-3aba40e8.js → p-f7b520ae.js} +2 -2
  755. package/dist/solutions-components/{p-4c43820f.entry.js → p-f815b5ef.entry.js} +1 -1
  756. package/dist/solutions-components/p-fb7ca639.entry.js +6 -0
  757. package/dist/solutions-components/{p-955a956a.entry.js → p-fe96e0d9.entry.js} +4 -4
  758. package/dist/solutions-components/{p-b5d67495.entry.js → p-feff224c.entry.js} +2 -2
  759. package/dist/solutions-components/solutions-components.esm.js +1 -1
  760. package/dist/solutions-components/utils/downloadUtils.ts +358 -326
  761. package/dist/solutions-components/utils/interfaces.ts +11 -0
  762. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +587 -61
  763. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +28 -4
  764. package/dist/types/components/info-card/info-card.d.ts +23 -0
  765. package/dist/types/components/layer-table/layer-table.d.ts +14 -2
  766. package/dist/types/components/map-card/map-card.d.ts +6 -2
  767. package/dist/types/components/map-legend/map-legend.d.ts +64 -0
  768. package/dist/types/components/map-tools/map-tools.d.ts +11 -41
  769. package/dist/types/components.d.ts +40 -11
  770. package/dist/types/preact.d.ts +2 -0
  771. package/dist/types/utils/downloadUtils.d.ts +126 -15
  772. package/dist/types/utils/interfaces.d.ts +9 -0
  773. package/package.json +4 -10
  774. package/dist/solutions-components/p-2d70d3fd.js +0 -12
  775. package/dist/solutions-components/p-361f1fe1.js +0 -11
  776. package/dist/solutions-components/p-3bd99fc9.js +0 -11
  777. package/dist/solutions-components/p-418d0b60.entry.js +0 -6
  778. package/dist/solutions-components/p-525f1188.js +0 -11
  779. package/dist/solutions-components/p-55aefaa8.entry.js +0 -6
  780. package/dist/solutions-components/p-5b5a6ac8.entry.js +0 -6
  781. package/dist/solutions-components/p-7b90c18e.entry.js +0 -6
  782. package/dist/solutions-components/p-91caf655.entry.js +0 -11
  783. package/dist/solutions-components/p-a0a2c53d.js +0 -21
  784. package/dist/solutions-components/p-a6c85bd7.entry.js +0 -6
  785. package/dist/solutions-components/p-b6578a32.js +0 -6
  786. package/dist/solutions-components/p-baccfd70.entry.js +0 -6
  787. package/dist/solutions-components/p-bba3fa4e.entry.js +0 -11
  788. package/dist/solutions-components/p-c1ee0d69.js +0 -11
  789. package/dist/solutions-components/p-d6322e4b.js +0 -6
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as i,c as t,h as e,H as a,g as o}from"./p-9310b882.js";import{c as n,d as s}from"./p-525f1188.js";import{g as r,r as l,f as c,u as d}from"./p-6b2f2b85.js";import{d as h,a as m,c as p,u as b}from"./p-5383607a.js";import{s as u,a as v,c as x}from"./p-d62784a4.js";import{c as g}from"./p-6f2edf5b.js";import{o as f}from"./p-c1ee0d69.js";import{c as k,d as z}from"./p-56300653.js";import{s as w,c as y,d as C,u as $}from"./p-1ede2e18.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-2291b598.js";
6
+ import{r as i,c as t,h as e,H as a,g as o}from"./p-9310b882.js";import{c as n,d as s}from"./p-c3ab7439.js";import{g as r,r as l,f as c,u as d}from"./p-a16feeec.js";import{d as h,a as m,c as p,u as b}from"./p-80ea5869.js";import{s as u,a as v,c as x}from"./p-476e5302.js";import{c as g}from"./p-588bc0c0.js";import{o as f}from"./p-7bb12deb.js";import{c as k,d as z}from"./p-7f271c31.js";import{s as w,c as y,d as C,u as $}from"./p-2592c0b8.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v1.6.0
10
+ * v1.6.1
11
11
  */const j="modal",M="header",O="container",D="modal--opening-idle",F="modal--opening-active",B="modal--closing-idle",L="modal--closing-active",S="content",T="back",E="secondary",H="primary",q=class{constructor(e){i(this,e),this.calciteModalBeforeClose=t(this,"calciteModalBeforeClose",6),this.calciteModalClose=t(this,"calciteModalClose",6),this.calciteModalBeforeOpen=t(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=t(this,"calciteModalOpen",6),this.mutationObserver=g("mutation",(()=>this.handleMutationObserver())),this.cssVarObserver=g("mutation",(()=>{this.updateSizeCssVars()})),this.openTransitionProp="opacity",this.setTransitionEl=i=>{this.transitionEl=i},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleOutsideClose=()=>{this.outsideCloseDisabled||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!r(this.el,[T,H,E])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=i=>{this.hasContentTop=l(i)},this.contentBottomSlotChangeHandler=i=>{this.hasContentBottom=l(i)},this.open=!1,this.beforeClose=()=>Promise.resolve(),this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.escapeDisabled=!1,this.scale="m",this.width="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.isOpen=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(i){this.open&&(i?h(this):m(this))}onMessagesChange(){}async componentWillLoad(){await w(this),u(this),this.open&&(f(this),requestAnimationFrame((()=>this.openModal())))}componentDidLoad(){v(this)}connectedCallback(){var i,t;null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0}),null===(t=this.cssVarObserver)||void 0===t||t.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),n(this),k(this),y(this),p(this)}disconnectedCallback(){var i,t;this.removeOverflowHiddenClass(),null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(t=this.cssVarObserver)||void 0===t||t.disconnect(),s(this),h(this),z(this),C(this),this.slottedInShell=!1}render(){return e(a,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},e("div",{class:{[O]:!0,"container--open":this.isOpen,"slotted-in-shell":this.slottedInShell}},e("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),e("div",{class:{[j]:!0},ref:this.setTransitionEl},e("div",{class:M},this.renderCloseButton(),e("header",{class:"title"},e("slot",{name:M}))),this.renderContentTop(),e("div",{class:{content:!0,"content--no-footer":!this.hasFooter},ref:i=>this.modalContent=i},e("slot",{name:S})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?e("div",{class:"footer",key:"footer"},e("span",{class:"back"},e("slot",{name:T})),e("span",{class:"secondary"},e("slot",{name:E})),e("span",{class:"primary"},e("slot",{name:H}))):null}renderContentTop(){return e("div",{class:"content-top",hidden:!this.hasContentTop},e("slot",{name:"content-top",onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return e("div",{class:"content-bottom",hidden:!this.hasContentBottom},e("slot",{name:"content-bottom",onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:e("button",{"aria-label":this.messages.close,class:"close",key:"button",onClick:this.close,title:this.messages.close,ref:i=>this.closeButtonEl=i},e("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return e("style",null,`.${O} {\n ${this.docked&&this.cssWidth?"align-items: center !important;":""}\n }\n .${j} {\n block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;\n ${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}\n ${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}\n ${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}\n }\n @media screen and (max-width: ${this.cssWidth}) {\n .${O} {\n ${this.docked?"align-items: flex-end !important;":""}\n }\n .${j} {\n max-block-size: 100% !important;\n inline-size: 100% !important;\n max-inline-size: 100% !important;\n min-inline-size: 100% !important;\n margin: 0 !important;\n ${this.docked?"":"block-size: 100% !important;"}\n ${this.docked?"":"border-radius: 0 !important;"}\n ${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}\n }\n }\n `)}effectiveLocaleChange(){$(this,this.effectiveLocale)}handleEscape(i){!this.open||this.escapeDisabled||"Escape"!==i.key||i.defaultPrevented||(this.close(),i.preventDefault())}async setFocus(){await x(this),c(this.el)}async updateFocusTrapElements(){b(this)}async scrollContent(i=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:i,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=i,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add(F),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(D,F),this.calciteModalOpen.emit(),m(this)}onBeforeClose(){this.transitionEl.classList.add(L),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove(B,L),this.calciteModalClose.emit(),h(this)}async toggleModal(i){var t,e;f(this),i?(null===(t=this.transitionEl)||void 0===t||t.classList.add(D),this.openModal()):(null===(e=this.transitionEl)||void 0===e||e.classList.add(B),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const i=r(this.el,"header"),t=r(this.el,S);this.titleId=d(i),this.contentId=d(t),this.slottedInShell||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"]}}};q.style=":host{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]) .container{align-items:flex-end}}:host([width=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]) .container{align-items:flex-end}}:host([width=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header,:host([open][fullscreen]) .footer,:host([open][fullscreen]) .content-top,:host([open][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-ui-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-ui-danger)}:host([kind=info]) .modal{border-color:var(--calcite-ui-info)}:host([kind=success]) .modal{border-color:var(--calcite-ui-success)}:host([kind=warning]) .modal{border-color:var(--calcite-ui-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container.slotted-in-shell{position:absolute;pointer-events:auto}.container.slotted-in-shell calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}";export{q as calcite_modal}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as e}from"./p-6431fd69.js";import"./p-9310b882.js";import"./p-2d70d3fd.js";import"./p-6b2f2b85.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-38ef0684.js";import"./p-2291b598.js";import"./p-3bd99fc9.js";import"./p-d62784a4.js";import"./p-56300653.js";import"./p-6f2edf5b.js";import"./p-5383607a.js";import"./p-a777b18c.js";import"./p-1ede2e18.js";var r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function t(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var n={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(n,null,!0);export default n;
6
+ import{d as e}from"./p-e4d2fcc5.js";import"./p-9310b882.js";import"./p-072155f9.js";import"./p-a16feeec.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-ad75b9bb.js";import"./p-43ba7a04.js";import"./p-d2d3e4b5.js";import"./p-476e5302.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-2592c0b8.js";var r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function t(e,t,n){var a=r[n];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var n={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(n,null,!0);export default n;
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as r}from"./p-6431fd69.js";import"./p-9310b882.js";import"./p-2d70d3fd.js";import"./p-6b2f2b85.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-38ef0684.js";import"./p-2291b598.js";import"./p-3bd99fc9.js";import"./p-d62784a4.js";import"./p-56300653.js";import"./p-6f2edf5b.js";import"./p-5383607a.js";import"./p-a777b18c.js";import"./p-1ede2e18.js";var e={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(r){return r+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};r.locale(e,null,!0);export default e;
6
+ import{d as e}from"./p-e4d2fcc5.js";import"./p-9310b882.js";import"./p-072155f9.js";import"./p-a16feeec.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-ad75b9bb.js";import"./p-43ba7a04.js";import"./p-d2d3e4b5.js";import"./p-476e5302.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-2592c0b8.js";var r={name:"nb",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"}};e.locale(r,null,!0);export default r;
@@ -6,6 +6,6 @@
6
6
  /*!
7
7
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
8
8
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
9
- * v1.6.0
9
+ * v1.6.1
10
10
  */
11
11
  const n=/^[0-9A-F]$/i,r=/^#[0-9A-F]{3}$/i,t=/^#[0-9A-F]{6}$/i,e=/^#[0-9A-F]{4}$/i,s=/^#[0-9A-F]{8}$/i,u=n=>Number((100*n).toFixed()),a=n=>Number((n/100).toFixed(2));function i(n,r=!1){return c(n,r)||o(n,r)}function f(n,r,t){return!!n&&n.length===r&&t.test(n)}function c(n,t=!1){return f(n,t?5:4,t?e:r)}function o(n,r=!1){return f(n,r?9:7,r?s:t)}function $(n,r=!1,t=!1){return(n=n.toLowerCase()).startsWith("#")||(n=`#${n}`),c(n,r)?h(S(n,r)):r&&t&&i(n,!1)?h(S(`${n}${c(n,!1)?"f":"ff"}`,!0)):n}function l(n,r=!1){return r?n.hexa():n.hex()}function h(n){const{r,g:t,b:e}=n;return`#${b(r)}${b(t)}${b(e)}${"a"in n?b(255*n.a):""}`.toLowerCase()}function b(n){return n.toString(16).padStart(2,"0")}function g(n){const r={...n,a:n.alpha??1};return delete r.alpha,r}function p(n){const r={...n,alpha:n.a??1};return delete r.a,r}function S(n,r=!1){if(!i(n,r))return null;let t,e,s,u;if(3===(n=n.replace("#","")).length||4===n.length){const[r,a,i,f]=n.split("");t=parseInt(`${r}${r}`,16),e=parseInt(`${a}${a}`,16),s=parseInt(`${i}${i}`,16),u=parseInt(`${f}${f}`,16)/255}else t=parseInt(n.slice(0,2),16),e=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16),u=parseInt(n.slice(6,8),16)/255;return isNaN(u)?{r:t,g:e,b:s}:{r:t,g:e,b:s,a:u}}const A={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},I="rgb",C="rgba",F="hsl",H="hsla",N="hsv",_="hsva";function d(n){if("string"==typeof n){if(n.startsWith("#")){const{length:r}=n;if(4===r||7===r)return A.HEX;if(5===r||9===r)return A.HEXA}if(n.startsWith("rgba("))return A.RGBA_CSS;if(n.startsWith("rgb("))return A.RGB_CSS;if(n.startsWith("hsl("))return A.HSL_CSS;if(n.startsWith("hsla("))return A.HSLA_CSS}if("object"==typeof n){if(v(n,"r","g","b"))return v(n,"a")?C:I;if(v(n,"h","s","l"))return v(n,"a")?H:F;if(v(n,"h","s","v"))return v(n,"a")?_:N}return null}function v(n,...r){return r.every((r=>r&&n&&`${r}`in n))}function x(n,r){return n?.rgb().array().toString()===r?.rgb().array().toString()}function j(n){return n===A.HEXA||n===A.RGBA_CSS||n===A.HSLA_CSS||n===C||n===H||n===_}function m(n){return n===A.HEX?A.HEXA:n===A.RGB_CSS?A.RGBA_CSS:n===A.HSL_CSS?A.HSLA_CSS:n===I?C:n===F?H:n===N?_:n}function y(n){return n===A.HEXA?A.HEX:n===A.RGBA_CSS?A.RGB_CSS:n===A.HSLA_CSS?A.HSL_CSS:n===C?I:n===H?F:n===_?N:n}export{A as C,u as a,j as b,x as c,g as d,m as e,p as f,S as g,l as h,i,o as j,n as k,$ as n,a as o,d as p,h as r,y as t}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as i}from"./p-6431fd69.js";import"./p-9310b882.js";import"./p-2d70d3fd.js";import"./p-6b2f2b85.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-38ef0684.js";import"./p-2291b598.js";import"./p-3bd99fc9.js";import"./p-d62784a4.js";import"./p-56300653.js";import"./p-6f2edf5b.js";import"./p-5383607a.js";import"./p-a777b18c.js";import"./p-1ede2e18.js";var e={name:"ro",weekdays:"Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"peste %s",past:"acum %s",s:"câteva secunde",m:"un minut",mm:"%d minute",h:"o oră",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lună",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(i){return i}};i.locale(e,null,!0);export default e;
6
+ import{d as e}from"./p-e4d2fcc5.js";import"./p-9310b882.js";import"./p-072155f9.js";import"./p-a16feeec.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-ad75b9bb.js";import"./p-43ba7a04.js";import"./p-d2d3e4b5.js";import"./p-476e5302.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-2592c0b8.js";var i={name:"ro",weekdays:"Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"peste %s",past:"acum %s",s:"câteva secunde",m:"un minut",mm:"%d minute",h:"o oră",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lună",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(e){return e}};e.locale(i,null,!0);export default i;
@@ -3,20 +3,20 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,h as e,H as s,g as o}from"./p-9310b882.js";import{q as n,i as a,A as r,t as l}from"./p-6b2f2b85.js";import{c,b as h,a as d,r as f,F as p}from"./p-2005280f.js";import{g as u}from"./p-3fc17d72.js";import{o as m}from"./p-c1ee0d69.js";import{F as g}from"./p-29d41c7e.js";import"./p-18869c0f.js";import"./p-a82f35c9.js";
6
+ import{r as t,c as i,h as e,H as s,g as o}from"./p-9310b882.js";import{q as n,i as a,A as r,t as l}from"./p-a16feeec.js";import{c,b as h,a as d,r as f,F as p}from"./p-cacfa6ae.js";import{g as u}from"./p-8b448a5b.js";import{o as m}from"./p-7bb12deb.js";import{F as g}from"./p-0f85fa4b.js";import"./p-e3525c00.js";import"./p-a82f35c9.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v1.6.0
10
+ * v1.6.1
11
11
  */const v="aria-describedby";
12
12
  /*!
13
13
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
14
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
15
- * v1.6.0
15
+ * v1.6.1
16
16
  */
17
17
  function b(t){const{referenceElement:i}=t;return("string"==typeof i?n(t,{id:i}):i)||null}
18
18
  /*!
19
19
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
20
20
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
21
- * v1.6.0
21
+ * v1.6.1
22
22
  */const w=new class{constructor(){this.registeredElements=new WeakMap,this.registeredShadowRootCounts=new WeakMap,this.hoverOpenTimeout=null,this.hoverCloseTimeout=null,this.hoveredTooltip=null,this.clickedTooltip=null,this.activeTooltip=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{activeTooltip:i}=this;if(i?.open){this.clearHoverTimeout(),this.closeActiveTooltip();const e=b(i);e instanceof Element&&e.contains(t.target)&&t.preventDefault()}}},this.pointerMoveHandler=t=>{const i=t.composedPath(),{activeTooltip:e}=this;if(e?.open&&i.includes(e))return void this.clearHoverTimeout();const s=this.queryTooltip(i);this.hoveredTooltip=s,this.isClosableClickedTooltip(s)||(this.clickedTooltip=null,s?this.openHoveredTooltip(s):e&&this.closeHoveredTooltip())},this.pointerDownHandler=t=>{if(!a(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.openHoveredTooltip=t=>{this.hoverOpenTimeout=window.setTimeout((()=>{null!==this.hoverOpenTimeout&&(this.clearHoverCloseTimeout(),this.activeTooltip!==this.hoveredTooltip&&(this.closeActiveTooltip(),t===this.hoveredTooltip&&this.toggleTooltip(t,!0)))}),this.activeTooltip?0:300)},this.closeHoveredTooltip=()=>{this.hoverCloseTimeout=window.setTimeout((()=>{null!==this.hoverCloseTimeout&&this.closeActiveTooltip()}),500)}}registerElement(t,i){this.registeredElementCount++,this.registeredElements.set(t,i);const e=this.getReferenceElShadowRootNode(t);e&&this.registerShadowRoot(e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){const i=this.getReferenceElShadowRootNode(t);i&&this.unregisterShadowRoot(i),this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}addShadowListeners(t){t.addEventListener("focusin",this.focusInHandler,{capture:!0}),t.addEventListener("focusout",this.focusOutHandler,{capture:!0})}removeShadowListeners(t){t.removeEventListener("focusin",this.focusInHandler,{capture:!0}),t.removeEventListener("focusout",this.focusOutHandler,{capture:!0})}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})}clearHoverOpenTimeout(){window.clearTimeout(this.hoverOpenTimeout),this.hoverOpenTimeout=null}clearHoverCloseTimeout(){window.clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null}clearHoverTimeout(){this.clearHoverOpenTimeout(),this.clearHoverCloseTimeout()}closeActiveTooltip(){const{activeTooltip:t}=this;t?.open&&this.toggleTooltip(t,!1)}toggleFocusedTooltip(t,i){this.closeActiveTooltip(),i&&this.clearHoverTimeout(),this.toggleTooltip(t,i)}toggleTooltip(t,i){t.open=i,this.activeTooltip=i?t:null}queryFocusedTooltip(t,i){const e=this.queryTooltip(t.composedPath());e&&!this.isClosableClickedTooltip(e)&&this.toggleFocusedTooltip(e,i)}isClosableClickedTooltip(t){return t?.closeOnClick&&t===this.clickedTooltip}registerShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=(i.get(t)??0)+1;1===e&&this.addShadowListeners(t),i.set(t,e)}unregisterShadowRoot(t){const{registeredShadowRootCounts:i}=this,e=i.get(t)-1;0===e&&this.removeShadowListeners(t),i.set(t,e)}getReferenceElShadowRootNode(t){return t instanceof Element?r(t):null}},y=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-${u()}`,this.hasLoaded=!1,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=b(this.el),c(this,this.effectiveReferenceElement,this.el);const{el:i,referenceElement:e,effectiveReferenceElement:s}=this;t&&e&&!s&&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),w.registerElement(t,this.el)},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&t.removeAttribute(v),w.unregisterElement(t))},this.closeOnClick=!1,this.label=void 0,this.offsetDistance=h,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.effectiveReferenceElement=void 0,this.floatingLayout="vertical"}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(t){m(this),t&&this.reposition(!0)}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement()}connectedCallback(){this.setUpReferenceElement(this.hasLoaded),this.open&&m(this)}async componentWillLoad(){this.open&&m(this)}componentDidLoad(){this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.reposition(!0),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),d(this,this.effectiveReferenceElement,this.el)}async reposition(t=!1){const{el:i,effectiveReferenceElement:e,placement:s,overlayPositioning:o,offsetDistance:n,offsetSkidding:a,arrowEl:r}=this;return f(this,{floatingEl:i,referenceEl:e,overlayPositioning:o,placement:s,offsetDistance:n,offsetSkidding:a,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,floatingLayout:n}=this,a=t&&o,r=!a;return e(s,{"aria-hidden":l(r),"aria-label":i,"aria-live":"polite","calcite-hydrated-hidden":r,id:this.getId(),role:"tooltip"},e("div",{class:{[p.animation]:!0,[p.animationActive]:a},ref:this.setTransitionEl},e(g,{floatingLayout:n,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"]}}};y.style=":host{--calcite-floating-ui-z-index:var(--calcite-tooltip-z-index, var(--calcite-app-z-index-tooltip));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:var(--calcite-app-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-app-z-index) * -1);fill:var(--calcite-ui-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-ui-border-3)}.container{position:relative;overflow:hidden;border-radius:0.25rem;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)}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_tooltip}
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as i,c as e,h as t,H as n,g as c}from"./p-9310b882.js";import{r as a,t as s}from"./p-6b2f2b85.js";import{c as o,d as r}from"./p-525f1188.js";import{a as l,s as h,c as d}from"./p-d62784a4.js";import{u as p,c as u,d as v,s as m}from"./p-1ede2e18.js";import{c as b,u as g,d as f}from"./p-38ef0684.js";import{c as k,d as x}from"./p-56300653.js";import{c as y}from"./p-6f2edf5b.js";import{i as z}from"./p-2291b598.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";
6
+ import{r as i,c as e,h as t,H as n,g as c}from"./p-9310b882.js";import{r as a,t as s}from"./p-a16feeec.js";import{c as o,d as r}from"./p-c3ab7439.js";import{a as l,s as h,c as d}from"./p-476e5302.js";import{u as p,c as u,d as v,s as m}from"./p-2592c0b8.js";import{c as b,u as g,d as f}from"./p-ad75b9bb.js";import{c as k,d as x}from"./p-7f271c31.js";import{c as y}from"./p-588bc0c0.js";import{i as z}from"./p-43ba7a04.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v1.6.0
10
+ * v1.6.1
11
11
  */const w=class{constructor(t){i(this,t),this.calciteChipClose=e(this,"calciteChipClose",6),this.calciteChipSelect=e(this,"calciteChipSelect",6),this.calciteInternalChipKeyEvent=e(this,"calciteInternalChipKeyEvent",6),this.mutationObserver=y("mutation",(()=>this.updateHasText())),this.close=()=>{this.calciteChipClose.emit(),this.selected=!1,this.closed=!0},this.closeButtonKeyDownHandler=i=>{z(i.key)&&(i.preventDefault(),this.close())},this.handleSlotImageChange=i=>{this.hasImage=a(i)},this.handleEmittingEvent=()=>{this.interactive&&this.calciteChipSelect.emit()},this.disabled=!1,this.appearance="solid",this.kind="neutral",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.label=void 0,this.value=void 0,this.closed=!1,this.selectionMode="none",this.selected=!1,this.messageOverrides=void 0,this.messages=void 0,this.interactive=!1,this.defaultMessages=void 0,this.effectiveLocale=void 0,this.hasText=!1,this.hasImage=!1}onMessagesChange(){}effectiveLocaleChange(){p(this,this.effectiveLocale)}connectedCallback(){var i;o(this),b(this),k(this),u(this),null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0})}componentDidLoad(){l(this)}componentDidRender(){g(this)}disconnectedCallback(){var i;r(this),f(this),x(this),v(this),null===(i=this.mutationObserver)||void 0===i||i.disconnect()}async componentWillLoad(){h(this),await m(this),this.updateHasText()}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.handleEmittingEvent(),i.preventDefault();break;case"ArrowRight":case"ArrowLeft":case"Home":case"End":this.calciteInternalChipKeyEvent.emit(i),i.preventDefault()}}clickHandler(){!this.interactive&&this.closable&&this.closeButtonEl.focus()}async setFocus(){var i,e;await d(this),!this.disabled&&this.interactive?null===(i=this.containerEl)||void 0===i||i.focus():!this.disabled&&this.closable&&(null===(e=this.closeButtonEl)||void 0===e||e.focus())}updateHasText(){this.hasText=this.el.textContent.trim().length>0}renderChipImage(){return t("div",{class:"image-container"},t("slot",{name:"image",onSlotchange:this.handleSlotImageChange}))}renderSelectionIcon(){return t("div",{class:{"select-icon":!0,"select-icon--active":"multiple"===this.selectionMode||this.selected}},t("calcite-icon",{icon:"multiple"===this.selectionMode&&this.selected?"check-circle-f":"multiple"===this.selectionMode?"circle":this.selected?"circle-f":void 0,scale:"l"===this.scale?"m":"s"}))}renderCloseButton(){return t("button",{"aria-label":this.messages.dismissLabel,class:"close",onClick:this.close,onKeyDown:this.closeButtonKeyDownHandler,tabIndex:this.disabled?-1:0,ref:i=>this.closeButtonEl=i},t("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"}))}renderIcon(){return t("calcite-icon",{class:"chip-icon",flipRtl:this.iconFlipRtl,icon:this.icon,scale:"l"===this.scale?"m":"s"})}render(){const i=this.disabled||!this.disabled&&!this.interactive,e="multiple"===this.selectionMode&&this.interactive?"checkbox":"none"!==this.selectionMode&&this.interactive?"radio":this.interactive?"button":void 0;return t(n,null,t("div",{"aria-checked":"none"!==this.selectionMode&&this.interactive?s(this.selected):void 0,"aria-disabled":i?s(this.disabled):void 0,"aria-label":this.label,class:{container:!0,"text--slotted":this.hasText,"image--slotted":this.hasImage,selectable:"none"!==this.selectionMode,multiple:"multiple"===this.selectionMode,closable:this.closable,"non-interactive":!this.interactive,"is-circle":!(this.closable||this.hasText||this.icon&&this.hasImage||"none"!==this.selectionMode&&(!this.selectionMode||"multiple"===this.selectionMode||this.selected))},onClick:this.handleEmittingEvent,role:e,tabIndex:i?-1:0,ref:i=>this.containerEl=i},"none"!==this.selectionMode&&this.renderSelectionIcon(),this.renderChipImage(),this.icon&&this.renderIcon(),t("span",{class:"title"},t("slot",null)),this.closable&&this.renderCloseButton()))}static get assetsDirs(){return["assets"]}get el(){return c(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){block-size:1.5rem;font-size:var(--calcite-font-size--2);--calcite-chip-spacing-s-internal:0.25rem;--calcite-chip-spacing-l-internal:0.5rem}:host([scale=s]) .close,:host([scale=s]) .select-icon--active{block-size:1rem;inline-size:1rem}:host([scale=s]) .image-container{block-size:1.25rem;inline-size:1.25rem}:host([scale=s]) .container.is-circle{block-size:1.5rem;inline-size:1.5rem}:host([scale=m]){block-size:2rem;font-size:var(--calcite-font-size--1);--calcite-chip-spacing-s-internal:0.375rem;--calcite-chip-spacing-l-internal:0.5rem}:host([scale=m]) .close,:host([scale=m]) .image-container,:host([scale=m]) .select-icon--active{block-size:1.5rem;inline-size:1.5rem}:host([scale=m]) .container.is-circle{block-size:2rem;inline-size:2rem}:host([scale=l]){block-size:2.75rem;font-size:var(--calcite-font-size-0);--calcite-chip-spacing-s-internal:0.5rem;--calcite-chip-spacing-l-internal:0.75rem}:host([scale=l]) .image-container,:host([scale=l]) .close,:host([scale=l]) .select-icon--active{block-size:2rem;inline-size:2rem}:host([scale=l]) .container.is-circle{block-size:2.75rem;inline-size:2.75rem}:host{display:inline-flex;cursor:default;border-radius:9999px}.container{box-sizing:border-box;display:inline-flex;block-size:100%;max-inline-size:100%;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1);font-weight:var(--calcite-font-weight-medium);outline-color:transparent}.container:not(.is-circle){padding-inline:var(--calcite-chip-spacing-s-internal)}.container.selectable{cursor:pointer}.container:not(.non-interactive):focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([scale=s]) .container.image--slotted{padding-inline-start:calc(0.125rem / 2)}:host([scale=s]) .container.is-circle{padding-inline:0}.container.text--slotted .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:var(--calcite-chip-spacing-s-internal)}.container:not(.text--slotted) .title{display:none}.container:not(.image--slotted) .image-container{display:none}.container.closable{padding-inline-end:calc(var(--calcite-chip-spacing-l-internal) / 2)}.container:not(.is-circle).image--slotted{padding-inline-start:calc(var(--calcite-chip-spacing-l-internal) / 2)}.container:not(.is-circle).image--slotted .image-container{margin-inline-end:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle).image--slotted .image-container~.chip-icon{margin-inline-start:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle).selectable:not(.text--slotted) .chip-icon{margin-inline-end:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle):not(.selectable):not(.text--slotted) .chip-icon{margin-inline-start:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle):not(.text--slotted) .chip-icon{margin-inline-end:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle):not(.text-slotted).image--slotted .image-container{margin-inline-end:var(--calcite-chip-spacing-s-internal)}.container:not(.is-circle):not(.closable):not(.text--slotted).image--slotted.selectable .image-container{margin-inline-end:0}.container:not(.is-circle):not(.closable):not(.text--slotted).image--slotted.selectable .image-container~.chip-icon{margin-inline-start:calc(var(--calcite-chip-spacing-s-internal) * 2)}.chip-icon{position:relative;margin-block:0px;display:inline-flex;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline:var(--calcite-chip-spacing-s-internal)}.image-container{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;pointer-events:none}.close{margin:0px;cursor:pointer;align-items:center;border-style:none;background-color:transparent;color:var(--calcite-ui-text-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;-webkit-appearance:none;display:flex;border-radius:50%;align-content:center;justify-content:center;--calcite-chip-transparent-hover:var(--calcite-button-transparent-hover);--calcite-chip-transparent-press:var(--calcite-button-transparent-press)}.close:hover{background-color:var(--calcite-chip-transparent-hover)}.close:focus{background-color:var(--calcite-chip-transparent-hover);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.close:active{background-color:var(--calcite-chip-transparent-press)}.close calcite-icon{color:inherit}.select-icon{align-self:center;justify-content:center;align-items:center;display:flex;inset-block-start:-1px;position:relative;visibility:hidden;inline-size:0;opacity:0;transition:opacity 0.15s ease-in-out, inline-size 0.15s ease-in-out}.select-icon.select-icon--active{visibility:visible;opacity:0.5}.container:not(.is-circle).image--slotted .select-icon.select-icon--active{margin-inline-end:var(--calcite-chip-spacing-s-internal)}:host([selected]) .select-icon{opacity:1}.container:hover .select-icon--active{opacity:1}slot[name=image]::slotted(*){display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}:host([kind=neutral]){background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host([kind=neutral]) .container{border-color:transparent}:host([kind=neutral]) .close{color:var(--calcite-ui-text-3)}:host([kind=neutral]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([kind=inverse]){background-color:var(--calcite-ui-inverse);color:var(--calcite-ui-text-inverse)}:host([kind=inverse]) .container{border-color:transparent}:host([kind=inverse]) .close{color:var(--calcite-ui-text-inverse)}:host([kind=inverse]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-inverse))}:host([kind=brand]){background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}:host([kind=brand]) .container{border-color:transparent}:host([kind=brand]) .close{color:var(--calcite-ui-text-inverse)}:host([kind=brand]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-inverse))}:host([appearance=outline-fill]),:host([appearance=outline]){background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1)}:host([appearance=outline-fill]) .close,:host([appearance=outline]) .close{color:var(--calcite-ui-text-3)}:host([appearance=outline-fill]) .chip-icon,:host([appearance=outline]) .chip-icon{color:var(--calcite-ui-icon-color, var(--calcite-ui-text-3))}:host([appearance=outline-fill]){background-color:var(--calcite-ui-foreground-1)}:host([appearance=outline]){background-color:transparent}:host([kind=neutral][appearance=outline-fill]) .container,:host([kind=neutral][appearance=outline]) .container{border-color:var(--calcite-ui-border-1)}:host([kind=inverse][appearance=outline-fill]) .container,:host([kind=inverse][appearance=outline]) .container{border-color:var(--calcite-ui-border-inverse)}:host([kind=brand][appearance=outline-fill]) .container,:host([kind=brand][appearance=outline]) .container{border-color:var(--calcite-ui-brand)}:host([kind=brand][appearance=solid]) button,:host([kind=inverse][appearance=solid]) button{outline-color:var(--calcite-ui-text-inverse)}:host([closed]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_chip}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as s,h as i,g as e}from"./p-9310b882.js";import{c as o,C as a,D as n,a as l,H as r,O as h,b as c,S as d,d as p,R as u}from"./p-58ce5639.js";import{i as f,a as m}from"./p-6b2f2b85.js";import{C as v,n as g,h as b,o as w,a as x,b as y,p as C,c as k,t as S,d as A,e as D,f as $}from"./p-fb7e0054.js";import{c as j,d as z,u as F}from"./p-38ef0684.js";import{i as L}from"./p-2291b598.js";import{c as O,s as M,a as N}from"./p-d62784a4.js";import{c as P,d as I}from"./p-56300653.js";import{r as K,c as E,a as U}from"./p-b9749e09.js";import{u as H,s as R,c as T,d as X}from"./p-1ede2e18.js";import{t as V}from"./p-6665fa1f.js";import"./p-e1a4994d.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-6f2edf5b.js";import"./p-a82f35c9.js";const q=class{constructor(e){t(this,e),this.calciteColorPickerChange=s(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=s(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=v.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:s}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[s]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===s||"ArrowUp"===s?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[s].x||0,this.colorFieldScopeTop+i[s].y||0,!1))},this.handleHueScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(a+o);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:s,color:i}=this,e=t.target.value;!s||e?e!==(i&&g(b(i,y(this.mode))))&&this.internalColorSet(o(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(o(t.currentTarget.color))},this.handleChannelInput=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=3===i?h.max:"rgb"===this.channelMode?u[Object.keys(u)[i]]:r[Object.keys(r)[i]];let o;if(this.allowEmpty&&!s.value)o="";else{const t=Number(s.value);o=E(t+this.shiftKeyChannelAdjustment,0,e).toString()}s.value=o},this.handleChannelChange=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=[...this.channels];if(this.allowEmpty&&!s.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const o=3===i,a=Number(s.value);e[i]=o?w(a):a,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{L(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:s,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(s,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(s),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(s),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const s=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),s&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:s,el:i}=this;if(!i.isConnected||!s)return;const{context:e,bounds:o}=s;let a,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(a=l-o.x,n=r-o.y):(a=l<o.x+o.width&&l>o.x?l-o.x:l<o.x?0:o.width,n=r<o.y+o.height&&r>o.y?r-o.y:r<o.y?0:o.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(a,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(a):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(a)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:s,messages:e}=this;return i("calcite-tab-title",{class:a.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===s},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:s,channelMode:e,channels:o,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=m(this.el),d=l?o:o.slice(0,3);return i("calcite-tab",{class:a.control,key:t,selected:r},i("div",{class:a.channels,dir:"ltr"},d.map(((t,i)=>{const e=3===i;return e&&(t=s&&!t?t:x(t)),this.renderChannel(t,i,h[i],c,e?"%":"")}))))},this.renderChannel=(t,s,e,o,n)=>i("calcite-input-number",{class:a.channel,"data-channel-index":s,dir:o,key:s,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:s>0&&("s"!==this.scale||!this.alphaChannel||3!==s)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=b(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const s=this.savedColors.filter((s=>s!==t));this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.saveColor=()=>{const t=b(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const s=[...this.savedColors,t];this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.drawColorControls=V(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,s,i=!0)=>{const{dimensions:{colorField:{height:e,width:o}}}=this,a=Math.round(r.s/o*t),n=Math.round(r.v/e*(e-s));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(a).value(n),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider()},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(a+o);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=g(b(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:s}=this;t&&"auto"!==s&&!y(s)&&(console.warn(`ignoring alphaChannel as the current format (${s}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,s){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=s}handleFormatChange(t){this.setMode(t),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,s){const{allowEmpty:i,format:e}=this;let a=!1;if(!i||t){const i=C(t);if(!i||"auto"!==e&&i!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=s);a=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=i&&!t?null:o(null!=t&&"object"==typeof t&&y(this.mode)?$(t):t),r=!k(l,this.color);(a||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){H(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:s}=t;if("ArrowUp"!==s&&"ArrowDown"!==s||!t.composedPath().some((t=>{var s;return null===(s=t.classList)||void 0===s?void 0:s.contains(a.channel)})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===s&&i?9:"ArrowDown"===s&&i?-9:0}async setFocus(){await O(this),this.el.focus()}async componentWillLoad(){M(this);const{allowEmpty:t,color:s,format:i,value:e}=this,a=t&&!e,n=C(e),l=a||"auto"===i&&n||i===n,r=a?null:l?o(e):s;l||this.showIncompatibleColorWarning(e,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await R(this)}connectedCallback(){j(this),P(this),T(this)}componentDidLoad(){N(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),z(this),I(this),X(this)}componentDidRender(){F(this)}render(){const{allowEmpty:t,channelsDisabled:s,color:e,colorFieldScopeLeft:o,colorFieldScopeTop:l,dimensions:{slider:{width:c},thumb:{radius:d}},hexDisabled:p,hideChannels:u,hideHex:f,hideSaved:m,hueScopeLeft:v,messages:g,alphaChannel:w,opacityScopeLeft:y,savedColors:C,savedDisabled:k,scale:S,scopeOrientation:A}=this,D=e?b(e,w):null,$=d,j=null!=v?v:c*n.hue()/r.h,z=d,F=null!=y?y:c*x(n.alpha())/h.max,L=null===e,O="vertical"===A,M=p||f,N=s||u,P=k||m,[I,K]=this.getAdjustedScopePosition(o,l),[E,U]=this.getAdjustedScopePosition(j,$),[H,R]=this.getAdjustedScopePosition(F,z);return i("div",{class:a.container},i("div",{class:a.controlAndScope},i("canvas",{class:a.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":O?g.value:g.saturation,"aria-valuemax":O?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(O?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{[a.scope]:!0,[a.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${K||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:a.previewAndSliders},i("calcite-color-picker-swatch",{class:a.preview,color:D,scale:"l"}),i("div",{class:a.sliders},i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||n.round().hue(),class:{[a.scope]:!0,[a.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${U}px`,left:`${E}px`},tabindex:"0",ref:this.storeHueScope})),w?i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(e||n).round().alpha(),class:{[a.scope]:!0,[a.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),M&&N?null:i("div",{class:{[a.controlSection]:!0,[a.section]:!0}},i("div",{class:a.hexAndChannelsGroup},M?null:i("div",{class:a.hexOptions},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:w,class:a.control,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:S,value:D})),N?null:i("calcite-tabs",{class:{[a.colorModeContainer]:!0,[a.splitSection]:!0},scale:"l"===S?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),P?null:i("div",{class:{[a.savedColorsSection]:!0,[a.section]:!0}},i("div",{class:a.header},i("label",null,g.saved),i("div",{class:a.savedColorsButtons},i("calcite-button",{appearance:"transparent",class:a.deleteColor,disabled:L,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:S,type:"button"}),i("calcite-button",{appearance:"transparent",class:a.saveColor,disabled:L,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:S,type:"button"}))),C.length>0?i("div",{class:a.savedColors},[...C.map((t=>i("calcite-color-picker-swatch",{class:a.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:S,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,s){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${s})`)}setMode(t,s=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,s)}ensureCompatibleMode(t,s){const{alphaChannel:i}=this,e=y(t);if(i&&!e){const i=D(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&e){const i=S(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:s}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/s*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:s}}}=this,i=w(h.max/s*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,s=!0,i="user-interaction"){s&&k(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,s=this.mode){if(!t)return null;if(s.includes("hex")){const i=s===v.HEXA;return g(b(t.round(),i),i)}if(s.includes("-css")){const i=t[s.replace("-css","").replace("a","")]().round().string();return(s.endsWith("a")||s.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[S(s)]().round().object();return s.endsWith("a")?A(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:s}}}=this;return 2*s-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:s,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,s);const e=t.createLinearGradient(0,0,i,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,i,s);const o=t.createLinearGradient(0,0,0,s);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=o,t.fillRect(0,0,i,s),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:s,width:i}){if(!t)return;const e=window.devicePixelRatio||1;t.width=i*e,t.height=s*e,t.style.height=`${s}px`,t.style.width=`${i}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var s,i,e;const{dimensions:o}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(s=this.colorFieldRenderingContext)||void 0===s?void 0:s.canvas,o.colorField);const a={width:o.slider.width,height:o.slider.height+2*(o.thumb.radius-o.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(i=this.hueSliderRenderingContext)||void 0===i?void 0:i.canvas,a),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,a)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const s=t.hsv(),{dimensions:{colorField:{height:i,width:e},thumb:{radius:o}}}=this,a=s.saturationv()/(r.s/e),n=i-s.value()/(r.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=a,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,o,a,n,s)}drawThumb(t,s,i,e,o){const a=2*Math.PI;t.beginPath(),t.arc(i,e,s,0,a),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,e,s-3,0,a),t.fillStyle=o.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const s=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=s.hue()/(c/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,a,s)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:s,width:i},thumb:{radius:e}}}=this,a=e-s/2,n=t.createLinearGradient(0,0,i,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,o(t).string()),h+=r})),t.clearRect(0,0,i,s+2*this.getSliderCapSpacing()),this.drawSliderPath(t,s,i,0,a),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:s,dimensions:{slider:{height:i,width:e},thumb:{radius:o}}}=this,a=o-i/2;t.clearRect(0,0,e,i+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,a,e,0),l=s.rgb().alpha(0),r=s.rgb().alpha(.5),h=s.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,i,e,0,a);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,s,i,e,o){const a=s/2+1;t.beginPath(),t.moveTo(e+a,o),t.lineTo(e+i-a,o),t.quadraticCurveTo(e+i,o,e+i,o+a),t.lineTo(e+i,o+s-a),t.quadraticCurveTo(e+i,o+s,e+i-a,o+s),t.lineTo(e+a,o+s),t.quadraticCurveTo(e,o+s,e,o+s-a),t.lineTo(e,o+a),t.quadraticCurveTo(e,o,e+a,o),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const s=t.getContext("2d");return s.fillStyle="#ccc",s.fillRect(0,0,10,10),s.fillStyle="#fff",s.fillRect(0,0,5,5),s.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const s=t,{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=x(s.alpha())/(h.max/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,a,s)}getSliderBoundX(t,s,i){const e=U(t,s,i);return 0===e?t:-1===e?K(t,0,s,i,2*i):K(t,0,s,s-2*i,s-i)}updateColorFromChannels(t){this.internalColorSet(o(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:s}=this,i=t[s]().array().map(((t,s)=>3===s?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,s){return[t-d/2,s-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{q as calcite_color_picker}
6
+ import{r as t,c as s,h as i,g as e}from"./p-9310b882.js";import{c as o,C as a,D as n,a as l,H as r,O as h,b as c,S as d,d as p,R as u}from"./p-e0fb0920.js";import{i as f,a as m}from"./p-a16feeec.js";import{C as v,n as g,h as b,o as w,a as x,b as y,p as C,c as k,t as S,d as A,e as D,f as $}from"./p-643a0325.js";import{c as j,d as z,u as F}from"./p-ad75b9bb.js";import{i as L}from"./p-43ba7a04.js";import{c as O,s as M,a as N}from"./p-476e5302.js";import{c as P,d as I}from"./p-7f271c31.js";import{r as K,c as E,a as U}from"./p-3d3e6e20.js";import{u as H,s as R,c as T,d as X}from"./p-2592c0b8.js";import{t as V}from"./p-6665fa1f.js";import"./p-e1a4994d.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-588bc0c0.js";import"./p-a82f35c9.js";const q=class{constructor(e){t(this,e),this.calciteColorPickerChange=s(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=s(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=v.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:s}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[s]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===s||"ArrowUp"===s?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[s].x||0,this.colorFieldScopeTop+i[s].y||0,!1))},this.handleHueScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(a+o);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:s,color:i}=this,e=t.target.value;!s||e?e!==(i&&g(b(i,y(this.mode))))&&this.internalColorSet(o(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(o(t.currentTarget.color))},this.handleChannelInput=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=3===i?h.max:"rgb"===this.channelMode?u[Object.keys(u)[i]]:r[Object.keys(r)[i]];let o;if(this.allowEmpty&&!s.value)o="";else{const t=Number(s.value);o=E(t+this.shiftKeyChannelAdjustment,0,e).toString()}s.value=o},this.handleChannelChange=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=[...this.channels];if(this.allowEmpty&&!s.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const o=3===i,a=Number(s.value);e[i]=o?w(a):a,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{L(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:s,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(s,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(s),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(s),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const s=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),s&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:s,el:i}=this;if(!i.isConnected||!s)return;const{context:e,bounds:o}=s;let a,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(a=l-o.x,n=r-o.y):(a=l<o.x+o.width&&l>o.x?l-o.x:l<o.x?0:o.width,n=r<o.y+o.height&&r>o.y?r-o.y:r<o.y?0:o.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(a,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(a):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(a)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:s,messages:e}=this;return i("calcite-tab-title",{class:a.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===s},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:s,channelMode:e,channels:o,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=m(this.el),d=l?o:o.slice(0,3);return i("calcite-tab",{class:a.control,key:t,selected:r},i("div",{class:a.channels,dir:"ltr"},d.map(((t,i)=>{const e=3===i;return e&&(t=s&&!t?t:x(t)),this.renderChannel(t,i,h[i],c,e?"%":"")}))))},this.renderChannel=(t,s,e,o,n)=>i("calcite-input-number",{class:a.channel,"data-channel-index":s,dir:o,key:s,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:s>0&&("s"!==this.scale||!this.alphaChannel||3!==s)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=b(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const s=this.savedColors.filter((s=>s!==t));this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.saveColor=()=>{const t=b(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const s=[...this.savedColors,t];this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.drawColorControls=V(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,s,i=!0)=>{const{dimensions:{colorField:{height:e,width:o}}}=this,a=Math.round(r.s/o*t),n=Math.round(r.v/e*(e-s));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(a).value(n),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider()},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[i]){t.preventDefault();const o=e[i]*s,a=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(a+o);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=g(b(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:s}=this;t&&"auto"!==s&&!y(s)&&(console.warn(`ignoring alphaChannel as the current format (${s}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,s){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=s}handleFormatChange(t){this.setMode(t),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,s){const{allowEmpty:i,format:e}=this;let a=!1;if(!i||t){const i=C(t);if(!i||"auto"!==e&&i!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=s);a=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=i&&!t?null:o(null!=t&&"object"==typeof t&&y(this.mode)?$(t):t),r=!k(l,this.color);(a||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){H(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:s}=t;if("ArrowUp"!==s&&"ArrowDown"!==s||!t.composedPath().some((t=>{var s;return null===(s=t.classList)||void 0===s?void 0:s.contains(a.channel)})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===s&&i?9:"ArrowDown"===s&&i?-9:0}async setFocus(){await O(this),this.el.focus()}async componentWillLoad(){M(this);const{allowEmpty:t,color:s,format:i,value:e}=this,a=t&&!e,n=C(e),l=a||"auto"===i&&n||i===n,r=a?null:l?o(e):s;l||this.showIncompatibleColorWarning(e,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await R(this)}connectedCallback(){j(this),P(this),T(this)}componentDidLoad(){N(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),z(this),I(this),X(this)}componentDidRender(){F(this)}render(){const{allowEmpty:t,channelsDisabled:s,color:e,colorFieldScopeLeft:o,colorFieldScopeTop:l,dimensions:{slider:{width:c},thumb:{radius:d}},hexDisabled:p,hideChannels:u,hideHex:f,hideSaved:m,hueScopeLeft:v,messages:g,alphaChannel:w,opacityScopeLeft:y,savedColors:C,savedDisabled:k,scale:S,scopeOrientation:A}=this,D=e?b(e,w):null,$=d,j=null!=v?v:c*n.hue()/r.h,z=d,F=null!=y?y:c*x(n.alpha())/h.max,L=null===e,O="vertical"===A,M=p||f,N=s||u,P=k||m,[I,K]=this.getAdjustedScopePosition(o,l),[E,U]=this.getAdjustedScopePosition(j,$),[H,R]=this.getAdjustedScopePosition(F,z);return i("div",{class:a.container},i("div",{class:a.controlAndScope},i("canvas",{class:a.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":O?g.value:g.saturation,"aria-valuemax":O?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(O?null==e?void 0:e.saturationv():null==e?void 0:e.value())||"0",class:{[a.scope]:!0,[a.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${K||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:a.previewAndSliders},i("calcite-color-picker-swatch",{class:a.preview,color:D,scale:"l"}),i("div",{class:a.sliders},i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==e?void 0:e.round().hue())||n.round().hue(),class:{[a.scope]:!0,[a.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${U}px`,left:`${E}px`},tabindex:"0",ref:this.storeHueScope})),w?i("div",{class:a.controlAndScope},i("canvas",{class:{[a.slider]:!0,[a.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(e||n).round().alpha(),class:{[a.scope]:!0,[a.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),M&&N?null:i("div",{class:{[a.controlSection]:!0,[a.section]:!0}},i("div",{class:a.hexAndChannelsGroup},M?null:i("div",{class:a.hexOptions},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:w,class:a.control,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:S,value:D})),N?null:i("calcite-tabs",{class:{[a.colorModeContainer]:!0,[a.splitSection]:!0},scale:"l"===S?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),P?null:i("div",{class:{[a.savedColorsSection]:!0,[a.section]:!0}},i("div",{class:a.header},i("label",null,g.saved),i("div",{class:a.savedColorsButtons},i("calcite-button",{appearance:"transparent",class:a.deleteColor,disabled:L,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:S,type:"button"}),i("calcite-button",{appearance:"transparent",class:a.saveColor,disabled:L,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:S,type:"button"}))),C.length>0?i("div",{class:a.savedColors},[...C.map((t=>i("calcite-color-picker-swatch",{class:a.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:S,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,s){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${s})`)}setMode(t,s=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,s)}ensureCompatibleMode(t,s){const{alphaChannel:i}=this,e=y(t);if(i&&!e){const i=D(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&e){const i=S(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:s}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/s*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:s}}}=this,i=w(h.max/s*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,s=!0,i="user-interaction"){s&&k(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,s=this.mode){if(!t)return null;if(s.includes("hex")){const i=s===v.HEXA;return g(b(t.round(),i),i)}if(s.includes("-css")){const i=t[s.replace("-css","").replace("a","")]().round().string();return(s.endsWith("a")||s.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[S(s)]().round().object();return s.endsWith("a")?A(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:s}}}=this;return 2*s-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:s,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,s);const e=t.createLinearGradient(0,0,i,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,i,s);const o=t.createLinearGradient(0,0,0,s);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=o,t.fillRect(0,0,i,s),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:s,width:i}){if(!t)return;const e=window.devicePixelRatio||1;t.width=i*e,t.height=s*e,t.style.height=`${s}px`,t.style.width=`${i}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var s,i,e;const{dimensions:o}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(s=this.colorFieldRenderingContext)||void 0===s?void 0:s.canvas,o.colorField);const a={width:o.slider.width,height:o.slider.height+2*(o.thumb.radius-o.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(i=this.hueSliderRenderingContext)||void 0===i?void 0:i.canvas,a),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,a)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const s=t.hsv(),{dimensions:{colorField:{height:i,width:e},thumb:{radius:o}}}=this,a=s.saturationv()/(r.s/e),n=i-s.value()/(r.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=a,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,o,a,n,s)}drawThumb(t,s,i,e,o){const a=2*Math.PI;t.beginPath(),t.arc(i,e,s,0,a),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,e,s-3,0,a),t.fillStyle=o.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const s=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=s.hue()/(c/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,a,s)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:s,width:i},thumb:{radius:e}}}=this,a=e-s/2,n=t.createLinearGradient(0,0,i,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,o(t).string()),h+=r})),t.clearRect(0,0,i,s+2*this.getSliderCapSpacing()),this.drawSliderPath(t,s,i,0,a),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:s,dimensions:{slider:{height:i,width:e},thumb:{radius:o}}}=this,a=o-i/2;t.clearRect(0,0,e,i+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,a,e,0),l=s.rgb().alpha(0),r=s.rgb().alpha(.5),h=s.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,i,e,0,a);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,s,i,e,o){const a=s/2+1;t.beginPath(),t.moveTo(e+a,o),t.lineTo(e+i-a,o),t.quadraticCurveTo(e+i,o,e+i,o+a),t.lineTo(e+i,o+s-a),t.quadraticCurveTo(e+i,o+s,e+i-a,o+s),t.lineTo(e+a,o+s),t.quadraticCurveTo(e,o+s,e,o+s-a),t.lineTo(e,o+a),t.quadraticCurveTo(e,o,e+a,o),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const s=t.getContext("2d");return s.fillStyle="#ccc",s.fillRect(0,0,10,10),s.fillStyle="#fff",s.fillRect(0,0,5,5),s.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const s=t,{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,o=x(s.alpha())/(h.max/i),a=e,n=this.getSliderBoundX(o,i,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,a,s)}getSliderBoundX(t,s,i){const e=U(t,s,i);return 0===e?t:-1===e?K(t,0,s,i,2*i):K(t,0,s,s-2*i,s-i)}updateColorFromChannels(t){this.internalColorSet(o(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:s}=this,i=t[s]().array().map(((t,s)=>3===s?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,s){return[t-d/2,s-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{q as calcite_color_picker}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as _}from"./p-6431fd69.js";import"./p-9310b882.js";import"./p-2d70d3fd.js";import"./p-6b2f2b85.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-38ef0684.js";import"./p-2291b598.js";import"./p-3bd99fc9.js";import"./p-d62784a4.js";import"./p-56300653.js";import"./p-6f2edf5b.js";import"./p-5383607a.js";import"./p-a777b18c.js";import"./p-1ede2e18.js";var m="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),r="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),t=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function p(_,m,r){var t,p;return"m"===r?m?"хвилина":"хвилину":"h"===r?m?"година":"годину":_+" "+(t=+_,p={ss:m?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:m?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:m?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),t%10==1&&t%100!=11?p[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?p[1]:p[2])}var s=function(_,p){return t.test(p)?m[_.month()]:r[_.month()]};s.s=r,s.f=m;var o={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:p,mm:p,h:p,hh:p,d:"день",dd:p,M:"місяць",MM:p,y:"рік",yy:p},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};_.locale(o,null,!0);export default o;
6
+ import{d as _}from"./p-e4d2fcc5.js";import"./p-9310b882.js";import"./p-072155f9.js";import"./p-a16feeec.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-ad75b9bb.js";import"./p-43ba7a04.js";import"./p-d2d3e4b5.js";import"./p-476e5302.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-2592c0b8.js";var m="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),r="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),t=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function p(_,m,r){var t,p;return"m"===r?m?"хвилина":"хвилину":"h"===r?m?"година":"годину":_+" "+(t=+_,p={ss:m?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:m?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:m?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),t%10==1&&t%100!=11?p[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?p[1]:p[2])}var s=function(_,p){return t.test(p)?m[_.month()]:r[_.month()]};s.s=r,s.f=m;var o={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:p,mm:p,h:p,hh:p,d:"день",dd:p,M:"місяць",MM:p,y:"рік",yy:p},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};_.locale(o,null,!0);export default o;
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as e}from"./p-6431fd69.js";import"./p-9310b882.js";import"./p-2d70d3fd.js";import"./p-6b2f2b85.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-38ef0684.js";import"./p-2291b598.js";import"./p-3bd99fc9.js";import"./p-d62784a4.js";import"./p-56300653.js";import"./p-6f2edf5b.js";import"./p-5383607a.js";import"./p-a777b18c.js";import"./p-1ede2e18.js";var m={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};e.locale(m,null,!0);export default m;
6
+ import{d as e}from"./p-e4d2fcc5.js";import"./p-9310b882.js";import"./p-072155f9.js";import"./p-a16feeec.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-ad75b9bb.js";import"./p-43ba7a04.js";import"./p-d2d3e4b5.js";import"./p-476e5302.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-2592c0b8.js";var m={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};e.locale(m,null,!0);export default m;
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,h as i,H as a,g as e}from"./p-9310b882.js";import{c as n,s as o,a as s}from"./p-d62784a4.js";
6
+ import{r as t,h as i,H as a,g as e}from"./p-9310b882.js";import{c as n,s as o,a as s}from"./p-476e5302.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v1.6.0
10
+ * v1.6.1
11
11
  */const r="full-name",c="username",l=class{constructor(i){t(this,i),this.active=void 0,this.fullName=void 0,this.label=void 0,this.textDisabled=!1,this.thumbnail=void 0,this.userId=void 0,this.username=void 0}async setFocus(){await n(this),this.el.focus()}componentWillLoad(){o(this)}componentDidLoad(){s(this)}render(){return i(a,null,i("button",{"aria-label":this.label,class:"button"},i("calcite-avatar",{"full-name":this.fullName,label:this.label,thumbnail:this.thumbnail,"user-id":this.userId,username:this.username}),(this.fullName||this.username)&&!this.textDisabled&&i("div",{class:"text-container"},this.fullName&&i("span",{class:r,key:r},this.fullName),this.username&&i("span",{class:c,key:c},this.username))))}static get delegatesFocus(){return!0}get el(){return e(this)}};l.style=":host{display:inline-flex;outline:2px solid transparent;outline-offset:2px}:host .button{background-color:transparent;border:none;margin:0px;display:flex;cursor:pointer;align-items:center;justify-content:center;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size-0);line-height:1.25rem;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end:2px solid transparent}:host(:hover) .button,:host(:focus) .button{background-color:var(--calcite-ui-foreground-2)}:host(:focus) .button{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host(:active) .button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}calcite-avatar{padding-inline:1rem}calcite-avatar~.text-container{padding-inline-start:0px}:host([active]) .button{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1);--calcite-ui-icon-color:var(--calcite-ui-brand)}.text-container{margin-block-start:0.125rem;display:flex;flex-direction:column;padding-inline:1rem;text-align:start}.full-name{margin-inline-start:0px;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.username{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host([hidden]){display:none}[hidden]{display:none}";export{l as calcite_navigation_user}
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as i,h as t,F as s,g as n}from"./p-9310b882.js";import{c as a,d as o}from"./p-525f1188.js";import{g as r}from"./p-6b2f2b85.js";import{c as l,d as c}from"./p-56300653.js";import{u as d,c as h,s as p,d as m}from"./p-1ede2e18.js";import{H as g,c as f}from"./p-10248e04.js";import"./p-6f2edf5b.js";import"./p-3fc17d72.js";import"./p-18869c0f.js";import"./p-2291b598.js";
6
+ import{r as e,c as i,h as t,F as s,g as a}from"./p-9310b882.js";import{c as n,d as o}from"./p-c3ab7439.js";import{g as r}from"./p-a16feeec.js";import{c as l,d as c}from"./p-7f271c31.js";import{u as d,c as h,s as p,d as m}from"./p-2592c0b8.js";import{H as g,c as f}from"./p-60c15592.js";import"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v1.6.0
11
- */const u="thumbnail",v=class{constructor(t){e(this,t),this.calciteTipDismiss=i(this,"calciteTipDismiss",6),this.hideTip=()=>{this.closed=!0,this.calciteTipDismiss.emit()},this.closed=!1,this.closeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.selected=!1,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}effectiveLocaleChange(){d(this,this.effectiveLocale)}connectedCallback(){a(this),l(this),h(this)}async componentWillLoad(){await p(this)}disconnectedCallback(){o(this),c(this),m(this)}renderHeader(){var e;const{heading:i,headingLevel:s,el:n}=this,a=null===(e=n.closest("calcite-tip-manager"))||void 0===e?void 0:e.headingLevel,o=a?f(a+1):null;return i?t("header",{class:"header"},t(g,{class:"heading",level:s||o},i)):null}renderDismissButton(){const{closeDisabled:e,hideTip:i}=this;return e?null:t("calcite-action",{class:"close",icon:"x",onClick:i,scale:"l",text:this.messages.close})}renderImageFrame(){const{el:e}=this;return r(e,u)?t("div",{class:"image-frame",key:"thumbnail"},t("slot",{name:u})):null}renderInfoNode(){return t("div",{class:"info"},t("slot",null))}renderContent(){return t("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return t(s,null,t("article",{class:"container"},this.renderHeader(),this.renderContent()),this.renderDismissButton())}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};v.style=":host{position:relative;margin:1rem;box-sizing:border-box;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}.container{inline-size:100%;padding:1rem}:host([closed]),:host([closed]) .container{display:none}:host([selected]) .container{margin:0px;border-style:none;padding:0px}.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}.header{margin-block-end:0.5rem}.header .heading{padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-1)}.container[hidden]{display:none}.content{display:flex}.info{padding-block:0px;padding-inline:1rem;inline-size:70%}.info:only-child{inline-size:100%;padding-inline:0px}::slotted(p){margin-block-start:0px}::slotted(a){outline-color:transparent;color:var(--calcite-ui-brand)}::slotted(a:focus){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.image-frame{inline-size:25%}.image-frame img{max-inline-size:100%}::slotted(img){max-inline-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{v as calcite_tip}
10
+ * v1.6.1
11
+ */const u="thumbnail",v=class{constructor(t){e(this,t),this.calciteTipDismiss=i(this,"calciteTipDismiss",6),this.hideTip=()=>{this.closed=!0,this.calciteTipDismiss.emit()},this.closed=!1,this.closeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.selected=!1,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}effectiveLocaleChange(){d(this,this.effectiveLocale)}connectedCallback(){n(this),l(this),h(this)}async componentWillLoad(){await p(this)}disconnectedCallback(){o(this),c(this),m(this)}renderHeader(){var e;const{heading:i,headingLevel:s,el:a}=this,n=null===(e=a.closest("calcite-tip-manager"))||void 0===e?void 0:e.headingLevel,o=n?f(n+1):null;return i?t("header",{class:"header"},t(g,{class:"heading",level:s||o},i)):null}renderDismissButton(){const{closeDisabled:e,hideTip:i}=this;return e?null:t("calcite-action",{class:"close",icon:"x",onClick:i,scale:"l",text:this.messages.close})}renderImageFrame(){const{el:e}=this;return r(e,u)?t("div",{class:"image-frame",key:"thumbnail"},t("slot",{name:u})):null}renderInfoNode(){return t("div",{class:"info"},t("slot",null))}renderContent(){return t("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return t(s,null,t("article",{class:"container"},this.renderHeader(),this.renderContent()),this.renderDismissButton())}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};v.style=":host{position:relative;margin:1rem;box-sizing:border-box;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}.container{inline-size:100%;padding:1rem}:host([closed]),:host([closed]) .container{display:none}:host([selected]) .container{margin:0px;border-style:none;padding:0px}.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}.header{margin-block-end:0.5rem}.header .heading{padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-1)}.container[hidden]{display:none}.content{display:flex}.info{padding-block:0px;padding-inline:1rem;inline-size:70%}.info:only-child{inline-size:100%;padding-inline:0px}::slotted(p){margin-block-start:0px}::slotted(a){outline-color:transparent;color:var(--calcite-ui-brand)}::slotted(a:focus){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.image-frame{inline-size:25%}.image-frame img{max-inline-size:100%}::slotted(img){max-inline-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{v as calcite_tip}