@esri/calcite-components 1.0.0-next.315 → 1.0.0-next.319

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 (479) hide show
  1. package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/language16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/language24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/language32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
  25. package/dist/calcite/calcite.esm.js +1 -1
  26. package/dist/calcite/p-01c9406e.js +5 -0
  27. package/dist/calcite/{p-7cf78fe8.entry.js → p-058ee7b0.entry.js} +1 -1
  28. package/dist/calcite/p-0b53c2c6.system.entry.js +5 -0
  29. package/dist/calcite/p-0d67d5bf.system.entry.js +5 -0
  30. package/dist/calcite/{p-7473ca03.system.entry.js → p-0f33798d.system.entry.js} +1 -1
  31. package/dist/calcite/{p-d354a150.system.entry.js → p-0f9f1f89.system.entry.js} +1 -1
  32. package/dist/calcite/p-12a9599d.system.entry.js +5 -0
  33. package/dist/calcite/p-141051c4.entry.js +5 -0
  34. package/dist/calcite/{p-fa9f1f68.entry.js → p-198902ca.entry.js} +1 -1
  35. package/dist/calcite/p-19d3c50f.system.entry.js +5 -0
  36. package/dist/calcite/{p-0ea2fe39.entry.js → p-1ad123f9.entry.js} +1 -1
  37. package/dist/calcite/p-1de453ba.entry.js +5 -0
  38. package/dist/calcite/p-1e4955d7.entry.js +5 -0
  39. package/dist/calcite/{p-5e640aae.system.entry.js → p-1eb04aad.system.entry.js} +1 -1
  40. package/dist/calcite/p-1eb85972.entry.js +5 -0
  41. package/dist/calcite/{p-b1dc66f5.system.entry.js → p-1f809e6c.system.entry.js} +1 -1
  42. package/dist/calcite/{p-506f7b44.system.entry.js → p-2033f545.system.entry.js} +1 -1
  43. package/dist/calcite/{p-d86e7196.entry.js → p-23bc2d32.entry.js} +1 -1
  44. package/dist/calcite/{p-258ec2b0.entry.js → p-266ee9db.entry.js} +1 -1
  45. package/dist/calcite/p-26f8f2d1.js +5 -0
  46. package/dist/calcite/{p-a487e88d.entry.js → p-29d4765b.entry.js} +1 -1
  47. package/dist/calcite/p-2b137143.system.entry.js +5 -0
  48. package/dist/calcite/p-2cd9d307.entry.js +5 -0
  49. package/dist/calcite/{p-e0ab317f.system.entry.js → p-30afa3c6.system.entry.js} +1 -1
  50. package/dist/calcite/p-35c5e6bd.entry.js +5 -0
  51. package/dist/calcite/{p-8b5d497a.entry.js → p-3d69fba9.entry.js} +1 -1
  52. package/dist/calcite/{p-30223b4f.entry.js → p-3ec67fae.entry.js} +1 -1
  53. package/dist/calcite/{p-8fb2f219.system.entry.js → p-3f07a3e7.system.entry.js} +1 -1
  54. package/dist/calcite/p-3f82f702.system.entry.js +5 -0
  55. package/dist/calcite/p-41f87fe7.entry.js +5 -0
  56. package/dist/calcite/{p-1e17f99a.system.entry.js → p-42091a1f.system.entry.js} +1 -1
  57. package/dist/calcite/p-43020fb5.js +5 -0
  58. package/dist/calcite/p-437e9d52.entry.js +5 -0
  59. package/dist/calcite/{p-7ca82e29.system.js → p-47f55191.system.js} +1 -1
  60. package/dist/calcite/{p-eb90a677.system.entry.js → p-4a8b3cf3.system.entry.js} +1 -1
  61. package/dist/calcite/p-4af85388.system.entry.js +5 -0
  62. package/dist/calcite/p-4bd82e40.system.js +5 -0
  63. package/dist/calcite/p-4e47f1a5.entry.js +5 -0
  64. package/dist/calcite/{p-86d0119b.system.entry.js → p-4ee2f6cf.system.entry.js} +1 -1
  65. package/dist/calcite/{p-030da538.entry.js → p-5035488d.entry.js} +1 -1
  66. package/dist/calcite/p-52578054.js +5 -0
  67. package/dist/calcite/p-535d635b.system.entry.js +5 -0
  68. package/dist/calcite/{p-fb49b087.entry.js → p-55bfe4fc.entry.js} +1 -1
  69. package/dist/calcite/p-58e21391.system.entry.js +5 -0
  70. package/dist/calcite/p-5c606579.entry.js +5 -0
  71. package/dist/calcite/p-5dc52ebc.entry.js +5 -0
  72. package/dist/calcite/p-5dce20e5.system.entry.js +5 -0
  73. package/dist/calcite/{p-dff7dc90.system.js → p-60916f97.system.js} +1 -1
  74. package/dist/calcite/p-65748440.entry.js +5 -0
  75. package/dist/calcite/p-6af46786.entry.js +5 -0
  76. package/dist/calcite/{p-187b6eb4.system.entry.js → p-6c5b849f.system.entry.js} +1 -1
  77. package/dist/calcite/p-6e050609.entry.js +5 -0
  78. package/dist/calcite/{p-d9827a69.entry.js → p-702140ce.entry.js} +1 -1
  79. package/dist/calcite/{p-75075d43.system.js → p-71cdeee3.system.js} +1 -1
  80. package/dist/calcite/p-71e299a6.system.js +5 -0
  81. package/dist/calcite/{p-fc3e40ed.system.entry.js → p-730b8963.system.entry.js} +1 -1
  82. package/dist/calcite/p-7311f615.entry.js +5 -0
  83. package/dist/calcite/{p-c6ff2008.system.entry.js → p-7325e7fc.system.entry.js} +1 -1
  84. package/dist/calcite/p-732d4acf.entry.js +5 -0
  85. package/dist/calcite/{p-e513b7e6.system.entry.js → p-784e4e32.system.entry.js} +1 -1
  86. package/dist/calcite/p-7bf46f12.system.entry.js +5 -0
  87. package/dist/calcite/{p-fc0dfaf2.system.entry.js → p-832affcb.system.entry.js} +1 -1
  88. package/dist/calcite/{p-b82034da.entry.js → p-87f1831b.entry.js} +1 -1
  89. package/dist/calcite/{p-1f3e9f1f.entry.js → p-88b4f504.entry.js} +1 -1
  90. package/dist/calcite/{p-a1e60186.entry.js → p-89987575.entry.js} +1 -1
  91. package/dist/calcite/{p-e67a4d2f.system.entry.js → p-8b2d4eac.system.entry.js} +1 -1
  92. package/dist/calcite/p-8e252799.system.js +1 -1
  93. package/dist/calcite/{p-0c200636.entry.js → p-9339cca3.entry.js} +1 -1
  94. package/dist/calcite/{p-f07d3627.js → p-935ff1d1.js} +1 -1
  95. package/dist/calcite/{p-8dc5dec9.system.entry.js → p-9470d123.system.entry.js} +1 -1
  96. package/dist/calcite/p-949c8f43.system.entry.js +5 -0
  97. package/dist/calcite/{p-29b5e94d.system.entry.js → p-95a17f62.system.entry.js} +1 -1
  98. package/dist/calcite/p-9634f89d.entry.js +5 -0
  99. package/dist/calcite/p-96bbc815.system.entry.js +5 -0
  100. package/dist/calcite/p-97f8034a.system.entry.js +5 -0
  101. package/dist/calcite/{p-7b892b42.system.entry.js → p-99e52ea7.system.entry.js} +1 -1
  102. package/dist/calcite/{p-5a4f9c91.entry.js → p-9be50494.entry.js} +1 -1
  103. package/dist/calcite/p-9dff8dc8.system.entry.js +5 -0
  104. package/dist/calcite/p-a7be885b.entry.js +5 -0
  105. package/dist/calcite/{p-27301daf.system.entry.js → p-a821e9b3.system.entry.js} +1 -1
  106. package/dist/calcite/{p-8cf86067.system.entry.js → p-a98e5444.system.entry.js} +1 -1
  107. package/dist/calcite/p-ab8ce668.system.entry.js +5 -0
  108. package/dist/calcite/{p-3a197e57.system.entry.js → p-ac38b743.system.entry.js} +2 -2
  109. package/dist/calcite/{p-ee157d50.entry.js → p-b16b831d.entry.js} +1 -1
  110. package/dist/calcite/{p-e956e279.js → p-b22ebcf2.js} +1 -1
  111. package/dist/calcite/{p-669e4d6b.system.entry.js → p-b5d21a5d.system.entry.js} +1 -1
  112. package/dist/calcite/p-b6aabc24.entry.js +5 -0
  113. package/dist/calcite/{p-4ddce847.js → p-b6b6ec04.js} +1 -1
  114. package/dist/calcite/p-bf82491b.entry.js +5 -0
  115. package/dist/calcite/{p-d7f1ae6c.entry.js → p-c0690971.entry.js} +1 -1
  116. package/dist/calcite/{p-e580856e.entry.js → p-c12e88cd.entry.js} +1 -1
  117. package/dist/calcite/p-c1794615.entry.js +5 -0
  118. package/dist/calcite/{p-f966b102.entry.js → p-c9551366.entry.js} +1 -1
  119. package/dist/calcite/{p-d1af2194.entry.js → p-ca5c0679.entry.js} +1 -1
  120. package/dist/calcite/p-cb55c32c.system.entry.js +5 -0
  121. package/dist/calcite/{p-5832e8cd.entry.js → p-cd1cdf3c.entry.js} +1 -1
  122. package/dist/calcite/{p-d653cdf5.system.js → p-d07ff1ee.system.js} +1 -1
  123. package/dist/calcite/{p-2911f610.system.entry.js → p-d102e280.system.entry.js} +1 -1
  124. package/dist/calcite/p-d4e9d7bb.system.entry.js +5 -0
  125. package/dist/calcite/p-dab6ebab.system.entry.js +5 -0
  126. package/dist/calcite/p-ddcf2620.system.entry.js +5 -0
  127. package/dist/calcite/{p-03d586c8.system.entry.js → p-e2d18d39.system.entry.js} +1 -1
  128. package/dist/calcite/{p-5ba48bb2.js → p-e5305b02.js} +1 -1
  129. package/dist/calcite/{p-c97163e9.system.entry.js → p-e6a47d34.system.entry.js} +1 -1
  130. package/dist/calcite/p-e817ded0.entry.js +5 -0
  131. package/dist/calcite/p-e9e13891.entry.js +5 -0
  132. package/dist/calcite/{p-4c52ac47.system.entry.js → p-eeb8dfe5.system.entry.js} +1 -1
  133. package/dist/calcite/{p-444f054f.js → p-f2620bc3.js} +1 -1
  134. package/dist/calcite/p-f7b5dd98.system.entry.js +5 -0
  135. package/dist/calcite/{p-4035444d.system.js → p-f825e054.system.js} +1 -1
  136. package/dist/calcite/{p-8e0f4f5e.system.js → p-f8266626.system.js} +1 -1
  137. package/dist/calcite/{p-4c48d68d.system.js → p-f87ba8eb.system.js} +1 -1
  138. package/dist/calcite/{p-0128b04c.entry.js → p-f97e1a2d.entry.js} +1 -1
  139. package/dist/calcite/{p-9a1a0cfb.entry.js → p-fba77b86.entry.js} +1 -1
  140. package/dist/calcite/{p-22df1092.entry.js → p-fc32b022.entry.js} +1 -1
  141. package/dist/calcite/p-fccc1605.entry.js +5 -0
  142. package/dist/calcite/{p-3fc9017a.system.entry.js → p-fd1ddcd2.system.entry.js} +1 -1
  143. package/dist/cjs/{CalciteExpandToggle-4d77fa1c.js → CalciteExpandToggle-ca629f39.js} +2 -2
  144. package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -4
  145. package/dist/cjs/calcite-action-bar.cjs.entry.js +25 -1
  146. package/dist/cjs/calcite-action-pad.cjs.entry.js +1 -1
  147. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-card.cjs.entry.js +1 -2
  149. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +20 -21
  150. package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -3
  151. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -13
  152. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +5 -6
  153. package/dist/cjs/calcite-filter.cjs.entry.js +1 -15
  154. package/dist/cjs/calcite-graph_2.cjs.entry.js +10 -11
  155. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -5
  156. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +23 -24
  157. package/dist/cjs/calcite-input.cjs.entry.js +13 -9
  158. package/dist/cjs/calcite-modal.cjs.entry.js +1 -2
  159. package/dist/cjs/calcite-option_3.cjs.entry.js +2 -1
  160. package/dist/cjs/calcite-panel.cjs.entry.js +4 -4
  161. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +1 -1
  162. package/dist/cjs/calcite-popover_2.cjs.entry.js +1 -1
  163. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +20 -23
  164. package/dist/cjs/calcite-radio_2.cjs.entry.js +7 -8
  165. package/dist/cjs/calcite-stepper_2.cjs.entry.js +2 -3
  166. package/dist/cjs/calcite-switch.cjs.entry.js +2 -3
  167. package/dist/cjs/calcite-tab_4.cjs.entry.js +5 -6
  168. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  169. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -2
  170. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -2
  171. package/dist/cjs/calcite-value-list_2.cjs.entry.js +1 -1
  172. package/dist/cjs/calcite.cjs.js +1 -1
  173. package/dist/cjs/loader.cjs.js +1 -1
  174. package/dist/cjs/{locale-69dc9583.js → locale-d223548e.js} +1 -1
  175. package/dist/cjs/{number-e6448e15.js → number-7d42a856.js} +8 -3
  176. package/dist/cjs/{resources-3f7b51c8.js → resources-c2496817.js} +1 -1
  177. package/dist/cjs/{resources-1177e39b.js → resources-fee43dc4.js} +3 -3
  178. package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
  179. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -2
  180. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
  181. package/dist/collection/components/calcite-block-section/calcite-block-section.js +2 -2
  182. package/dist/collection/components/calcite-card/calcite-card.js +1 -2
  183. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +3 -4
  184. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +1 -2
  185. package/dist/collection/components/calcite-combobox/calcite-combobox.js +1 -2
  186. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +1 -2
  187. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
  188. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +1 -2
  189. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +3 -4
  190. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -3
  191. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +1 -2
  192. package/dist/collection/components/calcite-filter/calcite-filter.js +4 -38
  193. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
  194. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
  195. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
  196. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
  197. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
  198. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
  199. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
  200. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
  201. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
  202. package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
  203. package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
  204. package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
  205. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
  206. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
  207. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
  208. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
  209. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
  210. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
  211. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
  212. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
  213. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
  214. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
  215. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
  216. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
  217. package/dist/collection/components/calcite-input/calcite-input.js +12 -7
  218. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +1 -2
  219. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +1 -2
  220. package/dist/collection/components/calcite-modal/calcite-modal.js +1 -2
  221. package/dist/collection/components/calcite-panel/calcite-panel.js +5 -5
  222. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
  223. package/dist/collection/components/calcite-pick-list/shared-list-render.js +1 -1
  224. package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
  225. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +3 -5
  226. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +17 -20
  227. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +1 -1
  228. package/dist/collection/components/calcite-select/calcite-select.js +2 -1
  229. package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
  230. package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
  231. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +1 -2
  232. package/dist/collection/components/calcite-switch/calcite-switch.js +1 -2
  233. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +3 -3
  234. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +4 -5
  235. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +7 -7
  236. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +2 -2
  237. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
  238. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
  239. package/dist/collection/components/functional/CalciteExpandToggle.js +3 -3
  240. package/dist/collection/utils/conditionalSlot.js +26 -0
  241. package/dist/collection/utils/key.js +0 -23
  242. package/dist/components/CalciteExpandToggle.js +3 -3
  243. package/dist/components/calcite-accordion-item.js +1 -2
  244. package/dist/components/calcite-accordion.js +1 -2
  245. package/dist/components/calcite-action-bar.js +25 -1
  246. package/dist/components/calcite-avatar.js +1 -1
  247. package/dist/components/calcite-block-section.js +2 -2
  248. package/dist/components/calcite-button2.js +1 -1
  249. package/dist/components/calcite-card.js +1 -2
  250. package/dist/components/calcite-color-picker-hex-input2.js +1 -2
  251. package/dist/components/calcite-color-picker-swatch2.js +4 -4
  252. package/dist/components/calcite-color-picker.js +3 -4
  253. package/dist/components/calcite-combobox.js +1 -2
  254. package/dist/components/calcite-date-picker-day2.js +1 -2
  255. package/dist/components/calcite-date-picker-month-header2.js +3 -4
  256. package/dist/components/calcite-date-picker-month2.js +1 -2
  257. package/dist/components/calcite-date-picker2.js +1 -2
  258. package/dist/components/calcite-dropdown-item.js +1 -2
  259. package/dist/components/calcite-dropdown2.js +2 -3
  260. package/dist/components/calcite-filter2.js +1 -16
  261. package/dist/components/calcite-input-date-picker.js +1 -2
  262. package/dist/components/calcite-input-time-picker.js +1 -2
  263. package/dist/components/calcite-input2.js +11 -7
  264. package/dist/components/calcite-modal.js +2 -3
  265. package/dist/components/calcite-panel.js +5 -5
  266. package/dist/components/calcite-popover-manager.js +1 -1
  267. package/dist/components/calcite-popover2.js +1 -1
  268. package/dist/components/calcite-radio-button.js +3 -4
  269. package/dist/components/calcite-radio-group.js +17 -20
  270. package/dist/components/calcite-select.js +2 -1
  271. package/dist/components/calcite-shell-panel.js +1 -1
  272. package/dist/components/calcite-slider.js +1 -2
  273. package/dist/components/calcite-stepper-item.js +1 -2
  274. package/dist/components/calcite-stepper.js +1 -2
  275. package/dist/components/calcite-switch2.js +1 -2
  276. package/dist/components/calcite-tab-nav2.js +3 -3
  277. package/dist/components/calcite-tab-title2.js +4 -5
  278. package/dist/components/calcite-time-picker2.js +7 -8
  279. package/dist/components/calcite-tip-manager.js +2 -2
  280. package/dist/components/calcite-tooltip-manager2.js +1 -2
  281. package/dist/components/calcite-tree-item.js +2 -3
  282. package/dist/components/dom.js +1 -1
  283. package/dist/components/form.js +1 -1
  284. package/dist/components/label.js +1 -1
  285. package/dist/components/number.js +5 -2
  286. package/dist/components/shared-list-render.js +3 -3
  287. package/dist/custom-elements/index.js +113 -122
  288. package/dist/esm/{CalciteExpandToggle-a08896cc.js → CalciteExpandToggle-4b38a7d1.js} +3 -3
  289. package/dist/esm/calcite-accordion_2.entry.js +3 -4
  290. package/dist/esm/calcite-action-bar.entry.js +27 -3
  291. package/dist/esm/calcite-action-group.entry.js +1 -1
  292. package/dist/esm/calcite-action-menu.entry.js +1 -1
  293. package/dist/esm/calcite-action-pad.entry.js +2 -2
  294. package/dist/esm/calcite-alert.entry.js +1 -1
  295. package/dist/esm/calcite-avatar.entry.js +1 -1
  296. package/dist/esm/calcite-block_2.entry.js +2 -2
  297. package/dist/esm/calcite-button.entry.js +2 -2
  298. package/dist/esm/calcite-card.entry.js +2 -3
  299. package/dist/esm/calcite-checkbox.entry.js +3 -3
  300. package/dist/esm/calcite-chip.entry.js +1 -1
  301. package/dist/esm/calcite-color-picker_3.entry.js +8 -9
  302. package/dist/esm/calcite-combobox_3.entry.js +5 -6
  303. package/dist/esm/calcite-date-picker_4.entry.js +10 -11
  304. package/dist/esm/calcite-dropdown_3.entry.js +5 -6
  305. package/dist/esm/calcite-fab.entry.js +1 -1
  306. package/dist/esm/calcite-filter.entry.js +2 -16
  307. package/dist/esm/calcite-graph_2.entry.js +4 -5
  308. package/dist/esm/calcite-icon.entry.js +1 -1
  309. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  310. package/dist/esm/calcite-input-date-picker.entry.js +8 -9
  311. package/dist/esm/calcite-input-message.entry.js +1 -1
  312. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -12
  313. package/dist/esm/calcite-input.entry.js +15 -11
  314. package/dist/esm/calcite-label.entry.js +1 -1
  315. package/dist/esm/calcite-link.entry.js +1 -1
  316. package/dist/esm/calcite-list_3.entry.js +1 -1
  317. package/dist/esm/calcite-modal.entry.js +2 -3
  318. package/dist/esm/calcite-notice.entry.js +1 -1
  319. package/dist/esm/calcite-option_3.entry.js +5 -4
  320. package/dist/esm/calcite-pagination.entry.js +1 -1
  321. package/dist/esm/calcite-panel.entry.js +5 -5
  322. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  323. package/dist/esm/calcite-popover_2.entry.js +3 -3
  324. package/dist/esm/calcite-radio-group_2.entry.js +19 -22
  325. package/dist/esm/calcite-radio_2.entry.js +5 -6
  326. package/dist/esm/calcite-rating.entry.js +3 -3
  327. package/dist/esm/calcite-shell_3.entry.js +1 -1
  328. package/dist/esm/calcite-split-button.entry.js +1 -1
  329. package/dist/esm/calcite-stepper_2.entry.js +3 -4
  330. package/dist/esm/calcite-switch.entry.js +4 -5
  331. package/dist/esm/calcite-tab_4.entry.js +6 -7
  332. package/dist/esm/calcite-tile-select_2.entry.js +1 -1
  333. package/dist/esm/calcite-tile.entry.js +1 -1
  334. package/dist/esm/calcite-tip_3.entry.js +2 -2
  335. package/dist/esm/calcite-tooltip_2.entry.js +3 -4
  336. package/dist/esm/calcite-tree_2.entry.js +2 -3
  337. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  338. package/dist/esm/calcite.js +1 -1
  339. package/dist/esm/{dom-fce0996b.js → dom-dc012a45.js} +1 -1
  340. package/dist/esm/{form-aed20747.js → form-6b717ce8.js} +1 -1
  341. package/dist/esm/{label-326df1c3.js → label-0d804a87.js} +1 -1
  342. package/dist/esm/loader.js +1 -1
  343. package/dist/esm/{locale-6c1b85c7.js → locale-641b6af3.js} +1 -1
  344. package/dist/esm/{number-e7393766.js → number-2609a8bc.js} +5 -2
  345. package/dist/esm/{popper-d8ea1200.js → popper-ed1eefa6.js} +1 -1
  346. package/dist/esm/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
  347. package/dist/esm/{resources-581b6bd0.js → resources-c31631e5.js} +4 -4
  348. package/dist/esm-es5/CalciteExpandToggle-4b38a7d1.js +5 -0
  349. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  350. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  351. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  352. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  353. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  354. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  355. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  356. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  357. package/dist/esm-es5/calcite-button.entry.js +1 -1
  358. package/dist/esm-es5/calcite-card.entry.js +1 -1
  359. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  360. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  361. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  362. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  363. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  364. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  365. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  366. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  367. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  368. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  369. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  370. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  371. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  372. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  373. package/dist/esm-es5/calcite-input.entry.js +1 -1
  374. package/dist/esm-es5/calcite-label.entry.js +1 -1
  375. package/dist/esm-es5/calcite-link.entry.js +1 -1
  376. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  377. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  378. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  379. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  380. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  381. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  382. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  383. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  384. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  385. package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
  386. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  387. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  388. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  389. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  390. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  391. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  392. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  393. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  394. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  395. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  396. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  397. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  398. package/dist/esm-es5/calcite.js +1 -1
  399. package/dist/esm-es5/{dom-fce0996b.js → dom-dc012a45.js} +1 -1
  400. package/dist/esm-es5/{form-aed20747.js → form-6b717ce8.js} +1 -1
  401. package/dist/esm-es5/{label-326df1c3.js → label-0d804a87.js} +1 -1
  402. package/dist/esm-es5/loader.js +1 -1
  403. package/dist/esm-es5/locale-641b6af3.js +5 -0
  404. package/dist/esm-es5/number-2609a8bc.js +5 -0
  405. package/dist/esm-es5/{popper-d8ea1200.js → popper-ed1eefa6.js} +1 -1
  406. package/dist/esm-es5/{resources-bece7a88.js → resources-1a5b5ecf.js} +1 -1
  407. package/dist/esm-es5/{resources-581b6bd0.js → resources-c31631e5.js} +1 -1
  408. package/dist/extras/docs-json.json +4 -24
  409. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +2 -1
  410. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +2 -1
  411. package/dist/types/components/calcite-filter/calcite-filter.d.ts +1 -10
  412. package/dist/types/components/calcite-panel/calcite-panel.d.ts +1 -1
  413. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -2
  414. package/dist/types/components.d.ts +2 -12
  415. package/dist/types/utils/conditionalSlot.d.ts +17 -0
  416. package/dist/types/utils/key.d.ts +0 -4
  417. package/hydrate/index.js +112 -122
  418. package/package.json +14 -14
  419. package/readme.md +2 -2
  420. package/dist/calcite/p-011cf302.entry.js +0 -5
  421. package/dist/calcite/p-0c5e1f92.js +0 -5
  422. package/dist/calcite/p-13051845.system.entry.js +0 -5
  423. package/dist/calcite/p-206dbc67.system.entry.js +0 -5
  424. package/dist/calcite/p-226c2070.entry.js +0 -5
  425. package/dist/calcite/p-24f47f18.system.entry.js +0 -5
  426. package/dist/calcite/p-25e0a2a6.system.entry.js +0 -5
  427. package/dist/calcite/p-2964c736.entry.js +0 -5
  428. package/dist/calcite/p-2e658461.system.entry.js +0 -5
  429. package/dist/calcite/p-32e0cbd7.system.entry.js +0 -5
  430. package/dist/calcite/p-37676cd2.entry.js +0 -5
  431. package/dist/calcite/p-3bfce0ff.entry.js +0 -5
  432. package/dist/calcite/p-3ce1ce39.system.entry.js +0 -5
  433. package/dist/calcite/p-43fd1a31.entry.js +0 -5
  434. package/dist/calcite/p-56b352bf.system.js +0 -5
  435. package/dist/calcite/p-5f55075d.system.entry.js +0 -5
  436. package/dist/calcite/p-646c2fbb.entry.js +0 -5
  437. package/dist/calcite/p-672b7667.entry.js +0 -5
  438. package/dist/calcite/p-72563742.js +0 -5
  439. package/dist/calcite/p-770478dd.system.entry.js +0 -5
  440. package/dist/calcite/p-7c9ccdb5.system.entry.js +0 -5
  441. package/dist/calcite/p-81d6b146.system.entry.js +0 -5
  442. package/dist/calcite/p-874ea2cb.system.entry.js +0 -5
  443. package/dist/calcite/p-8805ccab.system.entry.js +0 -5
  444. package/dist/calcite/p-8cc309a1.system.entry.js +0 -5
  445. package/dist/calcite/p-8e55d8a0.entry.js +0 -5
  446. package/dist/calcite/p-8f097f80.entry.js +0 -5
  447. package/dist/calcite/p-90d75515.system.entry.js +0 -5
  448. package/dist/calcite/p-91645bf7.system.js +0 -5
  449. package/dist/calcite/p-9274789b.js +0 -5
  450. package/dist/calcite/p-9c6e5c3d.system.entry.js +0 -5
  451. package/dist/calcite/p-a48511af.system.entry.js +0 -5
  452. package/dist/calcite/p-ade623c3.system.entry.js +0 -5
  453. package/dist/calcite/p-b2ab0485.js +0 -5
  454. package/dist/calcite/p-b463b6eb.entry.js +0 -5
  455. package/dist/calcite/p-b612e7a8.entry.js +0 -5
  456. package/dist/calcite/p-cc9061b4.system.js +0 -5
  457. package/dist/calcite/p-cd0016bb.entry.js +0 -5
  458. package/dist/calcite/p-cd980c27.entry.js +0 -5
  459. package/dist/calcite/p-cf104aa4.entry.js +0 -5
  460. package/dist/calcite/p-d2d96a44.entry.js +0 -5
  461. package/dist/calcite/p-db274711.entry.js +0 -5
  462. package/dist/calcite/p-e47ee5e0.entry.js +0 -5
  463. package/dist/calcite/p-e488c785.system.entry.js +0 -5
  464. package/dist/calcite/p-e7598b5c.entry.js +0 -5
  465. package/dist/calcite/p-e8b7e0df.entry.js +0 -5
  466. package/dist/calcite/p-e97342f5.js +0 -5
  467. package/dist/calcite/p-eb16cf75.entry.js +0 -5
  468. package/dist/calcite/p-effd9e72.entry.js +0 -5
  469. package/dist/calcite/p-f234ff81.entry.js +0 -5
  470. package/dist/calcite/p-f4825bbd.entry.js +0 -5
  471. package/dist/calcite/p-f63cb0df.system.entry.js +0 -5
  472. package/dist/calcite/p-fc4e10c1.system.entry.js +0 -5
  473. package/dist/cjs/key-8bfb93ec.js +0 -37
  474. package/dist/components/key.js +0 -33
  475. package/dist/esm/key-69001a68.js +0 -33
  476. package/dist/esm-es5/CalciteExpandToggle-a08896cc.js +0 -5
  477. package/dist/esm-es5/key-69001a68.js +0 -5
  478. package/dist/esm-es5/locale-6c1b85c7.js +0 -5
  479. package/dist/esm-es5/number-e7393766.js +0 -5
