@esri/calcite-components 1.0.0-next.647 → 1.0.0-next.649

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 (739) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +1 -1
  3. package/dist/calcite/p-03034b43.entry.js +6 -0
  4. package/dist/calcite/p-0e00a304.entry.js +6 -0
  5. package/dist/calcite/p-100157be.entry.js +6 -0
  6. package/dist/calcite/{p-1b34eb14.entry.js → p-1211dea3.entry.js} +2 -2
  7. package/dist/calcite/p-12f9481d.entry.js +6 -0
  8. package/dist/calcite/p-165039c7.js +6 -0
  9. package/dist/calcite/p-1c23f597.entry.js +6 -0
  10. package/dist/calcite/p-1e53c499.entry.js +6 -0
  11. package/dist/calcite/{p-1950094b.js → p-22186c5d.js} +1 -1
  12. package/dist/calcite/{p-fa3a9bb4.js → p-22bd463b.js} +1 -1
  13. package/dist/calcite/p-2692bb4e.js +6 -0
  14. package/dist/calcite/{p-1da9d920.js → p-2aee9306.js} +1 -1
  15. package/dist/calcite/{p-2f87050a.js → p-2ca0d844.js} +1 -1
  16. package/dist/calcite/p-2ef61a7c.entry.js +6 -0
  17. package/dist/calcite/{p-1d5c0b42.js → p-2fc52526.js} +2 -2
  18. package/dist/calcite/p-318e12b4.entry.js +6 -0
  19. package/dist/calcite/p-334064d6.entry.js +6 -0
  20. package/dist/calcite/p-33fd1d25.entry.js +6 -0
  21. package/dist/calcite/p-3685e2e4.entry.js +6 -0
  22. package/dist/calcite/{p-4cae09d9.js → p-369fbab6.js} +2 -2
  23. package/dist/calcite/p-37dfec89.entry.js +6 -0
  24. package/dist/calcite/{p-0488bcef.js → p-37eb2342.js} +2 -2
  25. package/dist/calcite/p-389e80e1.entry.js +6 -0
  26. package/dist/calcite/{p-da23181f.entry.js → p-3d520b4d.entry.js} +2 -2
  27. package/dist/calcite/{p-6954bf76.js → p-3d631a58.js} +1 -1
  28. package/dist/calcite/{p-16f69e78.js → p-3e12dbdb.js} +1 -1
  29. package/dist/calcite/p-3e3ec363.js +6 -0
  30. package/dist/calcite/p-4196343c.entry.js +6 -0
  31. package/dist/calcite/p-44c6896e.entry.js +6 -0
  32. package/dist/calcite/p-4a77b0c1.entry.js +6 -0
  33. package/dist/calcite/{p-ea08c155.entry.js → p-5222b620.entry.js} +2 -2
  34. package/dist/calcite/p-558d7a95.entry.js +6 -0
  35. package/dist/calcite/{p-cbf2a031.js → p-56948fdb.js} +1 -1
  36. package/dist/calcite/p-57fb133d.entry.js +6 -0
  37. package/dist/calcite/{p-8ad929cb.js → p-59ffd3ab.js} +1 -1
  38. package/dist/calcite/{p-4df5609b.js → p-5eec1f37.js} +2 -2
  39. package/dist/calcite/p-5fc49ba6.entry.js +6 -0
  40. package/dist/calcite/p-5fdf113c.entry.js +6 -0
  41. package/dist/calcite/{p-dafdb9a7.js → p-60ab59c8.js} +4 -4
  42. package/dist/calcite/p-66d6a7a4.entry.js +6 -0
  43. package/dist/calcite/{p-80059970.entry.js → p-673b82b2.entry.js} +2 -2
  44. package/dist/calcite/{p-3e4ccf7f.js → p-6ac35a8e.js} +1 -1
  45. package/dist/calcite/p-7837c8db.entry.js +6 -0
  46. package/dist/calcite/{p-15b4b9e2.js → p-88bd5546.js} +1 -1
  47. package/dist/calcite/p-8e2456d1.entry.js +6 -0
  48. package/dist/calcite/p-8e862f0f.entry.js +6 -0
  49. package/dist/calcite/{p-8a1a6862.js → p-9116d3da.js} +1 -1
  50. package/dist/calcite/{p-79c24753.js → p-91261ae4.js} +1 -1
  51. package/dist/calcite/p-93c9bf96.entry.js +6 -0
  52. package/dist/calcite/p-94467288.entry.js +6 -0
  53. package/dist/calcite/{p-9832a9a5.js → p-9c315c16.js} +2 -2
  54. package/dist/calcite/p-9cb526ee.entry.js +6 -0
  55. package/dist/calcite/{p-a93f1b9a.entry.js → p-a1103787.entry.js} +2 -2
  56. package/dist/calcite/{p-2fca162a.js → p-a215715b.js} +2 -2
  57. package/dist/calcite/p-a598a5a8.js +6 -0
  58. package/dist/calcite/p-a75a8f91.entry.js +6 -0
  59. package/dist/calcite/p-a94a542d.entry.js +6 -0
  60. package/dist/calcite/p-aa9a44ff.entry.js +6 -0
  61. package/dist/calcite/{p-196873fb.js → p-ace4295d.js} +2 -2
  62. package/dist/calcite/p-ad91b203.entry.js +6 -0
  63. package/dist/calcite/p-afd26b8f.entry.js +6 -0
  64. package/dist/calcite/p-b5981b67.entry.js +6 -0
  65. package/dist/calcite/p-b5cc32f0.entry.js +6 -0
  66. package/dist/calcite/p-b62a4b9a.entry.js +6 -0
  67. package/dist/calcite/p-b7ef6fc4.entry.js +6 -0
  68. package/dist/calcite/p-b9aba8cb.entry.js +6 -0
  69. package/dist/calcite/p-b9eef341.entry.js +6 -0
  70. package/dist/calcite/p-bda69a89.entry.js +6 -0
  71. package/dist/calcite/p-bf0f919b.entry.js +6 -0
  72. package/dist/calcite/{p-c88cf62a.js → p-bf125bc0.js} +1 -1
  73. package/dist/calcite/p-c0c72cd8.entry.js +6 -0
  74. package/dist/calcite/p-c5639ba1.entry.js +6 -0
  75. package/dist/calcite/p-cd6d5b43.entry.js +6 -0
  76. package/dist/calcite/{p-85bca0a7.js → p-d201e7fd.js} +1 -1
  77. package/dist/calcite/p-d2af61fd.entry.js +6 -0
  78. package/dist/calcite/p-d67b11e5.entry.js +6 -0
  79. package/dist/calcite/{p-7ac24887.js → p-d932e9a8.js} +1 -1
  80. package/dist/calcite/p-d9f11410.entry.js +6 -0
  81. package/dist/calcite/{p-a38897b7.js → p-dce3b94a.js} +2 -2
  82. package/dist/calcite/p-df0386e9.entry.js +6 -0
  83. package/dist/calcite/p-e06c6ef8.entry.js +6 -0
  84. package/dist/calcite/p-e1359e46.entry.js +6 -0
  85. package/dist/calcite/p-e1cfe7db.entry.js +6 -0
  86. package/dist/calcite/p-e231bdc8.entry.js +6 -0
  87. package/dist/calcite/p-e53dff85.entry.js +6 -0
  88. package/dist/calcite/{p-0a7ecde8.js → p-e7eed877.js} +2 -2
  89. package/dist/calcite/{p-8a0a27c0.js → p-e86acc2b.js} +1 -1
  90. package/dist/calcite/p-eaeb6b54.entry.js +6 -0
  91. package/dist/calcite/{p-8b2ca5b4.js → p-f2e09bee.js} +1 -1
  92. package/dist/calcite/p-f4cd0b2f.entry.js +6 -0
  93. package/dist/calcite/p-f5ef1035.entry.js +6 -0
  94. package/dist/cjs/{ExpandToggle-7af1105f.js → ExpandToggle-8c3b5dde.js} +5 -5
  95. package/dist/cjs/{Heading-21b3b1e2.js → Heading-b1eff0d5.js} +2 -2
  96. package/dist/cjs/{app-globals-c610f4b2.js → app-globals-ee27ea1e.js} +2 -2
  97. package/dist/cjs/{array-b788323b.js → array-b4d773ff.js} +1 -1
  98. package/dist/cjs/calcite-accordion_2.cjs.entry.js +20 -70
  99. package/dist/cjs/calcite-action-bar.cjs.entry.js +21 -34
  100. package/dist/cjs/calcite-action-group.cjs.entry.js +16 -27
  101. package/dist/cjs/calcite-action-menu.cjs.entry.js +19 -38
  102. package/dist/cjs/calcite-action-pad.cjs.entry.js +19 -29
  103. package/dist/cjs/calcite-action.cjs.entry.js +21 -49
  104. package/dist/cjs/calcite-alert.cjs.entry.js +27 -47
  105. package/dist/cjs/calcite-avatar.cjs.entry.js +10 -17
  106. package/dist/cjs/calcite-block_2.cjs.entry.js +30 -82
  107. package/dist/cjs/calcite-button.cjs.entry.js +32 -51
  108. package/dist/cjs/calcite-card.cjs.entry.js +14 -38
  109. package/dist/cjs/calcite-checkbox.cjs.entry.js +20 -41
  110. package/dist/cjs/calcite-chip.cjs.entry.js +18 -37
  111. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +60 -227
  112. package/dist/cjs/calcite-combobox_3.cjs.entry.js +52 -87
  113. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +72 -68
  114. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +33 -77
  115. package/dist/cjs/calcite-fab.cjs.entry.js +9 -35
  116. package/dist/cjs/calcite-filter.cjs.entry.js +17 -37
  117. package/dist/cjs/calcite-flow-item.cjs.entry.js +24 -33
  118. package/dist/cjs/calcite-flow.cjs.entry.js +6 -6
  119. package/dist/cjs/calcite-graph_2.cjs.entry.js +49 -72
  120. package/dist/cjs/calcite-handle.cjs.entry.js +8 -19
  121. package/dist/cjs/calcite-icon.cjs.entry.js +8 -20
  122. package/dist/cjs/calcite-inline-editable.cjs.entry.js +18 -40
  123. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +50 -94
  124. package/dist/cjs/calcite-input-message.cjs.entry.js +7 -18
  125. package/dist/cjs/calcite-input-number.cjs.entry.js +47 -88
  126. package/dist/cjs/calcite-input-text.cjs.entry.js +35 -67
  127. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +70 -156
  128. package/dist/cjs/calcite-input.cjs.entry.js +52 -102
  129. package/dist/cjs/calcite-label.cjs.entry.js +13 -35
  130. package/dist/cjs/calcite-link.cjs.entry.js +15 -20
  131. package/dist/cjs/calcite-list_3.cjs.entry.js +43 -121
  132. package/dist/cjs/calcite-loader.cjs.entry.js +5 -23
  133. package/dist/cjs/calcite-modal.cjs.entry.js +26 -57
  134. package/dist/cjs/calcite-notice.cjs.entry.js +16 -40
  135. package/dist/cjs/calcite-option_3.cjs.entry.js +23 -52
  136. package/dist/cjs/calcite-pagination.cjs.entry.js +17 -43
  137. package/dist/cjs/calcite-panel.cjs.entry.js +30 -39
  138. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +38 -92
  139. package/dist/cjs/{calcite-popover_2.cjs.entry.js → calcite-popover.cjs.entry.js} +33 -145
  140. package/dist/cjs/calcite-progress.cjs.entry.js +4 -10
  141. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +9 -18
  142. package/dist/cjs/calcite-radio-button.cjs.entry.js +21 -37
  143. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +21 -43
  144. package/dist/cjs/calcite-rating.cjs.entry.js +24 -43
  145. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -15
  146. package/dist/cjs/calcite-shell_3.cjs.entry.js +16 -62
  147. package/dist/cjs/calcite-sortable-list.cjs.entry.js +12 -22
  148. package/dist/cjs/calcite-split-button.cjs.entry.js +11 -27
  149. package/dist/cjs/calcite-stepper_2.cjs.entry.js +29 -63
  150. package/dist/cjs/calcite-switch.cjs.entry.js +17 -27
  151. package/dist/cjs/calcite-tab_4.cjs.entry.js +33 -103
  152. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +11 -39
  153. package/dist/cjs/calcite-tile.cjs.entry.js +12 -30
  154. package/dist/cjs/calcite-tip_3.cjs.entry.js +27 -36
  155. package/dist/cjs/calcite-tooltip.cjs.entry.js +17 -44
  156. package/dist/cjs/calcite-tree_2.cjs.entry.js +20 -51
  157. package/dist/cjs/calcite-value-list_2.cjs.entry.js +41 -94
  158. package/dist/cjs/calcite.cjs.js +6 -6
  159. package/dist/cjs/{conditionalSlot-4561a4a4.js → conditionalSlot-f67c6a2b.js} +3 -3
  160. package/dist/cjs/{debounce-60b87419.js → debounce-63a14cdf.js} +1 -1
  161. package/dist/cjs/{dom-fc9f7c5b.js → dom-070a27d9.js} +3 -3
  162. package/dist/cjs/{filter-a1586bab.js → filter-3f434023.js} +2 -2
  163. package/dist/cjs/{floating-ui-e6837eef.js → floating-ui-1ef94755.js} +57 -89
  164. package/dist/cjs/{focusTrapComponent-ccc646b5.js → focusTrapComponent-084c6230.js} +2 -2
  165. package/dist/cjs/{form-bdafdc1e.js → form-8c6d38a0.js} +3 -3
  166. package/dist/cjs/{guid-e00c2fae.js → guid-4c7db122.js} +1 -1
  167. package/dist/cjs/{index-7e0f281f.js → index-a88aeb73.js} +1 -1
  168. package/dist/cjs/index.cjs.js +1 -1
  169. package/dist/cjs/{interactive-f768090a.js → interactive-6a565a7d.js} +1 -1
  170. package/dist/cjs/{interfaces-156df26c.js → interfaces-3ae98370.js} +1 -1
  171. package/dist/cjs/{key-25858919.js → key-3910ca3f.js} +1 -1
  172. package/dist/cjs/{label-af7b6837.js → label-5d1f5c7e.js} +2 -2
  173. package/dist/cjs/{loadable-2c272f47.js → loadable-e1b975eb.js} +1 -1
  174. package/dist/cjs/loader.cjs.js +6 -6
  175. package/dist/cjs/{locale-54e87ab8.js → locale-0ad88e69.js} +4 -4
  176. package/dist/cjs/{math-abf27752.js → math-921a2029.js} +1 -1
  177. package/dist/cjs/{nonChromiumPlatformUtils-422da801.js → nonChromiumPlatformUtils-4129daff.js} +6 -6
  178. package/dist/cjs/{observers-e85167a1.js → observers-7629d33c.js} +1 -1
  179. package/dist/cjs/{openCloseComponent-b3922bdb.js → openCloseComponent-beba6cfa.js} +1 -1
  180. package/dist/cjs/{resources-ae981175.js → resources-0052562f.js} +1 -1
  181. package/dist/cjs/{resources-8fa9469c.js → resources-1ab72d4c.js} +3 -3
  182. package/dist/cjs/{resources-a0a90579.js → resources-1db9ff52.js} +1 -1
  183. package/dist/cjs/{resources-fb34b377.js → resources-4f270690.js} +1 -1
  184. package/dist/cjs/{resources-97815018.js → resources-5669141a.js} +1 -1
  185. package/dist/cjs/{resources-fb722a40.js → resources-7ffb9eeb.js} +5 -5
  186. package/dist/cjs/{sortable.esm-ef98a314.js → sortable.esm-91bc3776.js} +1 -1
  187. package/dist/cjs/{utils-e7e05a1a.js → utils-fece558c.js} +1 -1
  188. package/dist/collection/collection-manifest.json +6 -8
  189. package/dist/collection/components/accordion/accordion.js +6 -19
  190. package/dist/collection/components/accordion-item/accordion-item.js +9 -136
  191. package/dist/collection/components/accordion-item/resources.js +1 -1
  192. package/dist/collection/components/action/action.js +14 -42
  193. package/dist/collection/components/action/resources.js +1 -1
  194. package/dist/collection/components/action-bar/action-bar.js +10 -23
  195. package/dist/collection/components/action-bar/resources.js +1 -1
  196. package/dist/collection/components/action-bar/utils.js +1 -1
  197. package/dist/collection/components/action-group/action-group.js +8 -19
  198. package/dist/collection/components/action-group/resources.js +1 -1
  199. package/dist/collection/components/action-menu/action-menu.js +15 -39
  200. package/dist/collection/components/action-menu/resources.js +1 -1
  201. package/dist/collection/components/action-pad/action-pad.js +9 -19
  202. package/dist/collection/components/action-pad/resources.js +1 -1
  203. package/dist/collection/components/alert/alert.js +17 -37
  204. package/dist/collection/components/alert/interfaces.js +1 -1
  205. package/dist/collection/components/alert/resources.js +1 -1
  206. package/dist/collection/components/avatar/avatar.js +5 -12
  207. package/dist/collection/components/avatar/utils.js +1 -1
  208. package/dist/collection/components/block/block.css +0 -5
  209. package/dist/collection/components/block/block.js +14 -100
  210. package/dist/collection/components/block/resources.js +1 -2
  211. package/dist/collection/components/block-section/block-section.js +7 -13
  212. package/dist/collection/components/block-section/resources.js +1 -1
  213. package/dist/collection/components/button/button.js +23 -42
  214. package/dist/collection/components/button/resources.js +1 -1
  215. package/dist/collection/components/card/card.js +8 -32
  216. package/dist/collection/components/card/resources.js +1 -1
  217. package/dist/collection/components/checkbox/checkbox.js +11 -32
  218. package/dist/collection/components/chip/chip.js +11 -30
  219. package/dist/collection/components/chip/resources.js +1 -1
  220. package/dist/collection/components/color-picker/color-picker.js +42 -173
  221. package/dist/collection/components/color-picker/resources.js +1 -1
  222. package/dist/collection/components/color-picker/utils.js +1 -1
  223. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +8 -34
  224. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  225. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +2 -12
  226. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  227. package/dist/collection/components/combobox/combobox.js +26 -58
  228. package/dist/collection/components/combobox/resources.js +1 -1
  229. package/dist/collection/components/combobox/utils.js +1 -1
  230. package/dist/collection/components/combobox-item/combobox-item.js +11 -16
  231. package/dist/collection/components/combobox-item/resources.js +1 -1
  232. package/dist/collection/components/combobox-item-group/combobox-item-group.js +3 -1
  233. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  234. package/dist/collection/components/date-picker/date-picker.js +69 -73
  235. package/dist/collection/components/date-picker/resources.js +1 -1
  236. package/dist/collection/components/date-picker/utils.js +1 -1
  237. package/dist/collection/components/date-picker-day/date-picker-day.js +19 -25
  238. package/dist/collection/components/date-picker-month/date-picker-month.js +13 -6
  239. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +21 -14
  240. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  241. package/dist/collection/components/dropdown/dropdown.css +1 -1
  242. package/dist/collection/components/dropdown/dropdown.js +27 -65
  243. package/dist/collection/components/dropdown/resources.js +1 -1
  244. package/dist/collection/components/dropdown-group/dropdown-group.js +8 -10
  245. package/dist/collection/components/dropdown-group/resources.js +1 -1
  246. package/dist/collection/components/dropdown-item/dropdown-item.js +23 -27
  247. package/dist/collection/components/dropdown-item/resources.js +1 -1
  248. package/dist/collection/components/fab/fab.js +14 -40
  249. package/dist/collection/components/fab/resources.js +1 -1
  250. package/dist/collection/components/filter/filter.js +21 -41
  251. package/dist/collection/components/filter/resources.js +1 -1
  252. package/dist/collection/components/flow/flow.js +4 -4
  253. package/dist/collection/components/flow/resources.js +1 -1
  254. package/dist/collection/components/flow-item/flow-item.js +39 -48
  255. package/dist/collection/components/flow-item/resources.js +1 -1
  256. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  257. package/dist/collection/components/functional/Heading.js +1 -1
  258. package/dist/collection/components/graph/graph.js +7 -11
  259. package/dist/collection/components/graph/util.js +1 -1
  260. package/dist/collection/components/handle/handle.js +3 -14
  261. package/dist/collection/components/handle/resources.js +1 -1
  262. package/dist/collection/components/icon/icon.css +1 -1
  263. package/dist/collection/components/icon/icon.js +11 -20
  264. package/dist/collection/components/icon/resources.js +1 -1
  265. package/dist/collection/components/icon/utils.js +1 -1
  266. package/dist/collection/components/inline-editable/inline-editable.js +23 -45
  267. package/dist/collection/components/inline-editable/resources.js +1 -1
  268. package/dist/collection/components/input/input.js +40 -90
  269. package/dist/collection/components/input/resources.js +1 -1
  270. package/dist/collection/components/input-date-picker/input-date-picker.js +35 -79
  271. package/dist/collection/components/input-date-picker/resources.js +1 -1
  272. package/dist/collection/components/input-message/input-message.js +3 -14
  273. package/dist/collection/components/input-message/interfaces.js +1 -1
  274. package/dist/collection/components/input-number/input-number.js +35 -76
  275. package/dist/collection/components/input-number/resources.js +1 -1
  276. package/dist/collection/components/input-text/input-text.js +26 -58
  277. package/dist/collection/components/input-text/resources.js +1 -1
  278. package/dist/collection/components/input-time-picker/input-time-picker.js +28 -55
  279. package/dist/collection/components/label/label.js +8 -30
  280. package/dist/collection/components/label/resources.js +1 -1
  281. package/dist/collection/components/link/link.js +9 -14
  282. package/dist/collection/components/list/list.js +14 -51
  283. package/dist/collection/components/list/resources.js +1 -1
  284. package/dist/collection/components/list-item/list-item.js +21 -55
  285. package/dist/collection/components/list-item/resources.js +1 -1
  286. package/dist/collection/components/list-item/utils.js +1 -1
  287. package/dist/collection/components/list-item-group/list-item-group.js +2 -9
  288. package/dist/collection/components/list-item-group/resources.js +1 -1
  289. package/dist/collection/components/loader/loader.js +3 -21
  290. package/dist/collection/components/modal/modal.js +17 -48
  291. package/dist/collection/components/modal/resources.js +1 -1
  292. package/dist/collection/components/notice/notice.js +8 -32
  293. package/dist/collection/components/notice/resources.js +1 -1
  294. package/dist/collection/components/option/option.js +5 -10
  295. package/dist/collection/components/option-group/option-group.js +2 -9
  296. package/dist/collection/components/pagination/pagination.js +10 -36
  297. package/dist/collection/components/pagination/resources.js +1 -1
  298. package/dist/collection/components/panel/panel.js +20 -29
  299. package/dist/collection/components/panel/resources.js +1 -1
  300. package/dist/collection/components/pick-list/pick-list.js +13 -48
  301. package/dist/collection/components/pick-list/resources.js +1 -1
  302. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  303. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  304. package/dist/collection/components/pick-list-group/pick-list-group.js +5 -1
  305. package/dist/collection/components/pick-list-group/resources.js +1 -1
  306. package/dist/collection/components/pick-list-item/pick-list-item.js +12 -33
  307. package/dist/collection/components/pick-list-item/resources.js +1 -1
  308. package/dist/collection/components/popover/PopoverManager.js +1 -1
  309. package/dist/collection/components/popover/popover.js +20 -67
  310. package/dist/collection/components/popover/resources.js +1 -1
  311. package/dist/collection/components/progress/progress.js +3 -9
  312. package/dist/collection/components/radio-button/radio-button.js +12 -28
  313. package/dist/collection/components/radio-button/resources.js +1 -1
  314. package/dist/collection/components/radio-button-group/radio-button-group.js +7 -16
  315. package/dist/collection/components/radio-group/radio-group.js +9 -23
  316. package/dist/collection/components/radio-group-item/radio-group-item.js +5 -13
  317. package/dist/collection/components/radio-group-item/resources.js +1 -1
  318. package/dist/collection/components/rating/rating.js +15 -34
  319. package/dist/collection/components/rating/resources.js +1 -1
  320. package/dist/collection/components/scrim/resources.js +1 -1
  321. package/dist/collection/components/scrim/scrim.js +1 -14
  322. package/dist/collection/components/select/resources.js +1 -1
  323. package/dist/collection/components/select/select.js +9 -26
  324. package/dist/collection/components/shell/resources.js +1 -1
  325. package/dist/collection/components/shell/shell.js +1 -9
  326. package/dist/collection/components/shell-center-row/resources.js +1 -1
  327. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -15
  328. package/dist/collection/components/shell-panel/resources.js +1 -1
  329. package/dist/collection/components/shell-panel/shell-panel.js +9 -33
  330. package/dist/collection/components/slider/resources.js +1 -1
  331. package/dist/collection/components/slider/slider.css +2 -2
  332. package/dist/collection/components/slider/slider.js +30 -49
  333. package/dist/collection/components/sortable-list/resources.js +1 -1
  334. package/dist/collection/components/sortable-list/sortable-list.js +8 -18
  335. package/dist/collection/components/split-button/resources.js +1 -1
  336. package/dist/collection/components/split-button/split-button.js +9 -25
  337. package/dist/collection/components/stepper/stepper.js +6 -14
  338. package/dist/collection/components/stepper-item/stepper-item.js +15 -41
  339. package/dist/collection/components/switch/switch.js +8 -18
  340. package/dist/collection/components/tab/tab.js +4 -17
  341. package/dist/collection/components/tab-nav/tab-nav.js +11 -17
  342. package/dist/collection/components/tab-title/tab-title.js +14 -28
  343. package/dist/collection/components/tabs/resources.js +1 -1
  344. package/dist/collection/components/tabs/tabs.js +1 -38
  345. package/dist/collection/components/tile/resources.js +1 -1
  346. package/dist/collection/components/tile/tile.js +5 -23
  347. package/dist/collection/components/tile-select/resources.js +1 -1
  348. package/dist/collection/components/tile-select/tile-select.js +7 -24
  349. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -12
  350. package/dist/collection/components/time-picker/resources.js +1 -1
  351. package/dist/collection/components/time-picker/time-picker.js +32 -91
  352. package/dist/collection/components/tip/resources.js +1 -1
  353. package/dist/collection/components/tip/tip.js +7 -20
  354. package/dist/collection/components/tip-group/tip-group.js +4 -1
  355. package/dist/collection/components/tip-manager/resources.js +1 -1
  356. package/dist/collection/components/tip-manager/tip-manager.js +13 -10
  357. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  358. package/dist/collection/components/tooltip/resources.js +1 -1
  359. package/dist/collection/components/tooltip/tooltip.js +10 -37
  360. package/dist/collection/components/tree/tree.js +2 -19
  361. package/dist/collection/components/tree/utils.js +1 -1
  362. package/dist/collection/components/tree-item/resources.js +1 -1
  363. package/dist/collection/components/tree-item/tree-item.js +12 -26
  364. package/dist/collection/components/value-list/resources.js +1 -1
  365. package/dist/collection/components/value-list/utils.js +1 -1
  366. package/dist/collection/components/value-list/value-list.js +18 -52
  367. package/dist/collection/components/value-list-item/resources.js +1 -1
  368. package/dist/collection/components/value-list-item/value-list-item.js +12 -31
  369. package/dist/collection/utils/array.js +1 -1
  370. package/dist/collection/utils/conditionalSlot.js +1 -1
  371. package/dist/collection/utils/config.js +1 -1
  372. package/dist/collection/utils/date.js +1 -1
  373. package/dist/collection/utils/dom.js +1 -1
  374. package/dist/collection/utils/filter.js +1 -1
  375. package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
  376. package/dist/collection/utils/floating-ui.js +1 -1
  377. package/dist/collection/utils/focusTrapComponent.js +1 -1
  378. package/dist/collection/utils/form.js +1 -1
  379. package/dist/collection/utils/globalAttributes.js +1 -1
  380. package/dist/collection/utils/globalScript.js +1 -1
  381. package/dist/collection/utils/guid.js +1 -1
  382. package/dist/collection/utils/interactive.js +1 -1
  383. package/dist/collection/utils/key.js +1 -1
  384. package/dist/collection/utils/label.js +1 -1
  385. package/dist/collection/utils/loadable.js +1 -1
  386. package/dist/collection/utils/locale.js +1 -1
  387. package/dist/collection/utils/math.js +1 -1
  388. package/dist/collection/utils/number.js +1 -1
  389. package/dist/collection/utils/observers.js +1 -1
  390. package/dist/collection/utils/openCloseComponent.js +1 -1
  391. package/dist/collection/utils/resources.js +1 -1
  392. package/dist/collection/utils/t9n.js +1 -1
  393. package/dist/collection/utils/theme.js +1 -1
  394. package/dist/collection/utils/time.js +1 -1
  395. package/dist/components/ExpandToggle.js +1 -1
  396. package/dist/components/Heading.js +1 -1
  397. package/dist/components/action-group.js +8 -19
  398. package/dist/components/action-menu.js +11 -30
  399. package/dist/components/action.js +14 -42
  400. package/dist/components/array.js +1 -1
  401. package/dist/components/button.js +23 -42
  402. package/dist/components/calcite-accordion-item.js +9 -50
  403. package/dist/components/calcite-accordion.js +6 -19
  404. package/dist/components/calcite-action-bar.js +10 -23
  405. package/dist/components/calcite-action-group.js +1 -1
  406. package/dist/components/calcite-action-menu.js +1 -1
  407. package/dist/components/calcite-action-pad.js +9 -19
  408. package/dist/components/calcite-action.js +1 -1
  409. package/dist/components/calcite-alert.js +17 -37
  410. package/dist/components/calcite-avatar.js +5 -12
  411. package/dist/components/calcite-block-section.js +7 -13
  412. package/dist/components/calcite-block.js +16 -64
  413. package/dist/components/calcite-button.js +1 -1
  414. package/dist/components/calcite-card.js +8 -32
  415. package/dist/components/calcite-checkbox.js +1 -1
  416. package/dist/components/calcite-chip.js +1 -1
  417. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  418. package/dist/components/calcite-color-picker-swatch.js +1 -1
  419. package/dist/components/calcite-color-picker.js +43 -174
  420. package/dist/components/calcite-combobox-item-group.js +3 -1
  421. package/dist/components/calcite-combobox-item.js +11 -16
  422. package/dist/components/calcite-combobox.js +27 -59
  423. package/dist/components/calcite-date-picker-day.js +1 -1
  424. package/dist/components/calcite-date-picker-month-header.js +1 -1
  425. package/dist/components/calcite-date-picker-month.js +1 -1
  426. package/dist/components/calcite-date-picker.js +1 -1
  427. package/dist/components/calcite-dropdown-group.js +3 -5
  428. package/dist/components/calcite-dropdown-item.js +8 -12
  429. package/dist/components/calcite-dropdown.js +1 -1
  430. package/dist/components/calcite-fab.js +3 -29
  431. package/dist/components/calcite-filter.js +1 -1
  432. package/dist/components/calcite-flow-item.js +17 -26
  433. package/dist/components/calcite-flow.js +4 -4
  434. package/dist/components/calcite-graph.js +1 -1
  435. package/dist/components/calcite-handle.js +1 -1
  436. package/dist/components/calcite-icon.js +1 -1
  437. package/dist/components/calcite-inline-editable.js +10 -32
  438. package/dist/components/calcite-input-date-picker.js +37 -81
  439. package/dist/components/calcite-input-message.js +3 -14
  440. package/dist/components/calcite-input-number.js +36 -77
  441. package/dist/components/calcite-input-text.js +27 -59
  442. package/dist/components/calcite-input-time-picker.js +28 -55
  443. package/dist/components/calcite-input.js +1 -1
  444. package/dist/components/calcite-label.js +1 -1
  445. package/dist/components/calcite-link.js +1 -1
  446. package/dist/components/calcite-list-item-group.js +2 -9
  447. package/dist/components/calcite-list-item.js +21 -55
  448. package/dist/components/calcite-list.js +14 -51
  449. package/dist/components/calcite-loader.js +1 -1
  450. package/dist/components/calcite-modal.js +17 -48
  451. package/dist/components/calcite-notice.js +8 -32
  452. package/dist/components/calcite-option-group.js +2 -9
  453. package/dist/components/calcite-option.js +5 -10
  454. package/dist/components/calcite-pagination.js +10 -36
  455. package/dist/components/calcite-panel.js +1 -1
  456. package/dist/components/calcite-pick-list-group.js +3 -1
  457. package/dist/components/calcite-pick-list-item.js +1 -1
  458. package/dist/components/calcite-pick-list.js +13 -48
  459. package/dist/components/calcite-popover.js +1 -1
  460. package/dist/components/calcite-progress.js +1 -1
  461. package/dist/components/calcite-radio-button-group.js +7 -16
  462. package/dist/components/calcite-radio-button.js +12 -28
  463. package/dist/components/calcite-radio-group-item.js +5 -13
  464. package/dist/components/calcite-radio-group.js +9 -23
  465. package/dist/components/calcite-rating.js +15 -34
  466. package/dist/components/calcite-scrim.js +1 -1
  467. package/dist/components/calcite-select.js +9 -26
  468. package/dist/components/calcite-shell-center-row.js +1 -15
  469. package/dist/components/calcite-shell-panel.js +9 -33
  470. package/dist/components/calcite-shell.js +1 -9
  471. package/dist/components/calcite-slider.js +31 -50
  472. package/dist/components/calcite-sortable-list.js +8 -18
  473. package/dist/components/calcite-split-button.js +9 -25
  474. package/dist/components/calcite-stepper-item.js +15 -41
  475. package/dist/components/calcite-stepper.js +6 -14
  476. package/dist/components/calcite-switch.js +1 -1
  477. package/dist/components/calcite-tab-nav.js +1 -1
  478. package/dist/components/calcite-tab-title.js +1 -1
  479. package/dist/components/calcite-tab.js +1 -1
  480. package/dist/components/calcite-tabs.js +1 -1
  481. package/dist/components/calcite-tile-select-group.js +1 -12
  482. package/dist/components/calcite-tile-select.js +7 -24
  483. package/dist/components/calcite-tile.js +1 -1
  484. package/dist/components/calcite-time-picker.js +1 -1
  485. package/dist/components/calcite-tip-group.js +2 -1
  486. package/dist/components/calcite-tip-manager.js +13 -10
  487. package/dist/components/calcite-tip.js +7 -20
  488. package/dist/components/calcite-tooltip.js +1 -1
  489. package/dist/components/calcite-tree-item.js +12 -26
  490. package/dist/components/calcite-tree.js +2 -19
  491. package/dist/components/calcite-value-list-item.js +12 -31
  492. package/dist/components/calcite-value-list.js +18 -52
  493. package/dist/components/checkbox.js +11 -32
  494. package/dist/components/chip.js +11 -30
  495. package/dist/components/color-picker-hex-input.js +9 -35
  496. package/dist/components/color-picker-swatch.js +2 -12
  497. package/dist/components/conditionalSlot.js +1 -1
  498. package/dist/components/date-picker-day.js +13 -19
  499. package/dist/components/date-picker-month-header.js +14 -7
  500. package/dist/components/date-picker-month.js +10 -3
  501. package/dist/components/date-picker.js +28 -32
  502. package/dist/components/date.js +1 -1
  503. package/dist/components/debounce.js +1 -1
  504. package/dist/components/dom.js +1 -1
  505. package/dist/components/dropdown.js +14 -52
  506. package/dist/components/filter.js +9 -29
  507. package/dist/components/filter2.js +1 -1
  508. package/dist/components/floating-ui.js +54 -86
  509. package/dist/components/focusTrapComponent.js +1 -1
  510. package/dist/components/form.js +1 -1
  511. package/dist/components/graph.js +7 -11
  512. package/dist/components/guid.js +1 -1
  513. package/dist/components/handle.js +3 -14
  514. package/dist/components/icon.js +3 -15
  515. package/dist/components/index.d.ts +0 -1
  516. package/dist/components/index.js +1 -1
  517. package/dist/components/input.js +41 -91
  518. package/dist/components/interactive.js +1 -1
  519. package/dist/components/interfaces.js +1 -1
  520. package/dist/components/key.js +1 -1
  521. package/dist/components/label.js +8 -30
  522. package/dist/components/label2.js +1 -1
  523. package/dist/components/link.js +9 -14
  524. package/dist/components/loadable.js +1 -1
  525. package/dist/components/loader.js +3 -21
  526. package/dist/components/locale.js +1 -1
  527. package/dist/components/math.js +1 -1
  528. package/dist/components/nonChromiumPlatformUtils.js +1 -1
  529. package/dist/components/observers.js +1 -1
  530. package/dist/components/openCloseComponent.js +1 -1
  531. package/dist/components/panel.js +20 -29
  532. package/dist/components/pick-list-item.js +12 -33
  533. package/dist/components/popover.js +21 -68
  534. package/dist/components/progress.js +3 -9
  535. package/dist/components/resources.js +1 -1
  536. package/dist/components/resources2.js +1 -1
  537. package/dist/components/resources3.js +1 -1
  538. package/dist/components/scrim.js +1 -14
  539. package/dist/components/shared-list-render.js +1 -1
  540. package/dist/components/sortable.esm.js +1 -1
  541. package/dist/components/switch.js +8 -18
  542. package/dist/components/tab-nav.js +11 -17
  543. package/dist/components/tab-title.js +14 -28
  544. package/dist/components/tab.js +4 -17
  545. package/dist/components/tabs.js +1 -38
  546. package/dist/components/tile.js +5 -23
  547. package/dist/components/time-picker.js +32 -91
  548. package/dist/components/tooltip.js +11 -38
  549. package/dist/components/utils.js +1 -1
  550. package/dist/components/utils2.js +1 -1
  551. package/dist/esm/{ExpandToggle-56d1f0f0.js → ExpandToggle-f8eb221a.js} +5 -5
  552. package/dist/esm/{Heading-680eaccf.js → Heading-d24a31c2.js} +2 -2
  553. package/dist/esm/{app-globals-4729bdca.js → app-globals-4a355973.js} +2 -2
  554. package/dist/esm/{array-a701c716.js → array-4b1788f5.js} +1 -1
  555. package/dist/esm/calcite-accordion_2.entry.js +20 -70
  556. package/dist/esm/calcite-action-bar.entry.js +21 -34
  557. package/dist/esm/calcite-action-group.entry.js +16 -27
  558. package/dist/esm/calcite-action-menu.entry.js +19 -38
  559. package/dist/esm/calcite-action-pad.entry.js +19 -29
  560. package/dist/esm/calcite-action.entry.js +21 -49
  561. package/dist/esm/calcite-alert.entry.js +27 -47
  562. package/dist/esm/calcite-avatar.entry.js +10 -17
  563. package/dist/esm/calcite-block_2.entry.js +30 -82
  564. package/dist/esm/calcite-button.entry.js +32 -51
  565. package/dist/esm/calcite-card.entry.js +14 -38
  566. package/dist/esm/calcite-checkbox.entry.js +20 -41
  567. package/dist/esm/calcite-chip.entry.js +18 -37
  568. package/dist/esm/calcite-color-picker_3.entry.js +60 -227
  569. package/dist/esm/calcite-combobox_3.entry.js +52 -87
  570. package/dist/esm/calcite-date-picker_4.entry.js +72 -68
  571. package/dist/esm/calcite-dropdown_3.entry.js +33 -77
  572. package/dist/esm/calcite-fab.entry.js +9 -35
  573. package/dist/esm/calcite-filter.entry.js +17 -37
  574. package/dist/esm/calcite-flow-item.entry.js +24 -33
  575. package/dist/esm/calcite-flow.entry.js +6 -6
  576. package/dist/esm/calcite-graph_2.entry.js +49 -72
  577. package/dist/esm/calcite-handle.entry.js +8 -19
  578. package/dist/esm/calcite-icon.entry.js +8 -20
  579. package/dist/esm/calcite-inline-editable.entry.js +18 -40
  580. package/dist/esm/calcite-input-date-picker.entry.js +50 -94
  581. package/dist/esm/calcite-input-message.entry.js +7 -18
  582. package/dist/esm/calcite-input-number.entry.js +47 -88
  583. package/dist/esm/calcite-input-text.entry.js +35 -67
  584. package/dist/esm/calcite-input-time-picker_2.entry.js +70 -156
  585. package/dist/esm/calcite-input.entry.js +52 -102
  586. package/dist/esm/calcite-label.entry.js +13 -35
  587. package/dist/esm/calcite-link.entry.js +15 -20
  588. package/dist/esm/calcite-list_3.entry.js +43 -121
  589. package/dist/esm/calcite-loader.entry.js +5 -23
  590. package/dist/esm/calcite-modal.entry.js +26 -57
  591. package/dist/esm/calcite-notice.entry.js +16 -40
  592. package/dist/esm/calcite-option_3.entry.js +23 -52
  593. package/dist/esm/calcite-pagination.entry.js +17 -43
  594. package/dist/esm/calcite-panel.entry.js +30 -39
  595. package/dist/esm/calcite-pick-list_3.entry.js +38 -92
  596. package/dist/esm/{calcite-popover_2.entry.js → calcite-popover.entry.js} +34 -145
  597. package/dist/esm/calcite-progress.entry.js +4 -10
  598. package/dist/esm/calcite-radio-button-group.entry.js +9 -18
  599. package/dist/esm/calcite-radio-button.entry.js +21 -37
  600. package/dist/esm/calcite-radio-group_2.entry.js +21 -43
  601. package/dist/esm/calcite-rating.entry.js +24 -43
  602. package/dist/esm/calcite-scrim.entry.js +2 -15
  603. package/dist/esm/calcite-shell_3.entry.js +16 -62
  604. package/dist/esm/calcite-sortable-list.entry.js +12 -22
  605. package/dist/esm/calcite-split-button.entry.js +11 -27
  606. package/dist/esm/calcite-stepper_2.entry.js +29 -63
  607. package/dist/esm/calcite-switch.entry.js +17 -27
  608. package/dist/esm/calcite-tab_4.entry.js +33 -103
  609. package/dist/esm/calcite-tile-select_2.entry.js +11 -39
  610. package/dist/esm/calcite-tile.entry.js +12 -30
  611. package/dist/esm/calcite-tip_3.entry.js +27 -36
  612. package/dist/esm/calcite-tooltip.entry.js +17 -44
  613. package/dist/esm/calcite-tree_2.entry.js +20 -51
  614. package/dist/esm/calcite-value-list_2.entry.js +41 -94
  615. package/dist/esm/calcite.js +6 -6
  616. package/dist/esm/{conditionalSlot-481251d8.js → conditionalSlot-6ccf2844.js} +3 -3
  617. package/dist/esm/{debounce-9201530e.js → debounce-a93c0e41.js} +1 -1
  618. package/dist/esm/{dom-df543551.js → dom-53c74dbf.js} +3 -3
  619. package/dist/esm/{filter-2908b40d.js → filter-9a7aebdd.js} +2 -2
  620. package/dist/esm/{floating-ui-7ba4c9a0.js → floating-ui-de1d81a1.js} +57 -89
  621. package/dist/esm/{focusTrapComponent-f58e5d83.js → focusTrapComponent-1c2099dd.js} +2 -2
  622. package/dist/esm/{form-f4c22557.js → form-2b1e2659.js} +3 -3
  623. package/dist/esm/{guid-59a872ce.js → guid-9344597e.js} +1 -1
  624. package/dist/esm/{index-c6d69d86.js → index-d4c908c6.js} +1 -1
  625. package/dist/esm/index.js +1 -1
  626. package/dist/esm/{interactive-f7547b52.js → interactive-9b5fc420.js} +1 -1
  627. package/dist/esm/{interfaces-0fced29f.js → interfaces-b46836c5.js} +1 -1
  628. package/dist/esm/{key-8c900334.js → key-ce94af02.js} +1 -1
  629. package/dist/esm/{label-a198d818.js → label-28684879.js} +2 -2
  630. package/dist/esm/{loadable-74b01ca3.js → loadable-3bf8aeb1.js} +1 -1
  631. package/dist/esm/loader.js +6 -6
  632. package/dist/esm/{locale-170639e4.js → locale-124c1c4a.js} +4 -4
  633. package/dist/esm/{math-5dcaa7e6.js → math-74384c75.js} +1 -1
  634. package/dist/esm/{nonChromiumPlatformUtils-f67db72c.js → nonChromiumPlatformUtils-b5c57cc4.js} +6 -6
  635. package/dist/esm/{observers-7fa5fbcb.js → observers-4d673b8c.js} +1 -1
  636. package/dist/esm/{openCloseComponent-9320ad08.js → openCloseComponent-cb58fdf0.js} +1 -1
  637. package/dist/esm/{resources-34a80758.js → resources-31e2614a.js} +1 -1
  638. package/dist/esm/{resources-f7edd4ec.js → resources-680c5d42.js} +1 -1
  639. package/dist/esm/{resources-bae0d589.js → resources-8d698f58.js} +1 -1
  640. package/dist/esm/{resources-cdb071c0.js → resources-923c5833.js} +1 -1
  641. package/dist/esm/{resources-8b7dfc30.js → resources-cd6e5e62.js} +5 -5
  642. package/dist/esm/{resources-19231ce8.js → resources-f4bcad4f.js} +3 -3
  643. package/dist/esm/{sortable.esm-94aefae8.js → sortable.esm-b4a2098b.js} +1 -1
  644. package/dist/esm/{utils-c2de0bd2.js → utils-830639d3.js} +1 -1
  645. package/dist/extras/docs-json.d.ts +24 -0
  646. package/dist/extras/docs-json.json +183 -386
  647. package/dist/loader/cdn.js +1 -1
  648. package/dist/loader/index.cjs.js +1 -1
  649. package/dist/loader/index.es2017.js +1 -1
  650. package/dist/loader/index.js +1 -1
  651. package/dist/types/components/accordion-item/accordion-item.d.ts +0 -28
  652. package/dist/types/components/action-bar/action-bar.d.ts +1 -1
  653. package/dist/types/components/action-group/action-group.d.ts +1 -1
  654. package/dist/types/components/action-menu/action-menu.d.ts +2 -3
  655. package/dist/types/components/action-pad/action-pad.d.ts +1 -1
  656. package/dist/types/components/block/block.d.ts +0 -12
  657. package/dist/types/components/block/resources.d.ts +0 -1
  658. package/dist/types/components/date-picker/date-picker.d.ts +45 -41
  659. package/dist/types/components/date-picker-day/date-picker-day.d.ts +6 -6
  660. package/dist/types/components/date-picker-month/date-picker-month.d.ts +3 -3
  661. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +7 -7
  662. package/dist/types/components/dropdown/dropdown.d.ts +28 -16
  663. package/dist/types/components/dropdown-group/dropdown-group.d.ts +8 -6
  664. package/dist/types/components/dropdown-item/dropdown-item.d.ts +19 -15
  665. package/dist/types/components/fab/fab.d.ts +11 -11
  666. package/dist/types/components/filter/filter.d.ts +17 -13
  667. package/dist/types/components/flow-item/flow-item.d.ts +22 -22
  668. package/dist/types/components/icon/icon.d.ts +6 -4
  669. package/dist/types/components/inline-editable/inline-editable.d.ts +17 -13
  670. package/dist/types/components.d.ts +249 -338
  671. package/dist/types/preact.d.ts +0 -2
  672. package/dist/types/stencil-public-runtime.d.ts +5 -0
  673. package/hydrate/index.d.ts +1 -1
  674. package/hydrate/index.js +1017 -2831
  675. package/package.json +20 -20
  676. package/dist/calcite/p-0888578f.entry.js +0 -6
  677. package/dist/calcite/p-0a421b7b.entry.js +0 -6
  678. package/dist/calcite/p-0faca0fb.entry.js +0 -6
  679. package/dist/calcite/p-11b47ad1.entry.js +0 -6
  680. package/dist/calcite/p-1973aed6.entry.js +0 -6
  681. package/dist/calcite/p-1ae2665c.entry.js +0 -6
  682. package/dist/calcite/p-1c66c680.entry.js +0 -6
  683. package/dist/calcite/p-23a2d947.entry.js +0 -6
  684. package/dist/calcite/p-26502bf5.entry.js +0 -6
  685. package/dist/calcite/p-26c74b2e.entry.js +0 -6
  686. package/dist/calcite/p-2dd9af30.entry.js +0 -6
  687. package/dist/calcite/p-2f255d0e.entry.js +0 -6
  688. package/dist/calcite/p-31fca365.entry.js +0 -6
  689. package/dist/calcite/p-336e2c57.entry.js +0 -6
  690. package/dist/calcite/p-3882d2dd.entry.js +0 -6
  691. package/dist/calcite/p-39e60149.entry.js +0 -6
  692. package/dist/calcite/p-3c89a961.entry.js +0 -6
  693. package/dist/calcite/p-4178df8c.entry.js +0 -6
  694. package/dist/calcite/p-4270b09e.entry.js +0 -6
  695. package/dist/calcite/p-42c275fd.entry.js +0 -6
  696. package/dist/calcite/p-525f8d6e.entry.js +0 -6
  697. package/dist/calcite/p-542a51c5.entry.js +0 -6
  698. package/dist/calcite/p-5523af9d.entry.js +0 -6
  699. package/dist/calcite/p-56755a4b.entry.js +0 -6
  700. package/dist/calcite/p-5af77dcd.entry.js +0 -6
  701. package/dist/calcite/p-75a8e618.entry.js +0 -6
  702. package/dist/calcite/p-78ce5d27.entry.js +0 -6
  703. package/dist/calcite/p-8347a71b.entry.js +0 -6
  704. package/dist/calcite/p-9983673f.entry.js +0 -6
  705. package/dist/calcite/p-9bce5f9b.entry.js +0 -6
  706. package/dist/calcite/p-9c72628e.entry.js +0 -6
  707. package/dist/calcite/p-9ef4efce.entry.js +0 -6
  708. package/dist/calcite/p-a2d70b53.entry.js +0 -6
  709. package/dist/calcite/p-a47e5ea5.entry.js +0 -6
  710. package/dist/calcite/p-a636f525.entry.js +0 -6
  711. package/dist/calcite/p-a678bfba.entry.js +0 -6
  712. package/dist/calcite/p-a685de9a.entry.js +0 -6
  713. package/dist/calcite/p-b904c150.entry.js +0 -6
  714. package/dist/calcite/p-ba367353.js +0 -6
  715. package/dist/calcite/p-c075ad0a.entry.js +0 -6
  716. package/dist/calcite/p-c1cc3f4a.entry.js +0 -6
  717. package/dist/calcite/p-c25d6406.entry.js +0 -6
  718. package/dist/calcite/p-c81c69b6.entry.js +0 -6
  719. package/dist/calcite/p-d0c4ad01.entry.js +0 -6
  720. package/dist/calcite/p-d606a501.entry.js +0 -6
  721. package/dist/calcite/p-db97a90a.js +0 -6
  722. package/dist/calcite/p-dc02a2f5.entry.js +0 -6
  723. package/dist/calcite/p-df4d0a5f.entry.js +0 -6
  724. package/dist/calcite/p-dfb25ec9.entry.js +0 -6
  725. package/dist/calcite/p-e070c1ec.js +0 -6
  726. package/dist/calcite/p-e0c198c2.entry.js +0 -6
  727. package/dist/calcite/p-e11e0aef.entry.js +0 -6
  728. package/dist/calcite/p-e64dd261.entry.js +0 -6
  729. package/dist/calcite/p-efbc8847.js +0 -6
  730. package/dist/calcite/p-f02b5ab6.entry.js +0 -6
  731. package/dist/calcite/p-f37848ed.entry.js +0 -6
  732. package/dist/calcite/p-fa0c4533.entry.js +0 -6
  733. package/dist/calcite/p-faf1fe84.entry.js +0 -6
  734. package/dist/calcite/p-fc5c6078.entry.js +0 -6
  735. package/dist/collection/components/popover-manager/popover-manager.css +0 -89
  736. package/dist/collection/components/popover-manager/popover-manager.js +0 -127
  737. package/dist/components/calcite-popover-manager.d.ts +0 -11
  738. package/dist/components/calcite-popover-manager.js +0 -94
  739. package/dist/types/components/popover-manager/popover-manager.d.ts +0 -24
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as i,c as t,h as a,H as e,g as n}from"./p-e86acc2b.js";import{a as o,h as r,t as l}from"./p-369fbab6.js";import{c,d as s}from"./p-e7eed877.js";import{a as m,c as d,d as h,H as u}from"./p-2fc52526.js";import{u as p}from"./p-56948fdb.js";import{s as f,a as g,c as b}from"./p-22186c5d.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";const v=class{constructor(a){i(this,a),this.calciteRadioGroupChange=t(this,"calciteRadioGroupChange",6),this.handleClick=i=>{"calcite-radio-group-item"===i.target.localName&&this.selectItem(i.target,!0)},this.appearance="solid",this.disabled=!1,this.required=!1,this.layout="horizontal",this.name=void 0,this.scale="m",this.value=null,this.selectedItem=void 0,this.width="auto"}valueHandler(i){this.getItems().forEach((t=>t.checked=t.value===i))}handleSelectedItemChange(i,t){if(this.value=null==i?void 0:i.value,i===t)return;const a=this.getItems(),e=Array.from(a).filter((t=>t===i)).pop();e?this.selectItem(e):a[0]&&(a[0].tabIndex=0)}componentWillLoad(){f(this);const i=this.getItems(),t=Array.from(i).filter((i=>i.checked)).pop();t?this.selectItem(t):i[0]&&(i[0].tabIndex=0)}componentDidLoad(){m(this,this.value),g(this)}connectedCallback(){c(this),d(this)}disconnectedCallback(){s(this),h(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.handleClick,role:"radiogroup"},a("slot",null),a(u,{component:this}))}handleSelected(i){i.preventDefault(),this.selectItem(i.target),i.stopPropagation()}handleKeyDown(i){const{key:t}=i,{el:a,selectedItem:e}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return;let n=t;"rtl"===o(a)&&("ArrowRight"===t&&(n="ArrowLeft"),"ArrowLeft"===t&&(n="ArrowRight"));const r=this.getItems();let l=-1;switch(r.forEach(((i,t)=>{i===e&&(l=t)})),n){case"ArrowLeft":case"ArrowUp":i.preventDefault();const t=r.item(l<1?r.length-1:l-1);return void this.selectItem(t,!0);case"ArrowRight":case"ArrowDown":i.preventDefault();const a=-1===l?r.item(1):r.item(l+1)||r.item(0);return void this.selectItem(a,!0);case" ":return i.preventDefault(),void this.selectItem(i.target,!0);default:return}}async setFocus(){var i;await b(this),null===(i=this.selectedItem||this.getItems()[0])||void 0===i||i.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(i,t=!1){if(i===this.selectedItem)return;const a=this.getItems();let e=null;a.forEach((a=>{const n=a.value===i.value;(n&&!a.checked||!n&&a.checked)&&(a.checked=n),a.tabIndex=n?0:-1,n&&(e=a,t&&this.calciteRadioGroupChange.emit(e.value))})),this.selectedItem=e,e&&e.focus()}get el(){return n(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};v.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){justify-content:flex-start}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const y=class{constructor(a){i(this,a),this.calciteInternalRadioGroupItemChange=t(this,"calciteInternalRadioGroupItemChange",6),this.checked=!1,this.icon=void 0,this.iconFlipRtl=!1,this.iconPosition="start",this.iconStart=void 0,this.iconEnd=void 0,this.value=void 0}handleCheckedChange(){this.calciteInternalRadioGroupItemChange.emit()}render(){const{checked:i,value:t}=this,n=r(this.el,"scale","m"),o=r(this.el,"appearance","solid"),c=r(this.el,"layout","horizontal"),s=this.iconStart?a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.iconStart,key:"icon-start",scale:"s"}):null,m=this.iconEnd?a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.iconEnd,key:"icon-end",scale:"s"}):null,d=a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.icon,key:"icon",scale:"s"}),h=this.icon&&"start"===this.iconPosition&&!this.iconStart?d:null,u=this.icon&&"end"===this.iconPosition&&!this.iconEnd?d:null;return a(e,{"aria-checked":l(i),"aria-label":t,role:"radio"},a("label",{class:{"label--scale-s":"s"===n,"label--scale-m":"m"===n,"label--scale-l":"l"===n,"label--horizontal":"horizontal"===c,"label--outline":"outline"===o}},h,this.iconStart?s:null,a("slot",null,t),a("slot",{name:"input"}),u,this.iconEnd?m:null))}get el(){return n(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};y.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{margin-inline-end:unset;margin-inline-start:1rem}:host([icon-start]) .label--scale-s .radio-group-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .radio-group-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .radio-group-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .radio-group-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .radio-group-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .radio-group-item-icon{margin-inline-start:1rem}";export{v as calcite_radio_group,y as calcite_radio_group_item}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  function e(){}function n(n,t=!1){if(n.disabled)return n.el.setAttribute("tabindex","-1"),n.el.setAttribute("aria-disabled","true"),n.el.contains(document.activeElement)&&document.activeElement.blur(),void(n.el.click=e);n.el.click=HTMLElement.prototype.click,"function"==typeof t?n.el.setAttribute("tabindex",t.call(n)?"0":"-1"):!0===t?n.el.setAttribute("tabindex","0"):!1===t&&n.el.removeAttribute("tabindex"),n.el.removeAttribute("aria-disabled")}export{n as u}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as a,h as t,g as i}from"./p-e86acc2b.js";import{f as o}from"./p-369fbab6.js";import{u as n}from"./p-56948fdb.js";import{s as e,a as r,c}from"./p-22186c5d.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";const s=class{constructor(t){a(this,t),this.appearance="outline",this.color="neutral",this.disabled=!1,this.icon="plus",this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1}componentWillLoad(){e(this)}componentDidLoad(){r(this)}componentDidRender(){n(this)}async setFocus(){await c(this),o(this.buttonEl)}render(){const{appearance:a,color:i,disabled:o,loading:n,scale:e,textEnabled:r,icon:c,label:s,text:l}=this;return t("calcite-button",{appearance:"solid"===a?"solid":"outline",class:"button",color:i,disabled:o,iconStart:c,label:s,loading:n,ref:a=>{this.buttonEl=a},round:!0,scale:e,title:r?null:s||l||null,type:"button",width:"auto"},this.textEnabled?this.text:null)}get el(){return i(this)}};s.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-button{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:hover{--tw-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:active{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";export{s as calcite_fab}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  function r(r){const{r:n,g:t,b:s}=r;return`#${n.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`.toLowerCase()}const n=/^[0-9A-F]$/i,t=/^#[0-9A-F]{3}$/i,s=/^#[0-9A-F]{6}$/i;function e(r){return u(r)||i(r)}function u(r){return r&&4===r.length&&t.test(r)}function i(r){return r&&7===r.length&&s.test(r)}function a(n){return(n=n.toLowerCase()).startsWith("#")||(n=`#${n}`),u(n)?r(f(n)):n}function f(r){if(!e(r))return null;if(3===(r=r.replace("#","")).length){const[n,t,s]=r.split("");return{r:parseInt(`${n}${n}`,16),g:parseInt(`${t}${t}`,16),b:parseInt(`${s}${s}`,16)}}return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}const c={HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"},o="rgb",l="rgba",h="hsl",$="hsla",b="hsv",g="hsva";function p(r){if("string"==typeof r){if(r.startsWith("#")){const{length:n}=r;if(4===n||7===n)return c.HEX;if(5===n||9===n)return c.HEXA}if(r.startsWith("rgba("))return c.RGBA_CSS;if(r.startsWith("rgb("))return c.RGB_CSS;if(r.startsWith("hsl("))return c.HSL_CSS;if(r.startsWith("hsla("))return c.HSLA_CSS}if("object"==typeof r){if(S(r,"r","g","b"))return S(r,"a")?l:o;if(S(r,"h","s","l"))return S(r,"a")?$:h;if(S(r,"h","s","v"))return S(r,"a")?g:b}return null}function S(r,...n){return n.every((n=>n&&r&&`${n}`in r))}function A(r,n){return(null==r?void 0:r.rgbNumber())===(null==n?void 0:n.rgbNumber())}export{c as C,i as a,n as b,A as c,f as h,e as i,a as n,p,r}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
- import{a as r,S as t,i as n,b as e,c as o,r as u,f}from"./p-2f87050a.js";var c=Array.isArray,a=t?t.prototype:void 0,i=a?a.toString:void 0;function l(t){if("string"==typeof t)return t;if(c(t))return function(r,t){for(var n=-1,e=null==r?0:r.length,o=Array(e);++n<e;)o[n]=t(r[n],n,r);return o}(t,l)+"";if(r(t))return i?i.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function s(r){return r}var v=/^(?:0|[1-9]\d*)$/;function b(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&v.test(r))&&r>-1&&r%1==0&&r<t}function p(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}var y=Object.prototype;function d(r){return o(r)&&"[object Arguments]"==e(r)}var j=Object.prototype,m=j.hasOwnProperty,x=j.propertyIsEnumerable,g=d(function(){return arguments}())?d:function(r){return o(r)&&m.call(r,"callee")&&!x.call(r,"callee")},O="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=O&&"object"==typeof module&&module&&!module.nodeType&&module,A=h&&h.exports===O?u.Buffer:void 0,F=(A?A.isBuffer:void 0)||function(){return!1},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var w,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,R=E&&"object"==typeof module&&module&&!module.nodeType&&module,S=R&&R.exports===E&&f.process,k=function(){try{return R&&R.require&&R.require("util").types||S&&S.binding&&S.binding("util")}catch(r){}}(),G=k&&k.isTypedArray,L=G?(w=G,function(r){return w(r)}):function(r){return o(r)&&p(r.length)&&!!$[e(r)]},N=Object.prototype.hasOwnProperty;var P=Object.prototype.hasOwnProperty;function T(r){return null!=(t=r)&&p(t.length)&&!function(r){if(!n(r))return!1;var t=e(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(r,t){var n=c(r),e=!n&&g(r),o=!n&&!e&&F(r),u=!n&&!e&&!o&&L(r),f=n||e||o||u,a=f?function(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}(r.length,String):[],i=a.length;for(var l in r)!t&&!N.call(r,l)||f&&("length"==l||o&&("offset"==l||"parent"==l)||u&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||b(l,i))||a.push(l);return a}(r,!0):function(r){if(!n(r))return function(r){var t=[];if(null!=r)for(var n in Object(r))t.push(n);return t}(r);var t,e,o=(t=r)===("function"==typeof(e=t&&t.constructor)&&e.prototype||y),u=[];for(var f in r)("constructor"!=f||!o&&P.call(r,f))&&u.push(f);return u}(r);var t}var q=/[\\^$.*+?()[\]{}|]/g,z=RegExp(q.source);function B(r,t){return null==r?r:function(r,t,n){for(var e=-1,o=Object(r),u=n(r),f=u.length;f--;){var c=u[++e];if(!1===t(o[c],c,o))break}return r}(r,"function"==typeof(n=t)?n:s,T);var n}const C=(r,t)=>{const n=function(r){var t;return(r=null==(t=r)?"":l(t))&&z.test(r)?r.replace(q,"\\$&"):r}(t),e=new RegExp(n,"i");0===r.length&&console.warn("No data was passed to the filter function.\n The data argument should be an array of objects");const o=(r,t)=>{if((null==r?void 0:r.constant)||(null==r?void 0:r.filterDisabled))return!0;let n=!1;return B(r,(r=>{"function"!=typeof r&&null!=r&&(Array.isArray(r)||"object"==typeof r&&null!==r?o(r,t)&&(n=!0):t.test(r)&&(n=!0))})),n};return r.filter((r=>o(r,e)))};export{C as f}
6
+ import{a as r,S as t,i as n,b as e,c as o,r as u,f}from"./p-2ca0d844.js";var c=Array.isArray,a=t?t.prototype:void 0,i=a?a.toString:void 0;function l(t){if("string"==typeof t)return t;if(c(t))return function(r,t){for(var n=-1,e=null==r?0:r.length,o=Array(e);++n<e;)o[n]=t(r[n],n,r);return o}(t,l)+"";if(r(t))return i?i.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function s(r){return r}var v=/^(?:0|[1-9]\d*)$/;function b(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&v.test(r))&&r>-1&&r%1==0&&r<t}function p(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}var y=Object.prototype;function d(r){return o(r)&&"[object Arguments]"==e(r)}var j=Object.prototype,m=j.hasOwnProperty,x=j.propertyIsEnumerable,g=d(function(){return arguments}())?d:function(r){return o(r)&&m.call(r,"callee")&&!x.call(r,"callee")},O="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=O&&"object"==typeof module&&module&&!module.nodeType&&module,A=h&&h.exports===O?u.Buffer:void 0,F=(A?A.isBuffer:void 0)||function(){return!1},$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1;var w,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,R=E&&"object"==typeof module&&module&&!module.nodeType&&module,S=R&&R.exports===E&&f.process,k=function(){try{return R&&R.require&&R.require("util").types||S&&S.binding&&S.binding("util")}catch(r){}}(),G=k&&k.isTypedArray,L=G?(w=G,function(r){return w(r)}):function(r){return o(r)&&p(r.length)&&!!$[e(r)]},N=Object.prototype.hasOwnProperty;var P=Object.prototype.hasOwnProperty;function T(r){return null!=(t=r)&&p(t.length)&&!function(r){if(!n(r))return!1;var t=e(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(r,t){var n=c(r),e=!n&&g(r),o=!n&&!e&&F(r),u=!n&&!e&&!o&&L(r),f=n||e||o||u,a=f?function(r,t){for(var n=-1,e=Array(r);++n<r;)e[n]=t(n);return e}(r.length,String):[],i=a.length;for(var l in r)!t&&!N.call(r,l)||f&&("length"==l||o&&("offset"==l||"parent"==l)||u&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||b(l,i))||a.push(l);return a}(r,!0):function(r){if(!n(r))return function(r){var t=[];if(null!=r)for(var n in Object(r))t.push(n);return t}(r);var t,e,o=(t=r)===("function"==typeof(e=t&&t.constructor)&&e.prototype||y),u=[];for(var f in r)("constructor"!=f||!o&&P.call(r,f))&&u.push(f);return u}(r);var t}var q=/[\\^$.*+?()[\]{}|]/g,z=RegExp(q.source);function B(r,t){return null==r?r:function(r,t,n){for(var e=-1,o=Object(r),u=n(r),f=u.length;f--;){var c=u[++e];if(!1===t(o[c],c,o))break}return r}(r,"function"==typeof(n=t)?n:s,T);var n}const C=(r,t)=>{const n=function(r){var t;return(r=null==(t=r)?"":l(t))&&z.test(r)?r.replace(q,"\\$&"):r}(t),e=new RegExp(n,"i");0===r.length&&console.warn("No data was passed to the filter function.\n The data argument should be an array of objects");const o=(r,t)=>{if((null==r?void 0:r.constant)||(null==r?void 0:r.filterDisabled))return!0;let n=!1;return B(r,(r=>{"function"!=typeof r&&null!=r&&(Array.isArray(r)||"object"==typeof r&&null!==r?o(r,t)&&(n=!0):t.test(r)&&(n=!0))})),n};return r.filter((r=>o(r,e)))};export{C as f}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as t,h as i,H as n,g as e,f as o}from"./p-e86acc2b.js";import{c as a}from"./p-22bd463b.js";import{u as r}from"./p-56948fdb.js";import{t as c}from"./p-369fbab6.js";import{s as l,a as s,c as d}from"./p-22186c5d.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";const u=class{constructor(i){t(this,i),this.mutationObserver=a("mutation",(()=>o(this))),this.handleTooltipSlotChange=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")))[0];i&&(i.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.indicator=!1,this.intlLoading="Loading",this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}componentWillLoad(){l(this)}componentDidLoad(){s(this)}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentDidRender(){r(this)}async setFocus(){var t;await d(this),null===(t=this.buttonEl)||void 0===t||t.focus()}renderTextContainer(){const{text:t,textEnabled:n}=this;return t?i("div",{class:{"text-container":!0,"text-container--visible":n},key:"text-container"},t):null}renderIconContainer(){var t;const{loading:n,icon:e,scale:o,el:a,intlLoading:r}=this,c="l"===o?"m":"s",l=n?i("calcite-loader",{inline:!0,label:r,scale:"l"===o?"l":"m"}):null,s=e?i("calcite-icon",{icon:e,scale:c}):null,d=l||s,u=d||(null===(t=a.children)||void 0===t?void 0:t.length),b=i("div",{class:{"slot-container":!0,"slot-container--hidden":n}},i("slot",null));return u?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},d,b):null}render(){const{compact:t,disabled:e,loading:o,textEnabled:a,label:r,text:l}=this,s=r||l,d={button:!0,"button--text-visible":a,"button--compact":t};return i(n,null,i("button",{"aria-busy":c(o),"aria-disabled":c(e),"aria-label":s,class:d,disabled:e,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()),i("slot",{name:"tooltip",onSlotchange:this.handleTooltipSlotChange}))}get el(){return e(this)}};u.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}';export{u as calcite_action}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as t,c as i,h as a,g as s}from"./p-e86acc2b.js";import{h as e,g as n}from"./p-369fbab6.js";import{c,d as o,g as l}from"./p-e7eed877.js";import{c as r}from"./p-22bd463b.js";import{u as h}from"./p-56948fdb.js";import{s as d,a as p,c as m}from"./p-22186c5d.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";const b=class{constructor(a){t(this,a),this.calciteInlineEditableEditCancel=i(this,"calciteInlineEditableEditCancel",6),this.calciteInlineEditableEditConfirm=i(this,"calciteInlineEditableEditConfirm",6),this.calciteInternalInlineEditableEnableEditingChange=i(this,"calciteInternalInlineEditableEnableEditingChange",6),this.mutationObserver=r("mutation",(()=>this.mutationObserverCallback())),this.enableEditing=()=>{var t,i;this.valuePriorToEditing=null===(t=this.inputElement)||void 0===t?void 0:t.value,this.editingEnabled=!0,null===(i=this.inputElement)||void 0===i||i.setFocus(),this.calciteInternalInlineEditableEnableEditingChange.emit()},this.disableEditing=()=>{this.editingEnabled=!1},this.cancelEditing=()=>{this.inputElement&&(this.inputElement.value=this.valuePriorToEditing),this.disableEditing(),this.enableEditingButton.setFocus(),!this.editingEnabled&&this.shouldEmitCancel&&this.calciteInlineEditableEditCancel.emit()},this.escapeKeyHandler=async t=>{var i;t.defaultPrevented||("Escape"===t.key&&(t.preventDefault(),this.cancelEditing()),"Tab"===t.key&&this.shouldShowControls&&(t.shiftKey||t.target!==this.inputElement||(t.preventDefault(),this.cancelEditingButton.setFocus()),t.shiftKey&&t.target===this.cancelEditingButton&&(t.preventDefault(),null===(i=this.inputElement)||void 0===i||i.setFocus())))},this.cancelEditingHandler=async t=>{t.preventDefault(),this.cancelEditing()},this.enableEditingHandler=async t=>{this.disabled||t.target===this.cancelEditingButton||t.target===this.confirmEditingButton||(t.preventDefault(),this.editingEnabled||this.enableEditing())},this.confirmChangesHandler=async t=>{t.preventDefault(),this.calciteInlineEditableEditConfirm.emit();try{this.afterConfirm&&(this.loading=!0,await this.afterConfirm(),this.disableEditing(),this.enableEditingButton.setFocus())}catch(t){}finally{this.loading=!1}},this.disabled=!1,this.editingEnabled=!1,this.loading=!1,this.controls=!1,this.intlEnableEditing="Click to edit",this.intlCancelEditing="Cancel",this.intlConfirmChanges="Save",this.scale=void 0,this.afterConfirm=void 0}disabledWatcher(t){this.inputElement&&(this.inputElement.disabled=t)}editingEnabledWatcher(t,i){this.inputElement&&(this.inputElement.editingEnabled=t),!t&&i&&(this.shouldEmitCancel=!0)}connectedCallback(){var t;c(this),null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0}),this.mutationObserverCallback()}componentWillLoad(){d(this)}componentDidLoad(){p(this)}disconnectedCallback(){var t;o(this),null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentDidRender(){h(this)}render(){return a("div",{class:"wrapper",onClick:this.enableEditingHandler,onKeyDown:this.escapeKeyHandler},a("div",{class:"input-wrapper"},a("slot",null)),a("div",{class:"controls-wrapper"},a("calcite-button",{appearance:"transparent",class:"enable-editing-button",color:"neutral",disabled:this.disabled,iconStart:"pencil",label:this.intlEnableEditing,onClick:this.enableEditingHandler,ref:t=>this.enableEditingButton=t,scale:this.scale,style:{opacity:this.editingEnabled?"0":"1",width:this.editingEnabled?"0":"inherit"},type:"button"}),this.shouldShowControls&&[a("div",{class:"cancel-editing-button-wrapper"},a("calcite-button",{appearance:"transparent",class:"cancel-editing-button",color:"neutral",disabled:this.disabled,iconStart:"x",label:this.intlCancelEditing,onClick:this.cancelEditingHandler,ref:t=>this.cancelEditingButton=t,scale:this.scale,type:"button"})),a("calcite-button",{appearance:"solid",class:"confirm-changes-button",color:"blue",disabled:this.disabled,iconStart:"check",label:this.intlConfirmChanges,loading:this.loading,onClick:this.confirmChangesHandler,ref:t=>this.confirmEditingButton=t,scale:this.scale,type:"button"})]))}blurHandler(){this.controls||this.disableEditing()}async setFocus(){var t,i;await m(this),this.editingEnabled?null===(t=this.inputElement)||void 0===t||t.setFocus():null===(i=this.enableEditingButton)||void 0===i||i.setFocus()}mutationObserverCallback(){var t;this.updateSlottedInput(),this.scale=this.scale||(null===(t=this.inputElement)||void 0===t?void 0:t.scale)||e(this.el,"scale",void 0)}onLabelClick(){this.setFocus()}updateSlottedInput(){const t=n(this.el,{matches:"calcite-input"});this.inputElement=t,t&&(this.inputElement.disabled=this.disabled,this.inputElement.label=this.inputElement.label||l(this))}get shouldShowControls(){return this.editingEnabled&&this.controls}get el(){return s(this)}static get watchers(){return{disabled:["disabledWatcher"],editingEnabled:["editingEnabledWatcher"]}}};b.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block}:host([scale=s]) .controls-wrapper{block-size:1.5rem}:host([scale=m]) .controls-wrapper{block-size:2rem}:host([scale=l]) .controls-wrapper{block-size:2.75rem}:host(:not([editing-enabled]):not([disabled])) .wrapper:hover{background-color:var(--calcite-ui-foreground-2)}.wrapper{box-sizing:border-box;display:flex;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.wrapper .input-wrapper{flex:1 1 0%}.controls-wrapper{display:flex}:host([disabled]) .cancel-editing-button-wrapper{border-color:var(--calcite-ui-border-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{b as calcite_inline_editable}
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
- import{f as n}from"./p-4cae09d9.js";
6
+ import{f as n}from"./p-369fbab6.js";
7
7
  /*!
8
8
  * tabbable 6.0.1
9
9
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
- */var t=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],e=t.join(","),r="undefined"==typeof Element,o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!r&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},i=function(n,t,r){var u=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&o.call(n,e)&&u.unshift(n),u.filter(r)},a=function n(t,r,u){for(var i=[],a=Array.from(t);a.length;){var c=a.shift();if("SLOT"===c.tagName){var f=c.assignedElements(),s=n(f.length?f:c.children,!0,u);u.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{o.call(c,e)&&u.filter(c)&&(r||!t.includes(c))&&i.push(c);var l=c.shadowRoot||"function"==typeof u.getShadowRoot&&u.getShadowRoot(c),v=!u.shadowRootFilter||u.shadowRootFilter(c);if(l&&v){var d=n(!0===l?c.children:l.children,!0,u);u.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else a.unshift.apply(a,c.children)}}return i},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},f=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},s=function(n){return"INPUT"===n.tagName},l=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},v=function(n,t){return!(t.disabled||function(n){return s(n)&&"hidden"===n.type}(t)||function(n,t){var e=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var i=o.call(n,"details>summary:first-of-type");if(o.call(i?n.parentElement:n,"details:not([open]) *"))return!0;if(e&&"full"!==e&&"legacy-full"!==e){if("non-zero-area"===e)return l(n)}else{if("function"==typeof r){for(var a=n;n;){var c=n.parentElement,f=u(n);if(c&&!c.shadowRoot&&!0===r(c))return l(n);n=n.assignedSlot?n.assignedSlot:c||f===n.ownerDocument?c:f.host}n=a}if(function(n){for(var t,e=u(n).host,r=!!(null!==(t=e)&&void 0!==t&&t.ownerDocument.contains(e)||n.ownerDocument.contains(n));!r&&e;){var o;r=!(null===(o=e=u(e).host)||void 0===o||!o.ownerDocument.contains(e))}return r}(n))return!n.getClientRects().length;if("legacy-full"!==e)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var e=0;e<t.children.length;e++){var r=t.children.item(e);if("LEGEND"===r.tagName)return!!o.call(t,"fieldset[disabled] *")||!r.contains(n)}return!0}t=t.parentElement}return!1}(t))},d=function(n,t){return!(function(n){return function(n){return s(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,e=n.form||u(n),r=function(n){return e.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(n.name));else try{t=r(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var e=0;e<n.length;e++)if(n[e].checked&&n[e].form===t)return n[e]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!v(n,t))},p=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function n(t){var e=[],r=[];return t.forEach((function(t,o){var u=!!t.scopeParent,i=u?t.scopeParent:t,a=c(i,u),f=u?n(t.candidates):i;0===a?u?e.push.apply(e,f):e.push(i):r.push({documentOrder:o,tabIndex:a,item:t,isScope:u,content:f})})),r.sort(f).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(e)},w=function(n,t){var e;return e=(t=t||{}).getShadowRoot?a([n],t.includeContainer,{filter:d.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:p}):i(n,t.includeContainer,d.bind(null,t)),b(e)},h=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,e)&&d(t,n)},y=t.concat("iframe").join(","),m=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,y)&&v(t,n)};
10
+ */var t=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],e=t.join(","),r="undefined"==typeof Element,o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!r&&Element.prototype.getRootNode?function(n){return n.getRootNode()}:function(n){return n.ownerDocument},i=function(n,t,r){var u=Array.prototype.slice.apply(n.querySelectorAll(e));return t&&o.call(n,e)&&u.unshift(n),u.filter(r)},a=function n(t,r,u){for(var i=[],a=Array.from(t);a.length;){var c=a.shift();if("SLOT"===c.tagName){var f=c.assignedElements(),s=n(f.length?f:c.children,!0,u);u.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{o.call(c,e)&&u.filter(c)&&(r||!t.includes(c))&&i.push(c);var l=c.shadowRoot||"function"==typeof u.getShadowRoot&&u.getShadowRoot(c),v=!u.shadowRootFilter||u.shadowRootFilter(c);if(l&&v){var d=n(!0===l?c.children:l.children,!0,u);u.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else a.unshift.apply(a,c.children)}}return i},c=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},f=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},s=function(n){return"INPUT"===n.tagName},l=function(n){var t=n.getBoundingClientRect();return 0===t.width&&0===t.height},v=function(n,t){return!(t.disabled||function(n){return s(n)&&"hidden"===n.type}(t)||function(n,t){var e=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(n).visibility)return!0;var i=o.call(n,"details>summary:first-of-type");if(o.call(i?n.parentElement:n,"details:not([open]) *"))return!0;if(e&&"full"!==e&&"legacy-full"!==e){if("non-zero-area"===e)return l(n)}else{if("function"==typeof r){for(var a=n;n;){var c=n.parentElement,f=u(n);if(c&&!c.shadowRoot&&!0===r(c))return l(n);n=n.assignedSlot?n.assignedSlot:c||f===n.ownerDocument?c:f.host}n=a}if(function(n){for(var t,e=u(n).host,r=!!(null!==(t=e)&&void 0!==t&&t.ownerDocument.contains(e)||n.ownerDocument.contains(n));!r&&e;){var o;r=!(null===(o=e=u(e).host)||void 0===o||!o.ownerDocument.contains(e))}return r}(n))return!n.getClientRects().length;if("legacy-full"!==e)return!0}return!1}(t,n)||function(n){return"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some((function(n){return"SUMMARY"===n.tagName}))}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var e=0;e<t.children.length;e++){var r=t.children.item(e);if("LEGEND"===r.tagName)return!!o.call(t,"fieldset[disabled] *")||!r.contains(n)}return!0}t=t.parentElement}return!1}(t))},d=function(n,t){return!(function(n){return function(n){return s(n)&&"radio"===n.type}(n)&&!function(n){if(!n.name)return!0;var t,e=n.form||u(n),r=function(n){return e.querySelectorAll('input[type="radio"][name="'+n+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(n.name));else try{t=r(n.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var o=function(n,t){for(var e=0;e<n.length;e++)if(n[e].checked&&n[e].form===t)return n[e]}(t,n.form);return!o||o===n}(n)}(t)||c(t)<0||!v(n,t))},b=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},p=function n(t){var e=[],r=[];return t.forEach((function(t,o){var u=!!t.scopeParent,i=u?t.scopeParent:t,a=c(i,u),f=u?n(t.candidates):i;0===a?u?e.push.apply(e,f):e.push(i):r.push({documentOrder:o,tabIndex:a,item:t,isScope:u,content:f})})),r.sort(f).reduce((function(n,t){return t.isScope?n.push.apply(n,t.content):n.push(t.content),n}),[]).concat(e)},w=function(n,t){var e;return e=(t=t||{}).getShadowRoot?a([n],t.includeContainer,{filter:d.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):i(n,t.includeContainer,d.bind(null,t)),p(e)},h=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,e)&&d(t,n)},y=t.concat("iframe").join(","),m=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return!1!==o.call(n,y)&&v(t,n)};
11
11
  /*!
12
12
  * focus-trap 7.1.0
13
13
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
14
14
  */
15
- function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function O(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){F(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function F(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var T=[],k=function(n){return setTimeout(n,0)},D=function(n,t){var e=-1;return n.every((function(n,r){return!t(n)||(e=r,!1)})),e},N=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return"function"==typeof n?n.apply(void 0,e):n},S=function(n){return n.target.shadowRoot&&"function"==typeof n.composedPath?n.composedPath()[0]:n.target};function A(t){const{focusTrapEl:e}=t;var r,o,u,c,f,s,l,d,p,b,y,E,F,A,j,g,I,R,C,x;e&&(null==e.tabIndex&&(e.tabIndex=-1),t.focusTrap=(r=e,c=(null==(o={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,fallbackFocus:e,setReturnFocus:t=>(n(t),!1),tabbableOptions:{getShadowRoot:!0}})?void 0:o.document)||document,f=(null==o?void 0:o.trapStack)||T,s=O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},o),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},d=function(n,t,e){return n&&void 0!==n[t]?n[t]:s[e||t]},p=function(n){return l.containerGroups.findIndex((function(t){var e=t.tabbableNodes;return t.container.contains(n)||e.find((function(t){return t===n}))}))},b=function(n){var t=s[n];if("function"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var u=t;if("string"==typeof t&&!(u=c.querySelector(t)))throw new Error("`".concat(n,"` as selector refers to no known node"));return u},y=function(){var n=b("initialFocus");if(!1===n)return!1;if(void 0===n)if(p(c.activeElement)>=0)n=c.activeElement;else{var t=l.tabbableGroups[0];n=t&&t.firstTabbableNode||b("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},E=function(){if(l.containerGroups=l.containers.map((function(n){var t,e,r=w(n,s.tabbableOptions),o=(t=n,(e=(e=s.tabbableOptions)||{}).getShadowRoot?a([t],e.includeContainer,{filter:v.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):i(t,e.includeContainer,v.bind(null,e)));return{container:n,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=o.findIndex((function(t){return t===n}));if(!(e<0))return t?o.slice(e+1).find((function(n){return h(n,s.tabbableOptions)})):o.slice(0,e).reverse().find((function(n){return h(n,s.tabbableOptions)}))}}})),l.tabbableGroups=l.containerGroups.filter((function(n){return n.tabbableNodes.length>0})),l.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},F=function n(t){!1!==t&&t!==c.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),l.mostRecentlyFocusedNode=t,function(n){return n.tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select}(t)&&t.select()):n(y()))},A=function(n){var t=b("setReturnFocus",n);return t||!1!==t&&n},j=function(n){var t=S(n);p(t)>=0||(N(s.clickOutsideDeactivates,n)?u.deactivate({returnFocus:s.returnFocusOnDeactivate&&!m(t,s.tabbableOptions)}):N(s.allowOutsideClick,n)||n.preventDefault())},g=function(n){var t=S(n),e=p(t)>=0;e||t instanceof Document?e&&(l.mostRecentlyFocusedNode=t):(n.stopImmediatePropagation(),F(l.mostRecentlyFocusedNode||y()))},I=function(n){if(function(n){return"Escape"===n.key||"Esc"===n.key||27===n.keyCode}(n)&&!1!==N(s.escapeDeactivates,n))return n.preventDefault(),void u.deactivate();(function(n){return"Tab"===n.key||9===n.keyCode})(n)&&function(n){var t=S(n);E();var e=null;if(l.tabbableGroups.length>0){var r=p(t),o=r>=0?l.containerGroups[r]:void 0;if(r<0)e=n.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(n.shiftKey){var u=D(l.tabbableGroups,(function(n){return t===n.firstTabbableNode}));u<0&&(o.container===t||m(t,s.tabbableOptions)&&!h(t,s.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(u=r),u>=0&&(e=l.tabbableGroups[0===u?l.tabbableGroups.length-1:u-1].lastTabbableNode)}else{var i=D(l.tabbableGroups,(function(n){return t===n.lastTabbableNode}));i<0&&(o.container===t||m(t,s.tabbableOptions)&&!h(t,s.tabbableOptions)&&!o.nextTabbableNode(t))&&(i=r),i>=0&&(e=l.tabbableGroups[i===l.tabbableGroups.length-1?0:i+1].firstTabbableNode)}}else e=b("fallbackFocus");e&&(n.preventDefault(),F(e))}(n)},R=function(n){var t=S(n);p(t)>=0||N(s.clickOutsideDeactivates,n)||N(s.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},C=function(){if(l.active)return function(n,t){if(n.length>0){var e=n[n.length-1];e!==t&&e.pause()}var r=n.indexOf(t);-1===r||n.splice(r,1),n.push(t)}(f,u),l.delayInitialFocusTimer=s.delayInitialFocus?k((function(){F(y())})):F(y()),c.addEventListener("focusin",g,!0),c.addEventListener("mousedown",j,{capture:!0,passive:!1}),c.addEventListener("touchstart",j,{capture:!0,passive:!1}),c.addEventListener("click",R,{capture:!0,passive:!1}),c.addEventListener("keydown",I,{capture:!0,passive:!1}),u},x=function(){if(l.active)return c.removeEventListener("focusin",g,!0),c.removeEventListener("mousedown",j,!0),c.removeEventListener("touchstart",j,!0),c.removeEventListener("click",R,!0),c.removeEventListener("keydown",I,!0),u},(u={get active(){return l.active},get paused(){return l.paused},activate:function(n){if(l.active)return this;var t=d(n,"onActivate"),e=d(n,"onPostActivate"),r=d(n,"checkCanFocusTrap");r||E(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=c.activeElement,t&&t();var o=function(){r&&E(),C(),e&&e()};return r?(r(l.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(n){if(!l.active)return this;var t=O({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},n);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,x(),l.active=!1,l.paused=!1,function(n,t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),n.length>0&&n[n.length-1].unpause()}(f,u);var e=d(t,"onDeactivate"),r=d(t,"onPostDeactivate"),o=d(t,"checkCanReturnFocus"),i=d(t,"returnFocus","returnFocusOnDeactivate");e&&e();var a=function(){k((function(){i&&F(A(l.nodeFocusedBeforeActivation)),r&&r()}))};return i&&o?(o(A(l.nodeFocusedBeforeActivation)).then(a,a),this):(a(),this)},pause:function(){return l.paused||!l.active||(l.paused=!0,x()),this},unpause:function(){return l.paused&&l.active?(l.paused=!1,E(),C(),this):this},updateContainerElements:function(n){var t=[].concat(n).filter(Boolean);return l.containers=t.map((function(n){return"string"==typeof n?c.querySelector(n):n})),l.active&&E(),this}}).updateContainerElements(r),u))}function j(n){var t;null===(t=n.focusTrap)||void 0===t||t.activate()}function g(n){var t;null===(t=n.focusTrap)||void 0===t||t.deactivate()}export{j as a,A as c,g as d}
15
+ function E(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function O(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?E(Object(e),!0).forEach((function(t){F(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function F(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var T=[],k=function(n){return setTimeout(n,0)},D=function(n,t){var e=-1;return n.every((function(n,r){return!t(n)||(e=r,!1)})),e},N=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return"function"==typeof n?n.apply(void 0,e):n},S=function(n){return n.target.shadowRoot&&"function"==typeof n.composedPath?n.composedPath()[0]:n.target};function A(t){const{focusTrapEl:e}=t;var r,o,u,c,f,s,l,d,b,p,y,E,F,A,j,g,I,R,C,x;e&&(null==e.tabIndex&&(e.tabIndex=-1),t.focusTrap=(r=e,c=(null==(o={allowOutsideClick:!0,clickOutsideDeactivates:!1,escapeDeactivates:!1,fallbackFocus:e,setReturnFocus:t=>(n(t),!1),tabbableOptions:{getShadowRoot:!0}})?void 0:o.document)||document,f=(null==o?void 0:o.trapStack)||T,s=O({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},o),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},d=function(n,t,e){return n&&void 0!==n[t]?n[t]:s[e||t]},b=function(n){return l.containerGroups.findIndex((function(t){var e=t.tabbableNodes;return t.container.contains(n)||e.find((function(t){return t===n}))}))},p=function(n){var t=s[n];if("function"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var u=t;if("string"==typeof t&&!(u=c.querySelector(t)))throw new Error("`".concat(n,"` as selector refers to no known node"));return u},y=function(){var n=p("initialFocus");if(!1===n)return!1;if(void 0===n)if(b(c.activeElement)>=0)n=c.activeElement;else{var t=l.tabbableGroups[0];n=t&&t.firstTabbableNode||p("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},E=function(){if(l.containerGroups=l.containers.map((function(n){var t,e,r=w(n,s.tabbableOptions),o=(t=n,(e=(e=s.tabbableOptions)||{}).getShadowRoot?a([t],e.includeContainer,{filter:v.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):i(t,e.includeContainer,v.bind(null,e)));return{container:n,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=o.findIndex((function(t){return t===n}));if(!(e<0))return t?o.slice(e+1).find((function(n){return h(n,s.tabbableOptions)})):o.slice(0,e).reverse().find((function(n){return h(n,s.tabbableOptions)}))}}})),l.tabbableGroups=l.containerGroups.filter((function(n){return n.tabbableNodes.length>0})),l.tabbableGroups.length<=0&&!p("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},F=function n(t){!1!==t&&t!==c.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),l.mostRecentlyFocusedNode=t,function(n){return n.tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select}(t)&&t.select()):n(y()))},A=function(n){var t=p("setReturnFocus",n);return t||!1!==t&&n},j=function(n){var t=S(n);b(t)>=0||(N(s.clickOutsideDeactivates,n)?u.deactivate({returnFocus:s.returnFocusOnDeactivate&&!m(t,s.tabbableOptions)}):N(s.allowOutsideClick,n)||n.preventDefault())},g=function(n){var t=S(n),e=b(t)>=0;e||t instanceof Document?e&&(l.mostRecentlyFocusedNode=t):(n.stopImmediatePropagation(),F(l.mostRecentlyFocusedNode||y()))},I=function(n){if(function(n){return"Escape"===n.key||"Esc"===n.key||27===n.keyCode}(n)&&!1!==N(s.escapeDeactivates,n))return n.preventDefault(),void u.deactivate();(function(n){return"Tab"===n.key||9===n.keyCode})(n)&&function(n){var t=S(n);E();var e=null;if(l.tabbableGroups.length>0){var r=b(t),o=r>=0?l.containerGroups[r]:void 0;if(r<0)e=n.shiftKey?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(n.shiftKey){var u=D(l.tabbableGroups,(function(n){return t===n.firstTabbableNode}));u<0&&(o.container===t||m(t,s.tabbableOptions)&&!h(t,s.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(u=r),u>=0&&(e=l.tabbableGroups[0===u?l.tabbableGroups.length-1:u-1].lastTabbableNode)}else{var i=D(l.tabbableGroups,(function(n){return t===n.lastTabbableNode}));i<0&&(o.container===t||m(t,s.tabbableOptions)&&!h(t,s.tabbableOptions)&&!o.nextTabbableNode(t))&&(i=r),i>=0&&(e=l.tabbableGroups[i===l.tabbableGroups.length-1?0:i+1].firstTabbableNode)}}else e=p("fallbackFocus");e&&(n.preventDefault(),F(e))}(n)},R=function(n){var t=S(n);b(t)>=0||N(s.clickOutsideDeactivates,n)||N(s.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},C=function(){if(l.active)return function(n,t){if(n.length>0){var e=n[n.length-1];e!==t&&e.pause()}var r=n.indexOf(t);-1===r||n.splice(r,1),n.push(t)}(f,u),l.delayInitialFocusTimer=s.delayInitialFocus?k((function(){F(y())})):F(y()),c.addEventListener("focusin",g,!0),c.addEventListener("mousedown",j,{capture:!0,passive:!1}),c.addEventListener("touchstart",j,{capture:!0,passive:!1}),c.addEventListener("click",R,{capture:!0,passive:!1}),c.addEventListener("keydown",I,{capture:!0,passive:!1}),u},x=function(){if(l.active)return c.removeEventListener("focusin",g,!0),c.removeEventListener("mousedown",j,!0),c.removeEventListener("touchstart",j,!0),c.removeEventListener("click",R,!0),c.removeEventListener("keydown",I,!0),u},(u={get active(){return l.active},get paused(){return l.paused},activate:function(n){if(l.active)return this;var t=d(n,"onActivate"),e=d(n,"onPostActivate"),r=d(n,"checkCanFocusTrap");r||E(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=c.activeElement,t&&t();var o=function(){r&&E(),C(),e&&e()};return r?(r(l.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(n){if(!l.active)return this;var t=O({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},n);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,x(),l.active=!1,l.paused=!1,function(n,t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),n.length>0&&n[n.length-1].unpause()}(f,u);var e=d(t,"onDeactivate"),r=d(t,"onPostDeactivate"),o=d(t,"checkCanReturnFocus"),i=d(t,"returnFocus","returnFocusOnDeactivate");e&&e();var a=function(){k((function(){i&&F(A(l.nodeFocusedBeforeActivation)),r&&r()}))};return i&&o?(o(A(l.nodeFocusedBeforeActivation)).then(a,a),this):(a(),this)},pause:function(){return l.paused||!l.active||(l.paused=!0,x()),this},unpause:function(){return l.paused&&l.active?(l.paused=!1,E(),C(),this):this},updateContainerElements:function(n){var t=[].concat(n).filter(Boolean);return l.containers=t.map((function(n){return"string"==typeof n?c.querySelector(n):n})),l.active&&E(),this}}).updateContainerElements(r),u))}function j(n){var t;null===(t=n.focusTrap)||void 0===t||t.activate()}function g(n){var t;null===(t=n.focusTrap)||void 0===t||t.deactivate()}export{j as a,A as c,g as d}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as i,c as t,h as a,H as e,g as o}from"./p-e86acc2b.js";import{g as n,f as l,j as r}from"./p-369fbab6.js";import{c as s}from"./p-22bd463b.js";import{c,d}from"./p-2692bb4e.js";import{c as m,d as h}from"./p-88bd5546.js";import{c as p,a as b,d as u}from"./p-60ab59c8.js";import{s as x,a as g,c as f}from"./p-22186c5d.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";const v=class{constructor(a){i(this,a),this.calciteModalBeforeClose=t(this,"calciteModalBeforeClose",6),this.calciteModalClose=t(this,"calciteModalClose",6),this.calciteModalBeforeOpen=t(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=t(this,"calciteModalOpen",6),this.mutationObserver=s("mutation",(()=>this.updateFooterVisibility())),this.openTransitionProp="opacity",this.setTransitionEl=i=>{this.transitionEl=i,m(this),this.focusTrapEl=i,p(this)},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd),b(this)},this.handleOutsideClose=()=>{this.disableOutsideClose||this.close()},this.close=()=>this.beforeClose(this.el).then((()=>{this.open=!1,this.isOpen=!1,this.removeOverflowHiddenClass()})),this.updateFooterVisibility=()=>{this.hasFooter=!!n(this.el,["back","primary","secondary"])},this.active=!1,this.open=!1,this.beforeClose=()=>Promise.resolve(),this.disableCloseButton=!1,this.disableOutsideClose=!1,this.intlClose="Close",this.docked=void 0,this.disableEscape=!1,this.scale="m",this.width="m",this.fullscreen=void 0,this.color=void 0,this.backgroundColor="white",this.noPadding=!1,this.hasFooter=!0,this.isOpen=!1}componentWillLoad(){x(this),this.open&&requestAnimationFrame((()=>this.openModal()))}componentDidLoad(){g(this)}connectedCallback(){var i;null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0}),this.updateFooterVisibility(),c(this),m(this),this.open&&(this.active=this.open),this.active&&this.activeHandler(this.active)}disconnectedCallback(){var i;this.removeOverflowHiddenClass(),null===(i=this.mutationObserver)||void 0===i||i.disconnect(),d(this),h(this),u(this)}render(){return a(e,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},a("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),a("div",{class:{modal:!0,"modal--open":this.isOpen},ref:this.setTransitionEl},a("div",{class:"header"},this.renderCloseButton(),a("header",{class:"title"},a("slot",{name:"header"}))),a("div",{class:{content:!0,"content--spaced":!this.noPadding,"content--no-footer":!this.hasFooter},ref:i=>this.modalContent=i},a("slot",{name:"content"})),this.renderFooter()))}renderFooter(){return this.hasFooter?a("div",{class:"footer",key:"footer"},a("span",{class:"back"},a("slot",{name:"back"})),a("span",{class:"secondary"},a("slot",{name:"secondary"})),a("span",{class:"primary"},a("slot",{name:"primary"}))):null}renderCloseButton(){return this.disableCloseButton?null:a("button",{"aria-label":this.intlClose,class:"close",key:"button",onClick:this.close,ref:i=>this.closeButtonEl=i,title:this.intlClose},a("calcite-icon",{icon:"x",scale:"s"===this.scale?"s":"m"===this.scale?"m":"l"===this.scale?"l":null}))}renderStyle(){return isNaN(parseInt(`${this.width}`))?null:a("style",null,`\n .modal {\n max-width: ${this.width}px !important;\n }\n @media screen and (max-width: ${this.width}px) {\n .modal {\n height: 100% !important;\n max-height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n }\n .content {\n flex: 1 1 auto !important;\n max-height: unset !important;\n }\n }\n `)}handleEscape(i){!this.open||this.disableEscape||"Escape"!==i.key||i.defaultPrevented||(this.close(),i.preventDefault())}async focusElement(i){return i&&i.focus(),this.setFocus()}async setFocus(i){await f(this);const{closeButtonEl:t}=this;if(t&&"close-button"===i)return l(t);b(this)}async scrollContent(i=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:i,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=i,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add("modal--opening-active"),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove("modal--opening-idle","modal--opening-active"),this.calciteModalOpen.emit()}onBeforeClose(){this.transitionEl.classList.add("modal--closing-active"),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove("modal--closing-idle","modal--closing-active"),this.calciteModalClose.emit(),u(this)}activeHandler(i){this.open=i}async toggleModal(i){var t,a;this.active=i,i?(null===(t=this.transitionEl)||void 0===t||t.classList.add("modal--opening-idle"),this.openModal()):(null===(a=this.transitionEl)||void 0===a||a.classList.add("modal--closing-idle"),this.close())}openModal(){this.el.addEventListener("calciteModalOpen",this.openEnd),this.open=!0,this.isOpen=!0;const i=n(this.el,"header"),t=n(this.el,"content");this.titleId=r(i),this.contentId=r(t),document.documentElement.classList.add("overflow-hidden")}removeOverflowHiddenClass(){document.documentElement.classList.remove("overflow-hidden")}get el(){return o(this)}static get watchers(){return{active:["activeHandler"],open:["toggleModal"]}}};v.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([open]){opacity:1;visibility:visible !important;transition-delay:0ms}:host([open]) .modal--open{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.close:hover,.close:focus,.close:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}.content--spaced{padding:var(--calcite-modal-padding)}.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}:host([background-color=grey]) .content{background-color:var(--calcite-ui-background)}.footer{z-index:400;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width=s]) .modal{max-inline-size:32rem}@media screen and (max-width: 35rem){:host([width=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width=s][docked]){align-items:flex-end}}:host([width=m]) .modal{max-inline-size:48rem}@media screen and (max-width: 51rem){:host([width=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width=m][docked]){align-items:flex-end}}:host([width=l]) .modal{max-inline-size:94rem}@media screen and (max-width: 97rem){:host([width=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([width=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width=l][docked]){align-items:flex-end}}:host([fullscreen]){background-color:transparent}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([open][fullscreen]) .header{border-radius:0}:host([open][fullscreen]) .footer{border-radius:0}:host([docked]) .modal{block-size:auto}:host([docked]) .content{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){:host([docked]) .modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}:host([docked]) .close{border-start-end-radius:var(--calcite-border-radius)}}:host([color=red]) .modal{border-color:var(--calcite-ui-danger)}:host([color=blue]) .modal{border-color:var(--calcite-ui-info)}:host([color=red]) .modal,:host([color=blue]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([color=red]) .header,:host([color=blue]) .header{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){slot[name=header]::slotted(*),*::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}";export{v as calcite_modal}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
- import{r as t,c as i,h as e,g as a}from"./p-8a0a27c0.js";import{t as n,g as o}from"./p-4cae09d9.js";import{c as l,d as r}from"./p-ba367353.js";import"./p-c88cf62a.js";import"./p-16f69e78.js";import"./p-fa3a9bb4.js";const c=class{constructor(e){t(this,e),this.calciteCardSelect=i(this,"calciteCardSelect",6),this.loading=!1,this.selected=!1,this.selectable=!1,this.intlLoading="Loading",this.intlSelect="Select",this.intlDeselect="Deselect",this.thumbnailPosition="block-start",this.cardSelectClick=()=>{this.selectCard()},this.cardSelectKeyDown=t=>{switch(t.key){case" ":case"Enter":this.selectCard(),t.preventDefault()}}}connectedCallback(){l(this)}disonnectedCallback(){r(this)}render(){const t=this.thumbnailPosition.startsWith("inline"),i=this.thumbnailPosition.endsWith("start");return e("div",{class:{"calcite-card-container":!0,inline:t}},this.loading?e("div",{class:"calcite-card-loader-container"},e("calcite-loader",{label:this.intlLoading})):null,i&&this.renderThumbnail(),e("section",{"aria-busy":n(this.loading),class:{container:!0}},this.selectable?this.renderCheckbox():null,this.renderHeader(),e("div",{class:"card-content"},e("slot",null)),this.renderFooter()),!i&&this.renderThumbnail())}selectCard(){this.selected=!this.selected,this.calciteCardSelect.emit()}renderThumbnail(){return o(this.el,"thumbnail")?e("section",{class:"thumbnail-wrapper"},e("slot",{name:"thumbnail"})):null}renderCheckbox(){return e("calcite-label",{class:"checkbox-wrapper",onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown},e("calcite-checkbox",{checked:this.selected,label:this.selected?this.intlDeselect:this.intlSelect}))}renderHeader(){const{el:t}=this,i=o(t,"title"),a=o(t,"subtitle");return i||a?e("header",{class:"header"},e("slot",{name:"title"}),e("slot",{name:"subtitle"})):null}renderFooter(){const{el:t}=this,i=o(t,"footer-leading"),a=o(t,"footer-trailing");return i||a?e("footer",{class:"footer"},e("slot",{name:"footer-leading"}),e("slot",{name:"footer-trailing"})):null}get el(){return a(this)}};c.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:var(--calcite-border-radius-base)}.container{position:relative;display:flex;flex:1 1 auto;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;inset:0px;display:flex;align-items:center}.header,.footer{display:flex;padding-inline:0.75rem;padding-block:0.75rem 0.25rem}.header{flex-direction:column}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:0.75rem;padding-block:0.25rem 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([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)}:host([selectable]) .header{padding-inline-end:2rem}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;margin-block-start: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-inline-size:100%;max-inline-size:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;inset-block-start:0.5rem;inset-inline-end:0.5rem}.thumbnail-wrapper{display:flex}.calcite-card-container.inline{flex-direction:row}.calcite-card-container.inline>.container{inline-size:60%}.calcite-card-container.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.calcite-card-container.inline slot[name=thumbnail]::slotted(img),.calcite-card-container.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-leading]::slotted(*),slot[name=footer-trailing]::slotted(*){display:flex;gap:0.25rem}";export{c as calcite_card}
6
+ import{r as t,c as i,h as e,g as a}from"./p-e86acc2b.js";import{t as n,g as o}from"./p-369fbab6.js";import{c as l,d as r}from"./p-2692bb4e.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";import"./p-22bd463b.js";const c=class{constructor(e){t(this,e),this.calciteCardSelect=i(this,"calciteCardSelect",6),this.cardSelectClick=()=>{this.selectCard()},this.cardSelectKeyDown=t=>{switch(t.key){case" ":case"Enter":this.selectCard(),t.preventDefault()}},this.loading=!1,this.selected=!1,this.selectable=!1,this.intlLoading="Loading",this.intlSelect="Select",this.intlDeselect="Deselect",this.thumbnailPosition="block-start"}connectedCallback(){l(this)}disonnectedCallback(){r(this)}render(){const t=this.thumbnailPosition.startsWith("inline"),i=this.thumbnailPosition.endsWith("start");return e("div",{class:{"calcite-card-container":!0,inline:t}},this.loading?e("div",{class:"calcite-card-loader-container"},e("calcite-loader",{label:this.intlLoading})):null,i&&this.renderThumbnail(),e("section",{"aria-busy":n(this.loading),class:{container:!0}},this.selectable?this.renderCheckbox():null,this.renderHeader(),e("div",{class:"card-content"},e("slot",null)),this.renderFooter()),!i&&this.renderThumbnail())}selectCard(){this.selected=!this.selected,this.calciteCardSelect.emit()}renderThumbnail(){return o(this.el,"thumbnail")?e("section",{class:"thumbnail-wrapper"},e("slot",{name:"thumbnail"})):null}renderCheckbox(){return e("calcite-label",{class:"checkbox-wrapper",onClick:this.cardSelectClick,onKeyDown:this.cardSelectKeyDown},e("calcite-checkbox",{checked:this.selected,label:this.selected?this.intlDeselect:this.intlSelect}))}renderHeader(){const{el:t}=this,i=o(t,"title"),a=o(t,"subtitle");return i||a?e("header",{class:"header"},e("slot",{name:"title"}),e("slot",{name:"subtitle"})):null}renderFooter(){const{el:t}=this,i=o(t,"footer-leading"),a=o(t,"footer-trailing");return i||a?e("footer",{class:"footer"},e("slot",{name:"footer-leading"}),e("slot",{name:"footer-trailing"})):null}get el(){return a(this)}};c.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-inline-size:100%}:host .calcite-card-container{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;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;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:var(--calcite-border-radius-base)}.container{position:relative;display:flex;flex:1 1 auto;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;inset:0px;display:flex;align-items:center}.header,.footer{display:flex;padding-inline:0.75rem;padding-block:0.75rem 0.25rem}.header{flex-direction:column}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:0.75rem;padding-block:0.25rem 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([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)}:host([selectable]) .header{padding-inline-end:2rem}slot[name=subtitle]::slotted(*),*::slotted([slot=subtitle]){margin:0px;margin-block-start: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-inline-size:100%;max-inline-size:100%}slot[name=footer-leading]::slotted(*),*::slotted([slot=footer-leading]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375;margin-inline-end:auto}slot[name=footer-trailing]::slotted(*),*::slotted([slot=footer-trailing]){align-self:center;font-size:var(--calcite-font-size--2);line-height:1.375}.checkbox-wrapper{position:absolute;margin:0px;padding:0px;inset-block-start:0.5rem;inset-inline-end:0.5rem}.thumbnail-wrapper{display:flex}.calcite-card-container.inline{flex-direction:row}.calcite-card-container.inline>.container{inline-size:60%}.calcite-card-container.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.calcite-card-container.inline slot[name=thumbnail]::slotted(img),.calcite-card-container.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-leading]::slotted(*),slot[name=footer-trailing]::slotted(*){display:flex;gap:0.25rem}";export{c as calcite_card}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  function n(n,r){return(n+r)%r}export{n as g}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as t,h as e,F as i,g as a,f as n}from"./p-e86acc2b.js";import{g as o,a as l,i as c}from"./p-369fbab6.js";import{c as r,d as s}from"./p-2692bb4e.js";import{c as d}from"./p-9116d3da.js";import"./p-bf125bc0.js";import"./p-3e12dbdb.js";import"./p-22bd463b.js";const h=class{constructor(e){t(this,e),this.contentBehind=!1}connectedCallback(){r(this)}disconnectedCallback(){s(this)}renderHeader(){return o(this.el,"header")?e("slot",{key:"header",name:"header"}):null}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),a="content-container";return this.contentBehind?[e("div",{class:{content:!0,"content--behind":!0},key:a},t),i]:[e("div",{class:"content",key:a},t,i)]}renderFooter(){return o(this.el,"footer")?e("div",{class:"footer",key:"footer"},e("slot",{name:"footer"})):null}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter())}get el(){return a(this)}};h.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}";const p=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){r(this)}disconnectedCallback(){s(this)}render(){const{el:t}=this,a=e("div",{class:"content"},e("slot",null)),n=o(t,"action-bar"),l=[n?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:"action-bar"})):null,a];return"end"===(null==n?void 0:n.position)&&l.reverse(),e(i,null,l)}get el(){return a(this)}};p.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}";const m=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialClientX=null,this.contentWidthMax=null,this.contentWidthMin=null,this.step=1,this.stepMultiplier=10,this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedWidth=t=>{const{key:e}=t,{el:i,step:a,stepMultiplier:n,contentWidthMin:o,contentWidthMax:c,initialContentWidth:r,position:s}=this,d=a*n;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const h=["ArrowLeft","ArrowRight"],p="rtl"===l(i)&&h.includes(e)?-1:1;return"ArrowUp"===e||("end"===s?e===h[0]:e===h[1])?r+p*(t.shiftKey?d:a):"ArrowDown"===e||("end"===s?e===h[1]:e===h[0])?r-p*(t.shiftKey?d:a):"number"==typeof o&&"Home"===e?o:"number"==typeof c&&"End"===e?c:"PageDown"===e?r-d:"PageUp"===e?r+d:null},this.separatorKeyDown=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedWidth(t);"number"==typeof e&&this.setContentWidth(e)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,initialContentWidth:i,position:a,initialClientX:n}=this,o=t.clientX-n,c="rtl"===l(e)?-1:1;this.setContentWidth(i+("end"===a?-c*o:c*o))},this.separatorPointerUp=t=>{c(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentWidth=()=>{var t;this.initialContentWidth=null===(t=this.contentEl)||void 0===t?void 0:t.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!c(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),this.setInitialContentWidth(),this.initialClientX=t.clientX,document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{var t;null===(t=this.separatorEl)||void 0===t||t.removeEventListener("pointerdown",this.separatorPointerDown)},this.collapsed=!1,this.detached=!1,this.detachedHeightScale="l",this.widthScale="m",this.position=void 0,this.intlResize="Resize",this.resizable=!1,this.contentWidth=null}connectedCallback(){r(this)}disconnectedCallback(){s(this),this.disconnectSeparator()}componentDidLoad(){this.updateAriaValues()}renderHeader(){const{el:t}=this;return o(t,"header")?e("div",{class:"content__header",key:"header"},e("slot",{name:"header"})):null}render(){const{collapsed:t,detached:i,position:a,initialContentWidth:n,contentWidth:o,contentWidthMax:l,contentWidthMin:c,intlResize:r,resizable:s}=this,d=!i&&s,h=e("div",{class:{content:!0,"content--detached":i},hidden:t,key:"content",ref:this.storeContentEl,style:d&&o?{width:`${o}px`}:null},this.renderHeader(),e("div",{class:"content__body"},e("slot",null))),p=d?e("div",{"aria-label":r,"aria-orientation":"horizontal","aria-valuemax":l,"aria-valuemin":c,"aria-valuenow":null!=o?o:n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,ref:this.connectSeparator,role:"separator",tabIndex:0,"touch-action":"none"}):null,m=[e("slot",{key:"action-bar",name:"action-bar"}),h,p];return"end"===a&&m.reverse(),e("div",{class:{container:!0}},m)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,a=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?d(a,i,e):a}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);if(!e)return;const i=parseInt(e.getPropertyValue("max-width"),10),a=parseInt(e.getPropertyValue("min-width"),10),o=parseInt(e.getPropertyValue("width"),10);"number"!=typeof o||isNaN(o)||(this.initialContentWidth=o),"number"!=typeof i||isNaN(i)||(this.contentWidthMax=i),"number"!=typeof a||isNaN(a)||(this.contentWidthMin=a),n(this)}get el(){return a(this)}};m.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:none;display:flex;flex:0 1 auto;align-items:stretch;--calcite-shell-panel-detached-max-height:unset}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;inset-block:0px;display:flex;block-size:100%;inline-size:0.125rem;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;inline-size:var(--calcite-shell-panel-width);max-inline-size:var(--calcite-shell-panel-max-width);min-inline-size:var(--calcite-shell-panel-min-width);transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-block-size:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-block-size:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}";export{h as calcite_shell,p as calcite_shell_center_row,m as calcite_shell_panel}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  const t=new WeakMap;function i(t){t.propertyName===this.openTransitionProp&&t.target===this.transitionEl&&(this.open?this.onBeforeOpen():this.onBeforeClose())}function n(t){t.propertyName===this.openTransitionProp&&t.target===this.transitionEl&&(this.open?this.onOpen():this.onClose())}function s(s){if(o(s),s.transitionEl){const o=i.bind(s),a=n.bind(s);t.set(s,[s.transitionEl,o,a]),s.transitionEl.addEventListener("transitionstart",o),s.transitionEl.addEventListener("transitionend",a)}}function o(i){if(!t.has(i))return;const[n,s,o]=t.get(i);n.removeEventListener("transitionstart",s),n.removeEventListener("transitionend",o),t.delete(i)}export{s as c,o as d}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as t,c as e,h as i,H as a,g as r,F as s}from"./p-e86acc2b.js";import{h as o,b as n,T as c,c as l,g as h,f as d,e as u,s as p,j as g,i as f,k as v,n as m,p as w}from"./p-37eb2342.js";import{c as y,d as x,n as b}from"./p-a215715b.js";import{c as k,a as D}from"./p-369fbab6.js";import{C as z}from"./p-bf125bc0.js";import{u as _}from"./p-56948fdb.js";import{i as C}from"./p-f2e09bee.js";import{H as A}from"./p-a598a5a8.js";import"./p-22bd463b.js";import"./p-3e12dbdb.js";const P=class{constructor(i){t(this,i),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",6),this.keyDownHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=o(e,this.startAsDate),i=o(e,this.endAsDate);i>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>i?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,i,a,r,s;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(i=this.startAsDate)||void 0===i?void 0:i.getTime())!==(null===(a=this.activeStartDate)||void 0===a?void 0:a.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(s=this.activeEndDate)||void 0===s?void 0:s.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail),i=n(e);if(this.range||i!==n(this.valueAsDate)){if(!this.range)return this.value=i||"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=o(e,this.startAsDate),i=o(e,this.endAsDate);0===i||t<0?this.setStartDate(e):0===t||i<0?this.setEndDate(e):t<i?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}},this.activeDate=void 0,this.activeRange=void 0,this.value=void 0,this.headingLevel=void 0,this.valueAsDate=void 0,this.startAsDate=void 0,this.endAsDate=void 0,this.minAsDate=void 0,this.maxAsDate=void 0,this.min=void 0,this.max=void 0,this.intlPrevMonth=c.prevMonth,this.intlNextMonth=c.nextMonth,this.intlYear=c.year,this.locale=void 0,this.numberingSystem=void 0,this.scale="m",this.range=!1,this.start=void 0,this.end=void 0,this.proximitySelectionDisabled=!1,this.activeStartDate=void 0,this.activeEndDate=void 0,this.globalAttributes={},this.effectiveLocale="",this.localeData=void 0,this.hoverRange=void 0}activeDateWatcher(t){"end"===this.activeRange&&(this.activeEndDate=t)}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){y(this),Array.isArray(this.value)?(this.valueAsDate=h(this.value),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}disconnectedCallback(){x(this)}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=d(this.range&&Array.isArray(this.valueAsDate)?this.valueAsDate[0]:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.getActiveDate(e,this.minAsDate,this.maxAsDate);const s=this.range&&Array.isArray(this.valueAsDate)?d(this.valueAsDate[1],this.minAsDate,this.maxAsDate):null,o=this.getActiveEndDate(s,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!s)||!o||(r=o),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),i(a,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&s||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,s))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=h(t),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){b.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.effectiveLocale,useGrouping:!1},this.localeData=await u(this.effectiveLocale)}renderCalendar(t,e,a,r,s){return this.localeData&&[i("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r||new Date}),i("calcite-date-picker-month",{activeDate:t,endDate:this.range?s:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?s:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t?p(t):t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?n(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?n(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,i){return d(this.activeDate,e,i)||t||d(new Date,e,i)}getActiveEndDate(t,e,i){return d(this.activeEndDate,e,i)||t||d(new Date,e,i)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{activeDate:["activeDateWatcher"],valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],effectiveLocale:["loadLocaleData"]}}};P.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}";const S=class{constructor(i){t(this,i),this.calciteDaySelect=e(this,"calciteDaySelect",6),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",6),this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{C(t.key)&&(!this.disabled&&this.calciteDaySelect.emit(),t.preventDefault())},this.day=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}mouseoverHandler(){this.calciteInternalDayHover.emit()}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}render(){if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const t=b.localize(String(this.day)),e=D(this.el);return i(a,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},i("div",{class:{"day-v-wrapper":!0,[z.rtl]:"rtl"===e}},i("div",{class:"day-wrapper"},i("span",{class:"day"},i("span",{class:"text"},t)))))}componentDidRender(){_(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};S.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;min-inline-size:0px;cursor:pointer;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{flex:1 1 auto}.day-wrapper{display:flex;flex-direction:column;align-items:center}.day{display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) .day{opacity:1}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day{box-shadow:0 0 0 -2px var(--calcite-ui-foreground-1)}:host([end-of-range]:not(:focus)) .calcite--rtl .day{box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper{box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--start) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--end) .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";const M=class{constructor(i){t(this,i),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",6),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;e.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)},this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:n}=this.localeData.days,c="s"===this.scale?n||o||s:o||s||n,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),u=this.getNextMonthDays(t,e,r),p=[...d.map((i=>{const a=new Date(e,t-1,i);return this.renderDateDay(!1,i,a)})),...h.map((i=>{const a=new Date(e,t,i),r=g(a,this.activeDate);return this.renderDateDay(r,i,a,!0,!0)})),...u.map((i=>{const a=new Date(e,t+1,i);return this.renderDateDay(!1,i,a)}))],f=[];for(let t=0;t<p.length;t+=7)f.push(p.slice(t,t+7));return i(a,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},i("div",{class:"calender",role:"grid"},i("div",{class:"week-headers",role:"row"},l.map((t=>i("span",{class:"week-header",role:"columnheader"},t)))),f.map((t=>i("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(d(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,i){const a=new Date(e,t,0),r=a.getDate(),s=[];if(a.getDay()-6===i)return s;for(let t=a.getDay()-i;t>=0;t--)s.push(r-t);return s}getCurrentMonthDays(t,e){const i=new Date(e,t+1,0).getDate(),a=[];for(let t=0;t<i;t++)a.push(t+1);return a}getNextMonthDays(t,e,i){const a=new Date(e,t+1,0).getDay(),r=[];if(a===(i+6)%7)return r;for(let t=0;t<(6-(a-i))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(g(t,this.selectedDate)||this.startDate&&g(t,this.startDate)||this.endDate&&g(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||g(this.startDate,this.endDate)||!g(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!g(this.startDate,this.endDate)&&g(this.endDate,t)||!this.endDate&&this.hoverRange&&g(this.startDate,this.hoverRange.end)&&g(t,this.hoverRange.end))}renderDateDay(t,e,a,r,s){var o;const n=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&g(null===(o=this.hoverRange)||void 0===o?void 0:o.end,this.startDate);return i("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":n,"focused--end":!n},currentMonth:r,day:e,disabled:!f(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!g(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:e=>{s&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:i}=this.hoverRange,a=this.isFocusedOnStart(),r=this.isHoverInRange(),s=r&&(!a&&t>this.startDate&&(t<i||g(t,i))||a&&t<this.endDate&&(t>e||g(t,e))),o=!r&&(!a&&t>=this.endDate&&(t<i||g(t,i))||a&&(t<this.startDate||this.endDate&&g(t,this.startDate))&&(t>e||g(t,e)));return s||o}get el(){return r(this)}};M.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:flex;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const j=class{constructor(i){t(this,i),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.onYearKey=t=>{const e=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{C(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{C(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{t.preventDefault(),this.calciteDatePickerSelect.emit(e)},this.selectedDate=void 0,this.activeDate=void 0,this.headingLevel=void 0,this.min=void 0,this.max=void 0,this.intlPrevMonth=void 0,this.intlNextMonth=void 0,this.intlYear=void 0,this.scale=void 0,this.localeData=void 0,this.globalAttributes={},this.nextMonthDate=void 0,this.prevMonthDate=void 0}componentWillLoad(){this.parentDatePickerEl=k(this.el,"calcite-date-picker")}connectedCallback(){this.setNextPrevMonthDates()}render(){return i("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;if(this.parentDatePickerEl){const{numberingSystem:t,lang:e}=this.parentDatePickerEl;b.numberFormatOptions={useGrouping:!1,...t&&{numberingSystem:t},...e&&{locale:e}}}const e=this.activeDate.getMonth(),{months:a,unitOrder:r}=this.localeData,o=(a.wide||a.narrow||a.abbreviated)[e],n=this.formatCalendarYear(this.activeDate.getFullYear()),c="l"===this.scale?"m":"s",l=v(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return i(s,null,i("a",{"aria-disabled":`${this.prevMonthDate.getMonth()===e}`,"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},i("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),i("div",{class:{text:!0,"text--reverse":h}},i(A,{class:"month",level:this.headingLevel},o),i("span",{class:"year-wrap"},i("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:n}),d&&i("span",{class:"suffix"},d))),i("a",{"aria-disabled":`${this.nextMonthDate.getMonth()===e}`,"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},i("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=d(m(this.activeDate),this.min,this.max),this.prevMonthDate=d(w(this.activeDate),this.min,this.max))}formatCalendarYear(t){const{localeData:e}=this;return b.localize(`${t+("buddhist"===e["default-calendar"]?543:0)}`)}parseCalendarYear(t){const{localeData:e}=this,i="buddhist"===e["default-calendar"]?543:0,a=Number(b.delocalize(t))-i;return b.localize(`${a}`)}getInRangeDate({localizedYear:t,offset:e=0}){const{min:i,max:a,activeDate:r}=this,s=Number(b.delocalize(t)),o=s.toString().length,n=!isNaN(s)&&s+e,c=n&&(!i||i.getFullYear()<=n)&&(!a||a.getFullYear()>=n);if(n&&c&&o===t.length){const t=new Date(r);return t.setFullYear(n),d(t,i,a)}}setYear({localizedYear:t,commit:e=!0,offset:i=0}){const{yearInput:a,activeDate:r}=this,s=this.getInRangeDate({localizedYear:t,offset:i});s&&this.calciteDatePickerSelect.emit(s),e&&(a.value=this.formatCalendarYear((s||r).getFullYear()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};j.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}.text--reverse{flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{text-align:start}.year-wrap{position:relative}.suffix{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";export{P as calcite_date_picker,S as calcite_date_picker_day,M as calcite_date_picker_month,j as calcite_date_picker_month_header}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as i,c as t,h as a,H as e,g as o}from"./p-e86acc2b.js";import{g as s}from"./p-3e12dbdb.js";import{a as n,f as c,t as r}from"./p-369fbab6.js";import{c as d,d as h,g as l}from"./p-e7eed877.js";import{c as u,d as m,H as p}from"./p-2fc52526.js";import{g as f}from"./p-6ac35a8e.js";import{u as b}from"./p-56948fdb.js";import{c as v,s as k,a as w}from"./p-22186c5d.js";import"./p-bf125bc0.js";const g=class{constructor(a){i(this,a),this.calciteInternalRadioButtonBlur=t(this,"calciteInternalRadioButtonBlur",6),this.calciteRadioButtonChange=t(this,"calciteRadioButtonChange",6),this.calciteInternalRadioButtonCheckedChange=t(this,"calciteInternalRadioButtonCheckedChange",6),this.calciteInternalRadioButtonFocus=t(this,"calciteInternalRadioButtonFocus",6),this.selectItem=(i,t)=>{i[t].click()},this.queryButtons=()=>Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden])")).filter((i=>i.name===this.name)),this.isDefaultSelectable=()=>{const i=this.queryButtons();return!i.some((i=>i.checked))&&i[0]===this.el},this.check=()=>{this.disabled||(this.uncheckAllRadioButtonsInGroup(),this.checked=!0,this.focused=!0,this.calciteRadioButtonChange.emit(),this.setFocus())},this.clickHandler=()=>{this.check()},this.setContainerEl=i=>{this.containerEl=i},this.handleKeyDown=i=>{const{key:t}=i,{el:a}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return;if(" "===t)return this.check(),void i.preventDefault();let e=t;"rtl"===n(a)&&("ArrowRight"===t&&(e="ArrowLeft"),"ArrowLeft"===t&&(e="ArrowRight"));const o=Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((i=>i.name===this.name));let s=0;const c=o.length;switch(o.some(((i,t)=>{if(i.checked)return s=t,!0})),e){case"ArrowLeft":case"ArrowUp":return i.preventDefault(),void this.selectItem(o,f(Math.max(s-1,-1),c));case"ArrowRight":case"ArrowDown":return i.preventDefault(),void this.selectItem(o,f(s+1,c));default:return}},this.onContainerBlur=()=>{this.focused=!1,this.calciteInternalRadioButtonBlur.emit()},this.onContainerFocus=()=>{this.disabled||(this.focused=!0,this.calciteInternalRadioButtonFocus.emit())},this.checked=!1,this.disabled=!1,this.focused=!1,this.guid=void 0,this.hidden=!1,this.hovered=!1,this.label=void 0,this.name=void 0,this.required=!1,this.scale="m",this.value=void 0}checkedChanged(i){i&&this.uncheckOtherRadioButtonsInGroup(),this.calciteInternalRadioButtonCheckedChange.emit()}nameChanged(){this.checkLastRadioButton()}async setFocus(){await v(this),this.disabled||c(this.containerEl)}onLabelClick(i){if(!this.disabled&&!this.hidden){this.uncheckOtherRadioButtonsInGroup();const t=i.currentTarget,a=t.for?this.rootNode.querySelector(`calcite-radio-button[id="${t.for}"]`):t.querySelector(`calcite-radio-button[name="${this.name}"]`);a&&(a.checked=!0,a.focused=!0),this.calciteRadioButtonChange.emit(),this.setFocus()}}checkLastRadioButton(){const i=this.queryButtons().filter((i=>i.checked));if((null==i?void 0:i.length)>1){const t=i[i.length-1];i.filter((i=>i!==t)).forEach((i=>{i.checked=!1,i.emitCheckedChange()}))}}async emitCheckedChange(){this.calciteInternalRadioButtonCheckedChange.emit()}uncheckAllRadioButtonsInGroup(){this.queryButtons().forEach((i=>{i.checked&&(i.checked=!1,i.focused=!1)}))}uncheckOtherRadioButtonsInGroup(){this.queryButtons().filter((i=>i.guid!==this.guid)).forEach((i=>{i.checked&&(i.checked=!1,i.focused=!1)}))}getTabIndex(){if(!this.disabled)return this.checked||this.isDefaultSelectable()?0:-1}mouseenter(){this.hovered=!0}mouseleave(){this.hovered=!1}connectedCallback(){this.rootNode=this.el.getRootNode(),this.guid=this.el.id||`calcite-radio-button-${s()}`,this.name&&this.checkLastRadioButton(),d(this),u(this)}componentWillLoad(){k(this)}componentDidLoad(){w(this),this.focused&&!this.disabled&&this.setFocus()}disconnectedCallback(){h(this),m(this)}componentDidRender(){b(this)}render(){const i=this.getTabIndex();return a(e,{onClick:this.clickHandler,onKeyDown:this.handleKeyDown},a("div",{"aria-checked":r(this.checked),"aria-label":l(this),class:"container",onBlur:this.onContainerBlur,onFocus:this.onContainerFocus,ref:this.setContainerEl,role:"radio",tabIndex:i},a("div",{class:"radio"})),a(p,{component:this}))}get el(){return o(this)}static get watchers(){return{checked:["checkedChanged"],name:["nameChanged"]}}};g.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([focused]) .radio{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';export{g as calcite_radio_button}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  const t=(t,a,s)=>Math.max(a,Math.min(t,s)),a=t=>{const a=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0};export{t as c,a as d}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.647
4
+ * v1.0.0-next.649
5
5
  */
6
6
  const e={backButton:"back-button",container:"container",header:"header",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",contentContainer:"content-container",contentHeight:"content-height",fabContainer:"fab-container",footer:"footer"},t={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"},n={headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"},o={back:"Back",close:"Close",open:"Open",options:"Options"};export{e as C,t as I,n as S,o as T}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as a,c as t,h as i,H as n,g as o}from"./p-e86acc2b.js";import{c as e}from"./p-22bd463b.js";const c=class{constructor(i){a(this,i),this.calciteRadioButtonGroupChange=t(this,"calciteRadioButtonGroupChange",6),this.mutationObserver=e("mutation",(()=>this.passPropsToRadioButtons())),this.passPropsToRadioButtons=()=>{const a=this.el.querySelectorAll("calcite-radio-button");a.length>0&&a.forEach((a=>{a.disabled=this.disabled||a.disabled,a.hidden=this.hidden,a.name=this.name,a.required=this.required,a.scale=this.scale}))},this.disabled=!1,this.hidden=!1,this.layout="horizontal",this.name=void 0,this.required=!1,this.scale="m"}onDisabledChange(){this.passPropsToRadioButtons()}onHiddenChange(){this.passPropsToRadioButtons()}onLayoutChange(){this.passPropsToRadioButtons()}onScaleChange(){this.passPropsToRadioButtons()}connectedCallback(){var a;this.passPropsToRadioButtons(),null===(a=this.mutationObserver)||void 0===a||a.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){var a;null===(a=this.mutationObserver)||void 0===a||a.disconnect()}radioButtonChangeHandler(a){this.calciteRadioButtonGroupChange.emit(a.target.value)}render(){return i(n,{role:"radiogroup"},i("slot",null))}get el(){return o(this)}static get watchers(){return{disabled:["onDisabledChange"],hidden:["onHiddenChange"],layout:["onLayoutChange"],scale:["onScaleChange"]}}};c.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:flex;max-inline-size:100vw}:host([layout=horizontal]){flex-direction:row;flex-wrap:wrap}:host([layout=horizontal][scale=s]){gap:1rem}:host([layout=horizontal][scale=m]){gap:1.25rem}:host([layout=horizontal][scale=l]){gap:1.5rem}:host([layout=vertical]){flex-direction:column}";export{c as calcite_radio_button_group}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-next.649
5
+ */
6
+ import{r as i,h as a,g as t}from"./p-e86acc2b.js";const n=class{constructor(a){i(this,a),this.type="determinate",this.value=0,this.label=void 0,this.text=void 0,this.reversed=!1}render(){return a("div",{"aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},a("div",{class:"track"},a("div",{class:{bar:!0,indeterminate:"indeterminate"===this.type,reversed:this.reversed},style:"determinate"===this.type?{width:100*this.value+"%"}:{}})),this.text?a("div",{class:"text"},this.text):null)}get el(){return t(this)}};n.style="@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:1;inline-size:100%;overflow:hidden;background:var(--calcite-ui-border-3)}.bar{z-index:1;background-color:var(--calcite-ui-brand)}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) * 11) linear infinite}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}";export{n as calcite_progress}