@esri/calcite-components 1.0.0-next.489 → 1.0.0-next.491

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 (811) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/index.esm.js +1 -1
  4. package/dist/calcite/{p-5dea814b.system.js → p-00752768.system.js} +2 -2
  5. package/dist/calcite/{p-9cf72525.entry.js → p-00c69e39.entry.js} +2 -2
  6. package/dist/calcite/{p-519cf47c.system.entry.js → p-01a25c0c.system.entry.js} +2 -2
  7. package/dist/calcite/{p-7f6bb105.entry.js → p-01f7af85.entry.js} +2 -2
  8. package/dist/calcite/{p-3ae7de8f.system.entry.js → p-02003db4.system.entry.js} +2 -2
  9. package/dist/calcite/{p-956dc24e.system.js → p-0437b0d4.system.js} +1 -1
  10. package/dist/calcite/{p-5053a602.js → p-04ee43bb.js} +1 -1
  11. package/dist/calcite/{p-36030a3e.entry.js → p-05bbd823.entry.js} +2 -2
  12. package/dist/calcite/p-0765f396.system.entry.js +6 -0
  13. package/dist/calcite/{p-54b344e4.system.entry.js → p-07d0be55.system.entry.js} +2 -2
  14. package/dist/calcite/{p-52ee0a9a.js → p-081d4c3f.js} +1 -1
  15. package/dist/calcite/{p-68b1685c.system.entry.js → p-093bd71e.system.entry.js} +2 -2
  16. package/dist/calcite/p-0b5d39a2.entry.js +6 -0
  17. package/dist/calcite/{p-15af9652.system.entry.js → p-0cb3e906.system.entry.js} +2 -2
  18. package/dist/calcite/{p-21284bad.system.js → p-0f138cbd.system.js} +2 -2
  19. package/dist/calcite/{p-a5a1cd6f.entry.js → p-107ae122.entry.js} +2 -2
  20. package/dist/calcite/{p-ae68d9a4.system.js → p-121593ce.system.js} +1 -1
  21. package/dist/calcite/{p-cc1c49c2.system.entry.js → p-14069334.system.entry.js} +2 -2
  22. package/dist/calcite/{p-7986e418.entry.js → p-14eb26c5.entry.js} +2 -2
  23. package/dist/calcite/p-14f16b90.js +6 -0
  24. package/dist/calcite/{p-84e07bc5.system.entry.js → p-1b484144.system.entry.js} +2 -2
  25. package/dist/calcite/{p-5608a8f0.system.entry.js → p-1be5d846.system.entry.js} +2 -2
  26. package/dist/calcite/{p-ca95f3a2.js → p-1c727923.js} +1 -1
  27. package/dist/calcite/p-1d799deb.system.entry.js +6 -0
  28. package/dist/calcite/{p-079fda5b.system.entry.js → p-1f3ae7d1.system.entry.js} +2 -2
  29. package/dist/calcite/{p-f826c2e5.entry.js → p-1fca22c3.entry.js} +2 -2
  30. package/dist/calcite/{p-984e0357.entry.js → p-1fe0e500.entry.js} +2 -2
  31. package/dist/calcite/{p-090a06f4.system.entry.js → p-20dfc822.system.entry.js} +2 -2
  32. package/dist/calcite/p-231187d1.entry.js +6 -0
  33. package/dist/calcite/{p-e1fdc43e.system.entry.js → p-252a4979.system.entry.js} +2 -2
  34. package/dist/calcite/{p-fc3bb011.entry.js → p-2919c808.entry.js} +2 -2
  35. package/dist/calcite/{p-fb4327c1.system.js → p-29f5a03b.system.js} +1 -1
  36. package/dist/calcite/{p-fb607379.entry.js → p-2a8c9f0c.entry.js} +2 -2
  37. package/dist/calcite/{p-d9891a65.system.entry.js → p-2e02cadd.entry.js} +2 -2
  38. package/dist/calcite/{p-c349f17d.system.entry.js → p-300ce62a.system.entry.js} +2 -2
  39. package/dist/calcite/{p-376082e0.entry.js → p-311b48d3.entry.js} +2 -2
  40. package/dist/calcite/{p-ff4f3860.system.entry.js → p-317e4337.system.entry.js} +2 -2
  41. package/dist/calcite/{p-a2c4faba.js → p-332981de.js} +1 -1
  42. package/dist/calcite/{p-82822e75.entry.js → p-3355a1c8.entry.js} +2 -2
  43. package/dist/calcite/p-36dffb0c.system.js +6 -0
  44. package/dist/calcite/{p-bdb7692f.system.entry.js → p-37d7c202.system.entry.js} +2 -2
  45. package/dist/calcite/{p-99cb0d88.entry.js → p-394ea1fb.entry.js} +2 -2
  46. package/dist/calcite/{p-032083e8.entry.js → p-3c564563.entry.js} +2 -2
  47. package/dist/calcite/{p-ffc94e06.system.entry.js → p-3d032c2b.system.entry.js} +2 -2
  48. package/dist/calcite/{p-c783f464.js → p-3d5bf549.js} +1 -1
  49. package/dist/calcite/{p-c3964270.entry.js → p-3d9e9496.entry.js} +2 -2
  50. package/dist/calcite/{p-a1ef0ec7.system.entry.js → p-41714042.system.entry.js} +2 -2
  51. package/dist/calcite/{p-e9c07797.entry.js → p-421b822b.entry.js} +2 -2
  52. package/dist/calcite/{p-115511ca.system.js → p-448331d0.system.js} +2 -2
  53. package/dist/calcite/{p-14de45ac.system.entry.js → p-46dc1b48.system.entry.js} +2 -2
  54. package/dist/calcite/{p-f564b6ca.entry.js → p-4a415a87.entry.js} +2 -2
  55. package/dist/calcite/{p-ac1c986e.system.js → p-4b37568b.system.js} +1 -1
  56. package/dist/calcite/p-4d80af5a.system.js +6 -0
  57. package/dist/calcite/{p-3fc72ae9.system.entry.js → p-4e49334c.system.entry.js} +2 -2
  58. package/dist/calcite/{p-c505e7ce.js → p-4e6e1161.js} +2 -2
  59. package/dist/calcite/{p-35244a1c.system.entry.js → p-51e6292b.system.entry.js} +2 -2
  60. package/dist/calcite/{p-91cfb3e7.system.entry.js → p-5222d674.system.entry.js} +2 -2
  61. package/dist/calcite/{p-85add826.js → p-52591444.js} +1 -1
  62. package/dist/calcite/{p-739b0dd7.entry.js → p-5262ecd4.entry.js} +2 -2
  63. package/dist/calcite/{p-68e1154f.js → p-57875d94.js} +2 -2
  64. package/dist/calcite/{p-bfd50cd2.entry.js → p-57e5183c.entry.js} +2 -2
  65. package/dist/calcite/{p-b0af2437.system.entry.js → p-582b6177.system.entry.js} +2 -2
  66. package/dist/calcite/{p-9e880fe6.entry.js → p-5b25949e.entry.js} +2 -2
  67. package/dist/calcite/{p-7929e309.entry.js → p-5b96bdc1.entry.js} +2 -2
  68. package/dist/calcite/{p-994e51da.entry.js → p-5bc2a90a.entry.js} +2 -2
  69. package/dist/calcite/{p-985d9104.system.entry.js → p-5c642f40.system.entry.js} +2 -2
  70. package/dist/calcite/{p-994962fa.entry.js → p-5cac4f92.entry.js} +2 -2
  71. package/dist/calcite/{p-6888276b.system.js → p-5cce0983.system.js} +1 -1
  72. package/dist/calcite/{p-ea5bf895.system.entry.js → p-5f5fdf1b.system.entry.js} +2 -2
  73. package/dist/calcite/{p-249bb0cd.js → p-61e2bb4f.js} +1 -1
  74. package/dist/calcite/{p-b366719f.js → p-6240ecc8.js} +1 -1
  75. package/dist/calcite/{p-eebde484.entry.js → p-6460d8e3.entry.js} +2 -2
  76. package/dist/calcite/{p-bc710229.system.entry.js → p-67c54d7a.system.entry.js} +3 -3
  77. package/dist/calcite/{p-60e078b7.system.entry.js → p-688c54fe.system.entry.js} +2 -2
  78. package/dist/calcite/{p-6249f3b2.system.js → p-68abc44b.system.js} +1 -1
  79. package/dist/calcite/p-6cdda2cc.system.entry.js +6 -0
  80. package/dist/calcite/{p-2140b854.system.js → p-6d15e06e.system.js} +1 -1
  81. package/dist/calcite/{p-20eb30c2.system.entry.js → p-6ed2e32e.system.entry.js} +2 -2
  82. package/dist/calcite/{p-303b34a5.entry.js → p-6fd34f3b.entry.js} +2 -2
  83. package/dist/calcite/{p-2c5357ee.entry.js → p-7212ae05.entry.js} +2 -2
  84. package/dist/calcite/{p-e9db9f50.entry.js → p-75700a0f.entry.js} +2 -2
  85. package/dist/calcite/{p-8e8205fa.system.entry.js → p-76c8c1a6.system.entry.js} +2 -2
  86. package/dist/calcite/{p-be3c3e72.system.js → p-78243401.system.js} +1 -1
  87. package/dist/calcite/{p-f8fa3f14.entry.js → p-78f508a5.entry.js} +2 -2
  88. package/dist/calcite/p-791eeb1b.js +6 -0
  89. package/dist/calcite/{p-2335d959.system.entry.js → p-7de94678.system.entry.js} +2 -2
  90. package/dist/calcite/p-7ec467c7.entry.js +6 -0
  91. package/dist/calcite/{p-fa9b47eb.system.entry.js → p-7f8add09.system.entry.js} +2 -2
  92. package/dist/calcite/p-826fe9b7.system.entry.js +6 -0
  93. package/dist/calcite/{p-cbf0e5be.entry.js → p-833eca14.entry.js} +2 -2
  94. package/dist/calcite/{p-d4324b4a.entry.js → p-8407ccf7.entry.js} +2 -2
  95. package/dist/calcite/p-846e8a22.entry.js +6 -0
  96. package/dist/calcite/{p-74d3af97.entry.js → p-86d87f35.entry.js} +2 -2
  97. package/dist/calcite/{p-4d47ca16.system.entry.js → p-877fd266.system.entry.js} +2 -2
  98. package/dist/calcite/{p-b09ad530.system.entry.js → p-8803ff7d.system.entry.js} +2 -2
  99. package/dist/calcite/{p-9793a6e3.entry.js → p-8839da80.entry.js} +2 -2
  100. package/dist/calcite/{p-8015076c.system.js → p-88596079.system.js} +2 -2
  101. package/dist/calcite/{p-f56e9345.js → p-887c1cea.js} +1 -1
  102. package/dist/calcite/{p-5ec0f27d.system.js → p-899a2bff.system.js} +2 -2
  103. package/dist/calcite/{p-dba32ea3.system.js → p-90b20919.system.js} +1 -1
  104. package/dist/calcite/{p-c1fb5c76.entry.js → p-91563ddc.entry.js} +2 -2
  105. package/dist/calcite/{p-3433c180.js → p-91d78519.js} +2 -2
  106. package/dist/calcite/{p-8390b788.entry.js → p-9345b05c.entry.js} +2 -2
  107. package/dist/calcite/p-9473a4f5.system.js +6 -0
  108. package/dist/calcite/{p-285f30f0.system.js → p-9529204d.system.js} +2 -2
  109. package/dist/calcite/{p-8559036d.entry.js → p-957df75e.entry.js} +2 -2
  110. package/dist/calcite/p-96a9737a.entry.js +6 -0
  111. package/dist/calcite/p-96e56a61.js +6 -0
  112. package/dist/calcite/{p-85b1be70.system.entry.js → p-985c27e4.system.entry.js} +2 -2
  113. package/dist/calcite/{p-b52786c5.entry.js → p-98a9a0ec.entry.js} +2 -2
  114. package/dist/calcite/{p-f99f6479.system.entry.js → p-98f11ef1.system.entry.js} +2 -2
  115. package/dist/calcite/{p-290d0aa6.entry.js → p-99784526.entry.js} +2 -2
  116. package/dist/calcite/p-9999ca88.entry.js +6 -0
  117. package/dist/calcite/{p-5cb12216.entry.js → p-9cc7a6fb.entry.js} +2 -2
  118. package/dist/calcite/{p-69032165.system.js → p-a4336816.system.js} +1 -1
  119. package/dist/calcite/{p-5e845442.entry.js → p-a4a9aee9.entry.js} +2 -2
  120. package/dist/calcite/{p-ae51bf5a.system.entry.js → p-a6ab0e5c.system.entry.js} +2 -2
  121. package/dist/calcite/p-a83f0031.system.entry.js +6 -0
  122. package/dist/calcite/{p-939eec33.system.entry.js → p-a8d01a40.system.entry.js} +2 -2
  123. package/dist/calcite/{p-a9a4b7f4.js → p-a91b9c6d.js} +2 -2
  124. package/dist/calcite/{p-b7948b95.system.entry.js → p-aaac9c2d.system.entry.js} +2 -2
  125. package/dist/calcite/{p-4b6afc53.system.js → p-b10b265e.system.js} +1 -1
  126. package/dist/calcite/{p-24fa86a5.system.entry.js → p-b11f8240.system.entry.js} +2 -2
  127. package/dist/calcite/{p-89ed9ac8.entry.js → p-b2bd84d6.entry.js} +2 -2
  128. package/dist/calcite/{p-98ac3f66.system.entry.js → p-b4d9d1b7.system.entry.js} +2 -2
  129. package/dist/calcite/p-b626d30f.system.js +6 -0
  130. package/dist/calcite/{p-997b562f.entry.js → p-bcd6c00e.entry.js} +2 -2
  131. package/dist/calcite/{p-fbb58958.system.entry.js → p-bec7f175.system.entry.js} +2 -2
  132. package/dist/calcite/{p-9d099693.system.entry.js → p-bf9ee1ad.system.entry.js} +2 -2
  133. package/dist/calcite/{p-58548d51.system.entry.js → p-c13ced2a.system.entry.js} +2 -2
  134. package/dist/calcite/{p-cd96b449.entry.js → p-c5ed55d6.entry.js} +2 -2
  135. package/dist/calcite/{p-60764d8d.system.entry.js → p-c8e0532f.system.entry.js} +2 -2
  136. package/dist/calcite/{p-7e45837a.system.entry.js → p-cd51d2c4.system.entry.js} +2 -2
  137. package/dist/calcite/{p-92d28de8.system.entry.js → p-cda8ca71.system.entry.js} +2 -2
  138. package/dist/calcite/{p-09b4e21c.system.js → p-cefc6b5d.system.js} +1 -1
  139. package/dist/calcite/{p-e8e9a037.js → p-cf93d51c.js} +1 -1
  140. package/dist/calcite/{p-df7fc801.system.entry.js → p-d388ce30.system.entry.js} +2 -2
  141. package/dist/calcite/{p-10af1b13.system.entry.js → p-d3a0cd52.system.entry.js} +2 -2
  142. package/dist/calcite/p-d557dbbc.entry.js +6 -0
  143. package/dist/calcite/p-d9ce9a86.entry.js +6 -0
  144. package/dist/calcite/{p-c6a244cf.js → p-db6f8d83.js} +1 -1
  145. package/dist/calcite/{p-bc534cc8.entry.js → p-de7c752f.entry.js} +2 -2
  146. package/dist/calcite/p-df52c296.system.js +6 -0
  147. package/dist/calcite/{p-513aeb64.js → p-e2197696.js} +2 -2
  148. package/dist/calcite/{p-0f9cdf92.system.entry.js → p-e68c4a40.system.entry.js} +2 -2
  149. package/dist/calcite/{p-01d73d5f.entry.js → p-e84bbd3a.entry.js} +2 -2
  150. package/dist/calcite/{p-cc11fd96.system.entry.js → p-ebe1359b.system.entry.js} +2 -2
  151. package/dist/calcite/{p-d756a734.js → p-ec0039f0.js} +2 -2
  152. package/dist/calcite/{p-f3d25e2d.system.entry.js → p-ed1c47c8.system.entry.js} +2 -2
  153. package/dist/calcite/{p-f3cdfefa.entry.js → p-efd1ece3.entry.js} +2 -2
  154. package/dist/calcite/{p-bcc081c2.js → p-f0f4566d.js} +2 -2
  155. package/dist/calcite/{p-08fd68b6.entry.js → p-f4211281.entry.js} +2 -2
  156. package/dist/calcite/{p-8f9a8a6d.system.entry.js → p-f5073afc.system.entry.js} +2 -2
  157. package/dist/calcite/p-f6547917.js +6 -0
  158. package/dist/calcite/{p-bbf6dd07.system.js → p-f6d8ff49.system.js} +2 -2
  159. package/dist/calcite/{p-40ebbc20.entry.js → p-f922cf2e.entry.js} +2 -2
  160. package/dist/calcite/{p-90d6959b.system.entry.js → p-f9bfe203.system.entry.js} +2 -2
  161. package/dist/calcite/{p-e93aa221.entry.js → p-fa59dba2.entry.js} +2 -2
  162. package/dist/calcite/{p-3b85836e.js → p-fa6800f7.js} +1 -1
  163. package/dist/calcite/{p-34ca0207.system.js → p-fabf18bf.system.js} +1 -1
  164. package/dist/calcite/{p-2c8224eb.system.entry.js → p-fca776a0.system.entry.js} +2 -2
  165. package/dist/calcite/{p-eda3541b.entry.js → p-ffa7a5ad.entry.js} +2 -2
  166. package/dist/cjs/{ExpandToggle-5e1f4ae8.js → ExpandToggle-d1dcec7b.js} +5 -5
  167. package/dist/cjs/{Heading-6edefae8.js → Heading-08cb3ad8.js} +3 -3
  168. package/dist/cjs/{array-b64cf1d9.js → array-d376f65c.js} +1 -1
  169. package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
  170. package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
  171. package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
  172. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  173. package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
  174. package/dist/cjs/calcite-action.cjs.entry.js +6 -6
  175. package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
  176. package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
  177. package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
  178. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  179. package/dist/cjs/calcite-card.cjs.entry.js +6 -6
  180. package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
  181. package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
  183. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  184. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +8 -9
  185. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
  186. package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
  187. package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
  188. package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
  189. package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
  190. package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
  191. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  192. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  193. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -11
  194. package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
  195. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +27 -27
  196. package/dist/cjs/calcite-input.cjs.entry.js +21 -22
  197. package/dist/cjs/calcite-label.cjs.entry.js +5 -5
  198. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  199. package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
  200. package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
  201. package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
  202. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  203. package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
  204. package/dist/cjs/calcite-pagination.cjs.entry.js +4 -5
  205. package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
  206. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
  207. package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
  208. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  209. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  210. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  211. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
  212. package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
  213. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  214. package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
  215. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  216. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  217. package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
  219. package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
  220. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  221. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  222. package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
  223. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
  224. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
  225. package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
  226. package/dist/cjs/calcite.cjs.js +3 -3
  227. package/dist/cjs/{conditionalSlot-88002c5c.js → conditionalSlot-3359b0b5.js} +3 -3
  228. package/dist/cjs/{debounce-fe794b2e.js → debounce-a633dc9e.js} +1 -1
  229. package/dist/cjs/{dom-d188a05c.js → dom-9f6a96dd.js} +2 -2
  230. package/dist/cjs/{forIn-0b8b65a0.js → forIn-db536971.js} +2 -2
  231. package/dist/cjs/{form-61dd7c98.js → form-aebaa4f9.js} +3 -3
  232. package/dist/cjs/{guid-9ab6faec.js → guid-c7792ee3.js} +1 -1
  233. package/dist/cjs/{index-95f03452.js → index-f3c582e2.js} +1 -1
  234. package/dist/cjs/index.cjs.js +1 -1
  235. package/dist/cjs/{interactive-3762052b.js → interactive-9d05c40d.js} +1 -1
  236. package/dist/cjs/{interfaces-4e11089d.js → interfaces-d3cc8dfa.js} +1 -1
  237. package/dist/cjs/{label-8269a179.js → label-8103de35.js} +2 -2
  238. package/dist/cjs/loader.cjs.js +3 -3
  239. package/dist/cjs/locale-427f4205.js +266 -0
  240. package/dist/cjs/{math-93ab8570.js → math-aaa87ea6.js} +1 -1
  241. package/dist/cjs/{observers-ddfeeaeb.js → observers-a1608a7d.js} +1 -1
  242. package/dist/cjs/{popper-a0504b3a.js → popper-48289d39.js} +2 -2
  243. package/dist/cjs/{resources-ae6d75be.js → resources-18cda8b6.js} +3 -3
  244. package/dist/cjs/{resources-11cff30c.js → resources-8d12822f.js} +7 -19
  245. package/dist/cjs/{resources-b1d84ba6.js → resources-961c572d.js} +1 -1
  246. package/dist/cjs/{resources-8e1b4105.js → resources-e64d55c2.js} +1 -1
  247. package/dist/cjs/{sortable.esm-248db1f4.js → sortable.esm-72dcaaf5.js} +1 -1
  248. package/dist/cjs/{utils-bd4cabe8.js → utils-2ce8f1a3.js} +1 -1
  249. package/dist/collection/collection-manifest.json +1 -1
  250. package/dist/collection/components/accordion/accordion.js +1 -1
  251. package/dist/collection/components/accordion/interfaces.js +1 -1
  252. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  253. package/dist/collection/components/action/action.js +1 -1
  254. package/dist/collection/components/action/resources.js +1 -1
  255. package/dist/collection/components/action-bar/action-bar.js +1 -1
  256. package/dist/collection/components/action-bar/resources.js +1 -1
  257. package/dist/collection/components/action-bar/utils.js +1 -1
  258. package/dist/collection/components/action-group/action-group.js +1 -1
  259. package/dist/collection/components/action-group/resources.js +1 -1
  260. package/dist/collection/components/action-menu/action-menu.js +1 -1
  261. package/dist/collection/components/action-menu/resources.js +1 -1
  262. package/dist/collection/components/action-pad/action-pad.js +1 -1
  263. package/dist/collection/components/action-pad/resources.js +1 -1
  264. package/dist/collection/components/alert/alert.js +1 -1
  265. package/dist/collection/components/alert/interfaces.js +1 -1
  266. package/dist/collection/components/alert/resources.js +1 -1
  267. package/dist/collection/components/avatar/avatar.js +1 -1
  268. package/dist/collection/components/avatar/utils.js +1 -1
  269. package/dist/collection/components/block/block.js +1 -1
  270. package/dist/collection/components/block/resources.js +1 -1
  271. package/dist/collection/components/block-section/block-section.js +1 -1
  272. package/dist/collection/components/block-section/interfaces.js +1 -1
  273. package/dist/collection/components/block-section/resources.js +1 -1
  274. package/dist/collection/components/button/button.js +1 -1
  275. package/dist/collection/components/button/interfaces.js +1 -1
  276. package/dist/collection/components/button/resources.js +1 -1
  277. package/dist/collection/components/card/card.js +1 -1
  278. package/dist/collection/components/card/resources.js +1 -1
  279. package/dist/collection/components/checkbox/checkbox.js +1 -1
  280. package/dist/collection/components/chip/chip.js +1 -1
  281. package/dist/collection/components/chip/interfaces.js +1 -1
  282. package/dist/collection/components/chip/resources.js +1 -1
  283. package/dist/collection/components/color-picker/color-picker.js +1 -1
  284. package/dist/collection/components/color-picker/interfaces.js +1 -1
  285. package/dist/collection/components/color-picker/resources.js +1 -1
  286. package/dist/collection/components/color-picker/utils.js +1 -1
  287. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  288. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  289. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  290. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  291. package/dist/collection/components/combobox/combobox.js +1 -1
  292. package/dist/collection/components/combobox/interfaces.js +1 -1
  293. package/dist/collection/components/combobox/resources.js +1 -1
  294. package/dist/collection/components/combobox/utils.js +1 -1
  295. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  296. package/dist/collection/components/combobox-item/resources.js +1 -1
  297. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  298. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  299. package/dist/collection/components/date-picker/date-picker.js +1 -1
  300. package/dist/collection/components/date-picker/interfaces.js +1 -1
  301. package/dist/collection/components/date-picker/resources.js +1 -1
  302. package/dist/collection/components/date-picker/utils.js +1 -1
  303. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  304. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  305. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  306. package/dist/collection/components/dropdown/dropdown.js +1 -1
  307. package/dist/collection/components/dropdown/interfaces.js +1 -1
  308. package/dist/collection/components/dropdown/resources.js +1 -1
  309. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  310. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  311. package/dist/collection/components/dropdown-group/resources.js +1 -1
  312. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  313. package/dist/collection/components/dropdown-item/resources.js +1 -1
  314. package/dist/collection/components/fab/fab.js +1 -1
  315. package/dist/collection/components/fab/resources.js +1 -1
  316. package/dist/collection/components/filter/filter.js +1 -1
  317. package/dist/collection/components/filter/resources.js +1 -1
  318. package/dist/collection/components/flow/flow.js +1 -1
  319. package/dist/collection/components/flow/interfaces.js +1 -1
  320. package/dist/collection/components/flow/resources.js +1 -1
  321. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  322. package/dist/collection/components/functional/Heading.js +2 -2
  323. package/dist/collection/components/graph/graph.js +1 -1
  324. package/dist/collection/components/graph/interfaces.js +1 -1
  325. package/dist/collection/components/graph/util.js +1 -1
  326. package/dist/collection/components/handle/handle.js +1 -1
  327. package/dist/collection/components/handle/resources.js +1 -1
  328. package/dist/collection/components/icon/icon.js +1 -1
  329. package/dist/collection/components/icon/resources.js +1 -1
  330. package/dist/collection/components/icon/utils.js +1 -1
  331. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  332. package/dist/collection/components/inline-editable/resources.js +1 -1
  333. package/dist/collection/components/input/input.js +1 -1
  334. package/dist/collection/components/input/interfaces.js +1 -1
  335. package/dist/collection/components/input/resources.js +1 -1
  336. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  337. package/dist/collection/components/input-message/input-message.js +1 -1
  338. package/dist/collection/components/input-message/interfaces.js +1 -1
  339. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  340. package/dist/collection/components/interfaces.js +1 -1
  341. package/dist/collection/components/label/label.js +1 -1
  342. package/dist/collection/components/label/resources.js +1 -1
  343. package/dist/collection/components/link/link.js +1 -1
  344. package/dist/collection/components/list/list.js +1 -1
  345. package/dist/collection/components/list/resources.js +1 -1
  346. package/dist/collection/components/list-item/list-item.js +1 -1
  347. package/dist/collection/components/list-item/resources.js +1 -1
  348. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  349. package/dist/collection/components/list-item-group/resources.js +1 -1
  350. package/dist/collection/components/loader/loader.js +6 -6
  351. package/dist/collection/components/modal/interfaces.js +1 -1
  352. package/dist/collection/components/modal/modal.js +1 -1
  353. package/dist/collection/components/modal/resources.js +1 -1
  354. package/dist/collection/components/notice/notice.js +1 -1
  355. package/dist/collection/components/notice/resources.js +1 -1
  356. package/dist/collection/components/option/option.js +1 -1
  357. package/dist/collection/components/option-group/option-group.js +1 -1
  358. package/dist/collection/components/pagination/pagination.js +1 -1
  359. package/dist/collection/components/pagination/resources.js +1 -1
  360. package/dist/collection/components/panel/panel.js +1 -1
  361. package/dist/collection/components/panel/resources.js +1 -1
  362. package/dist/collection/components/pick-list/pick-list.js +1 -1
  363. package/dist/collection/components/pick-list/resources.js +1 -1
  364. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  365. package/dist/collection/components/pick-list/shared-list-render.js +3 -15
  366. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  367. package/dist/collection/components/pick-list-group/resources.js +1 -1
  368. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  369. package/dist/collection/components/pick-list-item/resources.js +1 -1
  370. package/dist/collection/components/popover/PopoverManager.js +1 -1
  371. package/dist/collection/components/popover/popover.js +1 -1
  372. package/dist/collection/components/popover/resources.js +1 -1
  373. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  374. package/dist/collection/components/progress/progress.js +1 -1
  375. package/dist/collection/components/radio-button/radio-button.js +1 -1
  376. package/dist/collection/components/radio-button/resources.js +1 -1
  377. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  378. package/dist/collection/components/radio-group/interfaces.js +1 -1
  379. package/dist/collection/components/radio-group/radio-group.js +1 -1
  380. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  381. package/dist/collection/components/radio-group-item/resources.js +1 -1
  382. package/dist/collection/components/rating/rating.js +1 -1
  383. package/dist/collection/components/rating/resources.js +1 -1
  384. package/dist/collection/components/scrim/resources.js +1 -1
  385. package/dist/collection/components/scrim/scrim.js +1 -1
  386. package/dist/collection/components/select/resources.js +1 -1
  387. package/dist/collection/components/select/select.js +1 -1
  388. package/dist/collection/components/shell/resources.js +1 -1
  389. package/dist/collection/components/shell/shell.js +1 -1
  390. package/dist/collection/components/shell-center-row/resources.js +1 -1
  391. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  392. package/dist/collection/components/shell-panel/resources.js +1 -1
  393. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  394. package/dist/collection/components/slider/slider.js +1 -1
  395. package/dist/collection/components/sortable-list/resources.js +1 -1
  396. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  397. package/dist/collection/components/split-button/resources.js +1 -1
  398. package/dist/collection/components/split-button/split-button.js +1 -1
  399. package/dist/collection/components/stepper/interfaces.js +1 -1
  400. package/dist/collection/components/stepper/stepper.js +1 -1
  401. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  402. package/dist/collection/components/switch/switch.js +1 -1
  403. package/dist/collection/components/tab/interfaces.js +1 -1
  404. package/dist/collection/components/tab/tab.js +1 -1
  405. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  406. package/dist/collection/components/tab-title/tab-title.js +1 -1
  407. package/dist/collection/components/tabs/interfaces.js +1 -1
  408. package/dist/collection/components/tabs/resources.js +1 -1
  409. package/dist/collection/components/tabs/tabs.js +1 -1
  410. package/dist/collection/components/tile/resources.js +1 -1
  411. package/dist/collection/components/tile/tile.js +1 -1
  412. package/dist/collection/components/tile-select/interfaces.js +1 -1
  413. package/dist/collection/components/tile-select/resources.js +1 -1
  414. package/dist/collection/components/tile-select/tile-select.js +1 -1
  415. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  416. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  417. package/dist/collection/components/time-picker/resources.js +1 -1
  418. package/dist/collection/components/time-picker/time-picker.js +1 -1
  419. package/dist/collection/components/tip/resources.js +1 -1
  420. package/dist/collection/components/tip/tip.js +1 -1
  421. package/dist/collection/components/tip-group/tip-group.js +1 -1
  422. package/dist/collection/components/tip-manager/resources.js +1 -1
  423. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  424. package/dist/collection/components/tooltip/TooltipManager.js +2 -2
  425. package/dist/collection/components/tooltip/resources.js +1 -1
  426. package/dist/collection/components/tooltip/tooltip.js +1 -1
  427. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  428. package/dist/collection/components/tree/interfaces.js +1 -1
  429. package/dist/collection/components/tree/tree.js +1 -1
  430. package/dist/collection/components/tree-item/interfaces.js +1 -1
  431. package/dist/collection/components/tree-item/resources.js +1 -1
  432. package/dist/collection/components/tree-item/tree-item.js +1 -1
  433. package/dist/collection/components/value-list/resources.js +1 -1
  434. package/dist/collection/components/value-list/value-list.js +1 -1
  435. package/dist/collection/components/value-list-item/resources.js +1 -1
  436. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  437. package/dist/collection/utils/array.js +1 -1
  438. package/dist/collection/utils/conditionalSlot.js +1 -1
  439. package/dist/collection/utils/date.js +1 -1
  440. package/dist/collection/utils/dom.js +1 -1
  441. package/dist/collection/utils/filter.js +1 -1
  442. package/dist/collection/utils/form.js +1 -1
  443. package/dist/collection/utils/globalAttributes.js +1 -1
  444. package/dist/collection/utils/guid.js +1 -1
  445. package/dist/collection/utils/interactive.js +1 -1
  446. package/dist/collection/utils/key.js +1 -1
  447. package/dist/collection/utils/label.js +1 -1
  448. package/dist/collection/utils/locale.js +6 -8
  449. package/dist/collection/utils/math.js +1 -1
  450. package/dist/collection/utils/number.js +71 -8
  451. package/dist/collection/utils/observers.js +1 -1
  452. package/dist/collection/utils/popper.js +1 -1
  453. package/dist/collection/utils/resources.js +1 -1
  454. package/dist/collection/utils/time.js +1 -1
  455. package/dist/components/ExpandToggle.js +1 -1
  456. package/dist/components/Heading.js +2 -2
  457. package/dist/components/action-group.js +1 -1
  458. package/dist/components/action-menu.js +1 -1
  459. package/dist/components/action.js +1 -1
  460. package/dist/components/array.js +1 -1
  461. package/dist/components/button.js +1 -1
  462. package/dist/components/calcite-accordion-item.js +1 -1
  463. package/dist/components/calcite-accordion.js +1 -1
  464. package/dist/components/calcite-action-bar.js +1 -1
  465. package/dist/components/calcite-action-group.js +1 -1
  466. package/dist/components/calcite-action-menu.js +1 -1
  467. package/dist/components/calcite-action-pad.js +1 -1
  468. package/dist/components/calcite-action.js +1 -1
  469. package/dist/components/calcite-alert.js +1 -1
  470. package/dist/components/calcite-avatar.js +1 -1
  471. package/dist/components/calcite-block-section.js +1 -1
  472. package/dist/components/calcite-block.js +1 -1
  473. package/dist/components/calcite-button.js +1 -1
  474. package/dist/components/calcite-card.js +1 -1
  475. package/dist/components/calcite-checkbox.js +1 -1
  476. package/dist/components/calcite-chip.js +1 -1
  477. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  478. package/dist/components/calcite-color-picker-swatch.js +1 -1
  479. package/dist/components/calcite-color-picker.js +1 -1
  480. package/dist/components/calcite-combobox-item-group.js +1 -1
  481. package/dist/components/calcite-combobox-item.js +1 -1
  482. package/dist/components/calcite-combobox.js +1 -1
  483. package/dist/components/calcite-date-picker-day.js +1 -1
  484. package/dist/components/calcite-date-picker-month-header.js +1 -1
  485. package/dist/components/calcite-date-picker-month.js +1 -1
  486. package/dist/components/calcite-date-picker.js +1 -1
  487. package/dist/components/calcite-dropdown-group.js +1 -1
  488. package/dist/components/calcite-dropdown-item.js +1 -1
  489. package/dist/components/calcite-dropdown.js +1 -1
  490. package/dist/components/calcite-fab.js +1 -1
  491. package/dist/components/calcite-filter.js +1 -1
  492. package/dist/components/calcite-flow.js +1 -1
  493. package/dist/components/calcite-graph.js +1 -1
  494. package/dist/components/calcite-handle.js +1 -1
  495. package/dist/components/calcite-icon.js +1 -1
  496. package/dist/components/calcite-inline-editable.js +1 -1
  497. package/dist/components/calcite-input-date-picker.js +1 -1
  498. package/dist/components/calcite-input-message.js +1 -1
  499. package/dist/components/calcite-input-time-picker.js +1 -1
  500. package/dist/components/calcite-input.js +1 -1
  501. package/dist/components/calcite-label.js +1 -1
  502. package/dist/components/calcite-link.js +1 -1
  503. package/dist/components/calcite-list-item-group.js +1 -1
  504. package/dist/components/calcite-list-item.js +1 -1
  505. package/dist/components/calcite-list.js +1 -1
  506. package/dist/components/calcite-loader.js +1 -1
  507. package/dist/components/calcite-modal.js +1 -1
  508. package/dist/components/calcite-notice.js +1 -1
  509. package/dist/components/calcite-option-group.js +1 -1
  510. package/dist/components/calcite-option.js +1 -1
  511. package/dist/components/calcite-pagination.js +1 -1
  512. package/dist/components/calcite-panel.js +1 -1
  513. package/dist/components/calcite-pick-list-group.js +1 -1
  514. package/dist/components/calcite-pick-list-item.js +1 -1
  515. package/dist/components/calcite-pick-list.js +1 -1
  516. package/dist/components/calcite-popover-manager.js +1 -1
  517. package/dist/components/calcite-popover.js +1 -1
  518. package/dist/components/calcite-progress.js +1 -1
  519. package/dist/components/calcite-radio-button-group.js +1 -1
  520. package/dist/components/calcite-radio-button.js +1 -1
  521. package/dist/components/calcite-radio-group-item.js +1 -1
  522. package/dist/components/calcite-radio-group.js +1 -1
  523. package/dist/components/calcite-rating.js +1 -1
  524. package/dist/components/calcite-scrim.js +1 -1
  525. package/dist/components/calcite-select.js +1 -1
  526. package/dist/components/calcite-shell-center-row.js +1 -1
  527. package/dist/components/calcite-shell-panel.js +1 -1
  528. package/dist/components/calcite-shell.js +1 -1
  529. package/dist/components/calcite-slider.js +1 -1
  530. package/dist/components/calcite-sortable-list.js +1 -1
  531. package/dist/components/calcite-split-button.js +1 -1
  532. package/dist/components/calcite-stepper-item.js +1 -1
  533. package/dist/components/calcite-stepper.js +1 -1
  534. package/dist/components/calcite-switch.js +1 -1
  535. package/dist/components/calcite-tab-nav.js +1 -1
  536. package/dist/components/calcite-tab-title.js +1 -1
  537. package/dist/components/calcite-tab.js +1 -1
  538. package/dist/components/calcite-tabs.js +1 -1
  539. package/dist/components/calcite-tile-select-group.js +1 -1
  540. package/dist/components/calcite-tile-select.js +1 -1
  541. package/dist/components/calcite-tile.js +1 -1
  542. package/dist/components/calcite-time-picker.js +1 -1
  543. package/dist/components/calcite-tip-group.js +1 -1
  544. package/dist/components/calcite-tip-manager.js +1 -1
  545. package/dist/components/calcite-tip.js +1 -1
  546. package/dist/components/calcite-tooltip-manager.js +1 -1
  547. package/dist/components/calcite-tooltip.js +2 -2
  548. package/dist/components/calcite-tree-item.js +1 -1
  549. package/dist/components/calcite-tree.js +1 -1
  550. package/dist/components/calcite-value-list-item.js +1 -1
  551. package/dist/components/calcite-value-list.js +1 -1
  552. package/dist/components/checkbox.js +1 -1
  553. package/dist/components/chip.js +1 -1
  554. package/dist/components/color-picker-hex-input.js +1 -1
  555. package/dist/components/color-picker-swatch.js +1 -1
  556. package/dist/components/conditionalSlot.js +1 -1
  557. package/dist/components/date-picker-day.js +1 -1
  558. package/dist/components/date-picker-month-header.js +1 -1
  559. package/dist/components/date-picker-month.js +1 -1
  560. package/dist/components/date-picker.js +1 -1
  561. package/dist/components/date.js +1 -1
  562. package/dist/components/debounce.js +1 -1
  563. package/dist/components/dom.js +1 -1
  564. package/dist/components/dropdown.js +1 -1
  565. package/dist/components/filter.js +1 -1
  566. package/dist/components/forIn.js +1 -1
  567. package/dist/components/form.js +1 -1
  568. package/dist/components/graph.js +1 -1
  569. package/dist/components/guid.js +1 -1
  570. package/dist/components/handle.js +1 -1
  571. package/dist/components/icon.js +1 -1
  572. package/dist/components/index.js +1 -1
  573. package/dist/components/input.js +2 -3
  574. package/dist/components/interactive.js +1 -1
  575. package/dist/components/interfaces.js +1 -1
  576. package/dist/components/interfaces2.js +1 -1
  577. package/dist/components/label.js +1 -1
  578. package/dist/components/label2.js +1 -1
  579. package/dist/components/link.js +1 -1
  580. package/dist/components/loader.js +2 -2
  581. package/dist/components/locale.js +137 -7
  582. package/dist/components/math.js +1 -1
  583. package/dist/components/observers.js +1 -1
  584. package/dist/components/pick-list-item.js +1 -1
  585. package/dist/components/popover.js +1 -1
  586. package/dist/components/popper.js +1 -1
  587. package/dist/components/progress.js +1 -1
  588. package/dist/components/resources.js +1 -1
  589. package/dist/components/resources2.js +1 -1
  590. package/dist/components/resources3.js +1 -1
  591. package/dist/components/scrim.js +1 -1
  592. package/dist/components/shared-list-render.js +3 -15
  593. package/dist/components/sortable.esm.js +1 -1
  594. package/dist/components/switch.js +1 -1
  595. package/dist/components/tab-nav.js +1 -1
  596. package/dist/components/tab-title.js +1 -1
  597. package/dist/components/tab.js +1 -1
  598. package/dist/components/tabs.js +1 -1
  599. package/dist/components/tile.js +1 -1
  600. package/dist/components/time-picker.js +2 -2
  601. package/dist/components/utils.js +1 -1
  602. package/dist/components/utils2.js +1 -1
  603. package/dist/custom-elements/index.js +78 -29
  604. package/dist/esm/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +5 -5
  605. package/dist/esm/{Heading-82d5894d.js → Heading-9a8fdd45.js} +3 -3
  606. package/dist/esm/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
  607. package/dist/esm/calcite-accordion_2.entry.js +4 -4
  608. package/dist/esm/calcite-action-bar.entry.js +10 -10
  609. package/dist/esm/calcite-action-group.entry.js +8 -8
  610. package/dist/esm/calcite-action-menu.entry.js +8 -8
  611. package/dist/esm/calcite-action-pad.entry.js +9 -9
  612. package/dist/esm/calcite-action.entry.js +6 -6
  613. package/dist/esm/calcite-alert.entry.js +5 -5
  614. package/dist/esm/calcite-avatar.entry.js +5 -5
  615. package/dist/esm/calcite-block_2.entry.js +8 -8
  616. package/dist/esm/calcite-button.entry.js +8 -8
  617. package/dist/esm/calcite-card.entry.js +6 -6
  618. package/dist/esm/calcite-checkbox.entry.js +7 -7
  619. package/dist/esm/calcite-chip.entry.js +6 -6
  620. package/dist/esm/calcite-color-picker_3.entry.js +8 -8
  621. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  622. package/dist/esm/calcite-date-picker_4.entry.js +8 -9
  623. package/dist/esm/calcite-dropdown_3.entry.js +7 -7
  624. package/dist/esm/calcite-fab.entry.js +5 -5
  625. package/dist/esm/calcite-filter.entry.js +7 -7
  626. package/dist/esm/calcite-flow.entry.js +2 -2
  627. package/dist/esm/calcite-graph_2.entry.js +9 -9
  628. package/dist/esm/calcite-handle.entry.js +4 -4
  629. package/dist/esm/calcite-icon.entry.js +5 -5
  630. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  631. package/dist/esm/calcite-input-date-picker.entry.js +10 -11
  632. package/dist/esm/calcite-input-message.entry.js +4 -4
  633. package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
  634. package/dist/esm/calcite-input.entry.js +10 -11
  635. package/dist/esm/calcite-label.entry.js +5 -5
  636. package/dist/esm/calcite-link.entry.js +5 -5
  637. package/dist/esm/calcite-list_3.entry.js +8 -8
  638. package/dist/esm/calcite-loader.entry.js +4 -4
  639. package/dist/esm/calcite-modal.entry.js +6 -6
  640. package/dist/esm/calcite-notice.entry.js +7 -7
  641. package/dist/esm/calcite-option_3.entry.js +8 -8
  642. package/dist/esm/calcite-pagination.entry.js +4 -5
  643. package/dist/esm/calcite-panel.entry.js +9 -9
  644. package/dist/esm/calcite-pick-list_3.entry.js +11 -11
  645. package/dist/esm/calcite-popover_2.entry.js +7 -7
  646. package/dist/esm/calcite-progress.entry.js +2 -2
  647. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  648. package/dist/esm/calcite-radio-button.entry.js +8 -8
  649. package/dist/esm/calcite-radio-group_2.entry.js +7 -7
  650. package/dist/esm/calcite-rating.entry.js +7 -7
  651. package/dist/esm/calcite-scrim.entry.js +2 -2
  652. package/dist/esm/calcite-shell_3.entry.js +7 -7
  653. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  654. package/dist/esm/calcite-split-button.entry.js +3 -3
  655. package/dist/esm/calcite-stepper_2.entry.js +5 -5
  656. package/dist/esm/calcite-switch.entry.js +7 -7
  657. package/dist/esm/calcite-tab_4.entry.js +6 -6
  658. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  659. package/dist/esm/calcite-tile.entry.js +7 -7
  660. package/dist/esm/calcite-tip_3.entry.js +7 -7
  661. package/dist/esm/calcite-tooltip_2.entry.js +6 -6
  662. package/dist/esm/calcite-tree_2.entry.js +6 -6
  663. package/dist/esm/calcite-value-list_2.entry.js +11 -11
  664. package/dist/esm/calcite.js +3 -3
  665. package/dist/esm/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +3 -3
  666. package/dist/esm/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
  667. package/dist/esm/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
  668. package/dist/esm/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
  669. package/dist/esm/{form-bfbfa460.js → form-56651950.js} +3 -3
  670. package/dist/esm/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
  671. package/dist/esm/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
  672. package/dist/esm/index.js +1 -1
  673. package/dist/esm/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
  674. package/dist/esm/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
  675. package/dist/esm/{label-2538c118.js → label-c6e0eb01.js} +2 -2
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/locale-faa0cde9.js +256 -0
  678. package/dist/esm/{math-1a419785.js → math-a7dc89ab.js} +1 -1
  679. package/dist/esm/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
  680. package/dist/esm/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
  681. package/dist/esm/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
  682. package/dist/esm/{resources-c81d67d8.js → resources-33b38352.js} +3 -3
  683. package/dist/esm/{resources-83cd537a.js → resources-a336bfcb.js} +7 -19
  684. package/dist/esm/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
  685. package/dist/esm/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
  686. package/dist/esm/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
  687. package/dist/esm-es5/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +2 -2
  688. package/dist/esm-es5/Heading-9a8fdd45.js +6 -0
  689. package/dist/esm-es5/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
  690. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  691. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  692. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  693. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  694. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  695. package/dist/esm-es5/calcite-action.entry.js +2 -2
  696. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  697. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  698. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  699. package/dist/esm-es5/calcite-button.entry.js +2 -2
  700. package/dist/esm-es5/calcite-card.entry.js +2 -2
  701. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  702. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  703. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  704. package/dist/esm-es5/calcite-combobox_3.entry.js +3 -3
  705. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  706. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  707. package/dist/esm-es5/calcite-fab.entry.js +3 -3
  708. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  709. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  710. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  711. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  712. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  713. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  714. package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
  715. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  716. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  717. package/dist/esm-es5/calcite-input.entry.js +2 -2
  718. package/dist/esm-es5/calcite-label.entry.js +2 -2
  719. package/dist/esm-es5/calcite-link.entry.js +2 -2
  720. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  721. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  722. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  723. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  724. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  725. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  726. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  727. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  728. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  729. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  730. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  731. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  732. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  733. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  734. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  735. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  736. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  737. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  738. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  739. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  740. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  741. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  742. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  743. package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
  744. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  745. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  746. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  747. package/dist/esm-es5/calcite.js +2 -2
  748. package/dist/esm-es5/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +2 -2
  749. package/dist/esm-es5/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
  750. package/dist/esm-es5/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
  751. package/dist/esm-es5/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
  752. package/dist/esm-es5/{form-bfbfa460.js → form-56651950.js} +2 -2
  753. package/dist/esm-es5/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
  754. package/dist/esm-es5/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
  755. package/dist/esm-es5/index.js +1 -1
  756. package/dist/esm-es5/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
  757. package/dist/esm-es5/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
  758. package/dist/esm-es5/{label-2538c118.js → label-c6e0eb01.js} +2 -2
  759. package/dist/esm-es5/loader.js +2 -2
  760. package/dist/esm-es5/locale-faa0cde9.js +6 -0
  761. package/dist/esm-es5/{math-1a419785.js → math-a7dc89ab.js} +1 -1
  762. package/dist/esm-es5/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
  763. package/dist/esm-es5/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
  764. package/dist/esm-es5/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
  765. package/dist/esm-es5/{resources-c81d67d8.js → resources-33b38352.js} +2 -2
  766. package/dist/esm-es5/{resources-83cd537a.js → resources-a336bfcb.js} +3 -3
  767. package/dist/esm-es5/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
  768. package/dist/esm-es5/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
  769. package/dist/esm-es5/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
  770. package/dist/extras/docs-json.json +2 -2
  771. package/dist/loader/cdn.js +1 -1
  772. package/dist/loader/index.cjs.js +1 -1
  773. package/dist/loader/index.es2017.js +1 -1
  774. package/dist/loader/index.js +1 -1
  775. package/dist/types/utils/locale.d.ts +1 -0
  776. package/dist/types/utils/number.d.ts +16 -0
  777. package/hydrate/index.js +84 -33
  778. package/package.json +4 -4
  779. package/readme.md +2 -2
  780. package/dist/calcite/p-0cea421a.entry.js +0 -6
  781. package/dist/calcite/p-1a41e999.system.js +0 -6
  782. package/dist/calcite/p-257a88b7.js +0 -6
  783. package/dist/calcite/p-27d329a5.entry.js +0 -6
  784. package/dist/calcite/p-388aa230.entry.js +0 -6
  785. package/dist/calcite/p-3fe4004f.entry.js +0 -6
  786. package/dist/calcite/p-4d41b90e.js +0 -6
  787. package/dist/calcite/p-4fd99cd6.system.js +0 -6
  788. package/dist/calcite/p-5feeee59.system.entry.js +0 -6
  789. package/dist/calcite/p-7029e37c.entry.js +0 -6
  790. package/dist/calcite/p-73d62a1e.js +0 -6
  791. package/dist/calcite/p-93799c84.js +0 -6
  792. package/dist/calcite/p-9ae158d9.entry.js +0 -6
  793. package/dist/calcite/p-9c62e05b.system.js +0 -6
  794. package/dist/calcite/p-b91c9315.entry.js +0 -6
  795. package/dist/calcite/p-c44484aa.system.js +0 -6
  796. package/dist/calcite/p-cdd5316c.system.entry.js +0 -6
  797. package/dist/calcite/p-d8e0fbd5.system.js +0 -6
  798. package/dist/calcite/p-e3be094f.entry.js +0 -6
  799. package/dist/calcite/p-e8e732b6.js +0 -6
  800. package/dist/calcite/p-eef03f2e.system.js +0 -6
  801. package/dist/calcite/p-f4ba5fb6.entry.js +0 -6
  802. package/dist/calcite/p-faf568dc.system.entry.js +0 -6
  803. package/dist/calcite/p-ffbed3fb.system.entry.js +0 -6
  804. package/dist/cjs/locale-80b9254a.js +0 -131
  805. package/dist/cjs/number-64bf4115.js +0 -85
  806. package/dist/components/number.js +0 -77
  807. package/dist/esm/locale-551a0e95.js +0 -126
  808. package/dist/esm/number-cb4048f3.js +0 -77
  809. package/dist/esm-es5/Heading-82d5894d.js +0 -6
  810. package/dist/esm-es5/locale-551a0e95.js +0 -6
  811. package/dist/esm-es5/number-cb4048f3.js +0 -6
