@esri/calcite-components 1.0.0-next.359 → 1.0.0-next.362

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 (307) hide show
  1. package/dist/calcite/assets/calcite-date-picker/nls/bg.json +31 -0
  2. package/dist/calcite/calcite.esm.js +1 -1
  3. package/dist/calcite/{p-84738edb.system.entry.js → p-02589ad3.system.entry.js} +1 -1
  4. package/dist/calcite/{p-3e8cf990.entry.js → p-05dc6806.entry.js} +1 -1
  5. package/dist/calcite/{p-e62edb4d.system.entry.js → p-088a096d.system.entry.js} +1 -1
  6. package/dist/calcite/{p-481366ac.entry.js → p-0af820bf.entry.js} +1 -1
  7. package/dist/calcite/{p-019c8036.system.entry.js → p-0b0ce9b2.system.entry.js} +1 -1
  8. package/dist/calcite/{p-6dbcd698.system.entry.js → p-0cf878ed.system.entry.js} +1 -1
  9. package/dist/calcite/p-10f1a096.system.entry.js +5 -0
  10. package/dist/calcite/{p-d00fbd1e.entry.js → p-132d55c2.entry.js} +1 -1
  11. package/dist/calcite/{p-1ae01548.system.js → p-14ff4cbd.system.js} +1 -1
  12. package/dist/calcite/{p-f63b9411.entry.js → p-16cfe8e8.entry.js} +1 -1
  13. package/dist/calcite/p-1894562d.system.entry.js +5 -0
  14. package/dist/calcite/{p-ad81283a.entry.js → p-1a5dae4a.entry.js} +1 -1
  15. package/dist/calcite/{p-0b187e6a.system.entry.js → p-1b3a66ec.system.entry.js} +1 -1
  16. package/dist/calcite/{p-082c3059.system.entry.js → p-1d7a9909.system.entry.js} +1 -1
  17. package/dist/calcite/{p-770c1d6b.entry.js → p-21f26f77.entry.js} +1 -1
  18. package/dist/calcite/{p-a88d8075.entry.js → p-253efee4.entry.js} +1 -1
  19. package/dist/calcite/{p-d5b221b1.entry.js → p-2618de8a.entry.js} +1 -1
  20. package/dist/calcite/{p-b55fa7bc.entry.js → p-273cd5ab.entry.js} +1 -1
  21. package/dist/calcite/{p-55e6b0b2.entry.js → p-28adfebc.entry.js} +1 -1
  22. package/dist/calcite/{p-26755e82.system.js → p-28dea60a.system.js} +1 -1
  23. package/dist/calcite/{p-1d26d522.system.entry.js → p-2a8938c7.system.entry.js} +1 -1
  24. package/dist/calcite/p-2b48aa8c.entry.js +5 -0
  25. package/dist/calcite/{p-e5130ebf.system.entry.js → p-2c954eaa.system.entry.js} +1 -1
  26. package/dist/calcite/{p-ef6f8370.entry.js → p-325fcd0d.entry.js} +1 -1
  27. package/dist/calcite/p-32f6f7df.entry.js +5 -0
  28. package/dist/calcite/{p-4f9b0b0f.js → p-32f7eb32.js} +1 -1
  29. package/dist/calcite/{p-f8c99ef3.system.entry.js → p-37bddb73.system.entry.js} +1 -1
  30. package/dist/calcite/{p-475b5015.entry.js → p-38e64c6b.entry.js} +1 -1
  31. package/dist/calcite/{p-07284a52.system.js → p-3a20f93d.system.js} +1 -1
  32. package/dist/calcite/{p-ac234622.system.entry.js → p-3ab992ff.system.entry.js} +1 -1
  33. package/dist/calcite/{p-74365957.system.entry.js → p-3b73b785.system.entry.js} +1 -1
  34. package/dist/calcite/{p-15a38242.system.entry.js → p-3b8f5ab8.system.entry.js} +1 -1
  35. package/dist/calcite/{p-26481e18.js → p-3d4c34e5.js} +1 -1
  36. package/dist/calcite/{p-bccf787f.entry.js → p-3e9e4992.entry.js} +1 -1
  37. package/dist/calcite/p-40bb088d.entry.js +5 -0
  38. package/dist/calcite/{p-12c57970.js → p-41894582.js} +1 -1
  39. package/dist/calcite/{p-bb4dcd31.js → p-41e2198b.js} +1 -1
  40. package/dist/calcite/{p-3baf4001.system.entry.js → p-436d9f0e.system.entry.js} +1 -1
  41. package/dist/calcite/{p-5dcd2088.system.entry.js → p-45bfe5bf.system.entry.js} +1 -1
  42. package/dist/calcite/{p-b63dfa63.entry.js → p-4659df78.entry.js} +1 -1
  43. package/dist/calcite/{p-6cd93563.entry.js → p-46b63d75.entry.js} +1 -1
  44. package/dist/calcite/{p-a57bd5e6.entry.js → p-4d22b788.entry.js} +1 -1
  45. package/dist/calcite/{p-e7103edc.entry.js → p-51550014.entry.js} +1 -1
  46. package/dist/calcite/{p-92ad7d95.entry.js → p-51a85436.entry.js} +1 -1
  47. package/dist/calcite/{p-cbea8bac.system.js → p-52871e84.system.js} +1 -1
  48. package/dist/calcite/{p-57555baa.system.entry.js → p-54e271c9.system.entry.js} +1 -1
  49. package/dist/calcite/{p-2c278864.entry.js → p-57558d4b.entry.js} +1 -1
  50. package/dist/calcite/{p-5cce1e8b.entry.js → p-59133b9b.entry.js} +1 -1
  51. package/dist/calcite/{p-b5bb4618.system.entry.js → p-5c256f31.system.entry.js} +1 -1
  52. package/dist/calcite/{p-18c9da83.entry.js → p-5df1936f.entry.js} +1 -1
  53. package/dist/calcite/{p-4aa28569.entry.js → p-6515e0a5.entry.js} +1 -1
  54. package/dist/calcite/{p-6e0fd056.entry.js → p-698167ac.entry.js} +1 -1
  55. package/dist/calcite/{p-6173cf08.system.js → p-781ebed0.system.js} +1 -1
  56. package/dist/calcite/{p-c5761666.entry.js → p-799f0655.entry.js} +1 -1
  57. package/dist/calcite/p-7cf09784.system.entry.js +5 -0
  58. package/dist/calcite/{p-b01c3a89.system.entry.js → p-7d355abe.system.entry.js} +1 -1
  59. package/dist/calcite/{p-afa72097.system.entry.js → p-7f32a681.system.entry.js} +1 -1
  60. package/dist/calcite/{p-557f31e6.system.entry.js → p-7f5bd070.system.entry.js} +1 -1
  61. package/dist/calcite/{p-cd54c8d0.system.entry.js → p-8468ddb0.system.entry.js} +1 -1
  62. package/dist/calcite/{p-5f285d1d.entry.js → p-85fb7bc0.entry.js} +1 -1
  63. package/dist/calcite/{p-917e53a2.system.entry.js → p-897fc280.system.entry.js} +1 -1
  64. package/dist/calcite/p-8a237191.system.entry.js +5 -0
  65. package/dist/calcite/{p-a07e9c46.system.entry.js → p-8b145872.system.entry.js} +1 -1
  66. package/dist/calcite/{p-bc00846c.entry.js → p-8d36bc7c.entry.js} +1 -1
  67. package/dist/calcite/{p-805c94b9.entry.js → p-8eafaf3f.entry.js} +1 -1
  68. package/dist/calcite/{p-e8270c76.system.entry.js → p-8ebed170.system.entry.js} +1 -1
  69. package/dist/calcite/{p-7bd71ff0.system.entry.js → p-8f4ea148.system.entry.js} +1 -1
  70. package/dist/calcite/{p-4fee156d.system.entry.js → p-99d29b5c.system.entry.js} +1 -1
  71. package/dist/calcite/p-99d32fc3.system.js +1 -1
  72. package/dist/calcite/p-9b05c3fd.js +5 -0
  73. package/dist/calcite/{p-6fb2082b.entry.js → p-9d81d229.entry.js} +1 -1
  74. package/dist/calcite/{p-d6e8d643.entry.js → p-a0043c61.entry.js} +1 -1
  75. package/dist/calcite/{p-cc63f8f9.entry.js → p-a1f65f6e.entry.js} +1 -1
  76. package/dist/calcite/{p-1509da0f.system.entry.js → p-a4dec1f6.system.entry.js} +1 -1
  77. package/dist/calcite/{p-90f7c357.system.entry.js → p-a9c50960.system.entry.js} +1 -1
  78. package/dist/calcite/{p-f8f128a2.entry.js → p-aaed1677.entry.js} +1 -1
  79. package/dist/calcite/{p-70566b09.system.entry.js → p-ac778725.system.entry.js} +1 -1
  80. package/dist/calcite/{p-9acd0a18.entry.js → p-ac8cf248.entry.js} +1 -1
  81. package/dist/calcite/{p-bfd9f64a.entry.js → p-b4d3f1c1.entry.js} +1 -1
  82. package/dist/calcite/{p-fc3c1e91.entry.js → p-b80ab9ba.entry.js} +1 -1
  83. package/dist/calcite/p-bb401f25.system.js +5 -0
  84. package/dist/calcite/{p-3c14f089.system.entry.js → p-bb9fb183.system.entry.js} +1 -1
  85. package/dist/calcite/{p-2015299a.entry.js → p-bda51610.entry.js} +1 -1
  86. package/dist/calcite/{p-d6bfa9b1.entry.js → p-c0ed9eff.entry.js} +1 -1
  87. package/dist/calcite/{p-d4bafc77.system.js → p-c56f495f.system.js} +1 -1
  88. package/dist/calcite/{p-c3124245.system.entry.js → p-cb9cd28c.system.entry.js} +1 -1
  89. package/dist/calcite/p-d1794edd.entry.js +5 -0
  90. package/dist/calcite/{p-9a0a29a7.system.entry.js → p-d578e568.system.entry.js} +1 -1
  91. package/dist/calcite/{p-94398466.system.entry.js → p-d5d91f34.system.entry.js} +1 -1
  92. package/dist/calcite/{p-6f0c4739.system.entry.js → p-e0fa3b13.system.entry.js} +1 -1
  93. package/dist/calcite/{p-7017ca05.js → p-e1944963.js} +1 -1
  94. package/dist/calcite/{p-765d6b57.system.entry.js → p-e2ebc089.system.entry.js} +1 -1
  95. package/dist/calcite/{p-227da2a5.system.entry.js → p-e564004a.system.entry.js} +1 -1
  96. package/dist/calcite/{p-0ac72794.system.entry.js → p-e606e9ae.system.entry.js} +1 -1
  97. package/dist/calcite/{p-f70f5521.system.entry.js → p-e690993e.system.entry.js} +1 -1
  98. package/dist/calcite/{p-ae224016.system.entry.js → p-e6d14bc5.system.entry.js} +1 -1
  99. package/dist/calcite/{p-83d41684.entry.js → p-eea18662.entry.js} +1 -1
  100. package/dist/calcite/p-ef6b4184.js +5 -0
  101. package/dist/calcite/{p-3c1841bd.entry.js → p-f09810e7.entry.js} +1 -1
  102. package/dist/calcite/{p-0134e87c.system.entry.js → p-f5469b62.system.entry.js} +1 -1
  103. package/dist/calcite/{p-a76aa7d2.system.entry.js → p-f6fc151d.system.entry.js} +1 -1
  104. package/dist/calcite/{p-c077d664.entry.js → p-f73124d0.entry.js} +1 -1
  105. package/dist/calcite/{p-59222393.entry.js → p-f90b2e7f.entry.js} +1 -1
  106. package/dist/calcite/{p-4364e76a.system.js → p-fbcaa23c.system.js} +1 -1
  107. package/dist/calcite/{p-f3b489d9.js → p-fcd62e97.js} +1 -1
  108. package/dist/cjs/{CalciteExpandToggle-38ca208f.js → CalciteExpandToggle-65468585.js} +1 -1
  109. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  110. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  111. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  112. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  113. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  114. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  115. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  116. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  117. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  118. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  119. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  120. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -1
  121. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  122. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +5 -4
  123. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +27 -21
  124. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  125. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  126. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  127. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  129. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -6
  130. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  131. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
  132. package/dist/cjs/calcite-input.cjs.entry.js +4 -4
  133. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  134. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  135. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  136. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  138. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  139. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  140. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-radio-button.cjs.entry.js +4 -4
  142. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
  143. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  144. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  145. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  147. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  149. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  150. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
  151. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
  152. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  153. package/dist/cjs/calcite.cjs.js +1 -1
  154. package/dist/cjs/{dom-db7722f2.js → dom-0de9fb18.js} +17 -4
  155. package/dist/cjs/{form-ad18d4fc.js → form-4b7c317e.js} +1 -1
  156. package/dist/cjs/{label-4776bb0e.js → label-1bca211b.js} +1 -1
  157. package/dist/cjs/loader.cjs.js +1 -1
  158. package/dist/cjs/{locale-b9b153dd.js → locale-02462821.js} +1 -0
  159. package/dist/cjs/{popper-adfdc032.js → popper-09105f6f.js} +1 -1
  160. package/dist/cjs/{resources-8273cb31.js → resources-405cc2c4.js} +1 -1
  161. package/dist/cjs/{resources-c524c005.js → resources-9f0994fb.js} +1 -1
  162. package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/bg.json +31 -0
  163. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +2 -1
  164. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
  165. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +25 -18
  166. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +38 -1
  167. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +10 -0
  168. package/dist/collection/utils/dom.js +17 -4
  169. package/dist/collection/utils/locale.js +1 -0
  170. package/dist/components/calcite-color-picker-swatch2.js +15 -0
  171. package/dist/components/calcite-date-picker2.js +2 -1
  172. package/dist/components/calcite-dropdown2.js +25 -19
  173. package/dist/components/calcite-input-date-picker.js +6 -1
  174. package/dist/components/calcite-radio-button.js +1 -1
  175. package/dist/components/dom.js +17 -4
  176. package/dist/components/locale.js +1 -0
  177. package/dist/custom-elements/index.js +67 -26
  178. package/dist/esm/{CalciteExpandToggle-1b1bf600.js → CalciteExpandToggle-48b6e955.js} +1 -1
  179. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  180. package/dist/esm/calcite-action-bar.entry.js +2 -2
  181. package/dist/esm/calcite-action-group.entry.js +1 -1
  182. package/dist/esm/calcite-action-menu.entry.js +1 -1
  183. package/dist/esm/calcite-action-pad.entry.js +2 -2
  184. package/dist/esm/calcite-alert.entry.js +1 -1
  185. package/dist/esm/calcite-avatar.entry.js +1 -1
  186. package/dist/esm/calcite-block_2.entry.js +1 -1
  187. package/dist/esm/calcite-button.entry.js +2 -2
  188. package/dist/esm/calcite-checkbox.entry.js +3 -3
  189. package/dist/esm/calcite-chip.entry.js +1 -1
  190. package/dist/esm/calcite-color-picker_3.entry.js +16 -1
  191. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  192. package/dist/esm/calcite-date-picker_4.entry.js +5 -4
  193. package/dist/esm/calcite-dropdown_3.entry.js +27 -21
  194. package/dist/esm/calcite-fab.entry.js +1 -1
  195. package/dist/esm/calcite-filter.entry.js +1 -1
  196. package/dist/esm/calcite-graph_2.entry.js +3 -3
  197. package/dist/esm/calcite-icon.entry.js +1 -1
  198. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  199. package/dist/esm/calcite-input-date-picker.entry.js +11 -6
  200. package/dist/esm/calcite-input-message.entry.js +1 -1
  201. package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
  202. package/dist/esm/calcite-input.entry.js +4 -4
  203. package/dist/esm/calcite-link.entry.js +1 -1
  204. package/dist/esm/calcite-list_3.entry.js +1 -1
  205. package/dist/esm/calcite-modal.entry.js +1 -1
  206. package/dist/esm/calcite-notice.entry.js +1 -1
  207. package/dist/esm/calcite-option_3.entry.js +3 -3
  208. package/dist/esm/calcite-panel.entry.js +1 -1
  209. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  210. package/dist/esm/calcite-popover_2.entry.js +2 -2
  211. package/dist/esm/calcite-radio-button.entry.js +4 -4
  212. package/dist/esm/calcite-radio-group_2.entry.js +3 -3
  213. package/dist/esm/calcite-rating.entry.js +3 -3
  214. package/dist/esm/calcite-shell_3.entry.js +1 -1
  215. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  216. package/dist/esm/calcite-switch.entry.js +3 -3
  217. package/dist/esm/calcite-tab_4.entry.js +1 -1
  218. package/dist/esm/calcite-tile.entry.js +1 -1
  219. package/dist/esm/calcite-tip_3.entry.js +1 -1
  220. package/dist/esm/calcite-tooltip_2.entry.js +2 -2
  221. package/dist/esm/calcite-tree_2.entry.js +1 -1
  222. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  223. package/dist/esm/calcite.js +1 -1
  224. package/dist/esm/{dom-e55f9eaf.js → dom-037dc374.js} +17 -4
  225. package/dist/esm/{form-147bc6d7.js → form-72369b73.js} +1 -1
  226. package/dist/esm/{label-240ef148.js → label-712646d2.js} +1 -1
  227. package/dist/esm/loader.js +1 -1
  228. package/dist/esm/{locale-1b48f64f.js → locale-fc850b7c.js} +1 -0
  229. package/dist/esm/{popper-1814b3c1.js → popper-7a7fd3b5.js} +1 -1
  230. package/dist/esm/{resources-a6abee37.js → resources-03c0a433.js} +1 -1
  231. package/dist/esm/{resources-74c807b4.js → resources-90193940.js} +1 -1
  232. package/dist/esm-es5/{CalciteExpandToggle-1b1bf600.js → CalciteExpandToggle-48b6e955.js} +1 -1
  233. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  234. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  235. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  236. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  237. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  238. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  239. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  240. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  241. package/dist/esm-es5/calcite-button.entry.js +1 -1
  242. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  243. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  244. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  245. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  246. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  247. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  248. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  249. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  250. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  251. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  252. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  253. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  254. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  255. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  256. package/dist/esm-es5/calcite-input.entry.js +1 -1
  257. package/dist/esm-es5/calcite-link.entry.js +1 -1
  258. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  259. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  260. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  261. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  262. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  263. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  264. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  265. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  266. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  267. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  268. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  269. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  270. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  271. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  272. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  273. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  274. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  275. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  276. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  277. package/dist/esm-es5/calcite.js +1 -1
  278. package/dist/esm-es5/dom-037dc374.js +5 -0
  279. package/dist/esm-es5/{form-147bc6d7.js → form-72369b73.js} +1 -1
  280. package/dist/esm-es5/{label-240ef148.js → label-712646d2.js} +1 -1
  281. package/dist/esm-es5/loader.js +1 -1
  282. package/dist/esm-es5/locale-fc850b7c.js +5 -0
  283. package/dist/esm-es5/{popper-1814b3c1.js → popper-7a7fd3b5.js} +1 -1
  284. package/dist/esm-es5/{resources-a6abee37.js → resources-03c0a433.js} +1 -1
  285. package/dist/esm-es5/{resources-74c807b4.js → resources-90193940.js} +1 -1
  286. package/dist/extras/docs-json.json +33 -3
  287. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +1 -0
  288. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +9 -0
  289. package/dist/types/components.d.ts +6 -0
  290. package/dist/types/preact.d.ts +2 -1
  291. package/dist/types/utils/dom.d.ts +4 -2
  292. package/hydrate/index.js +66 -26
  293. package/package.json +5 -5
  294. package/readme.md +2 -2
  295. package/dist/calcite/p-2c3bbbb4.system.entry.js +0 -5
  296. package/dist/calcite/p-3366ef60.entry.js +0 -5
  297. package/dist/calcite/p-3f51ac4b.system.entry.js +0 -5
  298. package/dist/calcite/p-5d9fe852.entry.js +0 -5
  299. package/dist/calcite/p-634115dd.entry.js +0 -5
  300. package/dist/calcite/p-748c198c.system.entry.js +0 -5
  301. package/dist/calcite/p-c13560e5.system.entry.js +0 -5
  302. package/dist/calcite/p-d8653ba3.entry.js +0 -5
  303. package/dist/calcite/p-f3d02833.js +0 -5
  304. package/dist/calcite/p-f87c1273.js +0 -5
  305. package/dist/calcite/p-fcde21ce.system.js +0 -5
  306. package/dist/esm-es5/dom-e55f9eaf.js +0 -5
  307. package/dist/esm-es5/locale-1b48f64f.js +0 -5