@@ -1,5 +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
- */
5
- import{r as t,c as i,h as e,g as a,H as n}from"./p-2e29554c.js";import{g as r}from"./p-72563742.js";import{d as s,a as o,C as c}from"./p-5ba48bb2.js";import"./p-8a63221d.js";let l=class{constructor(e){t(this,e),this.calciteStepperItemChange=i(this,"calciteStepperItemChange",7),this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.items=[],this.sortedItems=[]}contentWatcher(){"horizontal"===this.layout&&(!this.stepperContentContainer&&this.requestedContent&&this.addHorizontalContentContainer(),this.updateContent(this.requestedContent))}componentDidLoad(){this.currentPosition||this.calciteStepperItemChange.emit({position:0})}componentWillLoad(){"horizontal"!==this.layout||this.stepperContentContainer||this.addHorizontalContentContainer()}render(){return e("slot",null)}calciteStepperItemKeyEvent(t){const i=t.detail.item,e=t.target,a=0===this.itemIndex(e),n=this.itemIndex(e)===this.sortedItems.length-1;switch(r(i.key)){case"ArrowDown":case"ArrowRight":n?this.focusFirstItem():this.focusNextItem(e);break;case"ArrowUp":case"ArrowLeft":a?this.focusLastItem():this.focusPrevItem(e);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem()}}registerItem(t){const i={item:t.target,position:t.detail.position,content:t.detail.content};i.content&&i.item.active&&(this.requestedContent=i.content),this.items.includes(i)||this.items.push(i),this.sortedItems=this.sortItems()}updateItem(t){t.detail.content&&(this.requestedContent=t.detail.content),this.currentPosition=t.detail.position,this.calciteStepperItemChange.emit({position:this.currentPosition})}async nextStep(){this.currentPosition=this.currentPosition+1<this.items.length?this.currentPosition+1:this.currentPosition,this.emitChangedItem()}async prevStep(){this.currentPosition=this.currentPosition-1>=0?this.currentPosition-1:this.currentPosition,this.emitChangedItem()}async goToStep(t){this.currentPosition=t-1,this.emitChangedItem()}async startStep(){this.currentPosition=0,this.emitChangedItem()}async endStep(){this.currentPosition=this.items.length-1,this.emitChangedItem()}addHorizontalContentContainer(){this.stepperContentContainer=document.createElement("div"),this.stepperContentContainer.classList.add("calcite-stepper-content"),this.el.insertAdjacentElement("beforeend",this.stepperContentContainer)}emitChangedItem(){this.calciteStepperItemChange.emit({position:this.currentPosition})}focusFirstItem(){this.focusElement(this.sortedItems[0])}focusLastItem(){this.focusElement(this.sortedItems[this.sortedItems.length-1])}focusNextItem(t){const i=this.itemIndex(t);this.focusElement(this.sortedItems[i+1]||this.sortedItems[0])}focusPrevItem(t){const i=this.itemIndex(t);this.focusElement(this.sortedItems[i-1]||this.sortedItems[this.sortedItems.length-1])}itemIndex(t){return this.sortedItems.indexOf(t)}focusElement(t){t.focus()}sortItems(){const t=Array.from(this.items).filter((t=>!t.item.disabled)).sort(((t,i)=>t.position-i.position)).map((t=>t.item));return[...Array.from(new Set(t))]}updateContent(t){this.stepperContentContainer.innerHTML="",this.stepperContentContainer.append(...t)}get el(){return a(this)}static get watchers(){return{requestedContent:["contentWatcher"]}}};l.style="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:stretch;align-items:stretch;width:100%;min-width:100%}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1 auto;flex:1 1 auto}:host ::slotted(.calcite-stepper-content){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;min-width:100%}";let m=class{constructor(e){t(this,e),this.calciteStepperItemKeyEvent=i(this,"calciteStepperItemKeyEvent",7),this.calciteStepperItemSelect=i(this,"calciteStepperItemSelect",7),this.calciteStepperItemRegister=i(this,"calciteStepperItemRegister",7),this.active=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.icon=!1,this.numbered=!1,this.scale="m"}disabledWatcher(){this.registerStepperItem()}componentWillLoad(){this.icon=s(this.el,"icon",!1),this.numbered=s(this.el,"numbered",!1),this.layout=s(this.el,"layout",!1),this.scale=s(this.el,"scale","m"),this.parentStepperEl=this.el.parentElement}componentDidLoad(){this.itemPosition=this.getItemPosition(),this.itemContent=this.getItemContent(),this.registerStepperItem(),this.active&&this.emitRequestedItem()}componentDidUpdate(){this.active&&this.emitRequestedItem()}render(){const t=o(this.el);return e(n,{"aria-expanded":this.active.toString(),onClick:()=>this.emitRequestedItem(),tabindex:this.disabled?null:0},e("div",{class:{container:!0,[c.rtl]:"rtl"===t}},e("div",{class:"stepper-item-header"},this.icon?this.renderIcon():null,this.numbered?e("div",{class:"stepper-item-number"},this.getItemPosition()+1,"."):null,e("div",{class:"stepper-item-header-text"},e("span",{class:"stepper-item-title"},this.itemTitle),e("span",{class:"stepper-item-subtitle"},this.itemSubtitle))),e("div",{class:"stepper-item-content"},e("slot",null))))}keyDownHandler(t){if(!this.disabled&&t.target===this.el)switch(r(t.key)){case" ":case"Enter":this.emitRequestedItem(),t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteStepperItemKeyEvent.emit({item:t}),t.preventDefault()}}updateActiveItemOnChange(t){t.target===this.parentStepperEl&&(this.activePosition=t.detail.position,this.determineActiveItem())}renderIcon(){return e("calcite-icon",{class:"stepper-item-icon",icon:this.active?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineActiveItem(){this.active=!this.disabled&&this.itemPosition===this.activePosition}registerStepperItem(){this.calciteStepperItemRegister.emit({position:this.itemPosition,content:this.itemContent})}emitRequestedItem(){this.disabled||this.calciteStepperItemSelect.emit({position:this.itemPosition,content:this.itemContent})}getItemContent(){var t;return(null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot"))?this.el.shadowRoot.querySelector("slot").assignedNodes({flatten:!0}):this.el.querySelector(".stepper-item-content")?this.el.querySelector(".stepper-item-content").childNodes:null}getItemPosition(){return Array.prototype.indexOf.call(this.parentStepperEl.querySelectorAll("calcite-stepper-item"),this.el)}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"]}}};m.style="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-right:0.25rem}:host([scale=s]) .stepper-item-subtitle{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-right:0.5rem}:host([scale=m]) .stepper-item-subtitle{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-right:0.75rem}:host([scale=l]) .stepper-item-subtitle{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;position:relative;margin-bottom:var(--calcite-stepper-item-spacing-unit-s)}:host .container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;border-width:0;border-top-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);cursor:pointer;-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)}.calcite--rtl{margin-left:var(--calcite-stepper-item-spacing-unit-l);margin-right:0}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;cursor:pointer}:host .stepper-item-content,:host .stepper-item-header{padding:var(--calcite-stepper-item-spacing-unit-l) var(--calcite-stepper-item-spacing-unit-m);padding-left:0;text-align:left;-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)}.calcite--rtl .stepper-item-content,.calcite--rtl .stepper-item-header{padding-right:0;text-align:right;-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);padding-left:initial}:host .stepper-item-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 .stepper-item-content{-ms-flex-direction:column;flex-direction:column;width:100%;display:none;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-right:var(--calcite-stepper-item-spacing-unit-m);color:var(--calcite-ui-text-3);margin-top:1px;opacity:var(--calcite-ui-opacity-disabled);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;height:0.75rem;-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)}.calcite--rtl .stepper-item-icon{margin-left:var(--calcite-stepper-item-spacing-unit-l);margin-right:0}:host .stepper-item-header-text{margin-right:auto;-ms-flex-direction:column;flex-direction:column;text-align:initial}.calcite--rtl .stepper-item-header-text{margin-left:auto;margin-right:0}:host .stepper-item-title,:host .stepper-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .stepper-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium);margin-bottom:0.25rem}:host .stepper-item-subtitle{color:var(--calcite-ui-text-3)}.calcite--rtl .stepper-item-title{margin-right:0;margin-left:auto}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);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);margin-right:var(--calcite-stepper-item-spacing-unit-m)}.calcite--rtl .stepper-item-number{margin-left:var(--calcite-stepper-item-spacing-unit-m);margin-right:initial}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]),:host([disabled]) *{cursor:not-allowed;pointer-events:auto}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-top-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-title,:host(:focus:not([disabled]):not([active])) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-subtitle,:host(:focus:not([disabled]):not([active])) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-top-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .container{-ms-flex:1 1 auto;flex:1 1 auto;border-top-width:0;border-left-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-right:0;margin-left:0;margin-right:0;margin-top:0;padding-left:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:auto;-ms-flex-order:3;order:3;padding-left:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=vertical]) .container .stepper-item-header{padding-right:0}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){margin-bottom:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .calcite--rtl{border-left-width:0;border-right-width:2px;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-left:0;padding-right:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .calcite--rtl .stepper-item-icon{margin-bottom:0;margin-left:0;padding-left:0;padding-right:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .calcite--rtl .stepper-item-header{padding-left:0;padding-right:intial}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}";export{l as calcite_stepper,m as calcite_stepper_item}
@@ -1,5 +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
- */
5
- import{r as t,c as e,f as a,h as i,H as n,g as r}from"./p-2e29554c.js";import{d as o,u as s,c as l,C as c}from"./p-4ddce847.js";import{g as p}from"./p-8a63221d.js";import{q as m,a as f,C as d,h}from"./p-5ba48bb2.js";import{C as b}from"./p-8340b572.js";const w="data-calcite-popover-reference";let k=class{constructor(a){t(this,a),this.calcitePopoverClose=e(this,"calcitePopoverClose",7),this.calcitePopoverOpen=e(this,"calcitePopoverOpen",7),this.closeButton=!1,this.dismissible=!1,this.disableFlip=!1,this.disablePointer=!1,this.offsetDistance=o,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.intlClose="Close",this.guid=`calcite-popover-${p()}`,this.activeTransitionProp="opacity",this.setUpReferenceElement=()=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement();const{el:t,referenceElement:e,effectiveReferenceElement:a}=this;e&&!a&&console.warn(`${t.tagName}: reference-element id "${e}" was not found.`,{el:t}),this.addReferences(),this.createPopper()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;t&&t.setAttribute("aria-expanded",e.toString())},this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();t.setAttribute(w,e),t.setAttribute("aria-controls",e),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&(t.removeAttribute(w),t.removeAttribute("aria-controls"),t.removeAttribute("aria-expanded"))},this.hide=()=>{this.open=!1},this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.open?this.calcitePopoverOpen.emit():this.calcitePopoverClose.emit())}}offsetDistanceOffsetHandler(){this.reposition()}offsetSkiddingHandler(){this.reposition()}openHandler(){this.reposition(),this.setExpandedAttr()}placementHandler(){this.reposition()}referenceElementHandler(){this.setUpReferenceElement()}componentWillLoad(){this.setUpReferenceElement()}componentDidLoad(){this.reposition()}disconnectedCallback(){this.removeReferences(),this.destroyPopper()}async reposition(){const{popper:t,el:e,placement:a}=this,i=this.getModifiers();t?await s({el:e,modifiers:i,placement:a,popper:t}):this.createPopper()}async setFocus(t){var e;const{closeButtonEl:i}=this;if("close-button"===t&&i)return a(i),void i.setFocus();null===(e=this.el)||void 0===e||e.focus()}async toggle(t=!this.open){this.open=t}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?m(e,`#${t}`):t)||null}getModifiers(){const{arrowEl:t,flipPlacements:e,disableFlip:a,disablePointer:i,offsetDistance:n,offsetSkidding:r}=this,o={name:"flip",enabled:!a};e&&(o.options={fallbackPlacements:e});const s={name:"arrow",enabled:!i};return t&&(s.options={element:t}),[s,o,{name:"offset",enabled:!0,options:{offset:[r,n]}}]}createPopper(){this.destroyPopper();const{el:t,placement:e,effectiveReferenceElement:a,overlayPositioning:i}=this,n=this.getModifiers();this.popper=l({el:t,modifiers:n,overlayPositioning:i,placement:e,referenceEl:a})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}renderCloseButton(){const{dismissible:t,closeButton:e,intlClose:a}=this;return t||e?i("calcite-action",{class:"close-button",onClick:this.hide,ref:t=>this.closeButtonEl=t,text:a},i("calcite-icon",{icon:"x",scale:"m"})):null}renderHeader(){const{heading:t,headingLevel:e}=this,a=t?i(b,{class:"heading",level:e||2},t):null;return a?i("div",{class:"header"},a,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,el:e,heading:a,label:r,open:o,disablePointer:s}=this,l="rtl"===f(e),p=t&&o,m=!p,h=s?null:i("div",{class:"arrow",ref:t=>this.arrowEl=t});return i(n,{"aria-hidden":m.toString(),"aria-label":r,"calcite-hydrated-hidden":m,id:this.getId(),role:"dialog"},i("div",{class:{[d.rtl]:l,[c.animation]:!0,[c.animationActive]:p},onTransitionEnd:this.transitionEnd},h,i("div",{class:{"has-header":!!a,container:!0}},this.renderHeader(),i("div",{class:"content"},i("slot",null)),a?null:this.renderCloseButton())))}get el(){return r(this)}static get watchers(){return{offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"]}}};k.style='@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:"";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%;width:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}';let x=class{constructor(e){t(this,e),this.selector=`[${w}]`,this.autoClose=!1,this.getRelatedPopover=t=>{var e;const{selector:a,el:i}=this,n=null===(e=t.closest(a))||void 0===e?void 0:e.getAttribute(w);return m(i,`#${n}`)}}render(){return i("slot",null)}closeOpenPopovers(t){const e=t.target,{autoClose:a,el:i}=this,n="calcite-popover",r=e.closest(n),o=this.getRelatedPopover(e);a&&!r&&h(i,n).filter((t=>t.open&&t!==o)).forEach((t=>t.toggle(!1))),i.contains(e)&&o&&o.toggle()}get el(){return r(this)}};x.style="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}";export{k as calcite_popover,x as calcite_popover_manager}
@@ -1,5 +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
- */
5
- System.register(["./p-288bc438.system.js","./p-4c48d68d.system.js","./p-56b352bf.system.js","./p-e020662f.system.js"],(function(e){"use strict";var t,i,n,a,o,r,s,c,l,d,h,m;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.H;o=e.g},function(e){r=e.f;s=e.n;c=e.g;l=e.a;d=e.C;h=e.k},function(e){m=e.g},function(){}],execute:function(){var f;(function(e){e["Single"]="single";e["Multi"]="multi";e["Children"]="children";e["MultiChildren"]="multi-children";e["Ancestors"]="ancestors"})(f||(f={}));var p="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;outline:2px solid transparent;outline-offset:2px}";var u=e("calcite_tree",function(){function e(e){t(this,e);this.calciteTreeSelect=i(this,"calciteTreeSelect",7);this.lines=false;this.inputEnabled=false;this.scale="m";this.selectionMode=f.Single}e.prototype.componentWillRender=function(){var e=this.el.parentElement.closest("calcite-tree");this.lines=e?e.lines:this.lines;this.scale=e?e.scale:this.scale;this.selectionMode=e?e.selectionMode:this.selectionMode;this.child=!!e};e.prototype.render=function(){return n(a,{"aria-multiselectable":(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren).toString(),role:!this.child?"tree":undefined,tabIndex:this.getRootTabIndex()},n("slot",null))};e.prototype.onFocus=function(){if(!this.child){var e=this.el.querySelector("calcite-tree-item[selected]")||this.el.querySelector("calcite-tree-item");r(e)}};e.prototype.onFocusIn=function(e){var t=e.relatedTarget===this.el||!this.el.contains(e.relatedTarget);if(t){this.el.tabIndex=-1}};e.prototype.onFocusOut=function(e){var t=!this.el.contains(e.relatedTarget);if(t){this.el.tabIndex=this.getRootTabIndex()}};e.prototype.onClick=function(e){var t=e.target;var i=s(t.querySelectorAll("calcite-tree-item"));if(this.child){return}if(!this.child){e.preventDefault();e.stopPropagation()}if(this.selectionMode===f.Ancestors&&!this.child){this.updateAncestorTree(e);return}var n=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode===f.Children||this.selectionMode===f.MultiChildren));var a=e.detail.modifyCurrentSelection&&(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren);var o=this.selectionMode===f.MultiChildren||this.selectionMode===f.Children;var r=!a&&((this.selectionMode===f.Single||this.selectionMode===f.Multi)&&i.length<=0||this.selectionMode===f.Children||this.selectionMode===f.MultiChildren);var c=this.selectionMode===f.Children||this.selectionMode===f.MultiChildren;if(!this.child){var l=[];if(n){l.push(t)}if(o){i.forEach((function(e){l.push(e)}))}if(r){var d=s(this.el.querySelectorAll("calcite-tree-item[selected]"));d.forEach((function(e){if(!l.includes(e)){e.selected=false}}))}if(c&&!e.detail.forceToggle){t.expanded=true}if(a){window.getSelection().removeAllRanges()}if(a&&t.selected||o&&e.detail.forceToggle){l.forEach((function(e){e.selected=false}))}else{l.forEach((function(e){e.selected=true}))}}this.calciteTreeSelect.emit({selected:s(this.el.querySelectorAll("calcite-tree-item")).filter((function(e){return e.selected}))})};e.prototype.updateAncestorTree=function(e){var t=e.target;var i=t.querySelectorAll("calcite-tree-item");var n=[];var a=t.parentElement.closest("calcite-tree-item");while(a){n.push(a);a=a.parentElement.closest("calcite-tree-item")}t.selected=!t.selected;t.indeterminate=false;if(i===null||i===void 0?void 0:i.length){i.forEach((function(e){e.selected=t.selected;e.indeterminate=false}))}if(n){n.forEach((function(e){var t=s(e.querySelectorAll("calcite-tree-item"));var i=t.filter((function(e){return e.selected}));if(i.length===0){e.selected=false;e.indeterminate=false;return}var n=i.length<t.length;e.indeterminate=n;e.selected=!n}))}this.calciteTreeSelect.emit({selected:s(this.el.querySelectorAll("calcite-tree-item")).filter((function(e){return e.selected}))})};e.prototype.getRootTabIndex=function(){return!this.child?0:-1};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u.style=p;var b={checkboxLabel:"checkbox-label",checkbox:"checkbox",chevron:"chevron",nodeContainer:"node-container",childrenContainer:"children-container",bulletPointIcon:"bullet-point",checkmarkIcon:"checkmark"};var k={children:"children"};var y={bulletPoint:"bullet-point",checkmark:"check",chevronRight:"chevron-right"};var g='@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer;outline:2px solid transparent;outline-offset:2px;max-width:100%;color:var(--calcite-ui-text-3)}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-container{--calcite-tree-padding-y:0.25rem}:host([scale=s]) .node-container .checkbox,:host([scale=s]) .node-container .chevron,:host([scale=s]) .node-container .checkmark,:host([scale=s]) .node-container .bullet-point{margin-inline:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-container{--calcite-tree-padding-y:0.5rem}:host([scale=m]) .node-container .checkbox,:host([scale=m]) .node-container .chevron,:host([scale=m]) .node-container .checkmark,:host([scale=m]) .node-container .bullet-point{margin-inline:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-container{--calcite-tree-padding-y:0.75rem}:host([scale=l]) .node-container .checkbox,:host([scale=l]) .node-container .chevron,:host([scale=l]) .node-container .checkmark,:host([scale=l]) .node-container .bullet-point{margin-inline:0.75rem}:host([lines]) .children-container:after{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;top:0;position:absolute;width:1px;height:96%;content:"";background-color:var(--calcite-ui-border-2);z-index:-1}:host(:not([lines])) .node-container:after{display:none}::slotted(*){word-wrap:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){width:100%;text-decoration:none}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{outline:2px solid transparent;outline-offset:2px;line-height:0}.checkbox-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:none}.children-container{position:relative;overflow:hidden;height:0;-webkit-margin-start:1.25rem;margin-inline-start:1.25rem;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transition:0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out;transition:0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity 0.15s cubic-bezier(0.215, 0.44, 0.42, 0.88), all 0.15s ease-in-out;-webkit-transform-origin:top;transform-origin:top}:host([expanded])>.children-container{-webkit-transform:scaleY(1);transform:scaleY(1);opacity:1;height:auto}.node-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;padding:var(--calcite-tree-padding-y) 0}.node-container .checkmark,.node-container .bullet-point{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;opacity:0;color:var(--calcite-ui-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus) .node-container .checkmark,:host(:focus) .node-container .bullet-point{opacity:1}:host([selected])>.node-container,:host([selected])>.node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected])>.node-container .bullet-point,:host([selected])>.node-container .checkmark,:host([selected])>.node-container:hover .bullet-point,:host([selected])>.node-container:hover .checkmark{opacity:1;color:var(--calcite-ui-brand)}:host(:not([has-children])):host([scale=s])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.25rem;padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem}:host([has-children])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-margin-start:0;margin-inline-start:0}:host([has-children])>.node-container .bullet-point,:host([has-children])>.node-container .checkmark{display:none}:host([has-children][expanded]:not([selected]))>.node-container ::slotted(*){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([has-children][selected])>.node-container[data-selection-mode=children],:host([has-children][selected])>.node-container[data-selection-mode=multi-children]{color:var(--calcite-ui-brand)}.chevron{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;position:relative;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.calcite--rtl .chevron{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host([expanded])>.node-container>.chevron{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-ui-brand)}';var v=e("calcite_tree_item",function(){function e(e){var n=this;t(this,e);this.calciteTreeItemSelect=i(this,"calciteTreeItemSelect",7);this.selected=false;this.expanded=false;this.parentExpanded=false;this.depth=-1;this.hasChildren=null;this.iconClickHandler=function(e){e.stopPropagation();n.expanded=!n.expanded;if(n.selectionMode!==f.Ancestors){n.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:true})}};this.childrenClickHandler=function(e){return e.stopPropagation()};this.updateParentIsExpanded=function(e,t){var i=c(e,k.children,{all:true,selector:"calcite-tree-item"});i.forEach((function(e){return e.parentExpanded=t}))};this.updateAncestorTree=function(){if(n.selected&&n.selectionMode===f.Ancestors){var e=[];var t=n.parentTreeItem;while(t){e.push(t);t=t.parentElement.closest("calcite-tree-item")}e.forEach((function(e){return e.indeterminate=true}));return}}}e.prototype.expandedHandler=function(e){this.updateParentIsExpanded(this.el,e)};e.prototype.connectedCallback=function(){this.parentTreeItem=this.el.parentElement.closest("calcite-tree-item");if(this.parentTreeItem){var e=this.parentTreeItem.expanded;this.updateParentIsExpanded(this.parentTreeItem,e)}};e.prototype.componentWillRender=function(){this.hasChildren=!!this.el.querySelector("calcite-tree");this.depth=0;var e=this.el.closest("calcite-tree");if(!e){return}this.selectionMode=e.selectionMode;this.scale=e.scale||"m";this.lines=e.lines;var t;while(e){t=e.parentElement.closest("calcite-tree");if(t===e){break}else{e=t;this.depth=this.depth+1}}};e.prototype.componentDidLoad=function(){this.updateAncestorTree()};e.prototype.render=function(){var e,t,i,o;var r=this;var s=l(this.el)==="rtl";var c=this.selectionMode===f.Single||this.selectionMode===f.Children;var h=this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren;var m=this.hasChildren?n("calcite-icon",{class:(e={},e[b.chevron]=true,e[d.rtl]=s,e),"data-test-id":"icon",icon:y.chevronRight,onClick:this.iconClickHandler,scale:"s"}):null;var p=this.selectionMode===f.Ancestors?n("label",{class:b.checkboxLabel},n("calcite-checkbox",{checked:this.selected,class:b.checkbox,"data-test-id":"checkbox",indeterminate:this.hasChildren&&this.indeterminate,scale:this.scale,tabIndex:-1}),n("slot",null)):null;var u=c?y.bulletPoint:h?y.checkmark:null;var g=u?n("calcite-icon",{class:(t={},t[b.bulletPointIcon]=u===y.bulletPoint,t[b.checkmarkIcon]=u===y.checkmark,t[d.rtl]=s,t),icon:u,scale:"s"}):null;var v=!(this.parentExpanded||this.depth===1);return n(a,{"aria-expanded":this.hasChildren?this.expanded.toString():undefined,"aria-hidden":v.toString(),"aria-selected":this.selected?"true":h?"false":undefined,"calcite-hydrated-hidden":v,role:"treeitem",tabindex:this.parentExpanded||this.depth===1?"0":"-1"},n("div",{class:(i={},i[b.nodeContainer]=true,i[d.rtl]=s,i),"data-selection-mode":this.selectionMode,ref:function(e){return r.defaultSlotWrapper=e}},m,g,p?p:n("slot",null)),n("div",{class:(o={},o[b.childrenContainer]=true,o[d.rtl]=s,o),"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,ref:function(e){return r.childrenSlotWrapper=e},role:this.hasChildren?"group":undefined},n("slot",{name:k.children})))};e.prototype.onClick=function(e){var t=h(this.el,"a")[0];if(t&&e.composedPath()[0].tagName.toLowerCase()!=="a"){var i=t.target===""?"_self":t.target;window.open(t.href,i)}this.expanded=!this.expanded;this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey||this.selectionMode===f.Ancestors,forceToggle:false})};e.prototype.keyDownHandler=function(e){var t;switch(m(e.key)){case" ":this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:false});e.preventDefault();e.stopPropagation();break;case"Enter":var i=s(this.el.children).find((function(e){return e.matches("a")}));if(i){i.click();this.selected=true}else{this.calciteTreeItemSelect.emit({modifyCurrentSelection:e.shiftKey,forceToggle:false})}e.preventDefault();e.stopPropagation();break;case"ArrowLeft":if(this.hasChildren&&this.expanded){this.expanded=false;e.preventDefault();e.stopPropagation();break}var n=this.parentTreeItem;if(n&&(!this.hasChildren||this.expanded===false)){n.focus();e.preventDefault();e.stopPropagation();break}break;case"ArrowRight":if(this.hasChildren&&this.expanded===false){this.expanded=true;e.preventDefault();e.stopPropagation();break}if(this.hasChildren&&this.expanded){this.el.querySelector("calcite-tree-item").focus();break}break;case"ArrowUp":var a=this.el.previousElementSibling;if(a&&a.matches("calcite-tree-item")){a.focus()}break;case"ArrowDown":var o=this.el.nextElementSibling;if(o&&o.matches("calcite-tree-item")){o.focus()}break;case"Home":t=this.el.closest("calcite-tree:not([child])");var r=t.querySelector("calcite-tree-item");r.focus();break;case"End":t=this.el.closest("calcite-tree:not([child])");var c=t.children[t.children.length-1];var l=s(c.children).find((function(e){return e.matches("calcite-tree")}));while(l){c=l.children[t.children.length-1];l=s(c.children).find((function(e){return e.matches("calcite-tree")}))}c.focus();break}};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{expanded:["expandedHandler"]}},enumerable:false,configurable:true});return e}());v.style=g}}}));
@@ -1,5 +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
- */
5
- System.register(["./p-288bc438.system.js","./p-56b352bf.system.js","./p-4c48d68d.system.js","./p-e020662f.system.js"],(function(t){"use strict";var i,e,o,a,c,n,r,s,l;return{setters:[function(t){i=t.r;e=t.c;o=t.h;a=t.g;c=t.H},function(t){n=t.g},function(t){r=t.d;s=t.a;l=t.C},function(){}],execute:function(){var m="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}: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{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";var d=t("calcite_accordion",function(){function t(t){i(this,t);this.calciteAccordionChange=e(this,"calciteAccordionChange",7);this.appearance="default";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(){return o("slot",null)};t.prototype.calciteAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var o=n(i.key);var a=t.target;var c=this.itemIndex(a)===0;var r=this.itemIndex(a)===this.items.length-1;switch(o){case"ArrowDown":if(r){this.focusFirstItem()}else{this.focusNextItem(a)}break;case"ArrowUp":if(c){this.focusLastItem()}else{this.focusPrevItem(a)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}};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.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem})};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.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());d.style=m;var p="@-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:300ms}.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}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:-90deg;--calcite-accordion-item-active-icon-rotation:0;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0}.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:0;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0;--calcite-accordion-item-active-icon-rotation-rtl:-180deg}:host{--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host-context([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}:host-context([appearance=transparent]){--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;color:var(--calcite-ui-text-3);background-color:var(--calcite-accordion-item-background);--calcite-accordion-item-border:var(--calcite-ui-border-2)}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;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);margin-right:var(--calcite-accordion-item-icon-spacing-start);margin-left:var(--calcite-accordion-item-icon-spacing-end)}.calcite--rtl .accordion-item-icon{margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border)}:host .accordion-item-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 .accordion-item-content{display:none;color:var(--calcite-ui-text-3);padding-top:0;text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right: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 .accordion-item-expand-icon{margin-left:var(--calcite-accordion-item-icon-spacing-end);margin-right:var(--calcite-accordion-item-icon-spacing-start);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-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([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;margin-right:auto;text-align:initial}.calcite--rtl .accordion-item-header-text{margin-right:0;margin-left:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium)}:host .accordion-item-subtitle{color:var(--calcite-ui-text-3);margin-top:0.25rem}.calcite--rtl .accordion-item-title{margin-right:0;margin-left:auto}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";var h=t("calcite_accordion_item",function(){function t(t){var o=this;i(this,t);this.calciteAccordionItemKeyEvent=e(this,"calciteAccordionItemKeyEvent",7);this.calciteAccordionItemSelect=e(this,"calciteAccordionItemSelect",7);this.calciteAccordionItemClose=e(this,"calciteAccordionItemClose",7);this.calciteAccordionItemRegister=e(this,"calciteAccordionItemRegister",7);this.active=false;this.iconPosition="end";this.itemHeaderClickHandler=function(){return o.emitRequestedItem()}}t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=r(this.el,"selection-mode","multi");this.iconType=r(this.el,"icon-type","chevron");this.iconPosition=r(this.el,"icon-position",this.iconPosition)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.render=function(){var t,i;var e=s(this.el);var a=o("calcite-icon",{class:"accordion-item-icon",icon:this.icon,scale:"s"});return o(c,{"aria-expanded":this.active.toString(),tabindex:"0"},o("div",{class:(t={},t["icon-position--"+this.iconPosition]=true,t["icon-type--"+this.iconType]=true,t)},o("div",{class:(i={"accordion-item-header":true},i[l.rtl]=e==="rtl",i),onClick:this.itemHeaderClickHandler},this.icon?a:null,o("div",{class:"accordion-item-header-text"},o("span",{class:"accordion-item-title"},this.itemTitle),this.itemSubtitle?o("span",{class:"accordion-item-subtitle"},this.itemSubtitle):null),o("calcite-icon",{class:"accordion-item-expand-icon",icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.active?"minus":"plus",scale:"s"})),o("div",{class:"accordion-item-content"},o("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(n(t.key)){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteAccordionItemKeyEvent.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.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.active=!this.active}break;case"single":this.active=this.el===this.requestedAccordionItem?!this.active:false;break;case"single-persist":this.active=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteAccordionItemSelect.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 a(this)},enumerable:false,configurable:true});return t}());h.style=p}}}));
@@ -1,37 +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
- */
5
- 'use strict';
6
-
7
- /**
8
- * Standardize key property of keyboard event (mostly for ie11)
9
- */
10
- function getKey(key, dir) {
11
- const lookup = {
12
- Up: "ArrowUp",
13
- Down: "ArrowDown",
14
- Left: "ArrowLeft",
15
- Right: "ArrowRight",
16
- Spacebar: " ",
17
- Esc: "Escape"
18
- };
19
- const adjustedKey = lookup[key] || key;
20
- const isRTL = dir === "rtl";
21
- if (isRTL && adjustedKey === "ArrowLeft") {
22
- return "ArrowRight";
23
- }
24
- if (isRTL && adjustedKey === "ArrowRight") {
25
- return "ArrowLeft";
26
- }
27
- return adjustedKey;
28
- }
29
- function isActivationKey(key) {
30
- key = getKey(key);
31
- return key === "Enter" || key === " ";
32
- }
33
- const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
34
-
35
- exports.getKey = getKey;
36
- exports.isActivationKey = isActivationKey;
37
- exports.numberKeys = numberKeys;
@@ -1,33 +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
- */
5
- /**
6
- * Standardize key property of keyboard event (mostly for ie11)
7
- */
8
- function getKey(key, dir) {
9
- const lookup = {
10
- Up: "ArrowUp",
11
- Down: "ArrowDown",
12
- Left: "ArrowLeft",
13
- Right: "ArrowRight",
14
- Spacebar: " ",
15
- Esc: "Escape"
16
- };
17
- const adjustedKey = lookup[key] || key;
18
- const isRTL = dir === "rtl";
19
- if (isRTL && adjustedKey === "ArrowLeft") {
20
- return "ArrowRight";
21
- }
22
- if (isRTL && adjustedKey === "ArrowRight") {
23
- return "ArrowLeft";
24
- }
25
- return adjustedKey;
26
- }
27
- function isActivationKey(key) {
28
- key = getKey(key);
29
- return key === "Enter" || key === " ";
30
- }
31
- const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
32
-
33
- export { getKey as g, isActivationKey as i, numberKeys as n };
@@ -1,33 +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
- */
5
- /**
6
- * Standardize key property of keyboard event (mostly for ie11)
7
- */
8
- function getKey(key, dir) {
9
- const lookup = {
10
- Up: "ArrowUp",
11
- Down: "ArrowDown",
12
- Left: "ArrowLeft",
13
- Right: "ArrowRight",
14
- Spacebar: " ",
15
- Esc: "Escape"
16
- };
17
- const adjustedKey = lookup[key] || key;
18
- const isRTL = dir === "rtl";
19
- if (isRTL && adjustedKey === "ArrowLeft") {
20
- return "ArrowRight";
21
- }
22
- if (isRTL && adjustedKey === "ArrowRight") {
23
- return "ArrowLeft";
24
- }
25
- return adjustedKey;
26
- }
27
- function isActivationKey(key) {
28
- key = getKey(key);
29
- return key === "Enter" || key === " ";
30
- }
31
- const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
32
-
33
- export { getKey as g, isActivationKey as i, numberKeys as n };
@@ -1,5 +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
- */
5
- import{f as forceUpdate,h}from"./index-9de00868.js";import{a as getElementDir}from"./dom-fce0996b.js";import{S as SLOTS}from"./resources-584acd9b.js";import{S as SLOTS$1}from"./resources-7c6029b6.js";var overflowActionsDebounceInMs=150;var groupBufferHeight=2;var getMaxActionCount=function(e){var t=e.height,r=e.actionHeight,o=e.groupCount;return Math.floor((t-o*groupBufferHeight)/r)};var getOverflowCount=function(e){var t=e.actionCount,r=e.actionHeight,o=e.height,n=e.groupCount;return Math.max(t-getMaxActionCount({height:o,actionHeight:r,groupCount:n}),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,r=e.expanded,o=e.overflowCount;var n=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=r}}));if(n>0){o.some((function(e){var r=o.filter((function(e){return!e.slot}));if(r.length>1&&o.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",SLOTS$1.menuActions);t++;if(t>1){n--}}return n<1}))}forceUpdate(e)}))};var ICONS={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function getCalcitePosition(e,t){var r;return e||((r=t.closest("calcite-shell-panel"))===null||r===void 0?void 0:r.position)||"start"}function toggleChildActionText(e){var t=e.parent,r=e.expanded;queryActions(t).filter((function(e){return e.slot!==SLOTS$1.menuActions})).forEach((function(e){return e.textEnabled=r}));t.querySelectorAll("calcite-action-group").forEach((function(e){return e.expanded=r}))}var setTooltipReference=function(e){var t=e.tooltip,r=e.referenceElement,o=e.expanded,n=e.ref;if(t){t.referenceElement=!o&&r}if(n){n(r)}return r};var CalciteExpandToggle=function(e){var t=e.expanded,r=e.intlExpand,o=e.intlCollapse,n=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:r;var v=[ICONS.chevronsLeft,ICONS.chevronsRight];if(s){v.reverse()}var g=getCalcitePosition(a,i)==="end";var p=g?v[1]:v[0];var d=g?v[0]:v[1];var m=h("calcite-action",{dir:s?"rtl":"ltr",icon:t?p:d,onClick:n,ref:function(e){return setTooltipReference({tooltip:c,referenceElement:e,expanded:t,ref:l})},scale:u,text:f,textEnabled:t});return c?h("calcite-tooltip-manager",null,m):m};export{CalciteExpandToggle as C,overflowActions as a,getOverflowCount as g,overflowActionsDebounceInMs as o,queryActions as q,toggleChildActionText as t};
@@ -1,5 +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
- */
5
- function getKey(r,e){var t={Up:"ArrowUp",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Spacebar:" ",Esc:"Escape"};var n=t[r]||r;var i=e==="rtl";if(i&&n==="ArrowLeft"){return"ArrowRight"}if(i&&n==="ArrowRight"){return"ArrowLeft"}return n}function isActivationKey(r){r=getKey(r);return r==="Enter"||r===" "}var numberKeys=["0","1","2","3","4","5","6","7","8","9"];export{getKey as g,isActivationKey as i,numberKeys as n};
@@ -1,5 +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
- */
5
- import{a as sanitizeDecimalString}from"./number-e7393766.js";var locales=["ar","bs","ca","cs","da","de","de-CH","el","en","en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","nb","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"];function createLocaleNumberFormatter(r){return new Intl.NumberFormat(r,{minimumFractionDigits:0,maximumFractionDigits:20})}function delocalizeNumberString(r,e){if(r){var t=getGroupSeparator(e);var a=getDecimalSeparator(e);var i=r.split("");var n=i.lastIndexOf(a);var u=i.map((function(r,e){if(r===t||r===a&&e!==n){return""}return r})).reduce((function(r,e){return r+e})).replace(a,".");return isNaN(Number(u))?r:u}return r}function getGroupSeparator(r){var e=createLocaleNumberFormatter(r);var t=e.formatToParts(1234567.8);var a=t.find((function(r){return r.type==="group"})).value;return a.trim().length===0?" ":a}function getDecimalSeparator(r){var e=createLocaleNumberFormatter(r);var t=e.formatToParts(1234567.8);var a=t.find((function(r){return r.type==="decimal"})).value;return a.trim().length===0?" ":a}function localizeNumberString(r,e,t){if(t===void 0){t=false}if(r){var a=Number(sanitizeDecimalString(r));if(!isNaN(a)){var i=createLocaleNumberFormatter(e);var n=i.formatToParts(a);var u=n.map((function(r){var a=r.type,i=r.value;switch(a){case"group":return t?getGroupSeparator(e):"";case"decimal":return getDecimalSeparator(e);default:return i}})).reduce((function(r,e){return r+e}));return u}}return r}export{locales as a,delocalizeNumberString as d,getDecimalSeparator as g,localizeNumberString as l};
@@ -1,5 +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
- */
5
- import{n as numberKeys}from"./key-69001a68.js";function isValidNumber(r){return!(!r||isNaN(Number(r)))}function parseNumberString(r){if(!r||!stringContainsNumbers(r)){return null}var n=false;var e=r.split("").filter((function(r,e){if(r.match(/\./g)&&!n){n=true;return true}if(r.match(/\-/g)&&e===0){return true}return numberKeys.includes(r)})).reduce((function(r,n){return r+n}));return isValidNumber(e)?Number(e).toString():null}function sanitizeDecimalString(r){return(r===null||r===void 0?void 0:r.endsWith("."))?r.replace(".",""):r}function sanitizeNumberString(r){return r?Number(sanitizeDecimalString(r)).toString():r}function stringContainsNumbers(r){return numberKeys.some((function(n){return r.includes(n)}))}export{sanitizeDecimalString as a,isValidNumber as i,parseNumberString as p,sanitizeNumberString as s};