@esri/solutions-components 0.6.11 → 0.6.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (539) hide show
  1. package/dist/assets/t9n/map-select-tools/resources.json +2 -1
  2. package/dist/assets/t9n/map-select-tools/resources_en.json +2 -1
  3. package/dist/assets/t9n/map-tools/resources.json +4 -1
  4. package/dist/assets/t9n/map-tools/resources_en.json +4 -1
  5. package/dist/cjs/{ExpandToggle-c5690e14.js → ExpandToggle-511435d5.js} +1 -1
  6. package/dist/cjs/{FloatingArrow-675171a6.js → FloatingArrow-88e3f797.js} +1 -1
  7. package/dist/cjs/{Heading-3712677d.js → Heading-0da2a025.js} +1 -1
  8. package/dist/cjs/{ar-1dc23c0a.js → ar-0a371029.js} +5 -5
  9. package/dist/cjs/{basemap-gallery_5.cjs.entry.js → basemap-gallery_6.cjs.entry.js} +139 -10
  10. package/dist/cjs/{bg-4024b354.js → bg-f7538b74.js} +5 -5
  11. package/dist/cjs/{bs-3134d711.js → bs-6560857c.js} +5 -5
  12. package/dist/cjs/buffer-tools_4.cjs.entry.js +8 -8
  13. package/dist/cjs/{ca-8d6647d3.js → ca-d74198eb.js} +5 -5
  14. package/dist/cjs/calcite-accordion-item.cjs.entry.js +2 -2
  15. package/dist/cjs/calcite-accordion.cjs.entry.js +1 -1
  16. package/dist/cjs/{calcite-filter_5.cjs.entry.js → calcite-action-bar_3.cjs.entry.js} +168 -322
  17. package/dist/cjs/calcite-action-group_2.cjs.entry.js +4 -4
  18. package/dist/cjs/calcite-action-pad.cjs.entry.js +5 -5
  19. package/dist/cjs/calcite-action_2.cjs.entry.js +6 -6
  20. package/dist/cjs/calcite-alert.cjs.entry.js +4 -4
  21. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  22. package/dist/cjs/calcite-block-section.cjs.entry.js +3 -3
  23. package/dist/cjs/calcite-block.cjs.entry.js +5 -5
  24. package/dist/cjs/calcite-button.cjs.entry.js +4 -4
  25. package/dist/cjs/calcite-card.cjs.entry.js +3 -3
  26. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  27. package/dist/cjs/calcite-chip-group.cjs.entry.js +2 -2
  28. package/dist/cjs/calcite-chip.cjs.entry.js +4 -4
  29. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
  30. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -3
  31. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +1 -1
  32. package/dist/cjs/calcite-combobox_6.cjs.entry.js +10 -10
  33. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +2 -2
  34. package/dist/cjs/calcite-date-picker.cjs.entry.js +4 -4
  35. package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
  36. package/dist/cjs/calcite-filter_3.cjs.entry.js +387 -0
  37. package/dist/cjs/calcite-flow-item.cjs.entry.js +3 -3
  38. package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
  39. package/dist/cjs/calcite-graph.cjs.entry.js +1 -1
  40. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  41. package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
  42. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +6 -6
  43. package/dist/cjs/calcite-input-number_2.cjs.entry.js +4 -4
  44. package/dist/cjs/{calcite-input-time-picker-4efcd55d.js → calcite-input-time-picker-188356eb.js} +53 -53
  45. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +5 -5
  46. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +4 -4
  47. package/dist/cjs/calcite-input_2.cjs.entry.js +4 -4
  48. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  49. package/dist/cjs/calcite-link.cjs.entry.js +2 -2
  50. package/dist/cjs/calcite-list-item-group.cjs.entry.js +1 -1
  51. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  52. package/dist/cjs/calcite-menu-item.cjs.entry.js +3 -3
  53. package/dist/cjs/calcite-menu.cjs.entry.js +3 -3
  54. package/dist/cjs/calcite-modal.cjs.entry.js +5 -5
  55. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
  56. package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
  57. package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
  58. package/dist/cjs/calcite-notice.cjs.entry.js +4 -4
  59. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  60. package/dist/cjs/calcite-option_2.cjs.entry.js +3 -3
  61. package/dist/cjs/calcite-pagination.cjs.entry.js +3 -3
  62. package/dist/cjs/calcite-panel_2.cjs.entry.js +5 -5
  63. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +3 -3
  64. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +4 -4
  65. package/dist/cjs/calcite-pick-list.cjs.entry.js +3 -3
  66. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
  67. package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
  68. package/dist/cjs/calcite-rating.cjs.entry.js +4 -4
  69. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  70. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +3 -3
  71. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +2 -2
  72. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +9 -9
  73. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  74. package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
  75. package/dist/cjs/calcite-stepper-item.cjs.entry.js +2 -2
  76. package/dist/cjs/calcite-stepper.cjs.entry.js +1 -1
  77. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  78. package/dist/cjs/calcite-text-area.cjs.entry.js +4 -4
  79. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +1 -1
  80. package/dist/cjs/calcite-tile-select.cjs.entry.js +2 -2
  81. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  82. package/dist/cjs/calcite-time-picker.cjs.entry.js +3 -3
  83. package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
  84. package/dist/cjs/calcite-tip-manager.cjs.entry.js +3 -3
  85. package/dist/cjs/calcite-tip.cjs.entry.js +4 -4
  86. package/dist/cjs/calcite-tooltip.cjs.entry.js +3 -3
  87. package/dist/cjs/calcite-tree_3.cjs.entry.js +2 -2
  88. package/dist/cjs/card-manager_3.cjs.entry.js +11 -10
  89. package/dist/cjs/{conditionalSlot-126d557f.js → conditionalSlot-f10611d3.js} +1 -1
  90. package/dist/cjs/crowdsource-manager.cjs.entry.js +36 -10
  91. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  92. package/dist/cjs/{cs-b24cd994.js → cs-bdf9949e.js} +5 -5
  93. package/dist/cjs/{da-9dee3a1f.js → da-ab198f94.js} +5 -5
  94. package/dist/cjs/{de-1a98b964.js → de-a859739c.js} +5 -5
  95. package/dist/cjs/{de-at-782e6c7f.js → de-at-126e66a1.js} +5 -5
  96. package/dist/cjs/{de-ch-d5c95469.js → de-ch-25eb45ed.js} +5 -5
  97. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  98. package/dist/cjs/{downloadUtils-471a6a2d.js → downloadUtils-43f5be48.js} +4 -4
  99. package/dist/cjs/edit-card_2.cjs.entry.js +27 -24
  100. package/dist/cjs/{el-af28cafa.js → el-9abbc3f2.js} +5 -5
  101. package/dist/cjs/{en-au-109f3119.js → en-au-8835d481.js} +5 -5
  102. package/dist/cjs/{en-ca-22890a25.js → en-ca-a8f1a438.js} +5 -5
  103. package/dist/cjs/{en-gb-dc23c9dd.js → en-gb-e8098e8c.js} +5 -5
  104. package/dist/cjs/{es-3f353355.js → es-bc99e2ad.js} +5 -5
  105. package/dist/cjs/{es-mx-ccb57857.js → es-mx-71461470.js} +5 -5
  106. package/dist/cjs/{et-119c047b.js → et-8fa437ac.js} +5 -5
  107. package/dist/cjs/{fi-13096d81.js → fi-1284d381.js} +5 -5
  108. package/dist/cjs/{form-7c6054c3.js → form-28bc6597.js} +1 -1
  109. package/dist/cjs/{fr-563dfcd5.js → fr-635089b1.js} +5 -5
  110. package/dist/cjs/{fr-ch-f66cfd49.js → fr-ch-09392bdc.js} +5 -5
  111. package/dist/cjs/{he-d8253a1a.js → he-44a07bad.js} +5 -5
  112. package/dist/cjs/{hi-58c7c3b5.js → hi-9bba524d.js} +5 -5
  113. package/dist/cjs/{hr-5aba114a.js → hr-fc0a64fd.js} +5 -5
  114. package/dist/cjs/{hu-38c15915.js → hu-b900be50.js} +5 -5
  115. package/dist/cjs/{id-3a94c080.js → id-d20a381a.js} +5 -5
  116. package/dist/cjs/{index-0e50040c.js → index-ee37804b.js} +3 -0
  117. package/dist/cjs/{index-2b60e135.js → index-feeb7b6a.js} +1 -1
  118. package/dist/cjs/{index.es-33154f03.js → index.es-8da43c21.js} +6 -6
  119. package/dist/cjs/{interfaces-d539e30c.js → interfaces-000be6de.js} +0 -5
  120. package/dist/cjs/{it-ch-970563cd.js → it-ch-e6bfb280.js} +5 -5
  121. package/dist/cjs/{it-88834555.js → it-d07dffbe.js} +5 -5
  122. package/dist/cjs/{ja-13d4b1ae.js → ja-3fac4cb9.js} +5 -5
  123. package/dist/cjs/{ko-10cbdd98.js → ko-7df47ba4.js} +5 -5
  124. package/dist/cjs/layout-manager.cjs.entry.js +3 -3
  125. package/dist/cjs/list-item.cjs.entry.js +1 -1
  126. package/dist/cjs/{loadModules-c5490589.js → loadModules-f6df8d6a.js} +1 -1
  127. package/dist/cjs/{loadable-6925d840.js → loadable-13605f73.js} +1 -1
  128. package/dist/cjs/loader.cjs.js +2 -2
  129. package/dist/cjs/{locale-88c21da2.js → locale-67f5f6b6.js} +1 -1
  130. package/dist/cjs/{lt-3fc5017a.js → lt-32e0b838.js} +5 -5
  131. package/dist/cjs/{lv-9d9cf999.js → lv-5822b401.js} +5 -5
  132. package/dist/cjs/map-select-tools_3.cjs.entry.js +16 -10
  133. package/dist/cjs/{mapViewUtils-9da2dddd.js → mapViewUtils-a4dd36ec.js} +1 -1
  134. package/dist/cjs/{mk-9f79812b.js → mk-76494f34.js} +5 -5
  135. package/dist/cjs/{nb-673fe3fd.js → nb-3ec52247.js} +5 -5
  136. package/dist/cjs/{nl-4dc0504f.js → nl-fe9ffca9.js} +5 -5
  137. package/dist/cjs/{openCloseComponent-05cb01ff.js → openCloseComponent-359d855c.js} +1 -1
  138. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  139. package/dist/cjs/{pl-d809a6c3.js → pl-13049aa3.js} +5 -5
  140. package/dist/cjs/{pt-br-55f1893a.js → pt-br-f222c9e6.js} +5 -5
  141. package/dist/cjs/{pt-78eefbc7.js → pt-ef1645ab.js} +5 -5
  142. package/dist/cjs/public-notification.cjs.entry.js +8 -8
  143. package/dist/cjs/{publicNotificationStore-55edd658.js → publicNotificationStore-b69862af.js} +1 -1
  144. package/dist/cjs/resources-f15abc99.js +29 -0
  145. package/dist/cjs/{ro-f0cff196.js → ro-712f9cbb.js} +5 -5
  146. package/dist/cjs/{ru-5e9b37f9.js → ru-45b18030.js} +5 -5
  147. package/dist/cjs/{shared-list-render-9bbcb306.js → shared-list-render-e5821654.js} +1 -1
  148. package/dist/cjs/{sk-322cd349.js → sk-db642b5a.js} +5 -5
  149. package/dist/cjs/{sl-fd948e50.js → sl-51811e20.js} +5 -5
  150. package/dist/cjs/solution-configuration.cjs.entry.js +5 -5
  151. package/dist/cjs/solution-contents_3.cjs.entry.js +5 -5
  152. package/dist/cjs/{solution-store-0004e4e6.js → solution-store-3cd104d8.js} +2 -2
  153. package/dist/cjs/solutions-components.cjs.js +2 -2
  154. package/dist/cjs/{sr-f0058b24.js → sr-c248524c.js} +5 -5
  155. package/dist/cjs/store-manager.cjs.entry.js +1 -1
  156. package/dist/cjs/{sv-8a8378bf.js → sv-67777565.js} +5 -5
  157. package/dist/cjs/{t9n-62d807df.js → t9n-58d20225.js} +1 -1
  158. package/dist/cjs/{th-f219fad6.js → th-81fb9eb1.js} +5 -5
  159. package/dist/cjs/{tr-03109641.js → tr-b5da4c5c.js} +5 -5
  160. package/dist/cjs/{uk-dde46112.js → uk-e8ad8b3b.js} +5 -5
  161. package/dist/cjs/{utils-651e6663.js → utils-fddf1c6b.js} +1 -1
  162. package/dist/cjs/{vi-60ed6e30.js → vi-0b26505a.js} +5 -5
  163. package/dist/cjs/{zh-cn-a2f6f51d.js → zh-cn-40d02fac.js} +5 -5
  164. package/dist/cjs/{zh-hk-e14e2fc0.js → zh-hk-d1a89b9e.js} +5 -5
  165. package/dist/cjs/{zh-tw-7ea0d7e4.js → zh-tw-5691adb2.js} +5 -5
  166. package/dist/collection/collection-manifest.json +1 -0
  167. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +33 -7
  168. package/dist/collection/components/info-card/info-card.js +24 -21
  169. package/dist/collection/components/layer-table/layer-table.js +3 -2
  170. package/dist/collection/components/map-card/map-card.css +4 -0
  171. package/dist/collection/components/map-card/map-card.js +1 -1
  172. package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -0
  173. package/dist/collection/components/map-fullscreen/map-fullscreen.js +178 -0
  174. package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +29 -0
  175. package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +37 -0
  176. package/dist/collection/components/map-select-tools/map-select-tools.js +7 -1
  177. package/dist/collection/components/map-tools/map-tools.css +8 -4
  178. package/dist/collection/components/map-tools/map-tools.js +35 -29
  179. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  180. package/dist/collection/utils/interfaces.js +0 -5
  181. package/dist/collection/utils/interfaces.ts +0 -5
  182. package/dist/components/crowdsource-manager.js +111 -79
  183. package/dist/components/info-card2.js +24 -21
  184. package/dist/components/interfaces.js +1 -6
  185. package/dist/components/layer-table2.js +3 -2
  186. package/dist/components/map-card2.js +44 -38
  187. package/dist/components/map-draw-tools2.js +1 -1
  188. package/dist/components/map-fullscreen.d.ts +11 -0
  189. package/dist/components/map-fullscreen.js +11 -0
  190. package/dist/components/map-fullscreen2.js +130 -0
  191. package/dist/components/map-select-tools2.js +7 -1
  192. package/dist/components/map-tools2.js +43 -34
  193. package/dist/components/pdf-download2.js +1 -1
  194. package/dist/components/public-notification.js +1 -1
  195. package/dist/components/refine-selection2.js +1 -1
  196. package/dist/components/solution-resource-item2.js +1 -1
  197. package/dist/components/solution-store.js +1 -1
  198. package/dist/esm/{ExpandToggle-3bfcb842.js → ExpandToggle-86761b28.js} +1 -1
  199. package/dist/esm/{FloatingArrow-cf140d6b.js → FloatingArrow-4a1b35d6.js} +1 -1
  200. package/dist/esm/{Heading-140d10ff.js → Heading-5258553c.js} +1 -1
  201. package/dist/esm/{ar-45abeb31.js → ar-4a5375c6.js} +5 -5
  202. package/dist/esm/{basemap-gallery_5.entry.js → basemap-gallery_6.entry.js} +139 -11
  203. package/dist/esm/{bg-af759e86.js → bg-b25e4b7a.js} +5 -5
  204. package/dist/esm/{bs-20d012de.js → bs-2485dfed.js} +5 -5
  205. package/dist/esm/buffer-tools_4.entry.js +8 -8
  206. package/dist/esm/{ca-1498df65.js → ca-bba36d26.js} +5 -5
  207. package/dist/esm/calcite-accordion-item.entry.js +2 -2
  208. package/dist/esm/calcite-accordion.entry.js +1 -1
  209. package/dist/esm/{calcite-filter_5.entry.js → calcite-action-bar_3.entry.js} +191 -343
  210. package/dist/esm/calcite-action-group_2.entry.js +4 -4
  211. package/dist/esm/calcite-action-pad.entry.js +5 -5
  212. package/dist/esm/calcite-action_2.entry.js +6 -6
  213. package/dist/esm/calcite-alert.entry.js +4 -4
  214. package/dist/esm/calcite-avatar.entry.js +1 -1
  215. package/dist/esm/calcite-block-section.entry.js +3 -3
  216. package/dist/esm/calcite-block.entry.js +5 -5
  217. package/dist/esm/calcite-button.entry.js +4 -4
  218. package/dist/esm/calcite-card.entry.js +3 -3
  219. package/dist/esm/calcite-checkbox.entry.js +3 -3
  220. package/dist/esm/calcite-chip-group.entry.js +2 -2
  221. package/dist/esm/calcite-chip.entry.js +4 -4
  222. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
  223. package/dist/esm/calcite-color-picker.entry.js +3 -3
  224. package/dist/esm/calcite-combobox-item-group.entry.js +1 -1
  225. package/dist/esm/calcite-combobox_6.entry.js +10 -10
  226. package/dist/esm/calcite-date-picker-day_3.entry.js +2 -2
  227. package/dist/esm/calcite-date-picker.entry.js +4 -4
  228. package/dist/esm/calcite-fab.entry.js +2 -2
  229. package/dist/esm/calcite-filter_3.entry.js +381 -0
  230. package/dist/esm/calcite-flow-item.entry.js +3 -3
  231. package/dist/esm/calcite-flow.entry.js +2 -2
  232. package/dist/esm/calcite-graph.entry.js +1 -1
  233. package/dist/esm/calcite-icon.entry.js +1 -1
  234. package/dist/esm/calcite-inline-editable.entry.js +3 -3
  235. package/dist/esm/calcite-input-date-picker.entry.js +6 -6
  236. package/dist/esm/calcite-input-number_2.entry.js +4 -4
  237. package/dist/esm/{calcite-input-time-picker-227e60c3.js → calcite-input-time-picker-7da2e80a.js} +53 -53
  238. package/dist/esm/calcite-input-time-picker.entry.js +5 -5
  239. package/dist/esm/calcite-input-time-zone.entry.js +4 -4
  240. package/dist/esm/calcite-input_2.entry.js +4 -4
  241. package/dist/esm/calcite-label.entry.js +1 -1
  242. package/dist/esm/calcite-link.entry.js +2 -2
  243. package/dist/esm/calcite-list-item-group.entry.js +1 -1
  244. package/dist/esm/calcite-loader.entry.js +1 -1
  245. package/dist/esm/calcite-menu-item.entry.js +3 -3
  246. package/dist/esm/calcite-menu.entry.js +3 -3
  247. package/dist/esm/calcite-modal.entry.js +5 -5
  248. package/dist/esm/calcite-navigation-logo.entry.js +2 -2
  249. package/dist/esm/calcite-navigation-user.entry.js +2 -2
  250. package/dist/esm/calcite-navigation.entry.js +2 -2
  251. package/dist/esm/calcite-notice.entry.js +4 -4
  252. package/dist/esm/calcite-option-group.entry.js +1 -1
  253. package/dist/esm/calcite-option_2.entry.js +3 -3
  254. package/dist/esm/calcite-pagination.entry.js +3 -3
  255. package/dist/esm/calcite-panel_2.entry.js +5 -5
  256. package/dist/esm/calcite-pick-list-group.entry.js +3 -3
  257. package/dist/esm/calcite-pick-list-item.entry.js +4 -4
  258. package/dist/esm/calcite-pick-list.entry.js +3 -3
  259. package/dist/esm/calcite-radio-button-group.entry.js +2 -2
  260. package/dist/esm/calcite-radio-button.entry.js +3 -3
  261. package/dist/esm/calcite-rating.entry.js +4 -4
  262. package/dist/esm/calcite-scrim.entry.js +2 -2
  263. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  264. package/dist/esm/calcite-shell-center-row.entry.js +2 -2
  265. package/dist/esm/calcite-shell-panel_14.entry.js +9 -9
  266. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  267. package/dist/esm/calcite-split-button.entry.js +2 -2
  268. package/dist/esm/calcite-stepper-item.entry.js +2 -2
  269. package/dist/esm/calcite-stepper.entry.js +1 -1
  270. package/dist/esm/calcite-switch.entry.js +3 -3
  271. package/dist/esm/calcite-text-area.entry.js +4 -4
  272. package/dist/esm/calcite-tile-select-group.entry.js +1 -1
  273. package/dist/esm/calcite-tile-select.entry.js +2 -2
  274. package/dist/esm/calcite-tile.entry.js +2 -2
  275. package/dist/esm/calcite-time-picker.entry.js +3 -3
  276. package/dist/esm/calcite-tip-group.entry.js +1 -1
  277. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  278. package/dist/esm/calcite-tip.entry.js +4 -4
  279. package/dist/esm/calcite-tooltip.entry.js +3 -3
  280. package/dist/esm/calcite-tree_3.entry.js +2 -2
  281. package/dist/esm/card-manager_3.entry.js +11 -10
  282. package/dist/esm/{conditionalSlot-55a14abd.js → conditionalSlot-dff8f839.js} +1 -1
  283. package/dist/esm/crowdsource-manager.entry.js +36 -10
  284. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  285. package/dist/esm/{cs-3bd67855.js → cs-1052c5ac.js} +5 -5
  286. package/dist/esm/{da-7a76e131.js → da-b7ed9204.js} +5 -5
  287. package/dist/esm/{de-at-0b6874cb.js → de-at-a993e5ae.js} +5 -5
  288. package/dist/esm/{de-0808a43e.js → de-bb68e752.js} +5 -5
  289. package/dist/esm/{de-ch-c9d429dd.js → de-ch-acff745d.js} +5 -5
  290. package/dist/esm/deduct-calculator.entry.js +1 -1
  291. package/dist/esm/{downloadUtils-8d4c13bb.js → downloadUtils-42156cd8.js} +4 -4
  292. package/dist/esm/edit-card_2.entry.js +27 -24
  293. package/dist/esm/{el-66001281.js → el-9de96ff0.js} +5 -5
  294. package/dist/esm/{en-au-6424fec0.js → en-au-f68b6bde.js} +5 -5
  295. package/dist/esm/{en-ca-f5f1659d.js → en-ca-5360517e.js} +5 -5
  296. package/dist/esm/{en-gb-796beadd.js → en-gb-de0b3125.js} +5 -5
  297. package/dist/esm/{es-cd139926.js → es-5ecbba77.js} +5 -5
  298. package/dist/esm/{es-mx-854dc3e4.js → es-mx-aa126462.js} +5 -5
  299. package/dist/esm/{et-2aa6782d.js → et-7113eeb8.js} +5 -5
  300. package/dist/esm/{fi-965727bd.js → fi-ffa60f15.js} +5 -5
  301. package/dist/esm/{form-04d47b0b.js → form-24e6ef1d.js} +1 -1
  302. package/dist/esm/{fr-c1884e89.js → fr-681c5bf6.js} +5 -5
  303. package/dist/esm/{fr-ch-1fd8dd3a.js → fr-ch-9af1f8b1.js} +5 -5
  304. package/dist/esm/{he-0d7b78b4.js → he-5188f277.js} +5 -5
  305. package/dist/esm/{hi-0376c82d.js → hi-6a31e3a4.js} +5 -5
  306. package/dist/esm/{hr-28a64903.js → hr-0598e59d.js} +5 -5
  307. package/dist/esm/{hu-44a02ff7.js → hu-13cb9f41.js} +5 -5
  308. package/dist/esm/{id-034fc4a5.js → id-7f342499.js} +5 -5
  309. package/dist/esm/{index-b5d9d795.js → index-c7de2486.js} +3 -0
  310. package/dist/esm/{index-b91c174c.js → index-f4bd5aa3.js} +1 -1
  311. package/dist/esm/{index.es-065c3035.js → index.es-f47c4153.js} +6 -6
  312. package/dist/esm/{interfaces-5a2fe8b4.js → interfaces-7470d906.js} +1 -6
  313. package/dist/esm/{it-56e52026.js → it-57d790f2.js} +5 -5
  314. package/dist/esm/{it-ch-a4a0e136.js → it-ch-081af760.js} +5 -5
  315. package/dist/esm/{ja-f2365272.js → ja-3affb68e.js} +5 -5
  316. package/dist/esm/{ko-e7650b4c.js → ko-736632aa.js} +5 -5
  317. package/dist/esm/layout-manager.entry.js +3 -3
  318. package/dist/esm/list-item.entry.js +1 -1
  319. package/dist/esm/{loadModules-f5f910b6.js → loadModules-2880c7e3.js} +1 -1
  320. package/dist/esm/{loadable-47170cb6.js → loadable-f848be11.js} +1 -1
  321. package/dist/esm/loader.js +3 -3
  322. package/dist/esm/{locale-efad8f83.js → locale-9624832c.js} +1 -1
  323. package/dist/esm/{lt-1577a952.js → lt-e7d9b1c3.js} +5 -5
  324. package/dist/esm/{lv-9ef7e4f6.js → lv-4d1a507e.js} +5 -5
  325. package/dist/esm/map-select-tools_3.entry.js +16 -10
  326. package/dist/esm/{mapViewUtils-f0c04325.js → mapViewUtils-00a04d52.js} +1 -1
  327. package/dist/esm/{mk-94264e08.js → mk-f960312d.js} +5 -5
  328. package/dist/esm/{nb-fa24d5b2.js → nb-4556b5e9.js} +5 -5
  329. package/dist/esm/{nl-33f10900.js → nl-8e281c01.js} +5 -5
  330. package/dist/esm/{openCloseComponent-10efeff3.js → openCloseComponent-9fce341c.js} +1 -1
  331. package/dist/esm/pci-calculator.entry.js +1 -1
  332. package/dist/esm/{pl-9ed16565.js → pl-1460fd5a.js} +5 -5
  333. package/dist/esm/{pt-52731ddf.js → pt-660332b6.js} +5 -5
  334. package/dist/esm/{pt-br-8de51ff4.js → pt-br-dba48f49.js} +5 -5
  335. package/dist/esm/public-notification.entry.js +8 -8
  336. package/dist/esm/{publicNotificationStore-ade82148.js → publicNotificationStore-90a6a274.js} +1 -1
  337. package/dist/esm/resources-74ea5c42.js +26 -0
  338. package/dist/esm/{ro-99f009ad.js → ro-ac18f292.js} +5 -5
  339. package/dist/esm/{ru-592ffaf0.js → ru-b914f6b7.js} +5 -5
  340. package/dist/esm/{shared-list-render-4f0f6af8.js → shared-list-render-cc889757.js} +1 -1
  341. package/dist/esm/{sk-44f7bd19.js → sk-1be12963.js} +5 -5
  342. package/dist/esm/{sl-08cad9bd.js → sl-5d47e4e4.js} +5 -5
  343. package/dist/esm/solution-configuration.entry.js +5 -5
  344. package/dist/esm/solution-contents_3.entry.js +5 -5
  345. package/dist/esm/{solution-store-46bc46a5.js → solution-store-cf902566.js} +2 -2
  346. package/dist/esm/solutions-components.js +3 -3
  347. package/dist/esm/{sr-84f261fc.js → sr-3281c92d.js} +5 -5
  348. package/dist/esm/store-manager.entry.js +1 -1
  349. package/dist/esm/{sv-d0d7bc1e.js → sv-e5169404.js} +5 -5
  350. package/dist/esm/{t9n-5f748619.js → t9n-d9c203e4.js} +1 -1
  351. package/dist/esm/{th-a5149d44.js → th-937796b8.js} +5 -5
  352. package/dist/esm/{tr-feb0cad4.js → tr-6d3b100b.js} +5 -5
  353. package/dist/esm/{uk-c9ba62a0.js → uk-a6edcacf.js} +5 -5
  354. package/dist/esm/{utils-0a5c1a07.js → utils-24a35b5a.js} +1 -1
  355. package/dist/esm/{vi-788dcb99.js → vi-bf4c179c.js} +5 -5
  356. package/dist/esm/{zh-cn-3ccfb820.js → zh-cn-de1858cb.js} +5 -5
  357. package/dist/esm/{zh-hk-b29b61e8.js → zh-hk-12fa404f.js} +5 -5
  358. package/dist/esm/{zh-tw-2bdbc6eb.js → zh-tw-5c4220e5.js} +5 -5
  359. package/dist/solutions-components/{p-1efcac52.entry.js → p-019fe9fe.entry.js} +3 -3
  360. package/dist/solutions-components/{p-95c11620.js → p-0503c78d.js} +2 -2
  361. package/dist/solutions-components/p-06712292.js +11 -0
  362. package/dist/solutions-components/{p-5eaaf6ea.entry.js → p-0870f436.entry.js} +1 -1
  363. package/dist/solutions-components/{p-99891e57.js → p-0a0c3764.js} +1 -1
  364. package/dist/solutions-components/{p-1bcfca9b.entry.js → p-0a883f51.entry.js} +1 -1
  365. package/dist/solutions-components/{p-3948a96c.js → p-0ca528ec.js} +1 -1
  366. package/dist/solutions-components/{p-456f5afe.entry.js → p-0d08a75d.entry.js} +1 -1
  367. package/dist/solutions-components/{p-0266ca81.js → p-0dab4c93.js} +1 -1
  368. package/dist/solutions-components/{p-f815b5ef.entry.js → p-0de1df10.entry.js} +1 -1
  369. package/dist/solutions-components/{p-138cf009.js → p-127c3866.js} +1 -1
  370. package/dist/solutions-components/p-12a7c2db.entry.js +6 -0
  371. package/dist/solutions-components/{p-d6f68a4e.entry.js → p-1552c479.entry.js} +1 -1
  372. package/dist/solutions-components/{p-dc9dad31.entry.js → p-15a9fe95.entry.js} +1 -1
  373. package/dist/solutions-components/{p-2bf63e2e.js → p-19ec0463.js} +1 -1
  374. package/dist/solutions-components/{p-651459e2.entry.js → p-1a47516a.entry.js} +2 -2
  375. package/dist/solutions-components/{p-3c15959e.js → p-1b4d6511.js} +1 -1
  376. package/dist/solutions-components/{p-b25005cf.entry.js → p-1ed80742.entry.js} +1 -1
  377. package/dist/solutions-components/{p-ec889511.js → p-1f69762c.js} +1 -1
  378. package/dist/solutions-components/{p-7f9642d5.js → p-22833bd3.js} +1 -1
  379. package/dist/solutions-components/{p-5958dad9.js → p-245d667e.js} +1 -1
  380. package/dist/solutions-components/{p-c9df539a.entry.js → p-25718b9f.entry.js} +1 -1
  381. package/dist/solutions-components/{p-0f85fa4b.js → p-2723beaa.js} +1 -1
  382. package/dist/solutions-components/{p-ae6a7b3b.entry.js → p-2821ab80.entry.js} +1 -1
  383. package/dist/solutions-components/{p-7262469a.js → p-2937523d.js} +1 -1
  384. package/dist/solutions-components/{p-bde323ec.js → p-29b2f046.js} +1 -1
  385. package/dist/solutions-components/p-2a58e378.js +21 -0
  386. package/dist/solutions-components/p-2cff8331.entry.js +6 -0
  387. package/dist/solutions-components/{p-0b8463d6.js → p-2d614afc.js} +1 -1
  388. package/dist/solutions-components/{p-aea37c90.js → p-300f4299.js} +1 -1
  389. package/dist/solutions-components/{p-64e2c099.js → p-30542275.js} +1 -1
  390. package/dist/solutions-components/{p-688f6a0a.js → p-318790b8.js} +1 -1
  391. package/dist/solutions-components/{p-e4253e1b.entry.js → p-31c9aa38.entry.js} +1 -1
  392. package/dist/solutions-components/{p-446ab7f8.entry.js → p-31d2a105.entry.js} +1 -1
  393. package/dist/solutions-components/p-33613993.js +7 -0
  394. package/dist/solutions-components/{p-7060caf6.js → p-337f6adf.js} +1 -1
  395. package/dist/solutions-components/{p-5ceef49b.js → p-34169501.js} +1 -1
  396. package/dist/solutions-components/{p-4d76eaf6.entry.js → p-3658ebd8.entry.js} +1 -1
  397. package/dist/solutions-components/{p-3445a8c6.js → p-3691a072.js} +1 -1
  398. package/dist/solutions-components/{p-28b5a7cf.js → p-38211628.js} +1 -1
  399. package/dist/solutions-components/{p-e2637fe6.js → p-38cc8a4d.js} +1 -1
  400. package/dist/solutions-components/{p-0fa3d1aa.js → p-39fe9a4c.js} +1 -1
  401. package/dist/solutions-components/{p-4f9f97b2.entry.js → p-3a7cd2b0.entry.js} +1 -1
  402. package/dist/solutions-components/{p-ca3d7edd.entry.js → p-3b891cc4.entry.js} +1 -1
  403. package/dist/solutions-components/{p-0f8440bb.entry.js → p-3cc30e11.entry.js} +1 -1
  404. package/dist/solutions-components/{p-8f8d2861.js → p-3d3772fb.js} +1 -1
  405. package/dist/solutions-components/{p-667e7134.entry.js → p-3e9fc0aa.entry.js} +1 -1
  406. package/dist/solutions-components/{p-635bbbd4.js → p-418be467.js} +1 -1
  407. package/dist/solutions-components/{p-586f0e3d.entry.js → p-45419d93.entry.js} +1 -1
  408. package/dist/solutions-components/{p-a46f1b45.js → p-45b829b5.js} +1 -1
  409. package/dist/solutions-components/{p-58167087.entry.js → p-48329056.entry.js} +1 -1
  410. package/dist/solutions-components/{p-6be3c411.js → p-4b4559f9.js} +1 -1
  411. package/dist/solutions-components/{p-8544d557.entry.js → p-4bd793ef.entry.js} +1 -1
  412. package/dist/solutions-components/{p-cec47579.entry.js → p-4cb7cdb7.entry.js} +1 -1
  413. package/dist/solutions-components/{p-0f77e83c.entry.js → p-4d91443a.entry.js} +2 -2
  414. package/dist/solutions-components/{p-6ce7b446.entry.js → p-52ec0b32.entry.js} +1 -1
  415. package/dist/solutions-components/{p-da6acb22.entry.js → p-537c34a4.entry.js} +1 -1
  416. package/dist/solutions-components/{p-7a027758.entry.js → p-54064b61.entry.js} +1 -1
  417. package/dist/solutions-components/{p-60c15592.js → p-54cc02c9.js} +1 -1
  418. package/dist/solutions-components/{p-2592c0b8.js → p-557d4cc5.js} +1 -1
  419. package/dist/solutions-components/{p-8f68f1d3.entry.js → p-61af54b9.entry.js} +1 -1
  420. package/dist/solutions-components/{p-0109bef4.entry.js → p-628c170b.entry.js} +1 -1
  421. package/dist/solutions-components/{p-e0c011b8.js → p-62e3adbb.js} +1 -1
  422. package/dist/solutions-components/{p-1e7a31c1.entry.js → p-64541510.entry.js} +1 -1
  423. package/dist/solutions-components/{p-3ce89910.entry.js → p-65022e7f.entry.js} +1 -1
  424. package/dist/solutions-components/{p-bbb0d957.entry.js → p-66dd455f.entry.js} +1 -1
  425. package/dist/solutions-components/{p-f596eabd.entry.js → p-68630513.entry.js} +1 -1
  426. package/dist/solutions-components/{p-1cebde99.js → p-69e26726.js} +1 -1
  427. package/dist/solutions-components/{p-78a40191.entry.js → p-701409be.entry.js} +2 -2
  428. package/dist/solutions-components/{p-636f4631.js → p-702c6093.js} +1 -1
  429. package/dist/solutions-components/{p-1dbaff04.entry.js → p-712ea336.entry.js} +1 -1
  430. package/dist/solutions-components/{p-7b2314ac.js → p-71400268.js} +1 -1
  431. package/dist/solutions-components/{p-89504313.entry.js → p-74521615.entry.js} +1 -1
  432. package/dist/solutions-components/{p-5c9fa0e7.js → p-747a1293.js} +1 -1
  433. package/dist/solutions-components/{p-8927339d.js → p-74aa84f6.js} +1 -1
  434. package/dist/solutions-components/{p-57c08531.entry.js → p-753da967.entry.js} +1 -1
  435. package/dist/solutions-components/{p-168a7d63.js → p-75e707d1.js} +1 -1
  436. package/dist/solutions-components/{p-f8dd2784.js → p-767002cd.js} +2 -2
  437. package/dist/solutions-components/{p-17a29fa6.entry.js → p-792fcd62.entry.js} +1 -1
  438. package/dist/solutions-components/{p-d864b7e3.js → p-79d7f324.js} +1 -1
  439. package/dist/solutions-components/{p-b28b6d40.js → p-7a11983d.js} +1 -1
  440. package/dist/solutions-components/{p-ea285144.js → p-80b87453.js} +1 -1
  441. package/dist/solutions-components/{p-864c190b.entry.js → p-8150ad0e.entry.js} +1 -1
  442. package/dist/solutions-components/{p-5e08d4de.js → p-82f0b25b.js} +1 -1
  443. package/dist/solutions-components/{p-e2eb4fd3.entry.js → p-85791b16.entry.js} +1 -1
  444. package/dist/solutions-components/{p-0ecd7346.js → p-85e0d2a3.js} +1 -1
  445. package/dist/solutions-components/{p-6ddc9567.entry.js → p-87971116.entry.js} +2 -2
  446. package/dist/solutions-components/{p-c79c7978.entry.js → p-89617f30.entry.js} +1 -1
  447. package/dist/solutions-components/{p-6eb4ba8f.js → p-89cbb86a.js} +1 -1
  448. package/dist/solutions-components/{p-ced11bea.entry.js → p-8a91195f.entry.js} +1 -1
  449. package/dist/solutions-components/{p-34ef43ce.entry.js → p-8b2e460e.entry.js} +1 -1
  450. package/dist/solutions-components/{p-ec378ea0.entry.js → p-8e3e1ce8.entry.js} +1 -1
  451. package/dist/solutions-components/{p-072155f9.js → p-8e9d9e6a.js} +1 -1
  452. package/dist/solutions-components/{p-a287be8b.js → p-90a9126f.js} +1 -1
  453. package/dist/solutions-components/{p-8c61431d.js → p-9391bb74.js} +1 -1
  454. package/dist/solutions-components/{p-2154de6d.js → p-941721ba.js} +1 -1
  455. package/dist/solutions-components/{p-38f906f2.js → p-9504c1b7.js} +1 -1
  456. package/dist/solutions-components/{p-0dd8368d.entry.js → p-97088307.entry.js} +1 -1
  457. package/dist/solutions-components/{p-7a8d99fe.entry.js → p-9791fbf1.entry.js} +1 -1
  458. package/dist/solutions-components/{p-6295e168.entry.js → p-97b69f54.entry.js} +1 -1
  459. package/dist/solutions-components/{p-261394d7.entry.js → p-981fc8e4.entry.js} +1 -1
  460. package/dist/solutions-components/{p-1fba74a5.entry.js → p-9961a2f9.entry.js} +1 -1
  461. package/dist/solutions-components/{p-3cfaf52b.entry.js → p-9abb1c4c.entry.js} +2 -2
  462. package/dist/solutions-components/{p-452850b4.entry.js → p-9b75102b.entry.js} +1 -1
  463. package/dist/solutions-components/{p-7bb12deb.js → p-a097edf0.js} +1 -1
  464. package/dist/solutions-components/p-a16e6f5f.entry.js +6 -0
  465. package/dist/solutions-components/{p-167eb73b.js → p-a19d8147.js} +1 -1
  466. package/dist/solutions-components/{p-31aaa60f.js → p-a59dba2f.js} +1 -1
  467. package/dist/solutions-components/{p-8af52074.entry.js → p-ac1bd870.entry.js} +1 -1
  468. package/dist/solutions-components/{p-9370bb48.entry.js → p-ad19f9b0.entry.js} +1 -1
  469. package/dist/solutions-components/{p-9a35ef8e.js → p-ae3ec77d.js} +1 -1
  470. package/dist/solutions-components/{p-56f1d66b.entry.js → p-ae4ad673.entry.js} +2 -2
  471. package/dist/solutions-components/{p-13290851.js → p-afb35c95.js} +1 -1
  472. package/dist/solutions-components/{p-ebbff02e.js → p-b029c6d8.js} +1 -1
  473. package/dist/solutions-components/{p-80cb42e4.entry.js → p-b09d8c0e.entry.js} +1 -1
  474. package/dist/solutions-components/{p-c1dcc1e7.js → p-b1daad7e.js} +1 -1
  475. package/dist/solutions-components/p-b6a1c34f.entry.js +17 -0
  476. package/dist/solutions-components/{p-f153f1c9.entry.js → p-b7093e6d.entry.js} +1 -1
  477. package/dist/solutions-components/{p-01c83b8c.entry.js → p-b97886b3.entry.js} +1 -1
  478. package/dist/solutions-components/{p-8d00a17e.js → p-bbfc2724.js} +1 -1
  479. package/dist/solutions-components/{p-149b4d3c.entry.js → p-bd82849c.entry.js} +1 -1
  480. package/dist/solutions-components/{p-c3ab7439.js → p-bfc78840.js} +1 -1
  481. package/dist/solutions-components/{p-cd673260.js → p-bff158ff.js} +1 -1
  482. package/dist/solutions-components/{p-879d6377.entry.js → p-c033b8ec.entry.js} +1 -1
  483. package/dist/solutions-components/{p-feff224c.entry.js → p-c261335b.entry.js} +1 -1
  484. package/dist/solutions-components/{p-10e1ebe4.entry.js → p-ca5be55f.entry.js} +2 -2
  485. package/dist/solutions-components/{p-2c0dc7b1.js → p-cc462e38.js} +1 -1
  486. package/dist/solutions-components/{p-cc2393c3.entry.js → p-cc624b0c.entry.js} +1 -1
  487. package/dist/solutions-components/{p-46352a57.entry.js → p-d118a76e.entry.js} +1 -1
  488. package/dist/solutions-components/p-d54c2dfd.entry.js +6 -0
  489. package/dist/solutions-components/{p-476e5302.js → p-d74e95e5.js} +1 -1
  490. package/dist/solutions-components/{p-0c2e392e.entry.js → p-d793ec96.entry.js} +1 -1
  491. package/dist/solutions-components/{p-90cef98d.entry.js → p-d7d466e8.entry.js} +1 -1
  492. package/dist/solutions-components/{p-27e0f599.js → p-d902b790.js} +1 -1
  493. package/dist/solutions-components/{p-e3d72832.entry.js → p-da760d1d.entry.js} +2 -2
  494. package/dist/solutions-components/{p-cee23126.js → p-dac10448.js} +1 -1
  495. package/dist/solutions-components/{p-8b74f5bb.entry.js → p-dc80cb69.entry.js} +1 -1
  496. package/dist/solutions-components/{p-9b76bf3d.js → p-dd5f68f2.js} +1 -1
  497. package/dist/solutions-components/{p-470a9ec4.entry.js → p-dda325a4.entry.js} +1 -1
  498. package/dist/solutions-components/{p-410068d9.entry.js → p-e502ccce.entry.js} +1 -1
  499. package/dist/solutions-components/{p-5d62566c.entry.js → p-e7304151.entry.js} +1 -1
  500. package/dist/solutions-components/{p-ac0abf04.entry.js → p-e849d2ba.entry.js} +2 -2
  501. package/dist/solutions-components/{p-73220ff1.js → p-e9fcf408.js} +1 -1
  502. package/dist/solutions-components/{p-28d2670f.entry.js → p-eb58da32.entry.js} +1 -1
  503. package/dist/solutions-components/{p-42f9ab43.entry.js → p-efd70bf7.entry.js} +2 -2
  504. package/dist/solutions-components/{p-be146646.js → p-f0f5ecb2.js} +1 -1
  505. package/dist/solutions-components/{p-082365d6.entry.js → p-f4e5b7e5.entry.js} +1 -1
  506. package/dist/solutions-components/{p-c70392c4.entry.js → p-f524cc5b.entry.js} +1 -1
  507. package/dist/solutions-components/{p-81814234.entry.js → p-f6b19af7.entry.js} +1 -1
  508. package/dist/solutions-components/{p-872036a8.js → p-f6cf9943.js} +1 -1
  509. package/dist/solutions-components/{p-c968f9aa.entry.js → p-f72e0965.entry.js} +1 -1
  510. package/dist/solutions-components/{p-b28ff52c.js → p-f7aa542c.js} +1 -1
  511. package/dist/solutions-components/p-f812e3ee.entry.js +17 -0
  512. package/dist/solutions-components/{p-66b5211f.entry.js → p-f8944f59.entry.js} +1 -1
  513. package/dist/solutions-components/{p-a1c6db13.entry.js → p-fb23ba4a.entry.js} +1 -1
  514. package/dist/solutions-components/p-fb74e4a9.js +11 -0
  515. package/dist/solutions-components/{p-46e0ce0c.entry.js → p-fbd71543.entry.js} +1 -1
  516. package/dist/solutions-components/{p-29efbf76.entry.js → p-ff863f3d.entry.js} +1 -1
  517. package/dist/solutions-components/p-ffbe89cf.entry.js +6 -0
  518. package/dist/solutions-components/solutions-components.esm.js +1 -1
  519. package/dist/solutions-components/utils/interfaces.ts +0 -5
  520. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +21 -1
  521. package/dist/types/components/map-fullscreen/map-fullscreen.d.ts +71 -0
  522. package/dist/types/components/map-tools/map-tools.d.ts +15 -7
  523. package/dist/types/components/pdf-download/pdf-download.d.ts +1 -1
  524. package/dist/types/components.d.ts +31 -10
  525. package/dist/types/preact.d.ts +3 -3
  526. package/dist/types/utils/interfaces.d.ts +0 -4
  527. package/package.json +1 -1
  528. package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -250
  529. package/dist/esm/calcite-action-bar.entry.js +0 -246
  530. package/dist/solutions-components/p-18538cd9.entry.js +0 -11
  531. package/dist/solutions-components/p-868df4a0.js +0 -21
  532. package/dist/solutions-components/p-869d4521.entry.js +0 -6
  533. package/dist/solutions-components/p-9310b882.js +0 -7
  534. package/dist/solutions-components/p-9eba78eb.entry.js +0 -6
  535. package/dist/solutions-components/p-c26cd409.entry.js +0 -6
  536. package/dist/solutions-components/p-d4cb29ed.entry.js +0 -6
  537. package/dist/solutions-components/p-e4d2fcc5.js +0 -11
  538. package/dist/solutions-components/p-fb7ca639.entry.js +0 -6
  539. package/dist/solutions-components/p-fe96e0d9.entry.js +0 -23
