@esri/calcite-components 1.0.0-next.596 → 1.0.0-next.597

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1227) hide show
  1. package/dist/calcite/assets/date-picker/nls/messages.json +31 -0
  2. package/dist/calcite/assets/date-picker/t9n/index.d.ts +5 -0
  3. package/dist/calcite/assets/date-picker/t9n/messages.json +5 -0
  4. package/dist/calcite/assets/date-picker/t9n/messages_ar.json +5 -0
  5. package/dist/calcite/assets/date-picker/t9n/messages_bg.json +5 -0
  6. package/dist/calcite/assets/date-picker/t9n/messages_bs.json +5 -0
  7. package/dist/calcite/assets/date-picker/t9n/messages_ca.json +5 -0
  8. package/dist/calcite/assets/date-picker/t9n/messages_cs.json +5 -0
  9. package/dist/calcite/assets/date-picker/t9n/messages_da.json +5 -0
  10. package/dist/calcite/assets/date-picker/t9n/messages_de.json +5 -0
  11. package/dist/calcite/assets/date-picker/t9n/messages_el.json +5 -0
  12. package/dist/calcite/assets/date-picker/t9n/messages_en.json +5 -0
  13. package/dist/calcite/assets/date-picker/t9n/messages_es.json +5 -0
  14. package/dist/calcite/assets/date-picker/t9n/messages_et.json +5 -0
  15. package/dist/calcite/assets/date-picker/t9n/messages_fi.json +5 -0
  16. package/dist/calcite/assets/date-picker/t9n/messages_fr.json +5 -0
  17. package/dist/calcite/assets/date-picker/t9n/messages_he.json +5 -0
  18. package/dist/calcite/assets/date-picker/t9n/messages_hr.json +5 -0
  19. package/dist/calcite/assets/date-picker/t9n/messages_hu.json +5 -0
  20. package/dist/calcite/assets/date-picker/t9n/messages_id.json +5 -0
  21. package/dist/calcite/assets/date-picker/t9n/messages_it.json +5 -0
  22. package/dist/calcite/assets/date-picker/t9n/messages_ja.json +5 -0
  23. package/dist/calcite/assets/date-picker/t9n/messages_ko.json +5 -0
  24. package/dist/calcite/assets/date-picker/t9n/messages_lt.json +5 -0
  25. package/dist/calcite/assets/date-picker/t9n/messages_lv.json +5 -0
  26. package/dist/calcite/assets/date-picker/t9n/messages_nl.json +5 -0
  27. package/dist/calcite/assets/date-picker/t9n/messages_no.json +5 -0
  28. package/dist/calcite/assets/date-picker/t9n/messages_pl.json +5 -0
  29. package/dist/calcite/assets/date-picker/t9n/messages_pt-BR.json +5 -0
  30. package/dist/calcite/assets/date-picker/t9n/messages_pt-PT.json +5 -0
  31. package/dist/calcite/assets/date-picker/t9n/messages_ro.json +5 -0
  32. package/dist/calcite/assets/date-picker/t9n/messages_ru.json +5 -0
  33. package/dist/calcite/assets/date-picker/t9n/messages_sk.json +5 -0
  34. package/dist/calcite/assets/date-picker/t9n/messages_sl.json +5 -0
  35. package/dist/calcite/assets/date-picker/t9n/messages_sr.json +5 -0
  36. package/dist/calcite/assets/date-picker/t9n/messages_sv.json +5 -0
  37. package/dist/calcite/assets/date-picker/t9n/messages_th.json +5 -0
  38. package/dist/calcite/assets/date-picker/t9n/messages_tr.json +5 -0
  39. package/dist/calcite/assets/date-picker/t9n/messages_uk.json +5 -0
  40. package/dist/calcite/assets/date-picker/t9n/messages_vi.json +5 -0
  41. package/dist/calcite/assets/date-picker/t9n/messages_zh-CN.json +5 -0
  42. package/dist/calcite/assets/date-picker/t9n/messages_zh-HK.json +5 -0
  43. package/dist/calcite/assets/date-picker/t9n/messages_zh-TW.json +5 -0
  44. package/dist/calcite/calcite.css +1 -1
  45. package/dist/calcite/calcite.esm.js +2 -2
  46. package/dist/calcite/index.esm.js +1 -1
  47. package/dist/calcite/p-0043efc4.js +6 -0
  48. package/dist/calcite/p-016cee24.entry.js +6 -0
  49. package/dist/calcite/p-01cb5477.js +6 -0
  50. package/dist/calcite/{p-9a3c3fc8.js → p-034710a1.js} +1 -1
  51. package/dist/calcite/p-06505dc6.entry.js +6 -0
  52. package/dist/calcite/{p-f848a6b0.js → p-1085e82f.js} +2 -2
  53. package/dist/calcite/p-10c17d1c.entry.js +6 -0
  54. package/dist/calcite/{p-311e41bb.js → p-1421f9ec.js} +1 -1
  55. package/dist/calcite/p-14c442cb.entry.js +6 -0
  56. package/dist/calcite/{p-d7f23fcf.js → p-179ed97a.js} +1 -1
  57. package/dist/calcite/p-19c7faaf.entry.js +6 -0
  58. package/dist/calcite/p-1b9e3fb0.entry.js +6 -0
  59. package/dist/calcite/{p-770a316f.js → p-205462c9.js} +1 -1
  60. package/dist/calcite/p-21931632.entry.js +6 -0
  61. package/dist/calcite/p-228315da.entry.js +6 -0
  62. package/dist/calcite/p-27969266.entry.js +6 -0
  63. package/dist/calcite/{p-1689e7ab.js → p-2a88fa13.js} +1 -1
  64. package/dist/calcite/p-2e141574.entry.js +6 -0
  65. package/dist/calcite/p-36aa3ea2.entry.js +6 -0
  66. package/dist/calcite/p-3d1ef84a.entry.js +6 -0
  67. package/dist/calcite/{p-8d83e629.js → p-3d3d179c.js} +2 -2
  68. package/dist/calcite/p-416510d6.js +6 -0
  69. package/dist/calcite/p-421dc091.entry.js +6 -0
  70. package/dist/calcite/p-46ff1ae6.entry.js +6 -0
  71. package/dist/calcite/p-4c8218d4.entry.js +6 -0
  72. package/dist/calcite/p-4e7b4c6c.entry.js +6 -0
  73. package/dist/calcite/{p-df63f732.js → p-576a4d3b.js} +2 -2
  74. package/dist/calcite/p-59772111.js +6 -0
  75. package/dist/calcite/p-5a81c608.entry.js +6 -0
  76. package/dist/calcite/p-5da89821.entry.js +6 -0
  77. package/dist/calcite/{p-6377d482.js → p-5dc47d03.js} +1 -1
  78. package/dist/calcite/p-61cbec79.entry.js +6 -0
  79. package/dist/calcite/{p-6b45b297.js → p-627b4177.js} +1 -1
  80. package/dist/calcite/p-6505334e.entry.js +6 -0
  81. package/dist/calcite/{p-6fab9a7a.js → p-65e8434d.js} +1 -1
  82. package/dist/calcite/{p-ddb5353c.js → p-672cf3c2.js} +2 -2
  83. package/dist/calcite/{p-44c85d7f.js → p-67890d9f.js} +2 -2
  84. package/dist/calcite/{p-a8c6757c.js → p-67c0d879.js} +1 -1
  85. package/dist/calcite/{p-93647858.js → p-6b8d9887.js} +2 -2
  86. package/dist/calcite/p-6bf1fe3b.entry.js +6 -0
  87. package/dist/calcite/p-6e070c45.entry.js +6 -0
  88. package/dist/calcite/p-7dddc346.js +6 -0
  89. package/dist/calcite/p-7e36e2c5.entry.js +6 -0
  90. package/dist/calcite/p-80a6379c.entry.js +6 -0
  91. package/dist/calcite/p-86384397.entry.js +6 -0
  92. package/dist/calcite/p-91db8a1d.entry.js +6 -0
  93. package/dist/calcite/p-975aba66.js +7 -0
  94. package/dist/calcite/p-9804459d.entry.js +6 -0
  95. package/dist/calcite/p-99889377.entry.js +6 -0
  96. package/dist/calcite/{p-409af2eb.js → p-a0db47b9.js} +1 -1
  97. package/dist/calcite/p-a25cc528.entry.js +6 -0
  98. package/dist/calcite/p-a5ec748f.entry.js +6 -0
  99. package/dist/calcite/p-a71a4bc5.entry.js +6 -0
  100. package/dist/calcite/p-a7626d19.entry.js +6 -0
  101. package/dist/calcite/p-a8b04902.entry.js +6 -0
  102. package/dist/calcite/p-ab03590a.entry.js +6 -0
  103. package/dist/calcite/p-ae8f6623.entry.js +6 -0
  104. package/dist/calcite/{p-b6d7bb31.js → p-b072ee90.js} +2 -2
  105. package/dist/calcite/p-b31ac46b.entry.js +6 -0
  106. package/dist/calcite/p-b7dafefc.entry.js +6 -0
  107. package/dist/calcite/p-b8492482.entry.js +6 -0
  108. package/dist/calcite/{p-13eef16b.js → p-b9542a0a.js} +1 -1
  109. package/dist/calcite/p-ba334a9d.entry.js +6 -0
  110. package/dist/calcite/p-bb21323e.entry.js +6 -0
  111. package/dist/calcite/{p-8a29e1f5.js → p-c2258fac.js} +1 -1
  112. package/dist/calcite/p-ce15d4a4.entry.js +6 -0
  113. package/dist/calcite/p-ce171933.entry.js +6 -0
  114. package/dist/calcite/{p-3e4bf2de.js → p-d16a1324.js} +1 -1
  115. package/dist/calcite/p-d465da16.entry.js +6 -0
  116. package/dist/calcite/p-d4bab92e.entry.js +6 -0
  117. package/dist/calcite/p-d6067141.entry.js +6 -0
  118. package/dist/calcite/p-d758a89d.entry.js +6 -0
  119. package/dist/calcite/p-da5fac1a.entry.js +6 -0
  120. package/dist/calcite/p-df9538a5.entry.js +6 -0
  121. package/dist/calcite/p-dfd51f34.entry.js +6 -0
  122. package/dist/calcite/p-e1c801a6.entry.js +6 -0
  123. package/dist/calcite/p-e9ccd0bc.entry.js +6 -0
  124. package/dist/calcite/p-ec1d7ff7.entry.js +6 -0
  125. package/dist/calcite/p-ec7e67d0.entry.js +6 -0
  126. package/dist/calcite/p-ed51bd87.entry.js +6 -0
  127. package/dist/calcite/p-f52edbbb.entry.js +6 -0
  128. package/dist/calcite/p-f64286c8.entry.js +6 -0
  129. package/dist/calcite/{p-9e4453d8.entry.js → p-f66dfaea.entry.js} +2 -2
  130. package/dist/calcite/p-f827044c.entry.js +6 -0
  131. package/dist/calcite/p-f94b6442.entry.js +6 -0
  132. package/dist/calcite/{p-10d16edb.js → p-fb5602cf.js} +2 -2
  133. package/dist/calcite/{p-9f8a6b31.js → p-fd6d1ed1.js} +1 -1
  134. package/dist/calcite/p-ff82e6f2.entry.js +6 -0
  135. package/dist/cjs/{ExpandToggle-80ef82c7.js → ExpandToggle-73285037.js} +5 -5
  136. package/dist/cjs/{Heading-33db6b85.js → Heading-5409de6d.js} +2 -2
  137. package/dist/cjs/{app-globals-fd934cae.js → app-globals-77859a02.js} +2 -2
  138. package/dist/cjs/{array-c0cc85de.js → array-f86c9258.js} +1 -1
  139. package/dist/cjs/calcite-accordion_2.cjs.entry.js +9 -9
  140. package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
  141. package/dist/cjs/calcite-action-group.cjs.entry.js +10 -10
  142. package/dist/cjs/calcite-action-menu.cjs.entry.js +11 -10
  143. package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -11
  144. package/dist/cjs/calcite-action.cjs.entry.js +8 -8
  145. package/dist/cjs/calcite-alert.cjs.entry.js +22 -9
  146. package/dist/cjs/calcite-avatar.cjs.entry.js +7 -7
  147. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
  148. package/dist/cjs/calcite-button.cjs.entry.js +10 -10
  149. package/dist/cjs/calcite-card.cjs.entry.js +8 -8
  150. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
  151. package/dist/cjs/calcite-chip.cjs.entry.js +9 -9
  152. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +13 -13
  153. package/dist/cjs/calcite-combobox_3.cjs.entry.js +21 -19
  154. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +25 -20
  155. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +17 -15
  156. package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
  157. package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
  158. package/dist/cjs/calcite-flow-item.cjs.entry.js +14 -16
  159. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  160. package/dist/cjs/calcite-graph_2.cjs.entry.js +24 -20
  161. package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
  162. package/dist/cjs/calcite-icon.cjs.entry.js +7 -7
  163. package/dist/cjs/calcite-inline-editable.cjs.entry.js +9 -9
  164. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +45 -40
  165. package/dist/cjs/calcite-input-message.cjs.entry.js +9 -9
  166. package/dist/cjs/calcite-input-number.cjs.entry.js +56 -37
  167. package/dist/cjs/calcite-input-text.cjs.entry.js +12 -12
  168. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +77 -71
  169. package/dist/cjs/calcite-input.cjs.entry.js +81 -59
  170. package/dist/cjs/calcite-label.cjs.entry.js +16 -16
  171. package/dist/cjs/calcite-link.cjs.entry.js +9 -9
  172. package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
  173. package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
  174. package/dist/cjs/calcite-modal.cjs.entry.js +9 -9
  175. package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
  176. package/dist/cjs/calcite-option_3.cjs.entry.js +13 -13
  177. package/dist/cjs/calcite-pagination.cjs.entry.js +19 -12
  178. package/dist/cjs/calcite-panel.cjs.entry.js +17 -19
  179. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +15 -15
  180. package/dist/cjs/calcite-popover_2.cjs.entry.js +16 -14
  181. package/dist/cjs/calcite-progress.cjs.entry.js +3 -3
  182. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
  183. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
  184. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +14 -14
  185. package/dist/cjs/calcite-rating.cjs.entry.js +11 -11
  186. package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
  187. package/dist/cjs/calcite-shell_3.cjs.entry.js +12 -12
  188. package/dist/cjs/calcite-sortable-list.cjs.entry.js +6 -6
  189. package/dist/cjs/calcite-split-button.cjs.entry.js +7 -5
  190. package/dist/cjs/calcite-stepper_2.cjs.entry.js +8 -8
  191. package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
  192. package/dist/cjs/calcite-tab_4.cjs.entry.js +13 -13
  193. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +7 -7
  194. package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
  195. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  196. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +12 -10
  197. package/dist/cjs/calcite-tree_2.cjs.entry.js +131 -84
  198. package/dist/cjs/calcite-value-list_2.cjs.entry.js +14 -14
  199. package/dist/cjs/calcite.cjs.js +6 -6
  200. package/dist/cjs/{conditionalSlot-6bcc1a43.js → conditionalSlot-cdf70b61.js} +3 -3
  201. package/dist/cjs/{debounce-7a430467.js → debounce-1f3af549.js} +1 -1
  202. package/dist/cjs/{dom-58cda112.js → dom-9409deef.js} +29 -3
  203. package/dist/cjs/{filter-b7bd3662.js → filter-6497f68a.js} +3 -4
  204. package/dist/cjs/{floating-ui-a78b95ef.js → floating-ui-40005e27.js} +2 -2
  205. package/dist/cjs/{form-e31078d9.js → form-ed16c84e.js} +3 -3
  206. package/dist/cjs/{guid-8b3a200d.js → guid-07011a93.js} +1 -1
  207. package/dist/cjs/{index-f9989f5d.js → index-dbaff4c6.js} +1117 -946
  208. package/dist/cjs/index.cjs.js +1 -1
  209. package/dist/cjs/{interactive-a77d0ef0.js → interactive-825762eb.js} +1 -1
  210. package/dist/cjs/{interfaces-522c5f39.js → interfaces-a747d1cf.js} +1 -1
  211. package/dist/cjs/{key-167ee472.js → key-40cfbef8.js} +1 -1
  212. package/dist/cjs/{label-762f03a5.js → label-942c98df.js} +2 -2
  213. package/dist/cjs/loader.cjs.js +6 -6
  214. package/dist/cjs/locale-3b5c2d93.js +385 -0
  215. package/dist/cjs/{math-42a15095.js → math-19d2ae8c.js} +1 -1
  216. package/dist/cjs/observers-2571ea25.js +48 -0
  217. package/dist/cjs/{openCloseComponent-d20e03e7.js → openCloseComponent-c152728d.js} +1 -1
  218. package/dist/cjs/{resources-8912222b.js → resources-110e5929.js} +1 -1
  219. package/dist/cjs/{resources-aba47c80.js → resources-24f7e730.js} +11 -31
  220. package/dist/cjs/{resources-f2712948.js → resources-5f061484.js} +5 -5
  221. package/dist/cjs/{resources-8a806639.js → resources-adfdf58d.js} +1 -1
  222. package/dist/cjs/{resources-cd1870a1.js → resources-b88532e5.js} +1 -1
  223. package/dist/cjs/{resources-8ffd1200.js → resources-e5387109.js} +1 -1
  224. package/dist/cjs/{sortable.esm-cd4b2dcd.js → sortable.esm-9b594ce7.js} +1 -1
  225. package/dist/cjs/{utils-6617f268.js → utils-0af662a9.js} +1 -1
  226. package/dist/collection/collection-manifest.json +2 -2
  227. package/dist/collection/components/accordion/accordion.e2e.js +183 -0
  228. package/dist/collection/components/accordion/accordion.js +160 -151
  229. package/dist/collection/components/accordion/interfaces.js +0 -5
  230. package/dist/collection/components/accordion-item/accordion-item.e2e.js +8 -0
  231. package/dist/collection/components/accordion-item/accordion-item.js +301 -305
  232. package/dist/collection/components/accordion-item/interfaces.js +0 -5
  233. package/dist/collection/components/accordion-item/resources.js +1 -1
  234. package/dist/collection/components/action/action.e2e.js +93 -0
  235. package/dist/collection/components/action/action.js +293 -290
  236. package/dist/collection/components/action/resources.js +1 -1
  237. package/dist/collection/components/action-bar/action-bar.e2e.js +290 -0
  238. package/dist/collection/components/action-bar/action-bar.js +239 -232
  239. package/dist/collection/components/action-bar/resources.js +1 -1
  240. package/dist/collection/components/action-bar/utils.js +1 -1
  241. package/dist/collection/components/action-group/action-group.e2e.js +23 -0
  242. package/dist/collection/components/action-group/action-group.js +136 -133
  243. package/dist/collection/components/action-group/resources.js +1 -1
  244. package/dist/collection/components/action-menu/action-menu.e2e.js +153 -0
  245. package/dist/collection/components/action-menu/action-menu.js +220 -209
  246. package/dist/collection/components/action-menu/resources.js +1 -1
  247. package/dist/collection/components/action-pad/action-pad.e2e.js +178 -0
  248. package/dist/collection/components/action-pad/action-pad.js +196 -189
  249. package/dist/collection/components/action-pad/resources.js +1 -1
  250. package/dist/collection/components/alert/alert.css +1 -1
  251. package/dist/collection/components/alert/alert.e2e.js +294 -0
  252. package/dist/collection/components/alert/alert.js +410 -372
  253. package/dist/collection/components/alert/interfaces.js +1 -1
  254. package/dist/collection/components/alert/resources.js +1 -1
  255. package/dist/collection/components/avatar/avatar.e2e.js +55 -0
  256. package/dist/collection/components/avatar/avatar.js +107 -99
  257. package/dist/collection/components/avatar/avatar.spec.js +42 -0
  258. package/dist/collection/components/avatar/utils.js +1 -1
  259. package/dist/collection/components/block/block.e2e.js +194 -0
  260. package/dist/collection/components/block/block.js +319 -326
  261. package/dist/collection/components/block/resources.js +1 -1
  262. package/dist/collection/components/block-section/block-section.e2e.js +132 -0
  263. package/dist/collection/components/block-section/block-section.js +143 -145
  264. package/dist/collection/components/block-section/interfaces.js +0 -5
  265. package/dist/collection/components/block-section/resources.js +1 -1
  266. package/dist/collection/components/button/button.e2e.js +529 -0
  267. package/dist/collection/components/button/button.js +430 -424
  268. package/dist/collection/components/button/interfaces.js +0 -5
  269. package/dist/collection/components/button/resources.js +1 -1
  270. package/dist/collection/components/card/card.e2e.js +87 -0
  271. package/dist/collection/components/card/card.js +171 -179
  272. package/dist/collection/components/card/resources.js +1 -1
  273. package/dist/collection/components/checkbox/checkbox.e2e.js +105 -0
  274. package/dist/collection/components/checkbox/checkbox.js +269 -264
  275. package/dist/collection/components/chip/chip.e2e.js +149 -0
  276. package/dist/collection/components/chip/chip.js +258 -253
  277. package/dist/collection/components/chip/interfaces.js +0 -5
  278. package/dist/collection/components/chip/resources.js +1 -1
  279. package/dist/collection/components/color-picker/color-picker.e2e.js +1068 -0
  280. package/dist/collection/components/color-picker/color-picker.js +779 -780
  281. package/dist/collection/components/color-picker/interfaces.js +0 -5
  282. package/dist/collection/components/color-picker/resources.js +1 -1
  283. package/dist/collection/components/color-picker/utils.js +1 -1
  284. package/dist/collection/components/color-picker/utils.spec.js +66 -0
  285. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +281 -0
  286. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +189 -170
  287. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  288. package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +71 -0
  289. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +81 -75
  290. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  291. package/dist/collection/components/combobox/combobox.e2e.js +1043 -0
  292. package/dist/collection/components/combobox/combobox.js +551 -550
  293. package/dist/collection/components/combobox/interfaces.js +0 -5
  294. package/dist/collection/components/combobox/resources.js +1 -1
  295. package/dist/collection/components/combobox/utils.js +1 -1
  296. package/dist/collection/components/combobox-item/combobox-item.e2e.js +7 -0
  297. package/dist/collection/components/combobox-item/combobox-item.js +241 -235
  298. package/dist/collection/components/combobox-item/resources.js +1 -1
  299. package/dist/collection/components/combobox-item-group/combobox-item-group.js +50 -47
  300. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  301. package/dist/collection/components/date-picker/assets/date-picker/nls/messages.json +31 -0
  302. package/dist/collection/components/date-picker/assets/date-picker/t9n/index.d.ts +5 -0
  303. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages.json +5 -0
  304. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ar.json +5 -0
  305. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_bg.json +5 -0
  306. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_bs.json +5 -0
  307. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ca.json +5 -0
  308. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_cs.json +5 -0
  309. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_da.json +5 -0
  310. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_de.json +5 -0
  311. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_el.json +5 -0
  312. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_en.json +5 -0
  313. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_es.json +5 -0
  314. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_et.json +5 -0
  315. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_fi.json +5 -0
  316. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_fr.json +5 -0
  317. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_he.json +5 -0
  318. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_hr.json +5 -0
  319. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_hu.json +5 -0
  320. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_id.json +5 -0
  321. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_it.json +5 -0
  322. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ja.json +5 -0
  323. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ko.json +5 -0
  324. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_lt.json +5 -0
  325. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_lv.json +5 -0
  326. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_nl.json +5 -0
  327. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_no.json +5 -0
  328. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pl.json +5 -0
  329. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pt-BR.json +5 -0
  330. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_pt-PT.json +5 -0
  331. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ro.json +5 -0
  332. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_ru.json +5 -0
  333. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sk.json +5 -0
  334. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sl.json +5 -0
  335. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sr.json +5 -0
  336. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_sv.json +5 -0
  337. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_th.json +5 -0
  338. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_tr.json +5 -0
  339. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_uk.json +5 -0
  340. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_vi.json +5 -0
  341. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-CN.json +5 -0
  342. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-HK.json +5 -0
  343. package/dist/collection/components/date-picker/assets/date-picker/t9n/messages_zh-TW.json +5 -0
  344. package/dist/collection/components/date-picker/date-picker.e2e.js +195 -0
  345. package/dist/collection/components/date-picker/date-picker.js +462 -447
  346. package/dist/collection/components/date-picker/interfaces.js +0 -5
  347. package/dist/collection/components/date-picker/resources.js +1 -1
  348. package/dist/collection/components/date-picker/utils.js +2 -22
  349. package/dist/collection/components/date-picker/utils.spec.js +55 -0
  350. package/dist/collection/components/date-picker-day/date-picker-day.css +48 -24
  351. package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +16 -0
  352. package/dist/collection/components/date-picker-day/date-picker-day.js +284 -278
  353. package/dist/collection/components/date-picker-month/date-picker-month.js +256 -249
  354. package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +72 -0
  355. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +228 -227
  356. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  357. package/dist/collection/components/dropdown/dropdown.e2e.js +1030 -0
  358. package/dist/collection/components/dropdown/dropdown.js +422 -411
  359. package/dist/collection/components/dropdown/interfaces.js +0 -5
  360. package/dist/collection/components/dropdown/resources.js +1 -1
  361. package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +5 -0
  362. package/dist/collection/components/dropdown-group/dropdown-group.js +113 -107
  363. package/dist/collection/components/dropdown-group/interfaces.js +0 -5
  364. package/dist/collection/components/dropdown-group/resources.js +1 -1
  365. package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +6 -0
  366. package/dist/collection/components/dropdown-item/dropdown-item.js +292 -282
  367. package/dist/collection/components/dropdown-item/resources.js +1 -1
  368. package/dist/collection/components/fab/fab.e2e.js +114 -0
  369. package/dist/collection/components/fab/fab.js +205 -197
  370. package/dist/collection/components/fab/resources.js +1 -1
  371. package/dist/collection/components/filter/filter.e2e.js +205 -0
  372. package/dist/collection/components/filter/filter.js +200 -191
  373. package/dist/collection/components/filter/resources.js +1 -1
  374. package/dist/collection/components/flow/flow.e2e.js +166 -0
  375. package/dist/collection/components/flow/flow.js +55 -46
  376. package/dist/collection/components/flow/interfaces.js +0 -5
  377. package/dist/collection/components/flow/resources.js +1 -1
  378. package/dist/collection/components/flow-item/flow-item.e2e.js +72 -0
  379. package/dist/collection/components/flow-item/flow-item.js +396 -394
  380. package/dist/collection/components/flow-item/resources.js +1 -1
  381. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  382. package/dist/collection/components/functional/Heading.js +1 -1
  383. package/dist/collection/components/functional/Heading.spec.js +33 -0
  384. package/dist/collection/components/graph/graph.e2e.js +69 -0
  385. package/dist/collection/components/graph/graph.js +125 -125
  386. package/dist/collection/components/graph/interfaces.js +0 -5
  387. package/dist/collection/components/graph/util.js +1 -1
  388. package/dist/collection/components/handle/handle.e2e.js +30 -0
  389. package/dist/collection/components/handle/handle.js +94 -85
  390. package/dist/collection/components/handle/resources.js +1 -1
  391. package/dist/collection/components/icon/icon.e2e.js +75 -0
  392. package/dist/collection/components/icon/icon.js +107 -98
  393. package/dist/collection/components/icon/resources.js +1 -1
  394. package/dist/collection/components/icon/utils.js +1 -1
  395. package/dist/collection/components/icon/utils.spec.js +61 -0
  396. package/dist/collection/components/inline-editable/inline-editable.e2e.js +327 -0
  397. package/dist/collection/components/inline-editable/inline-editable.js +274 -266
  398. package/dist/collection/components/inline-editable/resources.js +1 -1
  399. package/dist/collection/components/input/input.e2e.js +1192 -0
  400. package/dist/collection/components/input/input.js +873 -856
  401. package/dist/collection/components/input/interfaces.js +0 -5
  402. package/dist/collection/components/input/resources.js +1 -1
  403. package/dist/collection/components/input-date-picker/input-date-picker.css +1 -1
  404. package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +295 -0
  405. package/dist/collection/components/input-date-picker/input-date-picker.js +799 -793
  406. package/dist/collection/components/input-date-picker/resources.js +1 -1
  407. package/dist/collection/components/input-message/input-message.css +1 -1
  408. package/dist/collection/components/input-message/input-message.e2e.js +122 -0
  409. package/dist/collection/components/input-message/input-message.js +124 -118
  410. package/dist/collection/components/input-message/interfaces.js +1 -1
  411. package/dist/collection/components/input-number/input-number.e2e.js +1004 -0
  412. package/dist/collection/components/input-number/input-number.js +803 -787
  413. package/dist/collection/components/input-number/interfaces.js +0 -5
  414. package/dist/collection/components/input-number/resources.js +1 -1
  415. package/dist/collection/components/input-text/input-text.e2e.js +276 -0
  416. package/dist/collection/components/input-text/input-text.js +596 -597
  417. package/dist/collection/components/input-text/resources.js +1 -1
  418. package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +241 -0
  419. package/dist/collection/components/input-time-picker/input-time-picker.js +591 -577
  420. package/dist/collection/components/interfaces.js +0 -5
  421. package/dist/collection/components/label/label.css +1 -1
  422. package/dist/collection/components/label/label.e2e.js +156 -0
  423. package/dist/collection/components/label/label.js +189 -183
  424. package/dist/collection/components/label/resources.js +1 -1
  425. package/dist/collection/components/link/link.e2e.js +257 -0
  426. package/dist/collection/components/link/link.js +186 -180
  427. package/dist/collection/components/list/list.e2e.js +32 -0
  428. package/dist/collection/components/list/list.js +75 -69
  429. package/dist/collection/components/list/resources.js +1 -1
  430. package/dist/collection/components/list-item/list-item.e2e.js +46 -0
  431. package/dist/collection/components/list-item/list-item.js +107 -111
  432. package/dist/collection/components/list-item/resources.js +1 -1
  433. package/dist/collection/components/list-item-group/list-item-group.e2e.js +16 -0
  434. package/dist/collection/components/list-item-group/list-item-group.js +54 -51
  435. package/dist/collection/components/list-item-group/resources.js +1 -1
  436. package/dist/collection/components/loader/loader.css +2 -2
  437. package/dist/collection/components/loader/loader.e2e.js +49 -0
  438. package/dist/collection/components/loader/loader.js +166 -169
  439. package/dist/collection/components/modal/interfaces.js +0 -5
  440. package/dist/collection/components/modal/modal.e2e.js +382 -0
  441. package/dist/collection/components/modal/modal.js +470 -473
  442. package/dist/collection/components/modal/resources.js +1 -1
  443. package/dist/collection/components/notice/notice.e2e.js +127 -0
  444. package/dist/collection/components/notice/notice.js +263 -261
  445. package/dist/collection/components/notice/resources.js +1 -1
  446. package/dist/collection/components/option/option.e2e.js +56 -0
  447. package/dist/collection/components/option/option.js +117 -107
  448. package/dist/collection/components/option-group/option-group.e2e.js +26 -0
  449. package/dist/collection/components/option-group/option-group.js +80 -72
  450. package/dist/collection/components/pagination/pagination.e2e.js +208 -0
  451. package/dist/collection/components/pagination/pagination.js +265 -257
  452. package/dist/collection/components/pagination/resources.js +1 -1
  453. package/dist/collection/components/panel/panel.css +1 -1
  454. package/dist/collection/components/panel/panel.e2e.js +281 -0
  455. package/dist/collection/components/panel/panel.js +543 -552
  456. package/dist/collection/components/panel/resources.js +1 -1
  457. package/dist/collection/components/pick-list/pick-list.e2e.js +157 -0
  458. package/dist/collection/components/pick-list/pick-list.js +249 -235
  459. package/dist/collection/components/pick-list/resources.js +1 -1
  460. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  461. package/dist/collection/components/pick-list/shared-list-render.js +2 -9
  462. package/dist/collection/components/pick-list/shared-list-tests.js +463 -0
  463. package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +54 -0
  464. package/dist/collection/components/pick-list-group/pick-list-group.js +54 -52
  465. package/dist/collection/components/pick-list-group/resources.js +1 -1
  466. package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +124 -0
  467. package/dist/collection/components/pick-list-item/pick-list-item.js +346 -344
  468. package/dist/collection/components/pick-list-item/resources.js +1 -1
  469. package/dist/collection/components/popover/PopoverManager.js +1 -1
  470. package/dist/collection/components/popover/popover.e2e.js +454 -0
  471. package/dist/collection/components/popover/popover.js +539 -534
  472. package/dist/collection/components/popover/resources.js +1 -1
  473. package/dist/collection/components/popover-manager/popover-manager.e2e.js +38 -0
  474. package/dist/collection/components/popover-manager/popover-manager.js +60 -52
  475. package/dist/collection/components/progress/progress.e2e.js +7 -0
  476. package/dist/collection/components/progress/progress.js +105 -102
  477. package/dist/collection/components/radio-button/radio-button.e2e.js +332 -0
  478. package/dist/collection/components/radio-button/radio-button.js +345 -334
  479. package/dist/collection/components/radio-button/resources.js +1 -1
  480. package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +384 -0
  481. package/dist/collection/components/radio-button-group/radio-button-group.js +169 -158
  482. package/dist/collection/components/radio-group/interfaces.js +0 -5
  483. package/dist/collection/components/radio-group/radio-group.e2e.js +258 -0
  484. package/dist/collection/components/radio-group/radio-group.js +254 -242
  485. package/dist/collection/components/radio-group-item/radio-group-item.e2e.js +92 -0
  486. package/dist/collection/components/radio-group-item/radio-group-item.js +178 -175
  487. package/dist/collection/components/radio-group-item/resources.js +1 -1
  488. package/dist/collection/components/rating/rating.e2e.js +450 -0
  489. package/dist/collection/components/rating/rating.js +273 -274
  490. package/dist/collection/components/rating/resources.js +1 -1
  491. package/dist/collection/components/scrim/resources.js +1 -1
  492. package/dist/collection/components/scrim/scrim.e2e.js +122 -0
  493. package/dist/collection/components/scrim/scrim.js +56 -53
  494. package/dist/collection/components/select/resources.js +1 -1
  495. package/dist/collection/components/select/select.e2e.js +266 -0
  496. package/dist/collection/components/select/select.js +226 -217
  497. package/dist/collection/components/shell/resources.js +1 -1
  498. package/dist/collection/components/shell/shell.e2e.js +126 -0
  499. package/dist/collection/components/shell/shell.js +38 -43
  500. package/dist/collection/components/shell-center-row/resources.js +1 -1
  501. package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +66 -0
  502. package/dist/collection/components/shell-center-row/shell-center-row.js +79 -75
  503. package/dist/collection/components/shell-panel/resources.js +1 -1
  504. package/dist/collection/components/shell-panel/shell-panel.e2e.js +282 -0
  505. package/dist/collection/components/shell-panel/shell-panel.js +183 -175
  506. package/dist/collection/components/slider/resources.js +1 -1
  507. package/dist/collection/components/slider/slider.e2e.js +648 -0
  508. package/dist/collection/components/slider/slider.js +592 -629
  509. package/dist/collection/components/sortable-list/resources.js +1 -1
  510. package/dist/collection/components/sortable-list/sortable-list.e2e.js +57 -0
  511. package/dist/collection/components/sortable-list/sortable-list.js +153 -142
  512. package/dist/collection/components/split-button/resources.js +1 -1
  513. package/dist/collection/components/split-button/split-button.e2e.js +206 -0
  514. package/dist/collection/components/split-button/split-button.js +363 -357
  515. package/dist/collection/components/stepper/interfaces.js +0 -5
  516. package/dist/collection/components/stepper/stepper.e2e.js +558 -0
  517. package/dist/collection/components/stepper/stepper.js +248 -236
  518. package/dist/collection/components/stepper-item/stepper-item.e2e.js +6 -0
  519. package/dist/collection/components/stepper-item/stepper-item.js +395 -392
  520. package/dist/collection/components/switch/switch.e2e.js +91 -0
  521. package/dist/collection/components/switch/switch.js +187 -179
  522. package/dist/collection/components/tab/interfaces.js +0 -5
  523. package/dist/collection/components/tab/tab.e2e.js +49 -0
  524. package/dist/collection/components/tab/tab.js +192 -179
  525. package/dist/collection/components/tab-nav/tab-nav.e2e.js +143 -0
  526. package/dist/collection/components/tab-nav/tab-nav.js +285 -275
  527. package/dist/collection/components/tab-title/tab-title.e2e.js +222 -0
  528. package/dist/collection/components/tab-title/tab-title.js +465 -453
  529. package/dist/collection/components/tabs/interfaces.js +0 -5
  530. package/dist/collection/components/tabs/resources.js +1 -1
  531. package/dist/collection/components/tabs/tabs.e2e.js +281 -0
  532. package/dist/collection/components/tabs/tabs.js +131 -124
  533. package/dist/collection/components/tile/resources.js +1 -1
  534. package/dist/collection/components/tile/tile.e2e.js +79 -0
  535. package/dist/collection/components/tile/tile.js +170 -174
  536. package/dist/collection/components/tile-select/interfaces.js +0 -5
  537. package/dist/collection/components/tile-select/resources.js +1 -1
  538. package/dist/collection/components/tile-select/tile-select.e2e.js +133 -0
  539. package/dist/collection/components/tile-select/tile-select.js +347 -333
  540. package/dist/collection/components/tile-select-group/interfaces.js +0 -5
  541. package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +14 -0
  542. package/dist/collection/components/tile-select-group/tile-select-group.js +56 -50
  543. package/dist/collection/components/time-picker/resources.js +1 -1
  544. package/dist/collection/components/time-picker/time-picker.e2e.js +737 -0
  545. package/dist/collection/components/time-picker/time-picker.js +533 -544
  546. package/dist/collection/components/tip/resources.js +1 -1
  547. package/dist/collection/components/tip/tip.e2e.js +42 -0
  548. package/dist/collection/components/tip/tip.js +142 -143
  549. package/dist/collection/components/tip-group/tip-group.e2e.js +6 -0
  550. package/dist/collection/components/tip-group/tip-group.js +33 -27
  551. package/dist/collection/components/tip-manager/resources.js +1 -1
  552. package/dist/collection/components/tip-manager/tip-manager.e2e.js +176 -0
  553. package/dist/collection/components/tip-manager/tip-manager.js +225 -221
  554. package/dist/collection/components/tip-manager/tip-manager.spec.js +13 -0
  555. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  556. package/dist/collection/components/tooltip/resources.js +1 -1
  557. package/dist/collection/components/tooltip/tooltip.e2e.js +359 -0
  558. package/dist/collection/components/tooltip/tooltip.js +220 -210
  559. package/dist/collection/components/tooltip-manager/tooltip-manager.e2e.js +19 -0
  560. package/dist/collection/components/tooltip-manager/tooltip-manager.js +37 -31
  561. package/dist/collection/components/tree/interfaces.js +1 -1
  562. package/dist/collection/components/tree/tree.e2e.js +586 -0
  563. package/dist/collection/components/tree/tree.js +276 -244
  564. package/dist/collection/components/tree/utils.js +21 -0
  565. package/dist/collection/components/tree-item/interfaces.js +0 -5
  566. package/dist/collection/components/tree-item/resources.js +1 -1
  567. package/dist/collection/components/tree-item/tree-item.css +17 -3
  568. package/dist/collection/components/tree-item/tree-item.e2e.js +302 -0
  569. package/dist/collection/components/tree-item/tree-item.js +298 -268
  570. package/dist/collection/components/value-list/interfaces.js +0 -5
  571. package/dist/collection/components/value-list/resources.js +1 -1
  572. package/dist/collection/components/value-list/utils.js +1 -1
  573. package/dist/collection/components/value-list/value-list.e2e.js +205 -0
  574. package/dist/collection/components/value-list/value-list.js +341 -327
  575. package/dist/collection/components/value-list-item/resources.js +1 -1
  576. package/dist/collection/components/value-list-item/value-list-item.e2e.js +96 -0
  577. package/dist/collection/components/value-list-item/value-list-item.js +282 -275
  578. package/dist/collection/demos/_assets/demo-dom-swapper.js +45 -0
  579. package/dist/collection/demos/_assets/demo-spacer.js +17 -0
  580. package/dist/collection/demos/_assets/demo-template.js +24 -0
  581. package/dist/collection/demos/_assets/head.js +48 -0
  582. package/dist/collection/demos/_assets/locales.js +223 -0
  583. package/dist/collection/tests/commonTests.js +596 -0
  584. package/dist/collection/tests/utils.js +200 -0
  585. package/dist/collection/utils/array.js +1 -1
  586. package/dist/collection/utils/conditionalSlot.js +1 -1
  587. package/dist/collection/utils/date.js +1 -1
  588. package/dist/collection/utils/date.spec.js +153 -0
  589. package/dist/collection/utils/dom.e2e.js +107 -0
  590. package/dist/collection/utils/dom.js +26 -1
  591. package/dist/collection/utils/dom.spec.js +273 -0
  592. package/dist/collection/utils/filter.js +2 -3
  593. package/dist/collection/utils/floating-ui.js +1 -1
  594. package/dist/collection/utils/floating-ui.spec.js +23 -0
  595. package/dist/collection/utils/form.js +1 -1
  596. package/dist/collection/utils/form.spec.js +16 -0
  597. package/dist/collection/utils/globalAttributes.js +1 -1
  598. package/dist/collection/utils/globalAttributes.spec.js +36 -0
  599. package/dist/collection/utils/globalScript.js +1 -1
  600. package/dist/collection/utils/guid.js +1 -1
  601. package/dist/collection/utils/guid.spec.js +7 -0
  602. package/dist/collection/utils/interactive.js +1 -1
  603. package/dist/collection/utils/interactive.spec.js +20 -0
  604. package/dist/collection/utils/key.js +1 -1
  605. package/dist/collection/utils/label.js +1 -1
  606. package/dist/collection/utils/label.spec.js +188 -0
  607. package/dist/collection/utils/locale.js +173 -64
  608. package/dist/collection/utils/locale.spec.js +44 -0
  609. package/dist/collection/utils/math.js +1 -1
  610. package/dist/collection/utils/math.spec.js +8 -0
  611. package/dist/collection/utils/number.js +33 -31
  612. package/dist/collection/utils/number.spec.js +113 -0
  613. package/dist/collection/utils/observers.js +31 -7
  614. package/dist/collection/utils/openCloseComponent.js +1 -1
  615. package/dist/collection/utils/popper.js +121 -0
  616. package/dist/collection/utils/resources.js +1 -1
  617. package/dist/collection/utils/t9n.js +110 -0
  618. package/dist/collection/utils/theme.js +1 -1
  619. package/dist/collection/utils/time.js +4 -2
  620. package/dist/components/ExpandToggle.js +1 -1
  621. package/dist/components/Heading.js +1 -1
  622. package/dist/components/action-group.js +2 -2
  623. package/dist/components/action-menu.js +4 -3
  624. package/dist/components/action.js +3 -3
  625. package/dist/components/array.js +1 -1
  626. package/dist/components/button.js +2 -2
  627. package/dist/components/calcite-accordion-item.js +2 -2
  628. package/dist/components/calcite-accordion.js +2 -2
  629. package/dist/components/calcite-action-bar.js +2 -2
  630. package/dist/components/calcite-action-group.js +1 -1
  631. package/dist/components/calcite-action-menu.js +1 -1
  632. package/dist/components/calcite-action-pad.js +2 -2
  633. package/dist/components/calcite-action.js +1 -1
  634. package/dist/components/calcite-alert.js +16 -3
  635. package/dist/components/calcite-avatar.js +2 -2
  636. package/dist/components/calcite-block-section.js +2 -2
  637. package/dist/components/calcite-block.js +2 -2
  638. package/dist/components/calcite-button.js +1 -1
  639. package/dist/components/calcite-card.js +2 -2
  640. package/dist/components/calcite-checkbox.js +1 -1
  641. package/dist/components/calcite-chip.js +1 -1
  642. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  643. package/dist/components/calcite-color-picker-swatch.js +1 -1
  644. package/dist/components/calcite-color-picker.js +2 -2
  645. package/dist/components/calcite-combobox-item-group.js +2 -2
  646. package/dist/components/calcite-combobox-item.js +2 -2
  647. package/dist/components/calcite-combobox.js +6 -4
  648. package/dist/components/calcite-date-picker-day.js +1 -1
  649. package/dist/components/calcite-date-picker-month-header.js +1 -1
  650. package/dist/components/calcite-date-picker-month.js +1 -1
  651. package/dist/components/calcite-date-picker.js +1 -1
  652. package/dist/components/calcite-dropdown-group.js +2 -2
  653. package/dist/components/calcite-dropdown-item.js +2 -2
  654. package/dist/components/calcite-dropdown.js +1 -1
  655. package/dist/components/calcite-fab.js +3 -3
  656. package/dist/components/calcite-filter.js +1 -1
  657. package/dist/components/calcite-flow-item.js +8 -10
  658. package/dist/components/calcite-flow.js +2 -2
  659. package/dist/components/calcite-graph.js +1 -1
  660. package/dist/components/calcite-handle.js +1 -1
  661. package/dist/components/calcite-icon.js +1 -1
  662. package/dist/components/calcite-inline-editable.js +2 -2
  663. package/dist/components/calcite-input-date-picker.js +36 -30
  664. package/dist/components/calcite-input-message.js +5 -5
  665. package/dist/components/calcite-input-number.js +38 -19
  666. package/dist/components/calcite-input-text.js +4 -4
  667. package/dist/components/calcite-input-time-picker.js +32 -28
  668. package/dist/components/calcite-input.js +1 -1
  669. package/dist/components/calcite-label.js +1 -1
  670. package/dist/components/calcite-link.js +1 -1
  671. package/dist/components/calcite-list-item-group.js +2 -2
  672. package/dist/components/calcite-list-item.js +2 -2
  673. package/dist/components/calcite-list.js +2 -2
  674. package/dist/components/calcite-loader.js +1 -1
  675. package/dist/components/calcite-modal.js +2 -2
  676. package/dist/components/calcite-notice.js +2 -2
  677. package/dist/components/calcite-option-group.js +2 -2
  678. package/dist/components/calcite-option.js +2 -2
  679. package/dist/components/calcite-pagination.js +14 -10
  680. package/dist/components/calcite-panel.js +1 -1
  681. package/dist/components/calcite-pick-list-group.js +2 -2
  682. package/dist/components/calcite-pick-list-item.js +1 -1
  683. package/dist/components/calcite-pick-list.js +2 -2
  684. package/dist/components/calcite-popover-manager.js +2 -2
  685. package/dist/components/calcite-popover.js +1 -1
  686. package/dist/components/calcite-progress.js +1 -1
  687. package/dist/components/calcite-radio-button-group.js +3 -3
  688. package/dist/components/calcite-radio-button.js +3 -3
  689. package/dist/components/calcite-radio-group-item.js +5 -5
  690. package/dist/components/calcite-radio-group.js +3 -3
  691. package/dist/components/calcite-rating.js +3 -3
  692. package/dist/components/calcite-scrim.js +1 -1
  693. package/dist/components/calcite-select.js +3 -3
  694. package/dist/components/calcite-shell-center-row.js +3 -3
  695. package/dist/components/calcite-shell-panel.js +2 -2
  696. package/dist/components/calcite-shell.js +2 -2
  697. package/dist/components/calcite-slider.js +14 -10
  698. package/dist/components/calcite-sortable-list.js +2 -2
  699. package/dist/components/calcite-split-button.js +5 -3
  700. package/dist/components/calcite-stepper-item.js +2 -2
  701. package/dist/components/calcite-stepper.js +2 -2
  702. package/dist/components/calcite-switch.js +1 -1
  703. package/dist/components/calcite-tab-nav.js +1 -1
  704. package/dist/components/calcite-tab-title.js +1 -1
  705. package/dist/components/calcite-tab.js +1 -1
  706. package/dist/components/calcite-tabs.js +1 -1
  707. package/dist/components/calcite-tile-select-group.js +3 -3
  708. package/dist/components/calcite-tile-select.js +2 -2
  709. package/dist/components/calcite-tile.js +1 -1
  710. package/dist/components/calcite-time-picker.js +1 -1
  711. package/dist/components/calcite-tip-group.js +2 -2
  712. package/dist/components/calcite-tip-manager.js +2 -2
  713. package/dist/components/calcite-tip.js +2 -2
  714. package/dist/components/calcite-tooltip-manager.js +2 -2
  715. package/dist/components/calcite-tooltip.js +1 -1
  716. package/dist/components/calcite-tree-item.js +12 -3
  717. package/dist/components/calcite-tree.js +115 -76
  718. package/dist/components/calcite-value-list-item.js +2 -2
  719. package/dist/components/calcite-value-list.js +2 -2
  720. package/dist/components/checkbox.js +3 -3
  721. package/dist/components/chip.js +3 -3
  722. package/dist/components/color-picker-hex-input.js +2 -2
  723. package/dist/components/color-picker-swatch.js +2 -2
  724. package/dist/components/conditionalSlot.js +1 -1
  725. package/dist/components/date-picker-day.js +2 -2
  726. package/dist/components/date-picker-month-header.js +2 -2
  727. package/dist/components/date-picker-month.js +2 -2
  728. package/dist/components/date-picker.js +14 -28
  729. package/dist/components/date.js +1 -1
  730. package/dist/components/debounce.js +1 -1
  731. package/dist/components/dom.js +27 -2
  732. package/dist/components/dropdown.js +5 -3
  733. package/dist/components/filter.js +2 -2
  734. package/dist/components/filter2.js +2 -3
  735. package/dist/components/floating-ui.js +1 -1
  736. package/dist/components/form.js +1 -1
  737. package/dist/components/graph.js +2 -2
  738. package/dist/components/guid.js +1 -1
  739. package/dist/components/handle.js +2 -2
  740. package/dist/components/icon.js +2 -2
  741. package/dist/components/index.js +1 -1
  742. package/dist/components/input.js +63 -41
  743. package/dist/components/interactive.js +1 -1
  744. package/dist/components/interfaces.js +1 -1
  745. package/dist/components/interfaces2.js +1 -1
  746. package/dist/components/key.js +1 -1
  747. package/dist/components/label.js +11 -11
  748. package/dist/components/label2.js +1 -1
  749. package/dist/components/link.js +6 -6
  750. package/dist/components/loader.js +2 -2
  751. package/dist/components/locale.js +374 -0
  752. package/dist/components/math.js +1 -1
  753. package/dist/components/observers.js +31 -7
  754. package/dist/components/openCloseComponent.js +1 -1
  755. package/dist/components/panel.js +8 -10
  756. package/dist/components/pick-list-item.js +2 -2
  757. package/dist/components/popover.js +5 -3
  758. package/dist/components/progress.js +2 -2
  759. package/dist/components/resources.js +1 -1
  760. package/dist/components/resources2.js +1 -1
  761. package/dist/components/resources3.js +1 -1
  762. package/dist/components/scrim.js +2 -2
  763. package/dist/components/shared-list-render.js +1 -1
  764. package/dist/components/sortable.esm.js +1 -1
  765. package/dist/components/switch.js +3 -3
  766. package/dist/components/tab-nav.js +2 -2
  767. package/dist/components/tab-title.js +3 -3
  768. package/dist/components/tab.js +3 -3
  769. package/dist/components/tabs.js +2 -2
  770. package/dist/components/tile.js +2 -2
  771. package/dist/components/time-picker.js +22 -20
  772. package/dist/components/tooltip.js +5 -3
  773. package/dist/components/utils.js +1 -1
  774. package/dist/components/utils2.js +1 -1
  775. package/dist/esm/{ExpandToggle-b94e1fe2.js → ExpandToggle-21a5493f.js} +5 -5
  776. package/dist/esm/{Heading-9398c9e6.js → Heading-0da1d231.js} +2 -2
  777. package/dist/esm/{app-globals-1f65a164.js → app-globals-53484588.js} +2 -2
  778. package/dist/esm/{array-3ac5d2ad.js → array-afca26e4.js} +1 -1
  779. package/dist/esm/calcite-accordion_2.entry.js +9 -9
  780. package/dist/esm/calcite-action-bar.entry.js +12 -12
  781. package/dist/esm/calcite-action-group.entry.js +10 -10
  782. package/dist/esm/calcite-action-menu.entry.js +11 -10
  783. package/dist/esm/calcite-action-pad.entry.js +11 -11
  784. package/dist/esm/calcite-action.entry.js +8 -8
  785. package/dist/esm/calcite-alert.entry.js +22 -9
  786. package/dist/esm/calcite-avatar.entry.js +7 -7
  787. package/dist/esm/calcite-block_2.entry.js +12 -12
  788. package/dist/esm/calcite-button.entry.js +10 -10
  789. package/dist/esm/calcite-card.entry.js +8 -8
  790. package/dist/esm/calcite-checkbox.entry.js +11 -11
  791. package/dist/esm/calcite-chip.entry.js +9 -9
  792. package/dist/esm/calcite-color-picker_3.entry.js +13 -13
  793. package/dist/esm/calcite-combobox_3.entry.js +21 -19
  794. package/dist/esm/calcite-date-picker_4.entry.js +25 -20
  795. package/dist/esm/calcite-dropdown_3.entry.js +17 -15
  796. package/dist/esm/calcite-fab.entry.js +8 -8
  797. package/dist/esm/calcite-filter.entry.js +9 -9
  798. package/dist/esm/calcite-flow-item.entry.js +14 -16
  799. package/dist/esm/calcite-flow.entry.js +4 -4
  800. package/dist/esm/calcite-graph_2.entry.js +24 -20
  801. package/dist/esm/calcite-handle.entry.js +6 -6
  802. package/dist/esm/calcite-icon.entry.js +7 -7
  803. package/dist/esm/calcite-inline-editable.entry.js +9 -9
  804. package/dist/esm/calcite-input-date-picker.entry.js +45 -40
  805. package/dist/esm/calcite-input-message.entry.js +9 -9
  806. package/dist/esm/calcite-input-number.entry.js +47 -28
  807. package/dist/esm/calcite-input-text.entry.js +12 -12
  808. package/dist/esm/calcite-input-time-picker_2.entry.js +57 -51
  809. package/dist/esm/calcite-input.entry.js +72 -50
  810. package/dist/esm/calcite-label.entry.js +16 -16
  811. package/dist/esm/calcite-link.entry.js +9 -9
  812. package/dist/esm/calcite-list_3.entry.js +12 -12
  813. package/dist/esm/calcite-loader.entry.js +4 -4
  814. package/dist/esm/calcite-modal.entry.js +9 -9
  815. package/dist/esm/calcite-notice.entry.js +9 -9
  816. package/dist/esm/calcite-option_3.entry.js +13 -13
  817. package/dist/esm/calcite-pagination.entry.js +19 -12
  818. package/dist/esm/calcite-panel.entry.js +17 -19
  819. package/dist/esm/calcite-pick-list_3.entry.js +15 -15
  820. package/dist/esm/calcite-popover_2.entry.js +16 -14
  821. package/dist/esm/calcite-progress.entry.js +3 -3
  822. package/dist/esm/calcite-radio-button-group.entry.js +5 -5
  823. package/dist/esm/calcite-radio-button.entry.js +11 -11
  824. package/dist/esm/calcite-radio-group_2.entry.js +14 -14
  825. package/dist/esm/calcite-rating.entry.js +11 -11
  826. package/dist/esm/calcite-scrim.entry.js +3 -3
  827. package/dist/esm/calcite-shell_3.entry.js +12 -12
  828. package/dist/esm/calcite-sortable-list.entry.js +6 -6
  829. package/dist/esm/calcite-split-button.entry.js +7 -5
  830. package/dist/esm/calcite-stepper_2.entry.js +8 -8
  831. package/dist/esm/calcite-switch.entry.js +11 -11
  832. package/dist/esm/calcite-tab_4.entry.js +13 -13
  833. package/dist/esm/calcite-tile-select_2.entry.js +7 -7
  834. package/dist/esm/calcite-tile.entry.js +9 -9
  835. package/dist/esm/calcite-tip_3.entry.js +11 -11
  836. package/dist/esm/calcite-tooltip_2.entry.js +12 -10
  837. package/dist/esm/calcite-tree_2.entry.js +131 -84
  838. package/dist/esm/calcite-value-list_2.entry.js +14 -14
  839. package/dist/esm/calcite.js +6 -6
  840. package/dist/esm/{conditionalSlot-5b35c2f6.js → conditionalSlot-e50c9f14.js} +3 -3
  841. package/dist/esm/{debounce-3b1693a8.js → debounce-6816d02c.js} +1 -1
  842. package/dist/esm/{dom-4436bd07.js → dom-1ac7b489.js} +29 -4
  843. package/dist/esm/{filter-8af4eb80.js → filter-1cca1a38.js} +3 -4
  844. package/dist/esm/{floating-ui-fcf59cab.js → floating-ui-41bd9b35.js} +2 -2
  845. package/dist/esm/{form-c902fafa.js → form-08544720.js} +3 -3
  846. package/dist/esm/{guid-cd505852.js → guid-57e25130.js} +1 -1
  847. package/dist/esm/{index-61da5fbc.js → index-5326c3af.js} +1117 -946
  848. package/dist/esm/index.js +1 -1
  849. package/dist/esm/{interactive-6cafa58c.js → interactive-c086cb04.js} +1 -1
  850. package/dist/esm/{interfaces-401a4071.js → interfaces-ba4e7fb1.js} +1 -1
  851. package/dist/esm/{key-d6e66ea5.js → key-42705c39.js} +1 -1
  852. package/dist/esm/{label-6c6aade5.js → label-a209a39c.js} +2 -2
  853. package/dist/esm/loader.js +6 -6
  854. package/dist/esm/locale-6840e756.js +374 -0
  855. package/dist/esm/{math-35a0e454.js → math-e13ce572.js} +1 -1
  856. package/dist/esm/observers-68c33472.js +46 -0
  857. package/dist/esm/{openCloseComponent-16d8c6cb.js → openCloseComponent-f9f51e92.js} +1 -1
  858. package/dist/esm/polyfills/css-shim.js +1 -1
  859. package/dist/esm/{resources-54732430.js → resources-a65a8ad1.js} +1 -1
  860. package/dist/esm/{resources-1e0c6832.js → resources-ba2025cb.js} +1 -1
  861. package/dist/esm/{resources-ce568df4.js → resources-bf3cbf16.js} +1 -1
  862. package/dist/esm/{resources-cd0c5121.js → resources-c69a833c.js} +3 -23
  863. package/dist/esm/{resources-6e9455eb.js → resources-d0f37d22.js} +5 -5
  864. package/dist/esm/{resources-54c26d1b.js → resources-d2b2a177.js} +1 -1
  865. package/dist/esm/{sortable.esm-dcbb5a29.js → sortable.esm-1ad7cec8.js} +1 -1
  866. package/dist/esm/{utils-ad1cc5e3.js → utils-f163e9f8.js} +1 -1
  867. package/dist/extras/docs-json.json +888 -272
  868. package/dist/index.js +1 -1
  869. package/dist/loader/cdn.js +1 -1
  870. package/dist/loader/index.cjs.js +1 -1
  871. package/dist/loader/index.es2017.js +1 -1
  872. package/dist/loader/index.js +2 -2
  873. package/dist/loader/package.json +1 -0
  874. package/dist/types/components/accordion-item/accordion-item.d.ts +4 -4
  875. package/dist/types/components/action/action.d.ts +2 -2
  876. package/dist/types/components/action/assets/action/t9n/index.d.ts +3 -0
  877. package/dist/types/components/action-bar/action-bar.d.ts +1 -1
  878. package/dist/types/components/action-bar/assets/action-bar/t9n/index.d.ts +4 -0
  879. package/dist/types/components/action-group/assets/action-group/t9n/index.d.ts +3 -0
  880. package/dist/types/components/action-menu/action-menu.d.ts +2 -1
  881. package/dist/types/components/action-pad/assets/action-pad/t9n/index.d.ts +4 -0
  882. package/dist/types/components/alert/alert.d.ts +7 -1
  883. package/dist/types/components/alert/assets/alert/t9n/index.d.ts +3 -0
  884. package/dist/types/components/block/assets/block/t9n/index.d.ts +6 -0
  885. package/dist/types/components/block-section/assets/block-section/t9n/index.d.ts +4 -0
  886. package/dist/types/components/button/assets/button/t9n/index.d.ts +3 -0
  887. package/dist/types/components/button/button.d.ts +3 -3
  888. package/dist/types/components/card/assets/card/t9n/index.d.ts +5 -0
  889. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  890. package/dist/types/components/chip/assets/chip/t9n/index.d.ts +3 -0
  891. package/dist/types/components/chip/chip.d.ts +3 -3
  892. package/dist/types/components/color-picker/assets/color-picker/t9n/index.d.ts +21 -0
  893. package/dist/types/components/color-picker/color-picker.d.ts +3 -2
  894. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +3 -2
  895. package/dist/types/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
  896. package/dist/types/components/combobox/combobox.d.ts +5 -3
  897. package/dist/types/components/combobox-item/combobox-item.d.ts +1 -1
  898. package/dist/types/components/date-picker/assets/date-picker/t9n/index.d.ts +5 -0
  899. package/dist/types/components/date-picker/date-picker.d.ts +4 -4
  900. package/dist/types/components/dropdown/dropdown.d.ts +4 -2
  901. package/dist/types/components/dropdown-item/dropdown-item.d.ts +3 -3
  902. package/dist/types/components/fab/fab.d.ts +1 -1
  903. package/dist/types/components/filter/assets/filter/t9n/index.d.ts +4 -0
  904. package/dist/types/components/flow/flow.d.ts +1 -1
  905. package/dist/types/components/flow-item/flow-item.d.ts +6 -8
  906. package/dist/types/components/handle/handle.d.ts +1 -1
  907. package/dist/types/components/inline-editable/assets/inline-editable/t9n/index.d.ts +5 -0
  908. package/dist/types/components/inline-editable/inline-editable.d.ts +1 -1
  909. package/dist/types/components/input/assets/input/t9n/index.d.ts +4 -0
  910. package/dist/types/components/input/input.d.ts +25 -26
  911. package/dist/types/components/input-date-picker/input-date-picker.d.ts +45 -40
  912. package/dist/types/components/input-message/input-message.d.ts +6 -9
  913. package/dist/types/components/input-number/assets/input-number/t9n/index.d.ts +4 -0
  914. package/dist/types/components/input-number/input-number.d.ts +9 -11
  915. package/dist/types/components/input-text/assets/input-text/t9n/index.d.ts +4 -0
  916. package/dist/types/components/input-text/input-text.d.ts +3 -3
  917. package/dist/types/components/input-time-picker/input-time-picker.d.ts +31 -28
  918. package/dist/types/components/label/label.d.ts +10 -10
  919. package/dist/types/components/link/link.d.ts +8 -8
  920. package/dist/types/components/modal/assets/modal/t9n/index.d.ts +3 -0
  921. package/dist/types/components/notice/assets/notice/t9n/index.d.ts +3 -0
  922. package/dist/types/components/notice/notice.d.ts +1 -2
  923. package/dist/types/components/pagination/assets/pagination/t9n/index.d.ts +4 -0
  924. package/dist/types/components/pagination/pagination.d.ts +4 -7
  925. package/dist/types/components/panel/assets/panel/t9n/index.d.ts +6 -0
  926. package/dist/types/components/panel/panel.d.ts +6 -8
  927. package/dist/types/components/pick-list/assets/pick-list/t9n/index.d.ts +3 -0
  928. package/dist/types/components/pick-list/pick-list.d.ts +1 -1
  929. package/dist/types/components/pick-list-item/assets/pick-list-item/t9n/index.d.ts +3 -0
  930. package/dist/types/components/popover/assets/popover/t9n/index.d.ts +3 -0
  931. package/dist/types/components/popover/popover.d.ts +3 -1
  932. package/dist/types/components/popover-manager/popover-manager.d.ts +1 -1
  933. package/dist/types/components/radio-button/radio-button.d.ts +1 -1
  934. package/dist/types/components/radio-button-group/radio-button-group.d.ts +2 -2
  935. package/dist/types/components/radio-group/radio-group.d.ts +1 -1
  936. package/dist/types/components/radio-group-item/radio-group-item.d.ts +7 -7
  937. package/dist/types/components/rating/assets/rating/t9n/index.d.ts +4 -0
  938. package/dist/types/components/rating/rating.d.ts +1 -1
  939. package/dist/types/components/scrim/assets/scrim/t9n/index.d.ts +3 -0
  940. package/dist/types/components/select/select.d.ts +1 -1
  941. package/dist/types/components/shell-center-row/shell-center-row.d.ts +1 -1
  942. package/dist/types/components/shell-panel/assets/shell-panel/t9n/index.d.ts +3 -0
  943. package/dist/types/components/shell-panel/shell-panel.d.ts +1 -1
  944. package/dist/types/components/slider/slider.d.ts +7 -9
  945. package/dist/types/components/sortable-list/sortable-list.d.ts +1 -1
  946. package/dist/types/components/split-button/split-button.d.ts +6 -4
  947. package/dist/types/components/stepper-item/stepper-item.d.ts +2 -2
  948. package/dist/types/components/switch/switch.d.ts +1 -1
  949. package/dist/types/components/tab/tab.d.ts +1 -1
  950. package/dist/types/components/tab-title/tab-title.d.ts +4 -4
  951. package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
  952. package/dist/types/components/time-picker/assets/time-picker/t9n/index.d.ts +14 -0
  953. package/dist/types/components/time-picker/time-picker.d.ts +7 -7
  954. package/dist/types/components/tip/assets/tip/t9n/index.d.ts +3 -0
  955. package/dist/types/components/tip-manager/assets/tip-manager/t9n/index.d.ts +7 -0
  956. package/dist/types/components/tip-manager/tip-manager.d.ts +2 -2
  957. package/dist/types/components/tooltip/tooltip.d.ts +3 -1
  958. package/dist/types/components/tree/tree.d.ts +1 -1
  959. package/dist/types/components/tree/utils.d.ts +1 -0
  960. package/dist/types/components/tree-item/tree-item.d.ts +8 -2
  961. package/dist/types/components/value-list/assets/value-list/t9n/index.d.ts +7 -0
  962. package/dist/types/components/value-list/value-list.d.ts +1 -1
  963. package/dist/types/components.d.ts +341 -330
  964. package/dist/types/stencil-public-runtime.d.ts +15 -4
  965. package/dist/types/utils/dom.d.ts +10 -0
  966. package/dist/types/utils/locale.d.ts +79 -11
  967. package/dist/types/utils/number.d.ts +3 -5
  968. package/dist/types/utils/observers.d.ts +5 -1
  969. package/dist/types/utils/t9n.d.ts +88 -0
  970. package/dist/types/utils/time.d.ts +1 -1
  971. package/hydrate/index.d.ts +1 -1
  972. package/hydrate/index.js +1585 -1357
  973. package/package.json +21 -18
  974. package/dist/calcite/calcite.js +0 -131
  975. package/dist/calcite/p-01084455.entry.js +0 -6
  976. package/dist/calcite/p-0171edf2.entry.js +0 -6
  977. package/dist/calcite/p-053beb3b.system.entry.js +0 -6
  978. package/dist/calcite/p-066e7b95.entry.js +0 -6
  979. package/dist/calcite/p-078bf287.system.entry.js +0 -6
  980. package/dist/calcite/p-08582520.system.entry.js +0 -6
  981. package/dist/calcite/p-0a33ea71.entry.js +0 -6
  982. package/dist/calcite/p-0e5463f9.entry.js +0 -6
  983. package/dist/calcite/p-0ecef714.js +0 -6
  984. package/dist/calcite/p-0f1d9b98.system.entry.js +0 -6
  985. package/dist/calcite/p-0f4d2a35.system.entry.js +0 -6
  986. package/dist/calcite/p-0fe5235a.system.js +0 -6
  987. package/dist/calcite/p-0ff05607.entry.js +0 -6
  988. package/dist/calcite/p-10eee6b3.system.js +0 -6
  989. package/dist/calcite/p-128503da.entry.js +0 -6
  990. package/dist/calcite/p-14ccc0d9.entry.js +0 -6
  991. package/dist/calcite/p-153c05a0.js +0 -7
  992. package/dist/calcite/p-178adc2e.system.entry.js +0 -6
  993. package/dist/calcite/p-195fae84.entry.js +0 -6
  994. package/dist/calcite/p-1a31ff14.entry.js +0 -6
  995. package/dist/calcite/p-1ae41816.system.entry.js +0 -6
  996. package/dist/calcite/p-1b21cf49.entry.js +0 -6
  997. package/dist/calcite/p-1df9515b.entry.js +0 -6
  998. package/dist/calcite/p-1f71a1f3.entry.js +0 -6
  999. package/dist/calcite/p-21df7481.entry.js +0 -6
  1000. package/dist/calcite/p-2286c402.entry.js +0 -6
  1001. package/dist/calcite/p-23829a7c.system.entry.js +0 -6
  1002. package/dist/calcite/p-2ae16ecd.system.js +0 -6
  1003. package/dist/calcite/p-2c1b84b8.system.entry.js +0 -6
  1004. package/dist/calcite/p-2dbafa0e.system.entry.js +0 -6
  1005. package/dist/calcite/p-2ddf20c1.entry.js +0 -6
  1006. package/dist/calcite/p-2e41fabd.system.entry.js +0 -6
  1007. package/dist/calcite/p-2e9f9c77.entry.js +0 -6
  1008. package/dist/calcite/p-2f7e077f.system.entry.js +0 -6
  1009. package/dist/calcite/p-30cc3512.system.js +0 -6
  1010. package/dist/calcite/p-3308bd8c.system.entry.js +0 -6
  1011. package/dist/calcite/p-336737ce.system.entry.js +0 -6
  1012. package/dist/calcite/p-34565e87.system.js +0 -6
  1013. package/dist/calcite/p-37a1e422.system.js +0 -6
  1014. package/dist/calcite/p-37bd9759.system.entry.js +0 -6
  1015. package/dist/calcite/p-3a51faac.system.entry.js +0 -6
  1016. package/dist/calcite/p-3b0ab13f.entry.js +0 -6
  1017. package/dist/calcite/p-3fa648a6.system.js +0 -6
  1018. package/dist/calcite/p-4855edd6.system.entry.js +0 -6
  1019. package/dist/calcite/p-4ae05971.system.entry.js +0 -6
  1020. package/dist/calcite/p-4e650ae3.entry.js +0 -6
  1021. package/dist/calcite/p-4ea81ee8.system.entry.js +0 -6
  1022. package/dist/calcite/p-4f999803.system.entry.js +0 -6
  1023. package/dist/calcite/p-4fab2c01.system.js +0 -7
  1024. package/dist/calcite/p-50352c86.system.js +0 -6
  1025. package/dist/calcite/p-5463e965.entry.js +0 -6
  1026. package/dist/calcite/p-56aa2ee6.system.js +0 -6
  1027. package/dist/calcite/p-5a1d3074.system.js +0 -6
  1028. package/dist/calcite/p-5c0d6300.system.entry.js +0 -6
  1029. package/dist/calcite/p-5c193aaf.entry.js +0 -6
  1030. package/dist/calcite/p-5d681f1f.system.js +0 -6
  1031. package/dist/calcite/p-5e1a4c6a.entry.js +0 -6
  1032. package/dist/calcite/p-5ef02486.system.js +0 -6
  1033. package/dist/calcite/p-603b3f3b.system.js +0 -6
  1034. package/dist/calcite/p-65f981cc.system.js +0 -6
  1035. package/dist/calcite/p-66d6175b.system.entry.js +0 -6
  1036. package/dist/calcite/p-6817a388.system.entry.js +0 -6
  1037. package/dist/calcite/p-712673ee.entry.js +0 -6
  1038. package/dist/calcite/p-7148500f.entry.js +0 -6
  1039. package/dist/calcite/p-715ff3ee.system.js +0 -6
  1040. package/dist/calcite/p-71e932d2.system.js +0 -6
  1041. package/dist/calcite/p-74f40869.entry.js +0 -6
  1042. package/dist/calcite/p-768b7c96.system.entry.js +0 -6
  1043. package/dist/calcite/p-77fadf98.entry.js +0 -6
  1044. package/dist/calcite/p-7932a17d.system.js +0 -12
  1045. package/dist/calcite/p-7aed292d.js +0 -6
  1046. package/dist/calcite/p-7bf8e945.entry.js +0 -6
  1047. package/dist/calcite/p-7d3c6c3c.entry.js +0 -6
  1048. package/dist/calcite/p-7e96bb79.entry.js +0 -6
  1049. package/dist/calcite/p-821266d4.entry.js +0 -6
  1050. package/dist/calcite/p-82283c1d.entry.js +0 -6
  1051. package/dist/calcite/p-830c7c7b.system.js +0 -6
  1052. package/dist/calcite/p-8358768c.system.entry.js +0 -6
  1053. package/dist/calcite/p-882c15d1.system.entry.js +0 -6
  1054. package/dist/calcite/p-8bd8264d.js +0 -6
  1055. package/dist/calcite/p-8ca19c2d.js +0 -6
  1056. package/dist/calcite/p-8d36d6c1.system.entry.js +0 -6
  1057. package/dist/calcite/p-8d996e47.system.entry.js +0 -6
  1058. package/dist/calcite/p-8d9f078a.system.entry.js +0 -6
  1059. package/dist/calcite/p-8e370f1d.js +0 -6
  1060. package/dist/calcite/p-9026d51a.system.entry.js +0 -6
  1061. package/dist/calcite/p-93ce252a.entry.js +0 -6
  1062. package/dist/calcite/p-93fd0e15.entry.js +0 -6
  1063. package/dist/calcite/p-9644ce73.system.entry.js +0 -6
  1064. package/dist/calcite/p-9771d02c.system.entry.js +0 -6
  1065. package/dist/calcite/p-9ad62baa.system.js +0 -6
  1066. package/dist/calcite/p-9b342cc2.system.entry.js +0 -6
  1067. package/dist/calcite/p-9e433f85.entry.js +0 -6
  1068. package/dist/calcite/p-a0e5beec.system.entry.js +0 -6
  1069. package/dist/calcite/p-a4a80ad0.system.entry.js +0 -6
  1070. package/dist/calcite/p-a53f4584.entry.js +0 -6
  1071. package/dist/calcite/p-ab184638.system.js +0 -6
  1072. package/dist/calcite/p-afb01982.system.entry.js +0 -6
  1073. package/dist/calcite/p-b0749063.entry.js +0 -6
  1074. package/dist/calcite/p-b13fc832.system.js +0 -6
  1075. package/dist/calcite/p-b154a711.system.entry.js +0 -6
  1076. package/dist/calcite/p-b19c45da.system.entry.js +0 -6
  1077. package/dist/calcite/p-b45030e3.system.js +0 -6
  1078. package/dist/calcite/p-b723b411.system.js +0 -6
  1079. package/dist/calcite/p-b7b68db9.system.entry.js +0 -6
  1080. package/dist/calcite/p-ba97422d.system.entry.js +0 -6
  1081. package/dist/calcite/p-bb928b37.system.entry.js +0 -6
  1082. package/dist/calcite/p-bed458d9.system.js +0 -6
  1083. package/dist/calcite/p-bef6e5cc.system.entry.js +0 -6
  1084. package/dist/calcite/p-bf6a1418.system.js +0 -6
  1085. package/dist/calcite/p-bf992e7a.entry.js +0 -6
  1086. package/dist/calcite/p-c1ea949b.entry.js +0 -6
  1087. package/dist/calcite/p-c2044303.system.entry.js +0 -6
  1088. package/dist/calcite/p-c2ab7bb3.entry.js +0 -6
  1089. package/dist/calcite/p-c2afef79.entry.js +0 -6
  1090. package/dist/calcite/p-c58167a4.entry.js +0 -6
  1091. package/dist/calcite/p-c586e438.system.entry.js +0 -6
  1092. package/dist/calcite/p-c6747d09.system.entry.js +0 -6
  1093. package/dist/calcite/p-c84e0441.entry.js +0 -6
  1094. package/dist/calcite/p-c8e901fa.system.entry.js +0 -6
  1095. package/dist/calcite/p-c8ed9108.system.js +0 -6
  1096. package/dist/calcite/p-c907abab.entry.js +0 -6
  1097. package/dist/calcite/p-c9351ade.system.entry.js +0 -6
  1098. package/dist/calcite/p-c9a7c2c2.system.entry.js +0 -6
  1099. package/dist/calcite/p-ce7ed50c.entry.js +0 -6
  1100. package/dist/calcite/p-d1dda926.system.entry.js +0 -6
  1101. package/dist/calcite/p-d2357828.system.js +0 -6
  1102. package/dist/calcite/p-d2f50dc3.entry.js +0 -6
  1103. package/dist/calcite/p-d7972096.entry.js +0 -6
  1104. package/dist/calcite/p-d8309ad2.entry.js +0 -6
  1105. package/dist/calcite/p-da51f48c.system.js +0 -6
  1106. package/dist/calcite/p-e0c6fe94.entry.js +0 -6
  1107. package/dist/calcite/p-e1c06b29.system.js +0 -6
  1108. package/dist/calcite/p-e3709f3d.system.entry.js +0 -6
  1109. package/dist/calcite/p-e3e7945b.entry.js +0 -6
  1110. package/dist/calcite/p-e5b27fdb.system.entry.js +0 -6
  1111. package/dist/calcite/p-e66cb253.entry.js +0 -6
  1112. package/dist/calcite/p-eafab2ea.system.entry.js +0 -6
  1113. package/dist/calcite/p-eb07d147.system.entry.js +0 -6
  1114. package/dist/calcite/p-ec392994.system.entry.js +0 -6
  1115. package/dist/calcite/p-eca10afe.entry.js +0 -6
  1116. package/dist/calcite/p-ed27f58a.system.entry.js +0 -6
  1117. package/dist/calcite/p-eda06163.entry.js +0 -6
  1118. package/dist/calcite/p-f1bc4c1d.system.entry.js +0 -6
  1119. package/dist/calcite/p-f2da8856.entry.js +0 -6
  1120. package/dist/calcite/p-f4371c35.entry.js +0 -6
  1121. package/dist/calcite/p-f43a332b.system.entry.js +0 -6
  1122. package/dist/calcite/p-f5c1ecd3.entry.js +0 -6
  1123. package/dist/calcite/p-f5c909b7.entry.js +0 -6
  1124. package/dist/calcite/p-f7865770.system.entry.js +0 -6
  1125. package/dist/calcite/p-f814cb24.entry.js +0 -6
  1126. package/dist/calcite/p-f8697a29.system.entry.js +0 -6
  1127. package/dist/calcite/p-f9723480.entry.js +0 -6
  1128. package/dist/calcite/p-fb075d49.system.entry.js +0 -6
  1129. package/dist/calcite/p-fb93c365.entry.js +0 -6
  1130. package/dist/cjs/globalAttributes-39b0e7d7.js +0 -335
  1131. package/dist/cjs/observers-03ac940c.js +0 -27
  1132. package/dist/components/globalAttributes.js +0 -324
  1133. package/dist/custom-elements/index.d.ts +0 -597
  1134. package/dist/custom-elements/index.js +0 -28879
  1135. package/dist/esm/globalAttributes-6affbda6.js +0 -324
  1136. package/dist/esm/observers-5010a9dd.js +0 -25
  1137. package/dist/esm-es5/ExpandToggle-b94e1fe2.js +0 -6
  1138. package/dist/esm-es5/Heading-9398c9e6.js +0 -6
  1139. package/dist/esm-es5/app-globals-1f65a164.js +0 -6
  1140. package/dist/esm-es5/array-3ac5d2ad.js +0 -6
  1141. package/dist/esm-es5/calcite-accordion_2.entry.js +0 -6
  1142. package/dist/esm-es5/calcite-action-bar.entry.js +0 -6
  1143. package/dist/esm-es5/calcite-action-group.entry.js +0 -6
  1144. package/dist/esm-es5/calcite-action-menu.entry.js +0 -6
  1145. package/dist/esm-es5/calcite-action-pad.entry.js +0 -6
  1146. package/dist/esm-es5/calcite-action.entry.js +0 -6
  1147. package/dist/esm-es5/calcite-alert.entry.js +0 -6
  1148. package/dist/esm-es5/calcite-avatar.entry.js +0 -6
  1149. package/dist/esm-es5/calcite-block_2.entry.js +0 -6
  1150. package/dist/esm-es5/calcite-button.entry.js +0 -6
  1151. package/dist/esm-es5/calcite-card.entry.js +0 -6
  1152. package/dist/esm-es5/calcite-checkbox.entry.js +0 -6
  1153. package/dist/esm-es5/calcite-chip.entry.js +0 -6
  1154. package/dist/esm-es5/calcite-color-picker_3.entry.js +0 -6
  1155. package/dist/esm-es5/calcite-combobox_3.entry.js +0 -6
  1156. package/dist/esm-es5/calcite-date-picker_4.entry.js +0 -6
  1157. package/dist/esm-es5/calcite-dropdown_3.entry.js +0 -6
  1158. package/dist/esm-es5/calcite-fab.entry.js +0 -6
  1159. package/dist/esm-es5/calcite-filter.entry.js +0 -6
  1160. package/dist/esm-es5/calcite-flow-item.entry.js +0 -6
  1161. package/dist/esm-es5/calcite-flow.entry.js +0 -6
  1162. package/dist/esm-es5/calcite-graph_2.entry.js +0 -6
  1163. package/dist/esm-es5/calcite-handle.entry.js +0 -6
  1164. package/dist/esm-es5/calcite-icon.entry.js +0 -6
  1165. package/dist/esm-es5/calcite-inline-editable.entry.js +0 -6
  1166. package/dist/esm-es5/calcite-input-date-picker.entry.js +0 -6
  1167. package/dist/esm-es5/calcite-input-message.entry.js +0 -6
  1168. package/dist/esm-es5/calcite-input-number.entry.js +0 -6
  1169. package/dist/esm-es5/calcite-input-text.entry.js +0 -6
  1170. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +0 -6
  1171. package/dist/esm-es5/calcite-input.entry.js +0 -6
  1172. package/dist/esm-es5/calcite-label.entry.js +0 -6
  1173. package/dist/esm-es5/calcite-link.entry.js +0 -6
  1174. package/dist/esm-es5/calcite-list_3.entry.js +0 -6
  1175. package/dist/esm-es5/calcite-loader.entry.js +0 -6
  1176. package/dist/esm-es5/calcite-modal.entry.js +0 -6
  1177. package/dist/esm-es5/calcite-notice.entry.js +0 -6
  1178. package/dist/esm-es5/calcite-option_3.entry.js +0 -6
  1179. package/dist/esm-es5/calcite-pagination.entry.js +0 -6
  1180. package/dist/esm-es5/calcite-panel.entry.js +0 -6
  1181. package/dist/esm-es5/calcite-pick-list_3.entry.js +0 -6
  1182. package/dist/esm-es5/calcite-popover_2.entry.js +0 -6
  1183. package/dist/esm-es5/calcite-progress.entry.js +0 -6
  1184. package/dist/esm-es5/calcite-radio-button-group.entry.js +0 -6
  1185. package/dist/esm-es5/calcite-radio-button.entry.js +0 -6
  1186. package/dist/esm-es5/calcite-radio-group_2.entry.js +0 -6
  1187. package/dist/esm-es5/calcite-rating.entry.js +0 -6
  1188. package/dist/esm-es5/calcite-scrim.entry.js +0 -6
  1189. package/dist/esm-es5/calcite-shell_3.entry.js +0 -6
  1190. package/dist/esm-es5/calcite-sortable-list.entry.js +0 -6
  1191. package/dist/esm-es5/calcite-split-button.entry.js +0 -6
  1192. package/dist/esm-es5/calcite-stepper_2.entry.js +0 -6
  1193. package/dist/esm-es5/calcite-switch.entry.js +0 -6
  1194. package/dist/esm-es5/calcite-tab_4.entry.js +0 -6
  1195. package/dist/esm-es5/calcite-tile-select_2.entry.js +0 -6
  1196. package/dist/esm-es5/calcite-tile.entry.js +0 -6
  1197. package/dist/esm-es5/calcite-tip_3.entry.js +0 -6
  1198. package/dist/esm-es5/calcite-tooltip_2.entry.js +0 -6
  1199. package/dist/esm-es5/calcite-tree_2.entry.js +0 -6
  1200. package/dist/esm-es5/calcite-value-list_2.entry.js +0 -6
  1201. package/dist/esm-es5/calcite.js +0 -6
  1202. package/dist/esm-es5/conditionalSlot-5b35c2f6.js +0 -6
  1203. package/dist/esm-es5/debounce-3b1693a8.js +0 -6
  1204. package/dist/esm-es5/dom-4436bd07.js +0 -6
  1205. package/dist/esm-es5/filter-8af4eb80.js +0 -6
  1206. package/dist/esm-es5/floating-ui-fcf59cab.js +0 -6
  1207. package/dist/esm-es5/form-c902fafa.js +0 -6
  1208. package/dist/esm-es5/globalAttributes-6affbda6.js +0 -6
  1209. package/dist/esm-es5/guid-cd505852.js +0 -6
  1210. package/dist/esm-es5/index-61da5fbc.js +0 -7
  1211. package/dist/esm-es5/index.js +0 -5
  1212. package/dist/esm-es5/interactive-6cafa58c.js +0 -6
  1213. package/dist/esm-es5/interfaces-401a4071.js +0 -6
  1214. package/dist/esm-es5/key-d6e66ea5.js +0 -6
  1215. package/dist/esm-es5/label-6c6aade5.js +0 -6
  1216. package/dist/esm-es5/loader.js +0 -6
  1217. package/dist/esm-es5/math-35a0e454.js +0 -6
  1218. package/dist/esm-es5/observers-5010a9dd.js +0 -6
  1219. package/dist/esm-es5/openCloseComponent-16d8c6cb.js +0 -6
  1220. package/dist/esm-es5/resources-1e0c6832.js +0 -6
  1221. package/dist/esm-es5/resources-54732430.js +0 -6
  1222. package/dist/esm-es5/resources-54c26d1b.js +0 -6
  1223. package/dist/esm-es5/resources-6e9455eb.js +0 -6
  1224. package/dist/esm-es5/resources-cd0c5121.js +0 -6
  1225. package/dist/esm-es5/resources-ce568df4.js +0 -6
  1226. package/dist/esm-es5/sortable.esm-dcbb5a29.js +0 -12
  1227. package/dist/esm-es5/utils-ad1cc5e3.js +0 -6
