@esri/calcite-components 1.0.0-next.414 → 1.0.0-next.417

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 (659) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/{p-02854dce.system.entry.js → p-02d7cf64.system.entry.js} +1 -1
  4. package/dist/calcite/p-03c92ad2.entry.js +5 -0
  5. package/dist/calcite/{p-847fc3a4.system.entry.js → p-052ba882.system.entry.js} +1 -1
  6. package/dist/calcite/p-07f1f162.system.entry.js +5 -0
  7. package/dist/calcite/p-1263bcc0.entry.js +5 -0
  8. package/dist/calcite/p-184049cb.entry.js +5 -0
  9. package/dist/calcite/p-18be4438.entry.js +5 -0
  10. package/dist/calcite/p-193749c1.entry.js +5 -0
  11. package/dist/calcite/{p-129954f1.system.entry.js → p-1aded388.system.entry.js} +1 -1
  12. package/dist/calcite/p-1aeca42a.system.entry.js +5 -0
  13. package/dist/calcite/p-1b1bca2d.entry.js +5 -0
  14. package/dist/calcite/{p-3c773436.system.entry.js → p-1fc943d5.system.entry.js} +1 -1
  15. package/dist/calcite/p-23145377.entry.js +5 -0
  16. package/dist/calcite/p-28c333d0.entry.js +5 -0
  17. package/dist/calcite/p-2bcaed33.entry.js +5 -0
  18. package/dist/calcite/p-2dd22e8c.system.entry.js +5 -0
  19. package/dist/calcite/p-2fae8516.system.entry.js +5 -0
  20. package/dist/calcite/p-3119ffce.system.js +5 -0
  21. package/dist/calcite/p-31c58f25.entry.js +5 -0
  22. package/dist/calcite/p-32d6b962.entry.js +5 -0
  23. package/dist/calcite/{p-475869c9.system.entry.js → p-32efc4cd.system.entry.js} +1 -1
  24. package/dist/calcite/p-34730e94.entry.js +5 -0
  25. package/dist/calcite/p-364db271.entry.js +5 -0
  26. package/dist/calcite/p-3915705c.entry.js +5 -0
  27. package/dist/calcite/p-3b4662a5.entry.js +5 -0
  28. package/dist/calcite/p-3b707a1c.system.entry.js +5 -0
  29. package/dist/calcite/{p-41806a13.system.entry.js → p-3cdee187.system.entry.js} +1 -1
  30. package/dist/calcite/{p-296c1d5a.system.entry.js → p-3e149640.system.entry.js} +1 -1
  31. package/dist/calcite/p-3e9d96c6.system.entry.js +5 -0
  32. package/dist/calcite/{p-f5e91588.system.entry.js → p-3ea157ba.system.entry.js} +1 -1
  33. package/dist/calcite/p-42227a04.entry.js +5 -0
  34. package/dist/calcite/p-426f011a.entry.js +5 -0
  35. package/dist/calcite/p-4570cf6c.js +5 -0
  36. package/dist/calcite/p-4696e56f.entry.js +5 -0
  37. package/dist/calcite/p-4730df46.js +5 -0
  38. package/dist/calcite/p-47d38839.entry.js +5 -0
  39. package/dist/calcite/{p-aa336fc3.system.entry.js → p-482885ae.system.entry.js} +1 -1
  40. package/dist/calcite/{p-df3775ba.system.entry.js → p-48637359.system.entry.js} +1 -1
  41. package/dist/calcite/p-496e907a.system.entry.js +5 -0
  42. package/dist/calcite/p-4aecbaef.entry.js +5 -0
  43. package/dist/calcite/p-4afb5a1b.system.entry.js +5 -0
  44. package/dist/calcite/p-4eae61c5.entry.js +5 -0
  45. package/dist/calcite/p-5394666a.entry.js +5 -0
  46. package/dist/calcite/p-54c49493.entry.js +5 -0
  47. package/dist/calcite/{p-0bd5bb31.system.entry.js → p-55e1a3a0.system.entry.js} +1 -1
  48. package/dist/calcite/{p-3543ddfe.system.entry.js → p-569150ab.system.entry.js} +1 -1
  49. package/dist/calcite/p-57e0428a.system.entry.js +5 -0
  50. package/dist/calcite/{p-9d071e3c.system.js → p-588bfa74.system.js} +1 -1
  51. package/dist/calcite/{p-a7e2bf9b.system.entry.js → p-58adb34d.system.entry.js} +1 -1
  52. package/dist/calcite/p-5a8829cd.entry.js +5 -0
  53. package/dist/calcite/p-5bb4d012.entry.js +5 -0
  54. package/dist/calcite/p-6261469d.entry.js +5 -0
  55. package/dist/calcite/p-65dbbfb5.system.js +5 -0
  56. package/dist/calcite/p-69d2d9cf.system.entry.js +5 -0
  57. package/dist/calcite/p-6ab3e489.entry.js +5 -0
  58. package/dist/calcite/p-6b7b23d0.js +5 -0
  59. package/dist/calcite/{p-a6261f6b.system.entry.js → p-6c4a7041.system.entry.js} +1 -1
  60. package/dist/calcite/p-6e0103f5.system.entry.js +5 -0
  61. package/dist/calcite/{p-579d1f1a.system.entry.js → p-6ed27595.system.entry.js} +1 -1
  62. package/dist/calcite/p-6fba3e1b.system.entry.js +5 -0
  63. package/dist/calcite/{p-2eb067c8.system.entry.js → p-7247b667.system.entry.js} +1 -1
  64. package/dist/calcite/p-7260c869.system.entry.js +5 -0
  65. package/dist/calcite/p-73d23656.entry.js +5 -0
  66. package/dist/calcite/p-7432e5ef.system.entry.js +5 -0
  67. package/dist/calcite/p-765c9bef.entry.js +5 -0
  68. package/dist/calcite/p-78bc502f.entry.js +5 -0
  69. package/dist/calcite/{p-ee88180e.system.entry.js → p-7bee4942.system.entry.js} +1 -1
  70. package/dist/calcite/{p-c0e695bd.js → p-7c88d545.js} +1 -1
  71. package/dist/calcite/p-7dfd6480.system.entry.js +5 -0
  72. package/dist/calcite/{p-fda8b94b.entry.js → p-824da4be.entry.js} +1 -1
  73. package/dist/calcite/p-867f7b7a.system.entry.js +5 -0
  74. package/dist/calcite/p-872e82a6.system.entry.js +5 -0
  75. package/dist/calcite/p-87888359.entry.js +5 -0
  76. package/dist/calcite/p-895d22f3.entry.js +5 -0
  77. package/dist/calcite/p-8a7596e3.entry.js +5 -0
  78. package/dist/calcite/{p-ba2c5e07.js → p-8ab345f2.js} +1 -1
  79. package/dist/calcite/{p-4ff0e3a9.system.entry.js → p-8e0dd0af.system.entry.js} +1 -1
  80. package/dist/calcite/{p-e4c317a4.system.js → p-9385e4b4.system.js} +1 -1
  81. package/dist/calcite/p-963e9aec.system.entry.js +5 -0
  82. package/dist/calcite/p-97904e9a.entry.js +5 -0
  83. package/dist/calcite/p-9940b82a.system.entry.js +5 -0
  84. package/dist/calcite/p-9ac86d6a.entry.js +5 -0
  85. package/dist/calcite/p-9ad8c7c5.system.entry.js +5 -0
  86. package/dist/calcite/p-9c913e3a.entry.js +5 -0
  87. package/dist/calcite/p-9e61d89d.entry.js +5 -0
  88. package/dist/calcite/{p-1f82294e.system.entry.js → p-a11ee541.system.entry.js} +1 -1
  89. package/dist/calcite/p-a3527241.system.entry.js +5 -0
  90. package/dist/calcite/p-a38fe099.entry.js +5 -0
  91. package/dist/calcite/{p-7d937b47.entry.js → p-a7770d75.entry.js} +1 -1
  92. package/dist/calcite/{p-f56ce7ea.js → p-a9b3ef39.js} +1 -1
  93. package/dist/calcite/p-a9ea7f4f.entry.js +5 -0
  94. package/dist/calcite/p-aaa21a84.system.entry.js +5 -0
  95. package/dist/calcite/p-aad14a5d.system.entry.js +5 -0
  96. package/dist/calcite/p-afe59546.entry.js +5 -0
  97. package/dist/calcite/p-b10af2b4.entry.js +5 -0
  98. package/dist/calcite/p-b2493735.entry.js +5 -0
  99. package/dist/calcite/p-b3c5247b.system.entry.js +5 -0
  100. package/dist/calcite/p-b47dc903.system.entry.js +5 -0
  101. package/dist/calcite/{p-c9f280c1.system.js → p-b765d197.system.js} +1 -1
  102. package/dist/calcite/p-bccbf58a.entry.js +5 -0
  103. package/dist/calcite/{p-993a9701.system.entry.js → p-bcdc20c3.system.entry.js} +1 -1
  104. package/dist/calcite/p-bd38ff21.js +5 -0
  105. package/dist/calcite/{p-cd406e29.system.entry.js → p-bdcb43b1.system.entry.js} +1 -1
  106. package/dist/calcite/p-bffb4da3.system.entry.js +5 -0
  107. package/dist/calcite/{p-d1060fb1.system.entry.js → p-c228a1da.system.entry.js} +1 -1
  108. package/dist/calcite/p-c2adeae4.entry.js +5 -0
  109. package/dist/calcite/p-c33f47d5.system.js +5 -0
  110. package/dist/calcite/p-c4cb35ba.system.entry.js +5 -0
  111. package/dist/calcite/{p-5d52246b.system.js → p-c51699d3.system.js} +1 -1
  112. package/dist/calcite/p-c5c42405.entry.js +5 -0
  113. package/dist/calcite/{p-a4cc864a.system.entry.js → p-c9fc13b9.system.entry.js} +1 -1
  114. package/dist/calcite/p-cafd98e8.entry.js +5 -0
  115. package/dist/calcite/{p-08c58589.system.js → p-cb57638c.system.js} +1 -1
  116. package/dist/calcite/p-cb847074.entry.js +5 -0
  117. package/dist/calcite/p-cbc6fee6.entry.js +5 -0
  118. package/dist/calcite/p-cc6e7726.entry.js +5 -0
  119. package/dist/calcite/{p-2277b440.js → p-cd5f5c8f.js} +1 -1
  120. package/dist/calcite/{p-1d345756.system.entry.js → p-cd9226a1.system.entry.js} +1 -1
  121. package/dist/calcite/p-da7c2542.entry.js +5 -0
  122. package/dist/calcite/{p-fedbc6e6.js → p-dcf33bb2.js} +1 -1
  123. package/dist/calcite/{p-36fa8b0f.system.entry.js → p-dd460534.system.entry.js} +1 -1
  124. package/dist/calcite/p-e22ab8fa.entry.js +5 -0
  125. package/dist/calcite/p-e3280a36.system.entry.js +5 -0
  126. package/dist/calcite/p-e43605c5.entry.js +5 -0
  127. package/dist/calcite/p-e4d1651b.system.entry.js +5 -0
  128. package/dist/calcite/p-e5a7ca2a.entry.js +5 -0
  129. package/dist/calcite/p-e65b6bfb.entry.js +5 -0
  130. package/dist/calcite/p-e66a8ca1.system.entry.js +5 -0
  131. package/dist/calcite/p-ea4119b1.system.entry.js +5 -0
  132. package/dist/calcite/{p-bcd705be.system.entry.js → p-ef17447d.system.entry.js} +1 -1
  133. package/dist/calcite/p-f09e27b0.system.js +5 -0
  134. package/dist/calcite/p-f344e163.entry.js +5 -0
  135. package/dist/calcite/p-fe9380a0.system.js +5 -0
  136. package/dist/cjs/{ExpandToggle-dbdede53.js → ExpandToggle-f7682a15.js} +1 -1
  137. package/dist/cjs/{Heading-1870bc0e.js → Heading-ec707493.js} +1 -1
  138. package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -3
  139. package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -4
  140. package/dist/cjs/calcite-action-group.cjs.entry.js +3 -3
  141. package/dist/cjs/calcite-action-menu.cjs.entry.js +3 -3
  142. package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -4
  143. package/dist/cjs/calcite-action.cjs.entry.js +7 -3
  144. package/dist/cjs/calcite-alert.cjs.entry.js +2 -2
  145. package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
  146. package/dist/cjs/calcite-block_2.cjs.entry.js +19 -10
  147. package/dist/cjs/calcite-button.cjs.entry.js +7 -3
  148. package/dist/cjs/calcite-card.cjs.entry.js +3 -3
  149. package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -4
  150. package/dist/cjs/calcite-chip.cjs.entry.js +3 -3
  151. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -6
  152. package/dist/cjs/calcite-combobox_3.cjs.entry.js +40 -36
  153. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +16 -9
  154. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +34 -15
  155. package/dist/cjs/calcite-fab.cjs.entry.js +12 -3
  156. package/dist/cjs/calcite-filter.cjs.entry.js +14 -5
  157. package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
  158. package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -5
  159. package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
  160. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  161. package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -10
  162. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +33 -13
  163. package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
  164. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +22 -6
  165. package/dist/cjs/calcite-input.cjs.entry.js +8 -4
  166. package/dist/cjs/calcite-label.cjs.entry.js +8 -4
  167. package/dist/cjs/calcite-link.cjs.entry.js +8 -4
  168. package/dist/cjs/calcite-list_3.cjs.entry.js +34 -8
  169. package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
  170. package/dist/cjs/calcite-modal.cjs.entry.js +3 -3
  171. package/dist/cjs/calcite-notice.cjs.entry.js +3 -3
  172. package/dist/cjs/calcite-option_3.cjs.entry.js +10 -6
  173. package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
  174. package/dist/cjs/calcite-panel.cjs.entry.js +16 -7
  175. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -12
  176. package/dist/cjs/calcite-popover_2.cjs.entry.js +10 -6
  177. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  178. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
  179. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -4
  180. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +10 -6
  181. package/dist/cjs/calcite-rating.cjs.entry.js +13 -7
  182. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  183. package/dist/cjs/calcite-shell_3.cjs.entry.js +5 -5
  184. package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
  185. package/dist/cjs/calcite-split-button.cjs.entry.js +27 -4
  186. package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -5
  187. package/dist/cjs/calcite-switch.cjs.entry.js +8 -11
  188. package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -8
  189. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +20 -5
  190. package/dist/cjs/calcite-tile.cjs.entry.js +8 -4
  191. package/dist/cjs/calcite-tip_3.cjs.entry.js +6 -6
  192. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +9 -5
  193. package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -4
  194. package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -11
  195. package/dist/cjs/calcite.cjs.js +3 -3
  196. package/dist/cjs/{conditionalSlot-2917212e.js → conditionalSlot-64f9bfd3.js} +1 -1
  197. package/dist/cjs/{form-d540f0cb.js → form-0ef859c8.js} +1 -1
  198. package/dist/cjs/{index-8760acaf.js → index-1af0efd3.js} +4 -1
  199. package/dist/cjs/interactive-87406231.js +44 -0
  200. package/dist/cjs/loader.cjs.js +3 -3
  201. package/dist/cjs/{popper-13a2bb46.js → popper-64d89ef7.js} +17 -2
  202. package/dist/cjs/{resources-1e94d43c.js → resources-7811eb2c.js} +1 -1
  203. package/dist/cjs/{resources-415f797b.js → resources-daf15d54.js} +34 -9
  204. package/dist/collection/collection-manifest.json +1 -1
  205. package/dist/collection/components/action/action.css +9 -0
  206. package/dist/collection/components/action/action.js +4 -0
  207. package/dist/collection/components/block/block.css +13 -9
  208. package/dist/collection/components/block/block.js +13 -4
  209. package/dist/collection/components/button/button.css +15 -2
  210. package/dist/collection/components/button/button.js +4 -0
  211. package/dist/collection/components/checkbox/checkbox.css +7 -0
  212. package/dist/collection/components/checkbox/checkbox.js +4 -0
  213. package/dist/collection/components/color-picker/color-picker.css +13 -0
  214. package/dist/collection/components/color-picker/color-picker.js +32 -1
  215. package/dist/collection/components/combobox/combobox.css +7 -1
  216. package/dist/collection/components/combobox/combobox.js +54 -32
  217. package/dist/collection/components/combobox/resources.js +0 -1
  218. package/dist/collection/components/combobox-item/combobox-item.css +13 -0
  219. package/dist/collection/components/combobox-item/combobox-item.js +4 -0
  220. package/dist/collection/components/date-picker-day/date-picker-day.css +13 -5
  221. package/dist/collection/components/date-picker-day/date-picker-day.js +8 -1
  222. package/dist/collection/components/dropdown/dropdown.css +8 -0
  223. package/dist/collection/components/dropdown/dropdown.js +56 -14
  224. package/dist/collection/components/dropdown/resources.js +0 -1
  225. package/dist/collection/components/fab/fab.css +13 -0
  226. package/dist/collection/components/fab/fab.js +9 -0
  227. package/dist/collection/components/filter/filter.css +13 -0
  228. package/dist/collection/components/filter/filter.js +11 -3
  229. package/dist/collection/components/inline-editable/inline-editable.css +12 -0
  230. package/dist/collection/components/inline-editable/inline-editable.js +9 -7
  231. package/dist/collection/components/input/input.css +8 -7
  232. package/dist/collection/components/input/input.js +4 -0
  233. package/dist/collection/components/input-date-picker/input-date-picker.css +64 -27
  234. package/dist/collection/components/input-date-picker/input-date-picker.js +50 -8
  235. package/dist/collection/components/input-time-picker/input-time-picker.css +13 -0
  236. package/dist/collection/components/input-time-picker/input-time-picker.js +21 -1
  237. package/dist/collection/components/label/label.css +12 -0
  238. package/dist/collection/components/label/label.js +9 -2
  239. package/dist/collection/components/link/link.css +13 -8
  240. package/dist/collection/components/link/link.js +5 -1
  241. package/dist/collection/components/list/list.css +13 -0
  242. package/dist/collection/components/list/list.js +38 -0
  243. package/dist/collection/components/list-item/list-item.css +8 -0
  244. package/dist/collection/components/list-item/list-item.js +9 -0
  245. package/dist/collection/components/panel/panel.css +13 -0
  246. package/dist/collection/components/panel/panel.js +11 -2
  247. package/dist/collection/components/pick-list/pick-list.css +13 -0
  248. package/dist/collection/components/pick-list/pick-list.js +4 -0
  249. package/dist/collection/components/pick-list/shared-list-logic.js +30 -6
  250. package/dist/collection/components/pick-list/shared-list-render.js +2 -2
  251. package/dist/collection/components/pick-list-item/pick-list-item.css +13 -0
  252. package/dist/collection/components/pick-list-item/pick-list-item.js +5 -4
  253. package/dist/collection/components/popover/popover.js +5 -1
  254. package/dist/collection/components/radio-button/radio-button.css +10 -1
  255. package/dist/collection/components/radio-button/radio-button.js +4 -0
  256. package/dist/collection/components/radio-group/radio-group.css +13 -5
  257. package/dist/collection/components/radio-group/radio-group.js +5 -1
  258. package/dist/collection/components/rating/rating.css +13 -5
  259. package/dist/collection/components/rating/rating.js +9 -3
  260. package/dist/collection/components/select/select.css +13 -7
  261. package/dist/collection/components/select/select.js +4 -0
  262. package/dist/collection/components/slider/slider.css +8 -0
  263. package/dist/collection/components/slider/slider.js +2 -0
  264. package/dist/collection/components/sortable-list/sortable-list.css +13 -0
  265. package/dist/collection/components/sortable-list/sortable-list.js +4 -0
  266. package/dist/collection/components/split-button/split-button.css +12 -0
  267. package/dist/collection/components/split-button/split-button.js +29 -3
  268. package/dist/collection/components/stepper-item/stepper-item.css +8 -4
  269. package/dist/collection/components/stepper-item/stepper-item.js +6 -2
  270. package/dist/collection/components/switch/switch.css +7 -0
  271. package/dist/collection/components/switch/switch.js +5 -13
  272. package/dist/collection/components/tab-title/tab-title.css +9 -0
  273. package/dist/collection/components/tab-title/tab-title.js +6 -3
  274. package/dist/collection/components/tile/tile.css +17 -1
  275. package/dist/collection/components/tile/tile.js +4 -0
  276. package/dist/collection/components/tile-select/tile-select.css +9 -1
  277. package/dist/collection/components/tile-select/tile-select.js +4 -0
  278. package/dist/collection/components/tile-select-group/tile-select-group.css +13 -0
  279. package/dist/collection/components/tile-select-group/tile-select-group.js +31 -1
  280. package/dist/collection/components/tooltip/tooltip.js +5 -1
  281. package/dist/collection/components/value-list/value-list.css +13 -0
  282. package/dist/collection/components/value-list/value-list.js +6 -5
  283. package/dist/collection/components/value-list-item/value-list-item.css +13 -0
  284. package/dist/collection/components/value-list-item/value-list-item.js +5 -1
  285. package/dist/collection/utils/interactive.js +42 -0
  286. package/dist/collection/utils/popper.js +66 -0
  287. package/dist/components/action-group.js +3 -4
  288. package/dist/components/action-menu.js +3 -4
  289. package/dist/components/action.js +8 -5
  290. package/dist/components/button.js +8 -5
  291. package/dist/components/calcite-accordion-item.js +3 -4
  292. package/dist/components/calcite-accordion.js +3 -4
  293. package/dist/components/calcite-action-bar.js +3 -4
  294. package/dist/components/calcite-action-pad.js +3 -4
  295. package/dist/components/calcite-alert.js +3 -4
  296. package/dist/components/calcite-avatar.js +3 -4
  297. package/dist/components/calcite-block-section.js +3 -4
  298. package/dist/components/calcite-block.js +17 -9
  299. package/dist/components/calcite-card.js +3 -4
  300. package/dist/components/calcite-color-picker.js +19 -6
  301. package/dist/components/calcite-combobox-item-group.js +4 -5
  302. package/dist/components/calcite-combobox-item.js +9 -6
  303. package/dist/components/calcite-combobox.js +35 -35
  304. package/dist/components/calcite-dropdown-group.js +3 -4
  305. package/dist/components/calcite-dropdown-item.js +3 -4
  306. package/dist/components/calcite-fab.js +13 -5
  307. package/dist/components/calcite-flow.js +3 -4
  308. package/dist/components/calcite-inline-editable.js +13 -12
  309. package/dist/components/calcite-input-date-picker.js +33 -13
  310. package/dist/components/calcite-input-message.js +3 -4
  311. package/dist/components/calcite-input-time-picker.js +21 -6
  312. package/dist/components/calcite-list-item-group.js +3 -4
  313. package/dist/components/calcite-list-item.js +13 -5
  314. package/dist/components/calcite-list.js +23 -5
  315. package/dist/components/calcite-modal.js +3 -4
  316. package/dist/components/calcite-notice.js +3 -4
  317. package/dist/components/calcite-option-group.js +3 -4
  318. package/dist/components/calcite-option.js +3 -4
  319. package/dist/components/calcite-pagination.js +3 -4
  320. package/dist/components/calcite-panel.js +15 -7
  321. package/dist/components/calcite-pick-list-group.js +3 -4
  322. package/dist/components/calcite-pick-list.js +8 -5
  323. package/dist/components/calcite-popover-manager.js +3 -4
  324. package/dist/components/calcite-radio-button-group.js +3 -4
  325. package/dist/components/calcite-radio-button.js +8 -5
  326. package/dist/components/calcite-radio-group-item.js +3 -4
  327. package/dist/components/calcite-radio-group.js +9 -6
  328. package/dist/components/calcite-rating.js +13 -8
  329. package/dist/components/calcite-select.js +8 -5
  330. package/dist/components/calcite-shell-center-row.js +3 -4
  331. package/dist/components/calcite-shell-panel.js +3 -4
  332. package/dist/components/calcite-shell.js +3 -4
  333. package/dist/components/calcite-slider.js +6 -5
  334. package/dist/components/calcite-sortable-list.js +8 -5
  335. package/dist/components/calcite-split-button.js +29 -7
  336. package/dist/components/calcite-stepper-item.js +10 -7
  337. package/dist/components/calcite-stepper.js +3 -4
  338. package/dist/components/calcite-tile-select-group.js +17 -5
  339. package/dist/components/calcite-tile-select.js +8 -5
  340. package/dist/components/calcite-tip-group.js +3 -4
  341. package/dist/components/calcite-tip-manager.js +3 -4
  342. package/dist/components/calcite-tip.js +3 -4
  343. package/dist/components/calcite-tooltip.js +8 -5
  344. package/dist/components/calcite-tree-item.js +3 -4
  345. package/dist/components/calcite-tree.js +3 -4
  346. package/dist/components/calcite-value-list-item.js +8 -5
  347. package/dist/components/calcite-value-list.js +10 -10
  348. package/dist/components/checkbox.js +8 -5
  349. package/dist/components/chip.js +3 -4
  350. package/dist/components/color-picker-hex-input.js +3 -4
  351. package/dist/components/color-picker-swatch.js +3 -4
  352. package/dist/components/date-picker-day.js +12 -6
  353. package/dist/components/date-picker-month-header.js +3 -4
  354. package/dist/components/date-picker-month.js +3 -4
  355. package/dist/components/date-picker.js +3 -4
  356. package/dist/components/dropdown.js +34 -15
  357. package/dist/components/filter.js +21 -25
  358. package/dist/components/graph.js +3 -4
  359. package/dist/components/handle.js +3 -4
  360. package/dist/components/icon.js +3 -4
  361. package/dist/components/input.js +8 -5
  362. package/dist/components/interactive.js +42 -0
  363. package/dist/components/label2.js +9 -6
  364. package/dist/components/link.js +9 -6
  365. package/dist/components/loader.js +3 -4
  366. package/dist/components/pick-list-item.js +8 -8
  367. package/dist/components/popover.js +8 -5
  368. package/dist/components/popper.js +16 -3
  369. package/dist/components/progress.js +3 -4
  370. package/dist/components/scrim.js +3 -4
  371. package/dist/components/shared-list-render.js +33 -9
  372. package/dist/components/switch.js +8 -13
  373. package/dist/components/tab-nav.js +3 -4
  374. package/dist/components/tab-title.js +9 -7
  375. package/dist/components/tab.js +3 -4
  376. package/dist/components/tabs.js +3 -4
  377. package/dist/components/tile.js +8 -5
  378. package/dist/components/time-picker.js +3 -4
  379. package/dist/components/tooltip-manager.js +3 -4
  380. package/dist/components/utils2.js +1 -2
  381. package/dist/custom-elements/index.js +529 -232
  382. package/dist/esm/{ExpandToggle-ed0ae55a.js → ExpandToggle-af224c1e.js} +1 -1
  383. package/dist/esm/{Heading-8289fa96.js → Heading-d5f1710a.js} +1 -1
  384. package/dist/esm/calcite-accordion_2.entry.js +3 -3
  385. package/dist/esm/calcite-action-bar.entry.js +4 -4
  386. package/dist/esm/calcite-action-group.entry.js +3 -3
  387. package/dist/esm/calcite-action-menu.entry.js +3 -3
  388. package/dist/esm/calcite-action-pad.entry.js +4 -4
  389. package/dist/esm/calcite-action.entry.js +7 -3
  390. package/dist/esm/calcite-alert.entry.js +2 -2
  391. package/dist/esm/calcite-avatar.entry.js +2 -2
  392. package/dist/esm/calcite-block_2.entry.js +19 -10
  393. package/dist/esm/calcite-button.entry.js +7 -3
  394. package/dist/esm/calcite-card.entry.js +3 -3
  395. package/dist/esm/calcite-checkbox.entry.js +8 -4
  396. package/dist/esm/calcite-chip.entry.js +3 -3
  397. package/dist/esm/calcite-color-picker_3.entry.js +19 -6
  398. package/dist/esm/calcite-combobox_3.entry.js +40 -36
  399. package/dist/esm/calcite-date-picker_4.entry.js +16 -9
  400. package/dist/esm/calcite-dropdown_3.entry.js +34 -15
  401. package/dist/esm/calcite-fab.entry.js +12 -3
  402. package/dist/esm/calcite-filter.entry.js +14 -5
  403. package/dist/esm/calcite-flow.entry.js +2 -2
  404. package/dist/esm/calcite-graph_2.entry.js +7 -5
  405. package/dist/esm/calcite-handle.entry.js +2 -2
  406. package/dist/esm/calcite-icon.entry.js +2 -2
  407. package/dist/esm/calcite-inline-editable.entry.js +12 -10
  408. package/dist/esm/calcite-input-date-picker.entry.js +33 -13
  409. package/dist/esm/calcite-input-message.entry.js +2 -2
  410. package/dist/esm/calcite-input-time-picker_2.entry.js +22 -6
  411. package/dist/esm/calcite-input.entry.js +8 -4
  412. package/dist/esm/calcite-label.entry.js +8 -4
  413. package/dist/esm/calcite-link.entry.js +8 -4
  414. package/dist/esm/calcite-list_3.entry.js +34 -8
  415. package/dist/esm/calcite-loader.entry.js +2 -2
  416. package/dist/esm/calcite-modal.entry.js +3 -3
  417. package/dist/esm/calcite-notice.entry.js +3 -3
  418. package/dist/esm/calcite-option_3.entry.js +10 -6
  419. package/dist/esm/calcite-pagination.entry.js +2 -2
  420. package/dist/esm/calcite-panel.entry.js +16 -7
  421. package/dist/esm/calcite-pick-list_3.entry.js +16 -12
  422. package/dist/esm/calcite-popover_2.entry.js +10 -6
  423. package/dist/esm/calcite-progress.entry.js +2 -2
  424. package/dist/esm/calcite-radio-button-group.entry.js +2 -2
  425. package/dist/esm/calcite-radio-button.entry.js +8 -4
  426. package/dist/esm/calcite-radio-group_2.entry.js +10 -6
  427. package/dist/esm/calcite-rating.entry.js +13 -7
  428. package/dist/esm/calcite-scrim.entry.js +2 -2
  429. package/dist/esm/calcite-shell_3.entry.js +5 -5
  430. package/dist/esm/calcite-sortable-list.entry.js +7 -3
  431. package/dist/esm/calcite-split-button.entry.js +27 -4
  432. package/dist/esm/calcite-stepper_2.entry.js +9 -5
  433. package/dist/esm/calcite-switch.entry.js +8 -11
  434. package/dist/esm/calcite-tab_4.entry.js +11 -8
  435. package/dist/esm/calcite-tile-select_2.entry.js +20 -5
  436. package/dist/esm/calcite-tile.entry.js +8 -4
  437. package/dist/esm/calcite-tip_3.entry.js +6 -6
  438. package/dist/esm/calcite-tooltip_2.entry.js +9 -5
  439. package/dist/esm/calcite-tree_2.entry.js +4 -4
  440. package/dist/esm/calcite-value-list_2.entry.js +16 -11
  441. package/dist/esm/calcite.js +3 -3
  442. package/dist/esm/{conditionalSlot-c4b6c8b1.js → conditionalSlot-67f579ff.js} +1 -1
  443. package/dist/esm/{form-d07b2414.js → form-5e4609eb.js} +1 -1
  444. package/dist/esm/{index-0fefddd1.js → index-bd94948c.js} +4 -1
  445. package/dist/esm/interactive-48b5cc0f.js +42 -0
  446. package/dist/esm/loader.js +3 -3
  447. package/dist/esm/{popper-ae231554.js → popper-da45ec93.js} +16 -3
  448. package/dist/esm/{resources-431fa051.js → resources-73dac782.js} +1 -1
  449. package/dist/esm/{resources-999109fa.js → resources-cbfcf4a3.js} +34 -10
  450. package/dist/esm-es5/{ExpandToggle-ed0ae55a.js → ExpandToggle-af224c1e.js} +1 -1
  451. package/dist/esm-es5/{Heading-8289fa96.js → Heading-d5f1710a.js} +1 -1
  452. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  453. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  454. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  455. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  456. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  457. package/dist/esm-es5/calcite-action.entry.js +1 -1
  458. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  459. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  460. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  461. package/dist/esm-es5/calcite-button.entry.js +1 -1
  462. package/dist/esm-es5/calcite-card.entry.js +1 -1
  463. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  464. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  465. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  466. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  467. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  468. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  469. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  470. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  471. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  472. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  473. package/dist/esm-es5/calcite-handle.entry.js +1 -1
  474. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  475. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  476. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  477. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  478. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  479. package/dist/esm-es5/calcite-input.entry.js +1 -1
  480. package/dist/esm-es5/calcite-label.entry.js +1 -1
  481. package/dist/esm-es5/calcite-link.entry.js +2 -2
  482. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  483. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  484. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  485. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  486. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  487. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  488. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  489. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  490. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  491. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  492. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  493. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  494. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  495. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  496. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  497. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  498. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  499. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  500. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  501. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  502. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  503. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  504. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  505. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  506. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  507. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  508. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  509. package/dist/esm-es5/calcite.js +1 -1
  510. package/dist/esm-es5/{conditionalSlot-c4b6c8b1.js → conditionalSlot-67f579ff.js} +1 -1
  511. package/dist/esm-es5/{form-d07b2414.js → form-5e4609eb.js} +1 -1
  512. package/dist/esm-es5/{index-0fefddd1.js → index-bd94948c.js} +1 -1
  513. package/dist/esm-es5/interactive-48b5cc0f.js +5 -0
  514. package/dist/esm-es5/loader.js +1 -1
  515. package/dist/esm-es5/popper-da45ec93.js +5 -0
  516. package/dist/esm-es5/{resources-431fa051.js → resources-73dac782.js} +2 -2
  517. package/dist/esm-es5/resources-cbfcf4a3.js +5 -0
  518. package/dist/extras/docs-json.json +115 -24
  519. package/dist/types/components/action/action.d.ts +3 -1
  520. package/dist/types/components/block/block.d.ts +3 -1
  521. package/dist/types/components/button/button.d.ts +3 -1
  522. package/dist/types/components/checkbox/checkbox.d.ts +3 -1
  523. package/dist/types/components/color-picker/color-picker.d.ts +9 -1
  524. package/dist/types/components/combobox/combobox.d.ts +9 -5
  525. package/dist/types/components/combobox/resources.d.ts +0 -1
  526. package/dist/types/components/combobox-item/combobox-item.d.ts +3 -1
  527. package/dist/types/components/date-picker-day/date-picker-day.d.ts +4 -1
  528. package/dist/types/components/dropdown/dropdown.d.ts +11 -4
  529. package/dist/types/components/dropdown/interfaces.d.ts +0 -2
  530. package/dist/types/components/dropdown/resources.d.ts +0 -1
  531. package/dist/types/components/fab/fab.d.ts +3 -1
  532. package/dist/types/components/filter/filter.d.ts +3 -1
  533. package/dist/types/components/inline-editable/inline-editable.d.ts +4 -1
  534. package/dist/types/components/input/input.d.ts +3 -1
  535. package/dist/types/components/input-date-picker/input-date-picker.d.ts +9 -2
  536. package/dist/types/components/input-time-picker/input-time-picker.d.ts +5 -1
  537. package/dist/types/components/label/label.d.ts +5 -1
  538. package/dist/types/components/link/link.d.ts +3 -1
  539. package/dist/types/components/list/list.d.ts +7 -1
  540. package/dist/types/components/list-item/list-item.d.ts +3 -1
  541. package/dist/types/components/panel/panel.d.ts +3 -1
  542. package/dist/types/components/pick-list/pick-list.d.ts +3 -1
  543. package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -0
  544. package/dist/types/components/pick-list-item/pick-list-item.d.ts +4 -2
  545. package/dist/types/components/radio-button/radio-button.d.ts +3 -1
  546. package/dist/types/components/radio-group/radio-group.d.ts +3 -1
  547. package/dist/types/components/rating/rating.d.ts +3 -1
  548. package/dist/types/components/select/select.d.ts +3 -1
  549. package/dist/types/components/slider/slider.d.ts +2 -1
  550. package/dist/types/components/sortable-list/sortable-list.d.ts +3 -1
  551. package/dist/types/components/split-button/split-button.d.ts +5 -1
  552. package/dist/types/components/stepper-item/stepper-item.d.ts +3 -1
  553. package/dist/types/components/switch/switch.d.ts +3 -4
  554. package/dist/types/components/tab-title/tab-title.d.ts +3 -1
  555. package/dist/types/components/tile/tile.d.ts +3 -1
  556. package/dist/types/components/tile-select/tile-select.d.ts +3 -1
  557. package/dist/types/components/tile-select-group/tile-select-group.d.ts +6 -1
  558. package/dist/types/components/value-list/value-list.d.ts +3 -1
  559. package/dist/types/components/value-list-item/value-list-item.d.ts +4 -2
  560. package/dist/types/components.d.ts +56 -6
  561. package/dist/types/utils/interactive.d.ts +28 -0
  562. package/dist/types/utils/popper.d.ts +8 -1
  563. package/hydrate/index.js +446 -144
  564. package/package.json +9 -9
  565. package/dist/calcite/p-02b4bcec.entry.js +0 -5
  566. package/dist/calcite/p-02cc50b9.entry.js +0 -5
  567. package/dist/calcite/p-0aee798e.entry.js +0 -5
  568. package/dist/calcite/p-0d09d73b.system.entry.js +0 -5
  569. package/dist/calcite/p-11413626.system.entry.js +0 -5
  570. package/dist/calcite/p-125c9edc.entry.js +0 -5
  571. package/dist/calcite/p-12a4eac6.system.entry.js +0 -5
  572. package/dist/calcite/p-1370cabf.entry.js +0 -5
  573. package/dist/calcite/p-1a34e1df.system.entry.js +0 -5
  574. package/dist/calcite/p-1c1ad353.system.entry.js +0 -5
  575. package/dist/calcite/p-236b8f2e.system.entry.js +0 -5
  576. package/dist/calcite/p-26bcdb22.entry.js +0 -5
  577. package/dist/calcite/p-2c293ed2.entry.js +0 -5
  578. package/dist/calcite/p-322195bf.system.entry.js +0 -5
  579. package/dist/calcite/p-35461165.system.entry.js +0 -5
  580. package/dist/calcite/p-362522e5.js +0 -5
  581. package/dist/calcite/p-38c5a816.system.entry.js +0 -5
  582. package/dist/calcite/p-3e522dbe.entry.js +0 -5
  583. package/dist/calcite/p-43ec3d32.system.entry.js +0 -5
  584. package/dist/calcite/p-44dcac16.entry.js +0 -5
  585. package/dist/calcite/p-4cd8449b.system.entry.js +0 -5
  586. package/dist/calcite/p-5079ec88.entry.js +0 -5
  587. package/dist/calcite/p-514f6d94.system.entry.js +0 -5
  588. package/dist/calcite/p-55fa7908.entry.js +0 -5
  589. package/dist/calcite/p-563bce5c.entry.js +0 -5
  590. package/dist/calcite/p-57186636.system.entry.js +0 -5
  591. package/dist/calcite/p-5a7b1bd1.system.entry.js +0 -5
  592. package/dist/calcite/p-5c425028.entry.js +0 -5
  593. package/dist/calcite/p-5ecd3b72.system.entry.js +0 -5
  594. package/dist/calcite/p-633a2c7f.entry.js +0 -5
  595. package/dist/calcite/p-640a1577.system.entry.js +0 -5
  596. package/dist/calcite/p-673a3cd9.entry.js +0 -5
  597. package/dist/calcite/p-6a3357f9.system.js +0 -5
  598. package/dist/calcite/p-71d1bfb2.entry.js +0 -5
  599. package/dist/calcite/p-743597e4.entry.js +0 -5
  600. package/dist/calcite/p-74b8f15f.entry.js +0 -5
  601. package/dist/calcite/p-77564c0d.entry.js +0 -5
  602. package/dist/calcite/p-793659d0.entry.js +0 -5
  603. package/dist/calcite/p-7a0e8fab.system.entry.js +0 -5
  604. package/dist/calcite/p-7ccf6273.entry.js +0 -5
  605. package/dist/calcite/p-7d9f20b8.entry.js +0 -5
  606. package/dist/calcite/p-7dfe915f.entry.js +0 -5
  607. package/dist/calcite/p-802a05a2.entry.js +0 -5
  608. package/dist/calcite/p-8046175f.entry.js +0 -5
  609. package/dist/calcite/p-80ab216e.entry.js +0 -5
  610. package/dist/calcite/p-818b3ac7.entry.js +0 -5
  611. package/dist/calcite/p-81a3de30.system.entry.js +0 -5
  612. package/dist/calcite/p-82c142d8.entry.js +0 -5
  613. package/dist/calcite/p-84f8db8e.entry.js +0 -5
  614. package/dist/calcite/p-8683663f.entry.js +0 -5
  615. package/dist/calcite/p-8c59090d.entry.js +0 -5
  616. package/dist/calcite/p-8f93be14.system.js +0 -5
  617. package/dist/calcite/p-91b23d79.system.entry.js +0 -5
  618. package/dist/calcite/p-949a2fcd.entry.js +0 -5
  619. package/dist/calcite/p-99da584e.system.entry.js +0 -5
  620. package/dist/calcite/p-9c86f528.entry.js +0 -5
  621. package/dist/calcite/p-9d102b23.system.entry.js +0 -5
  622. package/dist/calcite/p-a0ffad45.entry.js +0 -5
  623. package/dist/calcite/p-a5397c9d.entry.js +0 -5
  624. package/dist/calcite/p-a5e8d728.entry.js +0 -5
  625. package/dist/calcite/p-a6686c30.system.entry.js +0 -5
  626. package/dist/calcite/p-ad7fbabd.entry.js +0 -5
  627. package/dist/calcite/p-adfa48bc.entry.js +0 -5
  628. package/dist/calcite/p-b03b03d5.entry.js +0 -5
  629. package/dist/calcite/p-b55643f5.entry.js +0 -5
  630. package/dist/calcite/p-b58cdaca.entry.js +0 -5
  631. package/dist/calcite/p-b85064fc.entry.js +0 -5
  632. package/dist/calcite/p-b88fa028.system.entry.js +0 -5
  633. package/dist/calcite/p-b8ce64ec.entry.js +0 -5
  634. package/dist/calcite/p-badc48d2.entry.js +0 -5
  635. package/dist/calcite/p-bfaed65e.entry.js +0 -5
  636. package/dist/calcite/p-c1018bb4.system.entry.js +0 -5
  637. package/dist/calcite/p-cc894f09.entry.js +0 -5
  638. package/dist/calcite/p-cfe2e6ee.system.entry.js +0 -5
  639. package/dist/calcite/p-d08d1450.entry.js +0 -5
  640. package/dist/calcite/p-d2a1cbbf.entry.js +0 -5
  641. package/dist/calcite/p-d359def7.system.entry.js +0 -5
  642. package/dist/calcite/p-d44165c7.entry.js +0 -5
  643. package/dist/calcite/p-d648a677.entry.js +0 -5
  644. package/dist/calcite/p-dcf17450.system.entry.js +0 -5
  645. package/dist/calcite/p-de562f92.system.js +0 -5
  646. package/dist/calcite/p-e2047621.system.js +0 -5
  647. package/dist/calcite/p-e23de208.entry.js +0 -5
  648. package/dist/calcite/p-e9460f3c.js +0 -5
  649. package/dist/calcite/p-eeb91710.js +0 -5
  650. package/dist/calcite/p-efb21590.system.entry.js +0 -5
  651. package/dist/calcite/p-f20b0a41.system.entry.js +0 -5
  652. package/dist/calcite/p-f542ba26.entry.js +0 -5
  653. package/dist/calcite/p-f681fbba.entry.js +0 -5
  654. package/dist/calcite/p-f6d994ff.entry.js +0 -5
  655. package/dist/calcite/p-f9d1a58e.entry.js +0 -5
  656. package/dist/calcite/p-fbbf933d.system.entry.js +0 -5
  657. package/dist/calcite/p-fc11382c.system.entry.js +0 -5
  658. package/dist/esm-es5/popper-ae231554.js +0 -5
  659. package/dist/esm-es5/resources-999109fa.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 a,h as i,g as e}from"./p-362522e5.js";import{g as o}from"./p-8f3a3e4e.js";import{c as n,d as r}from"./p-f56ce7ea.js";import"./p-8a63221d.js";import"./p-0a5d059d.js";let s=class{constructor(i){t(this,i),this.calciteCardSelect=a(this,"calciteCardSelect",7),this.loading=!1,this.selected=!1,this.selectable=!1,this.intlLoading="Loading",this.intlSelect="Select",this.intlDeselect="Deselect",this.cardSelectClick=()=>{this.selectCard()},this.cardSelectKeyDown=t=>{switch(t.key){case" ":case"Enter":this.selectCard(),t.preventDefault()}}}connectedCallback(){n(this)}disonnectedCallback(){r(this)}render(){return i("div",{class:"calcite-card-container"},this.loading?i("div",{class:"calcite-card-loader-container"},i("calcite-loader",{active:!0,label:this.intlLoading})):null,i("section",{"aria-busy":this.loading.toString(),class:{container:!0}},this.selectable?this.renderCheckbox():null,this.renderThumbnail(),this.renderHeader(),i("div",{class:"card-content"},i("slot",null)),this.renderFooter()))}selectCard(){this.selected=!this.selected,this.calciteCardSelect.emit()}renderThumbnail(){return o(this.el,"thumbnail")?i("div",{class:"thumbnail-wrapper",key:"thumbnail-wrapper"},i("slot",{name:"thumbnail"})):null}renderCheckbox(){return i("calcite-label",{class:"checkbox-wrapper",onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown},i("calcite-checkbox",{checked:this.selected,label:this.selected?this.intlDeselect:this.intlSelect}))}renderHeader(){const{el:t}=this,a=o(t,"title"),e=o(t,"subtitle");return a||e?i("header",{class:"header"},i("slot",{name:"title"}),i("slot",{name:"subtitle"})):null}renderFooter(){const{el:t}=this,a=o(t,"footer-leading"),e=o(t,"footer-trailing");return a||e?i("footer",{class:"footer"},i("slot",{name:"footer-leading"}),i("slot",{name:"footer-trailing"})):null}get el(){return e(this)}};s.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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-width:100%}:host .calcite-card-container{position:relative;display:-ms-flexbox;display:flex;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-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);border-radius:var(--calcite-border-radius-base)}:host .calcite-card-container:hover{--tw-shadow:0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 16px 0 var(--tw-shadow-color), 0 2px 8px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);z-index:1}:host .calcite-card-container:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition-duration:75ms;transition-duration:75ms;z-index:1}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}:host([loading]) .calcite-card-container *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header,.footer{display:-ms-flexbox;display:flex;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.75rem;padding-bottom:0.25rem}.header{-ms-flex-direction:column;flex-direction:column}.footer{margin-top:auto;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.75rem}.card-content{padding:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3)}:host([selectable]) .calcite-card-container:active{--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([selected]) .calcite-card-container{border-color:var(--calcite-ui-brand)}slot[name=title]::slotted(*),*::slotted([slot=title]){margin:0px;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;margin-top:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-width:100%;max-width:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;-webkit-margin-end:auto;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){-ms-flex-item-align:center;align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.thumbnail-wrapper{font-size:var(--calcite-font-size-0);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;top:0.5rem;inset-inline-end:0.5rem}";export{s as calcite_card}
@@ -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 a,h as t,g as i}from"./p-362522e5.js";import{c as e}from"./p-0a5d059d.js";let n=class{constructor(t){a(this,t),this.panelCount=0,this.flowDirection=null,this.panels=[],this.getFlowDirection=(a,t)=>a&&t>1||a>1?t<a?"retreating":"advancing":null,this.updateFlowProps=()=>{const{panels:a}=this,t=Array.from(this.el.querySelectorAll("calcite-panel")),i=a.length,e=t.length,n=t[e-1],r=t[e-2];if(e&&n&&t.forEach((a=>{a.showBackButton=e>1,a.hidden=a!==n})),r&&(r.menuOpen=!1),this.panels=t,i!==e){const a=this.getFlowDirection(i,e);this.panelCount=e,this.flowDirection=a}},this.panelItemMutationObserver=e("mutation",this.updateFlowProps)}async back(){const a=this.el.querySelector("calcite-panel:last-child");if(a)return(a.beforeBack?a.beforeBack:()=>Promise.resolve()).call(a).then((()=>(a.remove(),a)))}connectedCallback(){var a;null===(a=this.panelItemMutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}disconnectedCallback(){var a;null===(a=this.panelItemMutationObserver)||void 0===a||a.disconnect()}handleCalcitePanelBackClick(){this.back()}render(){const{flowDirection:a,panelCount:i}=this;return t("div",{class:{frame:!0,"frame--advancing":"advancing"===a,"frame--retreating":"retreating"===a},key:i},t("slot",null))}get el(){return i(this)}};n.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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;overflow:hidden}:host .frame{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;padding:0px}:host ::slotted(calcite-panel){height:100%}:host ::slotted(.calcite-match-height:last-child){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host .frame--advancing{-webkit-animation:calcite-frame-advance var(--calcite-animation-timing);animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{-webkit-animation:calcite-frame-retreat var(--calcite-animation-timing);animation:calcite-frame-retreat var(--calcite-animation-timing)}@-webkit-keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@-webkit-keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}";export{n as calcite_flow}
@@ -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 a,g as e}from"./p-362522e5.js";let n=class{constructor(a){t(this,a),this.calciteSplitButtonPrimaryClick=i(this,"calciteSplitButtonPrimaryClick",7),this.calciteSplitButtonSecondaryClick=i(this,"calciteSplitButtonSecondaryClick",7),this.appearance="solid",this.color="blue",this.disabled=!1,this.active=!1,this.dropdownIconType="chevron",this.loading=!1,this.overlayPositioning="absolute",this.scale="m",this.width="auto",this.calciteSplitButtonPrimaryClickHandler=t=>this.calciteSplitButtonPrimaryClick.emit(t),this.calciteSplitButtonSecondaryClickHandler=t=>this.calciteSplitButtonSecondaryClick.emit(t)}render(){return a("div",{class:{"split-button__container":!0,"width-auto":"auto"===this.width,"width-half":"half"===this.width,"width-full":"full"===this.width}},a("calcite-button",{appearance:this.appearance,color:this.color,disabled:this.disabled,"icon-end":this.primaryIconEnd?this.primaryIconEnd:null,"icon-start":this.primaryIconStart?this.primaryIconStart:null,iconFlipRtl:this.primaryIconFlipRtl?this.primaryIconFlipRtl:null,label:this.primaryLabel,loading:this.loading,onClick:this.calciteSplitButtonPrimaryClickHandler,scale:this.scale,splitChild:"primary",type:"button",width:"auto"===this.width?"auto":"full"},this.primaryText),a("div",{class:"split-button__divider-container"},a("div",{class:"split-button__divider"})),a("calcite-dropdown",{active:this.active,onClick:this.calciteSplitButtonSecondaryClickHandler,overlayPositioning:this.overlayPositioning,placement:"bottom-trailing",scale:this.scale,width:this.scale},a("calcite-button",{appearance:this.appearance,color:this.color,disabled:this.disabled,"icon-start":this.dropdownIcon,label:this.dropdownLabel,scale:this.scale,slot:"dropdown-trigger",splitChild:"secondary",type:"button"}),a("slot",null)))}get dropdownIcon(){return"chevron"===this.dropdownIconType?"chevronDown":"caret"===this.dropdownIconType?"caretDown":"ellipsis"===this.dropdownIconType?"ellipsis":"handle-vertical"}get el(){return e(this)}};n.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:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-block}:host .split-button__container{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .split-button__container>calcite-dropdown>calcite-button{height:100%;vertical-align:top}:host([appearance=solid]):host([color=blue]){--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=red]){--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=neutral]){--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=solid]):host([color=inverse]){--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=transparent]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=transparent]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=transparent]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=transparent]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=clear]),:host([appearance=transparent]){--calcite-split-button-background:transparent}:host([appearance=outline]){--calcite-split-button-background:var(--calcite-ui-foreground-1)}:host([appearance=clear]):host([color=blue]),:host([appearance=outline]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=clear]):host([color=red]),:host([appearance=outline]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=clear]):host([color=neutral]),:host([appearance=outline]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-foreground-3)}:host([appearance=clear]):host([color=inverse]),:host([appearance=outline]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-inverse)}.width-auto{width:auto}.width-half{width:50%}.width-full{width:100%}.split-button__divider-container{display:-ms-flexbox;display:flex;width:1px;-ms-flex-align:stretch;align-items:stretch;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:var(--calcite-split-button-background)}.split-button__divider{margin-top:0.25rem;margin-bottom:0.25rem;display:inline-block;width:1px;background-color:var(--calcite-split-button-divider)}:host([appearance=outline]) .split-button__divider-container,:host([appearance=clear]) .split-button__divider-container{border-top:1px solid var(--calcite-split-button-divider);border-bottom:1px solid var(--calcite-split-button-divider)}:host([appearance=outline]):hover .split-button__divider-container,:host([appearance=clear]):hover .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:hover) .split-button__divider-container,:host([appearance=clear]:hover) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:focus-within):host([color=blue]),:host([appearance=clear]:focus-within):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}:host([appearance=outline]:focus-within):host([color=red]),:host([appearance=clear]:focus-within):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}:host([appearance=outline]:focus-within) .split-button__divider-container,:host([appearance=clear]:focus-within) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([disabled]) .split-button__divider-container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}";export{n as calcite_split_button}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function o(t){try{c(i["throw"](t))}catch(t){r(t)}}function c(t){t.done?a(t.value):n(t.value).then(s,o)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(a)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-6a3357f9.system.js","./p-5d52246b.system.js","./p-daf5f04c.system.js","./p-c9f280c1.system.js","./p-e2047621.system.js","./p-bb401f25.system.js","./p-3c34f20d.system.js","./p-ec9bab33.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,a,i,n,r,s,o,c,l,p,u,h,d,f,m,v,g,y,w,b,D,k;return{setters:[function(t){e=t.r;a=t.c;i=t.h;n=t.H;r=t.g},function(t){s=t.T;o=t.d;c=t.a;l=t.b;p=t.g;u=t.s;h=t.p;d=t.i},function(t){f=t.c;m=t.d;v=t.g},function(t){g=t.c;y=t.d;w=t.H},function(t){b=t.u;D=t.C;k=t.c},function(){},function(){},function(){},function(){}],execute:function(){var x="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .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 .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);pointer-events:none;visibility:hidden}:host([active]) .menu-container{pointer-events:auto;visibility:visible}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var A="bottom-leading";var I=t("calcite_input_date_picker",function(){function t(t){var i=this;e(this,t);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",7);this.calciteInputDatePickerChange=a(this,"calciteInputDatePickerChange",7);this.calciteInputDatePickerOpen=a(this,"calciteInputDatePickerOpen",7);this.calciteInputDatePickerClose=a(this,"calciteInputDatePickerClose",7);this.disabled=false;this.active=false;this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.intlYear=s.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.required=false;this.overlayPositioning="absolute";this.proximitySelectionDisabled=false;this.layout="horizontal";this.focusedInput="start";this.activeTransitionProp="opacity";this.transitionEnd=function(t){if(t.propertyName===i.activeTransitionProp){i.active?i.calciteInputDatePickerOpen.emit():i.calciteInputDatePickerClose.emit()}};this.setStartInput=function(t){i.startInput=t};this.setEndInput=function(t){i.endInput=t};this.deactivate=function(){i.active=false};this.keyUpHandler=function(t){if(t.key==="Escape"){i.active=false}};this.inputBlur=function(t){i.blur(t.detail)};this.startInputFocus=function(){i.active=true;i.focusedInput="start"};this.endInputFocus=function(){i.active=true;i.focusedInput="end"};this.inputInput=function(t){i.input(t.detail.value)};this.setMenuEl=function(t){if(t){i.menuEl=t;i.createPopper()}};this.setStartWrapper=function(t){i.startWrapper=t;i.setReferenceEl()};this.setEndWrapper=function(t){i.endWrapper=t;i.setReferenceEl()};this.handleDateChange=function(t){if(i.range){return}i.value=o(t.detail)};this.handleDateRangeChange=function(t){var e,a;if(!i.range||!t.detail){return}var n=t.detail,r=n.startDate,s=n.endDate;i.start=o(r);i.end=o(s);i.value=[i.start,i.end];if(i.shouldFocusRangeEnd()){(e=i.endInput)===null||e===void 0?void 0:e.setFocus()}else if(i.shouldFocusRangeStart()){(a=i.startInput)===null||a===void 0?void 0:a.setFocus()}}}t.prototype.valueHandler=function(t){if(Array.isArray(t)){this.valueAsDate=t.map((function(t){return c(t)}));this.start=t[0];this.end=t[1]}else if(t){this.valueAsDate=c(t);this.start="";this.end=""}else{this.valueAsDate=undefined;this.start=undefined;this.end=undefined}};t.prototype.onMinChanged=function(t){this.minAsDate=c(t)};t.prototype.onMaxChanged=function(t){this.maxAsDate=c(t)};t.prototype.activeHandler=function(){this.reposition()};t.prototype.handleDateOrRangeChange=function(){this.calciteInputDatePickerChange.emit()};t.prototype.calciteDaySelectHandler=function(){if(this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()){return}this.active=false};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.startInput)===null||t===void 0?void 0:t.setFocus();return[2]}))}))};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,i,n;return __generator(this,(function(r){switch(r.label){case 0:t=this,e=t.popper,a=t.menuEl;i=this.getModifiers();if(!e)return[3,2];return[4,b({el:a,modifiers:i,placement:A,popper:e})];case 1:n=r.sent();return[3,3];case 2:n=this.createPopper();r.label=3;case 3:n;return[2]}}))}))};t.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(t){return c(t)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=c(this.value);this.start="";this.end=""}if(this.start){this.startAsDate=c(this.start)}if(this.end){this.endAsDate=c(this.end)}if(this.min){this.minAsDate=c(this.min)}if(this.max){this.maxAsDate=c(this.max)}this.createPopper();f(this);g(this)};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadLocaleData()];case 1:t.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};t.prototype.disconnectedCallback=function(){this.destroyPopper();m(this);y(this)};t.prototype.render=function(){var t;var e,a;var r=this.disabled;var s=l(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var o=this.range?l(this.endAsDate,this.minAsDate,this.maxAsDate):null;var c=o?o.toLocaleDateString(this.locale):"";var p=s?s.toLocaleDateString(this.locale):"";return i(n,{onBlur:this.deactivate,onKeyUp:this.keyUpHandler,role:"application"},this.localeData&&i("div",{"aria-expanded":this.active.toString(),class:"input-container",role:"application"},i("div",{class:"input-wrapper",ref:this.setStartWrapper},i("calcite-input",{class:"input ".concat(this.layout==="vertical"&&this.range?"no-bottom-border":""),disabled:r,icon:"calendar",label:v(this),"number-button-type":"none",onCalciteInputBlur:this.inputBlur,onCalciteInputFocus:this.startInputFocus,onCalciteInputInput:this.inputInput,placeholder:(e=this.localeData)===null||e===void 0?void 0:e.placeholder,ref:this.setStartInput,scale:this.scale,type:"text",value:p})),i("div",{"aria-hidden":(!this.active).toString(),class:"menu-container",ref:this.setMenuEl},i("div",{class:(t={},t["calendar-picker-wrapper"]=true,t["calendar-picker-wrapper--end"]=this.focusedInput==="end",t[D.animation]=true,t[D.animationActive]=this.active,t),onTransitionEnd:this.transitionEnd},i("calcite-date-picker",{activeRange:this.focusedInput,endAsDate:this.endAsDate,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,locale:this.locale,max:this.max,maxAsDate:this.maxAsDate,min:this.min,minAsDate:this.minAsDate,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,startAsDate:this.startAsDate,tabIndex:0,valueAsDate:this.valueAsDate}))),this.range&&this.layout==="horizontal"&&i("div",{class:"horizontal-arrow-container"},i("calcite-icon",{flipRtl:true,icon:"arrow-right",scale:"s"})),this.range&&this.layout==="vertical"&&this.scale!=="s"&&i("div",{class:"vertical-arrow-container"},i("calcite-icon",{icon:"arrow-down",scale:"s"})),this.range&&i("div",{class:"input-wrapper",ref:this.setEndWrapper},i("calcite-input",{class:{input:true,"border-top-color-one":this.layout==="vertical"&&this.range},disabled:r,icon:"calendar","number-button-type":"none",onCalciteInputBlur:this.inputBlur,onCalciteInputFocus:this.endInputFocus,onCalciteInputInput:this.inputInput,placeholder:(a=this.localeData)===null||a===void 0?void 0:a.placeholder,ref:this.setEndInput,scale:this.scale,type:"text",value:c}))),i(w,{component:this}))};t.prototype.setReferenceEl=function(){var t=this,e=t.focusedInput,a=t.layout,i=t.endWrapper,n=t.startWrapper;this.referenceEl=e==="end"||a==="vertical"?i||n:n||i;this.createPopper()};t.prototype.onLabelClick=function(){this.setFocus()};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,a=t.referenceEl,i=t.overlayPositioning;if(!e||!a){return}var n=this.getModifiers();this.popper=k({el:e,modifiers:n,overlayPositioning:i,placement:A,referenceEl:a})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.startWatcher=function(t){this.startAsDate=c(t)};t.prototype.endWatcher=function(t){this.endAsDate=c(t)};t.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(a){switch(a.label){case 0:t=this.locale;e=this;return[4,p(t)];case 1:e.localeData=a.sent();return[2]}}))}))};t.prototype.clearCurrentValue=function(){if(!this.range){this.value="";return}var t=this.focusedInput;if(t==="start"){this.value=Array.isArray(this.value)?["",this.value[1]||""]:[""];this.start=undefined}else if(t==="end"){this.value=Array.isArray(this.value)?[this.value[0]||"",""]:["",""];this.end=undefined}};t.prototype.input=function(t){var e=this.getDateFromInput(t);if(!e){this.clearCurrentValue();return}if(!this.range){this.value=o(e);this.calciteDatePickerChange.emit(e);return}var a=this.focusedInput;if(a==="start"){if(!this.startAsDate||!u(e,this.startAsDate)){var i=o(e);this.value=Array.isArray(this.value)?[i,this.value[1]||""]:[i];this.start=i;this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}}else if(a==="end"){if(!this.endAsDate||!u(e,this.endAsDate)){var n=o(e);this.value=Array.isArray(this.value)?[this.value[0]||"",n]:["",n];this.end=n;this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}}};t.prototype.blur=function(t){var e=this,a=e.locale,i=e.focusedInput,n=e.endAsDate,r=e.range,s=e.startAsDate,o=e.valueAsDate;var c=this.getDateFromInput(t.value);if(!c){if(!r&&o){t.value=Array.isArray(o)?o[i==="end"?1:0].toLocaleDateString(a):o.toLocaleDateString(a)}else if(i==="start"&&s){t.value=s.toLocaleDateString(a)}else if(i==="end"&&n){t.value=n.toLocaleDateString(a)}}};t.prototype.shouldFocusRangeStart=function(){return!!(this.endAsDate&&!this.startAsDate&&this.focusedInput==="end"&&this.startInput)};t.prototype.shouldFocusRangeEnd=function(){return!!(this.startAsDate&&!this.endAsDate&&this.focusedInput==="start"&&this.endInput)};t.prototype.getDateFromInput=function(t){if(!this.localeData){return false}var e=this.localeData.separator;var a=h(t,this.localeData),i=a.day,n=a.month,r=a.year;var s=i>0;var o=n>-1;var c=new Date(r,n,i);c.setFullYear(r);var l=!isNaN(c.getTime());var p=t.split(e).filter((function(t){return t})).length>2;var u=r.toString().length>0;if(s&&o&&l&&p&&u&&d(c,this.min,this.max)){return c}return false};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueHandler"],min:["onMinChanged"],max:["onMaxChanged"],active:["activeHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return t}());I.style=x}}}));
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{s(n.next(t))}catch(t){o(t)}}function c(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):a(t.value).then(r,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(t){return function(e){return s([t,e])}}function s(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;a=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];a=0}finally{n=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-6a3357f9.system.js","./p-e020662f.system.js","./p-c9f280c1.system.js","./p-daf5f04c.system.js","./p-ec9bab33.system.js"],(function(t){"use strict";var e,i,n,a,o,r,c,s,l,u,h,m;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;o=t.g},function(t){r=t.g},function(t){c=t.c;s=t.d;l=t.H},function(t){u=t.c;h=t.d;m=t.g},function(){}],execute:function(){var f="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;-webkit-transition-property:all;transition-property:all;-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);overflow:hidden;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing)}:host([disabled]){pointer-events:none;cursor:default;opacity:var(--calcite-ui-opacity-disabled)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var d=t("calcite_checkbox",function(){function t(t){var n=this;e(this,t);this.calciteInternalCheckboxBlur=i(this,"calciteInternalCheckboxBlur",7);this.calciteCheckboxChange=i(this,"calciteCheckboxChange",7);this.calciteInternalCheckboxFocus=i(this,"calciteInternalCheckboxFocus",7);this.checked=false;this.disabled=false;this.hovered=false;this.indeterminate=false;this.required=false;this.scale="m";this.checkedPath="M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";this.indeterminatePath="M13 8v1H3V8z";this.getPath=function(){return n.indeterminate?n.indeterminatePath:n.checked?n.checkedPath:""};this.toggle=function(){if(!n.disabled){n.checked=!n.checked;n.setFocus();n.indeterminate=false;n.calciteCheckboxChange.emit()}};this.keyDownHandler=function(t){if(t.key===" "||t.key==="Enter"){n.toggle();t.preventDefault()}};this.clickHandler=function(){n.toggle()};this.onToggleBlur=function(){n.calciteInternalCheckboxBlur.emit(false)};this.onToggleFocus=function(){n.calciteInternalCheckboxFocus.emit(true)};this.onLabelClick=function(){n.toggle()}}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.toggleEl)===null||t===void 0?void 0:t.focus();return[2]}))}))};t.prototype.connectedCallback=function(){this.guid=this.el.id||"calcite-checkbox-".concat(r());u(this);c(this)};t.prototype.disconnectedCallback=function(){h(this);s(this)};t.prototype.render=function(){var t=this;return n(a,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},n("div",{"aria-checked":this.checked.toString(),"aria-label":m(this),class:"toggle",onBlur:this.onToggleBlur,onFocus:this.onToggleFocus,ref:function(e){return t.toggleEl=e},role:"checkbox",tabIndex:this.disabled?undefined:0},n("svg",{class:"check-svg",viewBox:"0 0 16 16"},n("path",{d:this.getPath()})),n("slot",null)),n(l,{component:this}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());d.style=f}}}));
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function s(e){try{f(n["throw"](e))}catch(e){i(e)}}function f(e){e.done?r(e.value):a(e.value).then(o,s)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return f([e,t])}}function f(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{a as getElementDir}from"./dom-e7fa77b9.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var a=t.elements[e];if(!isHTMLElement(a)||!getNodeName(a)){return}Object.assign(a.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){a.removeAttribute(e)}else{a.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var a=t.attributes[e]||{};var i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var o=i.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,o);Object.keys(a).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max;var min=Math.min;var round=Math.round;function getBoundingClientRect(e,t){if(t===void 0){t=false}var r=e.getBoundingClientRect();var n=1;var a=1;if(isHTMLElement(e)&&t){var i=e.offsetHeight;var o=e.offsetWidth;if(o>0){n=round(r.width)/o||1}if(i>0){a=round(r.height)/i||1}}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var a=getParentNode(e);while(isHTMLElement(a)&&["html","body"].indexOf(getNodeName(a))<0){var i=getComputedStyle(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none"){return a}else{a=a.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,r){return max(e,min(t,r))}function withinMaxClamp(e,t,r){var n=within(e,t,r);return n>r?r:n}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,a=e.options;var i=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var c=l?"height":"width";if(!i||!o){return}var p=toPaddingObject(a.padding,r);var u=getLayoutRect(i);var d=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[c]+r.rects.reference[f]-o[f]-r.rects.popper[c];var g=o[f]-r.rects.reference[f];var h=getOffsetParent(i);var y=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var w=p[d];var O=y-u[c]-p[v];var x=y/2-u[c]/2+b;var P=within(w,x,O);var S=f;r.modifiersData[n]=(t={},t[S]=P,t.centerOffset=P-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,a=n===void 0?"[data-popper-arrow]":n;if(a==null){return}if(typeof a==="string"){a=t.elements.popper.querySelector(a);if(!a){return}}if(!contains(t.elements.popper,a)){return}t.elements.arrow=a}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var a=n.devicePixelRatio||1;return{x:round(t*a)/a||0,y:round(r*a)/a||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,p=e.isFixed;var u=o.x,d=u===void 0?0:u,v=o.y,m=v===void 0?0:v;var g=typeof c==="function"?c({x:d,y:m}):{x:d,y:m};d=g.x;m=g.y;var h=o.hasOwnProperty("x");var y=o.hasOwnProperty("y");var b=left;var w=top;var O=window;if(l){var x=getOffsetParent(r);var P="clientHeight";var S="clientWidth";if(x===getWindow(r)){x=getDocumentElement(r);if(getComputedStyle(x).position!=="static"&&s==="absolute"){P="scrollHeight";S="scrollWidth"}}x=x;if(a===top||(a===left||a===right)&&i===end){w=bottom;var E=p&&O.visualViewport?O.visualViewport.height:x[P];m-=E-n.height;m*=f?1:-1}if(a===left||(a===top||a===bottom)&&i===end){b=right;var M=p&&O.visualViewport?O.visualViewport.width:x[S];d-=M-n.width;d*=f?1:-1}}var T=Object.assign({position:s},l&&unsetSides);var C=c===true?roundOffsetsByDPR({x:d,y:m}):{x:d,y:m};d=C.x;m=C.y;if(f){var R;return Object.assign({},T,(R={},R[w]=y?"0":"",R[b]=h?"0":"",R.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",R))}return Object.assign({},T,(t={},t[w]=y?m+"px":"",t[b]=h?d+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,a=n===void 0?true:n,i=r.adaptive,o=i===void 0?true:i,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var a=n.scroll,i=a===void 0?true:a,o=n.resize,s=o===void 0?true:o;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(i){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(i){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var a=r.clientWidth;var i=r.clientHeight;var o=0;var s=0;if(n){a=n.width;i=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){o=n.offsetLeft;s=n.offsetTop}}return{width:a,height:i,x:o+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var a=(t=e.ownerDocument)==null?void 0:t.body;var i=max(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0);var o=max(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(a||r).direction==="rtl"){s+=max(r.clientWidth,a?a.clientWidth:0)-i}return{width:i,height:o,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var a=n===((r=e.ownerDocument)==null?void 0:r.body);var i=getWindow(n);var o=a?[i].concat(i.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(o);return a?s:s.concat(listScrollParents(getParentNode(o)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var a=[].concat(n,[r]);var i=a[0];var o=a.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,i));o.width=o.right-o.left;o.height=o.bottom-o.top;o.x=o.left;o.y=o.top;return o}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var a=n?getBasePlacement(n):null;var i=n?getVariation(n):null;var o=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(a){case top:f={x:o,y:t.y-r.height};break;case bottom:f={x:o,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=a?getMainAxisFromPlacement(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(i){case start:f[l]=f[l]-(t[c]/2-r[c]/2);break;case end:f[l]=f[l]+(t[c]/2-r[c]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?clippingParents:i,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,c=l===void 0?popper:l,p=r.altBoundary,u=p===void 0?false:p,d=r.padding,v=d===void 0?0:d;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=c===popper?reference:popper;var h=e.rects.popper;var y=e.elements[u?g:c];var b=getClippingRect(isElement(y)?y:y.contextElement||getDocumentElement(e.elements.popper),o,f);var w=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:w,element:h,strategy:"absolute",placement:a});var x=rectToClientRect(Object.assign({},h,O));var P=c===popper?x:w;var S={top:b.top-P.top+m.top,bottom:P.bottom-b.bottom+m.bottom,left:b.left-P.left+m.left,right:P.right-b.right+m.right};var E=e.modifiersData.offset;if(c===popper&&E){var M=E[a];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var c=getVariation(n);var p=c?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===c})):basePlacements;var u=p.filter((function(e){return l.indexOf(e)>=0}));if(u.length===0){u=p}var d=u.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:a,rootBoundary:i,padding:o})[getBasePlacement(r)];return t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var a=r.mainAxis,i=a===void 0?true:a,o=r.altAxis,s=o===void 0?true:o,f=r.fallbackPlacements,l=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,d=r.flipVariations,v=d===void 0?true:d,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var y=h===g;var b=f||(y||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var w=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var P=new Map;var S=true;var E=w[0];for(var M=0;M<w.length;M++){var T=w[M];var C=getBasePlacement(T);var R=getVariation(T)===start;var D=[top,bottom].indexOf(C)>=0;var B=D?"width":"height";var A=detectOverflow(t,{placement:T,boundary:c,rootBoundary:p,altBoundary:u,padding:l});var L=D?R?right:left:R?bottom:top;if(O[B]>x[B]){L=getOppositePlacement(L)}var j=getOppositePlacement(L);var W=[];if(i){W.push(A[C]<=0)}if(s){W.push(A[L]<=0,A[j]<=0)}if(W.every((function(e){return e}))){E=T;S=false;break}P.set(T,W)}if(S){var N=v?3:1;var H=function e(t){var r=w.find((function(e){var r=P.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var k=N;k>0;k--){var V=H(k);if(V==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var a=t.rects.popper;var i=t.modifiersData.preventOverflow;var o=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(o,n);var l=getSideOffsets(s,a,i);var c=isAnySideFullyClipped(f);var p=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var a=[left,top].indexOf(n)>=0?-1:1;var i=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];o=o||0;s=(s||0)*a;return[left,right].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var a=r.offset,i=a===void 0?[0,0]:a;var o=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,i);return e}),{});var s=o[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=o}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var a=r.mainAxis,i=a===void 0?true:a,o=r.altAxis,s=o===void 0?false:o,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,d=u===void 0?true:u,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:p,altBoundary:c});var h=getBasePlacement(t.placement);var y=getVariation(t.placement);var b=!y;var w=getMainAxisFromPlacement(h);var O=getAltAxis(w);var x=t.modifiersData.popperOffsets;var P=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M=typeof E==="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E);var T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var C={x:0,y:0};if(!x){return}if(i){var R;var D=w==="y"?top:left;var B=w==="y"?bottom:right;var A=w==="y"?"height":"width";var L=x[w];var j=L+g[D];var W=L-g[B];var N=d?-S[A]/2:0;var H=y===start?P[A]:S[A];var k=y===start?-S[A]:-P[A];var V=t.elements.arrow;var $=d&&V?getLayoutRect(V):{width:0,height:0};var F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var _=F[D];var q=F[B];var I=within(0,P[A],$[A]);var X=b?P[A]/2-N-I-_-M.mainAxis:H-I-_-M.mainAxis;var U=b?-P[A]/2+N+I+q+M.mainAxis:k+I+q+M.mainAxis;var z=t.elements.arrow&&getOffsetParent(t.elements.arrow);var Y=z?w==="y"?z.clientTop||0:z.clientLeft||0:0;var G=(R=T==null?void 0:T[w])!=null?R:0;var J=L+X-G-Y;var K=L+U-G;var Q=within(d?min(j,J):j,L,d?max(W,K):W);x[w]=Q;C[w]=Q-L}if(s){var Z;var ee=w==="x"?top:left;var te=w==="x"?bottom:right;var re=x[O];var ne=O==="y"?"height":"width";var ae=re+g[ee];var ie=re-g[te];var oe=[top,left].indexOf(h)!==-1;var se=(Z=T==null?void 0:T[O])!=null?Z:0;var fe=oe?ae:re-P[ne]-S[ne]-se+M.altAxis;var le=oe?re+P[ne]+S[ne]-se-M.altAxis:ie;var ce=d&&oe?withinMaxClamp(fe,re,le):within(d?fe:ae,re,d?le:ie);x[O]=ce;C[O]=ce-re}t.modifiersData[n]=C}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=round(t.width)/e.offsetWidth||1;var n=round(t.height)/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);var a=isHTMLElement(t)&&isElementScaled(t);var i=getDocumentElement(t);var o=getBoundingClientRect(e,a);var s={scrollLeft:0,scrollTop:0};var f={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(i)){s=getNodeScroll(t)}if(isHTMLElement(t)){f=getBoundingClientRect(t,true);f.x+=t.clientLeft;f.y+=t.clientTop}else if(i){f.x=getWindowScrollBarX(i)}}return{x:o.left+s.scrollLeft-f.x,y:o.top+s.scrollTop-f.y,width:o.width,height:o.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function a(e){r.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){a(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){a(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?DEFAULT_OPTIONS:a;return function e(t,r,a){if(a===void 0){a=i}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,i),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:o,setOptions:function e(a){var s=typeof a==="function"?a(o.options):a;p();o.options=Object.assign({},i,o.options,s);o.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,o.options.modifiers)));o.orderedModifiers=f.filter((function(e){return e.enabled}));c();return l.update()},forceUpdate:function e(){if(f){return}var t=o.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}o.rects={reference:getCompositeRect(r,getOffsetParent(n),o.options.strategy==="fixed"),popper:getLayoutRect(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<o.orderedModifiers.length;a++){if(o.reset===true){o.reset=false;a=-1;continue}var i=o.orderedModifiers[a],s=i.fn,c=i.options,p=c===void 0?{}:c,u=i.name;if(typeof s==="function"){o=s({state:o,options:p,name:u,instance:l})||o}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(o)}))})),destroy:function e(){p();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(a).then((function(e){if(!f&&a.onFirstUpdate){a.onFirstUpdate(e)}}));function c(){o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,a=e.effect;if(typeof a==="function"){var i=a({state:o,name:t,instance:l,options:n});var f=function e(){};s.push(i||f)}}))}function p(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers});var CSS={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function getPlacement(e,t){var r=["left","right"];var n=["start","end"];if(getElementDir(e)==="rtl"){r.reverse();n.reverse()}return t.replace(/-leading/gi,"-".concat(n[0])).replace(/-trailing/gi,"-".concat(n[1])).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function createPopper(e){var t=e.referenceEl,r=e.el,n=e.placement,a=e.overlayPositioning,i=a===void 0?"absolute":a,o=e.modifiers;if(!t){return null}return createPopper$1(t,r,{strategy:i,placement:getPlacement(r,n),modifiers:o})}function updatePopper(e){var t=e.el,r=e.modifiers,n=e.placement,a=e.popper;return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=getPlacement(t,n);return[4,a.setOptions({modifiers:r,placement:e})];case 1:i.sent();return[2]}}))}))}function hypotenuse(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}var visiblePointerSize=4;var defaultOffsetDistance=Math.ceil(hypotenuse(visiblePointerSize,visiblePointerSize));export{CSS as C,createPopper as c,defaultOffsetDistance as d,updatePopper as u};
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function l(e){try{o(n.next(e))}catch(e){r(e)}}function s(e){try{o(n["throw"](e))}catch(e){r(e)}}function o(e){e.done?i(e.value):a(e.value).then(l,s)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return o([e,t])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=l[0]&2?a["return"]:l[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;if(a=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;a=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(l[0]===6&&i.label<r[1]){i.label=r[1];r=l;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(l);break}if(r[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e];a=0}finally{n=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{f as focusElement,g as getSlotted}from"./dom-e7fa77b9.js";import{g as getRoundRobinIndex}from"./array-91a648e2.js";import{d as debounce}from"./debounce-79648d42.js";import{h,H as Host}from"./index-0fefddd1.js";function mutationObserverCallback(){this.setUpItems();this.setUpFilter();this.deselectRemovedItems()}var SUPPORTED_ARROW_KEYS=["ArrowUp","ArrowDown"];function initialize(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=debounce(internalCalciteListChangeEvent.bind(this),0)}function initializeObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true})}function cleanUpObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect()}function calciteListItemChangeHandler(e){var t=this.selectedValues;var i=e.detail,n=i.item,a=i.value,r=i.selected,l=i.shiftPressed;if(r){if(this.multiple&&l){this.selectSiblings(n)}if(!this.multiple){this.deselectSiblingItems(n)}t.set(a,n)}else{t.delete(a);if(this.multiple&&l){this.selectSiblings(n,true)}}if(!this.multiple){toggleSingleSelectItemTabbing(n,r);if(r){focusElement(n)}}this.lastSelectedItem=n;this.emitCalciteListChange()}function calciteListItemValueChangeHandler(e){e.stopPropagation();var t=e.detail.oldValue;var i=this.selectedValues;if(i.has(t)){var n=i.get(t);i.delete(t);i.set(e.detail.newValue,n)}}function isValidNavigationKey(e){return!!SUPPORTED_ARROW_KEYS.find((function(t){return t===e}))}function calciteListFocusOutHandler(e){var t=this,i=t.el,n=t.items,a=t.multiple,r=t.selectedValues;if(a){return}var l=i.contains(e.relatedTarget);if(l){return}n.forEach((function(t){toggleSingleSelectItemTabbing(t,r.size===0?t.contains(e.target)||e.target===t:t.selected)}))}function keyDownHandler(e){var t=e.key,i=e.target;if(!isValidNavigationKey(t)){return}var n=this,a=n.items,r=n.multiple,l=n.selectionFollowsFocus;var s=a.length;var o=a.indexOf(i);if(!s||o===-1){return}e.preventDefault();var c=getRoundRobinIndex(o+(t==="ArrowUp"?-1:1),s);var u=a[c];a.forEach((function(e){return toggleSingleSelectItemTabbing(e,e===u)}));if(!r&&l){u.selected=true}focusElement(u)}function internalCalciteListChangeEvent(){this.calciteListChange.emit(this.selectedValues)}function removeItem(e){if(e.defaultPrevented){return}var t=e.target;var i=this.selectedValues;if(t.parentElement.tagName==="CALCITE-PICK-LIST-GROUP"){t.parentElement.remove();Array.from(t.parentElement.children).forEach((function(e){return i.delete(e.value)}))}else{t.remove();i.delete(t.value)}this.emitCalciteListChange()}function toggleSingleSelectItemTabbing(e,t){if(t){e.removeAttribute("tabindex")}else{e.setAttribute("tabindex","-1")}}function setFocus(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,a,r;return __generator(this,(function(l){switch(l.label){case 0:if(!(this.filterEnabled&&e==="filter"))return[3,2];return[4,focusElement(this.filterEl)];case 1:l.sent();return[2];case 2:t=this,i=t.items,n=t.multiple,a=t.selectionFollowsFocus;if(i.length===0){return[2]}if(n){return[2,i[0].setFocus()]}r=i.find((function(e){return e.selected}))||i[0];if(a){r.selected=true}return[2,r.setFocus()]}}))}))}function setUpItems(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));var i=false;var n=this.items;n.forEach((function(e){e.icon=t.getIconType();if(!t.multiple){e.disableDeselect=true;toggleSingleSelectItemTabbing(e,false)}if(e.selected){i=true;toggleSingleSelectItemTabbing(e,true);t.selectedValues.set(e.value,e)}}));var a=n[0];if(!i&&a){toggleSingleSelectItemTabbing(a,true)}}function deselectRemovedItems(){var e=this;var t=this.selectedValues;var i=this.items.map((function(e){var t=e.value;return t}));t.forEach((function(t){if(!i.includes(t.value)){e.selectedValues.delete(t.value)}}))}function deselectSiblingItems(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))}function selectSiblings(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var n=this.items;var a=n.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var r=n.findIndex((function(t){return t.value===e.value}));n.slice(Math.min(a,r),Math.max(a,r)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))}var groups;function handleFilter(e){var t=e.currentTarget.filteredItems;var i=t.map((function(e){return e.value}));var n=false;if(!groups){groups=new Set}var a=this.items.filter((function(e){var t=e.parentElement;var a=t.matches("calcite-pick-list-group");if(a){groups.add(t)}var r=i.includes(e.value);e.hidden=!r;if(!n){n=r&&e.selected}return r}));groups.forEach((function(e){var t=a.some((function(t){return e.contains(t)}));e.hidden=!t;if(!t){return}var i=getSlotted(e,"parent-item");if(i){i.hidden=false;if(a.includes(i)){Array.from(e.children).forEach((function(e){return e.hidden=false}))}}}));groups.clear();if(a.length>0&&!n&&!this.multiple){toggleSingleSelectItemTabbing(a[0],true)}}function getItemData(){return this.items.map((function(e){return{label:e.label,description:e.description,metadata:e.metadata,value:e.value}}))}var CSS$1={sticky:"sticky-pos"};var ICON_TYPES;(function(e){e["circle"]="circle";e["square"]="square";e["grip"]="grip"})(ICON_TYPES||(ICON_TYPES={}));var SLOTS$1={menuActions:"menu-actions"};var __rest=undefined&&undefined.__rest||function(e,t){var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)i[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++){if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))i[n[a]]=e[n[a]]}return i};var List=function(e){var t;var i=e.props,n=i.disabled,a=i.loading,r=i.filterEnabled,l=i.dataForFilter,s=i.handleFilter,o=i.filterPlaceholder,c=i.setFilterEl,u=__rest(e,["props"]);var f=h("slot",null);return h(Host,Object.assign({"aria-busy":a.toString(),"aria-disabled":n.toString(),role:"menu"},u),h("section",null,h("header",{class:(t={},t[CSS$1.sticky]=true,t)},r?h("calcite-filter",{"aria-label":o,disabled:a||n,items:l,onCalciteFilterChange:s,placeholder:o,ref:c}):null,h("slot",{name:SLOTS$1.menuActions})),a||n?h("calcite-scrim",{loading:a}):null,f))};var CSS={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"};var ICONS={checked:"check",remove:"x"};var SLOTS={actionsEnd:"actions-end",actionsStart:"actions-start"};var TEXT={remove:"Remove"};export{CSS as C,ICON_TYPES as I,List as L,SLOTS as S,TEXT as T,deselectSiblingItems as a,initializeObserver as b,cleanUpObserver as c,deselectRemovedItems as d,calciteListFocusOutHandler as e,calciteListItemChangeHandler as f,getItemData as g,handleFilter as h,initialize as i,calciteListItemValueChangeHandler as j,keyDownHandler as k,setUpItems as l,mutationObserverCallback as m,setFocus as n,ICONS as o,removeItem as r,selectSiblings as s};