@@ -1,3 +1,19 @@
1
+ export declare class BigDecimal {
2
+ value: bigint;
3
+ isNegative: boolean;
4
+ static DECIMALS: number;
5
+ static ROUNDED: boolean;
6
+ static SHIFT: bigint;
7
+ constructor(input: string | BigDecimal);
8
+ static _divRound(dividend: bigint, divisor: bigint): bigint;
9
+ static fromBigInt(bigint: bigint): bigint;
10
+ toString(): string;
11
+ formatToParts(locale: string, numberingSystem?: string): Intl.NumberFormatPart[];
12
+ add(num: string): bigint;
13
+ subtract(num: string): bigint;
14
+ multiply(num: string): bigint;
15
+ divide(num: string): bigint;
16
+ }
1
17
  export declare function isValidNumber(numberString: string): boolean;
2
18
  export declare function parseNumberString(numberString?: string): string;
3
19
  export declare function sanitizeDecimalString(decimalString: string): string;
package/hydrate/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.489
4
+ * v1.0.0-next.491
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  /*!
11
- Stencil Mock Doc v2.16.0 | MIT Licensed | https://stenciljs.com
11
+ Stencil Mock Doc v2.16.1 | MIT Licensed | https://stenciljs.com
12
12
  */
13
13
  const CONTENT_REF_ID = 'r';