@@ -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,h as i,F as e,g as s,c as o}from"./p-9310b882.js";import{c as n,d as a}from"./p-c3ab7439.js";import{c,s as l,a as r}from"./p-476e5302.js";import{c as h,d}from"./p-7f271c31.js";import{u,c as p,d as m,s as f}from"./p-2592c0b8.js";import{S as g,C as v,I as x}from"./p-4a75b3dc.js";import{S as b,I as y}from"./p-e761b7cd.js";import{r as w,t as I,i as M,h as k}from"./p-a16feeec.js";import{g as j}from"./p-0ed14b4b.js";import{g as E}from"./p-8b448a5b.js";import{i as C}from"./p-43ba7a04.js";import"./p-588bc0c0.js";import"./p-e3525c00.js";const z=class{constructor(i){t(this,i),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.handleMenuActionsSlotChange=t=>{this.hasMenuActions=w(t)},this.expanded=!1,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasMenuActions=!1}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}async setFocus(){await c(this),this.el.focus()}connectedCallback(){h(this),p(this),n(this)}disconnectedCallback(){d(this),m(this),a(this)}async componentWillLoad(){l(this),await f(this)}componentDidLoad(){r(this)}renderMenu(){const{expanded:t,menuOpen:e,scale:s,layout:o,messages:n,overlayPositioning:a,hasMenuActions:c}=this;return i("calcite-action-menu",{expanded:t,flipPlacements:["left","right"],hidden:!c,label:n.more,onCalciteActionMenuOpen:this.setMenuOpen,open:e,overlayPositioning:a,placement:"horizontal"===o?"bottom-start":"leading-start",scale:s},i("calcite-action",{icon:y.menu,scale:s,slot:g.trigger,text:n.more,textEnabled:t}),i("slot",{name:b.menuActions,onSlotchange:this.handleMenuActionsSlotChange}),i("slot",{name:b.menuTooltip,slot:g.tooltip}))}render(){return i(e,null,i("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};z.style=':host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]){flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}:host([hidden]){display:none}[hidden]{display:none}';const H=["ArrowUp","ArrowDown","End","Home"],A=class{constructor(i){t(this,i),this.calciteActionMenuOpen=o(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${E()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:t,menuId:i,open:e,label:s}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=e,o.setAttribute("aria-controls",i),o.setAttribute("aria-expanded",I(e)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=s),o.text||(o.text=s),o.addEventListener("pointerdown",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("pointerdown",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.slottedMenuButtonEl=i[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=t=>{M(t)&&this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e,open:s}=this;t&&(t.referenceElement=i||s?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:s}=this,o=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.active=i===s},this.updateActions=t=>{null==t||t.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.actionElements=i},this.menuButtonKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:s,open:o}=this;if(e.length){if(C(i)){if(t.preventDefault(),!o)return void this.toggleOpen();const i=e[s];i?i.click():this.toggleOpen(!1)}if("Tab"!==i)return"Escape"===i?(this.toggleOpen(!1),void t.preventDefault()):void this.handleActionNavigation(t,i,e);this.open=!1}},this.handleActionNavigation=(t,i,e)=>{if(!this.isValidKey(i,H))return;if(t.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==i&&"ArrowDown"!==i||(this.activeMenuItemIndex=0),void("End"!==i&&"ArrowUp"!==i||(this.activeMenuItemIndex=e.length-1));"Home"===i&&(this.activeMenuItemIndex=0),"End"===i&&(this.activeMenuItemIndex=e.length-1);const s=this.activeMenuItemIndex;"ArrowUp"===i&&(this.activeMenuItemIndex=j(Math.max(s-1,-1),e.length)),"ArrowDown"===i&&(this.activeMenuItemIndex=j(s+1,e.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){l(this)}componentDidLoad(){r(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(t){M(t)&&(t.composedPath().includes(this.el)||(this.open=!1))}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await c(this),k(this.menuButtonEl)}renderMenuButton(){const{label:t,scale:e,expanded:s}=this;return i("slot",{name:g.trigger,onSlotchange:this.setMenuButtonEl},i("calcite-action",{class:v.defaultTrigger,icon:x.menu,scale:e,text:t,textEnabled:s,ref:this.setDefaultMenuButtonEl}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:e,open:s,menuId:o,menuButtonEl:n,label:a,placement:c,overlayPositioning:l,flipPlacements:r}=this,h=t[e];return i("calcite-popover",{flipPlacements:r,focusTrapDisabled:!0,label:a,offsetDistance:0,open:s,overlayPositioning:l,placement:c,pointerDisabled:!0,referenceElement:n},i("div",{"aria-activedescendant":(null==h?void 0:h.id)||null,"aria-labelledby":null==n?void 0:n.id,class:v.menu,id:o,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},i("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return i(e,null,this.renderMenuButton(),this.renderMenuItems(),i("slot",{name:g.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};A.style=":host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-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:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";export{z as calcite_action_group,A as calcite_action_menu}
6
+ import{r as t,h as i,F as e,g as s,c as o}from"./p-33613993.js";import{c as n,d as a}from"./p-bfc78840.js";import{c,s as l,a as r}from"./p-d74e95e5.js";import{c as h,d}from"./p-7f271c31.js";import{u,c as p,d as m,s as f}from"./p-557d4cc5.js";import{S as g,C as v,I as x}from"./p-4a75b3dc.js";import{S as b,I as y}from"./p-e761b7cd.js";import{r as w,t as I,i as M,h as k}from"./p-a16feeec.js";import{g as j}from"./p-0ed14b4b.js";import{g as E}from"./p-8b448a5b.js";import{i as C}from"./p-43ba7a04.js";import"./p-588bc0c0.js";import"./p-e3525c00.js";const z=class{constructor(i){t(this,i),this.setMenuOpen=t=>{this.menuOpen=!!t.target.open},this.handleMenuActionsSlotChange=t=>{this.hasMenuActions=w(t)},this.expanded=!1,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasMenuActions=!1}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}async setFocus(){await c(this),this.el.focus()}connectedCallback(){h(this),p(this),n(this)}disconnectedCallback(){d(this),m(this),a(this)}async componentWillLoad(){l(this),await f(this)}componentDidLoad(){r(this)}renderMenu(){const{expanded:t,menuOpen:e,scale:s,layout:o,messages:n,overlayPositioning:a,hasMenuActions:c}=this;return i("calcite-action-menu",{expanded:t,flipPlacements:["left","right"],hidden:!c,label:n.more,onCalciteActionMenuOpen:this.setMenuOpen,open:e,overlayPositioning:a,placement:"horizontal"===o?"bottom-start":"leading-start",scale:s},i("calcite-action",{icon:y.menu,scale:s,slot:g.trigger,text:n.more,textEnabled:t}),i("slot",{name:b.menuActions,onSlotchange:this.handleMenuActionsSlotChange}),i("slot",{name:b.menuTooltip,slot:g.tooltip}))}render(){return i(e,null,i("slot",null),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};z.style=':host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]){flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}:host([hidden]){display:none}[hidden]{display:none}';const H=["ArrowUp","ArrowDown","End","Home"],A=class{constructor(i){t(this,i),this.calciteActionMenuOpen=o(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${E()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:t,menuId:i,open:e,label:s}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=e,o.setAttribute("aria-controls",i),o.setAttribute("aria-expanded",I(e)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=s),o.text||(o.text=s),o.addEventListener("pointerdown",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("pointerdown",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.slottedMenuButtonEl=i[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=t=>{M(t)&&this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e,open:s}=this;t&&(t.referenceElement=i||s?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:s}=this,o=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.active=i===s},this.updateActions=t=>{null==t||t.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-action")));this.actionElements=i},this.menuButtonKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:s,open:o}=this;if(e.length){if(C(i)){if(t.preventDefault(),!o)return void this.toggleOpen();const i=e[s];i?i.click():this.toggleOpen(!1)}if("Tab"!==i)return"Escape"===i?(this.toggleOpen(!1),void t.preventDefault()):void this.handleActionNavigation(t,i,e);this.open=!1}},this.handleActionNavigation=(t,i,e)=>{if(!this.isValidKey(i,H))return;if(t.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==i&&"ArrowDown"!==i||(this.activeMenuItemIndex=0),void("End"!==i&&"ArrowUp"!==i||(this.activeMenuItemIndex=e.length-1));"Home"===i&&(this.activeMenuItemIndex=0),"End"===i&&(this.activeMenuItemIndex=e.length-1);const s=this.activeMenuItemIndex;"ArrowUp"===i&&(this.activeMenuItemIndex=j(Math.max(s-1,-1),e.length)),"ArrowDown"===i&&(this.activeMenuItemIndex=j(s+1,e.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}componentWillLoad(){l(this)}componentDidLoad(){r(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}closeCalciteActionMenuOnClick(t){M(t)&&(t.composedPath().includes(this.el)||(this.open=!1))}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await c(this),k(this.menuButtonEl)}renderMenuButton(){const{label:t,scale:e,expanded:s}=this;return i("slot",{name:g.trigger,onSlotchange:this.setMenuButtonEl},i("calcite-action",{class:v.defaultTrigger,icon:x.menu,scale:e,text:t,textEnabled:s,ref:this.setDefaultMenuButtonEl}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:e,open:s,menuId:o,menuButtonEl:n,label:a,placement:c,overlayPositioning:l,flipPlacements:r}=this,h=t[e];return i("calcite-popover",{flipPlacements:r,focusTrapDisabled:!0,label:a,offsetDistance:0,open:s,overlayPositioning:l,placement:c,pointerDisabled:!0,referenceElement:n},i("div",{"aria-activedescendant":(null==h?void 0:h.id)||null,"aria-labelledby":null==n?void 0:n.id,class:v.menu,id:o,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},i("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return i(e,null,this.renderMenuButton(),this.renderMenuItems(),i("slot",{name:g.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return s(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};A.style=":host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-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:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}";export{z as calcite_action_group,A as calcite_action_menu}
@@ -3,7 +3,7 @@
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,h as e,g as t}from"./p-9310b882.js";import{e as o}from"./p-a16feeec.js";import{g as c}from"./p-8b448a5b.js";import{g as a,a as l}from"./p-05b2bdf9.js";import"./p-e3525c00.js";
6
+ import{r as i,h as e,g as t}from"./p-33613993.js";import{e as o}from"./p-a16feeec.js";import{g as c}from"./p-8b448a5b.js";import{g as a,a as l}from"./p-05b2bdf9.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.
@@ -3,7 +3,7 @@
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,H as a,g as n}from"./p-9310b882.js";import{c as o,d as r}from"./p-c3ab7439.js";import{f as s,g as c,t as l}from"./p-a16feeec.js";import{g as d}from"./p-8b448a5b.js";import{c as h,d as g,u as p}from"./p-ad75b9bb.js";import{c as m,d as u}from"./p-7f271c31.js";import{u as f,c as b,d as v,s as x}from"./p-2592c0b8.js";import{H as y}from"./p-60c15592.js";import{c as k,s as w,a as z}from"./p-476e5302.js";import"./p-588bc0c0.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";
6
+ import{r as e,c as i,h as t,H as a,g as n}from"./p-33613993.js";import{c as o,d as r}from"./p-bfc78840.js";import{f as s,g as c,t as l}from"./p-a16feeec.js";import{g as d}from"./p-8b448a5b.js";import{c as h,d as g,u as p}from"./p-ad75b9bb.js";import{c as m,d as u}from"./p-7f271c31.js";import{u as f,c as b,d as v,s as x}from"./p-557d4cc5.js";import{H as y}from"./p-54cc02c9.js";import{c as k,s as w,a as z}from"./p-d74e95e5.js";import"./p-588bc0c0.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.
@@ -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,c as i,f as s,h as e,H as a,g as o}from"./p-9310b882.js";import{g as r}from"./p-0ed14b4b.js";import{a as n,h as c,t as d}from"./p-a16feeec.js";import{c as h,d as l,H as u}from"./p-072155f9.js";import{g as p}from"./p-8b448a5b.js";import{c as b,d as f,u as m}from"./p-ad75b9bb.js";import{c as v,d as k,g as x}from"./p-d2d3e4b5.js";import{c as g,s as w,a as y}from"./p-476e5302.js";import"./p-e3525c00.js";
6
+ import{r as t,c as i,f as e,h as s,H as a,g as o}from"./p-33613993.js";import{g as r}from"./p-0ed14b4b.js";import{a as d,h as n,t as c}from"./p-a16feeec.js";import{c as h,d as l,H as u}from"./p-8e9d9e6a.js";import{g as p}from"./p-8b448a5b.js";import{c as b,d as f,u as m}from"./p-ad75b9bb.js";import{c as v,d as k,g as x}from"./p-d2d3e4b5.js";import{c as g,s as w,a as y}from"./p-d74e95e5.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
10
  * v1.6.1
11
- */const z=class{constructor(s){t(this,s),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((t=>t.name===this.name)),this.isFocusable=()=>{const t=this.queryButtons(),i=t.find((t=>!t.disabled)),s=t.find((t=>t.checked));return i===this.el&&!s},this.check=()=>{this.disabled||(this.focused=!0,this.setFocus(),this.checked||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.calciteRadioButtonChange.emit()))},this.clickHandler=()=>{this.disabled||this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const{key:i}=t,{el:s}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return this.check(),void t.preventDefault();let e=i;"rtl"===n(s)&&("ArrowRight"===i&&(e="ArrowLeft"),"ArrowLeft"===i&&(e="ArrowRight"));const a=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let o=0;const c=a.length;switch(a.some(((t,i)=>{if(t.checked)return o=i,!0})),e){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(a,r(Math.max(o-1,-1),c));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(a,r(o+1,c));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.form=void 0,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}disabledChanged(){this.updateTabIndexOfOtherRadioButtonsInGroup()}hiddenChanged(){this.updateTabIndexOfOtherRadioButtonsInGroup()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await g(this),this.disabled||c(this.containerEl)}syncHiddenFormInput(t){t.type="radio"}onLabelClick(t){if(this.disabled||this.hidden)return;const i=t.currentTarget,s=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);s&&(s.focused=!0,this.setFocus(),s.checked||(this.uncheckOtherRadioButtonsInGroup(),s.checked=!0,this.calciteRadioButtonChange.emit()))}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if((null==t?void 0:t.length)>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}updateTabIndexOfOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid&&!t.disabled)).forEach((t=>{s(t)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isFocusable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${p()}`,this.name&&this.checkLastRadioButton(),b(this),v(this),h(this),this.updateTabIndexOfOtherRadioButtonsInGroup()}componentWillLoad(){w(this)}componentDidLoad(){y(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){f(this),k(this),l(this),this.updateTabIndexOfOtherRadioButtonsInGroup()}componentDidRender(){m(this)}render(){const t=this.getTabIndex();return e(a,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},e("div",{"aria-checked":d(this.checked),"aria-label":x(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"radio",tabIndex:t,ref:this.setContainerEl},e("div",{class:"radio"})),e(u,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"],hidden:["hiddenChanged"],name:["nameChanged"]}}};z.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:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}';export{z as calcite_radio_button}
11
+ */const z=class{constructor(e){t(this,e),this.calciteInternalRadioButtonBlur=i(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=i(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=i(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=i(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(t,i)=>{t[i].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((t=>t.name===this.name)),this.isFocusable=()=>{const t=this.queryButtons(),i=t.find((t=>!t.disabled)),e=t.find((t=>t.checked));return i===this.el&&!e},this.check=()=>{this.disabled||(this.focused=!0,this.setFocus(),this.checked||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.calciteRadioButtonChange.emit()))},this.clickHandler=()=>{this.disabled||this.check()},this.setContainerEl=t=>{this.containerEl=t},this.handleKeyDown=t=>{const{key:i}=t,{el:e}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;if(" "===i)return this.check(),void t.preventDefault();let s=i;"rtl"===d(e)&&("ArrowRight"===i&&(s="ArrowLeft"),"ArrowLeft"===i&&(s="ArrowRight"));const a=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((t=>t.name===this.name));let o=0;const n=a.length;switch(a.some(((t,i)=>{if(t.checked)return o=i,!0})),s){case"ArrowLeft":case"ArrowUp":return t.preventDefault(),void this.selectItem(a,r(Math.max(o-1,-1),n));case"ArrowRight":case"ArrowDown":return t.preventDefault(),void this.selectItem(a,r(o+1,n));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.form=void 0,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(t){t&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}disabledChanged(){this.updateTabIndexOfOtherRadioButtonsInGroup()}hiddenChanged(){this.updateTabIndexOfOtherRadioButtonsInGroup()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await g(this),this.disabled||n(this.containerEl)}syncHiddenFormInput(t){t.type="radio"}onLabelClick(t){if(this.disabled||this.hidden)return;const i=t.currentTarget,e=i.for?this.rootNode.querySelector(`calcite-radio-button[id="${i.for}"]`):i.querySelector(`calcite-radio-button[name="${this.name}"]`);e&&(e.focused=!0,this.setFocus(),e.checked||(this.uncheckOtherRadioButtonsInGroup(),e.checked=!0,this.calciteRadioButtonChange.emit()))}checkLastRadioButton(){const t=this.queryButtons().filter((t=>t.checked));if((null==t?void 0:t.length)>1){const i=t[t.length-1];t.filter((t=>t!==i)).forEach((t=>{t.checked=!1,t.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid)).forEach((t=>{t.checked&&(t.checked=!1,t.focused=!1)}))}updateTabIndexOfOtherRadioButtonsInGroup(){this.queryButtons().filter((t=>t.guid!==this.guid&&!t.disabled)).forEach((t=>{e(t)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isFocusable()?0:-1}pointerEnterHandler(){this.disabled||(this.hovered=!0)}pointerLeaveHandler(){this.disabled||(this.hovered=!1)}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${p()}`,this.name&&this.checkLastRadioButton(),b(this),v(this),h(this),this.updateTabIndexOfOtherRadioButtonsInGroup()}componentWillLoad(){w(this)}componentDidLoad(){y(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){f(this),k(this),l(this),this.updateTabIndexOfOtherRadioButtonsInGroup()}componentDidRender(){m(this)}render(){const t=this.getTabIndex();return s(a,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},s("div",{"aria-checked":c(this.checked),"aria-label":x(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,role:"radio",tabIndex:t,ref:this.setContainerEl},s("div",{class:"radio"})),s(u,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"],hidden:["hiddenChanged"],name:["nameChanged"]}}};z.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:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}';export{z as calcite_radio_button}
@@ -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-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";function a(e,a,t,s){var m={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return a?(m[t][2]?m[t][2]:m[t][1]).replace("%d",e):(s?m[t][0]:m[t][1]).replace("%d",e)}var t={name:"et",weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},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"}};e.locale(t,null,!0);export default t;
6
+ import{d as e}from"./p-06712292.js";import"./p-33613993.js";import"./p-8e9d9e6a.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-d74e95e5.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-557d4cc5.js";function a(e,a,t,s){var m={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return a?(m[t][2]?m[t][2]:m[t][1]).replace("%d",e):(s?m[t][0]:m[t][1]).replace("%d",e)}var t={name:"et",weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},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"}};e.locale(t,null,!0);export default 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{r as t,c as s,g as e}from"./p-9310b882.js";const r=class{constructor(e){t(this,e),this.stateLoaded=s(this,"stateLoaded",7),this.value="",this.templates=[],this.authentication=void 0}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const s=t.target[t.attributeName];if("attributes"===t.type&&"value"===t.attributeName&&s!==t.oldValue&&""!==s)return!0}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}get el(){return e(this)}};export{r as store_manager}
6
+ import{r as t,c as s,g as e}from"./p-33613993.js";const r=class{constructor(e){t(this,e),this.stateLoaded=s(this,"stateLoaded",7),this.value="",this.templates=[],this.authentication=void 0}connectedCallback(){this._initValueObserver()}render(){return null}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.some((t=>{const s=t.target[t.attributeName];if("attributes"===t.type&&"value"===t.attributeName&&s!==t.oldValue&&""!==s)return!0}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}get el(){return e(this)}};export{r as store_manager}
@@ -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 s,H as e,g as i}from"./p-9310b882.js";import{s as a,d as o,h as n}from"./p-a16feeec.js";import{s as r,a as h,c}from"./p-476e5302.js";import{c as l,d as p}from"./p-7f271c31.js";import{u,c as d,s as m,d as f}from"./p-2592c0b8.js";import{c as g}from"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";
6
+ import{r as t,h as s,H as e,g as i}from"./p-33613993.js";import{s as a,d as o,h as n}from"./p-a16feeec.js";import{s as r,a as c,c as h}from"./p-d74e95e5.js";import{c as l,d as p}from"./p-7f271c31.js";import{u,c as d,s as m,d as f}from"./p-557d4cc5.js";import{c as g}from"./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
10
  * v1.6.1
11
- */const v=["lang","role"],b=new Map;let y;function j(t,s,e=!1){const{el:i}=t,a=e?t.globalAttributes:{};s.filter((t=>!!v.includes(t)&&!!i.hasAttribute(t))).forEach((t=>{const s=i.getAttribute(t);null!==s&&(a[t]=s)})),t.globalAttributes=a}function w(t){t.forEach((({target:t})=>{const[s,e]=b.get(t);j(s,e.attributeFilter)}))}const x=class{constructor(s){t(this,s),this.menuItems=[],this.handleMenuSlotChange=t=>{this.menuItems=a(t),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.globalAttributes={role:"menubar"}}handleLayoutChange(t){this.setMenuItemLayout(this.menuItems,t)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){l(this),d(this),function(t,s){const{el:e}=t,i={attributeFilter:s};b.set(e,[t,i]),j(t,s,!0),y||(y=g("mutation",w)),y.observe(e,i)}(this,["role"])}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){h(this)}disconnectedCallback(){p(this),f(this),function(t){b.delete(t.el),w(y.takeRecords()),y.disconnect();for(const[t,[,s]]of b.entries())y.observe(t,s)}(this)}async setFocus(){await c(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(t){const s=t.target,e=t.detail.children,i=t.detail.event.key;t.stopPropagation(),"ArrowDown"===i?"vertical"===s.layout?o(this.menuItems,s,"next",!1):t.detail.isSubmenuOpen&&e[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?o(this.menuItems,s,"previous",!1):t.detail.isSubmenuOpen&&e[e.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?o(this.menuItems,s,"next",!1):t.detail.isSubmenuOpen&&e[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?o(this.menuItems,s,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):"Escape"===i&&this.focusParentElement(t.target),t.preventDefault()}focusParentElement(t){const s=t.parentElement;s&&(n(s),s.open=!1)}setMenuItemLayout(t,s){t.forEach((t=>{t.layout=s,"menubar"===this.globalAttributes.role&&(t.isTopLevelItem=!0,t.topLevelMenuLayout=this.layout)}))}render(){return s(e,null,s("ul",Object.assign({"aria-label":this.label},this.globalAttributes),s("slot",{onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};x.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_menu}
11
+ */const v=["lang","role"],y=new Map;let b;function j(t,s,e=!1){const{el:i}=t,a=e?t.globalAttributes:{};s.filter((t=>!!v.includes(t)&&!!i.hasAttribute(t))).forEach((t=>{const s=i.getAttribute(t);null!==s&&(a[t]=s)})),t.globalAttributes=a}function w(t){t.forEach((({target:t})=>{const[s,e]=y.get(t);j(s,e.attributeFilter)}))}const x=class{constructor(s){t(this,s),this.menuItems=[],this.handleMenuSlotChange=t=>{this.menuItems=a(t),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.globalAttributes={role:"menubar"}}handleLayoutChange(t){this.setMenuItemLayout(this.menuItems,t)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){l(this),d(this),function(t,s){const{el:e}=t,i={attributeFilter:s};y.set(e,[t,i]),j(t,s,!0),b||(b=g("mutation",w)),b.observe(e,i)}(this,["role"])}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){c(this)}disconnectedCallback(){p(this),f(this),function(t){y.delete(t.el),w(b.takeRecords()),b.disconnect();for(const[t,[,s]]of y.entries())b.observe(t,s)}(this)}async setFocus(){await h(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(t){const s=t.target,e=t.detail.children,i=t.detail.event.key;t.stopPropagation(),"ArrowDown"===i?"vertical"===s.layout?o(this.menuItems,s,"next",!1):t.detail.isSubmenuOpen&&e[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?o(this.menuItems,s,"previous",!1):t.detail.isSubmenuOpen&&e[e.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?o(this.menuItems,s,"next",!1):t.detail.isSubmenuOpen&&e[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?o(this.menuItems,s,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):"Escape"===i&&this.focusParentElement(t.target),t.preventDefault()}focusParentElement(t){const s=t.parentElement;s&&(n(s),s.open=!1)}setMenuItemLayout(t,s){t.forEach((t=>{t.layout=s,"menubar"===this.globalAttributes.role&&(t.isTopLevelItem=!0,t.topLevelMenuLayout=this.layout)}))}render(){return s(e,null,s("ul",Object.assign({"aria-label":this.label},this.globalAttributes),s("slot",{onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};x.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_menu}
@@ -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 a}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:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),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:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export default r;
6
+ import{d as a}from"./p-06712292.js";import"./p-33613993.js";import"./p-8e9d9e6a.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-d74e95e5.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-557d4cc5.js";var r={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),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:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};a.locale(r,null,!0);export default r;
@@ -3,7 +3,7 @@
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 t,h as i,g as a}from"./p-9310b882.js";import{c as s,d as n}from"./p-c3ab7439.js";import{t as o,g as l}from"./p-a16feeec.js";import{c as r,d as c}from"./p-7f271c31.js";import{c as d,d as h,s as m,u as p}from"./p-2592c0b8.js";import"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";
6
+ import{r as e,c as t,h as i,g as a}from"./p-33613993.js";import{c as s,d as n}from"./p-bfc78840.js";import{t as o,g as l}from"./p-a16feeec.js";import{c as r,d as c}from"./p-7f271c31.js";import{c as d,d as h,s as m,u as p}from"./p-557d4cc5.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.
@@ -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 i,h as t,H as a,g as l}from"./p-9310b882.js";import{c as e}from"./p-63a0e9bf.js";const s=class{constructor(t){i(this,t),this.showAddDeduct=!1}render(){const i=this.showAddDeduct?"position-relative":"display-none";return t(a,null,t("div",{class:this.showAddDeduct?"display-none":"display-grid"},t("div",{class:"label-display"},t("calcite-label",{class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),t("div",null,this._getCalculateButton())),t("div",{class:i},t("div",{class:"position-right"},t("calcite-action",{appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),t("deduct-calculator",{class:"display-grid padding-top-1",onDeductValueComplete:i=>this._addDeductValue(i)})))}_getDeductValuesInput(){return t("div",{class:"display-flex"},t("calcite-input",{class:"main-input",ref:i=>{this._deductValuesElement=i}}),t("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return t("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(i){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${i.detail}`:i.detail}_calculatePCI(i){const t=e(i,!0),a=t<=10?"Failed":t<=25?"Serious":t<=40?"Very Poor":t<=55?"Poor":t<=70?"Fair":t<=85?"Satisfactory":"Good";console.log(`PCI: ${t}`),console.log(`Rating: ${a}`),alert("See debug console for results")}get el(){return l(this)}};s.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{s as pci_calculator}
6
+ import{r as i,h as t,H as a,g as l}from"./p-33613993.js";import{c as e}from"./p-63a0e9bf.js";const s=class{constructor(t){i(this,t),this.showAddDeduct=!1}render(){const i=this.showAddDeduct?"position-relative":"display-none";return t(a,null,t("div",{class:this.showAddDeduct?"display-none":"display-grid"},t("div",{class:"label-display"},t("calcite-label",{class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),t("div",null,this._getCalculateButton())),t("div",{class:i},t("div",{class:"position-right"},t("calcite-action",{appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),t("deduct-calculator",{class:"display-grid padding-top-1",onDeductValueComplete:i=>this._addDeductValue(i)})))}_getDeductValuesInput(){return t("div",{class:"display-flex"},t("calcite-input",{class:"main-input",ref:i=>{this._deductValuesElement=i}}),t("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return t("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(i){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${i.detail}`:i.detail}_calculatePCI(i){const t=e(i,!0),a=t<=10?"Failed":t<=25?"Serious":t<=40?"Very Poor":t<=55?"Poor":t<=70?"Fair":t<=85?"Satisfactory":"Good";console.log(`PCI: ${t}`),console.log(`Rating: ${a}`),alert("See debug console for results")}get el(){return l(this)}};s.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{s as pci_calculator}
@@ -3,7 +3,7 @@
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,g as a}from"./p-9310b882.js";import{c as e}from"./p-588bc0c0.js";import{c as s,s as n,a as o}from"./p-476e5302.js";
6
+ import{r as t,h as i,g as a}from"./p-33613993.js";import{c as e}from"./p-588bc0c0.js";import{c as s,s as n,a as o}from"./p-d74e95e5.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.
@@ -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 u}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";function t(u,t,i,a){var m={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},n={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},s=a&&!t?n:m;return s[i].replace("%d",u<10?s.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export default i;
6
+ import{d as u}from"./p-06712292.js";import"./p-33613993.js";import"./p-8e9d9e6a.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-d74e95e5.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-557d4cc5.js";function t(u,t,i,a){var m={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},e={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},n=a&&!t?e:m;return n[i].replace("%d",u<10?n.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export default i;
@@ -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 e,c as t,h as i,g as s,F as n}from"./p-9310b882.js";import{c as o}from"./p-588bc0c0.js";import{h as a}from"./p-a16feeec.js";import{c,d as r,a as l,H as h}from"./p-072155f9.js";import{c as d,d as p,u}from"./p-ad75b9bb.js";import{c as m,d as b,g as v}from"./p-d2d3e4b5.js";import{s as f,a as g,c as C}from"./p-476e5302.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";const w=class{constructor(i){e(this,i),this.calciteInternalOptionChange=t(this,"calciteInternalOptionChange",6),this.mutationObserver=o("mutation",(()=>{this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()})),this.disabled=!1,this.label=void 0,this.selected=void 0,this.value=void 0}handlePropChange(e,t,i){"label"!==i&&"value"!==i||this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()}ensureTextContentDependentProps(){const{el:{textContent:e}}=this;this.label&&this.label!==this.internallySetLabel||(this.label=e,this.internallySetLabel=e),this.value&&this.value!==this.internallySetValue||(this.value=e,this.internallySetValue=e)}connectedCallback(){var e;this.ensureTextContentDependentProps(),null===(e=this.mutationObserver)||void 0===e||e.observe(this.el,{attributeFilter:["label","value"],characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return i("slot",null,this.label)}get el(){return s(this)}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"],selected:["handlePropChange"],value:["handlePropChange"]}}};w.style=":host{display:block}:host([hidden]){display:none}[hidden]{display:none}";function x(e){return"CALCITE-OPTION"===e.tagName}const z=class{constructor(i){e(this,i),this.calciteSelectChange=t(this,"calciteSelectChange",6),this.componentToNativeEl=new Map,this.mutationObserver=o("mutation",(()=>this.populateInternalSelect())),this.handleInternalSelectChange=()=>{this.selectFromNativeOption(this.selectEl.selectedOptions[0]),requestAnimationFrame((()=>this.emitChangeEvent()))},this.populateInternalSelect=()=>{const e=Array.from(this.el.children).filter((e=>"CALCITE-OPTION"===e.tagName||"CALCITE-OPTION-GROUP"===e.tagName));this.clearInternalSelect(),e.forEach((e=>{var t;return null===(t=this.selectEl)||void 0===t?void 0:t.append(this.toNativeElement(e))}))},this.storeSelectRef=e=>{this.selectEl=e,this.populateInternalSelect(),this.selectFromNativeOption(this.selectEl.selectedOptions[0])},this.emitChangeEvent=()=>{this.calciteSelectChange.emit()},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=null,this.selectedOption=void 0,this.width="auto"}valueHandler(e){this.el.querySelectorAll("calcite-option").forEach((t=>t.selected=t.value===e))}selectedOptionHandler(e){this.value=null==e?void 0:e.value}connectedCallback(){var e;const{el:t}=this;null===(e=this.mutationObserver)||void 0===e||e.observe(t,{subtree:!0,childList:!0}),d(this),m(this),c(this)}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect(),p(this),b(this),r(this)}componentWillLoad(){f(this)}componentDidLoad(){var e,t;g(this),l(this,null!==(t=null===(e=this.selectedOption)||void 0===e?void 0:e.value)&&void 0!==t?t:"")}componentDidRender(){u(this)}async setFocus(){await C(this),a(this.selectEl)}handleOptionOrGroupChange(e){e.stopPropagation();const t=e.target,i=this.componentToNativeEl.get(t);i&&(this.updateNativeElement(t,i),x(t)&&t.selected&&(this.deselectAllExcept(t),this.selectedOption=t))}onLabelClick(){this.setFocus()}updateNativeElement(e,t){if(t.disabled=e.disabled,t.label=e.label,x(e)){const i=t;i.selected=e.selected,i.value=e.value,i.innerText=e.label}}clearInternalSelect(){this.componentToNativeEl.forEach((e=>e.remove())),this.componentToNativeEl.clear()}selectFromNativeOption(e){if(!e)return;let t;this.componentToNativeEl.forEach(((i,s)=>{x(s)&&i===e&&(s.selected=!0,t=s,this.deselectAllExcept(s))})),t&&(this.selectedOption=t)}toNativeElement(e){if(x(e)){const t=document.createElement("option");return this.updateNativeElement(e,t),this.componentToNativeEl.set(e,t),t}if(function(e){return"CALCITE-OPTION-GROUP"===e.tagName}(e)){const t=document.createElement("optgroup");return this.updateNativeElement(e,t),Array.from(e.children).forEach((i=>{const s=this.toNativeElement(i);t.append(s),this.componentToNativeEl.set(e,s)})),this.componentToNativeEl.set(e,t),t}throw new Error("unsupported element child provided")}deselectAllExcept(e){this.el.querySelectorAll("calcite-option").forEach((t=>{t!==e&&(t.selected=!1)}))}renderChevron(){return i("div",{class:"icon-container"},i("calcite-icon",{class:"icon",icon:"chevron-down",scale:"l"===this.scale?"m":"s"}))}render(){return i(n,null,i("select",{"aria-label":v(this),class:"select",disabled:this.disabled,onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},i("slot",null)),this.renderChevron(),i(h,{component:this}))}get el(){return s(this)}static get watchers(){return{value:["valueHandler"],selectedOption:["selectedOptionHandler"]}}};z.style=":host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing-inline:0.5rem 2rem}:host([scale=s]) .icon-container{padding-inline:0.5rem}:host([scale=m]){block-size:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing-inline:0.75rem 2.5rem}:host([scale=m]) .icon-container{padding-inline:0.75rem}:host([scale=l]){block-size:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing-inline:1rem 3rem}:host([scale=l]) .icon-container{padding-inline:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0px;box-sizing:border-box;inline-size:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);font-family:inherit;color:var(--calcite-ui-text-2);outline-color:transparent;font-size:var(--calcite-select-font-size);padding-inline:var(--calcite-select-spacing-inline);border-inline-end-width:0px}.select: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 )}.select:hover{background-color:var(--calcite-ui-foreground-2)}select:disabled{border-color:var(--calcite-ui-border-input);--tw-bg-opacity:1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:transparent;color:var(--calcite-ui-text-2);inset-inline-end:0px;border-inline-width:0px 1px}.select:focus~.icon-container{border-color:transparent}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_option,z as calcite_select}
6
+ import{r as e,c as t,h as i,g as s,F as n}from"./p-33613993.js";import{c as a}from"./p-588bc0c0.js";import{h as o}from"./p-a16feeec.js";import{c,d as r,a as l,H as h}from"./p-8e9d9e6a.js";import{c as d,d as p,u}from"./p-ad75b9bb.js";import{c as m,d as b,g as v}from"./p-d2d3e4b5.js";import{s as f,a as g,c as C}from"./p-d74e95e5.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";const w=class{constructor(i){e(this,i),this.calciteInternalOptionChange=t(this,"calciteInternalOptionChange",6),this.mutationObserver=a("mutation",(()=>{this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()})),this.disabled=!1,this.label=void 0,this.selected=void 0,this.value=void 0}handlePropChange(e,t,i){"label"!==i&&"value"!==i||this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()}ensureTextContentDependentProps(){const{el:{textContent:e}}=this;this.label&&this.label!==this.internallySetLabel||(this.label=e,this.internallySetLabel=e),this.value&&this.value!==this.internallySetValue||(this.value=e,this.internallySetValue=e)}connectedCallback(){var e;this.ensureTextContentDependentProps(),null===(e=this.mutationObserver)||void 0===e||e.observe(this.el,{attributeFilter:["label","value"],characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return i("slot",null,this.label)}get el(){return s(this)}static get watchers(){return{disabled:["handlePropChange"],label:["handlePropChange"],selected:["handlePropChange"],value:["handlePropChange"]}}};w.style=":host{display:block}:host([hidden]){display:none}[hidden]{display:none}";function x(e){return"CALCITE-OPTION"===e.tagName}const z=class{constructor(i){e(this,i),this.calciteSelectChange=t(this,"calciteSelectChange",6),this.componentToNativeEl=new Map,this.mutationObserver=a("mutation",(()=>this.populateInternalSelect())),this.handleInternalSelectChange=()=>{this.selectFromNativeOption(this.selectEl.selectedOptions[0]),requestAnimationFrame((()=>this.emitChangeEvent()))},this.populateInternalSelect=()=>{const e=Array.from(this.el.children).filter((e=>"CALCITE-OPTION"===e.tagName||"CALCITE-OPTION-GROUP"===e.tagName));this.clearInternalSelect(),e.forEach((e=>{var t;return null===(t=this.selectEl)||void 0===t?void 0:t.append(this.toNativeElement(e))}))},this.storeSelectRef=e=>{this.selectEl=e,this.populateInternalSelect(),this.selectFromNativeOption(this.selectEl.selectedOptions[0])},this.emitChangeEvent=()=>{this.calciteSelectChange.emit()},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=null,this.selectedOption=void 0,this.width="auto"}valueHandler(e){this.el.querySelectorAll("calcite-option").forEach((t=>t.selected=t.value===e))}selectedOptionHandler(e){this.value=null==e?void 0:e.value}connectedCallback(){var e;const{el:t}=this;null===(e=this.mutationObserver)||void 0===e||e.observe(t,{subtree:!0,childList:!0}),d(this),m(this),c(this)}disconnectedCallback(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect(),p(this),b(this),r(this)}componentWillLoad(){f(this)}componentDidLoad(){var e,t;g(this),l(this,null!==(t=null===(e=this.selectedOption)||void 0===e?void 0:e.value)&&void 0!==t?t:"")}componentDidRender(){u(this)}async setFocus(){await C(this),o(this.selectEl)}handleOptionOrGroupChange(e){e.stopPropagation();const t=e.target,i=this.componentToNativeEl.get(t);i&&(this.updateNativeElement(t,i),x(t)&&t.selected&&(this.deselectAllExcept(t),this.selectedOption=t))}onLabelClick(){this.setFocus()}updateNativeElement(e,t){if(t.disabled=e.disabled,t.label=e.label,x(e)){const i=t;i.selected=e.selected,i.value=e.value,i.innerText=e.label}}clearInternalSelect(){this.componentToNativeEl.forEach((e=>e.remove())),this.componentToNativeEl.clear()}selectFromNativeOption(e){if(!e)return;let t;this.componentToNativeEl.forEach(((i,s)=>{x(s)&&i===e&&(s.selected=!0,t=s,this.deselectAllExcept(s))})),t&&(this.selectedOption=t)}toNativeElement(e){if(x(e)){const t=document.createElement("option");return this.updateNativeElement(e,t),this.componentToNativeEl.set(e,t),t}if(function(e){return"CALCITE-OPTION-GROUP"===e.tagName}(e)){const t=document.createElement("optgroup");return this.updateNativeElement(e,t),Array.from(e.children).forEach((i=>{const s=this.toNativeElement(i);t.append(s),this.componentToNativeEl.set(e,s)})),this.componentToNativeEl.set(e,t),t}throw new Error("unsupported element child provided")}deselectAllExcept(e){this.el.querySelectorAll("calcite-option").forEach((t=>{t!==e&&(t.selected=!1)}))}renderChevron(){return i("div",{class:"icon-container"},i("calcite-icon",{class:"icon",icon:"chevron-down",scale:"l"===this.scale?"m":"s"}))}render(){return i(n,null,i("select",{"aria-label":v(this),class:"select",disabled:this.disabled,onChange:this.handleInternalSelectChange,ref:this.storeSelectRef},i("slot",null)),this.renderChevron(),i(h,{component:this}))}get el(){return s(this)}static get watchers(){return{value:["valueHandler"],selectedOption:["selectedOptionHandler"]}}};z.style=":host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}: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{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing-inline:0.5rem 2rem}:host([scale=s]) .icon-container{padding-inline:0.5rem}:host([scale=m]){block-size:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing-inline:0.75rem 2.5rem}:host([scale=m]) .icon-container{padding-inline:0.75rem}:host([scale=l]){block-size:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing-inline:1rem 3rem}:host([scale=l]) .icon-container{padding-inline:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0px;box-sizing:border-box;inline-size:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);font-family:inherit;color:var(--calcite-ui-text-2);outline-color:transparent;font-size:var(--calcite-select-font-size);padding-inline:var(--calcite-select-spacing-inline);border-inline-end-width:0px}.select: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 )}.select:hover{background-color:var(--calcite-ui-foreground-2)}select:disabled{border-color:var(--calcite-ui-border-input);--tw-bg-opacity:1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:transparent;color:var(--calcite-ui-text-2);inset-inline-end:0px;border-inline-width:0px 1px}.select:focus~.icon-container{border-color:transparent}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_option,z as calcite_select}
@@ -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-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 o={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),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:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};e.locale(o,null,!0);export default o;
6
+ import{d as e}from"./p-06712292.js";import"./p-33613993.js";import"./p-8e9d9e6a.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-d74e95e5.js";import"./p-7f271c31.js";import"./p-588bc0c0.js";import"./p-80ea5869.js";import"./p-96239d0d.js";import"./p-557d4cc5.js";var o={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),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:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};e.locale(o,null,!0);export default o;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-33613993.js";import{c as a,d as o}from"./p-bfc78840.js";import{s as l,r as c,f as r,t as h,a as d}from"./p-a16feeec.js";import{a as p,s as u,c as b}from"./p-d74e95e5.js";import{c as g,d as f}from"./p-7f271c31.js";import{c as m}from"./p-588bc0c0.js";import{u as v,c as x,s as y,d as C}from"./p-557d4cc5.js";import{t as w,o as k,q as L,g as E,a as I,E as S,b as z}from"./p-39fe9a4c.js";import{d as A}from"./p-a82f35c9.js";import{c as D,d as j,u as H}from"./p-ad75b9bb.js";import{u as F,a as M,M as T,g as P,I as O,C as W,S as B}from"./p-1eda2d20.js";import{d as G,c as _}from"./p-f7b520ae.js";import{S as N}from"./p-fb74e4a9.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";import"./p-43ba7a04.js";import"./p-e761b7cd.js";import"./p-4a75b3dc.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
+ * v1.6.1
11
+ */const R=class{constructor(i){t(this,i),this.calciteActionBarToggle=e(this,"calciteActionBarToggle",6),this.mutationObserver=m("mutation",(()=>{const{el:t,expanded:e}=this;w({el:t,expanded:e}),this.overflowActions()})),this.resizeObserver=m("resize",(t=>this.resizeHandlerEntries(t))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const e=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{e.includes(t)||(t.menuOpen=!1)}))}},this.resizeHandlerEntries=t=>{t.forEach(this.resizeHandler)},this.resizeHandler=t=>{const{width:e,height:i}=t.contentRect;this.resize({width:e,height:i})},this.resize=A((({width:t,height:e})=>{const{el:i,expanded:s,expandDisabled:n,layout:a,overflowActionsDisabled:o}=this;if(o||"vertical"===a&&!e||"horizontal"===a&&!t)return;const l=L(i),c=n?l.length:l.length+1,r=Array.from(i.querySelectorAll("calcite-action-group"));this.setGroupLayout(r);const h=this.hasActionsEnd||this.hasBottomActions||!n?r.length+1:r.length,{actionHeight:d,actionWidth:p}=E(l),u=z({layout:a,actionCount:c,actionHeight:d,actionWidth:p,height:e,width:t,groupCount:h});I({actionGroups:r,expanded:s,overflowCount:u})}),k),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const e=l(t).filter((t=>t.matches("calcite-action-group")));this.setGroupLayout(e)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=c(t)},this.handleBottomActionsSlotChange=t=>{this.hasBottomActions=c(t)},this.handleTooltipSlotChange=t=>{const e=l(t).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.expandTooltip=e[0]},this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overflowActionsDisabled=!1,this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandTooltip=void 0,this.defaultMessages=void 0}expandHandler(){this.overflowActions()}expandedHandler(){const{el:t,expanded:e}=this;w({el:t,expanded:e}),this.overflowActions()}layoutHandler(){this.updateGroups()}overflowDisabledHandler(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)}onMessagesChange(){}effectiveLocaleChange(){v(this,this.effectiveLocale)}componentDidLoad(){const{el:t,expanded:e}=this;p(this),w({el:t,expanded:e}),this.overflowActions()}connectedCallback(){var t,e;const{el:i,expanded:s}=this;g(this),x(this),w({el:i,expanded:s}),null===(t=this.mutationObserver)||void 0===t||t.observe(i,{childList:!0,subtree:!0}),this.overflowActionsDisabled||null===(e=this.resizeObserver)||void 0===e||e.observe(i),this.overflowActions(),a(this)}async componentWillLoad(){u(this),await y(this)}disconnectedCallback(){var t,e;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),o(this),f(this),C(this)}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await b(this),r(this.el)}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:e,el:s,position:n,toggleExpand:a,scale:o,layout:l,messages:c}=this,r=e?null:i(S,{collapseText:c.collapse,el:s,expandText:c.expand,expanded:t,position:n,scale:o,toggle:a,tooltip:this.expandTooltip,ref:this.setExpandToggleRef});return i("calcite-action-group",{class:"action-group--end",hidden:this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions),layout:l,scale:o},i("slot",{name:"actions-end",onSlotchange:this.handleActionsEndSlotChange}),i("slot",{name:"bottom-actions",onSlotchange:this.handleBottomActionsSlotChange}),i("slot",{name:"expand-tooltip",onSlotchange:this.handleTooltipSlotChange}),r)}render(){return i(s,{onCalciteActionMenuOpen:this.actionMenuOpenHandler},i("slot",{onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup())}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};R.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{pointer-events:auto;display:inline-flex;align-self:stretch;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-block-end:1px solid var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-block-end:0;border-inline-end:1px solid var(--calcite-ui-border-3)}:host([layout=horizontal][expand-disabled]) ::slotted(calcite-action-group:last-of-type){border-inline-end:0}::slotted(calcite-action-group:last-child){border-block-end:0;border-inline-end:0}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}";
12
+ /*!
13
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
15
+ * v1.6.1
16
+ */
17
+ const K="calcite-list-item",U=class{constructor(i){t(this,i),this.calciteListChange=e(this,"calciteListChange",6),this.calciteListFilter=e(this,"calciteListFilter",6),this.calciteListOrderChange=e(this,"calciteListOrderChange",6),this.calciteInternalListDefaultSlotChange=e(this,"calciteInternalListDefaultSlotChange",6),this.dragSelector="calcite-list-item",this.enabledListItems=[],this.handleSelector="calcite-handle",this.listItems=[],this.mutationObserver=m("mutation",(()=>this.updateListItems())),this.handleDefaultSlotChange=t=>{F(M(t.target)),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()},this.handleFilterActionsStartSlotChange=t=>{this.hasFilterActionsStart=c(t)},this.handleFilterActionsEndSlotChange=t=>{this.hasFilterActionsEnd=c(t)},this.setActiveListItem=()=>{const{enabledListItems:t}=this;t.some((t=>t.active))||t[0]&&(t[0].active=!0)},this.updateSelectedItems=(t=!1)=>{this.selectedItems=this.enabledListItems.filter((t=>t.selected)),t&&this.calciteListChange.emit()},this.updateFilteredItems=(t=!1)=>{const{listItems:e,filteredData:i,filterText:s}=this,n=i.map((t=>t.value)),a=null==e?void 0:e.filter((t=>e.every((e=>e===t||!t.contains(e))))),o=e.filter((t=>!s||n.includes(t.value)))||[],l=new WeakSet;a.forEach((t=>this.filterElements({el:t,filteredItems:o,visibleParents:l}))),this.filteredItems=o,t&&this.calciteListFilter.emit()},this.setFilterEl=t=>{this.filterEl=t,this.performFilter()},this.handleFilterChange=t=>{t.stopPropagation();const{value:e}=t.currentTarget;this.filterText=e,this.updateFilteredData(!0)},this.getItemData=()=>this.listItems.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value}))),this.updateListItems=A(((t=!1)=>{const{selectionAppearance:e,selectionMode:i,dragEnabled:s}=this;if(this.parentListEl)return this.queryListItems(!0).forEach((t=>{t.selectionAppearance=e,t.selectionMode=i,t.dragHandle=s})),void this.setUpSorting();const n=this.queryListItems();n.forEach((t=>{t.selectionAppearance=e,t.selectionMode=i,t.dragHandle=s})),this.listItems=n,this.filterEnabled&&(this.dataForFilter=this.getItemData(),this.filterEl&&(this.filterEl.items=this.dataForFilter)),this.updateFilteredItems(t),this.enabledListItems=this.filteredItems.filter((t=>!t.disabled&&!t.closed)),this.setActiveListItem(),this.updateSelectedItems(t),this.setUpSorting()}),0),this.queryListItems=(t=!1)=>Array.from(this.el.querySelectorAll(t?":scope > calcite-list-item":K)),this.focusRow=t=>{const{enabledListItems:e}=this;t&&(e.forEach((e=>e.active=e===t)),t.setFocus())},this.isNavigable=t=>{var e;const i=null===(e=t.parentElement)||void 0===e?void 0:e.closest(K);return!i||i.open&&this.isNavigable(i)},this.handleListKeydown=t=>{var e;if(t.defaultPrevented||this.parentListEl)return;const{key:i}=t,s=this.enabledListItems.filter((t=>this.isNavigable(t))),n=s.findIndex((t=>t.active));if("ArrowDown"===i){t.preventDefault();const e=t.target===this.filterEl?0:n+1;s[e]&&this.focusRow(s[e])}else if("ArrowUp"===i){if(t.preventDefault(),0===n&&this.filterEnabled)return void(null===(e=this.filterEl)||void 0===e||e.setFocus());const i=n-1;s[i]&&this.focusRow(s[i])}else if("Home"===i){t.preventDefault();const e=s[0];e&&this.focusRow(e)}else if("End"===i){t.preventDefault();const e=s[s.length-1];e&&this.focusRow(e)}},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.group=void 0,this.filterEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterPlaceholder=void 0,this.filterText=void 0,this.label=void 0,this.loading=!1,this.openable=!1,this.selectedItems=[],this.selectionMode="none",this.selectionAppearance="icon",this.assistiveText=void 0,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1}async handleFilterTextChange(){this.performFilter()}handleListItemChange(){this.updateListItems()}handleCalciteInternalFocusPreviousItem(t){if(this.parentListEl)return;t.stopPropagation();const{enabledListItems:e}=this,i=e.findIndex((t=>t.active))-1;e[i]&&this.focusRow(e[i])}handleCalciteInternalListItemActive(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i}=this;i.forEach((t=>{t.active=t===e}))}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalHandleChange(t){this.assistiveText=t.detail.message,t.stopPropagation()}handleCalciteHandleNudge(t){this.parentListEl||this.handleNudgeEvent(t)}handleCalciteInternalListItemSelect(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i,selectionMode:s}=this;!e.selected||"single"!==s&&"single-persist"!==s||i.forEach((t=>t.selected=t===e)),this.updateSelectedItems()}handleCalciteInternalListItemChange(t){this.parentListEl||(t.stopPropagation(),this.updateListItems(!0))}handleCalciteInternalListItemGroupDefaultSlotChange(t){t.stopPropagation()}connectedCallback(){this.connectObserver(),this.updateListItems(),this.setUpSorting(),D(this),this.parentListEl=this.el.parentElement.closest("calcite-list")}disconnectedCallback(){this.disconnectObserver(),G(this),j(this)}componentWillLoad(){u(this)}componentDidRender(){H(this)}componentDidLoad(){p(this)}async setFocus(){var t,e;return await b(this),this.filterEnabled?null===(t=this.filterEl)||void 0===t?void 0:t.setFocus():null===(e=this.enabledListItems.find((t=>t.active)))||void 0===e?void 0:e.setFocus()}render(){const{loading:t,label:e,disabled:s,dataForFilter:n,filterEnabled:a,filterPlaceholder:o,filterText:l,hasFilterActionsStart:c,hasFilterActionsEnd:r}=this;return i("div",{class:"container"},this.dragEnabled?i("span",{"aria-live":"assertive",class:"assistive-text"},this.assistiveText):null,t?i("calcite-scrim",{class:"scrim",loading:t}):null,i("table",{"aria-busy":h(t),"aria-label":e||"",class:"table",onKeyDown:this.handleListKeydown,role:"treegrid"},a||c||r?i("thead",null,i("tr",{class:{"sticky-pos":!0}},i("th",{colSpan:T},i("calcite-stack",{class:"stack"},i("slot",{name:"filter-actions-start",onSlotchange:this.handleFilterActionsStartSlotChange,slot:N.actionsStart}),i("calcite-filter",{"aria-label":o,disabled:t||s,items:n,onCalciteFilterChange:this.handleFilterChange,placeholder:o,value:l,ref:this.setFilterEl}),i("slot",{name:"filter-actions-end",onSlotchange:this.handleFilterActionsEndSlotChange,slot:N.actionsEnd}))))):null,i("tbody",{class:"table-container"},i("slot",{onSlotchange:this.handleDefaultSlotChange}))))}connectObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}setUpSorting(){const{dragEnabled:t}=this;t&&_(this)}onDragStart(){this.disconnectObserver()}onDragEnd(){this.connectObserver()}onDragSort(t){this.updateListItems();const{from:e,item:i,to:s}=t;this.calciteListOrderChange.emit({dragEl:i,fromEl:e,toEl:s})}filterElements({el:t,filteredItems:e,visibleParents:i}){const s=!i.has(t)&&!e.includes(t);t.hidden=s;const n=t.parentElement.closest("calcite-list-item-group, calcite-list-item");n&&(s||i.add(n),this.filterElements({el:n,filteredItems:e,visibleParents:i}))}updateFilteredData(t=!1){const{filterEl:e}=this;e&&(e.filteredItems&&(this.filteredData=e.filteredItems),this.updateListItems(t))}async performFilter(){const{filterEl:t,filterText:e}=this;t&&(t.value=e,await t.filter(e),this.updateFilteredData())}handleNudgeEvent(t){const{direction:e}=t.detail,i=t.composedPath(),s=i.find((t=>"CALCITE-HANDLE"===t.tagName)),n=i.find((t=>"CALCITE-LIST-ITEM"===t.tagName)),a=null==n?void 0:n.parentElement;if(!a)return;const{enabledListItems:o}=this,l=o.filter((t=>t.parentElement===a)),c=l.length-1,r=l.indexOf(n);let h,d=!1;"up"===e?0===r?d=!0:h=r-1:r===c?h=0:r===c-1?d=!0:h=r+2,this.disconnectObserver(),d?a.appendChild(n):a.insertBefore(n,l[h]),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:n,fromEl:null,toEl:null}),s.setFocus().then((()=>{s.activated=!0}))}get el(){return n(this)}static get watchers(){return{filterText:["handleFilterTextChange"],filterEnabled:["handleListItemChange"],group:["handleListItemChange"],dragEnabled:["handleListItemChange"],selectionMode:["handleListItemChange"],selectionAppearance:["handleListItemChange"]}}};U.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:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{position:relative;z-index:var(--calcite-app-z-index);box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky);background-color:var(--calcite-ui-foreground-1)}.sticky-pos th{padding:0px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";const q=new Map,$=class{constructor(i){t(this,i),this.calciteListItemSelect=e(this,"calciteListItemSelect",6),this.calciteListItemClose=e(this,"calciteListItemClose",6),this.calciteInternalListItemSelect=e(this,"calciteInternalListItemSelect",6),this.calciteInternalListItemActive=e(this,"calciteInternalListItemActive",6),this.calciteInternalFocusPreviousItem=e(this,"calciteInternalFocusPreviousItem",6),this.calciteInternalListItemChange=e(this,"calciteInternalListItemChange",6),this.closeClickHandler=()=>{this.closed=!0,this.calciteListItemClose.emit()},this.handleContentSlotChange=t=>{this.hasCustomContent=c(t)},this.handleActionsStartSlotChange=t=>{this.hasActionsStart=c(t)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=c(t)},this.handleContentStartSlotChange=t=>{this.hasContentStart=c(t)},this.handleContentEndSlotChange=t=>{this.hasContentEnd=c(t)},this.handleDefaultSlotChange=t=>{this.handleOpenableChange(t.target)},this.toggleOpen=()=>{this.open=!this.open},this.itemClicked=t=>{t.defaultPrevented||(this.toggleSelected(),this.calciteInternalListItemActive.emit())},this.toggleSelected=()=>{const{selectionMode:t,selected:e}=this;this.disabled||("multiple"===t||"single"===t?this.selected=!e:"single-persist"===t&&(this.selected=!0),this.calciteListItemSelect.emit())},this.handleItemKeyDown=t=>{if(t.defaultPrevented)return;const{key:e}=t,i=t.composedPath(),{containerEl:s,contentEl:n,actionsStartEl:a,actionsEndEl:o,open:l,openable:c}=this,r=[a,n,o].filter(Boolean),h=r.findIndex((t=>i.includes(t)));if("Enter"===e)t.preventDefault(),this.toggleSelected();else if("ArrowRight"===e){t.preventDefault();const e=h+1;-1===h?!l&&c?(this.open=!0,this.focusCell(null)):r[0]&&this.focusCell(r[0]):r[h]&&r[e]&&this.focusCell(r[e])}else if("ArrowLeft"===e){t.preventDefault();const e=h-1;-1===h?(this.focusCell(null),l&&c?this.open=!1:this.calciteInternalFocusPreviousItem.emit()):0===h?(this.focusCell(null),s.focus()):r[h]&&r[e]&&this.focusCell(r[e])}},this.focusCellNull=()=>{this.focusCell(null)},this.focusCell=(t,e=!0)=>{const{contentEl:i,actionsStartEl:s,actionsEndEl:n,parentListEl:a}=this;e&&q.set(a,null),[s,i,n].filter(Boolean).forEach(((i,s)=>{const n="tabindex";i===t?(i.setAttribute(n,"0"),e&&q.set(a,s)):i.removeAttribute(n)})),null==t||t.focus()},this.active=!1,this.closable=!1,this.closed=!1,this.description=void 0,this.disabled=!1,this.dragHandle=!1,this.label=void 0,this.metadata=void 0,this.open=!1,this.setSize=null,this.setPosition=null,this.selected=!1,this.value=void 0,this.selectionMode=null,this.selectionAppearance=null,this.messageOverrides=void 0,this.messages=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.level=null,this.visualLevel=null,this.parentListEl=void 0,this.openable=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasCustomContent=!1,this.hasContentStart=!1,this.hasContentEnd=!1}activeHandler(t){t||this.focusCell(null,!1)}handleClosedChange(){this.emitCalciteInternalListItemChange()}handleDisabledChange(){this.emitCalciteInternalListItemChange()}handleSelectedChange(){this.calciteInternalListItemSelect.emit()}onMessagesChange(){}handleCalciteInternalListDefaultSlotChanges(t){t.stopPropagation(),this.handleOpenableChange(this.defaultSlotEl)}effectiveLocaleChange(){v(this,this.effectiveLocale)}connectedCallback(){D(this),g(this),x(this);const{el:t}=this;this.parentListEl=t.closest("calcite-list"),this.level=P(t)+1,this.visualLevel=P(t,!0),this.setSelectionDefaults()}async componentWillLoad(){u(this),await y(this)}componentDidLoad(){p(this)}componentDidRender(){H(this,"managed")}disconnectedCallback(){j(this),f(this),C(this)}async setFocus(){await b(this);const{containerEl:t,contentEl:e,actionsStartEl:i,actionsEndEl:s,parentListEl:n}=this,a=q.get(n);if("number"!=typeof a)null==t||t.focus();else{const n=[i,e,s].filter(Boolean);n[a]?this.focusCell(n[a]):null==t||t.focus()}}renderSelected(){const{selected:t,selectionMode:e,selectionAppearance:s}=this;return"none"===e||"border"===s?null:i("td",{class:W.selectionContainer,key:"selection-container",onClick:this.itemClicked},i("calcite-icon",{icon:t?"multiple"===e?O.selectedMultiple:O.selectedSingle:O.unselected,scale:"s"}))}renderDragHandle(){return this.dragHandle?i("td",{class:W.dragContainer,key:"drag-handle-container"},i("calcite-handle",{label:this.label,setPosition:this.setPosition,setSize:this.setSize})):null}renderOpen(){const{el:t,open:e,openable:s,parentListEl:n}=this,a=d(t);return s?i("td",{class:W.openContainer,key:"open-container",onClick:this.toggleOpen},i("calcite-icon",{icon:e?O.open:"rtl"===a?O.closedRTL:O.closedLTR,scale:"s"})):(null==n?void 0:n.openable)?i("td",{class:W.openContainer,key:"open-container",onClick:this.itemClicked},i("calcite-icon",{icon:O.blank,scale:"s"})):null}renderActionsStart(){const{label:t,hasActionsStart:e}=this;return i("td",{"aria-label":t,class:W.actionsStart,hidden:!e,key:"actions-start-container",role:"gridcell",ref:t=>this.actionsStartEl=t},i("slot",{name:B.actionsStart,onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{label:t,hasActionsEnd:e,closable:s,messages:n}=this;return i("td",{"aria-label":t,class:W.actionsEnd,hidden:!(e||s),key:"actions-end-container",role:"gridcell",ref:t=>this.actionsEndEl=t},i("slot",{name:B.actionsEnd,onSlotchange:this.handleActionsEndSlotChange}),s?i("calcite-action",{appearance:"transparent",icon:O.close,key:"close-action",label:n.close,onClick:this.closeClickHandler,text:n.close}):null)}renderContentStart(){const{hasContentStart:t}=this;return i("div",{class:W.contentStart,hidden:!t},i("slot",{name:B.contentStart,onSlotchange:this.handleContentStartSlotChange}))}renderCustomContent(){const{hasCustomContent:t}=this;return i("div",{class:W.customContent,hidden:!t},i("slot",{name:B.content,onSlotchange:this.handleContentSlotChange}))}renderContentEnd(){const{hasContentEnd:t}=this;return i("div",{class:W.contentEnd,hidden:!t},i("slot",{name:B.contentEnd,onSlotchange:this.handleContentEndSlotChange}))}renderContentProperties(){const{label:t,description:e,hasCustomContent:s}=this;return s||!t&&!e?null:i("div",{class:W.content,key:"content"},t?i("div",{class:W.label,key:"label"},t):null,e?i("div",{class:W.description,key:"description"},e):null)}renderContentContainer(){const{description:t,label:e,selectionMode:s,hasCustomContent:n}=this,a=n||!!e||!!t,o=[this.renderContentStart(),this.renderCustomContent(),this.renderContentProperties(),this.renderContentEnd()];return i("td",{"aria-label":e,class:{[W.contentContainer]:!0,[W.contentContainerSelectable]:"none"!==s,[W.contentContainerHasCenterContent]:a},key:"content-container",onClick:this.itemClicked,role:"gridcell",ref:t=>this.contentEl=t},o)}render(){const{openable:t,open:e,level:n,setPosition:a,setSize:o,active:l,label:c,selected:r,selectionAppearance:d,selectionMode:p,closed:u}=this,b="none"!==p&&"border"===d,g=b&&r,f=b&&!r;return i(s,null,i("tr",{"aria-expanded":t?h(e):null,"aria-label":c,"aria-level":n,"aria-posinset":a,"aria-selected":h(r),"aria-setsize":o,class:{[W.container]:!0,[W.containerBorderSelected]:g,[W.containerBorderUnselected]:f},hidden:u,onFocus:this.focusCellNull,onKeyDown:this.handleItemKeyDown,role:"row",style:{"--calcite-list-item-spacing-indent-multiplier":`${this.visualLevel}`},tabIndex:l?0:-1,ref:t=>this.containerEl=t},this.renderDragHandle(),this.renderSelected(),this.renderOpen(),this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),i("div",{class:{[W.nestedContainer]:!0,[W.nestedContainerHidden]:t&&!e}},i("slot",{onSlotchange:this.handleDefaultSlotChange,ref:t=>this.defaultSlotEl=t})))}emitCalciteInternalListItemChange(){this.calciteInternalListItemChange.emit()}setSelectionDefaults(){const{parentListEl:t,selectionMode:e,selectionAppearance:i}=this;t&&(e||(this.selectionMode=t.selectionMode),i||(this.selectionAppearance=t.selectionAppearance))}handleOpenableChange(t){if(!t)return;const{parentListEl:e}=this,i=M(t);F(i);const s=!!i.length;s&&e&&!e.openable&&(e.openable=!0),this.openable=s,s||(this.open=!1)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{active:["activeHandler"],closed:["handleClosedChange"],disabled:["handleDisabledChange"],selected:["handleSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};$.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:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}tr,td{outline-color:transparent}tr:focus,td:focus{z-index:var(--calcite-app-z-index-sticky);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 )}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";export{R as calcite_action_bar,U as calcite_list,$ as calcite_list_item}
@@ -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-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}
6
+ import{r as t,c as s,h as i,g as e}from"./p-33613993.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-d74e95e5.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-557d4cc5.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{r as e,h as i,F as t,g as a}from"./p-9310b882.js";import{c as n,d as o}from"./p-c3ab7439.js";import{g as l}from"./p-a16feeec.js";import{H as r,c as s}from"./p-60c15592.js";import{S as c,C as d}from"./p-99402001.js";import"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";const p=class{constructor(i){e(this,i),this.groupTitle=void 0,this.headingLevel=void 0}connectedCallback(){n(this)}disconnectedCallback(){o(this)}render(){var e;const{el:a,groupTitle:n,headingLevel:o}=this,p=null!==l(a,c.parentItem),m={[d.container]:!0,[d.indented]:p},g=n,h=null===(e=a.closest("calcite-pick-list"))||void 0===e?void 0:e.headingLevel,b=h?s(h+1):null;return i(t,null,g?i(r,{class:d.heading,level:o||b},g):null,i("slot",{name:c.parentItem}),i("section",{class:m},i("slot",null)))}get el(){return a(this)}};p.style=":host{margin-block-end:0.25rem;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host(:last-child){margin-block-end: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}.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{margin-inline-start:1.5rem}:host([hidden]){display:none}[hidden]{display:none}";export{p as calcite_pick_list_group}
6
+ import{r as e,h as i,F as t,g as a}from"./p-33613993.js";import{c as n,d as o}from"./p-bfc78840.js";import{g as l}from"./p-a16feeec.js";import{H as r,c as s}from"./p-54cc02c9.js";import{S as c,C as d}from"./p-99402001.js";import"./p-588bc0c0.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";const p=class{constructor(i){e(this,i),this.groupTitle=void 0,this.headingLevel=void 0}connectedCallback(){n(this)}disconnectedCallback(){o(this)}render(){var e;const{el:a,groupTitle:n,headingLevel:o}=this,p=null!==l(a,c.parentItem),m={[d.container]:!0,[d.indented]:p},g=n,h=null===(e=a.closest("calcite-pick-list"))||void 0===e?void 0:e.headingLevel,b=h?s(h+1):null;return i(t,null,g?i(r,{class:d.heading,level:o||b},g):null,i("slot",{name:c.parentItem}),i("section",{class:m},i("slot",null)))}get el(){return a(this)}};p.style=":host{margin-block-end:0.25rem;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host(:last-child){margin-block-end: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}.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{margin-inline-start:1.5rem}:host([hidden]){display:none}[hidden]{display:none}";export{p as calcite_pick_list_group}
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ /*!
7
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
8
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
9
+ * v1.6.1
10
+ */
11
+ const t={container:"container",actionsStart:"actions-start",contentStart:"content-start",content:"content",contentEnd:"content-end",actionsEnd:"actions-end"},n={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"};export{t as C,n as S}
@@ -3,7 +3,7 @@
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,h as t,g as e}from"./p-9310b882.js";import{c as s,d as a}from"./p-7f271c31.js";import{u as n,c,s as o,d as r}from"./p-2592c0b8.js";import{c as l}from"./p-588bc0c0.js";import{B as h}from"./p-a16feeec.js";import"./p-43ba7a04.js";import"./p-8b448a5b.js";import"./p-e3525c00.js";
6
+ import{r as i,h as t,g as e}from"./p-33613993.js";import{c as s,d as a}from"./p-7f271c31.js";import{u as n,c,s as o,d as r}from"./p-557d4cc5.js";import{c as l}from"./p-588bc0c0.js";import{B as h}from"./p-a16feeec.js";import"./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.