@@ -1,324 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- import { n as numberKeys } from './key-d6e66ea5.js';
7
- import { c as createObserver } from './observers-5010a9dd.js';
8
-
9
- // regex for number sanitization
10
- const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
11
- const decimalOnlyAtEndOfString = /(?!^\.)\.$/;
12
- const allHyphensExceptTheStart = /(?!^-)-/g;
13
- const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
14
- // adopted from https://stackoverflow.com/a/66939244
15
- class BigDecimal {
16
- constructor(input) {
17
- if (input instanceof BigDecimal) {
18
- return input;
19
- }
20
- const [integers, decimals] = String(input).split(".").concat("");
21
- this.value =
22
- BigInt(integers + decimals.padEnd(BigDecimal.DECIMALS, "0").slice(0, BigDecimal.DECIMALS)) +
23
- BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
24
- this.isNegative = input.charAt(0) === "-";
25
- }
26
- static _divRound(dividend, divisor) {
27
- return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
28
- }
29
- static fromBigInt(bigint) {
30
- return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
31
- }
32
- toString() {
33
- const s = this.value
34
- .toString()
35
- .replace(new RegExp("-", "g"), "")
36
- .padStart(BigDecimal.DECIMALS + 1, "0");
37
- const i = s.slice(0, -BigDecimal.DECIMALS);
38
- const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
39
- const value = i.concat(d.length ? "." + d : "");
40
- return (this.isNegative ? "-" : "").concat(value);
41
- }
42
- formatToParts(locale, numberingSystem) {
43
- const formatter = createLocaleNumberFormatter(locale, numberingSystem);
44
- const s = this.value
45
- .toString()
46
- .replace(new RegExp("-", "g"), "")
47
- .padStart(BigDecimal.DECIMALS + 1, "0");
48
- const i = s.slice(0, -BigDecimal.DECIMALS);
49
- const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
50
- const parts = formatter.formatToParts(BigInt(i));
51
- this.isNegative && parts.unshift({ type: "minusSign", value: getMinusSign(locale) });
52
- if (d.length) {
53
- parts.push({ type: "decimal", value: getDecimalSeparator(locale) });
54
- d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
55
- }
56
- return parts;
57
- }
58
- add(num) {
59
- return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
60
- }
61
- subtract(num) {
62
- return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
63
- }
64
- multiply(num) {
65
- return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
66
- }
67
- divide(num) {
68
- return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
69
- }
70
- }
71
- // Configuration: constants
72
- BigDecimal.DECIMALS = 100; // number of decimals on all instances
73
- BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
74
- BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
75
- function isValidNumber(numberString) {
76
- return !(!numberString || isNaN(Number(numberString)));
77
- }
78
- function parseNumberString(numberString) {
79
- if (!numberString || !stringContainsNumbers(numberString)) {
80
- return "";
81
- }
82
- return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
83
- let containsDecimal = false;
84
- const result = nonExpoNumString
85
- .split("")
86
- .filter((value, i) => {
87
- if (value.match(/\./g) && !containsDecimal) {
88
- containsDecimal = true;
89
- return true;
90
- }
91
- if (value.match(/\-/g) && i === 0) {
92
- return true;
93
- }
94
- return numberKeys.includes(value);
95
- })
96
- .reduce((string, part) => string + part);
97
- return isValidNumber(result) ? new BigDecimal(result).toString() : "";
98
- });
99
- }
100
- function sanitizeDecimalString(decimalString) {
101
- return decimalString.replace(decimalOnlyAtEndOfString, "");
102
- }
103
- function sanitizeNegativeString(negativeString) {
104
- return negativeString.replace(allHyphensExceptTheStart, "");
105
- }
106
- function sanitizeLeadingZeroString(zeroString) {
107
- return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
108
- }
109
- function sanitizeNumberString(numberString) {
110
- return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
111
- const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
112
- return isValidNumber(sanitizedValue)
113
- ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
114
- ? sanitizedValue
115
- : new BigDecimal(sanitizedValue).toString()
116
- : nonExpoNumString;
117
- });
118
- }
119
- function sanitizeExponentialNumberString(numberString, func) {
120
- if (!numberString) {
121
- return numberString;
122
- }
123
- const firstE = numberString.toLowerCase().indexOf("e") + 1;
124
- return numberString
125
- .replace(/[eE]*$/g, "")
126
- .substring(0, firstE)
127
- .concat(numberString.slice(firstE).replace(/[eE]/g, ""))
128
- .split(/[eE]/)
129
- .map((section, i) => (i === 1 ? func(section.replace(/\./g, "")) : func(section)))
130
- .join("e")
131
- .replace(/^e/, "1e");
132
- }
133
- function stringContainsNumbers(string) {
134
- return numberKeys.some((number) => string.includes(number));
135
- }
136
-
137
- const locales = [
138
- "ar",
139
- "bg",
140
- "bs",
141
- "ca",
142
- "cs",
143
- "da",
144
- "de",
145
- "de-CH",
146
- "el",
147
- "en",
148
- "en-AU",
149
- "en-CA",
150
- "en-GB",
151
- "es",
152
- "es-MX",
153
- "et",
154
- "fi",
155
- "fr",
156
- "fr-CH",
157
- "he",
158
- "hi",
159
- "hr",
160
- "hu",
161
- "id",
162
- "it",
163
- "it-CH",
164
- "ja",
165
- "ko",
166
- "lt",
167
- "lv",
168
- "mk",
169
- "nb",
170
- "nl",
171
- "pl",
172
- "pt",
173
- "pt-PT",
174
- "ro",
175
- "ru",
176
- "sk",
177
- "sl",
178
- "sr",
179
- "sv",
180
- "th",
181
- "tr",
182
- "uk",
183
- "vi",
184
- "zh-CN",
185
- "zh-HK",
186
- "zh-TW"
187
- ];
188
- const allDecimalsExceptLast = new RegExp(`[.](?=.*[.])`, "g");
189
- const everythingExceptNumbersDecimalsAndMinusSigns = new RegExp("[^0-9-.]", "g");
190
- const defaultGroupSeparator = new RegExp(",", "g");
191
- const browserNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;
192
- const defaultNumberingSystem = browserNumberingSystem === "arab" ? "latn" : browserNumberingSystem;
193
- function createLocaleNumberFormatter(locale, numberingSystem = defaultNumberingSystem) {
194
- return new Intl.NumberFormat(locale, {
195
- minimumFractionDigits: 0,
196
- maximumFractionDigits: 20,
197
- numberingSystem
198
- });
199
- }
200
- function delocalizeNumberString(numberString, locale) {
201
- return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
202
- const delocalizedNumberString = nonExpoNumString
203
- .replace(getMinusSign(locale), "-")
204
- .replace(getGroupSeparator(locale), "")
205
- .replace(getDecimalSeparator(locale), ".")
206
- .replace(allDecimalsExceptLast, "")
207
- .replace(everythingExceptNumbersDecimalsAndMinusSigns, "");
208
- return isValidNumber(delocalizedNumberString) ? delocalizedNumberString : nonExpoNumString;
209
- });
210
- }
211
- function getGroupSeparator(locale) {
212
- const formatter = createLocaleNumberFormatter(locale);
213
- const parts = formatter.formatToParts(1234567);
214
- const value = parts.find((part) => part.type === "group").value;
215
- // change whitespace group characters that don't render correctly
216
- return value.trim().length === 0 ? " " : value;
217
- }
218
- function getDecimalSeparator(locale) {
219
- const formatter = createLocaleNumberFormatter(locale);
220
- const parts = formatter.formatToParts(1.1);
221
- return parts.find((part) => part.type === "decimal").value;
222
- }
223
- function getMinusSign(locale) {
224
- const formatter = createLocaleNumberFormatter(locale);
225
- const parts = formatter.formatToParts(-9);
226
- return parts.find((part) => part.type === "minusSign").value;
227
- }
228
- function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
229
- return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
230
- if (nonExpoNumString) {
231
- const sanitizedNumberString = sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, ""));
232
- if (isValidNumber(sanitizedNumberString)) {
233
- const parts = new BigDecimal(sanitizedNumberString).formatToParts(locale, numberingSystem);
234
- const localizedNumberString = parts
235
- .map(({ type, value }) => {
236
- switch (type) {
237
- case "group":
238
- return displayGroupSeparator ? getGroupSeparator(locale) : "";
239
- case "decimal":
240
- return getDecimalSeparator(locale);
241
- case "minusSign":
242
- return getMinusSign(locale);
243
- default:
244
- return value;
245
- }
246
- })
247
- .reduce((string, part) => string + part);
248
- return localizedNumberString;
249
- }
250
- }
251
- return nonExpoNumString;
252
- });
253
- }
254
- /**
255
- * This util helps resolve a component's locale.
256
- * It will also fall back on the deprecated `locale` if a component implemented this previously.
257
- *
258
- * @param component
259
- */
260
- function getLocale(component) {
261
- return component.el.lang || component.locale || document.documentElement.lang || "en";
262
- }
263
-
264
- const allowedGlobalAttributes = ["lang"];
265
- const elementToComponentAndObserverOptionsMap = new Map();
266
- let mutationObserver;
267
- function updateGlobalAttributes(component, attributeFilter) {
268
- const { el } = component;
269
- const updatedAttributes = {};
270
- attributeFilter
271
- .filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
272
- .forEach((attr) => {
273
- const value = el.getAttribute(attr);
274
- if (value !== null) {
275
- updatedAttributes[attr] = value;
276
- }
277
- });
278
- component.globalAttributes = updatedAttributes;
279
- }
280
- function processMutations(mutations) {
281
- mutations.forEach(({ target }) => {
282
- const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
283
- updateGlobalAttributes(component, options.attributeFilter);
284
- });
285
- }
286
- /**
287
- * Helper to set up listening for changes to global attributes.
288
- *
289
- * render(): VNode {
290
- * const lang = this.inheritedAttributes['lang'] ?? 'en';
291
- * return <div>My lang is {lang}</div>;
292
- * }
293
- *
294
- * @param component
295
- * @param attributeFilter
296
- */
297
- function watchGlobalAttributes(component, attributeFilter) {
298
- const { el } = component;
299
- const observerOptions = { attributeFilter };
300
- elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
301
- updateGlobalAttributes(component, attributeFilter);
302
- if (!mutationObserver) {
303
- mutationObserver = createObserver("mutation", processMutations);
304
- }
305
- mutationObserver.observe(el, observerOptions);
306
- }
307
- /**
308
- * Helper remove listening for changes to inherited attributes.
309
- *
310
- * @param component
311
- */
312
- function unwatchGlobalAttributes(component) {
313
- elementToComponentAndObserverOptionsMap.delete(component.el);
314
- // we explicitly process queued mutations and disconnect and reconnect
315
- // the observer until MutationObserver gets an `unobserve` method
316
- // see https://github.com/whatwg/dom/issues/126
317
- processMutations(mutationObserver.takeRecords());
318
- mutationObserver.disconnect();
319
- for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
320
- mutationObserver.observe(element, observerOptions);
321
- }
322
- }
323
-
324
- export { getLocale as a, locales as b, delocalizeNumberString as d, getDecimalSeparator as g, isValidNumber as i, localizeNumberString as l, parseNumberString as p, sanitizeNumberString as s, unwatchGlobalAttributes as u, watchGlobalAttributes as w };
@@ -1,25 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- /**
7
- * This utility ensures observers are created only for browser contexts.
8
- *
9
- * @param type - the type of observer to create
10
- * @param callback - the observer callback
11
- * @param options - the observer options
12
- */
13
- function createObserver(type, callback, options) {
14
- const Observer = getObserver(type);
15
- return new Observer(callback, options) ;
16
- }
17
- function getObserver(type) {
18
- return (type === "intersection"
19
- ? window.IntersectionObserver
20
- : type === "mutation"
21
- ? window.MutationObserver
22
- : window.ResizeObserver);
23
- }
24
-
25
- export { createObserver as c };
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- import{f as forceUpdate,h}from"./index-61da5fbc.js";import{a as getElementDir}from"./dom-4436bd07.js";import{S as SLOTS}from"./resources-1e0c6832.js";import{S as SLOTS$1}from"./resources-54732430.js";var overflowActionsDebounceInMs=150;var groupBufferPx=2;var getAverage=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length};var geActionDimensions=function(e){var t=e===null||e===void 0?void 0:e.length;return{actionWidth:t?getAverage(e.map((function(e){return e.clientWidth||0}))):0,actionHeight:t?getAverage(e.map((function(e){return e.clientHeight||0}))):0}};var getMaxActionCount=function(e){var t=e.width,n=e.actionWidth,o=e.layout,r=e.height,i=e.actionHeight,a=e.groupCount;var c=o==="horizontal"?t:r;var l=o==="horizontal"?n:i;return Math.floor((c-a*groupBufferPx)/l)};var getOverflowCount=function(e){var t=e.layout,n=e.actionCount,o=e.actionWidth,r=e.width,i=e.actionHeight,a=e.height,c=e.groupCount;return Math.max(n-getMaxActionCount({width:r,actionWidth:o,layout:t,height:a,actionHeight:i,groupCount:c}),0)};var queryActions=function(e){return Array.from(e.querySelectorAll("calcite-action")).filter((function(e){return e.closest("calcite-action-menu")?e.slot===SLOTS.trigger:true}))};var overflowActions=function(e){var t=e.actionGroups,n=e.expanded,o=e.overflowCount;var r=o;t.reverse().forEach((function(e){var t=0;var o=queryActions(e).reverse();o.forEach((function(e){if(e.slot===SLOTS$1.menuActions){e.removeAttribute("slot");e.textEnabled=n}}));if(r>0){o.some((function(e){var n=o.filter((function(e){return!e.slot}));if(n.length>1&&o.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",SLOTS$1.menuActions);t++;if(t>1){r--}}return r<1}))}forceUpdate(e)}))};var ICONS={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function getCalcitePosition(e,t){var n;return e||((n=t.closest("calcite-shell-panel"))===null||n===void 0?void 0:n.position)||"start"}function toggleChildActionText(e){var t=e.parent,n=e.expanded;queryActions(t).filter((function(e){return e.slot!==SLOTS$1.menuActions})).forEach((function(e){return e.textEnabled=n}));t.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((function(e){return e.expanded=n}))}var setTooltipReference=function(e){var t=e.tooltip,n=e.referenceElement,o=e.expanded,r=e.ref;if(t){t.referenceElement=!o&&n?n:null}if(r){r(n)}return n};var ExpandToggle=function(e){var t=e.expanded,n=e.intlExpand,o=e.intlCollapse,r=e.toggle,i=e.el,a=e.position,c=e.tooltip,l=e.ref,u=e.scale;var s=getElementDir(i)==="rtl";var f=t?o:n;var v=[ICONS.chevronsLeft,ICONS.chevronsRight];if(s){v.reverse()}var g=getCalcitePosition(a,i)==="end";var d=g?v[1]:v[0];var p=g?v[0]:v[1];var m=h("calcite-action",{icon:t?d:p,onClick:r,ref:function(e){return setTooltipReference({tooltip:c,referenceElement:e,expanded:t,ref:l})},scale:u,text:f,textEnabled:t});return m};export{ExpandToggle as E,overflowActions as a,getOverflowCount as b,geActionDimensions as g,overflowActionsDebounceInMs as o,queryActions as q,toggleChildActionText as t};
@@ -1,6 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var a,e=1,t=arguments.length;e<t;e++){a=arguments[e];for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i))n[i]=a[i]}return n};return __assign.apply(this,arguments)};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.596
6
- */import{h}from"./index-61da5fbc.js";function constrainHeadingLevel(n){return Math.min(Math.max(Math.ceil(n),1),6)}var Heading=function(n,a){var e="h".concat(n.level);delete n.level;return h(e,__assign({},n),a)};export{Heading as H,constrainHeadingLevel as c};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- import{d as darkTheme,a as autoTheme}from"./resources-ce568df4.js";function initThemeChangeEvent(){var e=document.body.classList;var t=window.matchMedia("(prefers-color-scheme: dark)").matches;var n=function(){return e.contains(darkTheme)||e.contains(autoTheme)&&t?"dark":"light"};var a=function(e){return document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:true,detail:{theme:e}}))};var o=function(e){r!==e&&a(e);r=e};var r=n();a(r);window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(function(e){return o(e.matches?"dark":"light")}));new MutationObserver((function(){return o(n())})).observe(document.body,{attributes:true,attributeFilter:["class"]})}function appGlobalScript(){var e=typeof window!=="undefined"&&typeof location!=="undefined"&&typeof document!=="undefined"&&window.location===location&&window.document===document;if(e){if(document.readyState==="interactive"){initThemeChangeEvent()}else{document.addEventListener("DOMContentLoaded",(function(){return initThemeChangeEvent()}),{once:true})}}}var globalScripts=appGlobalScript;export{globalScripts as g};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- function getRoundRobinIndex(n,e){return(n+e)%e}export{getRoundRobinIndex as g};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-61da5fbc.js";import{d as getElementProp,g as getSlotted,a as getElementDir,t as toAriaBoolean}from"./dom-4436bd07.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-5b35c2f6.js";import{C as CSS_UTILITY}from"./resources-ce568df4.js";import"./guid-cd505852.js";import"./observers-5010a9dd.js";var accordionCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";var Accordion=function(){function t(t){registerInstance(this,t);this.calciteInternalAccordionChange=createEvent(this,"calciteInternalAccordionChange",6);this.appearance="solid";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=function(t){return t.sort((function(t,i){return t.position-i.position})).map((function(t){return t.item}))}}t.prototype.componentDidLoad=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){var t=this.appearance==="transparent";var i=this.appearance==="minimal";return h("div",{class:{"accordion--transparent":t,"accordion--minimal":i,accordion:!t&&!i}},h("slot",null))};t.prototype.calciteInternalAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var n=i.key;var a=t.target;var o=this.itemIndex(a)===0;var c=this.itemIndex(a)===this.items.length-1;switch(n){case"ArrowDown":if(c){this.focusFirstItem()}else{this.focusNextItem(a)}break;case"ArrowUp":if(o){this.focusLastItem()}else{this.focusPrevItem(a)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}t.stopPropagation()};t.prototype.registerCalciteAccordionItem=function(t){var i={item:t.target,parent:t.detail.parent,position:t.detail.position};if(this.el===i.parent){this.items.push(i)}t.stopPropagation()};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem});t.stopPropagation()};t.prototype.focusFirstItem=function(){var t=this.items[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var i=this.itemIndex(t);var e=this.items[i+1]||this.items[0];this.focusElement(e)};t.prototype.focusPrevItem=function(t){var i=this.itemIndex(t);var e=this.items[i-1]||this.items[this.items.length-1];this.focusElement(e)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.focusElement=function(t){var i=t;i===null||i===void 0?void 0:i.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Accordion.style=accordionCss;var SLOTS={actionsStart:"actions-start",actionsEnd:"actions-end"};var CSS={icon:"icon",header:"header",headerContent:"header-content",actionsStart:"actions-start",actionsEnd:"actions-end",headerText:"header-text",heading:"heading",description:"description",expandIcon:"expand-icon",content:"content",iconStart:"icon--start",iconEnd:"icon--end",headerContainer:"header-container"};var accordionItemCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-margin-end:var(--calcite-accordion-icon-margin);margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-margin-end:var(--calcite-accordion-icon-margin);margin-inline-end:var(--calcite-accordion-icon-margin);-webkit-margin-start:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{-webkit-border-after:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2));border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .content{display:none;-webkit-padding-before:0px;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-block:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .heading,:host .description{display:-ms-flexbox;display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{-webkit-margin-before:0.25rem;margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{-ms-flex-positive:1;flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (forced-colors: active){:host([expanded]) .header{-webkit-border-after:none;border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";var AccordionItem=function(){function t(t){var i=this;registerInstance(this,t);this.calciteInternalAccordionItemKeyEvent=createEvent(this,"calciteInternalAccordionItemKeyEvent",6);this.calciteInternalAccordionItemSelect=createEvent(this,"calciteInternalAccordionItemSelect",6);this.calciteInternalAccordionItemClose=createEvent(this,"calciteInternalAccordionItemClose",6);this.calciteInternalAccordionItemRegister=createEvent(this,"calciteInternalAccordionItemRegister",6);this.active=false;this.expanded=false;this.iconPosition="end";this.itemHeaderClickHandler=function(){return i.emitRequestedItem()}}t.prototype.activeHandler=function(t){this.expanded=t};t.prototype.expandedHandler=function(t){this.active=t};t.prototype.iconHandler=function(t){this.iconStart=t};t.prototype.iconStartHandler=function(t){this.icon=t};t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=getElementProp(this.el,"selection-mode","multi");this.iconType=getElementProp(this.el,"icon-type","chevron");this.iconPosition=getElementProp(this.el,"icon-position",this.iconPosition);var t=this.active||this.expanded;if(t){this.activeHandler(t);this.expandedHandler(t)}if(this.iconStart){this.icon=this.iconStart}else if(this.icon){this.iconStart=this.icon}connectConditionalSlotComponent(this)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.renderActionsStart=function(){var t=this.el;return getSlotted(t,SLOTS.actionsStart)?h("div",{class:CSS.actionsStart},h("slot",{name:SLOTS.actionsStart})):null};t.prototype.renderActionsEnd=function(){var t=this.el;return getSlotted(t,SLOTS.actionsEnd)?h("div",{class:CSS.actionsEnd},h("slot",{name:SLOTS.actionsEnd})):null};t.prototype.render=function(){var t,i;var e=getElementDir(this.el);var n=this.iconStart?h("calcite-icon",{class:CSS.iconStart,icon:this.iconStart,key:"icon-start",scale:"s"}):null;var a=this.iconEnd?h("calcite-icon",{class:CSS.iconEnd,icon:this.iconEnd,key:"icon-end",scale:"s"}):null;var o=this.description||this.itemSubtitle;return h(Host,null,h("div",{class:(t={},t["icon-position--".concat(this.iconPosition)]=true,t["icon-type--".concat(this.iconType)]=true,t)},h("div",{class:(i={},i[CSS.header]=true,i[CSS_UTILITY.rtl]=e==="rtl",i)},this.renderActionsStart(),h("div",{"aria-expanded":toAriaBoolean(this.active||this.expanded),class:CSS.headerContent,onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},h("div",{class:CSS.headerContainer},n,h("div",{class:CSS.headerText},h("span",{class:CSS.heading},this.heading||this.itemTitle),o?h("span",{class:CSS.description},o):null),a),h("calcite-icon",{class:CSS.expandIcon,icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.expanded||this.active?"minus":"plus",scale:"s"})),this.renderActionsEnd()),h("div",{class:CSS.content},h("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(t.key){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteInternalAccordionItemKeyEvent.emit({parent:this.parent,item:t});t.preventDefault();break}}};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;if(this.el.parentNode!==this.requestedAccordionItem.parentNode){return}this.determineActiveItem();t.stopPropagation()};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.expanded=!this.expanded}break;case"single":this.expanded=this.el===this.requestedAccordionItem?!this.expanded:false;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],expanded:["expandedHandler"],icon:["iconHandler"],iconStart:["iconStartHandler"]}},enumerable:false,configurable:true});return t}();AccordionItem.style=accordionItemCss;export{Accordion as calcite_accordion,AccordionItem as calcite_accordion_item};
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function r(t){try{c(o.next(t))}catch(t){a(t)}}function l(t){try{c(o["throw"](t))}catch(t){a(t)}}function c(t){t.done?n(t.value):i(t.value).then(r,l)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return c([t,e])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(a=r[0]&2?i["return"]:r[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;if(i=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(t){r=[6,t];i=0}finally{o=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.596
6
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-61da5fbc.js";import{t as toggleChildActionText,o as overflowActionsDebounceInMs,q as queryActions,g as geActionDimensions,a as overflowActions,E as ExpandToggle,b as getOverflowCount}from"./ExpandToggle-b94e1fe2.js";import{f as focusElement,g as getSlotted}from"./dom-4436bd07.js";import{c as createObserver}from"./observers-5010a9dd.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-5b35c2f6.js";import{d as debounce}from"./debounce-3b1693a8.js";import"./resources-1e0c6832.js";import"./resources-54732430.js";import"./resources-ce568df4.js";import"./guid-cd505852.js";var CSS={actionGroupBottom:"action-group--bottom"};var SLOTS={bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"};var TEXT={expand:"Expand",collapse:"Collapse"};var actionBarCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{-webkit-box-sizing:border-box;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:stretch;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-width:0px;border-inline-end-width:1px;border-style:solid}::slotted(calcite-action-group:last-child){border-block-end-width:0px;border-inline-end-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;-webkit-padding-after:0px;padding-block-end:0px;-webkit-padding-end:0px;padding-inline-end:0px}";var ActionBar=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionBarToggle=createEvent(this,"calciteActionBarToggle",6);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.overflowActionsDisabled=false;this.mutationObserver=createObserver("mutation",(function(){var t=e,n=t.el,o=t.expanded;toggleChildActionText({parent:n,expanded:o});e.conditionallyOverflowActions()}));this.resizeObserver=createObserver("resize",(function(t){return e.resizeHandlerEntries(t)}));this.actionMenuOpenChangeHandler=function(t){if(t.detail){var n=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!n.includes(t)){t.menuOpen=false}}))}};this.resizeHandlerEntries=function(t){t.forEach(e.resizeHandler)};this.resizeHandler=function(t){var n=t.contentRect,o=n.width,i=n.height;e.resize({width:o,height:i})};this.resize=debounce((function(t){var n=t.width,o=t.height;var i=e,a=i.el,r=i.expanded,l=i.expandDisabled,c=i.layout;if(c==="vertical"&&!o||c==="horizontal"&&!n){return}var s=queryActions(a);var d=l?s.length:s.length+1;var u=Array.from(a.querySelectorAll("calcite-action-group"));var p=getSlotted(a,SLOTS.bottomActions)||!l?u.length+1:u.length;var f=geActionDimensions(s),m=f.actionHeight,h=f.actionWidth;var b=getOverflowCount({layout:c,actionCount:d,actionHeight:m,actionWidth:h,height:o,width:n,groupCount:p});overflowActions({actionGroups:u,expanded:r,overflowCount:b})}),overflowActionsDebounceInMs);this.conditionallyOverflowActions=function(){if(!e.overflowActionsDisabled){e.overflowActions()}};this.toggleExpand=function(){e.expanded=!e.expanded;e.calciteActionBarToggle.emit()};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(){this.conditionallyOverflowActions()};t.prototype.expandedHandler=function(t){toggleChildActionText({parent:this.el,expanded:t});this.conditionallyOverflowActions()};t.prototype.overflowDisabledHandler=function(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)};t.prototype.componentDidLoad=function(){this.conditionallyOverflowActions()};t.prototype.connectedCallback=function(){var t,e;var n=this,o=n.el,i=n.expanded;toggleChildActionText({parent:o,expanded:i});(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(o,{childList:true,subtree:true});if(!this.overflowActionsDisabled){(e=this.resizeObserver)===null||e===void 0?void 0:e.observe(o)}this.conditionallyOverflowActions();connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();disconnectConditionalSlotComponent(this)};t.prototype.overflowActions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.resize({width:this.el.clientWidth,height:this.el.clientHeight});return[2]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:n.sent();return[2];case 2:(e=this.el)===null||e===void 0?void 0:e.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,n=t.expandDisabled,o=t.intlExpand,i=t.intlCollapse,a=t.el,r=t.position,l=t.toggleExpand,c=t.scale,s=t.layout;var d=getSlotted(a,SLOTS.expandTooltip);var u=o||TEXT.expand;var p=i||TEXT.collapse;var f=!n?h(ExpandToggle,{el:a,expanded:e,intlCollapse:p,intlExpand:u,position:r,ref:this.setExpandToggleRef,scale:c,toggle:l,tooltip:d}):null;return getSlotted(a,SLOTS.bottomActions)||f?h("calcite-action-group",{class:CSS.actionGroupBottom,layout:s,scale:c},h("slot",{name:SLOTS.bottomActions}),h("slot",{name:SLOTS.expandTooltip}),f):null};t.prototype.render=function(){return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("slot",null),this.renderBottomActionGroup())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}},enumerable:false,configurable:true});return t}();ActionBar.style=actionBarCss;export{ActionBar as calcite_action_bar};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.596
5
- */
6
- import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-61da5fbc.js";import{S as SLOTS,I as ICONS,T as TEXT}from"./resources-54732430.js";import{g as getSlotted}from"./dom-4436bd07.js";import{S as SLOTS$1}from"./resources-1e0c6832.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-5b35c2f6.js";import"./resources-ce568df4.js";import"./guid-cd505852.js";import"./observers-5010a9dd.js";var actionGroupCss='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{-webkit-box-sizing:border-box;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;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){-webkit-padding-before:0px;padding-block-start:0px}:host([layout=horizontal]){-ms-flex-direction:row;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)}';var ActionGroup=function(){function t(t){var n=this;registerInstance(this,t);this.expanded=false;this.layout="vertical";this.menuOpen=false;this.setMenuOpen=function(t){n.menuOpen=!!t.detail}}t.prototype.expandedHandler=function(){this.menuOpen=false};t.prototype.connectedCallback=function(){connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.renderTooltip=function(){var t=this.el;var n=getSlotted(t,SLOTS.menuTooltip);return n?h("slot",{name:SLOTS.menuTooltip,slot:SLOTS$1.tooltip}):null};t.prototype.renderMenu=function(){var t=this,n=t.el,a=t.expanded,e=t.intlMore,i=t.menuOpen,o=t.scale,r=t.layout;var c=getSlotted(n,SLOTS.menuActions);return c?h("calcite-action-menu",{expanded:a,flipPlacements:["left","right"],label:e||TEXT.more,onCalciteActionMenuOpenChange:this.setMenuOpen,open:i,placement:r==="horizontal"?"bottom-leading":"leading-start",scale:o},h("calcite-action",{icon:ICONS.menu,scale:o,slot:SLOTS$1.trigger,text:e||TEXT.more,textEnabled:a}),h("slot",{name:SLOTS.menuActions}),this.renderTooltip()):null};t.prototype.render=function(){return h(Fragment,null,h("slot",null),this.renderMenu())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();ActionGroup.style=actionGroupCss;export{ActionGroup as calcite_action_group};
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function r(t){try{c(i.next(t))}catch(t){o(t)}}function l(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):a(t.value).then(r,l)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return c([t,e])}}function c(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;a=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){n.label=r[1];break}if(r[0]===6&&n.label<o[1]){n.label=o[1];o=r;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(r);break}if(o[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(t){r=[6,t];a=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.596
6
- */import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-61da5fbc.js";import{C as CSS,I as ICONS,S as SLOTS}from"./resources-1e0c6832.js";import{t as toAriaBoolean,f as focusElement}from"./dom-4436bd07.js";import{g as getRoundRobinIndex}from"./array-3ac5d2ad.js";import{g as guid}from"./guid-cd505852.js";import{i as isActivationKey}from"./key-d6e66ea5.js";import"./resources-ce568df4.js";var actionMenuCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;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:-ms-flexbox;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";var SUPPORTED_BUTTON_NAV_KEYS=["ArrowUp","ArrowDown"];var SUPPORTED_MENU_NAV_KEYS=["ArrowUp","ArrowDown","End","Home"];var ActionMenu=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionMenuOpenChange=createEvent(this,"calciteActionMenuOpenChange",6);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.guid="calcite-action-menu-".concat(guid());this.menuId="".concat(this.guid,"-menu");this.menuButtonId="".concat(this.guid,"-menu-button");this.activeMenuItemIndex=-1;this.connectMenuButtonEl=function(){var t=e,n=t.menuButtonId,i=t.menuId,a=t.open,o=t.label;var r=e.slottedMenuButtonEl||e.defaultMenuButtonEl;if(e.menuButtonEl===r){return}e.disconnectMenuButtonEl();e.menuButtonEl=r;e.setTooltipReferenceElement();if(!r){return}r.active=a;r.setAttribute("aria-controls",i);r.setAttribute("aria-expanded",toAriaBoolean(a));r.setAttribute("aria-haspopup","true");if(!r.id){r.id=n}if(!r.label){r.label=o}if(!r.text){r.text=o}r.addEventListener("pointerdown",e.menuButtonClick);r.addEventListener("keydown",e.menuButtonKeyDown)};this.disconnectMenuButtonEl=function(){var t=e.menuButtonEl;if(!t){return}t.removeEventListener("pointerdown",e.menuButtonClick);t.removeEventListener("keydown",e.menuButtonKeyDown)};this.setMenuButtonEl=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-action")}));e.slottedMenuButtonEl=n[0];e.connectMenuButtonEl()};this.setDefaultMenuButtonEl=function(t){e.defaultMenuButtonEl=t;e.connectMenuButtonEl()};this.handleCalciteActionClick=function(){e.open=false;e.setFocus()};this.menuButtonClick=function(){e.toggleOpen()};this.updateTooltip=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-tooltip")}));e.tooltipEl=n[0];e.setTooltipReferenceElement()};this.setTooltipReferenceElement=function(){var t=e,n=t.tooltipEl,i=t.expanded,a=t.menuButtonEl,o=t.open;if(n){n.referenceElement=!i&&!o?a:null}};this.updateAction=function(t,n){var i=e,a=i.guid,o=i.activeMenuItemIndex;var r="".concat(a,"-action-").concat(n);t.tabIndex=-1;t.setAttribute("role","menuitem");if(!t.id){t.id=r}t.active=n===o};this.updateActions=function(t){t===null||t===void 0?void 0:t.forEach(e.updateAction)};this.handleDefaultSlotChange=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-action")}));e.actionElements=n};this.menuButtonKeyDown=function(t){var n=t.key;var i=e.actionElements;if(!i.length){return}if(isActivationKey(n)){t.preventDefault();e.toggleOpen();return}if(!e.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}t.preventDefault();e.toggleOpen(true);e.handleActionNavigation(n,i)};this.menuActionsContainerKeyDown=function(t){var n=t.key;var i=e,a=i.actionElements,o=i.activeMenuItemIndex;if(n==="Tab"){e.open=false;return}if(isActivationKey(n)){t.preventDefault();var r=a[o];r?r.click():e.toggleOpen(false);return}if(n==="Escape"){e.toggleOpen(false);t.preventDefault();return}if(!a.length){return}if(e.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){t.preventDefault()}e.handleActionNavigation(n,a)};this.handleActionNavigation=function(t,n){if(!e.open){return}var i=e.activeMenuItemIndex;if(t==="Home"){e.activeMenuItemIndex=0}if(t==="End"){e.activeMenuItemIndex=n.length-1}if(t==="ArrowUp"){e.activeMenuItemIndex=getRoundRobinIndex(Math.max(i-1,-1),n.length)}if(t==="ArrowDown"){e.activeMenuItemIndex=getRoundRobinIndex(i+1,n.length)}};this.toggleOpenEnd=function(){e.setFocus();e.el.removeEventListener("calcitePopoverOpen",e.toggleOpenEnd)};this.toggleOpen=function(t){if(t===void 0){t=!e.open}e.el.addEventListener("calcitePopoverOpen",e.toggleOpenEnd);e.open=t}}t.prototype.disconnectedCallback=function(){this.disconnectMenuButtonEl()};t.prototype.expandedHandler=function(){this.open=false;this.setTooltipReferenceElement()};t.prototype.openHandler=function(t){this.activeMenuItemIndex=this.open?0:-1;if(this.menuButtonEl){this.menuButtonEl.active=t}this.calciteActionMenuOpenChange.emit(t);this.setTooltipReferenceElement()};t.prototype.closeCalciteActionMenuOnClick=function(t){var e=t.composedPath();if(e.includes(this.el)){return}this.open=false};t.prototype.activeMenuItemIndexHandler=function(){this.updateActions(this.actionElements)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.menuButtonEl);return[2]}))}))};t.prototype.renderMenuButton=function(){var t=this,e=t.label,n=t.scale,i=t.expanded;var a=h("slot",{name:SLOTS.trigger,onSlotchange:this.setMenuButtonEl},h("calcite-action",{class:CSS.defaultTrigger,icon:ICONS.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:e,textEnabled:i}));return a};t.prototype.renderMenuItems=function(){var t=this,e=t.actionElements,n=t.activeMenuItemIndex,i=t.open,a=t.menuId,o=t.menuButtonEl,r=t.label,l=t.placement,c=t.overlayPositioning,s=t.flipPlacements;var u=e[n];var f=(u===null||u===void 0?void 0:u.id)||null;return h("calcite-popover",{disablePointer:true,flipPlacements:s,label:r,offsetDistance:0,open:i,overlayPositioning:c,placement:l,referenceElement:o},h("div",{"aria-activedescendant":f,"aria-labelledby":o===null||o===void 0?void 0:o.id,class:CSS.menu,id:a,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,role:"menu",tabIndex:-1},h("slot",{onSlotchange:this.handleDefaultSlotChange})))};t.prototype.render=function(){return h(Fragment,null,this.renderMenuButton(),this.renderMenuItems(),h("slot",{name:SLOTS.tooltip,onSlotchange:this.updateTooltip}))};t.prototype.isValidKey=function(t,e){return!!e.find((function(e){return e===t}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}},enumerable:false,configurable:true});return t}();ActionMenu.style=actionMenuCss;export{ActionMenu as calcite_action_menu};
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,n){function o(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function r(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?a(t.value):o(t.value).then(r,c)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(t){return function(e){return l([t,e])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=r[0]&2?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;if(o=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;o=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(r[0]===6&&a.label<i[1]){a.label=i[1];i=r;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(r);break}if(i[2])a.ops.pop();a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t];o=0}finally{n=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.596
6
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-61da5fbc.js";import{t as toggleChildActionText,E as ExpandToggle}from"./ExpandToggle-b94e1fe2.js";import{f as focusElement,g as getSlotted}from"./dom-4436bd07.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-5b35c2f6.js";import"./resources-1e0c6832.js";import"./resources-54732430.js";import"./resources-ce568df4.js";import"./guid-cd505852.js";import"./observers-5010a9dd.js";var CSS={actionGroupBottom:"action-group--bottom",container:"container"};var TEXT={expand:"Expand",collapse:"Collapse"};var SLOTS={expandTooltip:"expand-tooltip"};var actionPadCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{-webkit-box-sizing:border-box;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem;--calcite-action-pad-expanded-max-width:auto;background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px}.container{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;-webkit-padding-after:0px;padding-block-end:0px}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0px;padding:0px;border-inline-end-width:1px}::slotted(calcite-action-group:last-child){border-block-end-width:0px}";var ActionPad=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionPadToggle=createEvent(this,"calciteActionPadToggle",6);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.actionMenuOpenChangeHandler=function(t){if(t.detail){var a=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!a.includes(t)){t.menuOpen=false}}))}};this.toggleExpand=function(){e.expanded=!e.expanded;e.calciteActionPadToggle.emit()};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandedHandler=function(t){toggleChildActionText({parent:this.el,expanded:t})};t.prototype.connectedCallback=function(){connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.componentWillLoad=function(){var t=this,e=t.el,a=t.expanded;toggleChildActionText({parent:e,expanded:a})};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:a.sent();return[2];case 2:(e=this.el)===null||e===void 0?void 0:e.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,a=t.expandDisabled,n=t.intlExpand,o=t.intlCollapse,i=t.el,r=t.position,c=t.toggleExpand,l=t.scale,s=t.layout;var d=getSlotted(i,SLOTS.expandTooltip);var p=n||TEXT.expand;var u=o||TEXT.collapse;var f=!a?h(ExpandToggle,{el:i,expanded:e,intlCollapse:u,intlExpand:p,position:r,ref:this.setExpandToggleRef,scale:l,toggle:c,tooltip:d}):null;return f?h("calcite-action-group",{class:CSS.actionGroupBottom,layout:s,scale:l},h("slot",{name:SLOTS.expandTooltip}),f):null};t.prototype.render=function(){return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("div",{class:CSS.container},h("slot",null),this.renderBottomActionGroup()))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();ActionPad.style=actionPadCss;export{ActionPad as calcite_action_pad};
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function r(t){try{l(i.next(t))}catch(t){o(t)}}function c(t){try{l(i["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):a(t.value).then(r,c)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(t){return function(e){return l([t,e])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;a=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){n.label=r[1];break}if(r[0]===6&&n.label<o[1]){n.label=o[1];o=r;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(r);break}if(o[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(t){r=[6,t];a=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.596
6
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,f as forceUpdate}from"./index-61da5fbc.js";import{c as createObserver}from"./observers-5010a9dd.js";import{u as updateHostInteraction}from"./interactive-6cafa58c.js";import{t as toAriaBoolean}from"./dom-4436bd07.js";import"./resources-ce568df4.js";import"./guid-cd505852.js";var CSS={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible"};var TEXT={loading:"Loading"};var SLOTS={tooltip:"tooltip"};var actionCss='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{-webkit-box-sizing:border-box;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-flexbox;display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;inline-size:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:margin;transition-property:margin;-webkit-transition-property:inline-size;transition-property:inline-size}.button .text-container--visible{inline-size:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}';var Action=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionClick=createEvent(this,"calciteActionClick",6);this.active=false;this.appearance="solid";this.compact=false;this.disabled=false;this.indicator=false;this.intlLoading=TEXT.loading;this.loading=false;this.scale="m";this.textEnabled=false;this.mutationObserver=createObserver("mutation",(function(){return forceUpdate(e)}));this.handleTooltipSlotChange=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-tooltip")}));var i=n[0];if(i){i.referenceElement=e.buttonEl}};this.calciteActionClickHandler=function(){if(!e.disabled){e.calciteActionClick.emit()}}}t.prototype.connectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.componentDidRender=function(){updateHostInteraction(this)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.buttonEl)===null||t===void 0?void 0:t.focus();return[2]}))}))};t.prototype.renderTextContainer=function(){var t;var e=this,n=e.text,i=e.textEnabled;var a=(t={},t[CSS.textContainer]=true,t[CSS.textContainerVisible]=i,t);return n?h("div",{class:a,key:"text-container"},n):null};t.prototype.renderIconContainer=function(){var t;var e;var n=this,i=n.loading,a=n.icon,o=n.scale,r=n.el,c=n.intlLoading;var l=o==="l"?"m":"s";var s=o==="l"?"l":"m";var u=i?h("calcite-loader",{active:true,inline:true,label:c,scale:s}):null;var d=a?h("calcite-icon",{icon:a,scale:l}):null;var b=u||d;var p=b||((e=r.children)===null||e===void 0?void 0:e.length);var f=h("div",{class:(t={},t[CSS.slotContainer]=true,t[CSS.slotContainerHidden]=i,t)},h("slot",null));return p?h("div",{"aria-hidden":"true",class:CSS.iconContainer,key:"icon-container"},b,f):null};t.prototype.render=function(){var t;var e=this;var n=this,i=n.compact,a=n.disabled,o=n.loading,r=n.textEnabled,c=n.label,l=n.text;var s=c||l;var u=(t={},t[CSS.button]=true,t[CSS.buttonTextVisible]=r,t[CSS.buttonCompact]=i,t);return h(Host,{onClick:this.calciteActionClickHandler},h("button",{"aria-busy":toAriaBoolean(o),"aria-disabled":toAriaBoolean(a),"aria-label":s,class:u,disabled:a,ref:function(t){return e.buttonEl=t}},this.renderIconContainer(),this.renderTextContainer()),h("slot",{name:SLOTS.tooltip,onSlotchange:this.handleTooltipSlotChange}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Action.style=actionCss;export{Action as calcite_action};