14
14
  const ORG_LOCATION_ID = 'o';
@@ -4273,9 +4273,11 @@ function cloneDocument(srcDoc) {
4273
4273
  const dstWin = cloneWindow(srcDoc.defaultView);
4274
4274
  return dstWin.document;
4275
4275
  }
4276
+ // TODO(STENCIL-345) - Evaluate reconciling MockWindow, Window differences
4276
4277
  /**
4277
4278
  * Constrain setTimeout() to 1ms, but still async. Also
4278
4279
  * only allow setInterval() to fire once, also constrained to 1ms.
4280
+ * @param win the mock window instance to update
4279
4281
  */
4280
4282
  function constrainTimeouts(win) {
4281
4283
  win.__allowInterval = false;
@@ -4810,9 +4812,9 @@ function hydrateApp(e, t, o, n, s) {
4810
4812
  enumerable: !0
4811
4813
  });
4812
4814
  } else 64 & l && Object.defineProperty(e, n, {
4813
- value() {
4814
- const e = getHostRef(this), t = arguments;
4815
- return e.$onInstancePromise$.then((() => e.$lazyInstance$[n].apply(e.$lazyInstance$, t))).catch(consoleError);
4815
+ value(...e) {
4816
+ const t = getHostRef(this);
4817
+ return t.$onInstancePromise$.then((() => t.$lazyInstance$[n](...e))).catch(consoleError);
4816
4818
  }
4817
4819
  });
4818
4820
  }));