package/hydrate/index.js CHANGED
@@ -5798,10 +5798,17 @@ async function focusElement(el) {
5798
5798
  }
5799
5799
  return isCalciteFocusable(el) ? el.setFocus() : el.focus();
5800
5800
  }
5801
+ const defaultSlotSelector = "> :not([slot])";
5801
5802
  function getSlotted(element, slotName, options) {
5802
- const slotSelector = Array.isArray(slotName)
5803
- ? slotName.map((name) => `[slot="${name}"]`).join(",")
5804
- : `[slot="${slotName}"]`;
5803
+ if (!Array.isArray(slotName) && typeof slotName !== "string") {
5804
+ options = slotName;
5805
+ slotName = null;
5806
+ }
5807
+ const slotSelector = slotName
5808
+ ? Array.isArray(slotName)
5809
+ ? slotName.map((name) => `[slot="${name}"]`).join(",")
5810
+ : `[slot="${slotName}"]`
5811
+ : defaultSlotSelector;
5805
5812
  if (options === null || options === void 0 ? void 0 : options.all) {
5806
5813
  return queryMultiple(element, slotSelector, options);
5807
5814
  }
@@ -5810,6 +5817,9 @@ function getSlotted(element, slotName, options) {
5810
5817
  function queryMultiple(element, slotSelector, options) {
5811
5818
  let matches = Array.from(element.querySelectorAll(slotSelector));
5812
5819
  matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
5820
+ if (slotSelector === defaultSlotSelector) {
5821
+ matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
5822
+ }
5813
5823
  const selector = options === null || options === void 0 ? void 0 : options.selector;
5814
5824
  return selector
5815
5825
  ? matches
@@ -5820,9 +5830,12 @@ function queryMultiple(element, slotSelector, options) {
5820
5830
  }
5821
5831
  function querySingle(element, slotSelector, options) {
5822
5832
  let match = element.querySelector(slotSelector);
5833
+ if (slotSelector === defaultSlotSelector) {
5834
+ match = (match === null || match === void 0 ? void 0 : match.assignedSlot) ? match : null;
5835
+ }
5823
5836
  match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
5824
5837
  const selector = options === null || options === void 0 ? void 0 : options.selector;
5825
- return selector ? match.querySelector(selector) : match;
5838
+ return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
5826
5839
  }
5827
5840
  function filterDirectChildren(el, selector) {
5828
5841
  return Array.from(el.children).filter((child) => child.matches(selector));
@@ -11736,6 +11749,21 @@ Color.prototype = {
11736
11749
  return colorString.to.hex(this.rgb().round().color);
11737
11750
  },
11738
11751
 
11752
+ hexa(value) {
11753
+ if (arguments.length > 0) {
11754
+ return new Color(value);
11755
+ }
11756
+
11757
+ const rgbArray = this.rgb().round().color;
11758
+ let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
11759
+
11760
+ if (alphaHex.length === 1) {
11761
+ alphaHex = '0' + alphaHex;
11762
+ }
11763
+
11764
+ return colorString.to.hex(rgbArray) + alphaHex;
11765
+ },
11766
+
11739
11767
  rgbNumber() {
11740
11768
  const rgb = this.rgb().color;
11741
11769
  return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
@@ -16469,6 +16497,7 @@ class CalciteDatePicker {
16469
16497
  this.value = date ? dateToISO(date) : "";
16470
16498
  this.valueAsDate = date || null;
16471
16499
  this.activeDate = date || null;
16500
+ this.calciteDatePickerChange.emit(date);
16472
16501
  return;
16473
16502
  }
16474
16503
  if (!this.startAsDate || (!this.endAsDate && date < this.startAsDate)) {
@@ -16517,12 +16546,12 @@ class CalciteDatePicker {
16517
16546
  this.endAsDate = this.activeEndDate = this.end = undefined;
16518
16547
  }
16519
16548
  }
16549
+ this.calciteDatePickerChange.emit(date);
16520
16550
  };
16521
16551
  }
16522
16552
  handleValueAsDate(date) {
16523
16553
  if (!Array.isArray(date) && date && date !== this.activeDate) {
16524
16554
  this.activeDate = date;
16525
- this.calciteDatePickerChange.emit(date);
16526
16555
  }
16527
16556
  }
16528
16557
  handleRangeChange() {
@@ -17254,7 +17283,7 @@ const SLOTS$h = {
17254
17283
  dropdownTrigger: "dropdown-trigger"
17255
17284
  };
17256
17285
 
17257
- const 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*/.sc-calcite-dropdown: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*/.calcite-animate.sc-calcite-dropdown{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*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{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*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{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*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);overflow:hidden;max-height:90vh;width:var(--calcite-dropdown-width)}/*!@.calcite-dropdown-trigger-container*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
17286
+ const 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*/.sc-calcite-dropdown: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*/.calcite-animate.sc-calcite-dropdown{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*/.calcite-animate__in.sc-calcite-dropdown{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-dropdown{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-dropdown{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-dropdown{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-dropdown:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-h{display:none}/*!@:host*/.sc-calcite-dropdown-h{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}/*!@:host([disabled])*/[disabled].sc-calcite-dropdown-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host .calcite-dropdown-wrapper*/.sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{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*/.calcite-dropdown-wrapper.sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{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*/.calcite-dropdown-wrapper[data-popper-placement^=bottom].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=top].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=left].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim*/.calcite-dropdown-wrapper[data-popper-placement^=right].sc-calcite-dropdown .calcite-popper-anim.sc-calcite-dropdown{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active*/.calcite-dropdown-wrapper[data-popper-placement].sc-calcite-dropdown .calcite-popper-anim--active.sc-calcite-dropdown{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@:host([active]) .calcite-dropdown-wrapper*/[active].sc-calcite-dropdown-h .calcite-dropdown-wrapper.sc-calcite-dropdown{pointer-events:initial;visibility:visible}/*!@:host .calcite-dropdown-content*/.sc-calcite-dropdown-h .calcite-dropdown-content.sc-calcite-dropdown{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*/.calcite-dropdown-trigger-container.sc-calcite-dropdown{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host([width=s])*/[width=s].sc-calcite-dropdown-h{--calcite-dropdown-width:12rem}/*!@:host([width=m])*/[width=m].sc-calcite-dropdown-h{--calcite-dropdown-width:14rem}/*!@:host([width=l])*/[width=l].sc-calcite-dropdown-h{--calcite-dropdown-width:16rem}";
17258
17287
 
17259
17288
  /**
17260
17289
  * @slot - A slot for adding `calcite-dropdown-group`s or `calcite-dropdown-item`s.
@@ -17312,6 +17341,7 @@ class CalciteDropdown {
17312
17341
  this.items = [];
17313
17342
  this.activeTransitionProp = "visibility";
17314
17343
  this.mutationObserver = createObserver();
17344
+ this.resizeObserver = createObserver();
17315
17345
  //--------------------------------------------------------------------------
17316
17346
  //
17317
17347
  // Private Methods
@@ -17324,13 +17354,15 @@ class CalciteDropdown {
17324
17354
  this.reposition();
17325
17355
  };
17326
17356
  this.setMaxScrollerHeight = () => {
17327
- const { scrollerEl } = this;
17328
- if (scrollerEl) {
17329
- const maxScrollerHeight = this.getMaxScrollerHeight();
17330
- scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
17357
+ const { active, scrollerEl } = this;
17358
+ if (!scrollerEl || !active) {
17359
+ return;
17331
17360
  }
17361
+ const maxScrollerHeight = this.getMaxScrollerHeight();
17362
+ scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
17332
17363
  };
17333
17364
  this.setScrollerEl = (scrollerEl) => {
17365
+ this.resizeObserver.observe(scrollerEl);
17334
17366
  this.scrollerEl = scrollerEl;
17335
17367
  };
17336
17368
  this.transitionEnd = (event) => {
@@ -17349,19 +17381,21 @@ class CalciteDropdown {
17349
17381
  const key = e.key;
17350
17382
  if (this.triggers.includes(target) ||
17351
17383
  this.triggers.some((trigger) => trigger.contains(target))) {
17352
- if (target.nodeName !== "BUTTON" && target.nodeName !== "CALCITE-BUTTON") {
17353
- switch (key) {
17354
- case " ":
17355
- case "Enter":
17356
- this.openCalciteDropdown();
17357
- break;
17358
- case "Escape":
17359
- this.closeCalciteDropdown();
17360
- break;
17384
+ const ignoredNodeTypes = ["BUTTON", "CALCITE-BUTTON", "CALCITE-ACTION"];
17385
+ if (ignoredNodeTypes.includes(target.nodeName)) {
17386
+ if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
17387
+ this.closeCalciteDropdown();
17361
17388
  }
17389
+ return;
17362
17390
  }
17363
- else if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
17364
- this.closeCalciteDropdown();
17391
+ switch (key) {
17392
+ case " ":
17393
+ case "Enter":
17394
+ this.openCalciteDropdown();
17395
+ break;
17396
+ case "Escape":
17397
+ this.closeCalciteDropdown();
17398
+ break;
17365
17399
  }
17366
17400
  }
17367
17401
  };
@@ -17384,6 +17418,7 @@ class CalciteDropdown {
17384
17418
  }
17385
17419
  maxItemsHandler() {
17386
17420
  this.reposition();
17421
+ this.setMaxScrollerHeight();
17387
17422
  }
17388
17423
  placementHandler() {
17389
17424
  this.reposition();
@@ -17403,8 +17438,9 @@ class CalciteDropdown {
17403
17438
  this.reposition();
17404
17439
  }
17405
17440
  disconnectedCallback() {
17406
- var _a;
17441
+ var _a, _b;
17407
17442
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
17443
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
17408
17444
  this.destroyPopper();
17409
17445
  }
17410
17446
  render() {
@@ -17413,7 +17449,7 @@ class CalciteDropdown {
17413
17449
  ["calcite-dropdown-content"]: true,
17414
17450
  [CSS$D.animation]: true,
17415
17451
  [CSS$D.animationActive]: active
17416
- }, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("slot", null)))));
17452
+ }, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("div", { hidden: !this.active }, hAsync("slot", null))))));
17417
17453
  }
17418
17454
  //--------------------------------------------------------------------------
17419
17455
  //
@@ -17423,7 +17459,6 @@ class CalciteDropdown {
17423
17459
  /** Updates the position of the component. */
17424
17460
  async reposition() {
17425
17461
  const { popper, menuEl, placement } = this;
17426
- this.setMaxScrollerHeight();
17427
17462
  const modifiers = this.getModifiers();
17428
17463
  popper
17429
17464
  ? await updatePopper({
@@ -19380,6 +19415,7 @@ class CalciteInputDatePicker {
19380
19415
  registerInstance(this, hostRef);
19381
19416
  this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
19382
19417
  this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
19418
+ this.calciteInputDatePickerChange = createEvent(this, "calciteInputDatePickerChange", 7);
19383
19419
  this.calciteInputDatePickerOpen = createEvent(this, "calciteInputDatePickerOpen", 7);
19384
19420
  this.calciteInputDatePickerClose = createEvent(this, "calciteInputDatePickerClose", 7);
19385
19421
  //--------------------------------------------------------------------------
@@ -19531,6 +19567,9 @@ class CalciteInputDatePicker {
19531
19567
  // Event Listeners
19532
19568
  //
19533
19569
  //--------------------------------------------------------------------------
19570
+ handleDateOrRangeChange() {
19571
+ this.calciteInputDatePickerChange.emit();
19572
+ }
19534
19573
  calciteDaySelectHandler() {
19535
19574
  if (this.shouldFocusRangeStart() || this.shouldFocusRangeEnd()) {
19536
19575
  return;
@@ -19706,6 +19745,7 @@ class CalciteInputDatePicker {
19706
19745
  }
19707
19746
  if (!this.range) {
19708
19747
  this.value = dateToISO(date);
19748
+ this.calciteDatePickerChange.emit(date);
19709
19749
  return;
19710
19750
  }
19711
19751
  const { focusedInput } = this;
@@ -19841,7 +19881,7 @@ class CalciteInputDatePicker {
19841
19881
  "setFocus": [64],
19842
19882
  "reposition": [64]
19843
19883
  },
19844
- "$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
19884
+ "$listeners$": [[0, "calciteDatePickerChange", "handleDateOrRangeChange"], [0, "calciteDatePickerRangeChange", "handleDateOrRangeChange"], [0, "calciteDaySelect", "calciteDaySelectHandler"]],
19845
19885
  "$lazyBundleId$": "-",
19846
19886
  "$attrsToReflect$": [["disabled", "disabled"], ["active", "active"], ["scale", "scale"], ["range", "range"], ["required", "required"], ["layout", "layout"]]
19847
19887
  }; }
@@ -22979,7 +23019,7 @@ const CSS$f = {
22979
23019
  container: "container"
22980
23020
  };
22981
23021
 
22982
- const calciteRadioButtonCss = "@-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*/.sc-calcite-radio-button: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*/.calcite-animate.sc-calcite-radio-button{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*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}/*!@:host([hovered]) .radio,\n:host(:not([checked])[focused]:not([disabled])) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused]:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([disabled])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}/*!@:host([scale=s])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=s][focused][checked]:not([disabled])) .radio*/[scale=s][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=m][checked]) .radio,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}/*!@:host([scale=m][focused][checked]:not([disabled])) .radio*/[scale=m][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=l][checked]) .radio,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}/*!@:host([scale=l][focused][checked]:not([disabled])) .radio*/[scale=l][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
23022
+ const calciteRadioButtonCss = "@-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*/.sc-calcite-radio-button: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*/.calcite-animate.sc-calcite-radio-button{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*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}/*!@:host([hovered]) .radio,\n:host(:not([checked])[focused]:not([disabled])) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused]:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([disabled])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}/*!@:host([scale=s])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=s][focused][checked]:not([disabled])) .radio*/[scale=s][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=m][checked]) .radio,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}/*!@:host([scale=m][focused][checked]:not([disabled])) .radio*/[scale=m][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}/*!@:host([scale=l][checked]) .radio,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}/*!@:host([scale=l][focused][checked]:not([disabled])) .radio*/[scale=l][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}@media (forced-colors: active){/*!@:host([checked]) .radio::after,\n:host([checked][disabled]) .radio::after*/[checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button::after,[checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button::after{content:\"\";width:1rem;height:1rem;background-color:windowText;display:block}}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
22983
23023
 
22984
23024
  class CalciteRadioButton {
22985
23025
  constructor(hostRef) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.359",
3
+ "version": "1.0.0-next.362",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -62,7 +62,7 @@
62
62
  "@popperjs/core": "2.11.1",
63
63
  "@stencil/core": "2.12.1",
64
64
  "@types/color": "3.0.2",
65
- "color": "4.1.0",
65
+ "color": "4.2.0",
66
66
  "form-request-submit-polyfill": "2.0.0",
67
67
  "lodash-es": "4.17.21",
68
68
  "sortablejs": "1.14.0"
@@ -79,7 +79,7 @@
79
79
  "@stencil/postcss": "2.1.0",
80
80
  "@stencil/sass": "1.5.2",
81
81
  "@stencil/state-tunnel": "^1.0.1",
82
- "@storybook/addon-a11y": "6.4.9",
82
+ "@storybook/addon-a11y": "6.4.10",
83
83
  "@storybook/addon-docs": "6.4.9",
84
84
  "@storybook/addon-knobs": "6.4.0",
85
85
  "@storybook/cli": "6.4.9",
@@ -97,7 +97,7 @@
97
97
  "@types/sortablejs": "1.10.7",
98
98
  "@types/standard-version": "7.0.1",
99
99
  "@types/yargs": "17.0.8",
100
- "@typescript-eslint/eslint-plugin": "5.9.0",
100
+ "@typescript-eslint/eslint-plugin": "5.9.1",
101
101
  "@typescript-eslint/parser": "5.9.0",
102
102
  "@whitespace/storybook-addon-html": "5.0.0",
103
103
  "autoprefixer": "10.4.1",
@@ -134,7 +134,7 @@
134
134
  "shell-quote": "1.7.3",
135
135
  "standard-version": "9.3.2",
136
136
  "stencil-eslint-core": "0.3.0",
137
- "storybook": "6.4.9",
137
+ "storybook": "6.4.10",
138
138
  "storybook-addon-themes": "6.1.0",
139
139
  "storybook-rtl-addon": "0.3.3",
140
140
  "stylelint": "14.2.0",
package/readme.md CHANGED
@@ -17,12 +17,12 @@ The simplest way to set up the components in your project is to add the followin
17
17
  ```html
18
18
  <script
19
19
  type="module"
20
- src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.73/dist/calcite/calcite.esm.js"
20
+ src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.74/dist/calcite/calcite.esm.js"
21
21
  ></script>
22
22
  <link
23
23
  rel="stylesheet"
24
24
  type="text/css"
25
- href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.73/dist/calcite/calcite.css"
25
+ href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.74/dist/calcite/calcite.css"
26
26
  />
27
27
  ```
28
28
 
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function o(t){try{c(i["throw"](t))}catch(t){r(t)}}function c(t){t.done?a(t.value):n(t.value).then(s,o)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(a)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-d4bafc77.system.js","./p-4364e76a.system.js","./p-cbea8bac.system.js","./p-6173cf08.system.js","./p-fcde21ce.system.js","./p-3c34f20d.system.js","./p-07284a52.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,a,i,n,r,s,o,c,l,p,u,h,d,f,m,v,g,y,w,b,D,k;return{setters:[function(t){e=t.r;a=t.c;i=t.h;n=t.H;r=t.g},function(t){s=t.T;o=t.d;c=t.a;l=t.b;p=t.g;u=t.s;h=t.p;d=t.i},function(t){f=t.c;m=t.d;v=t.g},function(t){g=t.c;y=t.d;w=t.H},function(t){b=t.u;D=t.C;k=t.c},function(){},function(){},function(){},function(){}],execute:function(){var x="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);pointer-events:none;visibility:hidden}:host([active]) .menu-container{pointer-events:auto;visibility:visible}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var A="bottom-leading";var I=t("calcite_input_date_picker",function(){function t(t){var i=this;e(this,t);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",7);this.calciteInputDatePickerOpen=a(this,"calciteInputDatePickerOpen",7);this.calciteInputDatePickerClose=a(this,"calciteInputDatePickerClose",7);this.disabled=false;this.active=false;this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.intlYear=s.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.required=false;this.overlayPositioning="absolute";this.proximitySelectionDisabled=false;this.layout="horizontal";this.focusedInput="start";this.activeTransitionProp="opacity";this.transitionEnd=function(t){if(t.propertyName===i.activeTransitionProp){i.active?i.calciteInputDatePickerOpen.emit():i.calciteInputDatePickerClose.emit()}};this.setStartInput=function(t){i.startInput=t};this.setEndInput=function(t){i.endInput=t};this.deactivate=function(){i.active=false};this.keyUpHandler=function(t){if(t.key==="Escape"){i.active=false}};this.inputBlur=function(t){i.blur(t.detail)};this.startInputFocus=function(){i.active=true;i.focusedInput="start"};this.endInputFocus=function(){i.active=true;i.focusedInput="end"};this.inputInput=function(t){i.input(t.detail.value)};this.setMenuEl=function(t){if(t){i.menuEl=t;i.createPopper()}};this.setStartWrapper=function(t){i.startWrapper=t;i.setReferenceEl()};this.setEndWrapper=function(t){i.endWrapper=t;i.setReferenceEl()};this.handleDateChange=function(t){if(i.range){return}i.value=o(t.detail)};this.handleDateRangeChange=function(t){var e,a;if(!i.range||!t.detail){return}var n=t.detail,r=n.startDate,s=n.endDate;i.start=o(r);i.end=o(s);i.value=[i.start,i.end];if(i.shouldFocusRangeEnd()){(e=i.endInput)===null||e===void 0?void 0:e.setFocus()}else if(i.shouldFocusRangeStart()){(a=i.startInput)===null||a===void 0?void 0:a.setFocus()}}}t.prototype.valueHandler=function(t){if(Array.isArray(t)){this.valueAsDate=t.map((function(t){return c(t)}));this.start=t[0];this.end=t[1]}else if(t){this.valueAsDate=c(t);this.start="";this.end=""}else{this.valueAsDate=undefined;this.start=undefined;this.end=undefined}};t.prototype.onMinChanged=function(t){this.minAsDate=c(t)};t.prototype.onMaxChanged=function(t){this.maxAsDate=c(t)};t.prototype.activeHandler=function(){this.reposition()};t.prototype.calciteDaySelectHandler=function(){if(this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()){return}this.active=false};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.startInput)===null||t===void 0?void 0:t.setFocus();return[2]}))}))};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,i,n;return __generator(this,(function(r){switch(r.label){case 0:t=this,e=t.popper,a=t.menuEl;i=this.getModifiers();if(!e)return[3,2];return[4,b({el:a,modifiers:i,placement:A,popper:e})];case 1:n=r.sent();return[3,3];case 2:n=this.createPopper();r.label=3;case 3:n;return[2]}}))}))};t.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(t){return c(t)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=c(this.value);this.start="";this.end=""}if(this.start){this.startAsDate=c(this.start)}if(this.end){this.endAsDate=c(this.end)}if(this.min){this.minAsDate=c(this.min)}if(this.max){this.maxAsDate=c(this.max)}this.createPopper();f(this);g(this)};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadLocaleData()];case 1:t.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};t.prototype.disconnectedCallback=function(){this.destroyPopper();m(this);y(this)};t.prototype.render=function(){var t;var e,a;var r=this.disabled;var s=l(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var o=this.range?l(this.endAsDate,this.minAsDate,this.maxAsDate):null;var c=o?o.toLocaleDateString(this.locale):"";var p=s?s.toLocaleDateString(this.locale):"";return i(n,{onBlur:this.deactivate,onKeyUp:this.keyUpHandler,role:"application"},this.localeData&&i("div",{"aria-expanded":this.active.toString(),class:"input-container",role:"application"},i("div",{class:"input-wrapper",ref:this.setStartWrapper},i("calcite-input",{class:"input "+(this.layout==="vertical"&&this.range?"no-bottom-border":""),disabled:r,icon:"calendar",label:v(this),"number-button-type":"none",onCalciteInputBlur:this.inputBlur,onCalciteInputFocus:this.startInputFocus,onCalciteInputInput:this.inputInput,placeholder:(e=this.localeData)===null||e===void 0?void 0:e.placeholder,ref:this.setStartInput,scale:this.scale,type:"text",value:p})),i("div",{"aria-hidden":(!this.active).toString(),class:"menu-container",ref:this.setMenuEl},i("div",{class:(t={},t["calendar-picker-wrapper"]=true,t["calendar-picker-wrapper--end"]=this.focusedInput==="end",t[D.animation]=true,t[D.animationActive]=this.active,t),onTransitionEnd:this.transitionEnd},i("calcite-date-picker",{activeRange:this.focusedInput,endAsDate:this.endAsDate,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,locale:this.locale,max:this.max,maxAsDate:this.maxAsDate,min:this.min,minAsDate:this.minAsDate,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,startAsDate:this.startAsDate,tabIndex:0,valueAsDate:this.valueAsDate}))),this.range&&this.layout==="horizontal"&&i("div",{class:"horizontal-arrow-container"},i("calcite-icon",{flipRtl:true,icon:"arrow-right",scale:"s"})),this.range&&this.layout==="vertical"&&this.scale!=="s"&&i("div",{class:"vertical-arrow-container"},i("calcite-icon",{icon:"arrow-down",scale:"s"})),this.range&&i("div",{class:"input-wrapper",ref:this.setEndWrapper},i("calcite-input",{class:{input:true,"border-top-color-one":this.layout==="vertical"&&this.range},disabled:r,icon:"calendar","number-button-type":"none",onCalciteInputBlur:this.inputBlur,onCalciteInputFocus:this.endInputFocus,onCalciteInputInput:this.inputInput,placeholder:(a=this.localeData)===null||a===void 0?void 0:a.placeholder,ref:this.setEndInput,scale:this.scale,type:"text",value:c}))),i(w,{component:this}))};t.prototype.setReferenceEl=function(){var t=this,e=t.focusedInput,a=t.layout,i=t.endWrapper,n=t.startWrapper;this.referenceEl=e==="end"||a==="vertical"?i||n:n||i;this.createPopper()};t.prototype.onLabelClick=function(){this.setFocus()};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]};return[t]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,a=t.referenceEl,i=t.overlayPositioning;if(!e||!a){return}var n=this.getModifiers();this.popper=k({el:e,modifiers:n,overlayPositioning:i,placement:A,referenceEl:a})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.startWatcher=function(t){this.startAsDate=c(t)};t.prototype.endWatcher=function(t){this.endAsDate=c(t)};t.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(a){switch(a.label){case 0:t=this.locale;e=this;return[4,p(t)];case 1:e.localeData=a.sent();return[2]}}))}))};t.prototype.clearCurrentValue=function(){if(!this.range){this.value="";return}var t=this.focusedInput;if(t==="start"){this.value=Array.isArray(this.value)?["",this.value[1]||""]:[""];this.start=undefined}else if(t==="end"){this.value=Array.isArray(this.value)?[this.value[0]||"",""]:["",""];this.end=undefined}};t.prototype.input=function(t){var e=this.getDateFromInput(t);if(!e){this.clearCurrentValue();return}if(!this.range){this.value=o(e);return}var a=this.focusedInput;if(a==="start"){if(!this.startAsDate||!u(e,this.startAsDate)){var i=o(e);this.value=Array.isArray(this.value)?[i,this.value[1]||""]:[i];this.start=i;this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}}else if(a==="end"){if(!this.endAsDate||!u(e,this.endAsDate)){var n=o(e);this.value=Array.isArray(this.value)?[this.value[0]||"",n]:["",n];this.end=n;this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}}};t.prototype.blur=function(t){var e=this,a=e.locale,i=e.focusedInput,n=e.endAsDate,r=e.range,s=e.startAsDate,o=e.valueAsDate;var c=this.getDateFromInput(t.value);if(!c){if(!r&&o){t.value=Array.isArray(o)?o[i==="end"?1:0].toLocaleDateString(a):o.toLocaleDateString(a)}else if(i==="start"&&s){t.value=s.toLocaleDateString(a)}else if(i==="end"&&n){t.value=n.toLocaleDateString(a)}}};t.prototype.shouldFocusRangeStart=function(){return!!(this.endAsDate&&!this.startAsDate&&this.focusedInput==="end"&&this.startInput)};t.prototype.shouldFocusRangeEnd=function(){return!!(this.startAsDate&&!this.endAsDate&&this.focusedInput==="start"&&this.endInput)};t.prototype.getDateFromInput=function(t){if(!this.localeData){return false}var e=this.localeData.separator;var a=h(t,this.localeData),i=a.day,n=a.month,r=a.year;var s=i>0;var o=n>-1;var c=new Date(r,n,i);c.setFullYear(r);var l=!isNaN(c.getTime());var p=t.split(e).filter((function(t){return t})).length>2;var u=r.toString().length>0;if(s&&o&&l&&p&&u&&d(c,this.min,this.max)){return c}return false};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueHandler"],min:["onMinChanged"],max:["onMaxChanged"],active:["activeHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return t}());I.style=x}}}));
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,c as i,h as e,H as n,g as a}from"./p-2e29554c.js";import{f as r,d as o}from"./p-f87c1273.js";import{C as s,u as c,c as l}from"./p-12c57970.js";import{c as m}from"./p-e4acb5a8.js";import"./p-8a63221d.js";let d=class{constructor(e){t(this,e),this.calciteDropdownSelect=i(this,"calciteDropdownSelect",7),this.calciteDropdownOpen=i(this,"calciteDropdownOpen",7),this.calciteDropdownClose=i(this,"calciteDropdownClose",7),this.active=!1,this.disableCloseOnSelect=!1,this.disabled=!1,this.maxItems=0,this.overlayPositioning="absolute",this.placement="bottom-leading",this.scale="m",this.selectedItems=[],this.type="click",this.width="m",this.items=[],this.activeTransitionProp="visibility",this.mutationObserver=m("mutation",(()=>this.updateItems())),this.updateItems=()=>{this.updateSelectedItems(),this.triggers=Array.from(this.el.querySelectorAll("[slot=dropdown-trigger]")),this.items=Array.from(this.el.querySelectorAll("calcite-dropdown-item")),this.reposition()},this.setMaxScrollerHeight=()=>{const{scrollerEl:t}=this;if(t){const i=this.getMaxScrollerHeight();t.style.maxHeight=i>0?`${i}px`:""}},this.setScrollerEl=t=>{this.scrollerEl=t},this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.active?this.calciteDropdownOpen.emit():this.calciteDropdownClose.emit())},this.setReferenceEl=t=>{this.referenceEl=t},this.setMenuEl=t=>{this.menuEl=t},this.keyDownHandler=t=>{const i=t.target,e=t.key;if(this.triggers.includes(i)||this.triggers.some((t=>t.contains(i))))if("BUTTON"!==i.nodeName&&"CALCITE-BUTTON"!==i.nodeName)switch(e){case" ":case"Enter":this.openCalciteDropdown();break;case"Escape":this.closeCalciteDropdown()}else this.active&&("Escape"===e||t.shiftKey&&"Tab"===e)&&this.closeCalciteDropdown()},this.focusOnFirstActiveOrFirstItem=()=>{this.getFocusableElement(this.items.find((t=>t.active))||this.items[0])},this.toggleOpenEnd=()=>{this.focusOnFirstActiveOrFirstItem(),this.el.removeEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.openCalciteDropdown=()=>{this.active=!this.active,this.active&&this.el.addEventListener("calciteDropdownOpen",this.toggleOpenEnd)}}activeHandler(){this.reposition()}maxItemsHandler(){this.reposition()}placementHandler(){this.reposition()}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.createPopper(),this.updateItems()}componentDidLoad(){this.reposition()}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.destroyPopper()}render(){const{active:t}=this;return e(n,{tabIndex:this.disabled?-1:null},e("div",{class:"calcite-dropdown-trigger-container",onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},e("slot",{"aria-expanded":t.toString(),"aria-haspopup":"true",name:"dropdown-trigger"})),e("div",{"aria-hidden":(!t).toString(),class:"calcite-dropdown-wrapper",ref:this.setMenuEl},e("div",{class:{"calcite-dropdown-content":!0,[s.animation]:!0,[s.animationActive]:t},onTransitionEnd:this.transitionEnd,ref:this.setScrollerEl},e("slot",null))))}async reposition(){const{popper:t,menuEl:i,placement:e}=this;this.setMaxScrollerHeight();const n=this.getModifiers();t?await c({el:i,modifiers:n,placement:e,popper:t}):this.createPopper()}closeCalciteDropdownOnClick(t){this.active&&!t.composedPath().includes(this.el)&&this.closeCalciteDropdown()}closeCalciteDropdownOnEvent(){this.closeCalciteDropdown()}closeCalciteDropdownOnOpenEvent(t){t.composedPath().includes(this.el)||(this.active=!1)}mouseEnterHandler(){"hover"===this.type&&this.openCalciteDropdown()}mouseLeaveHandler(){"hover"===this.type&&this.closeCalciteDropdown()}calciteDropdownItemKeyEvent(t){const{keyboardEvent:i}=t.detail,e=i.target,n="A"!==e.nodeName?e:e.parentNode,a=0===this.itemIndex(n),r=this.itemIndex(n)===this.items.length-1;switch(i.key){case"Tab":r&&!i.shiftKey||a&&i.shiftKey?this.closeCalciteDropdown():i.shiftKey?this.focusPrevItem(n):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()}t.stopPropagation()}handleItemSelect(t){this.updateSelectedItems(),t.stopPropagation(),this.calciteDropdownSelect.emit(),this.disableCloseOnSelect&&"none"!==t.detail.requestedDropdownGroup.selectionMode||this.closeCalciteDropdown()}getModifiers(){return[{name:"flip",enabled:!0,options:{fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]}}]}createPopper(){this.destroyPopper();const{menuEl:t,referenceEl:i,placement:e,overlayPositioning:n}=this,a=this.getModifiers();this.popper=l({el:t,modifiers:a,overlayPositioning:n,placement:e,referenceEl:i})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}updateSelectedItems(){const t=Array.from(this.el.querySelectorAll("calcite-dropdown-item"));this.selectedItems=t.filter((t=>t.active))}getMaxScrollerHeight(){const t=Array.from(this.el.querySelectorAll("calcite-dropdown-group")),{maxItems:i}=this;let e,n=0,a=0;return t.forEach((t=>{i>0&&n<i&&Array.from(t.children).forEach(((t,r)=>{0===r&&(isNaN(e)&&(e=t.offsetTop),a+=e),n<i&&(a+=t.offsetHeight,n+=1)}))})),a}closeCalciteDropdown(){this.active=!1,r(this.triggers[0])}focusFirstItem(){this.getFocusableElement(this.items[0])}focusLastItem(){this.getFocusableElement(this.items[this.items.length-1])}focusNextItem(t){const i=this.itemIndex(t);this.getFocusableElement(this.items[i+1]||this.items[0])}focusPrevItem(t){const i=this.itemIndex(t);this.getFocusableElement(this.items[i-1]||this.items[this.items.length-1])}itemIndex(t){return this.items.indexOf(t)}getFocusableElement(t){if(!t)return;const i=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;r(i)}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],maxItems:["maxItemsHandler"],placement:["placementHandler"]}}};d.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-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{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);overflow:hidden;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}";let p=class{constructor(e){t(this,e),this.calciteDropdownItemChange=i(this,"calciteDropdownItemChange",7),this.selectionMode="single"}componentWillLoad(){this.groupPosition=this.getGroupPosition()}render(){const t=this.scale||o(this.el,"scale","m"),i=this.groupTitle?e("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null,a=this.groupPosition>0?e("div",{class:"dropdown-separator",role:"separator"}):null;return e(n,{role:"menu"},e("div",{class:{container:!0,"container--s":"s"===t,"container--m":"m"===t,"container--l":"l"===t},title:this.groupTitle},a,i,e("slot",null)))}updateActiveItemOnChange(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.calciteDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}get el(){return a(this)}};p.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.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)}";let h=class{constructor(e){t(this,e),this.calciteDropdownItemSelect=i(this,"calciteDropdownItemSelect",7),this.calciteDropdownItemKeyEvent=i(this,"calciteDropdownItemKeyEvent",7),this.calciteDropdownCloseRequest=i(this,"calciteDropdownCloseRequest",7),this.active=!1}async setFocus(){this.el.focus()}connectedCallback(){this.selectionMode=o(this.el,"selection-mode","single"),this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group"),"none"===this.selectionMode&&(this.active=!1)}render(){const t=o(this.el,"scale","m"),i=e("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),a=e("span",{class:"dropdown-item-content"},e("slot",null)),r=e("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"}),s=this.iconStart&&this.iconEnd?[i,a,r]:this.iconStart?[i,e("slot",null)]:this.iconEnd?[a,r]:a,c=this.href?e("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,ref:t=>this.childLink=t,rel:this.rel,target:this.target},s):s,l=this.href?null:"single"===this.selectionMode?"menuitemradio":"multi"===this.selectionMode?"menuitemcheckbox":"menuitem",m="none"!==this.selectionMode?this.active.toString():null;return e(n,{"aria-checked":m,role:l,tabindex:"0"},e("div",{class:{container:!0,"container--link":!!this.href,"container--s":"s"===t,"container--m":"m"===t,"container--l":"l"===t,"container--multi-selection":"multi"===this.selectionMode,"container--single-selection":"single"===this.selectionMode,"container--none-selection":"none"===this.selectionMode}},"none"!==this.selectionMode?e("calcite-icon",{class:"dropdown-item-icon",icon:"multi"===this.selectionMode?"check":"bullet-point",scale:"s"}):null,c))}onClick(){this.emitRequestedItem()}keyDownHandler(t){switch(t.key){case" ":this.emitRequestedItem(),this.href&&(t.preventDefault(),this.childLink.click());break;case"Enter":this.emitRequestedItem(),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})}t.preventDefault()}updateActiveItemOnChange(t){t.composedPath().includes(this.parentDropdownGroupEl)&&(this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.determineActiveItem())}determineActiveItem(){switch(this.selectionMode){case"multi":this.el===this.requestedDropdownItem&&(this.active=!this.active);break;case"single":this.el===this.requestedDropdownItem?this.active=!0:this.requestedDropdownGroup===this.parentDropdownGroupEl&&(this.active=!1);break;case"none":this.active=!1}}emitRequestedItem(){this.calciteDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}get el(){return a(this)}};h.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.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}";export{d as calcite_dropdown,p as calcite_dropdown_group,h as calcite_dropdown_item}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?a(t.value):i(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,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(e){return c([t,e])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(o[0]===6&&a.label<n[1]){a.label=n[1];n=o;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(o);break}if(n[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e){for(var a=0,r=e.length,i=t.length;a<r;a++,i++)t[i]=e[a];return t};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */System.register(["./p-288bc438.system.js","./p-d4bafc77.system.js","./p-07284a52.system.js","./p-34e5baa7.system.js","./p-fcde21ce.system.js","./p-3c34f20d.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,a,r,i,n,o,s,c,l,d,h,u,f,p,g,v,m,w,D,y,b,x,k;return{setters:[function(t){e=t.r;a=t.c;r=t.h;i=t.H;n=t.g;o=t.F},function(t){s=t.T;c=t.c;l=t.d;d=t.a;h=t.b;u=t.g;f=t.H;p=t.s;g=t.i;v=t.l;m=t.e;w=t.n;D=t.f;y=t.h},function(t){b=t.a;x=t.C},function(t){k=t.C},function(){},function(){},function(){}],execute:function(){var A="@-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 R=t("calcite_date_picker",function(){function t(t){var r=this;e(this,t);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",7);this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.intlYear=s.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyUpHandler=function(t){if(t.key==="Escape"){r.reset()}};this.monthHeaderSelectChange=function(t){var e=new Date(t.detail);if(!r.range){r.activeDate=e}else{if(r.activeRange==="end"){r.activeEndDate=e}else{r.activeStartDate=e}r.mostRecentRangeValue=e}};this.monthActiveDateChange=function(t){var e=new Date(t.detail);if(!r.range){r.activeDate=e}else{if(r.activeRange==="end"){r.activeEndDate=e}else{r.activeStartDate=e}r.mostRecentRangeValue=e}};this.monthHoverChange=function(t){if(!r.startAsDate){r.hoverRange=undefined;return}var e=new Date(t.detail);r.hoverRange={focused:r.activeRange||"start",start:r.startAsDate,end:r.endAsDate};if(!r.proximitySelectionDisabled){if(r.endAsDate){var a=c(e,r.startAsDate);var i=c(e,r.endAsDate);if(i>0){r.hoverRange.end=e;r.hoverRange.focused="end"}else if(a<0){r.hoverRange.start=e;r.hoverRange.focused="start"}else if(a>i){r.hoverRange.start=e;r.hoverRange.focused="start"}else{r.hoverRange.end=e;r.hoverRange.focused="end"}}else{if(e<r.startAsDate){r.hoverRange={focused:"start",start:e,end:r.startAsDate}}else{r.hoverRange.end=e;r.hoverRange.focused="end"}}}else{if(!r.endAsDate){if(e<r.startAsDate){r.hoverRange={focused:"start",start:e,end:r.startAsDate}}else{r.hoverRange.end=e;r.hoverRange.focused="end"}}else{r.hoverRange=undefined}}};this.monthMouseOutChange=function(){if(r.hoverRange){r.hoverRange=undefined}};this.reset=function(){var t,e,a,i,n,o;if(!Array.isArray(r.valueAsDate)&&r.valueAsDate&&((t=r.valueAsDate)===null||t===void 0?void 0:t.getTime())!==((e=r.activeDate)===null||e===void 0?void 0:e.getTime())){r.activeDate=new Date(r.valueAsDate)}if(r.startAsDate&&((a=r.startAsDate)===null||a===void 0?void 0:a.getTime())!==((i=r.activeStartDate)===null||i===void 0?void 0:i.getTime())){r.activeStartDate=new Date(r.startAsDate)}if(r.endAsDate&&((n=r.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=r.activeEndDate)===null||o===void 0?void 0:o.getTime())){r.activeEndDate=new Date(r.endAsDate)}};this.monthDateChange=function(t){var e=new Date(t.detail);if(!r.range){r.value=e?l(e):"";r.valueAsDate=e||null;r.activeDate=e||null;return}if(!r.startAsDate||!r.endAsDate&&e<r.startAsDate){if(r.startAsDate){r.setEndDate(new Date(r.startAsDate))}if(r.activeRange=="end"){r.setEndDate(e)}else{r.setStartDate(e)}}else if(!r.endAsDate){r.setEndDate(e)}else{if(!r.proximitySelectionDisabled){if(r.activeRange){if(r.activeRange=="end"){r.setEndDate(e)}else{r.setStartDate(e)}}else{var a=c(e,r.startAsDate);var i=c(e,r.endAsDate);if(i===0||a<0){r.setStartDate(e)}else if(a===0||i<0){r.setEndDate(e)}else if(a<i){r.setStartDate(e)}else{r.setEndDate(e)}}}else{r.setStartDate(e);r.endAsDate=r.activeEndDate=r.end=undefined}}}}t.prototype.handleValueAsDate=function(t){if(!Array.isArray(t)&&t&&t!==this.activeDate){this.activeDate=t;this.calciteDatePickerChange.emit(t)}};t.prototype.handleRangeChange=function(){var t=this,e=t.startAsDate,a=t.endAsDate;this.activeEndDate=a;this.activeStartDate=e};t.prototype.onMinChanged=function(t){this.minAsDate=d(t)};t.prototype.onMaxChanged=function(t){this.maxAsDate=d(t)};t.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(t){return d(t)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=d(this.value)}if(this.start){this.setStartAsDate(d(this.start))}if(this.end){this.setEndAsDate(d(this.end))}if(this.min){this.minAsDate=d(this.min)}if(this.max){this.maxAsDate=d(this.max)}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadLocaleData()];case 1:t.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};t.prototype.render=function(){var t;var e=h(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(e,this.minAsDate,this.maxAsDate):this.getActiveDate(e,this.minAsDate,this.maxAsDate);var n=a;var o=this.range?h(this.endAsDate,this.minAsDate,this.maxAsDate):null;var s=this.getActiveEndDate(o,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((t=this.hoverRange)===null||t===void 0?void 0:t.focused)==="end"&&(!this.proximitySelectionDisabled||o))&&s){n=s}if(this.range&&this.mostRecentRangeValue){n=this.mostRecentRangeValue}var c=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:e||this.minAsDate:this.minAsDate;var l=this.range&&this.activeRange?this.activeRange==="start"?o||this.maxAsDate:this.maxAsDate:this.maxAsDate;return r(i,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(n,l,c,e,o))};t.prototype.valueHandler=function(t){if(Array.isArray(t)){this.valueAsDate=t.map((function(t){return d(t)}));this.start=t[0];this.end=t[1]}else if(t){this.valueAsDate=d(t);this.start="";this.end=""}};t.prototype.startWatcher=function(t){this.setStartAsDate(d(t))};t.prototype.endWatcher=function(t){this.setEndAsDate(d(t))};t.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(a){switch(a.label){case 0:t=this.locale;e=this;return[4,u(t)];case 1:e.localeData=a.sent();return[2]}}))}))};t.prototype.renderCalendar=function(t,e,a,i,n){return this.localeData&&[r("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel||f,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:i||new Date}),r("calcite-date-picker-month",{activeDate:t,endDate:this.range?n:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerHover:this.monthHoverChange,onCalciteDatePickerMouseOut:this.monthMouseOutChange,onCalciteDatePickerSelect:this.monthDateChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:i,startDate:this.range?i:undefined})]};t.prototype.setStartAsDate=function(t,e){this.startAsDate=t;this.mostRecentRangeValue=this.startAsDate;if(e){this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}};t.prototype.setEndAsDate=function(t,e){this.endAsDate=t;this.mostRecentRangeValue=this.endAsDate;if(e){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}};t.prototype.setEndDate=function(t){this.end=t?l(t):"";this.setEndAsDate(t,true);this.activeEndDate=t||null};t.prototype.setStartDate=function(t){this.start=t?l(t):"";this.setStartAsDate(t,true);this.activeStartDate=t||null};t.prototype.getActiveDate=function(t,e,a){return h(this.activeDate,e,a)||t||h(new Date,e,a)};t.prototype.getActiveStartDate=function(t,e,a){return h(this.activeStartDate,e,a)||t||h(new Date,e,a)};t.prototype.getActiveEndDate=function(t,e,a){return h(this.activeEndDate,e,a)||t||h(new Date,e,a)};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"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 t}());R.style=A;var _="@-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: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 M=t("calcite_date_picker_day",function(){function t(t){var r=this;e(this,t);this.calciteDaySelect=a(this,"calciteDaySelect",7);this.calciteDayHover=a(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(){!r.disabled&&r.calciteDaySelect.emit()};this.keyDownHandler=function(t){var e=t.key;if(e===" "||e==="Enter"){!r.disabled&&r.calciteDaySelect.emit()}}}t.prototype.mouseoverHandler=function(){this.calciteDayHover.emit({disabled:this.disabled})};t.prototype.render=function(){var t;var e=this;var a=String(this.day).split("").map((function(t){return e.localeData.numerals[t]})).join("");var n=b(this.el);return r(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell",tabindex:this.active?0:-1},r("div",{class:(t={"day-v-wrapper":true},t[x.rtl]=n==="rtl",t)},r("div",{class:"day-wrapper"},r("span",{class:"day"},r("span",{class:"text"},a)))))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());M.style=_;var C="@-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 S=t("calcite_date_picker_month",function(){function t(t){var r=this;e(this,t);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",7);this.calciteDatePickerHover=a(this,"calciteDatePickerHover",7);this.calciteDatePickerActiveDateChange=a(this,"calciteDatePickerActiveDateChange",7);this.calciteDatePickerMouseOut=a(this,"calciteDatePickerMouseOut",7);this.activeDate=new Date;this.keyDownHandler=function(t){var e=r.el.dir==="rtl";switch(t.key){case"ArrowUp":t.preventDefault();r.addDays(-7);break;case"ArrowRight":t.preventDefault();r.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault();r.addDays(7);break;case"ArrowLeft":t.preventDefault();r.addDays(e?1:-1);break;case"PageUp":t.preventDefault();r.addMonths(-1);break;case"PageDown":t.preventDefault();r.addMonths(1);break;case"Home":t.preventDefault();r.activeDate.setDate(1);r.addDays();break;case"End":t.preventDefault();r.activeDate.setDate(new Date(r.activeDate.getFullYear(),r.activeDate.getMonth()+1,0).getDate());r.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":r.activeFocus=false}};this.disableActiveFocus=function(){r.activeFocus=false};this.dayHover=function(t){var e=t.target;if(t.detail.disabled){r.calciteDatePickerMouseOut.emit()}else{r.calciteDatePickerHover.emit(e.value)}};this.daySelect=function(t){var e=t.target;r.calciteDatePickerSelect.emit(e.value)}}t.prototype.mouseoutHandler=function(){this.calciteDatePickerMouseOut.emit()};t.prototype.render=function(){var t=this;var e=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var n=this.localeData.weekStart%7;var o=this.localeData.days,s=o.abbreviated,c=o.short,l=o.narrow;var d=this.scale==="s"?l||c||s:c||s||l;var h=__spreadArray(__spreadArray([],d.slice(n,7)),d.slice(0,n));var u=this.getCurrentMonthDays(e,a);var f=this.getPrevMonthdays(e,a,n);var g=this.getNextMonthDays(e,a,n);var v=__spreadArray(__spreadArray(__spreadArray([],f.map((function(r){var i=new Date(a,e-1,r);return t.renderDateDay(false,r,i)}))),u.map((function(r){var i=new Date(a,e,r);var n=p(i,t.activeDate);return t.renderDateDay(n,r,i,true,true)}))),g.map((function(r){var i=new Date(a,e+1,r);return t.renderDateDay(false,r,i)})));var m=[];for(var w=0;w<v.length;w+=7){m.push(v.slice(w,w+7))}return r(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},r("div",{class:"calender",role:"grid"},r("div",{class:"week-headers",role:"row"},h.map((function(t){return r("span",{class:"week-header",role:"columnheader"},t)}))),m.map((function(t){return r("div",{class:"week-days",role:"row"},t)}))))};t.prototype.addMonths=function(t){var e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t);this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max));this.activeFocus=true};t.prototype.addDays=function(t){if(t===void 0){t=0}var e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t);this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max));this.activeFocus=true};t.prototype.getPrevMonthdays=function(t,e,a){var r=new Date(e,t,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};t.prototype.getCurrentMonthDays=function(t,e){var a=new Date(e,t+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};t.prototype.getNextMonthDays=function(t,e,a){var r=new Date(e,t+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};t.prototype.betweenSelectedRange=function(t){return!!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate&&!this.isRangeHover(t))};t.prototype.isSelected=function(t){return!!(p(t,this.selectedDate)||this.startDate&&p(t,this.startDate)||this.endDate&&p(t,this.endDate))};t.prototype.isStartOfRange=function(t){return!!(this.startDate&&!p(this.startDate,this.endDate)&&p(this.startDate,t)&&!this.isEndOfRange(t))};t.prototype.isEndOfRange=function(t){return!!(this.endDate&&!p(this.startDate,this.endDate)&&p(this.endDate,t)||!this.endDate&&this.hoverRange&&p(this.startDate,this.hoverRange.end)&&p(t,this.hoverRange.end))};t.prototype.renderDateDay=function(t,e,a,i,n){var o=this;var s;var c=this.isFocusedOnStart();var l=this.isHoverInRange()||!this.endDate&&this.hoverRange&&p((s=this.hoverRange)===null||s===void 0?void 0:s.end,this.startDate);return r("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&l,"hover--outside-range":this.startDate&&!l,"focused--start":c,"focused--end":!c},currentMonth:i,day:e,disabled:!g(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&&!p(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(e){if(n&&t&&o.activeFocus){e===null||e===void 0?void 0:e.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};t.prototype.isFocusedOnStart=function(){var t;return((t=this.hoverRange)===null||t===void 0?void 0:t.focused)==="start"};t.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var t=this.hoverRange,e=t.start,a=t.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)};t.prototype.isRangeHover=function(t){if(!this.hoverRange){return false}var e=this.hoverRange,a=e.start,r=e.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&t>this.startDate&&(t<r||p(t,r))||i&&t<this.endDate&&(t>a||p(t,a)));var s=!n&&(!i&&t>=this.endDate&&(t<r||p(t,r))||i&&(t<this.startDate||this.endDate&&p(t,this.startDate))&&(t>a||p(t,a)));return o||s};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=C;var P="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing: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;-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 H=t("calcite_date_picker_month_header",function(){function t(t){var r=this;e(this,t);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",7);this.onYearKey=function(t){var e=t.target.value;switch(t.key){case"ArrowDown":t.preventDefault();r.setYear(e,-1);break;case"ArrowUp":t.preventDefault();r.setYear(e,1);break}};this.yearChanged=function(t){r.setYear(t.target.value)};this.prevMonthClick=function(t){r.handleArrowClick(t,r.prevMonthDate)};this.prevMonthKeydown=function(t){var e=t.key;if(e===" "||e==="Enter"){r.prevMonthClick(t)}};this.nextMonthClick=function(t){r.handleArrowClick(t,r.nextMonthDate)};this.nextMonthKeydown=function(t){var e=t.key;if(e===" "||e==="Enter"){r.nextMonthClick(t)}};this.handleArrowClick=function(t,e){t===null||t===void 0?void 0:t.preventDefault();t.stopPropagation();r.calciteDatePickerSelect.emit(e)}}t.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};t.prototype.render=function(){return r("div",{class:"header"},this.renderContent())};t.prototype.renderContent=function(){var t=this;var e;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var i=this.localeData,n=i.months,s=i.unitOrder;var c=(n.wide||n.narrow||n.abbreviated)[a];var l=v(this.activeDate.getFullYear(),this.localeData);var d=this.scale==="l"?"m":"s";var h=m(s);var u=h.indexOf("y")<h.indexOf("m");var f=(e=this.localeData.year)===null||e===void 0?void 0:e.suffix;return r(o,null,r("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},r("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:d})),r("div",{class:{text:true,"text--reverse":u}},r(k,{class:"month",level:this.headingLevel},c),r("span",{class:"year-wrap"},r("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!f},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.yearChanged,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(e){return t.yearInput=e},type:"text",value:l}),f&&r("span",{class:"suffix"},r("span",{"aria-hidden":"true",class:"suffix__invisible"},l)," "+f))),r("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},r("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:d})))};t.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=h(w(this.activeDate),this.min,this.max);this.prevMonthDate=h(D(this.activeDate),this.min,this.max)};t.prototype.setYear=function(t,e){if(e===void 0){e=0}var a=this,r=a.min,i=a.max,n=a.activeDate,o=a.localeData,s=a.yearInput;var c=y(t,o);var l=c.toString().length;var d=isNaN(c)?false:c+e;var u=d&&(!r||r.getFullYear()<=d)&&(!i||i.getFullYear()>=d);if(d&&u&&l===t.length){var f=new Date(n);f.setFullYear(d);var p=h(f,r,i);this.calciteDatePickerSelect.emit(p);s.value=v(p.getFullYear(),o)}else{s.value=v(n.getFullYear(),o)}};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return t}());H.style=P}}}));