@esri/calcite-components 1.0.0-beta.72 → 1.0.0-beta.76

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 (976) hide show
  1. package/dist/calcite/assets/calcite-date-picker/nls/bg.json +31 -0
  2. package/dist/calcite/assets/calcite-date-picker/nls/pt-BR.json +31 -0
  3. package/dist/calcite/assets/calcite-date-picker/nls/pt-PT.json +3 -3
  4. package/dist/calcite/assets/calcite-icon/clipboard16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/clipboard24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/clipboard32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/folders16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/folders24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/folders32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/initiative16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/initiative24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/initiative32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/initiativeTemplate16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/initiativeTemplate24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/initiativeTemplate32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/multipleVariables16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/multipleVariables24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/multipleVariables32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/paletteCheck16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/paletteCheck24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/paletteCheck32.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/pentagon16.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/pentagon24.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/pentagon32.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/puzzlePiece16.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/puzzlePiece24.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/puzzlePiece32.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/ribbonRosette16.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/ribbonRosette24.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/ribbonRosette32.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/survey16.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/survey24.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/survey32.json +1 -0
  49. package/dist/calcite/calcite.css +1 -1
  50. package/dist/calcite/calcite.esm.js +1 -1
  51. package/dist/calcite/calcite.js +1 -1
  52. package/dist/calcite/p-010b6b91.system.entry.js +5 -0
  53. package/dist/calcite/p-015d6a24.entry.js +5 -0
  54. package/dist/calcite/p-0459ae3e.system.entry.js +5 -0
  55. package/dist/calcite/p-07603601.system.entry.js +5 -0
  56. package/dist/calcite/p-0926320c.system.entry.js +5 -0
  57. package/dist/calcite/{p-444ecda9.entry.js → p-09bd0204.entry.js} +1 -1
  58. package/dist/calcite/p-0a5d059d.js +5 -0
  59. package/dist/calcite/p-0c20a4e3.entry.js +5 -0
  60. package/dist/calcite/p-0d61e540.system.entry.js +5 -0
  61. package/dist/calcite/{p-0f2b51bf.system.js → p-10e3f599.system.js} +1 -1
  62. package/dist/calcite/p-1199ec78.entry.js +5 -0
  63. package/dist/calcite/p-13f9119c.js +5 -0
  64. package/dist/calcite/p-150e45ec.entry.js +5 -0
  65. package/dist/calcite/{p-a4a12ffb.system.entry.js → p-15eebdf8.system.entry.js} +2 -2
  66. package/dist/calcite/p-16a27151.entry.js +5 -0
  67. package/dist/calcite/p-18259377.entry.js +5 -0
  68. package/dist/calcite/p-1a3a366d.system.js +5 -0
  69. package/dist/calcite/p-1a907c90.entry.js +5 -0
  70. package/dist/calcite/p-1ce851da.js +5 -0
  71. package/dist/calcite/p-21e8e1e9.system.entry.js +5 -0
  72. package/dist/calcite/{p-66fda99e.entry.js → p-2328c2ec.entry.js} +1 -1
  73. package/dist/calcite/p-24765b5e.entry.js +5 -0
  74. package/dist/calcite/{p-a2a22cbc.entry.js → p-2718a51a.entry.js} +1 -1
  75. package/dist/calcite/{p-04cc8259.entry.js → p-2be7746c.entry.js} +1 -1
  76. package/dist/calcite/p-2d88c0ba.entry.js +5 -0
  77. package/dist/calcite/p-353015b6.system.entry.js +5 -0
  78. package/dist/calcite/p-385f6cb9.entry.js +5 -0
  79. package/dist/calcite/p-3c34f20d.system.js +5 -0
  80. package/dist/calcite/{p-d8039e8a.system.entry.js → p-3e59c8ef.system.entry.js} +1 -1
  81. package/dist/calcite/p-3f6a6851.system.entry.js +5 -0
  82. package/dist/calcite/p-3f792e3d.system.entry.js +5 -0
  83. package/dist/calcite/p-408408d6.entry.js +5 -0
  84. package/dist/calcite/p-42ac867a.entry.js +5 -0
  85. package/dist/calcite/p-4340f6ed.entry.js +5 -0
  86. package/dist/calcite/{p-523bc291.system.js → p-48fae9a9.system.js} +1 -1
  87. package/dist/calcite/{p-f1f65708.entry.js → p-4b7ff039.entry.js} +1 -1
  88. package/dist/calcite/{p-fc9025a2.entry.js → p-4edc43c1.entry.js} +1 -1
  89. package/dist/calcite/p-4fc8341b.system.entry.js +5 -0
  90. package/dist/calcite/p-510ef2b7.system.entry.js +5 -0
  91. package/dist/calcite/{p-8c4b6059.system.entry.js → p-5248d5fb.system.entry.js} +1 -1
  92. package/dist/calcite/p-54c3ea44.system.entry.js +5 -0
  93. package/dist/calcite/p-55c884ba.entry.js +5 -0
  94. package/dist/calcite/p-5660811e.entry.js +5 -0
  95. package/dist/calcite/p-5833a3af.entry.js +5 -0
  96. package/dist/calcite/p-59c6c9a0.entry.js +5 -0
  97. package/dist/calcite/p-5cd2ff4e.system.entry.js +5 -0
  98. package/dist/calcite/p-5f129d47.entry.js +5 -0
  99. package/dist/calcite/{p-e0b1e90c.entry.js → p-635594b8.entry.js} +1 -1
  100. package/dist/calcite/p-65ba6a8f.entry.js +5 -0
  101. package/dist/calcite/p-672ec03a.entry.js +5 -0
  102. package/dist/calcite/p-67cd9e12.system.entry.js +5 -0
  103. package/dist/calcite/p-6a5a4922.system.entry.js +5 -0
  104. package/dist/calcite/p-6a797e80.entry.js +5 -0
  105. package/dist/calcite/p-6b529df3.system.entry.js +5 -0
  106. package/dist/calcite/p-6c4eb127.system.entry.js +5 -0
  107. package/dist/calcite/p-6d5c2fce.system.entry.js +5 -0
  108. package/dist/calcite/{p-27d9be53.entry.js → p-6ee036b3.entry.js} +1 -1
  109. package/dist/calcite/p-71b6bc4c.system.entry.js +5 -0
  110. package/dist/calcite/p-7266c359.system.entry.js +5 -0
  111. package/dist/calcite/p-72951ce3.system.entry.js +5 -0
  112. package/dist/calcite/p-75cda5de.system.entry.js +5 -0
  113. package/dist/calcite/p-75df0e8f.entry.js +5 -0
  114. package/dist/calcite/p-79ba0ff5.js +5 -0
  115. package/dist/calcite/p-7b2f2117.system.entry.js +5 -0
  116. package/dist/calcite/{p-bca0b34f.entry.js → p-7b341154.entry.js} +1 -1
  117. package/dist/calcite/p-7e9189e8.system.entry.js +5 -0
  118. package/dist/calcite/p-80e56ba6.system.entry.js +5 -0
  119. package/dist/calcite/p-8124f6cc.system.entry.js +5 -0
  120. package/dist/calcite/p-81dc55fa.entry.js +5 -0
  121. package/dist/calcite/p-82e0b30e.entry.js +5 -0
  122. package/dist/calcite/p-8446d974.system.entry.js +5 -0
  123. package/dist/calcite/p-852a718f.entry.js +5 -0
  124. package/dist/calcite/p-8647d09e.entry.js +5 -0
  125. package/dist/calcite/p-888ce316.system.entry.js +5 -0
  126. package/dist/calcite/p-8bfa00bc.js +5 -0
  127. package/dist/calcite/p-8d1564c5.system.entry.js +5 -0
  128. package/dist/calcite/{p-fd255a24.entry.js → p-8d437ca2.entry.js} +1 -1
  129. package/dist/calcite/p-8f3a3e4e.js +5 -0
  130. package/dist/calcite/p-8f6aac19.entry.js +5 -0
  131. package/dist/calcite/p-903c016f.entry.js +5 -0
  132. package/dist/calcite/p-9217d4ef.system.js +5 -0
  133. package/dist/calcite/p-92901db9.entry.js +5 -0
  134. package/dist/calcite/{p-34e5baa7.system.js → p-94cfc34a.system.js} +1 -1
  135. package/dist/calcite/p-95810140.system.js +5 -0
  136. package/dist/calcite/p-95a3bcff.system.entry.js +5 -0
  137. package/dist/calcite/p-95b7c39a.system.entry.js +5 -0
  138. package/dist/calcite/p-983287ce.system.js +5 -0
  139. package/dist/calcite/p-9a7c4812.js +5 -0
  140. package/dist/calcite/p-9ef989e2.entry.js +5 -0
  141. package/dist/calcite/p-9f1c59ec.entry.js +5 -0
  142. package/dist/calcite/p-a37ecb59.entry.js +5 -0
  143. package/dist/calcite/p-a468d651.system.entry.js +5 -0
  144. package/dist/calcite/p-a77a8427.entry.js +5 -0
  145. package/dist/calcite/p-a7dfed2f.entry.js +5 -0
  146. package/dist/calcite/p-a809abbd.system.entry.js +5 -0
  147. package/dist/calcite/p-a859ccd4.system.js +5 -0
  148. package/dist/calcite/p-abf93e8f.system.js +5 -0
  149. package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
  150. package/dist/calcite/p-ac8c0493.entry.js +5 -0
  151. package/dist/calcite/p-ad2fd769.system.entry.js +5 -0
  152. package/dist/calcite/p-af5e11c9.system.entry.js +5 -0
  153. package/dist/calcite/p-af75a72b.js +5 -0
  154. package/dist/calcite/p-b0ab09d3.system.entry.js +5 -0
  155. package/dist/calcite/p-b4a80f18.system.entry.js +5 -0
  156. package/dist/calcite/p-b519a98e.system.entry.js +5 -0
  157. package/dist/calcite/p-b5781bda.entry.js +5 -0
  158. package/dist/calcite/p-b8a670cc.entry.js +5 -0
  159. package/dist/calcite/p-ba6b0f09.entry.js +5 -0
  160. package/dist/calcite/p-bb401f25.system.js +5 -0
  161. package/dist/calcite/p-bd289892.entry.js +5 -0
  162. package/dist/calcite/p-c36161b9.system.entry.js +5 -0
  163. package/dist/calcite/p-c525d974.system.entry.js +5 -0
  164. package/dist/calcite/{p-d3db2b58.system.entry.js → p-c5e8d437.system.entry.js} +1 -1
  165. package/dist/calcite/p-cb02295b.system.entry.js +5 -0
  166. package/dist/calcite/p-d2931c8e.system.entry.js +5 -0
  167. package/dist/calcite/p-d2ebedc0.entry.js +5 -0
  168. package/dist/calcite/p-d3316626.system.entry.js +5 -0
  169. package/dist/calcite/p-da987587.system.entry.js +5 -0
  170. package/dist/calcite/p-dadb1104.system.entry.js +5 -0
  171. package/dist/calcite/p-dae2daf0.entry.js +5 -0
  172. package/dist/calcite/{p-f39dc5fd.entry.js → p-dc24f809.entry.js} +1 -1
  173. package/dist/calcite/p-dd9f2e61.js +5 -0
  174. package/dist/calcite/p-de10a37b.entry.js +5 -0
  175. package/dist/calcite/p-e2047621.system.js +5 -0
  176. package/dist/calcite/{p-06ddf228.entry.js → p-e54a3620.entry.js} +1 -1
  177. package/dist/calcite/p-e93a418e.system.entry.js +5 -0
  178. package/dist/calcite/p-ea2b09ba.entry.js +5 -0
  179. package/dist/calcite/{p-40e16f41.entry.js → p-ebd8eef3.entry.js} +1 -1
  180. package/dist/calcite/p-ec2d6c5f.system.entry.js +5 -0
  181. package/dist/calcite/p-ec9bab33.system.js +5 -0
  182. package/dist/calcite/p-eeb91710.js +5 -0
  183. package/dist/calcite/p-ef6b4184.js +5 -0
  184. package/dist/calcite/{p-87327c2f.system.entry.js → p-ef779e80.system.entry.js} +1 -1
  185. package/dist/calcite/p-f2508455.system.entry.js +5 -0
  186. package/dist/calcite/p-f45eae85.entry.js +5 -0
  187. package/dist/calcite/{p-2e29554c.js → p-fb3f5251.js} +1 -1
  188. package/dist/calcite/p-fbf74b6d.js +5 -0
  189. package/dist/calcite/p-fc04e52b.system.entry.js +5 -0
  190. package/dist/calcite/p-fc2f135e.system.entry.js +5 -0
  191. package/dist/calcite/p-fe28891b.system.entry.js +5 -0
  192. package/dist/calcite/p-feacdfdf.system.entry.js +5 -0
  193. package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-f1e05027.js} +2 -2
  194. package/dist/cjs/{CalciteHeading-112c19f9.js → CalciteHeading-d797719f.js} +1 -1
  195. package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -5
  196. package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -29
  197. package/dist/cjs/calcite-action-group.cjs.entry.js +16 -3
  198. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  199. package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -4
  200. package/dist/cjs/calcite-action.cjs.entry.js +3 -3
  201. package/dist/cjs/calcite-alert.cjs.entry.js +29 -22
  202. package/dist/cjs/calcite-avatar.cjs.entry.js +3 -3
  203. package/dist/cjs/calcite-block_2.cjs.entry.js +19 -6
  204. package/dist/cjs/calcite-button.cjs.entry.js +5 -5
  205. package/dist/cjs/calcite-card.cjs.entry.js +19 -8
  206. package/dist/cjs/calcite-checkbox.cjs.entry.js +6 -6
  207. package/dist/cjs/calcite-chip.cjs.entry.js +17 -4
  208. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +21 -6
  209. package/dist/cjs/calcite-combobox_3.cjs.entry.js +39 -25
  210. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -17
  211. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +32 -26
  212. package/dist/cjs/calcite-fab.cjs.entry.js +3 -3
  213. package/dist/cjs/calcite-filter.cjs.entry.js +3 -3
  214. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  215. package/dist/cjs/calcite-graph_2.cjs.entry.js +28 -17
  216. package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
  217. package/dist/cjs/calcite-icon.cjs.entry.js +4 -4
  218. package/dist/cjs/calcite-inline-editable.cjs.entry.js +47 -22
  219. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -10
  220. package/dist/cjs/calcite-input-message.cjs.entry.js +3 -3
  221. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
  222. package/dist/cjs/calcite-input.cjs.entry.js +135 -63
  223. package/dist/cjs/calcite-label.cjs.entry.js +6 -3
  224. package/dist/cjs/calcite-link.cjs.entry.js +16 -5
  225. package/dist/cjs/calcite-list_3.cjs.entry.js +19 -6
  226. package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
  227. package/dist/cjs/calcite-modal.cjs.entry.js +10 -7
  228. package/dist/cjs/calcite-notice.cjs.entry.js +15 -9
  229. package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
  230. package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
  231. package/dist/cjs/calcite-panel.cjs.entry.js +39 -17
  232. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +32 -8
  233. package/dist/cjs/calcite-popover_2.cjs.entry.js +8 -8
  234. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  235. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +15 -2
  236. package/dist/cjs/calcite-radio-button.cjs.entry.js +21 -14
  237. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +6 -51
  238. package/dist/cjs/calcite-rating.cjs.entry.js +5 -5
  239. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  240. package/dist/cjs/calcite-shell_3.cjs.entry.js +47 -16
  241. package/dist/cjs/calcite-sortable-list.cjs.entry.js +3 -3
  242. package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
  243. package/dist/cjs/calcite-stepper_2.cjs.entry.js +4 -4
  244. package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
  245. package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
  246. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +39 -4
  247. package/dist/cjs/calcite-tile.cjs.entry.js +16 -3
  248. package/dist/cjs/calcite-tip_3.cjs.entry.js +20 -8
  249. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +9 -9
  250. package/dist/cjs/calcite-tree_2.cjs.entry.js +26 -13
  251. package/dist/cjs/calcite-value-list_2.cjs.entry.js +27 -8
  252. package/dist/cjs/calcite.cjs.js +3 -3
  253. package/dist/cjs/conditionalSlot-20745612.js +43 -0
  254. package/dist/cjs/{dom-19822169.js → dom-f3df220d.js} +44 -11
  255. package/dist/cjs/{form-a5b44a1f.js → form-55a71663.js} +2 -2
  256. package/dist/cjs/{index-6b5d2de5.js → index-8b0d388b.js} +0 -5
  257. package/dist/cjs/{label-8e3552b2.js → label-6b18ca08.js} +5 -2
  258. package/dist/cjs/loader.cjs.js +3 -3
  259. package/dist/cjs/locale-02462821.js +128 -0
  260. package/dist/cjs/number-e813e801.js +84 -0
  261. package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
  262. package/dist/cjs/{popper-a7580aca.js → popper-13a2bb46.js} +29 -10
  263. package/dist/cjs/{resources-16974e48.js → resources-6af71952.js} +9 -5
  264. package/dist/cjs/{resources-6c4b32ef.js → resources-f6847c67.js} +14 -3
  265. package/dist/collection/collection-manifest.json +4 -4
  266. package/dist/collection/components/accordion/interfaces.js +1 -0
  267. package/dist/collection/components/alert/interfaces.js +7 -0
  268. package/dist/collection/components/block-section/interfaces.js +1 -0
  269. package/dist/collection/components/button/interfaces.js +1 -0
  270. package/dist/collection/components/calcite-accordion/calcite-accordion.css +8 -18
  271. package/dist/collection/components/calcite-accordion/calcite-accordion.js +6 -2
  272. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +33 -77
  273. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -1
  274. package/dist/collection/components/calcite-action/calcite-action.css +49 -91
  275. package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +7 -18
  276. package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -18
  277. package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
  278. package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +11 -23
  279. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +4 -4
  280. package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +26 -25
  281. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
  282. package/dist/collection/components/calcite-alert/calcite-alert.css +81 -106
  283. package/dist/collection/components/calcite-alert/calcite-alert.js +54 -21
  284. package/dist/collection/components/calcite-avatar/calcite-avatar.css +8 -20
  285. package/dist/collection/components/calcite-block/calcite-block.css +44 -53
  286. package/dist/collection/components/calcite-block/calcite-block.js +13 -1
  287. package/dist/collection/components/calcite-block-section/calcite-block-section.css +25 -41
  288. package/dist/collection/components/calcite-button/calcite-button.css +83 -226
  289. package/dist/collection/components/calcite-card/calcite-card.css +49 -60
  290. package/dist/collection/components/calcite-card/calcite-card.js +15 -6
  291. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +11 -24
  292. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
  293. package/dist/collection/components/calcite-chip/calcite-chip.css +19 -41
  294. package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
  295. package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +11 -40
  296. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +7 -17
  297. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +7 -18
  298. package/dist/collection/components/calcite-color-picker-swatch/resources.js +1 -1
  299. package/dist/collection/components/calcite-combobox/calcite-combobox.css +29 -48
  300. package/dist/collection/components/calcite-combobox/calcite-combobox.js +46 -16
  301. package/dist/collection/components/calcite-combobox/resources.js +3 -0
  302. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +34 -41
  303. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +10 -8
  304. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +8 -19
  305. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +1 -1
  306. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/bg.json +31 -0
  307. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-BR.json +31 -0
  308. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-PT.json +3 -3
  309. package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +4 -14
  310. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +9 -7
  311. package/dist/collection/components/calcite-date-picker/utils.js +7 -3
  312. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +37 -58
  313. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +21 -31
  314. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +35 -56
  315. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +5 -21
  316. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +28 -21
  317. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +10 -20
  318. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +48 -59
  319. package/dist/collection/components/calcite-fab/calcite-fab.css +10 -16
  320. package/dist/collection/components/calcite-filter/calcite-filter.css +20 -34
  321. package/dist/collection/components/calcite-flow/calcite-flow.css +22 -34
  322. package/dist/collection/components/calcite-flow/calcite-flow.js +1 -1
  323. package/dist/collection/components/calcite-graph/calcite-graph.css +5 -18
  324. package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
  325. package/dist/collection/components/calcite-handle/calcite-handle.css +4 -18
  326. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard16.json +1 -0
  327. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard24.json +1 -0
  328. package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard32.json +1 -0
  329. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
  330. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
  331. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
  332. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders16.json +1 -0
  333. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders24.json +1 -0
  334. package/dist/collection/components/calcite-icon/assets/calcite-icon/folders32.json +1 -0
  335. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative16.json +1 -0
  336. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative24.json +1 -0
  337. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative32.json +1 -0
  338. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate16.json +1 -0
  339. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate24.json +1 -0
  340. package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate32.json +1 -0
  341. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables16.json +1 -0
  342. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables24.json +1 -0
  343. package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables32.json +1 -0
  344. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck16.json +1 -0
  345. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck24.json +1 -0
  346. package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck32.json +1 -0
  347. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
  348. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
  349. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
  350. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon16.json +1 -0
  351. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon24.json +1 -0
  352. package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon32.json +1 -0
  353. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece16.json +1 -0
  354. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece24.json +1 -0
  355. package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece32.json +1 -0
  356. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette16.json +1 -0
  357. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette24.json +1 -0
  358. package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette32.json +1 -0
  359. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
  360. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
  361. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
  362. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
  363. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
  364. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
  365. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
  366. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
  367. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
  368. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey16.json +1 -0
  369. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey24.json +1 -0
  370. package/dist/collection/components/calcite-icon/assets/calcite-icon/survey32.json +1 -0
  371. package/dist/collection/components/calcite-icon/calcite-icon.css +12 -14
  372. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +5 -12
  373. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +54 -35
  374. package/dist/collection/components/calcite-input/calcite-input.css +94 -156
  375. package/dist/collection/components/calcite-input/calcite-input.js +129 -57
  376. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +28 -46
  377. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +39 -2
  378. package/dist/collection/components/calcite-input-message/calcite-input-message.css +12 -23
  379. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +1 -11
  380. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +2 -2
  381. package/dist/collection/components/calcite-label/calcite-label.css +19 -34
  382. package/dist/collection/components/calcite-label/calcite-label.js +8 -2
  383. package/dist/collection/components/calcite-link/calcite-link.css +16 -33
  384. package/dist/collection/components/calcite-link/calcite-link.js +31 -2
  385. package/dist/collection/components/calcite-list/calcite-list.css +9 -16
  386. package/dist/collection/components/calcite-list-item/calcite-list-item.css +23 -46
  387. package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
  388. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +7 -17
  389. package/dist/collection/components/calcite-loader/calcite-loader.css +37 -62
  390. package/dist/collection/components/calcite-modal/calcite-modal.css +95 -102
  391. package/dist/collection/components/calcite-modal/calcite-modal.js +6 -3
  392. package/dist/collection/components/calcite-notice/calcite-notice.css +43 -80
  393. package/dist/collection/components/calcite-notice/calcite-notice.js +11 -6
  394. package/dist/collection/components/calcite-option/calcite-option.css +1 -11
  395. package/dist/collection/components/calcite-option-group/calcite-option-group.css +1 -11
  396. package/dist/collection/components/calcite-pagination/calcite-pagination.css +20 -54
  397. package/dist/collection/components/calcite-panel/calcite-panel.css +51 -73
  398. package/dist/collection/components/calcite-panel/calcite-panel.js +60 -19
  399. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +16 -26
  400. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +13 -5
  401. package/dist/collection/components/calcite-pick-list/resources.js +1 -1
  402. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +10 -0
  403. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +14 -27
  404. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
  405. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +43 -60
  406. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +13 -1
  407. package/dist/collection/components/calcite-popover/calcite-popover.css +24 -34
  408. package/dist/collection/components/calcite-popover/calcite-popover.js +1 -1
  409. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +1 -11
  410. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
  411. package/dist/collection/components/calcite-progress/calcite-progress.css +7 -20
  412. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -21
  413. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -9
  414. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +1 -14
  415. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +13 -0
  416. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +3 -15
  417. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +3 -5
  418. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +17 -28
  419. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
  420. package/dist/collection/components/calcite-rating/calcite-rating.css +10 -23
  421. package/dist/collection/components/calcite-scrim/calcite-scrim.css +17 -29
  422. package/dist/collection/components/calcite-select/calcite-select.css +23 -39
  423. package/dist/collection/components/calcite-select/calcite-select.js +3 -5
  424. package/dist/collection/components/calcite-shell/calcite-shell.css +43 -43
  425. package/dist/collection/components/calcite-shell/calcite-shell.js +23 -9
  426. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +26 -21
  427. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
  428. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +33 -52
  429. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
  430. package/dist/collection/components/calcite-slider/calcite-slider.css +50 -93
  431. package/dist/collection/components/calcite-slider/calcite-slider.js +10 -7
  432. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +1 -11
  433. package/dist/collection/components/calcite-split-button/calcite-split-button.css +7 -27
  434. package/dist/collection/components/calcite-stepper/calcite-stepper.css +8 -18
  435. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +38 -72
  436. package/dist/collection/components/calcite-switch/calcite-switch.css +29 -47
  437. package/dist/collection/components/calcite-tab/calcite-tab.css +10 -20
  438. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +14 -23
  439. package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +40 -65
  440. package/dist/collection/components/calcite-tabs/calcite-tabs.css +3 -13
  441. package/dist/collection/components/calcite-tile/calcite-tile.css +52 -85
  442. package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
  443. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +52 -87
  444. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
  445. package/dist/collection/components/calcite-tile-select/resources.js +20 -0
  446. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +1 -12
  447. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +15 -47
  448. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +5 -5
  449. package/dist/collection/components/calcite-tip/calcite-tip.css +20 -36
  450. package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
  451. package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +4 -14
  452. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +34 -49
  453. package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +12 -20
  454. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -5
  455. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +1 -11
  456. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -1
  457. package/dist/collection/components/calcite-tree/calcite-tree.css +1 -11
  458. package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
  459. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +27 -58
  460. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +21 -8
  461. package/dist/collection/components/calcite-value-list/calcite-value-list.css +17 -25
  462. package/dist/collection/components/calcite-value-list/calcite-value-list.js +23 -9
  463. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +22 -32
  464. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
  465. package/dist/collection/components/chip/interfaces.js +1 -0
  466. package/dist/collection/components/color-picker/interfaces.js +1 -0
  467. package/dist/collection/components/color-picker/utils.js +107 -0
  468. package/dist/collection/components/combobox/interfaces.js +1 -0
  469. package/dist/collection/components/date-picker/interfaces.js +1 -0
  470. package/dist/collection/components/date-picker/utils.js +53 -0
  471. package/dist/collection/components/dropdown/interfaces.js +1 -0
  472. package/dist/collection/components/dropdown-group/interfaces.js +1 -0
  473. package/dist/collection/components/functional/Heading.js +9 -0
  474. package/dist/collection/components/graph/interfaces.js +1 -0
  475. package/dist/collection/components/input/interfaces.js +1 -0
  476. package/dist/collection/components/modal/interfaces.js +1 -0
  477. package/dist/collection/components/pagination/pagination.js +201 -0
  478. package/dist/collection/components/pagination/resources.js +14 -0
  479. package/dist/collection/components/pick-list/pick-list.js +192 -0
  480. package/dist/collection/components/pick-list/resources.js +15 -0
  481. package/dist/collection/components/pick-list/shared-list-logic.js +269 -0
  482. package/dist/collection/components/pick-list/shared-list-render.js +25 -0
  483. package/dist/collection/components/radio-group/interfaces.js +1 -0
  484. package/dist/collection/components/tab/interfaces.js +1 -0
  485. package/dist/collection/components/tabs/interfaces.js +1 -0
  486. package/dist/collection/components/tile-select/interfaces.js +1 -0
  487. package/dist/collection/components/tile-select-group/interfaces.js +1 -0
  488. package/dist/collection/components/tree/interfaces.js +8 -0
  489. package/dist/collection/components/tree-item/interfaces.js +1 -0
  490. package/dist/collection/components/value-list/resources.js +11 -0
  491. package/dist/collection/components/value-list/value-list.js +266 -0
  492. package/dist/collection/utils/conditionalSlot.js +22 -11
  493. package/dist/collection/utils/dom.js +44 -11
  494. package/dist/collection/utils/globalAttributes.js +59 -0
  495. package/dist/collection/utils/label.js +4 -1
  496. package/dist/collection/utils/locale.js +43 -38
  497. package/dist/collection/utils/number.js +48 -23
  498. package/dist/collection/utils/observers.js +5 -1
  499. package/dist/components/calcite-accordion-item.js +1 -1
  500. package/dist/components/calcite-accordion.js +5 -2
  501. package/dist/components/calcite-action-bar.js +3 -24
  502. package/dist/components/calcite-action-group2.js +13 -1
  503. package/dist/components/calcite-action-menu2.js +5 -5
  504. package/dist/components/calcite-action-pad.js +8 -1
  505. package/dist/components/calcite-action2.js +1 -1
  506. package/dist/components/calcite-alert.js +29 -21
  507. package/dist/components/calcite-avatar.js +1 -1
  508. package/dist/components/calcite-block-section.js +1 -1
  509. package/dist/components/calcite-block.js +14 -2
  510. package/dist/components/calcite-button2.js +1 -1
  511. package/dist/components/calcite-card.js +16 -7
  512. package/dist/components/calcite-checkbox2.js +2 -2
  513. package/dist/components/calcite-chip2.js +14 -2
  514. package/dist/components/calcite-color-picker-hex-input2.js +1 -1
  515. package/dist/components/calcite-color-picker-swatch2.js +17 -2
  516. package/dist/components/calcite-color-picker.js +1 -1
  517. package/dist/components/calcite-combobox-item-group.js +1 -1
  518. package/dist/components/calcite-combobox-item.js +9 -7
  519. package/dist/components/calcite-combobox.js +23 -13
  520. package/dist/components/calcite-date-picker-day2.js +1 -1
  521. package/dist/components/calcite-date-picker-month-header2.js +1 -1
  522. package/dist/components/calcite-date-picker-month2.js +1 -1
  523. package/dist/components/calcite-date-picker2.js +17 -11
  524. package/dist/components/calcite-dropdown-group.js +1 -1
  525. package/dist/components/calcite-dropdown-item.js +1 -1
  526. package/dist/components/calcite-dropdown2.js +27 -21
  527. package/dist/components/calcite-fab.js +1 -1
  528. package/dist/components/calcite-filter2.js +1 -1
  529. package/dist/components/calcite-flow.js +1 -1
  530. package/dist/components/calcite-graph2.js +14 -9
  531. package/dist/components/calcite-handle2.js +1 -1
  532. package/dist/components/calcite-icon2.js +1 -1
  533. package/dist/components/calcite-inline-editable.js +45 -20
  534. package/dist/components/calcite-input-date-picker.js +8 -3
  535. package/dist/components/calcite-input-message.js +1 -1
  536. package/dist/components/calcite-input-time-picker.js +2 -2
  537. package/dist/components/calcite-input2.js +130 -58
  538. package/dist/components/calcite-label2.js +5 -2
  539. package/dist/components/calcite-link2.js +15 -3
  540. package/dist/components/calcite-list-item-group.js +1 -1
  541. package/dist/components/calcite-list-item.js +13 -1
  542. package/dist/components/calcite-list.js +1 -1
  543. package/dist/components/calcite-loader2.js +1 -1
  544. package/dist/components/calcite-modal.js +7 -4
  545. package/dist/components/calcite-notice.js +12 -7
  546. package/dist/components/calcite-option-group.js +1 -1
  547. package/dist/components/calcite-option.js +1 -1
  548. package/dist/components/calcite-pagination.js +1 -1
  549. package/dist/components/calcite-panel.js +37 -15
  550. package/dist/components/calcite-pick-list-group.js +13 -1
  551. package/dist/components/calcite-pick-list-item2.js +13 -1
  552. package/dist/components/calcite-pick-list.js +3 -2
  553. package/dist/components/calcite-popover-manager.js +2 -2
  554. package/dist/components/calcite-popover2.js +2 -2
  555. package/dist/components/calcite-progress2.js +1 -1
  556. package/dist/components/calcite-radio-button-group.js +14 -1
  557. package/dist/components/calcite-radio-button.js +17 -10
  558. package/dist/components/calcite-radio-group-item.js +1 -46
  559. package/dist/components/calcite-radio-group.js +2 -2
  560. package/dist/components/calcite-rating.js +1 -1
  561. package/dist/components/calcite-scrim2.js +1 -1
  562. package/dist/components/calcite-select.js +2 -2
  563. package/dist/components/calcite-shell-center-row.js +14 -2
  564. package/dist/components/calcite-shell-panel.js +10 -5
  565. package/dist/components/calcite-shell.js +22 -7
  566. package/dist/components/calcite-slider.js +11 -7
  567. package/dist/components/calcite-sortable-list.js +1 -1
  568. package/dist/components/calcite-split-button.js +1 -1
  569. package/dist/components/calcite-stepper-item.js +1 -1
  570. package/dist/components/calcite-stepper.js +1 -1
  571. package/dist/components/calcite-switch2.js +1 -1
  572. package/dist/components/calcite-tab-nav2.js +1 -1
  573. package/dist/components/calcite-tab-title2.js +1 -1
  574. package/dist/components/calcite-tab2.js +1 -1
  575. package/dist/components/calcite-tabs2.js +1 -1
  576. package/dist/components/calcite-tile-select-group.js +1 -1
  577. package/dist/components/calcite-tile-select.js +37 -2
  578. package/dist/components/calcite-tile2.js +13 -1
  579. package/dist/components/calcite-time-picker2.js +5 -5
  580. package/dist/components/calcite-tip-group.js +1 -1
  581. package/dist/components/calcite-tip-manager.js +1 -1
  582. package/dist/components/calcite-tip.js +14 -2
  583. package/dist/components/calcite-tooltip-manager2.js +2 -2
  584. package/dist/components/calcite-tooltip.js +4 -4
  585. package/dist/components/calcite-tree-item.js +20 -9
  586. package/dist/components/calcite-tree.js +3 -2
  587. package/dist/components/calcite-value-list-item.js +13 -1
  588. package/dist/components/calcite-value-list.js +11 -4
  589. package/dist/components/conditionalSlot.js +40 -0
  590. package/dist/components/dom.js +44 -11
  591. package/dist/components/label.js +4 -1
  592. package/dist/components/locale.js +43 -38
  593. package/dist/components/number.js +49 -24
  594. package/dist/components/observers.js +5 -1
  595. package/dist/components/popper.js +28 -9
  596. package/dist/components/resources3.js +1 -1
  597. package/dist/components/shared-list-render.js +11 -1
  598. package/dist/components/utils2.js +4 -1
  599. package/dist/custom-elements/index.js +1236 -758
  600. package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-3ebdb3a6.js} +2 -2
  601. package/dist/esm/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
  602. package/dist/esm/calcite-accordion_2.entry.js +8 -5
  603. package/dist/esm/calcite-action-bar.entry.js +6 -27
  604. package/dist/esm/calcite-action-group.entry.js +16 -3
  605. package/dist/esm/calcite-action-menu.entry.js +8 -8
  606. package/dist/esm/calcite-action-pad.entry.js +12 -4
  607. package/dist/esm/calcite-action.entry.js +3 -3
  608. package/dist/esm/calcite-alert.entry.js +29 -22
  609. package/dist/esm/calcite-avatar.entry.js +3 -3
  610. package/dist/esm/calcite-block_2.entry.js +19 -6
  611. package/dist/esm/calcite-button.entry.js +5 -5
  612. package/dist/esm/calcite-card.entry.js +19 -8
  613. package/dist/esm/calcite-checkbox.entry.js +6 -6
  614. package/dist/esm/calcite-chip.entry.js +17 -4
  615. package/dist/esm/calcite-color-picker_3.entry.js +21 -6
  616. package/dist/esm/calcite-combobox_3.entry.js +39 -25
  617. package/dist/esm/calcite-date-picker_4.entry.js +19 -17
  618. package/dist/esm/calcite-dropdown_3.entry.js +32 -26
  619. package/dist/esm/calcite-fab.entry.js +3 -3
  620. package/dist/esm/calcite-filter.entry.js +3 -3
  621. package/dist/esm/calcite-flow.entry.js +3 -3
  622. package/dist/esm/calcite-graph_2.entry.js +28 -17
  623. package/dist/esm/calcite-handle.entry.js +2 -2
  624. package/dist/esm/calcite-icon.entry.js +4 -4
  625. package/dist/esm/calcite-inline-editable.entry.js +47 -22
  626. package/dist/esm/calcite-input-date-picker.entry.js +15 -10
  627. package/dist/esm/calcite-input-message.entry.js +3 -3
  628. package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
  629. package/dist/esm/calcite-input.entry.js +135 -63
  630. package/dist/esm/calcite-label.entry.js +6 -3
  631. package/dist/esm/calcite-link.entry.js +16 -5
  632. package/dist/esm/calcite-list_3.entry.js +19 -6
  633. package/dist/esm/calcite-loader.entry.js +2 -2
  634. package/dist/esm/calcite-modal.entry.js +10 -7
  635. package/dist/esm/calcite-notice.entry.js +15 -9
  636. package/dist/esm/calcite-option_3.entry.js +8 -8
  637. package/dist/esm/calcite-pagination.entry.js +2 -2
  638. package/dist/esm/calcite-panel.entry.js +39 -17
  639. package/dist/esm/calcite-pick-list_3.entry.js +32 -8
  640. package/dist/esm/calcite-popover_2.entry.js +8 -8
  641. package/dist/esm/calcite-progress.entry.js +2 -2
  642. package/dist/esm/calcite-radio-button-group.entry.js +15 -2
  643. package/dist/esm/calcite-radio-button.entry.js +21 -14
  644. package/dist/esm/calcite-radio-group_2.entry.js +6 -51
  645. package/dist/esm/calcite-rating.entry.js +5 -5
  646. package/dist/esm/calcite-scrim.entry.js +2 -2
  647. package/dist/esm/calcite-shell_3.entry.js +47 -16
  648. package/dist/esm/calcite-sortable-list.entry.js +3 -3
  649. package/dist/esm/calcite-split-button.entry.js +2 -2
  650. package/dist/esm/calcite-stepper_2.entry.js +4 -4
  651. package/dist/esm/calcite-switch.entry.js +5 -5
  652. package/dist/esm/calcite-tab_4.entry.js +7 -7
  653. package/dist/esm/calcite-tile-select_2.entry.js +39 -4
  654. package/dist/esm/calcite-tile.entry.js +16 -3
  655. package/dist/esm/calcite-tip_3.entry.js +20 -8
  656. package/dist/esm/calcite-tooltip_2.entry.js +9 -9
  657. package/dist/esm/calcite-tree_2.entry.js +26 -13
  658. package/dist/esm/calcite-value-list_2.entry.js +27 -8
  659. package/dist/esm/calcite.js +3 -3
  660. package/dist/esm/conditionalSlot-0e575a09.js +40 -0
  661. package/dist/esm/{dom-f24e866c.js → dom-e7fa77b9.js} +44 -11
  662. package/dist/esm/{form-160b0fb5.js → form-42bda668.js} +2 -2
  663. package/dist/esm/{index-9de00868.js → index-c4b90cce.js} +0 -5
  664. package/dist/esm/{label-5559055d.js → label-2bffc9f4.js} +5 -2
  665. package/dist/esm/loader.js +3 -3
  666. package/dist/esm/locale-fc850b7c.js +123 -0
  667. package/dist/esm/number-8779395f.js +76 -0
  668. package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
  669. package/dist/esm/{popper-f5caedc4.js → popper-ae231554.js} +29 -10
  670. package/dist/esm/{resources-35c1823f.js → resources-3c05dd64.js} +14 -4
  671. package/dist/esm/{resources-b4eee1d4.js → resources-704f6b2d.js} +9 -5
  672. package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-3ebdb3a6.js} +1 -1
  673. package/dist/esm-es5/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
  674. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  675. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  676. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  677. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  678. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  679. package/dist/esm-es5/calcite-action.entry.js +1 -1
  680. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  681. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  682. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  683. package/dist/esm-es5/calcite-button.entry.js +1 -1
  684. package/dist/esm-es5/calcite-card.entry.js +1 -1
  685. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  686. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  687. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  688. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  689. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  690. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  691. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  692. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  693. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  694. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  695. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  696. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  697. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  698. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  699. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  700. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  701. package/dist/esm-es5/calcite-input.entry.js +1 -1
  702. package/dist/esm-es5/calcite-label.entry.js +1 -1
  703. package/dist/esm-es5/calcite-link.entry.js +2 -2
  704. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  705. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  706. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  707. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  708. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  709. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  710. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  711. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  712. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  713. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  714. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  715. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  716. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  717. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  718. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  719. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  720. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  721. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  722. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  723. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  724. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  725. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  726. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  727. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  728. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  729. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  730. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  731. package/dist/esm-es5/calcite.js +1 -1
  732. package/dist/esm-es5/conditionalSlot-0e575a09.js +5 -0
  733. package/dist/esm-es5/dom-e7fa77b9.js +5 -0
  734. package/dist/esm-es5/{form-160b0fb5.js → form-42bda668.js} +1 -1
  735. package/dist/esm-es5/{index-9de00868.js → index-c4b90cce.js} +1 -1
  736. package/dist/esm-es5/label-2bffc9f4.js +5 -0
  737. package/dist/esm-es5/loader.js +1 -1
  738. package/dist/esm-es5/locale-fc850b7c.js +5 -0
  739. package/dist/esm-es5/number-8779395f.js +5 -0
  740. package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
  741. package/dist/esm-es5/popper-ae231554.js +5 -0
  742. package/dist/esm-es5/resources-3c05dd64.js +5 -0
  743. package/dist/esm-es5/resources-704f6b2d.js +5 -0
  744. package/dist/extras/docs-json.json +189 -73
  745. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +42 -0
  746. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +53 -0
  747. package/dist/types/components/calcite-action/calcite-action.d.ts +73 -0
  748. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +69 -0
  749. package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +42 -0
  750. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +83 -0
  751. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +55 -0
  752. package/dist/types/components/calcite-alert/calcite-alert.d.ts +83 -0
  753. package/dist/types/components/calcite-alert/interfaces.d.ts +1 -0
  754. package/dist/types/components/calcite-avatar/calcite-avatar.d.ts +26 -0
  755. package/dist/types/components/calcite-block/calcite-block.d.ts +76 -0
  756. package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +43 -0
  757. package/dist/types/components/calcite-button/calcite-button.d.ts +81 -0
  758. package/dist/types/components/calcite-card/calcite-card.d.ts +46 -0
  759. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +73 -0
  760. package/dist/types/components/calcite-chip/calcite-chip.d.ts +40 -0
  761. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +224 -0
  762. package/dist/types/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.d.ts +51 -0
  763. package/dist/types/components/calcite-color-picker-swatch/calcite-color-picker-swatch.d.ts +23 -0
  764. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +181 -0
  765. package/dist/types/components/calcite-combobox/interfaces.d.ts +6 -0
  766. package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
  767. package/dist/types/components/calcite-combobox/utils.d.ts +6 -0
  768. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +46 -0
  769. package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +17 -0
  770. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +132 -0
  771. package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +45 -0
  772. package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +97 -0
  773. package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +57 -0
  774. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +99 -0
  775. package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +32 -0
  776. package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +52 -0
  777. package/dist/types/components/calcite-fab/calcite-fab.d.ts +47 -0
  778. package/dist/types/components/calcite-filter/calcite-filter.d.ts +53 -0
  779. package/dist/types/components/calcite-flow/calcite-flow.d.ts +22 -0
  780. package/dist/types/components/calcite-graph/calcite-graph.d.ts +28 -0
  781. package/dist/types/components/calcite-handle/calcite-handle.d.ts +22 -0
  782. package/dist/types/components/calcite-icon/calcite-icon.d.ts +32 -0
  783. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +71 -0
  784. package/dist/types/components/calcite-input/calcite-input.d.ts +168 -0
  785. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +179 -0
  786. package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +27 -0
  787. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +90 -0
  788. package/dist/types/components/calcite-label/calcite-label.d.ts +33 -0
  789. package/dist/types/components/calcite-link/calcite-link.d.ts +38 -0
  790. package/dist/types/components/calcite-list/calcite-list.d.ts +16 -0
  791. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +40 -0
  792. package/dist/types/components/calcite-list-item-group/calcite-list-item-group.d.ts +18 -0
  793. package/dist/types/components/calcite-loader/calcite-loader.d.ts +27 -0
  794. package/dist/types/components/calcite-modal/calcite-modal.d.ts +89 -0
  795. package/dist/types/components/calcite-notice/calcite-notice.d.ts +51 -0
  796. package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +51 -0
  797. package/dist/types/components/calcite-panel/calcite-panel.d.ts +130 -0
  798. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +75 -0
  799. package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +31 -0
  800. package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +18 -0
  801. package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +21 -0
  802. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +106 -0
  803. package/dist/types/components/calcite-popover/calcite-popover.d.ts +107 -0
  804. package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +19 -0
  805. package/dist/types/components/calcite-progress/calcite-progress.d.ts +15 -0
  806. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +92 -0
  807. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +34 -0
  808. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +56 -0
  809. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +24 -0
  810. package/dist/types/components/calcite-rating/calcite-rating.d.ts +60 -0
  811. package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +17 -0
  812. package/dist/types/components/calcite-select/calcite-select.d.ts +75 -0
  813. package/dist/types/components/calcite-shell/calcite-shell.d.ts +24 -0
  814. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +25 -0
  815. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +69 -0
  816. package/dist/types/components/calcite-slider/calcite-slider.d.ts +193 -0
  817. package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +50 -0
  818. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +52 -0
  819. package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +58 -0
  820. package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +65 -0
  821. package/dist/types/components/calcite-switch/calcite-switch.d.ts +46 -0
  822. package/dist/types/components/calcite-tab/calcite-tab.d.ts +42 -0
  823. package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +74 -0
  824. package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +92 -0
  825. package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +65 -0
  826. package/dist/types/components/calcite-tile/calcite-tile.d.ts +36 -0
  827. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +57 -0
  828. package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
  829. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +135 -0
  830. package/dist/types/components/calcite-tip/calcite-tip.d.ts +47 -0
  831. package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +65 -0
  832. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +60 -0
  833. package/dist/types/components/calcite-tooltip-manager/calcite-tooltip-manager.d.ts +41 -0
  834. package/dist/types/components/calcite-tree/calcite-tree.d.ts +38 -0
  835. package/dist/types/components/calcite-tree/interfaces.d.ts +10 -0
  836. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +60 -0
  837. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +89 -0
  838. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +79 -0
  839. package/dist/types/components/functional/CalciteExpandToggle.d.ts +19 -0
  840. package/dist/types/components.d.ts +62 -32
  841. package/dist/types/preact.d.ts +5 -4
  842. package/dist/types/stencil-public-runtime.d.ts +6 -4
  843. package/dist/types/utils/dom.d.ts +21 -3
  844. package/dist/types/utils/globalAttributes.d.ts +35 -0
  845. package/dist/types/utils/label.d.ts +39 -0
  846. package/dist/types/utils/number.d.ts +2 -1
  847. package/hydrate/index.js +1244 -759
  848. package/package.json +35 -32
  849. package/readme.md +2 -36
  850. package/dist/calcite/p-0229a408.js +0 -5
  851. package/dist/calcite/p-057197f8.entry.js +0 -5
  852. package/dist/calcite/p-05c10c53.entry.js +0 -5
  853. package/dist/calcite/p-05edaadf.system.entry.js +0 -5
  854. package/dist/calcite/p-0b45733b.entry.js +0 -5
  855. package/dist/calcite/p-112f20e6.system.entry.js +0 -5
  856. package/dist/calcite/p-11f01c0a.entry.js +0 -5
  857. package/dist/calcite/p-18d9a261.system.js +0 -5
  858. package/dist/calcite/p-1942876c.js +0 -5
  859. package/dist/calcite/p-2151c991.entry.js +0 -5
  860. package/dist/calcite/p-288899b9.entry.js +0 -5
  861. package/dist/calcite/p-288bc438.system.js +0 -5
  862. package/dist/calcite/p-2b294f8e.system.entry.js +0 -5
  863. package/dist/calcite/p-2be1e8ee.entry.js +0 -5
  864. package/dist/calcite/p-2d939f9e.system.entry.js +0 -5
  865. package/dist/calcite/p-2fbd50f3.system.entry.js +0 -5
  866. package/dist/calcite/p-30036f23.system.entry.js +0 -5
  867. package/dist/calcite/p-35a5c74c.system.js +0 -5
  868. package/dist/calcite/p-3739338a.system.entry.js +0 -5
  869. package/dist/calcite/p-3c25cb72.system.entry.js +0 -5
  870. package/dist/calcite/p-3d8ee39d.system.entry.js +0 -5
  871. package/dist/calcite/p-3dae9da3.js +0 -5
  872. package/dist/calcite/p-3e9c6068.entry.js +0 -5
  873. package/dist/calcite/p-3f8527a3.entry.js +0 -5
  874. package/dist/calcite/p-40991717.entry.js +0 -5
  875. package/dist/calcite/p-4278fb57.entry.js +0 -5
  876. package/dist/calcite/p-44cce7a3.system.entry.js +0 -5
  877. package/dist/calcite/p-4d02c6c0.system.entry.js +0 -5
  878. package/dist/calcite/p-4e9d072a.system.js +0 -5
  879. package/dist/calcite/p-4f1f716a.system.entry.js +0 -5
  880. package/dist/calcite/p-4f7ebefc.system.js +0 -5
  881. package/dist/calcite/p-52cc870b.js +0 -5
  882. package/dist/calcite/p-55f68e28.entry.js +0 -5
  883. package/dist/calcite/p-57169a74.entry.js +0 -5
  884. package/dist/calcite/p-5c9d89ce.system.entry.js +0 -5
  885. package/dist/calcite/p-62f3d4df.system.js +0 -5
  886. package/dist/calcite/p-63b9f804.entry.js +0 -5
  887. package/dist/calcite/p-689790cb.system.entry.js +0 -5
  888. package/dist/calcite/p-69bd1f5f.system.entry.js +0 -5
  889. package/dist/calcite/p-6a87d7b2.entry.js +0 -5
  890. package/dist/calcite/p-6cc23c39.system.js +0 -5
  891. package/dist/calcite/p-6faaa8af.system.entry.js +0 -5
  892. package/dist/calcite/p-6fb63fc1.entry.js +0 -5
  893. package/dist/calcite/p-72a60528.system.entry.js +0 -5
  894. package/dist/calcite/p-763479d6.system.entry.js +0 -5
  895. package/dist/calcite/p-768018df.entry.js +0 -5
  896. package/dist/calcite/p-76eda40b.entry.js +0 -5
  897. package/dist/calcite/p-7ac9f860.entry.js +0 -5
  898. package/dist/calcite/p-7ff5e336.entry.js +0 -5
  899. package/dist/calcite/p-8340b572.js +0 -5
  900. package/dist/calcite/p-83744979.system.js +0 -5
  901. package/dist/calcite/p-88296be9.system.entry.js +0 -5
  902. package/dist/calcite/p-88b31760.system.entry.js +0 -5
  903. package/dist/calcite/p-8a8982ab.system.entry.js +0 -5
  904. package/dist/calcite/p-8ebc2d51.entry.js +0 -5
  905. package/dist/calcite/p-9180be05.system.entry.js +0 -5
  906. package/dist/calcite/p-93a189be.entry.js +0 -5
  907. package/dist/calcite/p-97117a5d.entry.js +0 -5
  908. package/dist/calcite/p-97efd284.system.entry.js +0 -5
  909. package/dist/calcite/p-998829cb.system.entry.js +0 -5
  910. package/dist/calcite/p-9a1ffbad.system.entry.js +0 -5
  911. package/dist/calcite/p-9a8f3883.entry.js +0 -5
  912. package/dist/calcite/p-9b979692.entry.js +0 -5
  913. package/dist/calcite/p-9fc14d49.entry.js +0 -5
  914. package/dist/calcite/p-9feb0f5a.system.entry.js +0 -5
  915. package/dist/calcite/p-a3c498de.entry.js +0 -5
  916. package/dist/calcite/p-a4784cf3.system.entry.js +0 -5
  917. package/dist/calcite/p-a6f99f79.entry.js +0 -5
  918. package/dist/calcite/p-a98344e2.system.entry.js +0 -5
  919. package/dist/calcite/p-a9f596be.system.entry.js +0 -5
  920. package/dist/calcite/p-adf4699d.system.entry.js +0 -5
  921. package/dist/calcite/p-b180d943.system.entry.js +0 -5
  922. package/dist/calcite/p-b2f0596f.entry.js +0 -5
  923. package/dist/calcite/p-b437a8eb.system.entry.js +0 -5
  924. package/dist/calcite/p-b43e699c.system.entry.js +0 -5
  925. package/dist/calcite/p-ba7c0f01.system.entry.js +0 -5
  926. package/dist/calcite/p-bd091b49.system.entry.js +0 -5
  927. package/dist/calcite/p-bdca5372.entry.js +0 -5
  928. package/dist/calcite/p-bfa6bd72.entry.js +0 -5
  929. package/dist/calcite/p-c00b1d26.js +0 -5
  930. package/dist/calcite/p-c2bfd7f9.system.entry.js +0 -5
  931. package/dist/calcite/p-c2fcf603.system.entry.js +0 -5
  932. package/dist/calcite/p-c34c4414.system.js +0 -5
  933. package/dist/calcite/p-c70bacc8.system.entry.js +0 -5
  934. package/dist/calcite/p-c8c6323c.entry.js +0 -5
  935. package/dist/calcite/p-cb660e54.entry.js +0 -5
  936. package/dist/calcite/p-cd5d5756.system.entry.js +0 -5
  937. package/dist/calcite/p-ce704ece.js +0 -5
  938. package/dist/calcite/p-cf499949.entry.js +0 -5
  939. package/dist/calcite/p-d17cfab3.entry.js +0 -5
  940. package/dist/calcite/p-d3bd900e.js +0 -5
  941. package/dist/calcite/p-d4d5665a.system.entry.js +0 -5
  942. package/dist/calcite/p-d9414082.system.entry.js +0 -5
  943. package/dist/calcite/p-dc7124e9.entry.js +0 -5
  944. package/dist/calcite/p-dc777403.system.entry.js +0 -5
  945. package/dist/calcite/p-dda22c7e.system.entry.js +0 -5
  946. package/dist/calcite/p-de67ba93.system.entry.js +0 -5
  947. package/dist/calcite/p-e09bac0d.system.entry.js +0 -5
  948. package/dist/calcite/p-e35b29f5.system.entry.js +0 -5
  949. package/dist/calcite/p-e4acb5a8.js +0 -5
  950. package/dist/calcite/p-e54784a8.system.entry.js +0 -5
  951. package/dist/calcite/p-e63c6a55.system.entry.js +0 -5
  952. package/dist/calcite/p-e697ab57.system.entry.js +0 -5
  953. package/dist/calcite/p-e7801f1d.entry.js +0 -5
  954. package/dist/calcite/p-e7f7b0f8.js +0 -5
  955. package/dist/calcite/p-eebd2bb0.entry.js +0 -5
  956. package/dist/calcite/p-f2340d02.system.entry.js +0 -5
  957. package/dist/calcite/p-f25f139a.entry.js +0 -5
  958. package/dist/calcite/p-f28d8e9e.system.entry.js +0 -5
  959. package/dist/calcite/p-f2f2ad57.entry.js +0 -5
  960. package/dist/calcite/p-f4a7fa43.entry.js +0 -5
  961. package/dist/calcite/p-f595d924.js +0 -5
  962. package/dist/calcite/p-f72c037c.entry.js +0 -5
  963. package/dist/calcite/p-f9e7371d.entry.js +0 -5
  964. package/dist/calcite/p-fc265aaf.entry.js +0 -5
  965. package/dist/calcite/p-fd94e88d.system.entry.js +0 -5
  966. package/dist/cjs/locale-33c458dc.js +0 -123
  967. package/dist/cjs/number-73f7b474.js +0 -58
  968. package/dist/esm/locale-4c38cf6d.js +0 -118
  969. package/dist/esm/number-06e8500e.js +0 -51
  970. package/dist/esm-es5/dom-f24e866c.js +0 -5
  971. package/dist/esm-es5/label-5559055d.js +0 -5
  972. package/dist/esm-es5/locale-4c38cf6d.js +0 -5
  973. package/dist/esm-es5/number-06e8500e.js +0 -5
  974. package/dist/esm-es5/popper-f5caedc4.js +0 -5
  975. package/dist/esm-es5/resources-35c1823f.js +0 -5
  976. package/dist/esm-es5/resources-b4eee1d4.js +0 -5