@@ -8984,7 +8986,7 @@ function constrainHeadingLevel(level) {
8984
8986
  const Heading = (props, children) => {
8985
8987
  const HeadingTag = `h${props.level}`;
8986
8988
  delete props.level;
8987
- return hAsync(HeadingTag, Object.assign({}, props), children);
8989
+ return hAsync(HeadingTag, { ...props }, children);
8988
8990
  };
8989
8991
 
8990
8992
  const blockCss = "@-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-block: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-block{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-block{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-block{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-block{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-block{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-block-h{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-block-h *.sc-calcite-block{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host*/.sc-calcite-block-h{--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*/.sc-calcite-block:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-block-h{display:none}/*!@:host*/.sc-calcite-block-h{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;-webkit-transition-property:margin;transition-property:margin;-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;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);-ms-flex-preferred-size:auto;flex-basis:auto}/*!@:host([disabled])*/[disabled].sc-calcite-block-h{pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-block-h[disabled] .sc-calcite-block-s>[calcite-hydrated][disabled],[disabled].sc-calcite-block-h [calcite-hydrated][disabled].sc-calcite-block{opacity:1}/*!@.header*/.header.sc-calcite-block{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-block{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-block .heading.sc-calcite-block{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}/*!@h1.heading*/h1.heading.sc-calcite-block{font-size:var(--calcite-font-size-2);line-height:1.5rem}/*!@h2.heading*/h2.heading.sc-calcite-block{font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@h3.heading*/h3.heading.sc-calcite-block{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@h4.heading, h5.heading*/h4.heading.sc-calcite-block,h5.heading.sc-calcite-block{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.header*/.header.sc-calcite-block{-ms-flex-pack:start;justify-content:flex-start;padding:0px}/*!@.header,\n.toggle*/.header.sc-calcite-block,.toggle.sc-calcite-block{grid-area:header}/*!@.header-container*/.header-container.sc-calcite-block{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}/*!@.toggle*/.toggle.sc-calcite-block{margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}/*!@.toggle:hover*/.toggle.sc-calcite-block:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.toggle:focus*/.toggle.sc-calcite-block:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@calcite-loader[inline]*/calcite-loader[inline].sc-calcite-block{grid-area:control;align-self:center}/*!@calcite-handle*/calcite-handle.sc-calcite-block{grid-area:handle}/*!@.title*/.title.sc-calcite-block{margin:0px;padding:0.75rem}/*!@.header .title .heading*/.header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);-webkit-transition-property:color;transition-property:color;-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);word-wrap:break-word;word-break:break-word}/*!@.summary*/.summary.sc-calcite-block{margin-top:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}/*!@.icon*/.icon.sc-calcite-block{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem;-webkit-margin-end:0px;margin-inline-end:0px;margin-block:0.75rem}/*!@.status-icon.valid*/.status-icon.valid.sc-calcite-block{color:var(--calcite-ui-success)}/*!@.status-icon.invalid*/.status-icon.invalid.sc-calcite-block{color:var(--calcite-ui-danger)}/*!@.status-icon.loading*/.status-icon.loading.sc-calcite-block{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}/*!@.toggle-icon*/.toggle-icon.sc-calcite-block{margin-top:0.75rem;margin-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-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-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:auto;margin-inline-start:auto}/*!@.toggle:hover .toggle-icon*/.toggle.sc-calcite-block:hover .toggle-icon.sc-calcite-block{color:var(--calcite-ui-text-1)}/*!@.content*/.content.sc-calcite-block{position:relative}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@.content*/.content.sc-calcite-block{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}/*!@.control-container*/.control-container.sc-calcite-block{margin:0px;display:-ms-flexbox;display:flex;grid-area:control}/*!@calcite-action-menu*/calcite-action-menu.sc-calcite-block{grid-area:menu}/*!@:host([open])*/[open].sc-calcite-block-h{margin-top:0.5rem;margin-bottom:0.5rem}/*!@:host([open]) .header .title .heading*/[open].sc-calcite-block-h .header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{color:var(--calcite-ui-text-1)}";
@@ -16515,6 +16517,72 @@ function isActivationKey(key) {
16515
16517
  }
16516
16518
  const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
16517
16519
 
16520
+ // regex for number sanitization
16521
+ const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
16522
+ const decimalOnlyAtEndOfString = /(?!^\.)\.$/;
16523
+ const allHyphensExceptTheStart = /(?!^-)-/g;
16524
+ const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
16525
+ // adopted from https://stackoverflow.com/a/66939244
16526
+ class BigDecimal {
16527
+ constructor(input) {
16528
+ if (input instanceof BigDecimal) {
16529
+ return input;
16530
+ }
16531
+ const [integers, decimals] = String(input).split(".").concat("");
16532
+ this.value =
16533
+ BigInt(integers + decimals.padEnd(BigDecimal.DECIMALS, "0").slice(0, BigDecimal.DECIMALS)) +
16534
+ BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
16535
+ this.isNegative = input.charAt(0) === "-";
16536
+ }
16537
+ static _divRound(dividend, divisor) {
16538
+ return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
16539
+ }
16540
+ static fromBigInt(bigint) {
16541
+ return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
16542
+ }
16543
+ toString() {
16544
+ const s = this.value
16545
+ .toString()
16546
+ .replace(new RegExp("-", "g"), "")
16547
+ .padStart(BigDecimal.DECIMALS + 1, "0");
16548
+ const i = s.slice(0, -BigDecimal.DECIMALS);
16549
+ const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
16550
+ const value = i.concat(d.length ? "." + d : "");
16551
+ return (this.isNegative ? "-" : "").concat(value);
16552
+ }
16553
+ formatToParts(locale, numberingSystem) {
16554
+ const formatter = createLocaleNumberFormatter(locale, numberingSystem);
16555
+ const s = this.value
16556
+ .toString()
16557
+ .replace(new RegExp("-", "g"), "")
16558
+ .padStart(BigDecimal.DECIMALS + 1, "0");
16559
+ const i = s.slice(0, -BigDecimal.DECIMALS);
16560
+ const d = s.slice(-BigDecimal.DECIMALS).replace(/\.?0+$/, "");
16561
+ const parts = formatter.formatToParts(BigInt(i));
16562
+ this.isNegative && parts.unshift({ type: "minusSign", value: getMinusSign(locale) });
16563
+ if (d.length) {
16564
+ parts.push({ type: "decimal", value: getDecimalSeparator(locale) });
16565
+ d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
16566
+ }
16567
+ return parts;
16568
+ }
16569
+ add(num) {
16570
+ return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
16571
+ }
16572
+ subtract(num) {
16573
+ return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
16574
+ }
16575
+ multiply(num) {
16576
+ return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
16577
+ }
16578
+ divide(num) {
16579
+ return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
16580
+ }
16581
+ }
16582
+ // Configuration: constants
16583
+ BigDecimal.DECIMALS = 100; // number of decimals on all instances
16584
+ BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
16585
+ BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
16518
16586
  function isValidNumber(numberString) {
16519
16587
  return !(!numberString || isNaN(Number(numberString)));
16520
16588
  }
@@ -16537,29 +16605,25 @@ function parseNumberString(numberString) {
16537
16605
  return numberKeys.includes(value);
16538
16606
  })
16539
16607
  .reduce((string, part) => string + part);
16540
- return isValidNumber(result) ? Number(result).toString() : "";
16608
+ return isValidNumber(result) ? new BigDecimal(result).toString() : "";
16541
16609
  });
16542
16610
  }
16543
16611
  function sanitizeDecimalString(decimalString) {
16544
- const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
16545
- return decimalString.replace(decimalAtEndOfStringButNotStart, "");
16612
+ return decimalString.replace(decimalOnlyAtEndOfString, "");
16546
16613
  }
16547
16614
  function sanitizeNegativeString(negativeString) {
16548
- const allHyphensExceptTheStart = /(?!^-)-/g;
16549
16615
  return negativeString.replace(allHyphensExceptTheStart, "");
16550
16616
  }
16551
16617
  function sanitizeLeadingZeroString(zeroString) {
16552
- const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
16553
16618
  return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
16554
16619
  }
16555
16620
  function sanitizeNumberString(numberString) {
16556
16621
  return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
16557
16622
  const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
16558
- const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
16559
16623
  return isValidNumber(sanitizedValue)
16560
16624
  ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
16561
16625
  ? sanitizedValue
16562
- : Number(sanitizedValue).toString()
16626
+ : new BigDecimal(sanitizedValue).toString()
16563
16627
  : nonExpoNumString;
16564
16628
  });
16565
16629
  }
@@ -16623,10 +16687,9 @@ function getMinusSign(locale) {
16623
16687
  function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
16624
16688
  return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
16625
16689
  if (nonExpoNumString) {
16626
- const number = Number(sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, "")));
16627
- if (!isNaN(number)) {
16628
- const formatter = createLocaleNumberFormatter(locale, numberingSystem);
16629
- const parts = formatter.formatToParts(number);
16690
+ const sanitizedNumberString = sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, ""));
16691
+ if (isValidNumber(sanitizedNumberString)) {
16692
+ const parts = new BigDecimal(sanitizedNumberString).formatToParts(locale, numberingSystem);
16630
16693
  const localizedNumberString = parts
16631
16694
  .map(({ type, value }) => {
16632
16695
  switch (type) {
@@ -21789,7 +21852,7 @@ class Loader {
21789
21852
  };
21790
21853
  const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };
21791
21854
  const determinateStyle = { "stroke-dasharray": `${progress} ${remaining}` };
21792
- return (hAsync(Host, Object.assign({ "aria-label": label, id: id, role: "progressbar" }, (isDeterminate ? hostAttributes : {})), hAsync("div", { class: "loader__svgs" }, hAsync("svg", { class: "loader__svg loader__svg--1", viewBox: viewbox }, hAsync("circle", Object.assign({}, svgAttributes))), hAsync("svg", { class: "loader__svg loader__svg--2", viewBox: viewbox }, hAsync("circle", Object.assign({}, svgAttributes))), hAsync("svg", Object.assign({ class: "loader__svg loader__svg--3", viewBox: viewbox }, (isDeterminate ? { style: determinateStyle } : {})), hAsync("circle", Object.assign({}, svgAttributes)))), text && hAsync("div", { class: "loader__text" }, text), isDeterminate && hAsync("div", { class: "loader__percentage" }, value)));
21855
+ return (hAsync(Host, { "aria-label": label, id: id, role: "progressbar", ...(isDeterminate ? hostAttributes : {}) }, hAsync("div", { class: "loader__svgs" }, hAsync("svg", { class: "loader__svg loader__svg--1", viewBox: viewbox }, hAsync("circle", { ...svgAttributes })), hAsync("svg", { class: "loader__svg loader__svg--2", viewBox: viewbox }, hAsync("circle", { ...svgAttributes })), hAsync("svg", { class: "loader__svg loader__svg--3", viewBox: viewbox, ...(isDeterminate ? { style: determinateStyle } : {}) }, hAsync("circle", { ...svgAttributes }))), text && hAsync("div", { class: "loader__text" }, text), isDeterminate && hAsync("div", { class: "loader__percentage" }, value)));
21793
21856
  }
21794
21857
  //--------------------------------------------------------------------------
21795
21858
  //
@@ -23394,21 +23457,9 @@ function getItemData() {
23394
23457
  }));
23395
23458
  }
23396
23459
 