@@ -2,4 +2,4 @@ var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e ins
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,F as Fragment}from"./index-9de00868.js";import{T as TEXT,c as getDaysDiff,d as dateToISO,a as dateFromISO,b as dateFromRange,g as getLocaleData,H as HEADING_LEVEL,s as sameDate,i as inRange,l as localizeNumber,e as getOrder,n as nextMonth,f as prevMonth,h as parseNumber}from"./resources-b4eee1d4.js";import{a as getElementDir,C as CSS_UTILITY}from"./dom-f24e866c.js";import{C as CalciteHeading}from"./CalciteHeading-1d6cd311.js";import"./locale-4c38cf6d.js";import"./number-06e8500e.js";import"./guid-196bd5ea.js";var calciteDatePickerCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible;border-radius:0;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1)}:host([scale=s]){max-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";var CalciteDatePicker=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerChange=createEvent(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=createEvent(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=TEXT.prevMonth;this.intlNextMonth=TEXT.nextMonth;this.intlYear=TEXT.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(e){if(e.key==="Escape"){t.reset()}};this.monthHeaderSelectChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthActiveDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthHoverChange=function(e){if(!t.startAsDate){t.hoverRange=undefined;return}var a=new Date(e.detail);t.hoverRange={focused:t.activeRange||"start",start:t.startAsDate,end:t.endAsDate};if(!t.proximitySelectionDisabled){if(t.endAsDate){var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i>0){t.hoverRange.end=a;t.hoverRange.focused="end"}else if(r<0){t.hoverRange.start=a;t.hoverRange.focused="start"}else if(r>i){t.hoverRange.start=a;t.hoverRange.focused="start"}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}}else{if(!t.endAsDate){if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{t.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(t.hoverRange){t.hoverRange=undefined}};this.reset=function(){var e,a,r,i,n,o;if(!Array.isArray(t.valueAsDate)&&t.valueAsDate&&((e=t.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((a=t.activeDate)===null||a===void 0?void 0:a.getTime())){t.activeDate=new Date(t.valueAsDate)}if(t.startAsDate&&((r=t.startAsDate)===null||r===void 0?void 0:r.getTime())!==((i=t.activeStartDate)===null||i===void 0?void 0:i.getTime())){t.activeStartDate=new Date(t.startAsDate)}if(t.endAsDate&&((n=t.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=t.activeEndDate)===null||o===void 0?void 0:o.getTime())){t.activeEndDate=new Date(t.endAsDate)}};this.monthDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.value=dateToISO(a);t.activeDate=a;return}if(!t.startAsDate||!t.endAsDate&&a<t.startAsDate){if(t.startAsDate){t.setEndDate(new Date(t.startAsDate))}if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else if(!t.endAsDate){t.setEndDate(a)}else{if(!t.proximitySelectionDisabled){if(t.activeRange){if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else{var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i===0||r<0){t.setStartDate(a)}else if(r===0||i<0){t.setEndDate(a)}else if(r<i){t.setStartDate(a)}else{t.setEndDate(a)}}}else{t.setStartDate(a);t.endAsDate=t.activeEndDate=t.end=undefined}}}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e;this.calciteDatePickerChange.emit(e)}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.onMinChanged=function(e){this.minAsDate=dateFromISO(e)};e.prototype.onMaxChanged=function(e){this.maxAsDate=dateFromISO(e)};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return dateFromISO(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=dateFromISO(this.value)}if(this.start){this.setStartAsDate(dateFromISO(this.start))}if(this.end){this.setEndAsDate(dateFromISO(this.end))}if(this.min){this.minAsDate=dateFromISO(this.min)}if(this.max){this.maxAsDate=dateFromISO(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};e.prototype.render=function(){var e;var t=dateFromRange(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var r=a;var i=this.range?dateFromRange(this.endAsDate,this.minAsDate,this.maxAsDate):null;var n=this.getActiveEndDate(i,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||i))&&n){r=n}if(this.range&&this.mostRecentRangeValue){r=this.mostRecentRangeValue}var o=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var s=this.range&&this.activeRange?this.activeRange==="start"?i||this.maxAsDate:this.maxAsDate:this.maxAsDate;return h(Host,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(r,s,o,t,i))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return dateFromISO(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=dateFromISO(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(dateFromISO(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(dateFromISO(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,getLocaleData(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,r,i){return this.localeData&&[h("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||HEADING_LEVEL,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:t,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r||new Date}),h("calcite-date-picker-month",{activeDate:e,endDate:this.range?i:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r,startDate:this.range?r:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=dateToISO(e);this.setEndAsDate(e,true);this.activeEndDate=e};e.prototype.setStartDate=function(e){this.start=dateToISO(e);this.setStartAsDate(e,true);this.activeStartDate=e};e.prototype.getActiveDate=function(e,t,a){return dateFromRange(this.activeDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return dateFromRange(this.activeStartDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return dateFromRange(this.activeEndDate,t,a)||e||dateFromRange(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}();CalciteDatePicker.style=calciteDatePickerCss;var calciteDatePickerDayCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;color:var(--calcite-ui-text-3);cursor:pointer;min-width:0;width:14.2857142857%}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;line-height:1;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;opacity:var(--calcite-ui-opacity-disabled);background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0;margin-bottom:0;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}: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]){z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}: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,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);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:0;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:0}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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:0;-webkit-box-shadow:none;box-shadow:none}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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:0;-webkit-box-shadow:none;box-shadow:none}: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:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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:0;-webkit-box-shadow:none;box-shadow:none}: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:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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:0;-webkit-box-shadow:none;box-shadow:none}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));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) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}";var CalciteDatePickerDay=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDaySelect=createEvent(this,"calciteDaySelect",7);this.calciteDayHover=createEvent(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!t.disabled&&t.calciteDaySelect.emit()};this.keyDownHandler=function(e){var a=e.key;if(a===" "||a==="Enter"){!t.disabled&&t.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var r=getElementDir(this.el);return h(Host,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},h("div",{class:(e={"day-v-wrapper":true},e[CSS_UTILITY.rtl]=r==="rtl",e)},h("div",{class:"day-wrapper"},h("span",{class:"day"},h("span",{class:"text"},a)))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteDatePickerDay.style=calciteDatePickerDayCss;var calciteDatePickerMonthCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}.week-header{color:var(--calcite-ui-text-3);text-align:center;font-weight:var(--calcite-font-weight-bold);width:14.2857142857%}:host([scale=s]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.5rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}:host([scale=m]) .week-header{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.75rem;padding-bottom:1rem;padding-left:0;padding-right:0}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:1rem;padding-bottom:1.25rem;padding-left:0;padding-right:0}.week-days{outline:2px solid transparent;outline-offset:2px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px}";var CalciteDatePickerMonth=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=createEvent(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=createEvent(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=createEvent(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(e){var a=t.el.dir==="rtl";switch(e.key){case"ArrowUp":e.preventDefault();t.addDays(-7);break;case"ArrowRight":e.preventDefault();t.addDays(a?-1:1);break;case"ArrowDown":e.preventDefault();t.addDays(7);break;case"ArrowLeft":e.preventDefault();t.addDays(a?1:-1);break;case"PageUp":e.preventDefault();t.addMonths(-1);break;case"PageDown":e.preventDefault();t.addMonths(1);break;case"Home":e.preventDefault();t.activeDate.setDate(1);t.addDays();break;case"End":e.preventDefault();t.activeDate.setDate(new Date(t.activeDate.getFullYear(),t.activeDate.getMonth()+1,0).getDate());t.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":t.activeFocus=false}};this.disableActiveFocus=function(){t.activeFocus=false};this.dayHover=function(e){var a=e.target;if(e.detail.disabled){t.calciteDatePickerMouseOut.emit()}else{t.calciteDatePickerHover.emit(a.value)}};this.daySelect=function(e){var a=e.target;t.calciteDatePickerSelect.emit(a.value)}}e.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var r=this.localeData.weekStart%7;var i=this.localeData.days,n=i.abbreviated,o=i.short,s=i.narrow;var c=this.scale==="s"?s||o||n:o||n||s;var l=__spreadArray(__spreadArray([],c.slice(r,7)),c.slice(0,r));var d=this.getCurrentMonthDays(t,a);var u=this.getPrevMonthdays(t,a,r);var f=this.getNextMonthDays(t,a,r);var p=__spreadArray(__spreadArray(__spreadArray([],u.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,i)}))),d.map((function(r){var i=new Date(a,t,r);var n=sameDate(i,e.activeDate);return e.renderDateDay(n,r,i,true,true)}))),f.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,i)})));var g=[];for(var m=0;m<p.length;m+=7){g.push(p.slice(m,m+7))}return h(Host,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},h("div",{class:"calender",role:"grid"},h("div",{class:"week-headers",role:"row"},l.map((function(e){return h("span",{class:"week-header",role:"columnheader"},e)}))),g.map((function(e){return h("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=r.getDay();s>=a;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(sameDate(e,this.selectedDate)||this.startDate&&sameDate(e,this.startDate)||this.endDate&&sameDate(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.endDate,e)||!this.endDate&&this.hoverRange&&sameDate(this.startDate,this.hoverRange.end)&&sameDate(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,r,i){var n=this;var o;var s=this.isFocusedOnStart();var c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&sameDate((o=this.hoverRange)===null||o===void 0?void 0:o.end,this.startDate);return h("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:t,disabled:!inRange(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!sameDate(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(t){if(i&&e&&n.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||sameDate(e,r))||i&&e<this.endDate&&(e>a||sameDate(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||sameDate(e,r))||i&&(e<this.startDate||this.endDate&&sameDate(e,this.startDate))&&(e>a||sameDate(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteDatePickerMonth.style=calciteDatePickerMonthCss;var calciteDatePickerMonthHeaderCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{font-size:var(--calcite-font-size--1);line-height:1rem;margin-top:0.5rem;margin-bottom:0.5rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-top:0.75rem;margin-bottom:0.75rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-top:1rem;margin-bottom:1rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{color:var(--calcite-ui-text-3);-ms-flex-positive:0;flex-grow:0;-webkit-box-sizing:content-box;box-sizing:content-box;outline:2px solid transparent;outline-offset:2px;padding-left:0.25rem;padding-right:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem;border-style:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);cursor:pointer;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;line-height:1;margin-top:auto;margin-bottom:auto;text-align:center;width:100%}.text--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom:auto;display:inline-block;font-size:inherit}.year{font-family:inherit;text-align:center;border-style:none;width:3rem;background-color:transparent;position:relative;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;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{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;width:4rem;white-space:nowrap;text-align:left;top:0;left:0}.suffix__invisible{visibility:hidden}";var CalciteDatePickerMonthHeader=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.onYearKey=function(e){var a=e.target.value;switch(e.key){case"ArrowDown":e.preventDefault();t.setYear(a,-1);break;case"ArrowUp":e.preventDefault();t.setYear(a,1);break}};this.yearChanged=function(e){t.setYear(e.target.value)};this.prevMonthClick=function(e){t.handleArrowClick(e,t.prevMonthDate)};this.prevMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.prevMonthClick(e)}};this.nextMonthClick=function(e){t.handleArrowClick(e,t.nextMonthDate)};this.nextMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.nextMonthClick(e)}};this.handleArrowClick=function(e,a){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();t.calciteDatePickerSelect.emit(a)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){return h("div",{class:"header"},this.renderContent())};e.prototype.renderContent=function(){var e=this;var t;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var r=this.localeData,i=r.months,n=r.unitOrder;var o=(i.wide||i.narrow||i.abbreviated)[a];var s=localizeNumber(this.activeDate.getFullYear(),this.localeData);var c=this.scale==="l"?"m":"s";var l=getOrder(n);var d=l.indexOf("y")<l.indexOf("m");var u=(t=this.localeData.year)===null||t===void 0?void 0:t.suffix;return h(Fragment,null,h("a",{"aria-disabled":(this.prevMonthDate.getMonth()===a).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:c})),h("div",{class:{text:true,"text--reverse":d}},h(CalciteHeading,{class:"month",level:this.headingLevel},o),h("span",{class:"year-wrap"},h("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(t){return e.yearInput=t},type:"text",value:s}),u&&h("span",{class:"suffix"},h("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+u))),h("a",{"aria-disabled":(this.nextMonthDate.getMonth()===a).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:c})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=dateFromRange(nextMonth(this.activeDate),this.min,this.max);this.prevMonthDate=dateFromRange(prevMonth(this.activeDate),this.min,this.max)};e.prototype.setYear=function(e,t){if(t===void 0){t=0}var a=this,r=a.min,i=a.max,n=a.activeDate,o=a.localeData,s=a.yearInput;var c=parseNumber(e,o);var l=c.toString().length;var d=isNaN(c)?false:c+t;var h=d&&(!r||r.getFullYear()<=d)&&(!i||i.getFullYear()>=d);if(d&&h&&l===e.length){var u=new Date(n);u.setFullYear(d);var f=dateFromRange(u,r,i);this.calciteDatePickerSelect.emit(f);s.value=localizeNumber(f.getFullYear(),o)}else{s.value=localizeNumber(n.getFullYear(),o)}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}();CalciteDatePickerMonthHeader.style=calciteDatePickerMonthHeaderCss;export{CalciteDatePicker as calcite_date_picker,CalciteDatePickerDay as calcite_date_picker_day,CalciteDatePickerMonth as calcite_date_picker_month,CalciteDatePickerMonthHeader as calcite_date_picker_month_header};
5
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement,F as Fragment}from"./index-c4b90cce.js";import{T as TEXT,c as getDaysDiff,d as dateToISO,a as dateFromISO,b as dateFromRange,g as getLocaleData,H as HEADING_LEVEL,s as sameDate,i as inRange,l as localizeNumber,e as getOrder,n as nextMonth,f as prevMonth,h as parseNumber}from"./resources-704f6b2d.js";import{a as getElementDir,C as CSS_UTILITY}from"./dom-e7fa77b9.js";import{C as CalciteHeading}from"./CalciteHeading-fa0da825.js";import"./locale-fc850b7c.js";import"./number-8779395f.js";import"./guid-196bd5ea.js";var calciteDatePickerCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width: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-width:216px}:host([scale=m]){max-width:286px}:host([scale=l]){max-width:398px}";var CalciteDatePicker=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerChange=createEvent(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=createEvent(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=TEXT.prevMonth;this.intlNextMonth=TEXT.nextMonth;this.intlYear=TEXT.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(e){if(e.key==="Escape"){t.reset()}};this.monthHeaderSelectChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthActiveDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.activeDate=a}else{if(t.activeRange==="end"){t.activeEndDate=a}else{t.activeStartDate=a}t.mostRecentRangeValue=a}};this.monthHoverChange=function(e){if(!t.startAsDate){t.hoverRange=undefined;return}var a=new Date(e.detail);t.hoverRange={focused:t.activeRange||"start",start:t.startAsDate,end:t.endAsDate};if(!t.proximitySelectionDisabled){if(t.endAsDate){var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i>0){t.hoverRange.end=a;t.hoverRange.focused="end"}else if(r<0){t.hoverRange.start=a;t.hoverRange.focused="start"}else if(r>i){t.hoverRange.start=a;t.hoverRange.focused="start"}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}}else{if(!t.endAsDate){if(a<t.startAsDate){t.hoverRange={focused:"start",start:a,end:t.startAsDate}}else{t.hoverRange.end=a;t.hoverRange.focused="end"}}else{t.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(t.hoverRange){t.hoverRange=undefined}};this.reset=function(){var e,a,r,i,n,o;if(!Array.isArray(t.valueAsDate)&&t.valueAsDate&&((e=t.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((a=t.activeDate)===null||a===void 0?void 0:a.getTime())){t.activeDate=new Date(t.valueAsDate)}if(t.startAsDate&&((r=t.startAsDate)===null||r===void 0?void 0:r.getTime())!==((i=t.activeStartDate)===null||i===void 0?void 0:i.getTime())){t.activeStartDate=new Date(t.startAsDate)}if(t.endAsDate&&((n=t.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=t.activeEndDate)===null||o===void 0?void 0:o.getTime())){t.activeEndDate=new Date(t.endAsDate)}};this.monthDateChange=function(e){var a=new Date(e.detail);if(!t.range){t.value=a?dateToISO(a):"";t.valueAsDate=a||null;t.activeDate=a||null;t.calciteDatePickerChange.emit(a);return}if(!t.startAsDate||!t.endAsDate&&a<t.startAsDate){if(t.startAsDate){t.setEndDate(new Date(t.startAsDate))}if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else if(!t.endAsDate){t.setEndDate(a)}else{if(!t.proximitySelectionDisabled){if(t.activeRange){if(t.activeRange=="end"){t.setEndDate(a)}else{t.setStartDate(a)}}else{var r=getDaysDiff(a,t.startAsDate);var i=getDaysDiff(a,t.endAsDate);if(i===0||r<0){t.setStartDate(a)}else if(r===0||i<0){t.setEndDate(a)}else if(r<i){t.setStartDate(a)}else{t.setEndDate(a)}}}else{t.setStartDate(a);t.endAsDate=t.activeEndDate=t.end=undefined}}t.calciteDatePickerChange.emit(a)}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.onMinChanged=function(e){this.minAsDate=dateFromISO(e)};e.prototype.onMaxChanged=function(e){this.maxAsDate=dateFromISO(e)};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return dateFromISO(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=dateFromISO(this.value)}if(this.start){this.setStartAsDate(dateFromISO(this.start))}if(this.end){this.setEndAsDate(dateFromISO(this.end))}if(this.min){this.minAsDate=dateFromISO(this.min)}if(this.max){this.maxAsDate=dateFromISO(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};e.prototype.render=function(){var e;var t=dateFromRange(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var r=a;var i=this.range?dateFromRange(this.endAsDate,this.minAsDate,this.maxAsDate):null;var n=this.getActiveEndDate(i,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||i))&&n){r=n}if(this.range&&this.mostRecentRangeValue){r=this.mostRecentRangeValue}var o=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var s=this.range&&this.activeRange?this.activeRange==="start"?i||this.maxAsDate:this.maxAsDate:this.maxAsDate;return h(Host,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(r,s,o,t,i))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return dateFromISO(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=dateFromISO(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(dateFromISO(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(dateFromISO(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,getLocaleData(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,r,i){return this.localeData&&[h("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||HEADING_LEVEL,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:t,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r||new Date}),h("calcite-date-picker-month",{activeDate:e,endDate:this.range?i:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?i:r,startDate:this.range?r:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=e?dateToISO(e):"";this.setEndAsDate(e,true);this.activeEndDate=e||null};e.prototype.setStartDate=function(e){this.start=e?dateToISO(e):"";this.setStartAsDate(e,true);this.activeStartDate=e||null};e.prototype.getActiveDate=function(e,t,a){return dateFromRange(this.activeDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return dateFromRange(this.activeStartDate,t,a)||e||dateFromRange(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return dateFromRange(this.activeEndDate,t,a)||e||dateFromRange(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}();CalciteDatePicker.style=calciteDatePickerCss;var calciteDatePickerDayCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;min-width:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;width:14.2857142857%}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack: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);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background:none;-webkit-box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent;box-shadow:0 0 0 2px transparent, 0 0 0 0px transparent}.text{margin-top:1px;margin-right:0px;margin-bottom:0px;margin-left:1px}:host([scale=s]) .day-v-wrapper{padding-top:0.125rem;padding-bottom:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{height:27px;width:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=m]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]) .day{height:33px;width:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-top:0.25rem;padding-bottom:0.25rem}:host([scale=l]) .day-wrapper{padding-left:0.25rem;padding-right:0.25rem}:host([scale=l]) .day{height:43px;width:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host([disabled]){cursor:default;opacity:0.25}: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]){z-index:1}:host(:focus:not([disabled])) .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;z-index:1}: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,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);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([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));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) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));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;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));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;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-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{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);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{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}";var CalciteDatePickerDay=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDaySelect=createEvent(this,"calciteDaySelect",7);this.calciteDayHover=createEvent(this,"calciteDayHover",7);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!t.disabled&&t.calciteDaySelect.emit()};this.keyDownHandler=function(e){var a=e.key;if(a===" "||a==="Enter"){!t.disabled&&t.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var r=getElementDir(this.el);return h(Host,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},h("div",{class:(e={"day-v-wrapper":true},e[CSS_UTILITY.rtl]=r==="rtl",e)},h("div",{class:"day-wrapper"},h("span",{class:"day"},h("span",{class:"text"},a)))))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteDatePickerDay.style=calciteDatePickerDayCss;var calciteDatePickerMonthCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{margin-bottom:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);width:14.2857142857%}:host([scale=s]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-left:0px;padding-right:0px;padding-top:0.75rem;padding-bottom:1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-left:0px;padding-right:0px;padding-top:1rem;padding-bottom:1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-top:0px;padding-bottom:0px;outline:2px solid transparent;outline-offset:2px;padding-left:6px;padding-right:6px}";var CalciteDatePickerMonth=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=createEvent(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=createEvent(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=createEvent(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(e){var a=t.el.dir==="rtl";switch(e.key){case"ArrowUp":e.preventDefault();t.addDays(-7);break;case"ArrowRight":e.preventDefault();t.addDays(a?-1:1);break;case"ArrowDown":e.preventDefault();t.addDays(7);break;case"ArrowLeft":e.preventDefault();t.addDays(a?1:-1);break;case"PageUp":e.preventDefault();t.addMonths(-1);break;case"PageDown":e.preventDefault();t.addMonths(1);break;case"Home":e.preventDefault();t.activeDate.setDate(1);t.addDays();break;case"End":e.preventDefault();t.activeDate.setDate(new Date(t.activeDate.getFullYear(),t.activeDate.getMonth()+1,0).getDate());t.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":t.activeFocus=false}};this.disableActiveFocus=function(){t.activeFocus=false};this.dayHover=function(e){var a=e.target;if(e.detail.disabled){t.calciteDatePickerMouseOut.emit()}else{t.calciteDatePickerHover.emit(a.value)}};this.daySelect=function(e){var a=e.target;t.calciteDatePickerSelect.emit(a.value)}}e.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var r=this.localeData.weekStart%7;var i=this.localeData.days,n=i.abbreviated,o=i.short,s=i.narrow;var c=this.scale==="s"?s||o||n:o||n||s;var l=__spreadArray(__spreadArray([],c.slice(r,7)),c.slice(0,r));var d=this.getCurrentMonthDays(t,a);var u=this.getPrevMonthdays(t,a,r);var f=this.getNextMonthDays(t,a,r);var p=__spreadArray(__spreadArray(__spreadArray([],u.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,i)}))),d.map((function(r){var i=new Date(a,t,r);var n=sameDate(i,e.activeDate);return e.renderDateDay(n,r,i,true,true)}))),f.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,i)})));var g=[];for(var m=0;m<p.length;m+=7){g.push(p.slice(m,m+7))}return h(Host,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},h("div",{class:"calender",role:"grid"},h("div",{class:"week-headers",role:"row"},l.map((function(e){return h("span",{class:"week-header",role:"columnheader"},e)}))),g.map((function(e){return h("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(dateFromRange(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=r.getDay();s>=a;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(sameDate(e,this.selectedDate)||this.startDate&&sameDate(e,this.startDate)||this.endDate&&sameDate(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!sameDate(this.startDate,this.endDate)&&sameDate(this.endDate,e)||!this.endDate&&this.hoverRange&&sameDate(this.startDate,this.hoverRange.end)&&sameDate(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,r,i){var n=this;var o;var s=this.isFocusedOnStart();var c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&sameDate((o=this.hoverRange)===null||o===void 0?void 0:o.end,this.startDate);return h("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:t,disabled:!inRange(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),localeData:this.localeData,onCalciteDayHover:this.dayHover,onCalciteDaySelect:this.daySelect,range:!!this.startDate&&!!this.endDate&&!sameDate(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(t){if(i&&e&&n.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||sameDate(e,r))||i&&e<this.endDate&&(e>a||sameDate(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||sameDate(e,r))||i&&(e<this.startDate||this.endDate&&sameDate(e,this.startDate))&&(e>a||sameDate(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();CalciteDatePickerMonth.style=calciteDatePickerMonthCss;var calciteDatePickerMonthHeaderCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{margin-top:0.5rem;margin-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{margin-top:0.75rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{margin-top:1rem;margin-bottom:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{margin-left:-0.25rem;margin-right:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-left:0.25rem;padding-right:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width: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-top:auto;margin-bottom:auto;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-left:0.25rem;margin-right:0.25rem;margin-top:auto;margin-bottom: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;width:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;z-index:2}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;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{width:4rem;text-align:left}.year-wrap{position:relative}.suffix{position:absolute;top:0px;left:0px;width:4rem;white-space:nowrap;text-align:left}.suffix__invisible{visibility:hidden}";var CalciteDatePickerMonthHeader=function(){function e(e){var t=this;registerInstance(this,e);this.calciteDatePickerSelect=createEvent(this,"calciteDatePickerSelect",7);this.onYearKey=function(e){var a=e.target.value;switch(e.key){case"ArrowDown":e.preventDefault();t.setYear(a,-1);break;case"ArrowUp":e.preventDefault();t.setYear(a,1);break}};this.yearChanged=function(e){t.setYear(e.target.value)};this.prevMonthClick=function(e){t.handleArrowClick(e,t.prevMonthDate)};this.prevMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.prevMonthClick(e)}};this.nextMonthClick=function(e){t.handleArrowClick(e,t.nextMonthDate)};this.nextMonthKeydown=function(e){var a=e.key;if(a===" "||a==="Enter"){t.nextMonthClick(e)}};this.handleArrowClick=function(e,a){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();t.calciteDatePickerSelect.emit(a)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){return h("div",{class:"header"},this.renderContent())};e.prototype.renderContent=function(){var e=this;var t;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var r=this.localeData,i=r.months,n=r.unitOrder;var o=(i.wide||i.narrow||i.abbreviated)[a];var s=localizeNumber(this.activeDate.getFullYear(),this.localeData);var c=this.scale==="l"?"m":"s";var l=getOrder(n);var d=l.indexOf("y")<l.indexOf("m");var u=(t=this.localeData.year)===null||t===void 0?void 0:t.suffix;return h(Fragment,null,h("a",{"aria-disabled":(this.prevMonthDate.getMonth()===a).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:c})),h("div",{class:{text:true,"text--reverse":d}},h(CalciteHeading,{class:"month",level:this.headingLevel},o),h("span",{class:"year-wrap"},h("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!u},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(t){return e.yearInput=t},type:"text",value:s}),u&&h("span",{class:"suffix"},h("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+u))),h("a",{"aria-disabled":(this.nextMonthDate.getMonth()===a).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===a?-1:0},h("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:c})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=dateFromRange(nextMonth(this.activeDate),this.min,this.max);this.prevMonthDate=dateFromRange(prevMonth(this.activeDate),this.min,this.max)};e.prototype.setYear=function(e,t){if(t===void 0){t=0}var a=this,r=a.min,i=a.max,n=a.activeDate,o=a.localeData,s=a.yearInput;var c=parseNumber(e,o);var l=c.toString().length;var d=isNaN(c)?false:c+t;var h=d&&(!r||r.getFullYear()<=d)&&(!i||i.getFullYear()>=d);if(d&&h&&l===e.length){var u=new Date(n);u.setFullYear(d);var f=dateFromRange(u,r,i);this.calciteDatePickerSelect.emit(f);s.value=localizeNumber(f.getFullYear(),o)}else{s.value=localizeNumber(n.getFullYear(),o)}};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}();CalciteDatePickerMonthHeader.style=calciteDatePickerMonthHeaderCss;export{CalciteDatePicker as calcite_date_picker,CalciteDatePickerDay as calcite_date_picker_day,CalciteDatePickerMonth as calcite_date_picker_month,CalciteDatePickerMonthHeader as calcite_date_picker_month_header};
@@ -2,4 +2,4 @@ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t ins
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-9de00868.js";import{f as focusElement,d as getElementProp}from"./dom-f24e866c.js";import{C as CSS$2,u as updatePopper,c as createPopper}from"./popper-f5caedc4.js";import{c as createObserver}from"./observers-8f0bc419.js";import"./guid-196bd5ea.js";var DefaultDropdownPlacement="bottom-leading";var SLOTS={dropdownTrigger:"dropdown-trigger"};var calciteDropdownCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{background-color:var(--calcite-ui-foreground-1);overflow:hidden;overflow-y:auto;width:auto;max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;position:relative}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";var CalciteDropdown=function(){function t(t){var e=this;registerInstance(this,t);this.calciteDropdownSelect=createEvent(this,"calciteDropdownSelect",7);this.calciteDropdownOpen=createEvent(this,"calciteDropdownOpen",7);this.calciteDropdownClose=createEvent(this,"calciteDropdownClose",7);this.active=false;this.disableCloseOnSelect=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.placement=DefaultDropdownPlacement;this.scale="m";this.selectedItems=[];this.type="click";this.width="m";this.items=[];this.activeTransitionProp="visibility";this.mutationObserver=createObserver("mutation",(function(){return e.updateItems()}));this.updateItems=function(){e.updateSelectedItems();e.triggers=Array.from(e.el.querySelectorAll("[slot=dropdown-trigger]"));e.items=Array.from(e.el.querySelectorAll("calcite-dropdown-item"));e.reposition()};this.setMaxScrollerHeight=function(){var t=e.scrollerEl;if(t){var i=e.getMaxScrollerHeight();t.style.maxHeight=i>0?i+"px":""}};this.setScrollerEl=function(t){e.scrollerEl=t};this.transitionEnd=function(t){if(t.propertyName===e.activeTransitionProp){e.active?e.calciteDropdownOpen.emit():e.calciteDropdownClose.emit()}};this.setReferenceEl=function(t){e.referenceEl=t};this.setMenuEl=function(t){e.menuEl=t};this.keyDownHandler=function(t){var i=t.target;var n=t.key;if(e.triggers.includes(i)||e.triggers.some((function(t){return t.contains(i)}))){if(i.nodeName!=="BUTTON"&&i.nodeName!=="CALCITE-BUTTON"){switch(n){case" ":case"Enter":e.openCalciteDropdown();break;case"Escape":e.closeCalciteDropdown();break}}else if(e.active&&(n==="Escape"||t.shiftKey&&n==="Tab")){e.closeCalciteDropdown()}}};this.focusOnFirstActiveOrFirstItem=function(){e.getFocusableElement(e.items.find((function(t){return t.active}))||e.items[0])};this.toggleOpenEnd=function(){e.focusOnFirstActiveOrFirstItem();e.el.removeEventListener("calciteDropdownOpen",e.toggleOpenEnd)};this.openCalciteDropdown=function(){e.active=!e.active;if(e.active){e.el.addEventListener("calciteDropdownOpen",e.toggleOpenEnd)}}}t.prototype.activeHandler=function(){this.reposition()};t.prototype.maxItemsHandler=function(){this.reposition()};t.prototype.placementHandler=function(){this.reposition()};t.prototype.connectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.createPopper();this.updateItems()};t.prototype.componentDidLoad=function(){this.reposition()};t.prototype.disconnectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();this.destroyPopper()};t.prototype.render=function(){var t;var e=this.active;return h(Host,{tabIndex:this.disabled?-1:null},h("div",{class:"calcite-dropdown-trigger-container",onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},h("slot",{"aria-expanded":e.toString(),"aria-haspopup":"true",name:SLOTS.dropdownTrigger})),h("div",{"aria-hidden":(!e).toString(),class:"calcite-dropdown-wrapper",ref:this.setMenuEl},h("div",{class:(t={},t["calcite-dropdown-content"]=true,t[CSS$2.animation]=true,t[CSS$2.animationActive]=e,t),onTransitionEnd:this.transitionEnd,ref:this.setScrollerEl},h("slot",null))))};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n,a,o;return __generator(this,(function(r){switch(r.label){case 0:t=this,e=t.popper,i=t.menuEl,n=t.placement;this.setMaxScrollerHeight();a=this.getModifiers();if(!e)return[3,2];return[4,updatePopper({el:i,modifiers:a,placement:n,popper:e})];case 1:o=r.sent();return[3,3];case 2:o=this.createPopper();r.label=3;case 3:o;return[2]}}))}))};t.prototype.closeCalciteDropdownOnClick=function(t){if(!this.active||t.composedPath().includes(this.el)){return}this.closeCalciteDropdown()};t.prototype.closeCalciteDropdownOnEvent=function(){this.closeCalciteDropdown()};t.prototype.closeCalciteDropdownOnOpenEvent=function(t){if(t.composedPath().includes(this.el)){return}this.active=false};t.prototype.mouseEnterHandler=function(){if(this.type==="hover"){this.openCalciteDropdown()}};t.prototype.mouseLeaveHandler=function(){if(this.type==="hover"){this.closeCalciteDropdown()}};t.prototype.calciteDropdownItemKeyEvent=function(t){var e=t.detail.keyboardEvent;var i=e.target;var n=i.nodeName!=="A"?i:i.parentNode;var a=this.itemIndex(n)===0;var o=this.itemIndex(n)===this.items.length-1;switch(e.key){case"Tab":if(o&&!e.shiftKey){this.closeCalciteDropdown()}else if(a&&e.shiftKey){this.closeCalciteDropdown()}else if(e.shiftKey){this.focusPrevItem(n)}else{this.focusNextItem(n)}break;case"ArrowDown":this.focusNextItem(n);break;case"ArrowUp":this.focusPrevItem(n);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}t.stopPropagation()};t.prototype.handleItemSelect=function(t){this.updateSelectedItems();t.stopPropagation();this.calciteDropdownSelect.emit();if(!this.disableCloseOnSelect||t.detail.requestedDropdownGroup.selectionMode==="none"){this.closeCalciteDropdown()}};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,i=t.referenceEl,n=t.placement,a=t.overlayPositioning;var o=this.getModifiers();this.popper=createPopper({el:e,modifiers:o,overlayPositioning:a,placement:n,referenceEl:i})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.updateSelectedItems=function(){var t=Array.from(this.el.querySelectorAll("calcite-dropdown-item"));this.selectedItems=t.filter((function(t){return t.active}))};t.prototype.getMaxScrollerHeight=function(){var t=Array.from(this.el.querySelectorAll("calcite-dropdown-group"));var e=this.maxItems;var i=0;var n=0;var a;t.forEach((function(t){if(e>0&&i<e){Array.from(t.children).forEach((function(t,o){if(o===0){if(isNaN(a)){a=t.offsetTop}n+=a}if(i<e){n+=t.offsetHeight;i+=1}}))}}));return n};t.prototype.closeCalciteDropdown=function(){this.active=false;focusElement(this.triggers[0])};t.prototype.focusFirstItem=function(){var t=this.items[0];this.getFocusableElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.getFocusableElement(t)};t.prototype.focusNextItem=function(t){var e=this.itemIndex(t);var i=this.items[e+1]||this.items[0];this.getFocusableElement(i)};t.prototype.focusPrevItem=function(t){var e=this.itemIndex(t);var i=this.items[e-1]||this.items[this.items.length-1];this.getFocusableElement(i)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.getFocusableElement=function(t){if(!t){return}var e=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;focusElement(e)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],placement:["placementHandler"]}},enumerable:false,configurable:true});return t}();CalciteDropdown.style=calciteDropdownCss;var CSS$1={containerSmall:"container--s",containerMedium:"container--m",containerLarge:"container--l"};var calciteDropdownGroupCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{display:block;border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-bold);word-wrap:break-word;overflow-wrap:break-word;cursor:default;margin-bottom:-1px}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";var CalciteDropdownGroup=function(){function t(t){registerInstance(this,t);this.calciteDropdownItemChange=createEvent(this,"calciteDropdownItemChange",7);this.selectionMode="single"}t.prototype.componentWillLoad=function(){this.groupPosition=this.getGroupPosition()};t.prototype.render=function(){var t;var e=this.scale||getElementProp(this.el,"scale","m");var i=this.groupTitle?h("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null;var n=this.groupPosition>0?h("div",{class:"dropdown-separator",role:"separator"}):null;return h(Host,{role:"menu"},h("div",{class:(t={container:true},t[CSS$1.containerSmall]=e==="s",t[CSS$1.containerMedium]=e==="m",t[CSS$1.containerLarge]=e==="l",t),title:this.groupTitle},n,i,h("slot",null)))};t.prototype.updateActiveItemOnChange=function(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.calciteDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})};t.prototype.getGroupPosition=function(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteDropdownGroup.style=calciteDropdownGroupCss;var CSS={containerLink:"container--link",containerSmall:"container--s",containerMedium:"container--m",containerLarge:"container--l",containerMulti:"container--multi-selection",containerSingle:"container--single-selection",containerNone:"container--none-selection"};var calciteDropdownItemCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}.container--s.container--none-selection{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}.container--m.container--none-selection{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.container--l.container--none-selection{-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;position:relative}.container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.dropdown-item-content{-ms-flex:1 1 auto;flex:1 1 auto;-webkit-padding-end:auto;padding-inline-end:auto;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host,.container--link a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0}.container--link a{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.container--s .dropdown-link{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l .dropdown-link{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([active]) .container:not(.container--none-selection),:host([active]) .container--link .dropdown-link{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}:host([active]) .container:not(.container--none-selection):before,:host([active]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon,:host([active]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(0.9);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{-webkit-margin-start:1rem;margin-inline-start:1rem}";var CalciteDropdownItem=function(){function t(t){registerInstance(this,t);this.calciteDropdownItemSelect=createEvent(this,"calciteDropdownItemSelect",7);this.calciteDropdownItemKeyEvent=createEvent(this,"calciteDropdownItemKeyEvent",7);this.calciteDropdownCloseRequest=createEvent(this,"calciteDropdownCloseRequest",7);this.active=false}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.el.focus();return[2]}))}))};t.prototype.connectedCallback=function(){this.selectionMode=getElementProp(this.el,"selection-mode","single");this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group");if(this.selectionMode==="none"){this.active=false}};t.prototype.render=function(){var t;var e=this;var i=getElementProp(this.el,"scale","m");var n=h("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var a=h("span",{class:"dropdown-item-content"},h("slot",null));var o=h("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});var r=this.iconStart&&this.iconEnd?[n,a,o]:this.iconStart?[n,h("slot",null)]:this.iconEnd?[a,o]:a;var s=!this.href?r:h("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,ref:function(t){return e.childLink=t},rel:this.rel,target:this.target},r);var c=this.href?null:this.selectionMode==="single"?"menuitemradio":this.selectionMode==="multi"?"menuitemcheckbox":"menuitem";var l=this.selectionMode!=="none"?this.active.toString():null;return h(Host,{"aria-checked":l,role:c,tabindex:"0"},h("div",{class:(t={container:true},t[CSS.containerLink]=!!this.href,t[CSS.containerSmall]=i==="s",t[CSS.containerMedium]=i==="m",t[CSS.containerLarge]=i==="l",t[CSS.containerMulti]=this.selectionMode==="multi",t[CSS.containerSingle]=this.selectionMode==="single",t[CSS.containerNone]=this.selectionMode==="none",t)},this.selectionMode!=="none"?h("calcite-icon",{class:"dropdown-item-icon",icon:this.selectionMode==="multi"?"check":"bullet-point",scale:"s"}):null,s))};t.prototype.onClick=function(){this.emitRequestedItem()};t.prototype.keyDownHandler=function(t){switch(t.key){case" ":this.emitRequestedItem();if(this.href){t.preventDefault();this.childLink.click()}break;case"Enter":this.emitRequestedItem();if(this.href){this.childLink.click()}break;case"Escape":this.calciteDropdownCloseRequest.emit();break;case"Tab":case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteDropdownItemKeyEvent.emit({keyboardEvent:t});break}t.preventDefault()};t.prototype.updateActiveItemOnChange=function(t){var e=t.composedPath().includes(this.parentDropdownGroupEl);if(e){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.determineActiveItem()}};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedDropdownItem){this.active=!this.active}break;case"single":if(this.el===this.requestedDropdownItem){this.active=true}else if(this.requestedDropdownGroup===this.parentDropdownGroupEl){this.active=false}break;case"none":this.active=false;break}};t.prototype.emitRequestedItem=function(){this.calciteDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteDropdownItem.style=calciteDropdownItemCss;export{CalciteDropdown as calcite_dropdown,CalciteDropdownGroup as calcite_dropdown_group,CalciteDropdownItem as calcite_dropdown_item};
5
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-c4b90cce.js";import{g as getSlotted,f as focusElement,d as getElementProp}from"./dom-e7fa77b9.js";import{C as CSS$2,u as updatePopper,c as createPopper}from"./popper-ae231554.js";import{c as createObserver}from"./observers-46118290.js";import"./guid-196bd5ea.js";var DefaultDropdownPlacement="bottom-leading";var SLOTS={dropdownTrigger:"dropdown-trigger"};var calciteDropdownCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";var CalciteDropdown=function(){function t(t){var e=this;registerInstance(this,t);this.calciteDropdownSelect=createEvent(this,"calciteDropdownSelect",7);this.calciteDropdownOpen=createEvent(this,"calciteDropdownOpen",7);this.calciteDropdownClose=createEvent(this,"calciteDropdownClose",7);this.active=false;this.disableCloseOnSelect=false;this.disabled=false;this.maxItems=0;this.overlayPositioning="absolute";this.placement=DefaultDropdownPlacement;this.scale="m";this.selectedItems=[];this.type="click";this.width="m";this.items=[];this.activeTransitionProp="visibility";this.mutationObserver=createObserver("mutation",(function(){return e.updateItems()}));this.resizeObserver=createObserver("resize",(function(){return e.setMaxScrollerHeight()}));this.updateItems=function(){e.updateSelectedItems();e.triggers=getSlotted(e.el,"dropdown-trigger",{all:true});e.items=Array.from(e.el.querySelectorAll("calcite-dropdown-item"));e.reposition()};this.setMaxScrollerHeight=function(){var t=e,i=t.active,n=t.scrollerEl;if(!n||!i){return}var a=e.getMaxScrollerHeight();n.style.maxHeight=a>0?a+"px":""};this.setScrollerEl=function(t){e.resizeObserver.observe(t);e.scrollerEl=t};this.transitionEnd=function(t){if(t.propertyName===e.activeTransitionProp){e.active?e.calciteDropdownOpen.emit():e.calciteDropdownClose.emit()}};this.setReferenceEl=function(t){e.referenceEl=t};this.setMenuEl=function(t){e.menuEl=t};this.keyDownHandler=function(t){var i=t.target;var n=t.key;if(e.triggers.includes(i)||e.triggers.some((function(t){return t.contains(i)}))){var a=["BUTTON","CALCITE-BUTTON","CALCITE-ACTION"];if(a.includes(i.nodeName)){if(e.active&&(n==="Escape"||t.shiftKey&&n==="Tab")){e.closeCalciteDropdown()}return}switch(n){case" ":case"Enter":e.openCalciteDropdown();break;case"Escape":e.closeCalciteDropdown();break}}};this.focusOnFirstActiveOrFirstItem=function(){e.getFocusableElement(e.items.find((function(t){return t.active}))||e.items[0])};this.toggleOpenEnd=function(){e.focusOnFirstActiveOrFirstItem();e.el.removeEventListener("calciteDropdownOpen",e.toggleOpenEnd)};this.openCalciteDropdown=function(){e.active=!e.active;if(e.active){e.el.addEventListener("calciteDropdownOpen",e.toggleOpenEnd)}}}t.prototype.activeHandler=function(){this.reposition()};t.prototype.maxItemsHandler=function(){this.reposition();this.setMaxScrollerHeight()};t.prototype.placementHandler=function(){this.reposition()};t.prototype.connectedCallback=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.createPopper();this.updateItems()};t.prototype.componentDidLoad=function(){this.reposition()};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.destroyPopper()};t.prototype.render=function(){var t;var e=this.active;return h(Host,{tabIndex:this.disabled?-1:null},h("div",{class:"calcite-dropdown-trigger-container",onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},h("slot",{"aria-expanded":e.toString(),"aria-haspopup":"true",name:SLOTS.dropdownTrigger})),h("div",{"aria-hidden":(!e).toString(),class:"calcite-dropdown-wrapper",ref:this.setMenuEl},h("div",{class:(t={},t["calcite-dropdown-content"]=true,t[CSS$2.animation]=true,t[CSS$2.animationActive]=e,t),onTransitionEnd:this.transitionEnd,ref:this.setScrollerEl},h("div",{hidden:!this.active},h("slot",null)))))};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n,a,o;return __generator(this,(function(r){switch(r.label){case 0:t=this,e=t.popper,i=t.menuEl,n=t.placement;a=this.getModifiers();if(!e)return[3,2];return[4,updatePopper({el:i,modifiers:a,placement:n,popper:e})];case 1:o=r.sent();return[3,3];case 2:o=this.createPopper();r.label=3;case 3:o;return[2]}}))}))};t.prototype.closeCalciteDropdownOnClick=function(t){if(!this.active||t.composedPath().includes(this.el)){return}this.closeCalciteDropdown()};t.prototype.closeCalciteDropdownOnEvent=function(){this.closeCalciteDropdown()};t.prototype.closeCalciteDropdownOnOpenEvent=function(t){if(t.composedPath().includes(this.el)){return}this.active=false};t.prototype.mouseEnterHandler=function(){if(this.type==="hover"){this.openCalciteDropdown()}};t.prototype.mouseLeaveHandler=function(){if(this.type==="hover"){this.closeCalciteDropdown()}};t.prototype.calciteDropdownItemKeyEvent=function(t){var e=t.detail.keyboardEvent;var i=e.target;var n=i.nodeName!=="A"?i:i.parentNode;var a=this.itemIndex(n)===0;var o=this.itemIndex(n)===this.items.length-1;switch(e.key){case"Tab":if(o&&!e.shiftKey){this.closeCalciteDropdown()}else if(a&&e.shiftKey){this.closeCalciteDropdown()}else if(e.shiftKey){this.focusPrevItem(n)}else{this.focusNextItem(n)}break;case"ArrowDown":this.focusNextItem(n);break;case"ArrowUp":this.focusPrevItem(n);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}t.stopPropagation()};t.prototype.handleItemSelect=function(t){this.updateSelectedItems();t.stopPropagation();this.calciteDropdownSelect.emit();if(!this.disableCloseOnSelect||t.detail.requestedDropdownGroup.selectionMode==="none"){this.closeCalciteDropdown()}};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,i=t.referenceEl,n=t.placement,a=t.overlayPositioning;var o=this.getModifiers();this.popper=createPopper({el:e,modifiers:o,overlayPositioning:a,placement:n,referenceEl:i})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.updateSelectedItems=function(){var t=Array.from(this.el.querySelectorAll("calcite-dropdown-item"));this.selectedItems=t.filter((function(t){return t.active}))};t.prototype.getMaxScrollerHeight=function(){var t=Array.from(this.el.querySelectorAll("calcite-dropdown-group"));var e=this.maxItems;var i=0;var n=0;var a;t.forEach((function(t){if(e>0&&i<e){Array.from(t.children).forEach((function(t,o){if(o===0){if(isNaN(a)){a=t.offsetTop}n+=a}if(i<e){n+=t.offsetHeight;i+=1}}))}}));return n};t.prototype.closeCalciteDropdown=function(){this.active=false;focusElement(this.triggers[0])};t.prototype.focusFirstItem=function(){var t=this.items[0];this.getFocusableElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.getFocusableElement(t)};t.prototype.focusNextItem=function(t){var e=this.itemIndex(t);var i=this.items[e+1]||this.items[0];this.getFocusableElement(i)};t.prototype.focusPrevItem=function(t){var e=this.itemIndex(t);var i=this.items[e-1]||this.items[this.items.length-1];this.getFocusableElement(i)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.getFocusableElement=function(t){if(!t){return}var e=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;focusElement(e)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],placement:["placementHandler"]}},enumerable:false,configurable:true});return t}();CalciteDropdown.style=calciteDropdownCss;var CSS$1={containerSmall:"container--s",containerMedium:"container--m",containerLarge:"container--l"};var calciteDropdownGroupCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";var CalciteDropdownGroup=function(){function t(t){registerInstance(this,t);this.calciteDropdownItemChange=createEvent(this,"calciteDropdownItemChange",7);this.selectionMode="single"}t.prototype.componentWillLoad=function(){this.groupPosition=this.getGroupPosition()};t.prototype.render=function(){var t;var e=this.scale||getElementProp(this.el,"scale","m");var i=this.groupTitle?h("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null;var n=this.groupPosition>0?h("div",{class:"dropdown-separator",role:"separator"}):null;return h(Host,{role:"menu"},h("div",{class:(t={container:true},t[CSS$1.containerSmall]=e==="s",t[CSS$1.containerMedium]=e==="m",t[CSS$1.containerLarge]=e==="l",t),title:this.groupTitle},n,i,h("slot",null)))};t.prototype.updateActiveItemOnChange=function(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.calciteDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})};t.prototype.getGroupPosition=function(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteDropdownGroup.style=calciteDropdownGroupCss;var CSS={containerLink:"container--link",containerSmall:"container--s",containerMedium:"container--m",containerLarge:"container--l",containerMulti:"container--multi-selection",containerSingle:"container--single-selection",containerNone:"container--none-selection"};var calciteDropdownItemCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.container--s{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}.container--s.container--none-selection{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--m.container--none-selection{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--l.container--none-selection{-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.dropdown-item-content{-ms-flex:1 1 auto;flex:1 1 auto;-webkit-padding-end:auto;padding-inline-end:auto;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host,.container--link a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0px}.container--link a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.container--s .dropdown-link{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([active]) .container:not(.container--none-selection),:host([active]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([active]) .container:not(.container--none-selection):before,:host([active]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon,:host([active]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(0.9);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{-webkit-margin-start:1rem;margin-inline-start:1rem}";var CalciteDropdownItem=function(){function t(t){registerInstance(this,t);this.calciteDropdownItemSelect=createEvent(this,"calciteDropdownItemSelect",7);this.calciteDropdownItemKeyEvent=createEvent(this,"calciteDropdownItemKeyEvent",7);this.calciteDropdownCloseRequest=createEvent(this,"calciteDropdownCloseRequest",7);this.active=false}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.el.focus();return[2]}))}))};t.prototype.connectedCallback=function(){this.selectionMode=getElementProp(this.el,"selection-mode","single");this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group");if(this.selectionMode==="none"){this.active=false}};t.prototype.render=function(){var t;var e=this;var i=getElementProp(this.el,"scale","m");var n=h("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var a=h("span",{class:"dropdown-item-content"},h("slot",null));var o=h("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});var r=this.iconStart&&this.iconEnd?[n,a,o]:this.iconStart?[n,h("slot",null)]:this.iconEnd?[a,o]:a;var s=!this.href?r:h("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,ref:function(t){return e.childLink=t},rel:this.rel,target:this.target},r);var c=this.href?null:this.selectionMode==="single"?"menuitemradio":this.selectionMode==="multi"?"menuitemcheckbox":"menuitem";var l=this.selectionMode!=="none"?this.active.toString():null;return h(Host,{"aria-checked":l,role:c,tabindex:"0"},h("div",{class:(t={container:true},t[CSS.containerLink]=!!this.href,t[CSS.containerSmall]=i==="s",t[CSS.containerMedium]=i==="m",t[CSS.containerLarge]=i==="l",t[CSS.containerMulti]=this.selectionMode==="multi",t[CSS.containerSingle]=this.selectionMode==="single",t[CSS.containerNone]=this.selectionMode==="none",t)},this.selectionMode!=="none"?h("calcite-icon",{class:"dropdown-item-icon",icon:this.selectionMode==="multi"?"check":"bullet-point",scale:"s"}):null,s))};t.prototype.onClick=function(){this.emitRequestedItem()};t.prototype.keyDownHandler=function(t){switch(t.key){case" ":this.emitRequestedItem();if(this.href){t.preventDefault();this.childLink.click()}break;case"Enter":this.emitRequestedItem();if(this.href){this.childLink.click()}break;case"Escape":this.calciteDropdownCloseRequest.emit();break;case"Tab":case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteDropdownItemKeyEvent.emit({keyboardEvent:t});break}t.preventDefault()};t.prototype.updateActiveItemOnChange=function(t){var e=t.composedPath().includes(this.parentDropdownGroupEl);if(e){this.requestedDropdownGroup=t.detail.requestedDropdownGroup;this.requestedDropdownItem=t.detail.requestedDropdownItem;this.determineActiveItem()}};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedDropdownItem){this.active=!this.active}break;case"single":if(this.el===this.requestedDropdownItem){this.active=true}else if(this.requestedDropdownGroup===this.parentDropdownGroupEl){this.active=false}break;case"none":this.active=false;break}};t.prototype.emitRequestedItem=function(){this.calciteDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteDropdownItem.style=calciteDropdownItemCss;export{CalciteDropdown as calcite_dropdown,CalciteDropdownGroup as calcite_dropdown_group,CalciteDropdownItem as calcite_dropdown_item};
@@ -1,5 +1,5 @@
1
- var __awaiter=this&&this.__awaiter||function(t,a,n,e){function i(t){return t instanceof n?t:new n((function(a){a(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{c(e.next(t))}catch(t){r(t)}}function l(t){try{c(e["throw"](t))}catch(t){r(t)}}function c(t){t.done?n(t.value):i(t.value).then(o,l)}c((e=e.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,i,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(a){return c([t,a])}}function c(o){if(e)throw new TypeError("Generator is already executing.");while(n)try{if(e=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=a.call(t,n)}catch(t){o=[6,t];i=0}finally{e=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(t,a,n,e){function i(t){return t instanceof n?t:new n((function(a){a(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{c(e.next(t))}catch(t){r(t)}}function s(t){try{c(e["throw"](t))}catch(t){r(t)}}function c(t){t.done?n(t.value):i(t.value).then(o,s)}c((e=e.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,i,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(a){return c([t,a])}}function c(o){if(e)throw new TypeError("Generator is already executing.");while(n)try{if(e=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=a.call(t,n)}catch(t){o=[6,t];i=0}finally{e=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{r as registerInstance,h,g as getElement}from"./index-9de00868.js";import{f as focusElement}from"./dom-f24e866c.js";import"./guid-196bd5ea.js";var CSS={button:"button"};var ICONS={plus:"plus"};var calciteFabCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}calcite-button{-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08)}calcite-button:hover{-webkit-box-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);box-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08)}calcite-button:active{-webkit-box-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);box-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16)}";var CalciteFab=function(){function t(t){registerInstance(this,t);this.appearance="outline";this.color="neutral";this.disabled=false;this.icon=ICONS.plus;this.loading=false;this.scale="m";this.textEnabled=false}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.buttonEl);return[2]}))}))};t.prototype.render=function(){var t=this;var a=this,n=a.appearance,e=a.color,i=a.disabled,r=a.loading,o=a.scale,l=a.textEnabled,c=a.icon,s=a.label,p=a.text;var u=!l?s||p||null:null;return h("calcite-button",{appearance:n==="solid"?"solid":"outline",class:CSS.button,color:e,disabled:i,iconStart:c,label:s,loading:r,ref:function(a){t.buttonEl=a},round:true,scale:o,title:u,width:"auto"},this.textEnabled?this.text:null)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteFab.style=calciteFabCss;export{CalciteFab as calcite_fab};
5
+ */import{r as registerInstance,h,g as getElement}from"./index-c4b90cce.js";import{f as focusElement}from"./dom-e7fa77b9.js";import"./guid-196bd5ea.js";var CSS={button:"button"};var ICONS={plus:"plus"};var calciteFabCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}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);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}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);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}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);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";var CalciteFab=function(){function t(t){registerInstance(this,t);this.appearance="outline";this.color="neutral";this.disabled=false;this.icon=ICONS.plus;this.loading=false;this.scale="m";this.textEnabled=false}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.buttonEl);return[2]}))}))};t.prototype.render=function(){var t=this;var a=this,n=a.appearance,e=a.color,i=a.disabled,r=a.loading,o=a.scale,s=a.textEnabled,c=a.icon,l=a.label,w=a.text;var p=!s?l||w||null:null;return h("calcite-button",{appearance:n==="solid"?"solid":"outline",class:CSS.button,color:e,disabled:i,iconStart:c,label:l,loading:r,ref:function(a){t.buttonEl=a},round:true,scale:o,title:p,width:"auto"},this.textEnabled?this.text:null)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteFab.style=calciteFabCss;export{CalciteFab as calcite_fab};
@@ -1,5 +1,5 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{s(a.next(t))}catch(t){r(t)}}function l(t){try{s(a["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):n(t.value).then(o,l)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(e){return s([t,e])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(t,i,e,a){function n(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function o(t){try{c(a.next(t))}catch(t){r(t)}}function l(t){try{c(a["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):n(t.value).then(o,l)}c((a=a.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(i){return c([t,i])}}function c(o){if(a)throw new TypeError("Generator is already executing.");while(e)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){e.label=o[1];break}if(o[0]===6&&e.label<r[1]){e.label=r[1];r=o;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(o);break}if(r[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];n=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-9de00868.js";import{f as focusElement}from"./dom-f24e866c.js";import{d as debounce}from"./debounce-79648d42.js";import{f as forIn}from"./forIn-48d8fb84.js";import"./guid-196bd5ea.js";var CSS={container:"container",searchIcon:"search-icon",clearButton:"clear-button"};var TEXT={filterLabel:"Filter",clear:"Clear filter"};var ICONS={search:"search",close:"x"};var calciteFilterCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;width:100%}.container{display:-ms-flexbox;display:flex;width:100%;padding:0.5rem}label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden;position:relative;width:100%;margin-left:0.25rem;margin-right:0.25rem;margin-top:0;margin-bottom:0}input[type=text]{background-color:transparent;border-style:none;font-family:inherit;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size--2);line-height:1rem;margin-bottom:0.25rem;width:100%;padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.25rem;padding-left:1.5rem;-webkit-transition:padding 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, box-shadow 150ms ease-in-out;transition:padding 150ms ease-in-out, box-shadow 150ms ease-in-out, -webkit-box-shadow 150ms ease-in-out}input[type=text]::-ms-clear{display:none}calcite-input{width:100%}.search-icon{display:-ms-flexbox;display:flex;position:absolute;color:var(--calcite-ui-text-2);inset-inline-start:0;-webkit-transition:left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out;transition:left 150ms ease-in-out, right 150ms ease-in-out, opacity 150ms ease-in-out}input[type=text]:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{color:var(--calcite-ui-text-2);background-color:transparent;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.clear-button:hover,.clear-button:focus{color:var(--calcite-ui-text-1)}";var filterDebounceInMs=250;var CalciteFilter=function(){function t(t){var e=this;registerInstance(this,t);this.calciteFilterChange=createEvent(this,"calciteFilterChange",7);this.disabled=false;this.filteredItems=[];this.filter=debounce((function(t){var i=new RegExp(t,"i");if(e.items.length===0){e.updateFiltered([]);return}var a=function(t,e){var i=false;forIn(t,(function(t){if(typeof t==="function"){return}if(Array.isArray(t)||typeof t==="object"&&t!==null){if(a(t,e)){i=true}}else if(e.test(t)){i=true}}));return i};var n=e.items.filter((function(t){return a(t,i)}));e.updateFiltered(n)}),filterDebounceInMs);this.inputHandler=function(t){var i=t.target;e.value=i.value};this.keyDownHandler=function(t){var i=t.key;if(i==="Escape"){e.clear()}};this.clear=function(){e.value="";e.setFocus()}}t.prototype.watchItemsHandler=function(){this.filter(this.value)};t.prototype.valueHandler=function(t){this.filter(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.textInput);return[2]}))}))};t.prototype.updateFiltered=function(t){this.filteredItems.length=0;this.filteredItems=this.filteredItems.concat(t);this.calciteFilterChange.emit()};t.prototype.render=function(){var t=this;var e=this.disabled;return h(Fragment,null,e?h("calcite-scrim",null):null,h("div",{class:CSS.container},h("label",null,h("calcite-input",{"aria-label":this.intlLabel||TEXT.filterLabel,disabled:this.disabled,icon:ICONS.search,onCalciteInputInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,ref:function(e){t.textInput=e},type:"text",value:this.value})),this.value?h("button",{"aria-label":this.intlClear||TEXT.clear,class:CSS.clearButton,onClick:this.clear},h("calcite-icon",{icon:ICONS.close})):null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{items:["watchItemsHandler"],value:["valueHandler"]}},enumerable:false,configurable:true});return t}();CalciteFilter.style=calciteFilterCss;export{CalciteFilter as calcite_filter};
5
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-c4b90cce.js";import{f as focusElement}from"./dom-e7fa77b9.js";import{d as debounce}from"./debounce-79648d42.js";import{f as forIn}from"./forIn-48d8fb84.js";import"./guid-196bd5ea.js";var CSS={container:"container",searchIcon:"search-icon",clearButton:"clear-button"};var TEXT={filterLabel:"Filter",clear:"Clear filter"};var ICONS={search:"search",close:"x"};var calciteFilterCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;width:100%}.container{display:-ms-flexbox;display:flex;width:100%;padding:0.5rem}label{position:relative;margin-left:0.25rem;margin-right:0.25rem;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;overflow:hidden}input[type=text]{margin-bottom:0.25rem;width:100%;border-style:none;background-color:transparent;padding-top:0.25rem;padding-bottom:0.25rem;padding-right:0.25rem;padding-left:1.5rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);-webkit-transition:padding var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing);transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing), -webkit-box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{width:100%}.search-icon{position:absolute;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-2);inset-inline-start:0;-webkit-transition:left var(--calcite-animation-timing), right var(--calcite-animation-timing), opacity var(--calcite-animation-timing);transition:left var(--calcite-animation-timing), right var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-ui-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-ui-text-1)}";var filterDebounceInMs=250;var CalciteFilter=function(){function t(t){var i=this;registerInstance(this,t);this.calciteFilterChange=createEvent(this,"calciteFilterChange",7);this.disabled=false;this.filteredItems=[];this.filter=debounce((function(t){var e=new RegExp(t,"i");if(i.items.length===0){i.updateFiltered([]);return}var a=function(t,i){var e=false;forIn(t,(function(t){if(typeof t==="function"){return}if(Array.isArray(t)||typeof t==="object"&&t!==null){if(a(t,i)){e=true}}else if(i.test(t)){e=true}}));return e};var n=i.items.filter((function(t){return a(t,e)}));i.updateFiltered(n)}),filterDebounceInMs);this.inputHandler=function(t){var e=t.target;i.value=e.value};this.keyDownHandler=function(t){var e=t.key;if(e==="Escape"){i.clear()}};this.clear=function(){i.value="";i.setFocus()}}t.prototype.watchItemsHandler=function(){this.filter(this.value)};t.prototype.valueHandler=function(t){this.filter(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.textInput);return[2]}))}))};t.prototype.updateFiltered=function(t){this.filteredItems.length=0;this.filteredItems=this.filteredItems.concat(t);this.calciteFilterChange.emit()};t.prototype.render=function(){var t=this;var i=this.disabled;return h(Fragment,null,i?h("calcite-scrim",null):null,h("div",{class:CSS.container},h("label",null,h("calcite-input",{"aria-label":this.intlLabel||TEXT.filterLabel,disabled:this.disabled,icon:ICONS.search,onCalciteInputInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,ref:function(i){t.textInput=i},type:"text",value:this.value})),this.value?h("button",{"aria-label":this.intlClear||TEXT.clear,class:CSS.clearButton,onClick:this.clear},h("calcite-icon",{icon:ICONS.close})):null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{items:["watchItemsHandler"],value:["valueHandler"]}},enumerable:false,configurable:true});return t}();CalciteFilter.style=calciteFilterCss;export{CalciteFilter as calcite_filter};
@@ -1,5 +1,5 @@
1
- var __awaiter=this&&this.__awaiter||function(t,a,e,n){function r(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,i){function o(t){try{s(n.next(t))}catch(t){i(t)}}function l(t){try{s(n["throw"](t))}catch(t){i(t)}}function s(t){t.done?e(t.value):r(t.value).then(o,l)}s((n=n.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(a){return s([t,a])}}function s(o){if(n)throw new TypeError("Generator is already executing.");while(e)try{if(n=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){e.label=o[1];break}if(o[0]===6&&e.label<i[1]){e.label=i[1];i=o;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(o);break}if(i[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(t,a,e,n){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function l(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):i(t.value).then(o,l)}c((n=n.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(a){return c([t,a])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(e)try{if(n=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){e.label=o[1];break}if(o[0]===6&&e.label<r[1]){e.label=r[1];r=o;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(o);break}if(r[2])e.ops.pop();e.trys.pop();continue}o=a.call(t,e)}catch(t){o=[6,t];i=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{r as registerInstance,h,g as getElement}from"./index-9de00868.js";import{c as createObserver}from"./observers-8f0bc419.js";var CSS={frame:"frame",frameAdvancing:"frame--advancing",frameRetreating:"frame--retreating"};var calciteFlowCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;width:100%;overflow:hidden;position:relative}:host .frame{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;width:100%;padding:0;margin:0;-ms-flex-direction:column;flex-direction:column;position:relative}:host ::slotted(calcite-panel){height:100%}:host ::slotted(.calcite-match-height:last-child){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host .frame--advancing{-webkit-animation:calcite-frame-advance 150ms ease-in-out;animation:calcite-frame-advance 150ms ease-in-out}:host .frame--retreating{-webkit-animation:calcite-frame-retreat 150ms ease-in-out;animation:calcite-frame-retreat 150ms ease-in-out}@-webkit-keyframes calcite-frame-advance{0%{--bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-advance{0%{--bg-opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@-webkit-keyframes calcite-frame-retreat{0%{--bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--bg-opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--bg-opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}";var CalciteFlow=function(){function t(t){var a=this;registerInstance(this,t);this.panelCount=0;this.flowDirection=null;this.panels=[];this.getFlowDirection=function(t,a){var e=t>1;var n=t&&a>1;if(!n&&!e){return null}return a<t?"retreating":"advancing"};this.updateFlowProps=function(){var t=a.panels;var e=Array.from(a.el.querySelectorAll("calcite-panel"));var n=t.length;var r=e.length;var i=e[r-1];var o=e[r-2];if(r&&i){e.forEach((function(t){t.showBackButton=r>1;t.hidden=t!==i}))}if(o){o.menuOpen=false}a.panels=e;if(n!==r){var l=a.getFlowDirection(n,r);a.panelCount=r;a.flowDirection=l}};this.panelItemMutationObserver=createObserver("mutation",this.updateFlowProps)}t.prototype.back=function(){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(e){t=this.el.querySelector("calcite-panel:last-child");if(!t){return[2]}a=t.beforeBack?t.beforeBack:function(){return Promise.resolve()};return[2,a.call(t).then((function(){t.remove();return t}))]}))}))};t.prototype.connectedCallback=function(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.updateFlowProps()};t.prototype.disconnectedCallback=function(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.handleCalcitePanelBackClick=function(){this.back()};t.prototype.render=function(){var t;var a=this,e=a.flowDirection,n=a.panelCount;var r=(t={},t[CSS.frame]=true,t[CSS.frameAdvancing]=e==="advancing",t[CSS.frameRetreating]=e==="retreating",t);return h("div",{class:r,key:n},h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteFlow.style=calciteFlowCss;export{CalciteFlow as calcite_flow};
5
+ */import{r as registerInstance,h,g as getElement}from"./index-c4b90cce.js";import{c as createObserver}from"./observers-46118290.js";var CSS={frame:"frame",frameAdvancing:"frame--advancing",frameRetreating:"frame--retreating"};var calciteFlowCss="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;overflow:hidden}:host .frame{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;padding:0px}:host ::slotted(calcite-panel){height:100%}:host ::slotted(.calcite-match-height:last-child){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}:host .frame--advancing{-webkit-animation:calcite-frame-advance var(--calcite-animation-timing);animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{-webkit-animation:calcite-frame-retreat var(--calcite-animation-timing);animation:calcite-frame-retreat var(--calcite-animation-timing)}@-webkit-keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@-webkit-keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5}0%{-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1}100%{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}";var CalciteFlow=function(){function t(t){var a=this;registerInstance(this,t);this.panelCount=0;this.flowDirection=null;this.panels=[];this.getFlowDirection=function(t,a){var e=t>1;var n=t&&a>1;if(!n&&!e){return null}return a<t?"retreating":"advancing"};this.updateFlowProps=function(){var t=a.panels;var e=Array.from(a.el.querySelectorAll("calcite-panel"));var n=t.length;var i=e.length;var r=e[i-1];var o=e[i-2];if(i&&r){e.forEach((function(t){t.showBackButton=i>1;t.hidden=t!==r}))}if(o){o.menuOpen=false}a.panels=e;if(n!==i){var l=a.getFlowDirection(n,i);a.panelCount=i;a.flowDirection=l}};this.panelItemMutationObserver=createObserver("mutation",this.updateFlowProps)}t.prototype.back=function(){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(e){t=this.el.querySelector("calcite-panel:last-child");if(!t){return[2]}a=t.beforeBack?t.beforeBack:function(){return Promise.resolve()};return[2,a.call(t).then((function(){t.remove();return t}))]}))}))};t.prototype.connectedCallback=function(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true});this.updateFlowProps()};t.prototype.disconnectedCallback=function(){var t;(t=this.panelItemMutationObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.handleCalcitePanelBackClick=function(){this.back()};t.prototype.render=function(){var t;var a=this,e=a.flowDirection,n=a.panelCount;var i=(t={},t[CSS.frame]=true,t[CSS.frameAdvancing]=e==="advancing",t[CSS.frameRetreating]=e==="retreating",t);return h("div",{class:i,key:n},h("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();CalciteFlow.style=calciteFlowCss;export{CalciteFlow as calcite_flow};