23397
- var __rest = (undefined && undefined.__rest) || function (s, e) {
23398
- var t = {};
23399
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
23400
- t[p] = s[p];
23401
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
23402
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23403
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23404
- t[p[i]] = s[p[i]];
23405
- }
23406
- return t;
23407
- };
23408
- const List = (_a) => {
23409
- var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
23460
+ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, setFilterEl }, ...rest }) => {
23410
23461
  const defaultSlot = hAsync("slot", null);
23411
- return (hAsync(Host, Object.assign({ "aria-busy": toAriaBoolean(loading), role: "menu" }, rest),
23462
+ return (hAsync(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
23412
23463
  hAsync("section", null,
23413
23464
  hAsync("header", { class: { [CSS$j.sticky]: true } },
23414
23465
  filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
@@ -32810,7 +32861,7 @@ class TooltipManager$1 {
32810
32861
  document.addEventListener("mouseover", this.mouseEnterShow, { capture: true });
32811
32862
  document.addEventListener("mouseout", this.mouseLeaveHide, { capture: true });
32812
32863
  document.addEventListener("pointerdown", this.clickHandler, { capture: true });
32813
- document.addEventListener("focusin", this.focusShow), { capture: true };
32864
+ document.addEventListener("focusin", this.focusShow, { capture: true });
32814
32865
  document.addEventListener("focusout", this.blurHide, { capture: true });
32815
32866
  }
32816
32867
  removeListeners() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.489",
3
+ "version": "1.0.0-next.491",
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
  "dependencies": {
63
63
  "@a11y/focus-trap": "1.0.5",
64
64
  "@popperjs/core": "2.11.5",
65
- "@stencil/core": "2.16.0",
65
+ "@stencil/core": "2.16.1",
66
66
  "@types/color": "3.0.3",
67
67
  "color": "4.2.3",
68
68
  "form-request-submit-polyfill": "2.0.0",
@@ -80,7 +80,7 @@
80
80
  "@stencil/sass": "1.5.2",
81
81
  "@stencil/state-tunnel": "^1.0.1",
82
82
  "@storybook/addon-a11y": "6.5.6",
83
- "@storybook/addon-docs": "6.5.6",
83
+ "@storybook/addon-docs": "6.5.8",
84
84
  "@storybook/addon-knobs": "6.4.0",
85
85
  "@storybook/html": "6.5.6",
86
86
  "@storybook/storybook-deployer": "2.8.11",
@@ -122,7 +122,7 @@
122
122
  "jest": "26.6.3",
123
123
  "jest-axe": "6.0.0",
124
124
  "jest-cli": "26.6.3",
125
- "lint-staged": "13.0.0",
125
+ "lint-staged": "13.0.1",
126
126
  "pify": "5.0.0",
127
127
  "postcss": "8.4.14",
128
128
  "prettier": "2.6.2",
package/readme.md CHANGED
@@ -12,12 +12,12 @@ The most common approach for loading Calcite Components is to use the version ho
12
12
  ```html
13
13
  <script
14
14
  type="module"
15
- src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.82/dist/calcite/calcite.esm.js"
15
+ src="https://unpkg.com/@esri/calcite-components@1.0.0-beta.83/dist/calcite/calcite.esm.js"
16
16
  ></script>
17
17
  <link
18
18
  rel="stylesheet"
19
19
  type="text/css"
20
- href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.82/dist/calcite/calcite.css"
20
+ href="https://unpkg.com/@esri/calcite-components@1.0.0-beta.83/dist/calcite/calcite.css"
21
21
  />
22
22
  ```
23
23
 
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- import{r as t,c as i,h as a,H as e,g as n}from"./p-3b85836e.js";import{T as s,d as r,a as o,b as c,g as l,s as h,p,i as m}from"./p-d756a734.js";import{c as d,d as u,g as f}from"./p-bcc081c2.js";import{s as b,c as w,d as v,H as y}from"./p-3433c180.js";import{d as g,f as k,u as x,C as D,c as C,p as I}from"./p-a9a4b7f4.js";import{u as P}from"./p-e8e9a037.js";import{t as A}from"./p-513aeb64.js";import"./p-73d62a1e.js";import"./p-93799c84.js";import"./p-c6a244cf.js";const _=class{constructor(a){t(this,a),this.calciteDatePickerChange=i(this,"calciteDatePickerChange",7),this.calciteDatePickerRangeChange=i(this,"calciteDatePickerRangeChange",7),this.calciteInputDatePickerChange=i(this,"calciteInputDatePickerChange",7),this.calciteInternalInputDatePickerOpen=i(this,"calciteInternalInputDatePickerOpen",7),this.calciteInternalInputDatePickerClose=i(this,"calciteInternalInputDatePickerClose",7),this.disabled=!1,this.active=!1,this.intlPrevMonth=s.prevMonth,this.intlNextMonth=s.nextMonth,this.intlYear=s.year,this.locale=document.documentElement.lang||"en",this.scale="m",this.placement=g,this.range=!1,this.required=!1,this.overlayPositioning="absolute",this.proximitySelectionDisabled=!1,this.layout="horizontal",this.focusedInput="start",this.activeTransitionProp="opacity",this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?k(i,t):null},this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.active?this.calciteInternalInputDatePickerOpen.emit():this.calciteInternalInputDatePickerClose.emit())},this.setStartInput=t=>{this.startInput=t},this.setEndInput=t=>{this.endInput=t},this.deactivate=()=>{this.active=!1},this.keyDownHandler=t=>{"Enter"!==t.key||t.defaultPrevented||b(this)},this.keyUpHandler=t=>{"Escape"===t.key&&(this.active=!1)},this.inputBlur=t=>{this.blur(t.detail)},this.startInputFocus=()=>{this.active=!0,this.focusedInput="start"},this.endInputFocus=()=>{this.active=!0,this.focusedInput="end"},this.inputInput=t=>{this.input(t.detail.value)},this.setMenuEl=t=>{t&&(this.menuEl=t,this.createPopper())},this.setStartWrapper=t=>{this.startWrapper=t,this.setReferenceEl()},this.setEndWrapper=t=>{this.endWrapper=t,this.setReferenceEl()},this.handleDateChange=t=>{this.range||(this.value=r(t.detail))},this.handleDateRangeChange=t=>{var i,a;if(!this.range||!t.detail)return;const{startDate:e,endDate:n}=t.detail;this.start=r(e),this.end=r(n),this.value=[this.start,this.end],this.shouldFocusRangeEnd()?null===(i=this.endInput)||void 0===i||i.setFocus():this.shouldFocusRangeStart()&&(null===(a=this.startInput)||void 0===a||a.setFocus())}}handleDisabledChange(t){t||(this.active=!1)}valueHandler(t){Array.isArray(t)?(this.valueAsDate=t.map((t=>o(t))),this.start=t[0],this.end=t[1]):t?(this.valueAsDate=o(t),this.start="",this.end=""):(this.valueAsDate=void 0,this.start=void 0,this.end=void 0)}flipPlacementsHandler(){this.setFilteredPlacements()}onMinChanged(t){t&&(this.minAsDate=o(t))}onMaxChanged(t){t&&(this.maxAsDate=o(t))}activeHandler(){this.disabled?this.active=!1:this.reposition()}handleDateOrRangeChange(){this.calciteInputDatePickerChange.emit()}calciteDaySelectHandler(){this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()||(this.active=!1)}async setFocus(){var t;null===(t=this.startInput)||void 0===t||t.setFocus()}async reposition(){const{placement:t,popper:i,menuEl:a}=this,e=this.getModifiers();i?await x({el:a,modifiers:e,placement:t,popper:i}):this.createPopper()}connectedCallback(){Array.isArray(this.value)?(this.valueAsDate=this.value.map((t=>o(t))),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=o(this.value),this.start="",this.end=""),this.start&&(this.startAsDate=o(this.start)),this.end&&(this.endAsDate=o(this.end)),this.min&&(this.minAsDate=o(this.min)),this.max&&(this.maxAsDate=o(this.max)),this.createPopper(),d(this),w(this),this.setFilteredPlacements()}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}disconnectedCallback(){this.destroyPopper(),u(this),v(this)}componentDidRender(){P(this)}render(){var t,i;const{disabled:n}=this,s=c(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate),r=this.range?c(this.endAsDate,this.minAsDate,this.maxAsDate):null,o=r?r.toLocaleDateString(this.locale):"",l=s?s.toLocaleDateString(this.locale):"";return a(e,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler,onKeyUp:this.keyUpHandler,role:"application"},this.localeData&&a("div",{"aria-expanded":A(this.active),class:"input-container",role:"application"},a("div",{class:"input-wrapper",ref:this.setStartWrapper},a("calcite-input",{class:"input "+("vertical"===this.layout&&this.range?"no-bottom-border":""),disabled:n,icon:"calendar",label:f(this),"number-button-type":"none",onCalciteInputInput:this.inputInput,onCalciteInternalInputBlur:this.inputBlur,onCalciteInternalInputFocus:this.startInputFocus,placeholder:null===(t=this.localeData)||void 0===t?void 0:t.placeholder,ref:this.setStartInput,scale:this.scale,type:"text",value:l})),a("div",{"aria-hidden":A(!this.active),class:{"menu-container":!0,"menu-container--active":this.active},ref:this.setMenuEl},a("div",{class:{"calendar-picker-wrapper":!0,"calendar-picker-wrapper--end":"end"===this.focusedInput,[D.animation]:!0,[D.animationActive]:this.active},onTransitionEnd:this.transitionEnd},a("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&&"horizontal"===this.layout&&a("div",{class:"horizontal-arrow-container"},a("calcite-icon",{flipRtl:!0,icon:"arrow-right",scale:"s"})),this.range&&"vertical"===this.layout&&"s"!==this.scale&&a("div",{class:"vertical-arrow-container"},a("calcite-icon",{icon:"arrow-down",scale:"s"})),this.range&&a("div",{class:"input-wrapper",ref:this.setEndWrapper},a("calcite-input",{class:{input:!0,"border-top-color-one":"vertical"===this.layout&&this.range},disabled:n,icon:"calendar","number-button-type":"none",onCalciteInputInput:this.inputInput,onCalciteInternalInputBlur:this.inputBlur,onCalciteInternalInputFocus:this.endInputFocus,placeholder:null===(i=this.localeData)||void 0===i?void 0:i.placeholder,ref:this.setEndInput,scale:this.scale,type:"text",value:o}))),a(y,{component:this}))}setReferenceEl(){const{focusedInput:t,layout:i,endWrapper:a,startWrapper:e}=this;this.referenceEl="end"===t||"vertical"===i?a||e:e||a,this.createPopper()}onLabelClick(){this.setFocus()}getModifiers(){const t={name:"flip",enabled:!0};return t.options={fallbackPlacements:this.filteredFlipPlacements||I},[t,{name:"eventListeners",enabled:this.active}]}createPopper(){this.destroyPopper();const{menuEl:t,placement:i,referenceEl:a,overlayPositioning:e}=this;if(!t||!a)return;const n=this.getModifiers();this.popper=C({el:t,modifiers:n,overlayPositioning:e,placement:i,referenceEl:a})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}startWatcher(t){this.startAsDate=o(t)}endWatcher(t){this.endAsDate=o(t)}async loadLocaleData(){const{locale:t}=this;this.localeData=await l(t)}clearCurrentValue(){if(!this.range)return"string"==typeof this.value&&this.value&&this.calciteDatePickerChange.emit(),void(this.value="");const{focusedInput:t}=this;"start"===t?(this.start&&this.calciteDatePickerRangeChange.emit(),this.value=Array.isArray(this.value)?["",this.value[1]||""]:[""],this.start=void 0):"end"===t&&(this.end&&this.calciteDatePickerRangeChange.emit(),this.value=Array.isArray(this.value)?[this.value[0]||"",""]:["",""],this.end=void 0)}input(t){const i=this.getDateFromInput(t);if(!i)return void this.clearCurrentValue();if(!this.range)return this.value=r(i),void this.calciteDatePickerChange.emit(i);const{focusedInput:a}=this;if("start"===a){if(!this.startAsDate||!h(i,this.startAsDate)){const t=r(i);this.value=Array.isArray(this.value)?[t,this.value[1]||""]:[t],this.start=t,this.calciteDatePickerRangeChange.emit({startDate:i,endDate:this.endAsDate})}}else if(!("end"!==a||this.endAsDate&&h(i,this.endAsDate))){const t=r(i);this.value=Array.isArray(this.value)?[this.value[0]||"",t]:["",t],this.end=t,this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:i})}}blur(t){const{locale:i,focusedInput:a,endAsDate:e,range:n,startAsDate:s,valueAsDate:r}=this;this.getDateFromInput(t.value)||(!n&&r?t.value=Array.isArray(r)?r["end"===a?1:0].toLocaleDateString(i):r.toLocaleDateString(i):"start"===a&&s?t.value=s.toLocaleDateString(i):"end"===a&&e&&(t.value=e.toLocaleDateString(i)))}shouldFocusRangeStart(){return!(!this.endAsDate||this.startAsDate||"end"!==this.focusedInput||!this.startInput)}shouldFocusRangeEnd(){return!(!this.startAsDate||this.endAsDate||"start"!==this.focusedInput||!this.endInput)}getDateFromInput(t){if(!this.localeData)return!1;const{separator:i}=this.localeData,{day:a,month:e,year:n}=p(t,this.localeData),s=a>0,r=e>-1,o=new Date(n,e,a);o.setFullYear(n);const c=!isNaN(o.getTime()),l=t.split(i).filter((t=>t)).length>2,h=n.toString().length>0;return!!(s&&r&&c&&l&&h&&m(o,this.min,this.max))&&o}get el(){return n(this)}static get watchers(){return{disabled:["handleDisabledChange"],value:["valueHandler"],flipPlacements:["flipPlacementsHandler"],min:["onMinChanged"],max:["onMaxChanged"],active:["activeHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}}};_.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--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([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.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);visibility:hidden;pointer-events:none}.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}.menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .menu-container{pointer-events:initial;visibility:visible}.menu-container--active .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}.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;-webkit-padding-start:0.75rem;padding-inline-start: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}";export{_ as calcite_input_date_picker}
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- System.register([],(function(r){"use strict";return{execute:function(){r({a:o,b:i,c:e,i:t,p:u,s:f});function e(r){return r==="Enter"||r===" "}var n=r("n",["0","1","2","3","4","5","6","7","8","9"]);function t(r){return!(!r||isNaN(Number(r)))}function u(r){if(!r||!s(r)){return""}return o(r,(function(r){var e=false;var u=r.split("").filter((function(r,t){if(r.match(/\./g)&&!e){e=true;return true}if(r.match(/\-/g)&&t===0){return true}return n.includes(r)})).reduce((function(r,e){return r+e}));return t(u)?Number(u).toString():""}))}function i(r){var e=/(?!^\.)\.$/;return r.replace(e,"")}function c(r){var e=/(?!^-)-/g;return r.replace(e,"")}function a(r){var e=/^([-0])0+(?=\d)/;return r.replace(e,"$1")}function f(r){return o(r,(function(r){var e=c(i(a(r)));var n=/^-\b0\b\.?0*$/;return t(e)?n.test(e)?e:Number(e).toString():r}))}function o(r,e){if(!r){return r}var n=r.toLowerCase().indexOf("e")+1;return r.replace(/[eE]*$/g,"").substring(0,n).concat(r.slice(n).replace(/[eE]/g,"")).split(/[eE]/).map((function(r,n){return n===1?e(r.replace(/\./g,"")):e(r)})).join("e").replace(/^e/,"1e")}function s(r){return n.some((function(e){return r.includes(e)}))}}}}));
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- import{f as t,g as i,t as s}from"./p-513aeb64.js";import{g as n}from"./p-85add826.js";import{d as e}from"./p-52ee0a9a.js";import{h as o,H as a}from"./p-3b85836e.js";const r={heading:"heading",container:"container",indented:"container--indented"},c={parentItem:"parent-item"},l=3;function h(){this.setUpItems(),this.setUpFilter(),this.deselectRemovedItems()}const u=["ArrowUp","ArrowDown"];function d(){this.setUpItems(),this.setUpFilter(),this.emitCalciteListChange=e(F.bind(this),0)}function f(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}function m(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}function p(i){const{selectedValues:s}=this,{item:n,value:e,selected:o,shiftPressed:a}=i.detail;o?(this.multiple&&a&&this.selectSiblings(n),this.multiple||this.deselectSiblingItems(n),s.set(e,n)):(s.delete(e),this.multiple&&a&&this.selectSiblings(n,!0)),this.multiple||(A(n,o),o&&t(n)),this.lastSelectedItem=n,this.emitCalciteListChange()}function v(t){const i=t.detail.oldValue,s=this.selectedValues;if(s.has(i)){const n=s.get(i);s.delete(i),s.set(t.detail.newValue,n)}t.stopPropagation()}function b(t){const{el:i,items:s,multiple:n,selectedValues:e}=this;n||i.contains(t.relatedTarget)||w(s).forEach((i=>{A(i,0===e.size?i.contains(t.target)||t.target===i:i.selected)}))}function g(i){const{key:s,target:n}=i;if(!function(t){return!!u.find((i=>i===t))}(s))return;const{items:e,multiple:o,selectionFollowsFocus:a}=this,{length:r}=e,c=e.indexOf(n);if(!r||-1===c)return;i.preventDefault();const l=e[j(this,n,"ArrowUp"===s?"up":"down")];e.forEach((t=>A(t,t===l))),!o&&a&&(l.selected=!0),t(l)}function j(t,i,s){const{items:e}=t,{length:o}=e,a=e.indexOf(i),r="up"===s?-1:1;let c=1,l=n(a+r*c++,o);const h=l;for(;e[l].disabled&&(l=n(a+r*c++,o),l!==h););return l}function w(t){return t.filter((t=>!t.disabled))}function F(){this.calciteListChange.emit(this.selectedValues)}function y(t){if(t.defaultPrevented)return;const i=t.target,s=this.selectedValues;"CALCITE-PICK-LIST-GROUP"===i.parentElement.tagName&&i.slot===c.parentItem?(i.parentElement.remove(),Array.from(i.parentElement.children).forEach((t=>s.delete(t.value)))):(i.remove(),s.delete(i.value)),this.emitCalciteListChange()}function A(t,i){t.disabled||(i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1"))}async function C(i){var s;if(this.filterEnabled&&"filter"===i)return void await t(this.filterEl);const{items:n,multiple:e,selectionFollowsFocus:o}=this;if(0===n.length)return;if(e)return null===(s=w(n)[0])||void 0===s?void 0:s.setFocus();const a=w(n),r=a.find((t=>t.selected))||a[0];return o&&r&&(r.selected=!0),r.setFocus()}function k(t){this.items=Array.from(this.el.querySelectorAll(t));let i=!1;const{items:s}=this;s.forEach((t=>{t.icon=this.getIconType(),this.multiple||(t.disableDeselect=!0,A(t,!1)),t.selected&&(i=!0,A(t,!0),this.selectedValues.set(t.value,t))}));const[n]=s;i||!n||n.disabled||A(n,!0)}function x(){const t=this.selectedValues,i=this.items.map((({value:t})=>t));t.forEach((t=>{i.includes(t.value)||this.selectedValues.delete(t.value)}))}function I(t){this.items.forEach((i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))}))}function O(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,n=s.findIndex((t=>t.value===this.lastSelectedItem.value)),e=s.findIndex((i=>i.value===t.value));s.slice(Math.min(n,e),Math.max(n,e)).forEach((t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)}))}let E;function S(t){const{filteredItems:s}=t.currentTarget,n=s.map((t=>t.value));let e=!1;E||(E=new Set);const o=this.items.filter((t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&E.add(i);const s=n.includes(t.value);return t.hidden=!s,e||(e=s&&t.selected),s}));E.forEach((t=>{const s=o.some((i=>t.contains(i)));if(t.hidden=!s,!s)return;const n=i(t,"parent-item");n&&(n.hidden=!1,o.includes(n)&&Array.from(t.children).forEach((t=>t.hidden=!1)))})),E.clear(),o.length>0&&!e&&!this.multiple&&A(o[0],!0)}function L(){return this.items.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value})))}var P;!function(t){t.circle="circle",t.square="square",t.grip="grip"}(P||(P={}));const T=t=>{var{props:{disabled:i,loading:n,filterEnabled:e,dataForFilter:r,handleFilter:c,filterPlaceholder:l,setFilterEl:h}}=t,u=function(t,i){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(s[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(n=Object.getOwnPropertySymbols(t);e<n.length;e++)i.indexOf(n[e])<0&&Object.prototype.propertyIsEnumerable.call(t,n[e])&&(s[n[e]]=t[n[e]])}return s}(t,["props"]);const d=o("slot",null);return o(a,Object.assign({"aria-busy":s(n),role:"menu"},u),o("section",null,o("header",{class:{"sticky-pos":!0}},e?o("calcite-filter",{"aria-label":l,disabled:n||i,items:r,onCalciteFilterChange:c,placeholder:l,ref:h}):null,o("slot",{name:"menu-actions"})),n?o("calcite-scrim",{loading:n}):null,d))},U={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"},q={checked:"check",remove:"x"},D={actionsEnd:"actions-end",actionsStart:"actions-start"},H={remove:"Remove"};export{U as C,l as H,P as I,T as L,D as S,H as T,I as a,j as b,f as c,x as d,m as e,b as f,L as g,S as h,d as i,p as j,g as k,v as l,h as m,k as n,C as o,c as p,r as q,y as r,O as s,q as t}
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- import{r as t,c as i,h as e,H as a,g as n}from"./p-3b85836e.js";import{g as s}from"./p-c6a244cf.js";import{i as r,n as o,c}from"./p-93799c84.js";import{c as l,d as h,g as u}from"./p-bcc081c2.js";import{s as m,c as d,d as p,H as f}from"./p-3433c180.js";import{u as b}from"./p-e8e9a037.js";import"./p-513aeb64.js";function w(t,i=!0){try{const e={hour:"2-digit",minute:"2-digit",timeZone:"UTC"};return i&&(e.second="2-digit"),new Intl.DateTimeFormat(t,e)}catch(i){throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${t}`)}}function k(t){const i=t.toString();return t>=0&&t<=9?i.padStart(2,"0"):i}function v(t){return g("meridiem",w(t).formatToParts(new Date(Date.UTC(0,0,0,0,0,0))))?"12":"24"}function g(t,i){var e,a,n,s;if(!t||!i)return null;if("hourSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"hour"===t))),a=i.indexOf(i.find((({type:t})=>"minute"===t))),n=i[t+1];return n&&"literal"===n.type&&a-t==2&&(null===(e=n.value)||void 0===e?void 0:e.trim())||null}if("minuteSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"minute"===t))),e=i.indexOf(i.find((({type:t})=>"second"===t))),n=i[t+1];return n&&"literal"===n.type&&e-t==2&&(null===(a=n.value)||void 0===a?void 0:a.trim())||null}if("secondSuffix"===t){const t=i.indexOf(i.find((({type:t})=>"second"===t))),e=i[t+1];return e&&"literal"===e.type&&(null===(n=e.value)||void 0===n?void 0:n.trim())||null}return(null===(s=i.find((({type:i})=>"meridiem"==t?"dayPeriod"===i:i===t)))||void 0===s?void 0:s.value)||null}function x(t){if(!t||t.startsWith(":")||t.endsWith(":"))return!1;const i=t.split(":");if(!(i.length>1&&i.length<4))return!1;const[e,a,n]=i,s=parseInt(i[0]),o=parseInt(i[1]),c=parseInt(i[2]),l=r(e)&&s>=0&&s<24,h=r(a)&&o>=0&&o<60,u=r(n)&&c>=0&&c<60;return!!(l&&h&&!n||l&&h&&u)||void 0}function y(t,i,e){if(!function(t,i){if("meridiem"===i)return"AM"===t||"PM"===t;if(!r(t))return!1;const e=Number(t);return"hour"===i?e>=0&&e<24:e>=0&&e<60}(t,i))return;const a=parseInt(t),n=new Date(Date.UTC(0,0,0,"hour"===i?a:"meridiem"===i?"AM"===t?0:12:0,"minute"===i?a:0,"second"===i?a:0));return n?g(i,w(e).formatToParts(n)):void 0}function D(t,i="en",e=!0){if(!x(t))return null;const{hour:a,minute:n,second:s="0"}=M(t),r=new Date(Date.UTC(0,0,0,parseInt(a),parseInt(n),parseInt(s))),o=w(i,e);return(null==o?void 0:o.format(r))||null}function I(t,i="en"){if(!x(t))return null;const{hour:e,minute:a,second:n="0"}=M(t),s=new Date(Date.UTC(0,0,0,parseInt(e),parseInt(a),parseInt(n)));if(s){const t=w(i).formatToParts(s);return{localizedHour:g("hour",t),localizedHourSuffix:g("hourSuffix",t),localizedMinute:g("minute",t),localizedMinuteSuffix:g("minuteSuffix",t),localizedSecond:g("second",t),localizedSecondSuffix:g("secondSuffix",t),localizedMeridiem:g("meridiem",t)}}return null}function M(t){if(x(t)){const[i,e,a]=t.split(":");return{hour:i,minute:e,second:a}}return{hour:null,minute:null,second:null}}const S=class{constructor(e){t(this,e),this.calciteInputTimePickerChange=i(this,"calciteInputTimePickerChange",7),this.active=!1,this.disabled=!1,this.locale=document.documentElement.lang||navigator.language||"en",this.required=!1,this.scale="m",this.placement="auto",this.step=60,this.value=null,this.internalValueChange=!1,this.previousValidValue=null,this.referenceElementId=`input-time-picker-${s()}`,this.calciteInternalInputBlurHandler=()=>{this.active=!1;const t=this.shouldIncludeSeconds(),i=D(this.calciteInputEl.value,this.locale,t);this.setInputValue(i||D(this.value,this.locale,t))},this.calciteInternalInputFocusHandler=t=>{this.active=!0,t.stopPropagation()},this.calciteInputInputHandler=t=>{this.setValue({value:t.target.value})},this.timePickerChangeHandler=t=>{t.stopPropagation(),this.setValue({value:t.target.value,origin:"time-picker"}),t.stopPropagation()},this.keyDownHandler=t=>{"Enter"!==t.key||t.defaultPrevented||m(this)},this.setCalcitePopoverEl=t=>{this.popoverEl=t},this.setCalciteInputEl=t=>{this.calciteInputEl=t},this.setCalciteTimePickerEl=t=>{this.calciteTimePickerEl=t},this.setInputValue=t=>{this.calciteInputEl&&(this.calciteInputEl.value=t)},this.setValue=({value:t,origin:i="input"})=>{const e=this.value,a=function(t){if(!x(t))return null;const[i,e,a]=t.split(":"),n=k(parseInt(i)),s=k(parseInt(e));return a?`${n}:${s}:${k(parseInt(a))}`:`${n}:${s}`}(t),n=D(a,this.locale,this.shouldIncludeSeconds());this.internalValueChange="external"!==i&&"loading"!==i;const s="loading"!==i&&"external"!==i&&(t!==this.previousValidValue&&!t||!(this.previousValidValue||!a)||a!==this.previousValidValue&&a);t?(s&&(this.previousValidValue=a),a&&a!==this.value&&(this.value=a),this.localizedValue=n):(this.value=t,this.localizedValue=null),"time-picker"!==i&&"external"!==i||this.setInputValue(n),s&&(this.calciteInputTimePickerChange.emit().defaultPrevented?(this.internalValueChange=!1,this.value=e,this.setInputValue(e),this.previousValidValue=e):this.previousValidValue=a)}}activeHandler(){this.disabled?this.active=!1:this.reposition()}handleDisabledChange(t){t||(this.active=!1)}localeWatcher(t){this.setInputValue(D(this.value,t,this.shouldIncludeSeconds()))}valueWatcher(t){this.internalValueChange||this.setValue({value:t,origin:"external"}),this.internalValueChange=!1}clickHandler(t){t.composedPath().includes(this.calciteTimePickerEl)||this.setFocus()}keyUpHandler(t){"Escape"===t.key&&this.active&&(this.active=!1)}timePickerBlurHandler(t){t.preventDefault(),t.stopPropagation(),this.active=!1}timePickerFocusHandler(t){t.preventDefault(),t.stopPropagation(),this.active=!0}async setFocus(){this.calciteInputEl.setFocus()}async reposition(){var t;null===(t=this.popoverEl)||void 0===t||t.reposition()}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}connectedCallback(){this.value&&this.setValue({value:x(this.value)?this.value:void 0,origin:"loading"}),l(this),d(this)}componentDidLoad(){this.setInputValue(this.localizedValue)}disconnectedCallback(){h(this),p(this)}componentDidRender(){b(this)}render(){const t=`${this.referenceElementId}-popover`;return e(a,{onKeyDown:this.keyDownHandler},e("div",{"aria-controls":t,"aria-haspopup":"dialog","aria-label":this.name,"aria-owns":t,id:this.referenceElementId,role:"combobox"},e("calcite-input",{disabled:this.disabled,icon:"clock",label:u(this),onCalciteInputInput:this.calciteInputInputHandler,onCalciteInternalInputBlur:this.calciteInternalInputBlurHandler,onCalciteInternalInputFocus:this.calciteInternalInputFocusHandler,ref:this.setCalciteInputEl,scale:this.scale,step:this.step})),e("calcite-popover",{id:t,label:"Time Picker",open:this.active,placement:this.placement,ref:this.setCalcitePopoverEl,referenceElement:this.referenceElementId},e("calcite-time-picker",{intlHour:this.intlHour,intlHourDown:this.intlHourDown,intlHourUp:this.intlHourUp,intlMeridiem:this.intlMeridiem,intlMeridiemDown:this.intlMeridiemDown,intlMeridiemUp:this.intlMeridiemUp,intlMinute:this.intlMinute,intlMinuteDown:this.intlMinuteDown,intlMinuteUp:this.intlMinuteUp,intlSecond:this.intlSecond,intlSecondDown:this.intlSecondDown,intlSecondUp:this.intlSecondUp,lang:this.locale,onCalciteInternalTimePickerChange:this.timePickerChangeHandler,ref:this.setCalciteTimePickerEl,scale:this.scale,step:this.step,value:this.value})),e(f,{component:this}))}get el(){return n(this)}static get watchers(){return{active:["activeHandler"],disabled:["handleDisabledChange"],locale:["localeWatcher"],value:["valueWatcher"]}}};S.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::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}";const A={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",delimiter:"delimiter",hour:"hour",input:"input",meridiem:"meridiem",minute:"minute",second:"second",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},z=class{constructor(e){t(this,e),this.calciteInternalTimePickerBlur=i(this,"calciteInternalTimePickerBlur",7),this.calciteInternalTimePickerChange=i(this,"calciteInternalTimePickerChange",7),this.calciteInternalTimePickerFocus=i(this,"calciteInternalTimePickerFocus",7),this.intlHour="Hour",this.intlHourDown="Decrease hour",this.intlHourUp="Increase hour",this.intlMeridiem="AM/PM",this.intlMeridiemDown="Decrease AM/PM",this.intlMeridiemUp="Increase AM/PM",this.intlMinute="Minute",this.intlMinuteDown="Decrease minute",this.intlMinuteUp="Increase minute",this.intlSecond="Second",this.intlSecondDown="Decrease second",this.intlSecondUp="Increase second",this.locale=document.documentElement.lang||navigator.language||"en",this.scale="m",this.step=60,this.value=null,this.showSecond=this.step<60,this.decrementHour=()=>{const t=this.hour?"00"===this.hour?23:parseInt(this.hour)-1:0;this.setValuePart("hour",t)},this.decrementMeridiem=()=>{this.setValuePart("meridiem","PM"===this.meridiem?"AM":"PM")},this.decrementMinuteOrSecond=t=>{let i;if(r(this[t])){const e=parseInt(this[t]);i=0===e?59:e-1}else i=59;this.setValuePart(t,i)},this.decrementMinute=()=>{this.decrementMinuteOrSecond("minute")},this.decrementSecond=()=>{this.decrementMinuteOrSecond("second")},this.focusHandler=t=>{this.activeEl=t.currentTarget},this.hourDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementHour()},this.hourKeyDownHandler=t=>{const i=t.key;if(o.includes(i)){const t=parseInt(i);let e;if(r(this.hour))switch(this.hourCycle){case"12":e="01"===this.hour&&t>=0&&t<=2?`1${t}`:t;break;case"24":e="01"===this.hour?`1${t}`:"02"===this.hour&&t>=0&&t<=3?`2${t}`:t}else e=t;this.setValuePart("hour",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":t.preventDefault(),this.decrementHour();break;case"ArrowUp":t.preventDefault(),this.incrementHour();break;case" ":case"Spacebar":t.preventDefault()}},this.hourUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementHour()},this.incrementMeridiem=()=>{this.setValuePart("meridiem","AM"===this.meridiem?"PM":"AM")},this.incrementHour=()=>{const t=r(this.hour)?"23"===this.hour?0:parseInt(this.hour)+1:1;this.setValuePart("hour",t)},this.incrementMinuteOrSecond=t=>{const i=r(this[t])?"59"===this[t]?0:parseInt(this[t])+1:0;this.setValuePart(t,i)},this.incrementMinute=()=>{this.incrementMinuteOrSecond("minute")},this.incrementSecond=()=>{this.incrementMinuteOrSecond("second")},this.meridiemDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMeridiem()},this.meridiemKeyDownHandler=t=>{switch(t.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":t.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":t.preventDefault(),this.decrementMeridiem();break;case" ":case"Spacebar":t.preventDefault()}},this.meridiemUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMeridiem()},this.minuteDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementMinute()},this.minuteKeyDownHandler=t=>{const i=t.key;if(o.includes(i)){const t=parseInt(i);let e;if(r(this.minute)&&this.minute.startsWith("0")){const i=parseInt(this.minute);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("minute",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":t.preventDefault(),this.decrementMinute();break;case"ArrowUp":t.preventDefault(),this.incrementMinute();break;case" ":case"Spacebar":t.preventDefault()}},this.minuteUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementMinute()},this.secondDownButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.decrementSecond()},this.secondKeyDownHandler=t=>{const i=t.key;if(o.includes(i)){const t=parseInt(i);let e;if(r(this.second)&&this.second.startsWith("0")){const i=parseInt(this.second);e=i>5?t:`${i}${t}`}else e=t;this.setValuePart("second",e)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":t.preventDefault(),this.decrementSecond();break;case"ArrowUp":t.preventDefault(),this.incrementSecond();break;case" ":case"Spacebar":t.preventDefault()}},this.secondUpButtonKeyDownHandler=t=>{this.buttonActivated(t)&&this.incrementSecond()},this.setHourEl=t=>this.hourEl=t,this.setMeridiemEl=t=>this.meridiemEl=t,this.setMinuteEl=t=>this.minuteEl=t,this.setSecondEl=t=>this.secondEl=t,this.setValue=(t,i=!0)=>{if(x(t)){const{hour:i,minute:e,second:a}=M(t),{localizedHour:n,localizedHourSuffix:s,localizedMinute:o,localizedMinuteSuffix:c,localizedSecond:l,localizedSecondSuffix:h,localizedMeridiem:u}=I(t,this.locale);if(this.localizedHour=n,this.localizedHourSuffix=s,this.localizedMinute=o,this.localizedMinuteSuffix=c,this.localizedSecond=l,this.localizedSecondSuffix=h,this.hour=i,this.minute=e,this.second=a,u){this.localizedMeridiem=u,this.meridiem=function(t){if(!r(t))return null;const i=parseInt(t);return i>=0&&i<=11?"AM":"PM"}(this.hour);const i=function(t,i="en"){if(!x(t))return null;const{hour:e,minute:a,second:n="0"}=M(t),s=new Date(Date.UTC(0,0,0,parseInt(e),parseInt(a),parseInt(n)));return s?w(i).formatToParts(s):null}(t,this.locale);this.meridiemOrder=this.getMeridiemOrder(i)}}else this.hour=null,this.localizedHour=null,this.localizedHourSuffix=null,this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=null,this.localizedSecond=null,this.localizedSecondSuffix=null,this.meridiem=null,this.minute=null,this.second=null,this.value=null;i&&this.calciteInternalTimePickerChange.emit()},this.setValuePart=(t,i,e=!0)=>{var a,n;if("meridiem"===t){if(this.meridiem=i,r(this.hour)){const t=parseInt(this.hour);switch(i){case"AM":t>=12&&(this.hour=k(t-12));break;case"PM":t<12&&(this.hour=k(t+12))}this.localizedHour=y(this.hour,"hour",this.locale)}}else this[t]="number"==typeof i?k(i):i,this[`localized${n=t,n.charAt(0).toUpperCase()+n.slice(1)}`]=y(this[t],t,this.locale);this.value=this.hour&&this.minute?`${this.hour}:${this.minute}:${this.second&&this.showSecond?this.second:"00"}`:null,this.localizedMeridiem=this.value?(null===(a=I(this.value,this.locale))||void 0===a?void 0:a.localizedMeridiem)||null:y(this.meridiem,"meridiem",this.locale),e&&this.calciteInternalTimePickerChange.emit()}}localeWatcher(t){this.hourCycle=v(t),this.setValue(this.value,!1)}valueWatcher(t){this.setValue(t,!1)}hostBlurHandler(){this.calciteInternalTimePickerBlur.emit()}hostFocusHandler(){this.calciteInternalTimePickerFocus.emit()}keyDownHandler(t){const i=t.key;switch(this.activeEl){case this.hourEl:"ArrowRight"===i&&this.setFocus("minute");break;case this.minuteEl:switch(i){case"ArrowLeft":this.setFocus("hour");break;case"ArrowRight":60!==this.step?this.setFocus("second"):"12"===this.hourCycle&&this.setFocus("meridiem")}break;case this.secondEl:switch(i){case"ArrowLeft":this.setFocus("minute");break;case"ArrowRight":"12"===this.hourCycle&&this.setFocus("meridiem")}break;case this.meridiemEl:switch(i){case"ArrowLeft":this.setFocus(60!==this.step?"second":"minute")}}}async setFocus(t){var i;null===(i=this[`${t||"hour"}El`])||void 0===i||i.focus()}buttonActivated(t){const i=t.key;return" "===i&&t.preventDefault(),c(i)}getMeridiemOrder(t){return t&&"ar"!==this.locale&&"he"!==this.locale?t.findIndex((t=>t.value===this.localizedMeridiem)):0}connectedCallback(){this.setValue(this.value,!1),this.hourCycle=v(this.locale)}render(){const t=r(this.hour),i="s"===this.scale||"m"===this.scale?"s":"m",a=r(this.minute),n=r(this.second),s="12"===this.hourCycle;return e("div",{class:{[A.timePicker]:!0,[A.showMeridiem]:s,[A.showSecond]:this.showSecond,[A[`scale-${this.scale}`]]:!0},dir:"ltr"},e("div",{class:A.column,role:"group"},e("span",{"aria-label":this.intlHourUp,class:{[A.button]:!0,[A.buttonHourUp]:!0,[A.buttonTopLeft]:!0},onClick:this.incrementHour,onKeyDown:this.hourUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlHour,"aria-valuemax":"23","aria-valuemin":"1","aria-valuenow":t&&parseInt(this.hour)||"0","aria-valuetext":this.hour,class:{[A.input]:!0,[A.hour]:!0},onFocus:this.focusHandler,onKeyDown:this.hourKeyDownHandler,ref:this.setHourEl,role:"spinbutton",tabIndex:0},this.localizedHour||"--"),e("span",{"aria-label":this.intlHourDown,class:{[A.button]:!0,[A.buttonHourDown]:!0,[A.buttonBottomLeft]:!0},onClick:this.decrementHour,onKeyDown:this.hourDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),e("span",{class:A.delimiter},this.localizedHourSuffix),e("div",{class:A.column,role:"group"},e("span",{"aria-label":this.intlMinuteUp,class:{[A.button]:!0,[A.buttonMinuteUp]:!0},onClick:this.incrementMinute,onKeyDown:this.minuteUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMinute,"aria-valuemax":"12","aria-valuemin":"1","aria-valuenow":a&&parseInt(this.minute)||"0","aria-valuetext":this.minute,class:{[A.input]:!0,[A.minute]:!0},onFocus:this.focusHandler,onKeyDown:this.minuteKeyDownHandler,ref:this.setMinuteEl,role:"spinbutton",tabIndex:0},this.localizedMinute||"--"),e("span",{"aria-label":this.intlMinuteDown,class:{[A.button]:!0,[A.buttonMinuteDown]:!0},onClick:this.decrementMinute,onKeyDown:this.minuteDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.showSecond&&e("span",{class:A.delimiter},this.localizedMinuteSuffix),this.showSecond&&e("div",{class:A.column,role:"group"},e("span",{"aria-label":this.intlSecondUp,class:{[A.button]:!0,[A.buttonSecondUp]:!0},onClick:this.incrementSecond,onKeyDown:this.secondUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlSecond,"aria-valuemax":"59","aria-valuemin":"0","aria-valuenow":n&&parseInt(this.second)||"0","aria-valuetext":this.second,class:{[A.input]:!0,[A.second]:!0},onFocus:this.focusHandler,onKeyDown:this.secondKeyDownHandler,ref:this.setSecondEl,role:"spinbutton",tabIndex:0},this.localizedSecond||"--"),e("span",{"aria-label":this.intlSecondDown,class:{[A.button]:!0,[A.buttonSecondDown]:!0},onClick:this.decrementSecond,onKeyDown:this.secondDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))),this.localizedSecondSuffix&&e("span",{class:A.delimiter},this.localizedSecondSuffix),s&&e("div",{class:{[A.column]:!0,[A.meridiemStart]:0===this.meridiemOrder},role:"group"},e("span",{"aria-label":this.intlMeridiemUp,class:{[A.button]:!0,[A.buttonMeridiemUp]:!0,[A.buttonTopRight]:!0},onClick:this.incrementMeridiem,onKeyDown:this.meridiemUpButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-up",scale:i})),e("span",{"aria-label":this.intlMeridiem,"aria-valuemax":"2","aria-valuemin":"1","aria-valuenow":"PM"===this.meridiem?"2":"1","aria-valuetext":this.meridiem,class:{[A.input]:!0,[A.meridiem]:!0},onFocus:this.focusHandler,onKeyDown:this.meridiemKeyDownHandler,ref:this.setMeridiemEl,role:"spinbutton",tabIndex:0},this.localizedMeridiem||"--"),e("span",{"aria-label":this.intlMeridiemDown,class:{[A.button]:!0,[A.buttonMeridiemDown]:!0,[A.buttonBottomRight]:!0},onClick:this.decrementMeridiem,onKeyDown:this.meridiemDownButtonKeyDownHandler,role:"button",tabIndex:-1},e("calcite-icon",{icon:"chevron-down",scale:i}))))}get el(){return n(this)}static get watchers(){return{locale:["localeWatcher"],value:["valueWatcher"]}}};z.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:inline-block}.time-picker{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.time-picker .meridiem--start{-ms-flex-order:-1;order:-1}.time-picker .button{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-top-left-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-bottom-left-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-top-right-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-bottom-right-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:0.75rem;padding-inline-end:0.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:1rem;padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-left:1.25rem;padding-right:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{-webkit-padding-end:1.25rem;padding-inline-end:1.25rem}";export{S as calcite_input_time_picker,z as calcite_time_picker}
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- import{r as t,c as e,h as a,H as i,g as r,F as o}from"./p-3b85836e.js";import{T as n,c as s,d as c,a as l,b as h,g as d,H as p,s as u,i as f,l as g,e as m,n as w,f as v,h as b}from"./p-d756a734.js";import{a as x,C as y}from"./p-513aeb64.js";import{u as k}from"./p-e8e9a037.js";import{H as D}from"./p-e8e732b6.js";import"./p-73d62a1e.js";import"./p-93799c84.js";import"./p-c6a244cf.js";const _=class{constructor(a){t(this,a),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",7),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",7),this.intlPrevMonth=n.prevMonth,this.intlNextMonth=n.nextMonth,this.intlYear=n.year,this.locale=document.documentElement.lang||"en",this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.keyUpHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=s(e,this.startAsDate),a=s(e,this.endAsDate);a>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>a?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,a,i,r,o;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(a=this.startAsDate)||void 0===a?void 0:a.getTime())!==(null===(i=this.activeStartDate)||void 0===i?void 0:i.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(o=this.activeEndDate)||void 0===o?void 0:o.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail);if(!this.range)return this.value=e?c(e):"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=s(e,this.startAsDate),a=s(e,this.endAsDate);0===a||t<0?this.setStartDate(e):0===t||a<0?this.setEndDate(e):t<a?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){Array.isArray(this.value)?(this.valueAsDate=this.value.map((t=>l(t))),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=h(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.range?this.getActiveStartDate(e,this.minAsDate,this.maxAsDate):this.getActiveDate(e,this.minAsDate,this.maxAsDate);const o=this.range?h(this.endAsDate,this.minAsDate,this.maxAsDate):null,n=this.getActiveEndDate(o,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!o)||!n||(r=n),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),a(i,{onBlur:this.reset,onKeyUp:this.keyUpHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&o||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,o))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=t.map((t=>l(t))),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){const{locale:t}=this;this.localeData=await d(t)}renderCalendar(t,e,i,r,o){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel||p,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?o:r||new Date}),a("calcite-date-picker-month",{activeDate:t,endDate:this.range?o:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?o:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?c(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?c(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,a){return h(this.activeDate,e,a)||t||h(new Date,e,a)}getActiveStartDate(t,e,a){return h(this.activeStartDate,e,a)||t||h(new Date,e,a)}getActiveEndDate(t,e,a){return h(this.activeEndDate,e,a)||t||h(new Date,e,a)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}}};_.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{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}";const z=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",7),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",7),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{const e=t.key;" "!==e&&"Enter"!==e||!this.disabled&&this.calciteDaySelect.emit()}}mouseoverHandler(){this.calciteInternalDayHover.emit({disabled:this.disabled})}render(){const t=String(this.day).split("").map((t=>this.localeData.numerals[t])).join(""),e=x(this.el);return a(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},a("div",{class:{"day-v-wrapper":!0,[y.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}componentDidRender(){k(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};z.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-flexbox;display:flex;min-width:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);width:14.2857142857%}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;-webkit-box-shadow:0 0 0 2px transparent;box-shadow:0 0 0 2px transparent}.text{margin-top:1px;margin-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px}: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(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px;z-index:1}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important;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)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText;z-index:1}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";const C=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",7),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",7),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",7),this.activeDate=new Date,this.keyDownHandler=t=>{const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;t.detail.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:o,short:n,narrow:s}=this.localeData.days,c="s"===this.scale?s||n||o:n||o||s,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),p=this.getNextMonthDays(t,e,r),f=[...d.map((a=>{const i=new Date(e,t-1,a);return this.renderDateDay(!1,a,i)})),...h.map((a=>{const i=new Date(e,t,a),r=u(i,this.activeDate);return this.renderDateDay(r,a,i,!0,!0)})),...p.map((a=>{const i=new Date(e,t+1,a);return this.renderDateDay(!1,a,i)}))],g=[];for(let t=0;t<f.length;t+=7)g.push(f.slice(t,t+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},l.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),g.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const i=new Date(e,t,0),r=i.getDate(),o=[];if(i.getDay()-6===a)return o;for(let t=Math.abs(i.getDay()-a);t>=0;t--)o.push(r-t);return o}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),i=[];for(let t=0;t<a;t++)i.push(t+1);return i}getNextMonthDays(t,e,a){const i=new Date(e,t+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let t=0;t<(6-(i-a))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(u(t,this.selectedDate)||this.startDate&&u(t,this.startDate)||this.endDate&&u(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||u(this.startDate,this.endDate)||!u(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!u(this.startDate,this.endDate)&&u(this.endDate,t)||!this.endDate&&this.hoverRange&&u(this.startDate,this.hoverRange.end)&&u(t,this.hoverRange.end))}renderDateDay(t,e,i,r,o){var n;const s=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&u(null===(n=this.hoverRange)||void 0===n?void 0:n.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:e,disabled:!f(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),localeData:this.localeData,onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!u(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{o&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),o=r&&(!i&&t>this.startDate&&(t<a||u(t,a))||i&&t<this.endDate&&(t>e||u(t,e))),n=!r&&(!i&&t>=this.endDate&&(t<a||u(t,a))||i&&(t<this.startDate||this.endDate&&u(t,this.startDate))&&(t>e||u(t,e)));return o||n}get el(){return r(this)}};C.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}.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;padding-left:6px;padding-right:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const A=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",7),this.onYearKey=t=>{const e=t.target.value;switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:t.target.value})},this.onYearInput=t=>{this.setYear({localizedYear:t.target.value,commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{const e=t.key;" "!==e&&"Enter"!==e||this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{const e=t.key;" "!==e&&"Enter"!==e||this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{null==t||t.preventDefault(),t.stopPropagation(),this.calciteDatePickerSelect.emit(e)}}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;const e=this.activeDate.getMonth(),{months:i,unitOrder:r}=this.localeData,n=(i.wide||i.narrow||i.abbreviated)[e],s=g(this.activeDate.getFullYear(),this.localeData),c="l"===this.scale?"m":"s",l=m(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return a(o,null,a("a",{"aria-disabled":(this.prevMonthDate.getMonth()===e).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),a("div",{class:{text:!0,"text--reverse":h}},a(D,{class:"month",level:this.headingLevel},n),a("span",{class:"year-wrap"},a("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:s}),d&&a("span",{class:"suffix"},a("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+d))),a("a",{"aria-disabled":(this.nextMonthDate.getMonth()===e).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=h(w(this.activeDate),this.min,this.max),this.prevMonthDate=h(v(this.activeDate),this.min,this.max))}getInRangeDate({localizedYear:t,offset:e=0}){const{min:a,max:i,activeDate:r,localeData:o}=this,n=b(t,o),s=n.toString().length,c=!isNaN(n)&&n+e,l=c&&(!a||a.getFullYear()<=c)&&(!i||i.getFullYear()>=c);if(c&&l&&s===t.length){const t=new Date(r);return t.setFullYear(c),h(t,a,i)}}setYear({localizedYear:t,commit:e=!0,offset:a=0}){const{yearInput:i,activeDate:r,localeData:o}=this,n=this.getInRangeDate({localizedYear:t,offset:a});n&&this.calciteDatePickerSelect.emit(n),e&&(i.value=g((n||r).getFullYear(),o))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};A.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}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([scale=s]) .text{margin-top:0.5rem;margin-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{height:2.25rem}:host([scale=m]) .text{margin-top:0.75rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{height:3rem}:host([scale=l]) .text{margin-top:1rem;margin-bottom:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{height:3.5rem}.chevron{margin-left:-0.25rem;margin-right:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-left:0.25rem;padding-right:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;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-color:transparent;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}";export{_ as calcite_date_picker,z as calcite_date_picker_day,C as calcite_date_picker_month,A as calcite_date_picker_month_header}
@@ -1,6 +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
- * v1.0.0-next.489
5
- */
6
- import{r as t,c as i,h as a,F as e,g as s}from"./p-3b85836e.js";import{c as n}from"./p-f56e9345.js";import{l as o}from"./p-73d62a1e.js";import"./p-93799c84.js";const r=["lang"],l=new Map;let c;function h(t,i){const{el:a}=t,e={};i.filter((t=>!!r.includes(t)&&!!a.hasAttribute(t))).forEach((t=>{const i=a.getAttribute(t);null!==i&&(e[t]=i)})),t.globalAttributes=e}function m(t){t.forEach((({target:t})=>{const[i,a]=l.get(t);h(i,a.attributeFilter)}))}const p=class{constructor(a){t(this,a),this.calcitePaginationUpdate=i(this,"calcitePaginationUpdate",7),this.calcitePaginationChange=i(this,"calcitePaginationChange",7),this.num=20,this.start=1,this.total=0,this.textLabelNext="Next",this.textLabelPrevious="Previous",this.scale="m",this.globalAttributes={},this.previousClicked=()=>{this.previousPage().then(),this.emitUpdate()},this.nextClicked=()=>{this.nextPage(),this.emitUpdate()}}connectedCallback(){!function(t,i){const{el:a}=t,e={attributeFilter:i};l.set(a,[t,e]),h(t,i),c||(c=n("mutation",m)),c.observe(a,e)}(this,["lang"])}disconnectedCallback(){!function(t){l.delete(t.el),m(c.takeRecords()),c.disconnect();for(const[t,[,i]]of l.entries())c.observe(t,i)}(this)}async nextPage(){this.start=Math.min(this.getLastStart(),this.start+this.num)}async previousPage(){this.start=Math.max(1,this.start-this.num)}getLastStart(){const{total:t,num:i}=this;return 1+(t%i==0?t-i:Math.floor(t/i)*i)}showLeftEllipsis(){return Math.floor(this.start/this.num)>3}showRightEllipsis(){return(this.total-this.start)/this.num>3}emitUpdate(){const t={start:this.start,total:this.total,num:this.num};this.calcitePaginationChange.emit(t),this.calcitePaginationUpdate.emit(t)}renderPages(){const t=this.getLastStart();let i,a;this.total/this.num<=5?(a=1+this.num,i=t-this.num):this.start/this.num<4?(a=1+this.num,i=1+4*this.num):this.start+3*this.num>=this.total?(a=t-4*this.num,i=t-this.num):(a=this.start-this.num,i=this.start+this.num);const e=[];for(;a<=i;)e.push(a),a+=this.num;return e.map((t=>this.renderPage(t)))}renderPage(t){const i=this.globalAttributes.lang||document.documentElement.lang||"en",e=Math.floor(t/this.num)+(1===this.num?0:1);return a("button",{class:{page:!0,"is-selected":t===this.start},onClick:()=>{this.start=t,this.emitUpdate()}},o(e.toString(),i,!0))}renderLeftEllipsis(){if(this.total/this.num>5&&this.showLeftEllipsis())return a("span",{class:"ellipsis ellipsis--start"},"…")}renderRightEllipsis(){if(this.total/this.num>5&&this.showRightEllipsis())return a("span",{class:"ellipsis ellipsis--end"},"…")}render(){const{total:t,num:i,start:s}=this,n=1===i?s<=i:s<i,o=s+i>t;return a(e,null,a("button",{"aria-label":this.textLabelPrevious,class:{previous:!0,"is-disabled":n},disabled:n,onClick:this.previousClicked},a("calcite-icon",{flipRtl:!0,icon:"chevronLeft",scale:"s"})),t>i?this.renderPage(1):null,this.renderLeftEllipsis(),this.renderPages(),this.renderRightEllipsis(),this.renderPage(this.getLastStart()),a("button",{"aria-label":this.textLabelNext,class:{next:!0,"is-disabled":o},disabled:o,onClick:this.nextClicked},a("calcite-icon",{flipRtl:!0,icon:"chevronRight",scale:"s"})))}get el(){return s(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([scale=s]){--calcite-pagination-spacing:0.25rem 0.5rem}:host([scale=s]) .previous,:host([scale=s]) .next,:host([scale=s]) .page{height:1.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .previous,:host([scale=s]) .next{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]){--calcite-pagination-spacing:0.5rem 0.75rem}:host([scale=m]) .previous,:host([scale=m]) .next,:host([scale=m]) .page{height:2rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .previous,:host([scale=m]) .next{padding-left:0.5rem;padding-right:0.5rem}:host([scale=l]){--calcite-pagination-spacing:0.75rem 1rem}:host([scale=l]) .previous,:host([scale=l]) .next,:host([scale=l]) .page{height:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .previous,:host([scale=l]) .next{padding-left:1rem;padding-right:1rem}:host{display:-ms-flexbox;display:flex;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}:host button{outline-color:transparent}:host button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.previous,.next,.page{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;border-style:none;--tw-border-opacity:0;background-color:transparent;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3);border-top:2px solid transparent;border-bottom:2px solid transparent}.previous:hover,.next:hover,.page:hover{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.page:hover{border-bottom-color:var(--calcite-ui-border-2)}.page.is-selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-bottom-color:var(--calcite-ui-brand)}.previous:hover,.next:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}.previous:active,.next:active{background-color:var(--calcite-ui-foreground-3)}.previous.is-disabled,.next.is-disabled{pointer-events:none;background-color:transparent}.previous.is-disabled>calcite-icon,.next.is-disabled>calcite-icon{opacity:var(--calcite-ui-opacity-disabled)}.next{-webkit-margin-end:0px;margin-inline-end:0px}.page,.ellipsis{padding:var(--calcite-pagination-spacing)}.ellipsis{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;color:var(--calcite-ui-text-3)}";export{p as calcite_pagination}