@esri/calcite-components 1.7.0-next.16 → 1.7.0-next.17

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 (1550) hide show
  1. package/dist/calcite/assets/table/t9n/index.d.ts +7 -0
  2. package/dist/calcite/assets/table/t9n/messages.json +7 -0
  3. package/dist/calcite/assets/table/t9n/messages_ar.json +7 -0
  4. package/dist/calcite/assets/table/t9n/messages_bg.json +7 -0
  5. package/dist/calcite/assets/table/t9n/messages_bs.json +7 -0
  6. package/dist/calcite/assets/table/t9n/messages_ca.json +7 -0
  7. package/dist/calcite/assets/table/t9n/messages_cs.json +7 -0
  8. package/dist/calcite/assets/table/t9n/messages_da.json +7 -0
  9. package/dist/calcite/assets/table/t9n/messages_de.json +7 -0
  10. package/dist/calcite/assets/table/t9n/messages_el.json +7 -0
  11. package/dist/calcite/assets/table/t9n/messages_en.json +7 -0
  12. package/dist/calcite/assets/table/t9n/messages_es.json +7 -0
  13. package/dist/calcite/assets/table/t9n/messages_et.json +7 -0
  14. package/dist/calcite/assets/table/t9n/messages_fi.json +7 -0
  15. package/dist/calcite/assets/table/t9n/messages_fr.json +7 -0
  16. package/dist/calcite/assets/table/t9n/messages_he.json +7 -0
  17. package/dist/calcite/assets/table/t9n/messages_hr.json +7 -0
  18. package/dist/calcite/assets/table/t9n/messages_hu.json +7 -0
  19. package/dist/calcite/assets/table/t9n/messages_id.json +7 -0
  20. package/dist/calcite/assets/table/t9n/messages_it.json +7 -0
  21. package/dist/calcite/assets/table/t9n/messages_ja.json +7 -0
  22. package/dist/calcite/assets/table/t9n/messages_ko.json +7 -0
  23. package/dist/calcite/assets/table/t9n/messages_lt.json +7 -0
  24. package/dist/calcite/assets/table/t9n/messages_lv.json +7 -0
  25. package/dist/calcite/assets/table/t9n/messages_nl.json +7 -0
  26. package/dist/calcite/assets/table/t9n/messages_no.json +7 -0
  27. package/dist/calcite/assets/table/t9n/messages_pl.json +7 -0
  28. package/dist/calcite/assets/table/t9n/messages_pt-BR.json +7 -0
  29. package/dist/calcite/assets/table/t9n/messages_pt-PT.json +7 -0
  30. package/dist/calcite/assets/table/t9n/messages_ro.json +7 -0
  31. package/dist/calcite/assets/table/t9n/messages_ru.json +7 -0
  32. package/dist/calcite/assets/table/t9n/messages_sk.json +7 -0
  33. package/dist/calcite/assets/table/t9n/messages_sl.json +7 -0
  34. package/dist/calcite/assets/table/t9n/messages_sr.json +7 -0
  35. package/dist/calcite/assets/table/t9n/messages_sv.json +7 -0
  36. package/dist/calcite/assets/table/t9n/messages_th.json +7 -0
  37. package/dist/calcite/assets/table/t9n/messages_tr.json +7 -0
  38. package/dist/calcite/assets/table/t9n/messages_uk.json +7 -0
  39. package/dist/calcite/assets/table/t9n/messages_vi.json +7 -0
  40. package/dist/calcite/assets/table/t9n/messages_zh-CN.json +7 -0
  41. package/dist/calcite/assets/table/t9n/messages_zh-HK.json +7 -0
  42. package/dist/calcite/assets/table/t9n/messages_zh-TW.json +7 -0
  43. package/dist/calcite/assets/table-cell/t9n/index.d.ts +7 -0
  44. package/dist/calcite/assets/table-cell/t9n/messages.json +7 -0
  45. package/dist/calcite/assets/table-cell/t9n/messages_ar.json +7 -0
  46. package/dist/calcite/assets/table-cell/t9n/messages_bg.json +7 -0
  47. package/dist/calcite/assets/table-cell/t9n/messages_bs.json +7 -0
  48. package/dist/calcite/assets/table-cell/t9n/messages_ca.json +7 -0
  49. package/dist/calcite/assets/table-cell/t9n/messages_cs.json +7 -0
  50. package/dist/calcite/assets/table-cell/t9n/messages_da.json +7 -0
  51. package/dist/calcite/assets/table-cell/t9n/messages_de.json +7 -0
  52. package/dist/calcite/assets/table-cell/t9n/messages_el.json +7 -0
  53. package/dist/calcite/assets/table-cell/t9n/messages_en.json +7 -0
  54. package/dist/calcite/assets/table-cell/t9n/messages_es.json +7 -0
  55. package/dist/calcite/assets/table-cell/t9n/messages_et.json +7 -0
  56. package/dist/calcite/assets/table-cell/t9n/messages_fi.json +7 -0
  57. package/dist/calcite/assets/table-cell/t9n/messages_fr.json +7 -0
  58. package/dist/calcite/assets/table-cell/t9n/messages_he.json +7 -0
  59. package/dist/calcite/assets/table-cell/t9n/messages_hr.json +7 -0
  60. package/dist/calcite/assets/table-cell/t9n/messages_hu.json +7 -0
  61. package/dist/calcite/assets/table-cell/t9n/messages_id.json +7 -0
  62. package/dist/calcite/assets/table-cell/t9n/messages_it.json +7 -0
  63. package/dist/calcite/assets/table-cell/t9n/messages_ja.json +7 -0
  64. package/dist/calcite/assets/table-cell/t9n/messages_ko.json +7 -0
  65. package/dist/calcite/assets/table-cell/t9n/messages_lt.json +7 -0
  66. package/dist/calcite/assets/table-cell/t9n/messages_lv.json +7 -0
  67. package/dist/calcite/assets/table-cell/t9n/messages_nl.json +7 -0
  68. package/dist/calcite/assets/table-cell/t9n/messages_no.json +7 -0
  69. package/dist/calcite/assets/table-cell/t9n/messages_pl.json +7 -0
  70. package/dist/calcite/assets/table-cell/t9n/messages_pt-BR.json +7 -0
  71. package/dist/calcite/assets/table-cell/t9n/messages_pt-PT.json +7 -0
  72. package/dist/calcite/assets/table-cell/t9n/messages_ro.json +7 -0
  73. package/dist/calcite/assets/table-cell/t9n/messages_ru.json +7 -0
  74. package/dist/calcite/assets/table-cell/t9n/messages_sk.json +7 -0
  75. package/dist/calcite/assets/table-cell/t9n/messages_sl.json +7 -0
  76. package/dist/calcite/assets/table-cell/t9n/messages_sr.json +7 -0
  77. package/dist/calcite/assets/table-cell/t9n/messages_sv.json +7 -0
  78. package/dist/calcite/assets/table-cell/t9n/messages_th.json +7 -0
  79. package/dist/calcite/assets/table-cell/t9n/messages_tr.json +7 -0
  80. package/dist/calcite/assets/table-cell/t9n/messages_uk.json +7 -0
  81. package/dist/calcite/assets/table-cell/t9n/messages_vi.json +7 -0
  82. package/dist/calcite/assets/table-cell/t9n/messages_zh-CN.json +7 -0
  83. package/dist/calcite/assets/table-cell/t9n/messages_zh-HK.json +7 -0
  84. package/dist/calcite/assets/table-cell/t9n/messages_zh-TW.json +7 -0
  85. package/dist/calcite/assets/table-header/t9n/index.d.ts +8 -0
  86. package/dist/calcite/assets/table-header/t9n/messages.json +8 -0
  87. package/dist/calcite/assets/table-header/t9n/messages_ar.json +8 -0
  88. package/dist/calcite/assets/table-header/t9n/messages_bg.json +8 -0
  89. package/dist/calcite/assets/table-header/t9n/messages_bs.json +8 -0
  90. package/dist/calcite/assets/table-header/t9n/messages_ca.json +8 -0
  91. package/dist/calcite/assets/table-header/t9n/messages_cs.json +8 -0
  92. package/dist/calcite/assets/table-header/t9n/messages_da.json +8 -0
  93. package/dist/calcite/assets/table-header/t9n/messages_de.json +8 -0
  94. package/dist/calcite/assets/table-header/t9n/messages_el.json +8 -0
  95. package/dist/calcite/assets/table-header/t9n/messages_en.json +8 -0
  96. package/dist/calcite/assets/table-header/t9n/messages_es.json +8 -0
  97. package/dist/calcite/assets/table-header/t9n/messages_et.json +8 -0
  98. package/dist/calcite/assets/table-header/t9n/messages_fi.json +8 -0
  99. package/dist/calcite/assets/table-header/t9n/messages_fr.json +8 -0
  100. package/dist/calcite/assets/table-header/t9n/messages_he.json +8 -0
  101. package/dist/calcite/assets/table-header/t9n/messages_hr.json +8 -0
  102. package/dist/calcite/assets/table-header/t9n/messages_hu.json +8 -0
  103. package/dist/calcite/assets/table-header/t9n/messages_id.json +8 -0
  104. package/dist/calcite/assets/table-header/t9n/messages_it.json +8 -0
  105. package/dist/calcite/assets/table-header/t9n/messages_ja.json +8 -0
  106. package/dist/calcite/assets/table-header/t9n/messages_ko.json +8 -0
  107. package/dist/calcite/assets/table-header/t9n/messages_lt.json +8 -0
  108. package/dist/calcite/assets/table-header/t9n/messages_lv.json +8 -0
  109. package/dist/calcite/assets/table-header/t9n/messages_nl.json +8 -0
  110. package/dist/calcite/assets/table-header/t9n/messages_no.json +8 -0
  111. package/dist/calcite/assets/table-header/t9n/messages_pl.json +8 -0
  112. package/dist/calcite/assets/table-header/t9n/messages_pt-BR.json +8 -0
  113. package/dist/calcite/assets/table-header/t9n/messages_pt-PT.json +8 -0
  114. package/dist/calcite/assets/table-header/t9n/messages_ro.json +8 -0
  115. package/dist/calcite/assets/table-header/t9n/messages_ru.json +8 -0
  116. package/dist/calcite/assets/table-header/t9n/messages_sk.json +8 -0
  117. package/dist/calcite/assets/table-header/t9n/messages_sl.json +8 -0
  118. package/dist/calcite/assets/table-header/t9n/messages_sr.json +8 -0
  119. package/dist/calcite/assets/table-header/t9n/messages_sv.json +8 -0
  120. package/dist/calcite/assets/table-header/t9n/messages_th.json +8 -0
  121. package/dist/calcite/assets/table-header/t9n/messages_tr.json +8 -0
  122. package/dist/calcite/assets/table-header/t9n/messages_uk.json +8 -0
  123. package/dist/calcite/assets/table-header/t9n/messages_vi.json +8 -0
  124. package/dist/calcite/assets/table-header/t9n/messages_zh-CN.json +8 -0
  125. package/dist/calcite/assets/table-header/t9n/messages_zh-HK.json +8 -0
  126. package/dist/calcite/assets/table-header/t9n/messages_zh-TW.json +8 -0
  127. package/dist/calcite/calcite.esm.js +2 -2
  128. package/dist/calcite/index.esm.js +2 -2
  129. package/dist/calcite/p-02ffea42.entry.js +6 -0
  130. package/dist/calcite/p-0671d350.js +6 -0
  131. package/dist/calcite/p-097135c4.js +7 -0
  132. package/dist/calcite/p-0b812538.entry.js +6 -0
  133. package/dist/calcite/p-0f6b183c.js +6 -0
  134. package/dist/calcite/p-0fb3b20e.entry.js +6 -0
  135. package/dist/calcite/p-13b5990a.js +6 -0
  136. package/dist/calcite/p-1707e155.js +6 -0
  137. package/dist/calcite/p-17ede011.js +6 -0
  138. package/dist/calcite/p-1811fd36.js +6 -0
  139. package/dist/calcite/p-1c8962c4.entry.js +6 -0
  140. package/dist/calcite/p-1e702809.js +6 -0
  141. package/dist/calcite/p-1fc90548.js +6 -0
  142. package/dist/calcite/p-222beb73.js +6 -0
  143. package/dist/calcite/p-22363d44.js +6 -0
  144. package/dist/calcite/p-2273d064.js +6 -0
  145. package/dist/calcite/p-2372be2e.entry.js +6 -0
  146. package/dist/calcite/p-24d121bf.js +6 -0
  147. package/dist/calcite/p-2530f8ac.js +6 -0
  148. package/dist/calcite/p-25b1d76a.js +6 -0
  149. package/dist/calcite/p-272c5bed.entry.js +6 -0
  150. package/dist/calcite/p-27ad3f12.entry.js +6 -0
  151. package/dist/calcite/p-27cbf1a4.entry.js +6 -0
  152. package/dist/calcite/p-2a48d634.entry.js +6 -0
  153. package/dist/calcite/p-2b6a09e6.js +6 -0
  154. package/dist/calcite/p-2e240cdb.entry.js +6 -0
  155. package/dist/calcite/p-2f78a808.js +6 -0
  156. package/dist/calcite/p-337b1135.entry.js +6 -0
  157. package/dist/calcite/p-34c5c4fe.entry.js +6 -0
  158. package/dist/calcite/p-361b0e6e.js +6 -0
  159. package/dist/calcite/p-36260d4e.js +6 -0
  160. package/dist/calcite/p-37403e16.js +6 -0
  161. package/dist/calcite/p-377c22c3.entry.js +6 -0
  162. package/dist/calcite/p-39dd49cf.js +10 -0
  163. package/dist/calcite/p-3b435340.entry.js +6 -0
  164. package/dist/calcite/p-3c76739d.js +12 -0
  165. package/dist/calcite/p-3f076cf9.entry.js +6 -0
  166. package/dist/calcite/p-41acfce2.entry.js +6 -0
  167. package/dist/calcite/p-444c47da.js +6 -0
  168. package/dist/calcite/p-45bf4a19.entry.js +6 -0
  169. package/dist/calcite/p-477dc54e.js +6 -0
  170. package/dist/calcite/p-47f9f3b5.js +6 -0
  171. package/dist/calcite/p-49b67c70.entry.js +6 -0
  172. package/dist/calcite/p-4ce791e7.js +6 -0
  173. package/dist/calcite/p-4da64c86.js +6 -0
  174. package/dist/calcite/p-4f2ebe69.entry.js +6 -0
  175. package/dist/calcite/p-4fee9dc6.entry.js +6 -0
  176. package/dist/calcite/p-50b2ff1a.js +6 -0
  177. package/dist/calcite/p-554c0b34.js +6 -0
  178. package/dist/calcite/p-55e614f6.entry.js +6 -0
  179. package/dist/calcite/p-56317464.js +6 -0
  180. package/dist/calcite/p-5709aab2.entry.js +6 -0
  181. package/dist/calcite/p-576ec810.js +6 -0
  182. package/dist/calcite/p-5a36bc27.entry.js +6 -0
  183. package/dist/calcite/p-5b082756.entry.js +6 -0
  184. package/dist/calcite/p-5c9e4d27.entry.js +6 -0
  185. package/dist/calcite/p-5e43d2da.entry.js +6 -0
  186. package/dist/calcite/p-61438d6f.js +6 -0
  187. package/dist/calcite/p-658a356f.entry.js +6 -0
  188. package/dist/calcite/p-65be87f1.js +6 -0
  189. package/dist/calcite/p-686cf487.js +6 -0
  190. package/dist/calcite/p-6a52269c.entry.js +6 -0
  191. package/dist/calcite/p-6c1efce9.js +6 -0
  192. package/dist/calcite/p-6dd676a4.js +6 -0
  193. package/dist/calcite/p-6e8baae4.entry.js +6 -0
  194. package/dist/calcite/p-6ea637bb.js +6 -0
  195. package/dist/calcite/p-6ec6a881.js +6 -0
  196. package/dist/calcite/p-767e03c5.js +6 -0
  197. package/dist/calcite/p-79606642.entry.js +6 -0
  198. package/dist/calcite/p-7b329832.entry.js +6 -0
  199. package/dist/calcite/p-7cd7bfb2.entry.js +6 -0
  200. package/dist/calcite/p-7d6b89b0.js +6 -0
  201. package/dist/calcite/p-7ffbb9cd.entry.js +6 -0
  202. package/dist/calcite/p-8031130e.js +6 -0
  203. package/dist/calcite/p-804aaf8e.entry.js +6 -0
  204. package/dist/calcite/p-823d0849.js +6 -0
  205. package/dist/calcite/p-83053964.js +6 -0
  206. package/dist/calcite/p-8517aeea.entry.js +6 -0
  207. package/dist/calcite/p-8959b901.js +6 -0
  208. package/dist/calcite/p-8a5243c3.js +6 -0
  209. package/dist/calcite/p-8a965b77.entry.js +6 -0
  210. package/dist/calcite/p-8c92524d.entry.js +6 -0
  211. package/dist/calcite/p-909ace66.js +6 -0
  212. package/dist/calcite/p-915ff1b7.entry.js +6 -0
  213. package/dist/calcite/p-9391cf60.js +6 -0
  214. package/dist/calcite/p-94192aca.js +6 -0
  215. package/dist/calcite/p-94be6a04.entry.js +6 -0
  216. package/dist/calcite/p-97d26409.entry.js +6 -0
  217. package/dist/calcite/p-98810dc4.js +6 -0
  218. package/dist/calcite/p-999f617b.entry.js +6 -0
  219. package/dist/calcite/p-9e919997.js +6 -0
  220. package/dist/calcite/p-a023f677.js +11 -0
  221. package/dist/calcite/p-a02fc70b.entry.js +6 -0
  222. package/dist/calcite/p-a25ff3f3.entry.js +6 -0
  223. package/dist/calcite/p-a282f999.js +6 -0
  224. package/dist/calcite/p-a3e6ad4d.js +6 -0
  225. package/dist/calcite/p-a62aec14.entry.js +6 -0
  226. package/dist/calcite/p-a7437151.js +6 -0
  227. package/dist/calcite/p-a8a275e3.entry.js +6 -0
  228. package/dist/calcite/p-a99b7a6e.entry.js +6 -0
  229. package/dist/calcite/p-aa3ccef2.entry.js +6 -0
  230. package/dist/calcite/p-ac7c8322.js +6 -0
  231. package/dist/calcite/p-ad085842.js +6 -0
  232. package/dist/calcite/p-ad0e1a81.entry.js +6 -0
  233. package/dist/calcite/p-adf074f6.js +6 -0
  234. package/dist/calcite/p-ae0394bd.js +6 -0
  235. package/dist/calcite/p-ae8aef0c.entry.js +6 -0
  236. package/dist/calcite/p-aedf9daa.js +6 -0
  237. package/dist/calcite/p-af570690.js +6 -0
  238. package/dist/calcite/p-af66df52.entry.js +6 -0
  239. package/dist/calcite/p-b2ba068f.js +6 -0
  240. package/dist/calcite/p-b2f9cb5d.js +6 -0
  241. package/dist/calcite/p-b3863301.js +6 -0
  242. package/dist/calcite/p-b464d393.js +6 -0
  243. package/dist/calcite/p-b698c6d7.js +6 -0
  244. package/dist/calcite/p-bc403d2d.js +6 -0
  245. package/dist/calcite/p-bc4b9c89.entry.js +6 -0
  246. package/dist/calcite/p-bc6a9d3b.entry.js +6 -0
  247. package/dist/calcite/p-bd807a06.js +6 -0
  248. package/dist/calcite/p-be5be4d2.js +6 -0
  249. package/dist/calcite/p-c2799be3.js +6 -0
  250. package/dist/calcite/p-c9525878.entry.js +6 -0
  251. package/dist/calcite/p-ccb569a8.js +6 -0
  252. package/dist/calcite/p-ce8dc48f.js +6 -0
  253. package/dist/calcite/p-cfcf9eeb.entry.js +6 -0
  254. package/dist/calcite/p-d0e893d5.entry.js +6 -0
  255. package/dist/calcite/p-d2cb5de5.entry.js +6 -0
  256. package/dist/calcite/p-d2fcaba3.entry.js +6 -0
  257. package/dist/calcite/p-d469d0c1.entry.js +6 -0
  258. package/dist/calcite/p-d6a8916c.js +6 -0
  259. package/dist/calcite/p-da969cc6.entry.js +6 -0
  260. package/dist/calcite/p-db158a77.entry.js +6 -0
  261. package/dist/calcite/p-dcc173b7.entry.js +6 -0
  262. package/dist/calcite/p-e5172342.js +6 -0
  263. package/dist/calcite/p-e755a984.js +6 -0
  264. package/dist/calcite/p-e9457d6a.js +6 -0
  265. package/dist/calcite/p-ec7e22a7.entry.js +6 -0
  266. package/dist/calcite/p-ec90ebf3.js +6 -0
  267. package/dist/calcite/p-ed3b2c5d.entry.js +6 -0
  268. package/dist/calcite/p-f11f14c7.entry.js +6 -0
  269. package/dist/calcite/p-f18ca3b8.js +6 -0
  270. package/dist/calcite/p-f211c0e7.entry.js +6 -0
  271. package/dist/calcite/p-f3a04f66.js +6 -0
  272. package/dist/calcite/p-f4f74f8c.entry.js +6 -0
  273. package/dist/calcite/p-f598d949.js +6 -0
  274. package/dist/calcite/p-f6d25277.entry.js +6 -0
  275. package/dist/calcite/p-f71ac574.js +6 -0
  276. package/dist/calcite/p-f88aeaed.js +6 -0
  277. package/dist/calcite/p-f8e28381.entry.js +6 -0
  278. package/dist/calcite/p-f9927374.js +6 -0
  279. package/dist/calcite/p-fbfb9644.js +6 -0
  280. package/dist/calcite/p-fd99af34.js +6 -0
  281. package/dist/calcite/p-fe2a6014.entry.js +6 -0
  282. package/dist/calcite/p-fe2af1ec.js +6 -0
  283. package/dist/calcite/p-feaca3ef.entry.js +6 -0
  284. package/dist/calcite/p-feccc2ea.entry.js +6 -0
  285. package/dist/cjs/ExpandToggle-1d6b0af5.js +107 -0
  286. package/dist/cjs/FloatingArrow-874140c1.js +45 -0
  287. package/dist/cjs/Heading-463035a8.js +20 -0
  288. package/dist/cjs/app-globals-d9f3e424.js +59 -0
  289. package/dist/cjs/ar-514a5742.js +98 -0
  290. package/dist/cjs/array-49760407.js +12 -0
  291. package/dist/cjs/bg-a4915250.js +79 -0
  292. package/dist/cjs/browser-c5494765.js +18 -0
  293. package/dist/cjs/bs-6002d2dc.js +48 -0
  294. package/dist/cjs/ca-fa6e53e8.js +68 -0
  295. package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
  296. package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
  297. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
  298. package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
  299. package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
  300. package/dist/cjs/calcite-action.cjs.entry.js +12 -11
  301. package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
  302. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  303. package/dist/cjs/calcite-block_2.cjs.entry.js +14 -13
  304. package/dist/cjs/calcite-button.cjs.entry.js +14 -13
  305. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  306. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
  307. package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -8
  308. package/dist/cjs/calcite-chip.cjs.entry.js +13 -12
  309. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -15
  310. package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -18
  311. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -13
  312. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -12
  313. package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
  314. package/dist/cjs/calcite-filter.cjs.entry.js +14 -13
  315. package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -12
  316. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  317. package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -13
  318. package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
  319. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  320. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
  321. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +23 -41
  322. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  323. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -13
  324. package/dist/cjs/calcite-input-text.cjs.entry.js +14 -13
  325. package/dist/cjs/calcite-input-time-picker.calcite-time-picker-4c6c855a.js +2823 -0
  326. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +17 -16
  327. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
  328. package/dist/cjs/calcite-input.cjs.entry.js +14 -13
  329. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  330. package/dist/cjs/calcite-link.cjs.entry.js +8 -7
  331. package/dist/cjs/calcite-list_3.cjs.entry.js +15 -14
  332. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  333. package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
  334. package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
  335. package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
  336. package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
  337. package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
  338. package/dist/cjs/calcite-option_3.cjs.entry.js +11 -10
  339. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
  340. package/dist/cjs/calcite-panel.cjs.entry.js +15 -14
  341. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -16
  342. package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
  343. package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
  344. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  345. package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -10
  346. package/dist/cjs/calcite-rating.cjs.entry.js +14 -13
  347. package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
  348. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -10
  349. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
  350. package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
  351. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -8
  352. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -4
  353. package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
  354. package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -10
  355. package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
  356. package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -10
  357. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +282 -0
  358. package/dist/cjs/calcite-table-row.cjs.entry.js +235 -0
  359. package/dist/cjs/calcite-table.cjs.entry.js +299 -0
  360. package/dist/cjs/calcite-text-area.cjs.entry.js +16 -15
  361. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -5
  362. package/dist/cjs/calcite-tile.cjs.entry.js +9 -8
  363. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  364. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
  365. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -8
  366. package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -16
  367. package/dist/cjs/calcite.cjs.js +5 -5
  368. package/dist/cjs/conditionalSlot-4b033773.js +58 -0
  369. package/dist/cjs/cs-15a12e01.js +144 -0
  370. package/dist/cjs/da-e13e1f52.js +63 -0
  371. package/dist/cjs/de-at-15dc244e.js +87 -0
  372. package/dist/cjs/de-ch-ff28d9e8.js +87 -0
  373. package/dist/cjs/de-dd9dccdd.js +88 -0
  374. package/dist/cjs/debounce-7a852ee1.js +496 -0
  375. package/dist/cjs/dom-ea0bb304.js +1056 -0
  376. package/dist/cjs/el-83749216.js +63 -0
  377. package/dist/cjs/en-au-ad58e9d1.js +63 -0
  378. package/dist/cjs/en-ca-a6686349.js +62 -0
  379. package/dist/cjs/en-gb-eab173b8.js +66 -0
  380. package/dist/cjs/es-fdfb457d.js +63 -0
  381. package/dist/cjs/es-mx-addeb4fe.js +62 -0
  382. package/dist/cjs/et-870c4a2e.js +89 -0
  383. package/dist/cjs/fi-0464f62e.js +112 -0
  384. package/dist/cjs/filter-4d2c1e89.js +760 -0
  385. package/dist/cjs/floating-ui-cda0e6e8.js +1883 -0
  386. package/dist/cjs/focusTrapComponent-39f45689.js +999 -0
  387. package/dist/cjs/form-5db341dd.js +283 -0
  388. package/dist/cjs/fr-545c7bb9.js +65 -0
  389. package/dist/cjs/fr-ch-e0e7786d.js +63 -0
  390. package/dist/cjs/guid-e9616580.js +21 -0
  391. package/dist/cjs/he-ab6813f7.js +102 -0
  392. package/dist/cjs/hi-c0aa717d.js +62 -0
  393. package/dist/cjs/hr-a32a418d.js +77 -0
  394. package/dist/cjs/hu-3930a9b4.js +85 -0
  395. package/dist/cjs/id-99e82723.js +63 -0
  396. package/dist/cjs/index-27680056.js +2327 -0
  397. package/dist/cjs/index.cjs.js +2 -2
  398. package/dist/cjs/interactive-486f5dea.js +142 -0
  399. package/dist/cjs/it-a485d1c0.js +63 -0
  400. package/dist/cjs/it-ch-9e137ea8.js +63 -0
  401. package/dist/cjs/ja-9e24f043.js +69 -0
  402. package/dist/cjs/key-2dc1cce5.js +14 -0
  403. package/dist/cjs/ko-09d15e16.js +69 -0
  404. package/dist/cjs/label-69736362.js +149 -0
  405. package/dist/cjs/loadable-14c9679e.js +89 -0
  406. package/dist/cjs/loader.cjs.js +5 -5
  407. package/dist/cjs/locale-251d00f4.js +594 -0
  408. package/dist/cjs/lt-f09dc473.js +94 -0
  409. package/dist/cjs/lv-33900432.js +63 -0
  410. package/dist/cjs/math-51ecbcbb.js +55 -0
  411. package/dist/cjs/mk-821bfc0b.js +63 -0
  412. package/dist/cjs/nb-85a288f3.js +64 -0
  413. package/dist/cjs/nl-e41301f5.js +64 -0
  414. package/dist/cjs/observers-9a8529c5.js +48 -0
  415. package/dist/cjs/openCloseComponent-5675db12.js +84 -0
  416. package/dist/cjs/pl-9df5fdb6.js +111 -0
  417. package/dist/cjs/pt-448f437b.js +64 -0
  418. package/dist/cjs/pt-br-d0f74cf1.js +62 -0
  419. package/dist/cjs/resources-015e0632.js +45 -0
  420. package/dist/cjs/resources-62652321.js +22 -0
  421. package/dist/cjs/resources-7220131c.js +24 -0
  422. package/dist/cjs/resources-8f715b22.js +410 -0
  423. package/dist/cjs/resources-b32e1ff0.js +27 -0
  424. package/dist/cjs/resources-b79ae61a.js +21 -0
  425. package/dist/cjs/resources-f55b8763.js +15 -0
  426. package/dist/cjs/ro-1704d5b7.js +63 -0
  427. package/dist/cjs/ru-325338ca.js +123 -0
  428. package/dist/cjs/sk-0b4d5d38.js +145 -0
  429. package/dist/cjs/sl-ed1345c9.js +63 -0
  430. package/dist/cjs/sortableComponent-765cf4f4.js +3107 -0
  431. package/dist/cjs/sr-08b334b9.js +98 -0
  432. package/dist/cjs/sv-b1d47816.js +68 -0
  433. package/dist/cjs/t9n-220a1c81.js +95 -0
  434. package/dist/cjs/th-8823c841.js +62 -0
  435. package/dist/cjs/throttle-07aa9840.js +75 -0
  436. package/dist/cjs/tr-7fc10d5c.js +63 -0
  437. package/dist/cjs/uk-2f738a79.js +101 -0
  438. package/dist/cjs/utils-58d8bf15.js +305 -0
  439. package/dist/cjs/utils-8d6c0881.js +216 -0
  440. package/dist/cjs/vi-668b169e.js +67 -0
  441. package/dist/cjs/zh-cn-800db98e.js +91 -0
  442. package/dist/cjs/zh-hk-b1632838.js +68 -0
  443. package/dist/cjs/zh-tw-5ef701f8.js +89 -0
  444. package/dist/collection/collection-manifest.json +4 -0
  445. package/dist/collection/components/accordion/accordion.js +1 -1
  446. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  447. package/dist/collection/components/accordion-item/resources.js +1 -1
  448. package/dist/collection/components/action/action.js +1 -1
  449. package/dist/collection/components/action/resources.js +1 -1
  450. package/dist/collection/components/action-bar/action-bar.js +1 -1
  451. package/dist/collection/components/action-bar/resources.js +1 -1
  452. package/dist/collection/components/action-bar/utils.js +1 -1
  453. package/dist/collection/components/action-group/action-group.js +1 -1
  454. package/dist/collection/components/action-group/resources.js +1 -1
  455. package/dist/collection/components/action-menu/action-menu.js +1 -1
  456. package/dist/collection/components/action-menu/resources.js +1 -1
  457. package/dist/collection/components/action-pad/action-pad.js +1 -1
  458. package/dist/collection/components/action-pad/resources.js +1 -1
  459. package/dist/collection/components/alert/alert.js +1 -1
  460. package/dist/collection/components/alert/resources.js +1 -1
  461. package/dist/collection/components/avatar/avatar.js +1 -1
  462. package/dist/collection/components/avatar/utils.js +1 -1
  463. package/dist/collection/components/block/block.js +1 -1
  464. package/dist/collection/components/block/resources.js +1 -1
  465. package/dist/collection/components/block-section/block-section.js +1 -1
  466. package/dist/collection/components/block-section/resources.js +1 -1
  467. package/dist/collection/components/button/button.js +1 -1
  468. package/dist/collection/components/button/resources.js +1 -1
  469. package/dist/collection/components/card/card.js +1 -1
  470. package/dist/collection/components/card/resources.js +1 -1
  471. package/dist/collection/components/checkbox/checkbox.js +1 -1
  472. package/dist/collection/components/chip/chip.js +1 -1
  473. package/dist/collection/components/chip/resources.js +1 -1
  474. package/dist/collection/components/chip-group/chip-group.js +1 -1
  475. package/dist/collection/components/color-picker/color-picker.js +1 -1
  476. package/dist/collection/components/color-picker/resources.js +1 -1
  477. package/dist/collection/components/color-picker/utils.js +1 -1
  478. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  479. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  480. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  481. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  482. package/dist/collection/components/combobox/combobox.js +1 -1
  483. package/dist/collection/components/combobox/resources.js +1 -1
  484. package/dist/collection/components/combobox/utils.js +1 -1
  485. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  486. package/dist/collection/components/combobox-item/resources.js +1 -1
  487. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  488. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  489. package/dist/collection/components/date-picker/date-picker.js +1 -1
  490. package/dist/collection/components/date-picker/resources.js +1 -1
  491. package/dist/collection/components/date-picker/utils.js +1 -1
  492. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  493. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  494. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  495. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  496. package/dist/collection/components/dropdown/dropdown.js +1 -1
  497. package/dist/collection/components/dropdown/resources.js +1 -1
  498. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  499. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  500. package/dist/collection/components/dropdown-item/resources.js +1 -1
  501. package/dist/collection/components/fab/fab.js +1 -1
  502. package/dist/collection/components/fab/resources.js +1 -1
  503. package/dist/collection/components/filter/filter.js +1 -1
  504. package/dist/collection/components/filter/resources.js +1 -1
  505. package/dist/collection/components/flow/flow.js +1 -1
  506. package/dist/collection/components/flow/resources.js +1 -1
  507. package/dist/collection/components/flow-item/flow-item.js +1 -1
  508. package/dist/collection/components/flow-item/resources.js +1 -1
  509. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  510. package/dist/collection/components/functional/FloatingArrow.js +1 -1
  511. package/dist/collection/components/functional/Heading.js +1 -1
  512. package/dist/collection/components/functional/XButton.js +1 -1
  513. package/dist/collection/components/graph/graph.js +1 -1
  514. package/dist/collection/components/graph/util.js +1 -1
  515. package/dist/collection/components/handle/handle.js +1 -1
  516. package/dist/collection/components/handle/resources.js +1 -1
  517. package/dist/collection/components/icon/icon.js +1 -1
  518. package/dist/collection/components/icon/resources.js +1 -1
  519. package/dist/collection/components/icon/utils.js +1 -1
  520. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  521. package/dist/collection/components/inline-editable/resources.js +1 -1
  522. package/dist/collection/components/input/input.js +1 -1
  523. package/dist/collection/components/input/resources.js +1 -1
  524. package/dist/collection/components/input-date-picker/input-date-picker.js +5 -42
  525. package/dist/collection/components/input-date-picker/resources.js +1 -1
  526. package/dist/collection/components/input-date-picker/utils.js +1 -1
  527. package/dist/collection/components/input-message/input-message.js +1 -1
  528. package/dist/collection/components/input-message/interfaces.js +1 -1
  529. package/dist/collection/components/input-number/input-number.js +1 -1
  530. package/dist/collection/components/input-number/resources.js +1 -1
  531. package/dist/collection/components/input-text/input-text.js +1 -1
  532. package/dist/collection/components/input-text/resources.js +1 -1
  533. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  534. package/dist/collection/components/input-time-picker/resources.js +1 -1
  535. package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
  536. package/dist/collection/components/input-time-zone/utils.js +1 -1
  537. package/dist/collection/components/label/label.js +1 -1
  538. package/dist/collection/components/label/resources.js +1 -1
  539. package/dist/collection/components/link/link.js +1 -1
  540. package/dist/collection/components/list/list.js +1 -1
  541. package/dist/collection/components/list/resources.js +1 -1
  542. package/dist/collection/components/list-item/list-item.js +1 -1
  543. package/dist/collection/components/list-item/resources.js +1 -1
  544. package/dist/collection/components/list-item/utils.js +1 -1
  545. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  546. package/dist/collection/components/list-item-group/resources.js +1 -1
  547. package/dist/collection/components/loader/loader.js +1 -1
  548. package/dist/collection/components/menu/menu.js +1 -1
  549. package/dist/collection/components/menu-item/menu-item.js +1 -1
  550. package/dist/collection/components/menu-item/resources.js +1 -1
  551. package/dist/collection/components/meter/meter.js +1 -1
  552. package/dist/collection/components/meter/resources.js +1 -1
  553. package/dist/collection/components/modal/modal.js +1 -1
  554. package/dist/collection/components/modal/resources.js +1 -1
  555. package/dist/collection/components/navigation/navigation.js +1 -1
  556. package/dist/collection/components/navigation/resources.js +1 -1
  557. package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
  558. package/dist/collection/components/navigation-logo/resources.js +1 -1
  559. package/dist/collection/components/navigation-user/navigation-user.js +1 -1
  560. package/dist/collection/components/navigation-user/resources.js +1 -1
  561. package/dist/collection/components/notice/notice.js +1 -1
  562. package/dist/collection/components/notice/resources.js +1 -1
  563. package/dist/collection/components/option/option.js +1 -1
  564. package/dist/collection/components/option-group/option-group.js +1 -1
  565. package/dist/collection/components/pagination/pagination.js +1 -1
  566. package/dist/collection/components/pagination/resources.js +1 -1
  567. package/dist/collection/components/panel/panel.js +1 -1
  568. package/dist/collection/components/panel/resources.js +1 -1
  569. package/dist/collection/components/pick-list/pick-list.js +1 -1
  570. package/dist/collection/components/pick-list/resources.js +1 -1
  571. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  572. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  573. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  574. package/dist/collection/components/pick-list-group/resources.js +1 -1
  575. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  576. package/dist/collection/components/pick-list-item/resources.js +1 -1
  577. package/dist/collection/components/popover/PopoverManager.js +1 -1
  578. package/dist/collection/components/popover/popover.js +1 -1
  579. package/dist/collection/components/popover/resources.js +1 -1
  580. package/dist/collection/components/progress/progress.js +1 -1
  581. package/dist/collection/components/radio-button/radio-button.js +1 -1
  582. package/dist/collection/components/radio-button/resources.js +1 -1
  583. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  584. package/dist/collection/components/rating/function/star.js +1 -1
  585. package/dist/collection/components/rating/rating.js +1 -1
  586. package/dist/collection/components/resources.js +1 -1
  587. package/dist/collection/components/scrim/resources.js +1 -1
  588. package/dist/collection/components/scrim/scrim.js +1 -1
  589. package/dist/collection/components/segmented-control/segmented-control.js +1 -1
  590. package/dist/collection/components/segmented-control-item/resources.js +1 -1
  591. package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
  592. package/dist/collection/components/select/resources.js +1 -1
  593. package/dist/collection/components/select/select.js +1 -1
  594. package/dist/collection/components/sheet/resources.js +1 -1
  595. package/dist/collection/components/sheet/sheet.js +1 -1
  596. package/dist/collection/components/shell/resources.js +1 -1
  597. package/dist/collection/components/shell/shell.js +1 -1
  598. package/dist/collection/components/shell-center-row/resources.js +1 -1
  599. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  600. package/dist/collection/components/shell-panel/resources.js +1 -1
  601. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  602. package/dist/collection/components/slider/resources.js +1 -1
  603. package/dist/collection/components/slider/slider.js +1 -1
  604. package/dist/collection/components/sortable-list/resources.js +1 -1
  605. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  606. package/dist/collection/components/split-button/resources.js +1 -1
  607. package/dist/collection/components/split-button/split-button.js +1 -1
  608. package/dist/collection/components/stack/resources.js +1 -1
  609. package/dist/collection/components/stack/stack.js +1 -1
  610. package/dist/collection/components/stepper/stepper.js +1 -1
  611. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  612. package/dist/collection/components/switch/switch.js +1 -1
  613. package/dist/collection/components/tab/tab.js +1 -1
  614. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  615. package/dist/collection/components/tab-title/resources.js +1 -1
  616. package/dist/collection/components/tab-title/tab-title.js +1 -1
  617. package/dist/collection/components/table/assets/table/t9n/index.d.ts +7 -0
  618. package/dist/collection/components/table/assets/table/t9n/messages.json +7 -0
  619. package/dist/collection/components/table/assets/table/t9n/messages_ar.json +7 -0
  620. package/dist/collection/components/table/assets/table/t9n/messages_bg.json +7 -0
  621. package/dist/collection/components/table/assets/table/t9n/messages_bs.json +7 -0
  622. package/dist/collection/components/table/assets/table/t9n/messages_ca.json +7 -0
  623. package/dist/collection/components/table/assets/table/t9n/messages_cs.json +7 -0
  624. package/dist/collection/components/table/assets/table/t9n/messages_da.json +7 -0
  625. package/dist/collection/components/table/assets/table/t9n/messages_de.json +7 -0
  626. package/dist/collection/components/table/assets/table/t9n/messages_el.json +7 -0
  627. package/dist/collection/components/table/assets/table/t9n/messages_en.json +7 -0
  628. package/dist/collection/components/table/assets/table/t9n/messages_es.json +7 -0
  629. package/dist/collection/components/table/assets/table/t9n/messages_et.json +7 -0
  630. package/dist/collection/components/table/assets/table/t9n/messages_fi.json +7 -0
  631. package/dist/collection/components/table/assets/table/t9n/messages_fr.json +7 -0
  632. package/dist/collection/components/table/assets/table/t9n/messages_he.json +7 -0
  633. package/dist/collection/components/table/assets/table/t9n/messages_hr.json +7 -0
  634. package/dist/collection/components/table/assets/table/t9n/messages_hu.json +7 -0
  635. package/dist/collection/components/table/assets/table/t9n/messages_id.json +7 -0
  636. package/dist/collection/components/table/assets/table/t9n/messages_it.json +7 -0
  637. package/dist/collection/components/table/assets/table/t9n/messages_ja.json +7 -0
  638. package/dist/collection/components/table/assets/table/t9n/messages_ko.json +7 -0
  639. package/dist/collection/components/table/assets/table/t9n/messages_lt.json +7 -0
  640. package/dist/collection/components/table/assets/table/t9n/messages_lv.json +7 -0
  641. package/dist/collection/components/table/assets/table/t9n/messages_nl.json +7 -0
  642. package/dist/collection/components/table/assets/table/t9n/messages_no.json +7 -0
  643. package/dist/collection/components/table/assets/table/t9n/messages_pl.json +7 -0
  644. package/dist/collection/components/table/assets/table/t9n/messages_pt-BR.json +7 -0
  645. package/dist/collection/components/table/assets/table/t9n/messages_pt-PT.json +7 -0
  646. package/dist/collection/components/table/assets/table/t9n/messages_ro.json +7 -0
  647. package/dist/collection/components/table/assets/table/t9n/messages_ru.json +7 -0
  648. package/dist/collection/components/table/assets/table/t9n/messages_sk.json +7 -0
  649. package/dist/collection/components/table/assets/table/t9n/messages_sl.json +7 -0
  650. package/dist/collection/components/table/assets/table/t9n/messages_sr.json +7 -0
  651. package/dist/collection/components/table/assets/table/t9n/messages_sv.json +7 -0
  652. package/dist/collection/components/table/assets/table/t9n/messages_th.json +7 -0
  653. package/dist/collection/components/table/assets/table/t9n/messages_tr.json +7 -0
  654. package/dist/collection/components/table/assets/table/t9n/messages_uk.json +7 -0
  655. package/dist/collection/components/table/assets/table/t9n/messages_vi.json +7 -0
  656. package/dist/collection/components/table/assets/table/t9n/messages_zh-CN.json +7 -0
  657. package/dist/collection/components/table/assets/table/t9n/messages_zh-HK.json +7 -0
  658. package/dist/collection/components/table/assets/table/t9n/messages_zh-TW.json +7 -0
  659. package/dist/collection/components/table/interfaces.js +1 -0
  660. package/dist/collection/components/table/resources.js +21 -0
  661. package/dist/collection/components/table/table.css +118 -0
  662. package/dist/collection/components/table/table.js +654 -0
  663. package/dist/collection/components/table-cell/assets/table-cell/t9n/index.d.ts +7 -0
  664. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages.json +7 -0
  665. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ar.json +7 -0
  666. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_bg.json +7 -0
  667. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_bs.json +7 -0
  668. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ca.json +7 -0
  669. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_cs.json +7 -0
  670. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_da.json +7 -0
  671. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_de.json +7 -0
  672. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_el.json +7 -0
  673. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_en.json +7 -0
  674. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_es.json +7 -0
  675. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_et.json +7 -0
  676. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_fi.json +7 -0
  677. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_fr.json +7 -0
  678. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_he.json +7 -0
  679. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_hr.json +7 -0
  680. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_hu.json +7 -0
  681. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_id.json +7 -0
  682. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_it.json +7 -0
  683. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ja.json +7 -0
  684. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ko.json +7 -0
  685. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_lt.json +7 -0
  686. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_lv.json +7 -0
  687. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_nl.json +7 -0
  688. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_no.json +7 -0
  689. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pl.json +7 -0
  690. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pt-BR.json +7 -0
  691. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pt-PT.json +7 -0
  692. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ro.json +7 -0
  693. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ru.json +7 -0
  694. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sk.json +7 -0
  695. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sl.json +7 -0
  696. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sr.json +7 -0
  697. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sv.json +7 -0
  698. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_th.json +7 -0
  699. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_tr.json +7 -0
  700. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_uk.json +7 -0
  701. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_vi.json +7 -0
  702. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-CN.json +7 -0
  703. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-HK.json +7 -0
  704. package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-TW.json +7 -0
  705. package/dist/collection/components/table-cell/resources.js +12 -0
  706. package/dist/collection/components/table-cell/table-cell.css +108 -0
  707. package/dist/collection/components/table-cell/table-cell.js +470 -0
  708. package/dist/collection/components/table-header/assets/table-header/t9n/index.d.ts +8 -0
  709. package/dist/collection/components/table-header/assets/table-header/t9n/messages.json +8 -0
  710. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ar.json +8 -0
  711. package/dist/collection/components/table-header/assets/table-header/t9n/messages_bg.json +8 -0
  712. package/dist/collection/components/table-header/assets/table-header/t9n/messages_bs.json +8 -0
  713. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ca.json +8 -0
  714. package/dist/collection/components/table-header/assets/table-header/t9n/messages_cs.json +8 -0
  715. package/dist/collection/components/table-header/assets/table-header/t9n/messages_da.json +8 -0
  716. package/dist/collection/components/table-header/assets/table-header/t9n/messages_de.json +8 -0
  717. package/dist/collection/components/table-header/assets/table-header/t9n/messages_el.json +8 -0
  718. package/dist/collection/components/table-header/assets/table-header/t9n/messages_en.json +8 -0
  719. package/dist/collection/components/table-header/assets/table-header/t9n/messages_es.json +8 -0
  720. package/dist/collection/components/table-header/assets/table-header/t9n/messages_et.json +8 -0
  721. package/dist/collection/components/table-header/assets/table-header/t9n/messages_fi.json +8 -0
  722. package/dist/collection/components/table-header/assets/table-header/t9n/messages_fr.json +8 -0
  723. package/dist/collection/components/table-header/assets/table-header/t9n/messages_he.json +8 -0
  724. package/dist/collection/components/table-header/assets/table-header/t9n/messages_hr.json +8 -0
  725. package/dist/collection/components/table-header/assets/table-header/t9n/messages_hu.json +8 -0
  726. package/dist/collection/components/table-header/assets/table-header/t9n/messages_id.json +8 -0
  727. package/dist/collection/components/table-header/assets/table-header/t9n/messages_it.json +8 -0
  728. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ja.json +8 -0
  729. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ko.json +8 -0
  730. package/dist/collection/components/table-header/assets/table-header/t9n/messages_lt.json +8 -0
  731. package/dist/collection/components/table-header/assets/table-header/t9n/messages_lv.json +8 -0
  732. package/dist/collection/components/table-header/assets/table-header/t9n/messages_nl.json +8 -0
  733. package/dist/collection/components/table-header/assets/table-header/t9n/messages_no.json +8 -0
  734. package/dist/collection/components/table-header/assets/table-header/t9n/messages_pl.json +8 -0
  735. package/dist/collection/components/table-header/assets/table-header/t9n/messages_pt-BR.json +8 -0
  736. package/dist/collection/components/table-header/assets/table-header/t9n/messages_pt-PT.json +8 -0
  737. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ro.json +8 -0
  738. package/dist/collection/components/table-header/assets/table-header/t9n/messages_ru.json +8 -0
  739. package/dist/collection/components/table-header/assets/table-header/t9n/messages_sk.json +8 -0
  740. package/dist/collection/components/table-header/assets/table-header/t9n/messages_sl.json +8 -0
  741. package/dist/collection/components/table-header/assets/table-header/t9n/messages_sr.json +8 -0
  742. package/dist/collection/components/table-header/assets/table-header/t9n/messages_sv.json +8 -0
  743. package/dist/collection/components/table-header/assets/table-header/t9n/messages_th.json +8 -0
  744. package/dist/collection/components/table-header/assets/table-header/t9n/messages_tr.json +8 -0
  745. package/dist/collection/components/table-header/assets/table-header/t9n/messages_uk.json +8 -0
  746. package/dist/collection/components/table-header/assets/table-header/t9n/messages_vi.json +8 -0
  747. package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-CN.json +8 -0
  748. package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-HK.json +8 -0
  749. package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-TW.json +8 -0
  750. package/dist/collection/components/table-header/resources.js +16 -0
  751. package/dist/collection/components/table-header/table-header.css +109 -0
  752. package/dist/collection/components/table-header/table-header.js +535 -0
  753. package/dist/collection/components/table-row/table-row.css +53 -0
  754. package/dist/collection/components/table-row/table-row.js +602 -0
  755. package/dist/collection/components/tabs/resources.js +1 -1
  756. package/dist/collection/components/tabs/tabs.js +1 -1
  757. package/dist/collection/components/text-area/resources.js +1 -1
  758. package/dist/collection/components/text-area/text-area.js +1 -1
  759. package/dist/collection/components/tile/resources.js +1 -1
  760. package/dist/collection/components/tile/tile.js +1 -1
  761. package/dist/collection/components/tile-select/resources.js +1 -1
  762. package/dist/collection/components/tile-select/tile-select.js +1 -1
  763. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  764. package/dist/collection/components/time-picker/resources.js +1 -1
  765. package/dist/collection/components/time-picker/time-picker.js +1 -1
  766. package/dist/collection/components/tip/resources.js +1 -1
  767. package/dist/collection/components/tip/tip.js +1 -1
  768. package/dist/collection/components/tip-group/tip-group.js +1 -1
  769. package/dist/collection/components/tip-manager/resources.js +1 -1
  770. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  771. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  772. package/dist/collection/components/tooltip/resources.js +1 -1
  773. package/dist/collection/components/tooltip/tooltip.js +1 -1
  774. package/dist/collection/components/tooltip/utils.js +1 -1
  775. package/dist/collection/components/tree/tree.js +1 -1
  776. package/dist/collection/components/tree/utils.js +1 -1
  777. package/dist/collection/components/tree-item/resources.js +1 -1
  778. package/dist/collection/components/tree-item/tree-item.js +1 -1
  779. package/dist/collection/components/value-list/resources.js +1 -1
  780. package/dist/collection/components/value-list/utils.js +1 -1
  781. package/dist/collection/components/value-list/value-list.js +1 -1
  782. package/dist/collection/components/value-list-item/resources.js +1 -1
  783. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  784. package/dist/collection/index.js +1 -1
  785. package/dist/collection/utils/array.js +1 -1
  786. package/dist/collection/utils/browser.js +1 -1
  787. package/dist/collection/utils/conditionalSlot.js +1 -1
  788. package/dist/collection/utils/config.js +1 -1
  789. package/dist/collection/utils/date.js +1 -1
  790. package/dist/collection/utils/dom.js +1 -1
  791. package/dist/collection/utils/filter.js +1 -1
  792. package/dist/collection/utils/floating-ui.js +1 -1
  793. package/dist/collection/utils/focusTrapComponent.js +1 -1
  794. package/dist/collection/utils/form.js +1 -1
  795. package/dist/collection/utils/globalAttributes.js +1 -1
  796. package/dist/collection/utils/globalScript.js +1 -1
  797. package/dist/collection/utils/guid.js +1 -1
  798. package/dist/collection/utils/interactive.js +1 -1
  799. package/dist/collection/utils/key.js +1 -1
  800. package/dist/collection/utils/label.js +1 -1
  801. package/dist/collection/utils/loadable.js +1 -1
  802. package/dist/collection/utils/locale.js +1 -1
  803. package/dist/collection/utils/math.js +1 -1
  804. package/dist/collection/utils/mode.js +1 -1
  805. package/dist/collection/utils/number.js +1 -1
  806. package/dist/collection/utils/observers.js +1 -1
  807. package/dist/collection/utils/openCloseComponent.js +1 -1
  808. package/dist/collection/utils/resources.js +1 -1
  809. package/dist/collection/utils/sortableComponent.js +1 -1
  810. package/dist/collection/utils/t9n.js +1 -1
  811. package/dist/collection/utils/time.js +1 -1
  812. package/dist/components/ExpandToggle.js +1 -1
  813. package/dist/components/FloatingArrow.js +1 -1
  814. package/dist/components/Heading.js +1 -1
  815. package/dist/components/action-group.js +1 -1
  816. package/dist/components/action-menu.js +1 -1
  817. package/dist/components/action.js +1 -1
  818. package/dist/components/ar.js +1 -1
  819. package/dist/components/array.js +1 -1
  820. package/dist/components/avatar.js +1 -1
  821. package/dist/components/bg.js +1 -1
  822. package/dist/components/bs.js +1 -1
  823. package/dist/components/button.js +1 -1
  824. package/dist/components/ca.js +1 -1
  825. package/dist/components/calcite-accordion-item.js +1 -1
  826. package/dist/components/calcite-accordion.js +1 -1
  827. package/dist/components/calcite-action-bar.js +1 -1
  828. package/dist/components/calcite-action-group.js +1 -1
  829. package/dist/components/calcite-action-menu.js +1 -1
  830. package/dist/components/calcite-action-pad.js +1 -1
  831. package/dist/components/calcite-action.js +1 -1
  832. package/dist/components/calcite-alert.js +1 -1
  833. package/dist/components/calcite-avatar.js +1 -1
  834. package/dist/components/calcite-block-section.js +1 -1
  835. package/dist/components/calcite-block.js +1 -1
  836. package/dist/components/calcite-button.js +1 -1
  837. package/dist/components/calcite-card.js +1 -1
  838. package/dist/components/calcite-checkbox.js +1 -1
  839. package/dist/components/calcite-chip-group.js +1 -1
  840. package/dist/components/calcite-chip.js +1 -1
  841. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  842. package/dist/components/calcite-color-picker-swatch.js +1 -1
  843. package/dist/components/calcite-color-picker.js +1 -1
  844. package/dist/components/calcite-combobox-item-group.js +1 -1
  845. package/dist/components/calcite-combobox-item.js +1 -1
  846. package/dist/components/calcite-combobox.js +1 -1
  847. package/dist/components/calcite-date-picker-day.js +1 -1
  848. package/dist/components/calcite-date-picker-month-header.js +1 -1
  849. package/dist/components/calcite-date-picker-month.js +1 -1
  850. package/dist/components/calcite-date-picker.js +1 -1
  851. package/dist/components/calcite-dropdown-group.js +1 -1
  852. package/dist/components/calcite-dropdown-item.js +1 -1
  853. package/dist/components/calcite-dropdown.js +1 -1
  854. package/dist/components/calcite-fab.js +1 -1
  855. package/dist/components/calcite-filter.js +1 -1
  856. package/dist/components/calcite-flow-item.js +1 -1
  857. package/dist/components/calcite-flow.js +1 -1
  858. package/dist/components/calcite-graph.js +1 -1
  859. package/dist/components/calcite-handle.js +1 -1
  860. package/dist/components/calcite-icon.js +1 -1
  861. package/dist/components/calcite-inline-editable.js +1 -1
  862. package/dist/components/calcite-input-date-picker.js +5 -25
  863. package/dist/components/calcite-input-message.js +1 -1
  864. package/dist/components/calcite-input-number.js +1 -1
  865. package/dist/components/calcite-input-text.js +1 -1
  866. package/dist/components/calcite-input-time-picker.js +1 -1
  867. package/dist/components/calcite-input-time-zone.js +1 -1
  868. package/dist/components/calcite-input.js +1 -1
  869. package/dist/components/calcite-label.js +1 -1
  870. package/dist/components/calcite-link.js +1 -1
  871. package/dist/components/calcite-list-item-group.js +1 -1
  872. package/dist/components/calcite-list-item.js +1 -1
  873. package/dist/components/calcite-list.js +1 -1
  874. package/dist/components/calcite-loader.js +1 -1
  875. package/dist/components/calcite-menu-item.js +1 -1
  876. package/dist/components/calcite-menu.js +1 -1
  877. package/dist/components/calcite-meter.js +1 -1
  878. package/dist/components/calcite-modal.js +1 -1
  879. package/dist/components/calcite-navigation-logo.js +1 -1
  880. package/dist/components/calcite-navigation-user.js +1 -1
  881. package/dist/components/calcite-navigation.js +1 -1
  882. package/dist/components/calcite-notice.js +1 -1
  883. package/dist/components/calcite-option-group.js +1 -1
  884. package/dist/components/calcite-option.js +1 -1
  885. package/dist/components/calcite-pagination.js +2 -238
  886. package/dist/components/calcite-panel.js +1 -1
  887. package/dist/components/calcite-pick-list-group.js +1 -1
  888. package/dist/components/calcite-pick-list-item.js +1 -1
  889. package/dist/components/calcite-pick-list.js +1 -1
  890. package/dist/components/calcite-popover.js +1 -1
  891. package/dist/components/calcite-progress.js +1 -1
  892. package/dist/components/calcite-radio-button-group.js +1 -1
  893. package/dist/components/calcite-radio-button.js +1 -1
  894. package/dist/components/calcite-rating.js +1 -1
  895. package/dist/components/calcite-scrim.js +1 -1
  896. package/dist/components/calcite-segmented-control-item.js +1 -1
  897. package/dist/components/calcite-segmented-control.js +1 -1
  898. package/dist/components/calcite-select.js +1 -1
  899. package/dist/components/calcite-sheet.js +1 -1
  900. package/dist/components/calcite-shell-center-row.js +1 -1
  901. package/dist/components/calcite-shell-panel.js +1 -1
  902. package/dist/components/calcite-shell.js +1 -1
  903. package/dist/components/calcite-slider.js +1 -1
  904. package/dist/components/calcite-sortable-list.js +1 -1
  905. package/dist/components/calcite-split-button.js +1 -1
  906. package/dist/components/calcite-stack.js +1 -1
  907. package/dist/components/calcite-stepper-item.js +1 -1
  908. package/dist/components/calcite-stepper.js +1 -1
  909. package/dist/components/calcite-switch.js +1 -1
  910. package/dist/components/calcite-tab-nav.js +1 -1
  911. package/dist/components/calcite-tab-title.js +1 -1
  912. package/dist/components/calcite-tab.js +1 -1
  913. package/dist/components/calcite-table-cell.d.ts +11 -0
  914. package/dist/components/calcite-table-cell.js +11 -0
  915. package/dist/components/calcite-table-header.d.ts +11 -0
  916. package/dist/components/calcite-table-header.js +11 -0
  917. package/dist/components/calcite-table-row.d.ts +11 -0
  918. package/dist/components/calcite-table-row.js +281 -0
  919. package/dist/components/calcite-table.d.ts +11 -0
  920. package/dist/components/calcite-table.js +359 -0
  921. package/dist/components/calcite-tabs.js +1 -1
  922. package/dist/components/calcite-text-area.js +1 -1
  923. package/dist/components/calcite-tile-select-group.js +1 -1
  924. package/dist/components/calcite-tile-select.js +1 -1
  925. package/dist/components/calcite-tile.js +1 -1
  926. package/dist/components/calcite-time-picker.js +1 -1
  927. package/dist/components/calcite-tip-group.js +1 -1
  928. package/dist/components/calcite-tip-manager.js +1 -1
  929. package/dist/components/calcite-tip.js +1 -1
  930. package/dist/components/calcite-tooltip.js +1 -1
  931. package/dist/components/calcite-tree-item.js +1 -1
  932. package/dist/components/calcite-tree.js +1 -1
  933. package/dist/components/calcite-value-list-item.js +1 -1
  934. package/dist/components/calcite-value-list.js +1 -1
  935. package/dist/components/checkbox.js +1 -1
  936. package/dist/components/chip.js +1 -1
  937. package/dist/components/color-picker-hex-input.js +1 -1
  938. package/dist/components/color-picker-swatch.js +1 -1
  939. package/dist/components/combobox-item.js +1 -1
  940. package/dist/components/combobox.js +1 -1
  941. package/dist/components/conditionalSlot.js +1 -1
  942. package/dist/components/cs.js +1 -1
  943. package/dist/components/da.js +1 -1
  944. package/dist/components/date-picker-day.js +1 -1
  945. package/dist/components/date-picker-month-header.js +1 -1
  946. package/dist/components/date-picker-month.js +1 -1
  947. package/dist/components/date-picker.js +1 -1
  948. package/dist/components/date.js +1 -1
  949. package/dist/components/de-at.js +1 -1
  950. package/dist/components/de-ch.js +1 -1
  951. package/dist/components/de.js +1 -1
  952. package/dist/components/debounce.js +1 -1
  953. package/dist/components/dom.js +1 -1
  954. package/dist/components/dropdown.js +1 -1
  955. package/dist/components/el.js +1 -1
  956. package/dist/components/en-au.js +1 -1
  957. package/dist/components/en-ca.js +1 -1
  958. package/dist/components/en-gb.js +1 -1
  959. package/dist/components/es-mx.js +1 -1
  960. package/dist/components/es.js +1 -1
  961. package/dist/components/et.js +1 -1
  962. package/dist/components/fi.js +1 -1
  963. package/dist/components/filter.js +1 -1
  964. package/dist/components/filter2.js +1 -1
  965. package/dist/components/floating-ui.js +1 -1
  966. package/dist/components/focusTrapComponent.js +1 -1
  967. package/dist/components/form.js +1 -1
  968. package/dist/components/fr-ch.js +1 -1
  969. package/dist/components/fr.js +1 -1
  970. package/dist/components/graph.js +1 -1
  971. package/dist/components/guid.js +1 -1
  972. package/dist/components/handle.js +1 -1
  973. package/dist/components/he.js +1 -1
  974. package/dist/components/hi.js +1 -1
  975. package/dist/components/hr.js +1 -1
  976. package/dist/components/hu.js +1 -1
  977. package/dist/components/icon.js +1 -1
  978. package/dist/components/id.js +1 -1
  979. package/dist/components/index.d.ts +4 -0
  980. package/dist/components/index.js +1 -1
  981. package/dist/components/index2.js +1 -1
  982. package/dist/components/input-number.js +1 -1
  983. package/dist/components/input-text.js +1 -1
  984. package/dist/components/input.js +1 -1
  985. package/dist/components/interactive.js +2 -2
  986. package/dist/components/it-ch.js +1 -1
  987. package/dist/components/it.js +1 -1
  988. package/dist/components/ja.js +1 -1
  989. package/dist/components/key.js +1 -1
  990. package/dist/components/ko.js +1 -1
  991. package/dist/components/label.js +1 -1
  992. package/dist/components/label2.js +1 -1
  993. package/dist/components/link.js +1 -1
  994. package/dist/components/loadable.js +1 -1
  995. package/dist/components/loader.js +1 -1
  996. package/dist/components/locale.js +1 -1
  997. package/dist/components/lt.js +1 -1
  998. package/dist/components/lv.js +1 -1
  999. package/dist/components/math.js +1 -1
  1000. package/dist/components/menu.js +1 -1
  1001. package/dist/components/mk.js +1 -1
  1002. package/dist/components/nb.js +1 -1
  1003. package/dist/components/nl.js +1 -1
  1004. package/dist/components/observers.js +1 -1
  1005. package/dist/components/openCloseComponent.js +1 -1
  1006. package/dist/components/pagination.js +244 -0
  1007. package/dist/components/panel.js +1 -1
  1008. package/dist/components/pick-list-item.js +1 -1
  1009. package/dist/components/pl.js +1 -1
  1010. package/dist/components/popover.js +1 -1
  1011. package/dist/components/progress.js +1 -1
  1012. package/dist/components/pt-br.js +1 -1
  1013. package/dist/components/pt.js +1 -1
  1014. package/dist/components/resources.js +1 -1
  1015. package/dist/components/resources2.js +1 -1
  1016. package/dist/components/resources3.js +1 -1
  1017. package/dist/components/resources4.js +1 -1
  1018. package/dist/components/ro.js +1 -1
  1019. package/dist/components/ru.js +1 -1
  1020. package/dist/components/scrim.js +1 -1
  1021. package/dist/components/shared-list-render.js +1 -1
  1022. package/dist/components/sk.js +1 -1
  1023. package/dist/components/sl.js +1 -1
  1024. package/dist/components/sortableComponent.js +1 -1
  1025. package/dist/components/sr.js +1 -1
  1026. package/dist/components/stack.js +1 -1
  1027. package/dist/components/sv.js +1 -1
  1028. package/dist/components/switch.js +1 -1
  1029. package/dist/components/t9n.js +1 -1
  1030. package/dist/components/tab-nav.js +1 -1
  1031. package/dist/components/tab-title.js +1 -1
  1032. package/dist/components/tab.js +1 -1
  1033. package/dist/components/table-cell.js +172 -0
  1034. package/dist/components/table-header.js +191 -0
  1035. package/dist/components/tabs.js +1 -1
  1036. package/dist/components/th.js +1 -1
  1037. package/dist/components/throttle.js +1 -1
  1038. package/dist/components/tile.js +1 -1
  1039. package/dist/components/time-picker.js +1 -1
  1040. package/dist/components/tr.js +1 -1
  1041. package/dist/components/uk.js +1 -1
  1042. package/dist/components/utils.js +1 -1
  1043. package/dist/components/utils2.js +1 -1
  1044. package/dist/components/utils3.js +1 -1
  1045. package/dist/components/vi.js +1 -1
  1046. package/dist/components/zh-cn.js +1 -1
  1047. package/dist/components/zh-hk.js +1 -1
  1048. package/dist/components/zh-tw.js +1 -1
  1049. package/dist/esm/ExpandToggle-681aef6d.js +99 -0
  1050. package/dist/esm/FloatingArrow-f8c85286.js +43 -0
  1051. package/dist/esm/Heading-5b1b03e8.js +17 -0
  1052. package/dist/esm/app-globals-49c73a91.js +57 -0
  1053. package/dist/esm/ar-30a33ee8.js +96 -0
  1054. package/dist/esm/array-f8bbe0a3.js +10 -0
  1055. package/dist/esm/bg-fc94160e.js +77 -0
  1056. package/dist/esm/browser-342337a9.js +16 -0
  1057. package/dist/esm/bs-9bf92f4e.js +46 -0
  1058. package/dist/esm/ca-9b2066c3.js +66 -0
  1059. package/dist/esm/calcite-accordion_2.entry.js +7 -7
  1060. package/dist/esm/calcite-action-bar.entry.js +15 -15
  1061. package/dist/esm/calcite-action-group.entry.js +13 -13
  1062. package/dist/esm/calcite-action-menu.entry.js +9 -9
  1063. package/dist/esm/calcite-action-pad.entry.js +14 -14
  1064. package/dist/esm/calcite-action.entry.js +12 -11
  1065. package/dist/esm/calcite-alert.entry.js +12 -12
  1066. package/dist/esm/calcite-avatar.entry.js +6 -6
  1067. package/dist/esm/calcite-block_2.entry.js +14 -13
  1068. package/dist/esm/calcite-button.entry.js +14 -13
  1069. package/dist/esm/calcite-card.entry.js +10 -10
  1070. package/dist/esm/calcite-checkbox.entry.js +11 -10
  1071. package/dist/esm/calcite-chip-group.entry.js +9 -8
  1072. package/dist/esm/calcite-chip.entry.js +13 -12
  1073. package/dist/esm/calcite-color-picker_3.entry.js +16 -15
  1074. package/dist/esm/calcite-combobox_3.entry.js +19 -18
  1075. package/dist/esm/calcite-date-picker_4.entry.js +14 -13
  1076. package/dist/esm/calcite-dropdown_3.entry.js +13 -12
  1077. package/dist/esm/calcite-fab.entry.js +8 -7
  1078. package/dist/esm/calcite-filter.entry.js +14 -13
  1079. package/dist/esm/calcite-flow-item.entry.js +13 -12
  1080. package/dist/esm/calcite-flow.entry.js +4 -4
  1081. package/dist/esm/calcite-graph_2.entry.js +14 -13
  1082. package/dist/esm/calcite-handle.entry.js +10 -10
  1083. package/dist/esm/calcite-icon.entry.js +6 -6
  1084. package/dist/esm/calcite-inline-editable.entry.js +13 -12
  1085. package/dist/esm/calcite-input-date-picker.entry.js +23 -41
  1086. package/dist/esm/calcite-input-message.entry.js +5 -5
  1087. package/dist/esm/calcite-input-number.entry.js +14 -13
  1088. package/dist/esm/calcite-input-text.entry.js +14 -13
  1089. package/dist/esm/calcite-input-time-picker.calcite-time-picker-453c17c8.js +2819 -0
  1090. package/dist/esm/calcite-input-time-picker_2.entry.js +17 -16
  1091. package/dist/esm/calcite-input-time-zone.entry.js +14 -13
  1092. package/dist/esm/calcite-input.entry.js +14 -13
  1093. package/dist/esm/calcite-label.entry.js +6 -6
  1094. package/dist/esm/calcite-link.entry.js +8 -7
  1095. package/dist/esm/calcite-list_3.entry.js +15 -14
  1096. package/dist/esm/calcite-loader.entry.js +3 -3
  1097. package/dist/esm/calcite-menu_2.entry.js +10 -10
  1098. package/dist/esm/calcite-meter.entry.js +10 -10
  1099. package/dist/esm/calcite-modal.entry.js +13 -13
  1100. package/dist/esm/calcite-navigation_3.entry.js +6 -6
  1101. package/dist/esm/calcite-notice.entry.js +12 -12
  1102. package/dist/esm/calcite-option_3.entry.js +11 -10
  1103. package/dist/esm/calcite-pagination.entry.js +10 -10
  1104. package/dist/esm/calcite-panel.entry.js +15 -14
  1105. package/dist/esm/calcite-pick-list_3.entry.js +17 -16
  1106. package/dist/esm/calcite-popover.entry.js +16 -16
  1107. package/dist/esm/calcite-progress.entry.js +5 -5
  1108. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  1109. package/dist/esm/calcite-radio-button.entry.js +11 -10
  1110. package/dist/esm/calcite-rating.entry.js +14 -13
  1111. package/dist/esm/calcite-scrim.entry.js +9 -9
  1112. package/dist/esm/calcite-segmented-control_2.entry.js +11 -10
  1113. package/dist/esm/calcite-sheet.entry.js +9 -9
  1114. package/dist/esm/calcite-shell_3.entry.js +11 -11
  1115. package/dist/esm/calcite-sortable-list.entry.js +9 -8
  1116. package/dist/esm/calcite-split-button.entry.js +5 -4
  1117. package/dist/esm/calcite-stack.entry.js +6 -6
  1118. package/dist/esm/calcite-stepper_2.entry.js +11 -10
  1119. package/dist/esm/calcite-switch.entry.js +11 -10
  1120. package/dist/esm/calcite-tab_4.entry.js +11 -10
  1121. package/dist/esm/calcite-table-cell_2.entry.js +277 -0
  1122. package/dist/esm/calcite-table-row.entry.js +231 -0
  1123. package/dist/esm/calcite-table.entry.js +295 -0
  1124. package/dist/esm/calcite-text-area.entry.js +16 -15
  1125. package/dist/esm/calcite-tile-select_2.entry.js +6 -5
  1126. package/dist/esm/calcite-tile.entry.js +9 -8
  1127. package/dist/esm/calcite-tip_3.entry.js +11 -11
  1128. package/dist/esm/calcite-tooltip.entry.js +9 -9
  1129. package/dist/esm/calcite-tree_2.entry.js +9 -8
  1130. package/dist/esm/calcite-value-list_2.entry.js +17 -16
  1131. package/dist/esm/calcite.js +6 -6
  1132. package/dist/esm/conditionalSlot-9639587a.js +55 -0
  1133. package/dist/esm/cs-0aa7e0c2.js +142 -0
  1134. package/dist/esm/da-5b78b390.js +61 -0
  1135. package/dist/esm/de-at-0f58b1e0.js +85 -0
  1136. package/dist/esm/de-c8a584f5.js +86 -0
  1137. package/dist/esm/de-ch-7d578832.js +85 -0
  1138. package/dist/esm/debounce-ee2506b2.js +487 -0
  1139. package/dist/esm/dom-412dd260.js +1027 -0
  1140. package/dist/esm/el-d08a477a.js +61 -0
  1141. package/dist/esm/en-au-b652e863.js +61 -0
  1142. package/dist/esm/en-ca-043dd95c.js +60 -0
  1143. package/dist/esm/en-gb-6609ba7d.js +64 -0
  1144. package/dist/esm/es-0b6c198d.js +61 -0
  1145. package/dist/esm/es-mx-5f55d85b.js +60 -0
  1146. package/dist/esm/et-8e9b448e.js +87 -0
  1147. package/dist/esm/fi-9fca64de.js +110 -0
  1148. package/dist/esm/filter-1881740b.js +758 -0
  1149. package/dist/esm/floating-ui-43e4f414.js +1875 -0
  1150. package/dist/esm/focusTrapComponent-b796f196.js +994 -0
  1151. package/dist/esm/form-6f86424f.js +275 -0
  1152. package/dist/esm/fr-be6a5993.js +63 -0
  1153. package/dist/esm/fr-ch-dcbb8195.js +61 -0
  1154. package/dist/esm/guid-0490f9f0.js +19 -0
  1155. package/dist/esm/he-4d374a2f.js +100 -0
  1156. package/dist/esm/hi-896a033c.js +60 -0
  1157. package/dist/esm/hr-163b0c9e.js +75 -0
  1158. package/dist/esm/hu-68f7f7bb.js +83 -0
  1159. package/dist/esm/id-a7ecd61f.js +61 -0
  1160. package/dist/esm/index-dafb95bd.js +2292 -0
  1161. package/dist/esm/index.js +2 -2
  1162. package/dist/esm/interactive-6bcbd567.js +138 -0
  1163. package/dist/esm/it-2c13dace.js +61 -0
  1164. package/dist/esm/it-ch-73d3f5d8.js +61 -0
  1165. package/dist/esm/ja-07b1c56f.js +67 -0
  1166. package/dist/esm/key-86423110.js +11 -0
  1167. package/dist/esm/ko-455cb62f.js +67 -0
  1168. package/dist/esm/label-00366d68.js +143 -0
  1169. package/dist/esm/loadable-2ff657df.js +84 -0
  1170. package/dist/esm/loader.js +6 -6
  1171. package/dist/esm/locale-294b6440.js +582 -0
  1172. package/dist/esm/lt-200c52ea.js +92 -0
  1173. package/dist/esm/lv-507769ff.js +61 -0
  1174. package/dist/esm/math-a2e82859.js +49 -0
  1175. package/dist/esm/mk-921cb268.js +61 -0
  1176. package/dist/esm/nb-0f5a8c92.js +62 -0
  1177. package/dist/esm/nl-5f691c7e.js +62 -0
  1178. package/dist/esm/observers-b898b95d.js +46 -0
  1179. package/dist/esm/openCloseComponent-d1a940bc.js +82 -0
  1180. package/dist/esm/pl-5e211b79.js +109 -0
  1181. package/dist/esm/pt-39ca3f07.js +62 -0
  1182. package/dist/esm/pt-br-a6313e65.js +60 -0
  1183. package/dist/esm/resources-2f2498f1.js +41 -0
  1184. package/dist/esm/resources-6147a442.js +18 -0
  1185. package/dist/esm/resources-adfa9502.js +383 -0
  1186. package/dist/esm/resources-bab7828c.js +21 -0
  1187. package/dist/esm/resources-bfdb1d14.js +23 -0
  1188. package/dist/esm/resources-cfa3feb8.js +15 -0
  1189. package/dist/esm/resources-ec927aad.js +17 -0
  1190. package/dist/esm/ro-ded4537b.js +61 -0
  1191. package/dist/esm/ru-bf65d5e7.js +121 -0
  1192. package/dist/esm/sk-50ac8bd3.js +143 -0
  1193. package/dist/esm/sl-f0413b4c.js +61 -0
  1194. package/dist/esm/sortableComponent-bf052fa2.js +3104 -0
  1195. package/dist/esm/sr-015fca6d.js +96 -0
  1196. package/dist/esm/sv-b4b7fd0a.js +66 -0
  1197. package/dist/esm/t9n-493993f8.js +90 -0
  1198. package/dist/esm/th-053e9044.js +60 -0
  1199. package/dist/esm/throttle-ff32f2ff.js +73 -0
  1200. package/dist/esm/tr-432b0387.js +61 -0
  1201. package/dist/esm/uk-be1f9b1c.js +99 -0
  1202. package/dist/esm/utils-9bdf375c.js +287 -0
  1203. package/dist/esm/utils-d42b0a00.js +198 -0
  1204. package/dist/esm/vi-1b94de79.js +65 -0
  1205. package/dist/esm/zh-cn-871bb0d0.js +89 -0
  1206. package/dist/esm/zh-hk-dc1d08f4.js +66 -0
  1207. package/dist/esm/zh-tw-9f7e668b.js +87 -0
  1208. package/dist/extras/docs-json.json +839 -21
  1209. package/dist/extras/translations-json.json +1 -1
  1210. package/dist/extras/vscode-data.json +236 -4
  1211. package/dist/loader/cdn.js +1 -1
  1212. package/dist/loader/index.cjs.js +1 -1
  1213. package/dist/loader/index.es2017.js +1 -1
  1214. package/dist/loader/index.js +1 -1
  1215. package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -4
  1216. package/dist/types/components/table/assets/table/t9n/index.d.ts +7 -0
  1217. package/dist/types/components/table/interfaces.d.ts +10 -0
  1218. package/dist/types/components/table/resources.d.ts +16 -0
  1219. package/dist/types/components/table/table.d.ts +95 -0
  1220. package/dist/types/components/table-cell/assets/table-cell/t9n/index.d.ts +7 -0
  1221. package/dist/types/components/table-cell/resources.d.ts +7 -0
  1222. package/dist/types/components/table-cell/table-cell.d.ts +69 -0
  1223. package/dist/types/components/table-header/assets/table-header/t9n/index.d.ts +8 -0
  1224. package/dist/types/components/table-header/resources.d.ts +11 -0
  1225. package/dist/types/components/table-header/table-header.d.ts +65 -0
  1226. package/dist/types/components/table-row/table-row.d.ts +65 -0
  1227. package/dist/types/components.d.ts +324 -8
  1228. package/dist/types/preact.d.ts +15 -0
  1229. package/hydrate/index.js +1382 -521
  1230. package/package.json +2 -2
  1231. package/dist/calcite/p-009a9e4d.entry.js +0 -6
  1232. package/dist/calcite/p-0289d360.js +0 -6
  1233. package/dist/calcite/p-032c74b0.js +0 -6
  1234. package/dist/calcite/p-03f36cb4.js +0 -6
  1235. package/dist/calcite/p-05dce065.entry.js +0 -6
  1236. package/dist/calcite/p-07a44abe.js +0 -6
  1237. package/dist/calcite/p-07eb7ee4.entry.js +0 -6
  1238. package/dist/calcite/p-0a3ad43c.js +0 -6
  1239. package/dist/calcite/p-0a83b7d0.entry.js +0 -6
  1240. package/dist/calcite/p-0b5fb69b.js +0 -6
  1241. package/dist/calcite/p-0cc393fd.js +0 -6
  1242. package/dist/calcite/p-10000e68.js +0 -6
  1243. package/dist/calcite/p-117ef212.entry.js +0 -6
  1244. package/dist/calcite/p-1193cc91.entry.js +0 -6
  1245. package/dist/calcite/p-1300c6db.entry.js +0 -6
  1246. package/dist/calcite/p-1524d699.entry.js +0 -6
  1247. package/dist/calcite/p-155e38a4.js +0 -6
  1248. package/dist/calcite/p-16648cac.entry.js +0 -6
  1249. package/dist/calcite/p-17d97bd1.js +0 -6
  1250. package/dist/calcite/p-1a14590b.entry.js +0 -6
  1251. package/dist/calcite/p-1aac061d.entry.js +0 -6
  1252. package/dist/calcite/p-1d58387e.js +0 -6
  1253. package/dist/calcite/p-1d6463d5.js +0 -6
  1254. package/dist/calcite/p-1d686cbf.js +0 -6
  1255. package/dist/calcite/p-1fdb7ff1.js +0 -6
  1256. package/dist/calcite/p-21668bae.js +0 -6
  1257. package/dist/calcite/p-251c53bb.entry.js +0 -6
  1258. package/dist/calcite/p-2a08f6f7.js +0 -6
  1259. package/dist/calcite/p-2d1690b4.entry.js +0 -6
  1260. package/dist/calcite/p-2d44f61c.js +0 -6
  1261. package/dist/calcite/p-329abc24.entry.js +0 -6
  1262. package/dist/calcite/p-33bfc2f3.js +0 -6
  1263. package/dist/calcite/p-36b78288.entry.js +0 -6
  1264. package/dist/calcite/p-37329b24.entry.js +0 -6
  1265. package/dist/calcite/p-3ba4155c.js +0 -6
  1266. package/dist/calcite/p-3c293a80.js +0 -6
  1267. package/dist/calcite/p-42db6152.js +0 -6
  1268. package/dist/calcite/p-4320ff11.entry.js +0 -6
  1269. package/dist/calcite/p-43767ea5.js +0 -6
  1270. package/dist/calcite/p-45dbd80f.entry.js +0 -6
  1271. package/dist/calcite/p-467db5b5.entry.js +0 -6
  1272. package/dist/calcite/p-47422e07.js +0 -6
  1273. package/dist/calcite/p-4778fb42.entry.js +0 -6
  1274. package/dist/calcite/p-48b048a9.js +0 -6
  1275. package/dist/calcite/p-4d8e1770.js +0 -6
  1276. package/dist/calcite/p-50f4502c.js +0 -6
  1277. package/dist/calcite/p-5586c15a.js +0 -6
  1278. package/dist/calcite/p-559692fc.entry.js +0 -6
  1279. package/dist/calcite/p-5ac5c620.entry.js +0 -6
  1280. package/dist/calcite/p-5aca6c33.entry.js +0 -6
  1281. package/dist/calcite/p-5b69a316.js +0 -6
  1282. package/dist/calcite/p-5ebef59b.js +0 -6
  1283. package/dist/calcite/p-5ecb91e5.entry.js +0 -6
  1284. package/dist/calcite/p-5fbcf797.entry.js +0 -6
  1285. package/dist/calcite/p-621ed537.js +0 -6
  1286. package/dist/calcite/p-62732722.entry.js +0 -6
  1287. package/dist/calcite/p-6502839f.js +0 -6
  1288. package/dist/calcite/p-65a2cdeb.js +0 -6
  1289. package/dist/calcite/p-6751bd6d.entry.js +0 -6
  1290. package/dist/calcite/p-6c9b926c.js +0 -6
  1291. package/dist/calcite/p-70cd4b8d.entry.js +0 -6
  1292. package/dist/calcite/p-71306bd6.js +0 -6
  1293. package/dist/calcite/p-71584cd9.js +0 -6
  1294. package/dist/calcite/p-72fb517d.js +0 -6
  1295. package/dist/calcite/p-7381dd82.entry.js +0 -6
  1296. package/dist/calcite/p-750df042.entry.js +0 -6
  1297. package/dist/calcite/p-753896ab.entry.js +0 -6
  1298. package/dist/calcite/p-7559e0a4.js +0 -6
  1299. package/dist/calcite/p-75d3027f.js +0 -6
  1300. package/dist/calcite/p-75f36def.entry.js +0 -6
  1301. package/dist/calcite/p-76ad4b2d.entry.js +0 -6
  1302. package/dist/calcite/p-7cf75d26.entry.js +0 -6
  1303. package/dist/calcite/p-7e2a94f2.js +0 -6
  1304. package/dist/calcite/p-7e86eff6.js +0 -6
  1305. package/dist/calcite/p-7e8fe0f7.entry.js +0 -6
  1306. package/dist/calcite/p-7ebc8fdb.js +0 -6
  1307. package/dist/calcite/p-810ff4f7.entry.js +0 -6
  1308. package/dist/calcite/p-825a79d2.js +0 -6
  1309. package/dist/calcite/p-82d656f0.js +0 -6
  1310. package/dist/calcite/p-84feddff.js +0 -6
  1311. package/dist/calcite/p-86315c20.js +0 -6
  1312. package/dist/calcite/p-879868d6.entry.js +0 -6
  1313. package/dist/calcite/p-8816f7ec.js +0 -6
  1314. package/dist/calcite/p-8a9af48c.entry.js +0 -6
  1315. package/dist/calcite/p-8e0551d6.js +0 -6
  1316. package/dist/calcite/p-8e7697b5.entry.js +0 -6
  1317. package/dist/calcite/p-8e898b99.js +0 -6
  1318. package/dist/calcite/p-905e309d.entry.js +0 -6
  1319. package/dist/calcite/p-9437dd05.js +0 -10
  1320. package/dist/calcite/p-961ecae7.js +0 -6
  1321. package/dist/calcite/p-998c3972.entry.js +0 -6
  1322. package/dist/calcite/p-9d478ce3.entry.js +0 -6
  1323. package/dist/calcite/p-a3661938.entry.js +0 -6
  1324. package/dist/calcite/p-a4180fb6.entry.js +0 -6
  1325. package/dist/calcite/p-a4b1d381.js +0 -6
  1326. package/dist/calcite/p-a803db79.entry.js +0 -6
  1327. package/dist/calcite/p-a97d4e23.js +0 -6
  1328. package/dist/calcite/p-aa862e73.entry.js +0 -6
  1329. package/dist/calcite/p-aac8bab5.entry.js +0 -6
  1330. package/dist/calcite/p-abaf46ba.js +0 -6
  1331. package/dist/calcite/p-ad2faf5c.js +0 -6
  1332. package/dist/calcite/p-b6a9b76a.entry.js +0 -6
  1333. package/dist/calcite/p-b6db378a.entry.js +0 -6
  1334. package/dist/calcite/p-b8109464.js +0 -6
  1335. package/dist/calcite/p-b9a646ef.js +0 -6
  1336. package/dist/calcite/p-baec6a2d.js +0 -6
  1337. package/dist/calcite/p-bbcfbf31.js +0 -6
  1338. package/dist/calcite/p-bc62acf3.entry.js +0 -6
  1339. package/dist/calcite/p-be39c8aa.entry.js +0 -6
  1340. package/dist/calcite/p-c0206dbe.js +0 -6
  1341. package/dist/calcite/p-c33c63c3.js +0 -6
  1342. package/dist/calcite/p-c4599d09.entry.js +0 -6
  1343. package/dist/calcite/p-c8ce1516.js +0 -6
  1344. package/dist/calcite/p-c9839846.entry.js +0 -6
  1345. package/dist/calcite/p-cc02228a.entry.js +0 -6
  1346. package/dist/calcite/p-ccbc0c90.js +0 -6
  1347. package/dist/calcite/p-cd372d0f.entry.js +0 -6
  1348. package/dist/calcite/p-ce84b494.js +0 -6
  1349. package/dist/calcite/p-cefe8f2b.js +0 -7
  1350. package/dist/calcite/p-d08f1207.js +0 -11
  1351. package/dist/calcite/p-d4e01037.js +0 -12
  1352. package/dist/calcite/p-d61cf78d.entry.js +0 -6
  1353. package/dist/calcite/p-d65ec3bd.js +0 -6
  1354. package/dist/calcite/p-d728e928.js +0 -6
  1355. package/dist/calcite/p-d8fc2b98.js +0 -6
  1356. package/dist/calcite/p-d92c76d6.js +0 -6
  1357. package/dist/calcite/p-dabd022b.entry.js +0 -6
  1358. package/dist/calcite/p-de95843e.entry.js +0 -6
  1359. package/dist/calcite/p-df766fef.js +0 -6
  1360. package/dist/calcite/p-e082978e.entry.js +0 -6
  1361. package/dist/calcite/p-e13bdd77.entry.js +0 -6
  1362. package/dist/calcite/p-e17f2f84.entry.js +0 -6
  1363. package/dist/calcite/p-e3df2acd.js +0 -6
  1364. package/dist/calcite/p-e5f48609.js +0 -6
  1365. package/dist/calcite/p-e60c1918.js +0 -6
  1366. package/dist/calcite/p-e8d86fad.js +0 -6
  1367. package/dist/calcite/p-e9fbf490.js +0 -6
  1368. package/dist/calcite/p-ea6ffca6.js +0 -6
  1369. package/dist/calcite/p-ea73c9fc.js +0 -6
  1370. package/dist/calcite/p-eb0106b0.entry.js +0 -6
  1371. package/dist/calcite/p-edbc45e8.js +0 -6
  1372. package/dist/calcite/p-f1a9294a.entry.js +0 -6
  1373. package/dist/calcite/p-f322860b.entry.js +0 -6
  1374. package/dist/calcite/p-f4dafcbf.entry.js +0 -6
  1375. package/dist/calcite/p-f508d41c.entry.js +0 -6
  1376. package/dist/calcite/p-f6b395e1.entry.js +0 -6
  1377. package/dist/calcite/p-f7bcdc8d.js +0 -6
  1378. package/dist/calcite/p-f874005b.js +0 -6
  1379. package/dist/calcite/p-fac965ea.entry.js +0 -6
  1380. package/dist/calcite/p-fc0e732a.js +0 -6
  1381. package/dist/calcite/p-fe0daebb.js +0 -6
  1382. package/dist/calcite/p-fe228829.js +0 -6
  1383. package/dist/cjs/ExpandToggle-68f73570.js +0 -107
  1384. package/dist/cjs/FloatingArrow-513ea71e.js +0 -45
  1385. package/dist/cjs/Heading-30cd5f48.js +0 -20
  1386. package/dist/cjs/app-globals-eb54ddf6.js +0 -59
  1387. package/dist/cjs/ar-13f4acaf.js +0 -97
  1388. package/dist/cjs/array-3e79ec78.js +0 -12
  1389. package/dist/cjs/bg-a653c8c1.js +0 -78
  1390. package/dist/cjs/bs-8f91e30f.js +0 -47
  1391. package/dist/cjs/ca-403ddad6.js +0 -67
  1392. package/dist/cjs/calcite-input-time-picker.calcite-time-picker-07468368.js +0 -2823
  1393. package/dist/cjs/conditionalSlot-ee7a649a.js +0 -58
  1394. package/dist/cjs/cs-edff7e02.js +0 -143
  1395. package/dist/cjs/da-7ca28741.js +0 -62
  1396. package/dist/cjs/de-5da2d5f4.js +0 -87
  1397. package/dist/cjs/de-at-a3c3758c.js +0 -86
  1398. package/dist/cjs/de-ch-ba29f3a0.js +0 -86
  1399. package/dist/cjs/debounce-a084c5d5.js +0 -496
  1400. package/dist/cjs/dom-24dbae52.js +0 -1056
  1401. package/dist/cjs/el-fdac48c2.js +0 -62
  1402. package/dist/cjs/en-au-aaa7ef21.js +0 -62
  1403. package/dist/cjs/en-ca-f46b1c17.js +0 -61
  1404. package/dist/cjs/en-gb-5b1c2558.js +0 -65
  1405. package/dist/cjs/es-cb50ba07.js +0 -62
  1406. package/dist/cjs/es-mx-d8af76c1.js +0 -61
  1407. package/dist/cjs/et-9ab74b53.js +0 -88
  1408. package/dist/cjs/fi-4c9cb374.js +0 -111
  1409. package/dist/cjs/filter-8be40b18.js +0 -760
  1410. package/dist/cjs/floating-ui-1d02bb12.js +0 -1883
  1411. package/dist/cjs/focusTrapComponent-b70ff299.js +0 -999
  1412. package/dist/cjs/form-edf52f09.js +0 -283
  1413. package/dist/cjs/fr-97d3e65f.js +0 -64
  1414. package/dist/cjs/fr-ch-35dcbb00.js +0 -62
  1415. package/dist/cjs/guid-a424359b.js +0 -21
  1416. package/dist/cjs/he-33997ee3.js +0 -101
  1417. package/dist/cjs/hi-ddaa033c.js +0 -61
  1418. package/dist/cjs/hr-d7d00ce6.js +0 -76
  1419. package/dist/cjs/hu-fc9b25ad.js +0 -84
  1420. package/dist/cjs/id-bc4232c9.js +0 -62
  1421. package/dist/cjs/index-c06121c7.js +0 -2315
  1422. package/dist/cjs/interactive-9b8921be.js +0 -150
  1423. package/dist/cjs/it-559897e3.js +0 -62
  1424. package/dist/cjs/it-ch-b9bba77f.js +0 -62
  1425. package/dist/cjs/ja-1a041bdb.js +0 -68
  1426. package/dist/cjs/key-e83ae952.js +0 -14
  1427. package/dist/cjs/ko-57565c44.js +0 -68
  1428. package/dist/cjs/label-f74dd5b1.js +0 -149
  1429. package/dist/cjs/loadable-9eac6355.js +0 -89
  1430. package/dist/cjs/locale-5a3b9156.js +0 -594
  1431. package/dist/cjs/lt-e3131883.js +0 -93
  1432. package/dist/cjs/lv-6beaf43d.js +0 -62
  1433. package/dist/cjs/math-f90ae930.js +0 -55
  1434. package/dist/cjs/mk-7c2e3620.js +0 -62
  1435. package/dist/cjs/nb-5cb72b8d.js +0 -63
  1436. package/dist/cjs/nl-eec76db9.js +0 -63
  1437. package/dist/cjs/observers-4aff91d1.js +0 -48
  1438. package/dist/cjs/openCloseComponent-d14bdb68.js +0 -84
  1439. package/dist/cjs/pl-3a64124d.js +0 -110
  1440. package/dist/cjs/pt-br-97783149.js +0 -61
  1441. package/dist/cjs/pt-dcdc9a7a.js +0 -63
  1442. package/dist/cjs/resources-0bf0c1bc.js +0 -22
  1443. package/dist/cjs/resources-2ce24a35.js +0 -21
  1444. package/dist/cjs/resources-6a9b5b27.js +0 -410
  1445. package/dist/cjs/resources-9b963607.js +0 -27
  1446. package/dist/cjs/resources-a07f5391.js +0 -24
  1447. package/dist/cjs/resources-c304d959.js +0 -45
  1448. package/dist/cjs/resources-c761e322.js +0 -15
  1449. package/dist/cjs/ro-72d5ab19.js +0 -62
  1450. package/dist/cjs/ru-1ca51d97.js +0 -122
  1451. package/dist/cjs/sk-41ca4cd5.js +0 -144
  1452. package/dist/cjs/sl-96d9b762.js +0 -62
  1453. package/dist/cjs/sortableComponent-7358bdf1.js +0 -3107
  1454. package/dist/cjs/sr-c2eb8a7a.js +0 -97
  1455. package/dist/cjs/sv-dd728bdd.js +0 -67
  1456. package/dist/cjs/t9n-2f2747fe.js +0 -95
  1457. package/dist/cjs/th-e56f729d.js +0 -61
  1458. package/dist/cjs/throttle-f751ffec.js +0 -75
  1459. package/dist/cjs/tr-a4f2b545.js +0 -62
  1460. package/dist/cjs/uk-162e86e7.js +0 -100
  1461. package/dist/cjs/utils-3857ea71.js +0 -216
  1462. package/dist/cjs/utils-53a16819.js +0 -305
  1463. package/dist/cjs/vi-ada2ae00.js +0 -66
  1464. package/dist/cjs/zh-cn-79036fe5.js +0 -90
  1465. package/dist/cjs/zh-hk-283d15a8.js +0 -67
  1466. package/dist/cjs/zh-tw-912106df.js +0 -88
  1467. package/dist/esm/ExpandToggle-34747a7e.js +0 -99
  1468. package/dist/esm/FloatingArrow-f909ccc6.js +0 -43
  1469. package/dist/esm/Heading-d2a0f551.js +0 -17
  1470. package/dist/esm/app-globals-8455ebd0.js +0 -57
  1471. package/dist/esm/ar-a6dfa8aa.js +0 -95
  1472. package/dist/esm/array-3e269331.js +0 -10
  1473. package/dist/esm/bg-53e39987.js +0 -76
  1474. package/dist/esm/bs-d54aa11b.js +0 -45
  1475. package/dist/esm/ca-26d0f4f9.js +0 -65
  1476. package/dist/esm/calcite-input-time-picker.calcite-time-picker-68c4b75b.js +0 -2819
  1477. package/dist/esm/conditionalSlot-0e7ac0f9.js +0 -55
  1478. package/dist/esm/cs-22daa2a9.js +0 -141
  1479. package/dist/esm/da-784a4856.js +0 -60
  1480. package/dist/esm/de-7799399b.js +0 -85
  1481. package/dist/esm/de-at-5dbd261c.js +0 -84
  1482. package/dist/esm/de-ch-f275b0c0.js +0 -84
  1483. package/dist/esm/debounce-4763833d.js +0 -487
  1484. package/dist/esm/dom-a55a6285.js +0 -1027
  1485. package/dist/esm/el-31db4fe2.js +0 -60
  1486. package/dist/esm/en-au-2e7a2bf4.js +0 -60
  1487. package/dist/esm/en-ca-1d937970.js +0 -59
  1488. package/dist/esm/en-gb-c67e29f1.js +0 -63
  1489. package/dist/esm/es-2c3426f8.js +0 -60
  1490. package/dist/esm/es-mx-2257e6a5.js +0 -59
  1491. package/dist/esm/et-2a3de187.js +0 -86
  1492. package/dist/esm/fi-5068573b.js +0 -109
  1493. package/dist/esm/filter-2f7f48e4.js +0 -758
  1494. package/dist/esm/floating-ui-63cbd95c.js +0 -1875
  1495. package/dist/esm/focusTrapComponent-f8681781.js +0 -994
  1496. package/dist/esm/form-47f49d1d.js +0 -275
  1497. package/dist/esm/fr-922fc5f6.js +0 -62
  1498. package/dist/esm/fr-ch-5aed9648.js +0 -60
  1499. package/dist/esm/guid-65accb1d.js +0 -19
  1500. package/dist/esm/he-2e9f8c9d.js +0 -99
  1501. package/dist/esm/hi-e182a600.js +0 -59
  1502. package/dist/esm/hr-0d7b7c28.js +0 -74
  1503. package/dist/esm/hu-f46cfbef.js +0 -82
  1504. package/dist/esm/id-0d722dc1.js +0 -60
  1505. package/dist/esm/index-6d1478d1.js +0 -2280
  1506. package/dist/esm/interactive-34b3a4bf.js +0 -146
  1507. package/dist/esm/it-993cf4a0.js +0 -60
  1508. package/dist/esm/it-ch-dc024326.js +0 -60
  1509. package/dist/esm/ja-f0949e9e.js +0 -66
  1510. package/dist/esm/key-e60ef957.js +0 -11
  1511. package/dist/esm/ko-047803f5.js +0 -66
  1512. package/dist/esm/label-b4b6eab5.js +0 -143
  1513. package/dist/esm/loadable-b3b05489.js +0 -84
  1514. package/dist/esm/locale-cab3dfeb.js +0 -582
  1515. package/dist/esm/lt-db317159.js +0 -91
  1516. package/dist/esm/lv-c034250a.js +0 -60
  1517. package/dist/esm/math-ce3a419f.js +0 -49
  1518. package/dist/esm/mk-8e80c6e2.js +0 -60
  1519. package/dist/esm/nb-712fd989.js +0 -61
  1520. package/dist/esm/nl-bd5e8541.js +0 -61
  1521. package/dist/esm/observers-adb86418.js +0 -46
  1522. package/dist/esm/openCloseComponent-3dec562a.js +0 -82
  1523. package/dist/esm/pl-757d96a6.js +0 -108
  1524. package/dist/esm/pt-76c48f5f.js +0 -61
  1525. package/dist/esm/pt-br-c1f951a0.js +0 -59
  1526. package/dist/esm/resources-0baf1752.js +0 -17
  1527. package/dist/esm/resources-58cb3b95.js +0 -383
  1528. package/dist/esm/resources-73f7cf47.js +0 -18
  1529. package/dist/esm/resources-9045062d.js +0 -21
  1530. package/dist/esm/resources-bf6e17a7.js +0 -15
  1531. package/dist/esm/resources-eb1e3dd1.js +0 -23
  1532. package/dist/esm/resources-efba9e55.js +0 -41
  1533. package/dist/esm/ro-4d823274.js +0 -60
  1534. package/dist/esm/ru-0bc23637.js +0 -120
  1535. package/dist/esm/sk-2cfc4640.js +0 -142
  1536. package/dist/esm/sl-6100e69f.js +0 -60
  1537. package/dist/esm/sortableComponent-1300bcd6.js +0 -3104
  1538. package/dist/esm/sr-fbf87438.js +0 -95
  1539. package/dist/esm/sv-6df9a49f.js +0 -65
  1540. package/dist/esm/t9n-e9267ae7.js +0 -90
  1541. package/dist/esm/th-c11c3249.js +0 -59
  1542. package/dist/esm/throttle-a76c13c2.js +0 -73
  1543. package/dist/esm/tr-257a6cb3.js +0 -60
  1544. package/dist/esm/uk-c7422687.js +0 -98
  1545. package/dist/esm/utils-4e8d0b09.js +0 -198
  1546. package/dist/esm/utils-b6fc08ed.js +0 -287
  1547. package/dist/esm/vi-f4b323c7.js +0 -64
  1548. package/dist/esm/zh-cn-63d4b701.js +0 -88
  1549. package/dist/esm/zh-hk-bcbf6c17.js +0 -65
  1550. package/dist/esm/zh-tw-705c7667.js +0 -86
@@ -1,2819 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
4
- * v1.7.0-next.16
5
- */
6
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-6d1478d1.js';
7
- import { s as submitForm, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-47f49d1d.js';
8
- import { g as guid } from './guid-65accb1d.js';
9
- import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction } from './interactive-34b3a4bf.js';
10
- import { n as numberKeys } from './key-e60ef957.js';
11
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-b4b6eab5.js';
12
- import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-b3b05489.js';
13
- import { n as numberStringFormatter, b as getDateTimeFormat, i as isValidNumber, e as getSupportedNumberingSystem, g as getSupportedLocale, c as connectLocalized, d as disconnectLocalized } from './locale-cab3dfeb.js';
14
- import { d as deactivateFocusTrap, a as activateFocusTrap, c as connectFocusTrap } from './focusTrapComponent-f8681781.js';
15
- import { d as decimalPlaces, g as getDecimals } from './math-ce3a419f.js';
16
- import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-e9267ae7.js';
17
-
18
- const maxTenthForMinuteAndSecond = 5;
19
- function createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds = true, fractionalSecondDigits) {
20
- const options = {
21
- hour: "2-digit",
22
- minute: "2-digit",
23
- timeZone: "UTC",
24
- numberingSystem: getSupportedNumberingSystem(numberingSystem),
25
- };
26
- if (includeSeconds) {
27
- options.second = "2-digit";
28
- if (fractionalSecondDigits) {
29
- options.fractionalSecondDigits = fractionalSecondDigits;
30
- }
31
- }
32
- return getDateTimeFormat(locale, options);
33
- }
34
- function formatTimePart(number, minLength) {
35
- if (number === null || number === undefined) {
36
- return;
37
- }
38
- const numberAsString = number.toString();
39
- const numberDecimalPlaces = decimalPlaces(number);
40
- if (number < 1 && numberDecimalPlaces > 0 && numberDecimalPlaces < 4) {
41
- const fractionalDigits = numberAsString.replace("0.", "");
42
- if (!minLength || fractionalDigits.length === minLength) {
43
- return fractionalDigits;
44
- }
45
- if (fractionalDigits.length < minLength) {
46
- return fractionalDigits.padEnd(minLength, "0");
47
- }
48
- return fractionalDigits;
49
- }
50
- if (number >= 0 && number < 10) {
51
- return numberAsString.padStart(2, "0");
52
- }
53
- if (number >= 10) {
54
- return numberAsString;
55
- }
56
- }
57
- function formatTimeString(value) {
58
- if (!isValidTime(value)) {
59
- return null;
60
- }
61
- const { hour, minute, second, fractionalSecond } = parseTimeString(value);
62
- let formattedValue = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
63
- if (second) {
64
- formattedValue += `:${formatTimePart(parseInt(second))}`;
65
- if (fractionalSecond) {
66
- formattedValue += `.${fractionalSecond}`;
67
- }
68
- }
69
- return formattedValue;
70
- }
71
- function fractionalSecondPartToMilliseconds(fractionalSecondPart) {
72
- return parseInt((parseFloat(`0.${fractionalSecondPart}`) / 0.001).toFixed(3));
73
- }
74
- function getLocaleHourCycle(locale, numberingSystem) {
75
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
76
- const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
77
- return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
78
- }
79
- function getLocalizedDecimalSeparator(locale, numberingSystem) {
80
- numberStringFormatter.numberFormatOptions = {
81
- locale,
82
- numberingSystem,
83
- };
84
- return numberStringFormatter.localize("1.1").split("")[1];
85
- }
86
- function getLocalizedTimePartSuffix(part, locale, numberingSystem = "latn") {
87
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
88
- const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
89
- return getLocalizedTimePart(`${part}Suffix`, parts);
90
- }
91
- function getLocalizedTimePart(part, parts) {
92
- if (!part || !parts) {
93
- return null;
94
- }
95
- if (part === "hourSuffix") {
96
- const hourIndex = parts.indexOf(parts.find(({ type }) => type === "hour"));
97
- const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
98
- const hourSuffix = parts[hourIndex + 1];
99
- return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
100
- ? hourSuffix.value?.trim() || null
101
- : null;
102
- }
103
- if (part === "minuteSuffix") {
104
- const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
105
- const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
106
- const minuteSuffix = parts[minuteIndex + 1];
107
- return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
108
- ? minuteSuffix.value?.trim() || null
109
- : null;
110
- }
111
- if (part === "secondSuffix") {
112
- const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
113
- const secondSuffix = parts[secondIndex + 1];
114
- return secondSuffix && secondSuffix.type === "literal" ? secondSuffix.value?.trim() || null : null;
115
- }
116
- return parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))?.value || null;
117
- }
118
- function getMeridiem(hour) {
119
- if (!isValidNumber(hour)) {
120
- return null;
121
- }
122
- const hourAsNumber = parseInt(hour);
123
- return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
124
- }
125
- function isValidTime(value) {
126
- if (!value || value.startsWith(":") || value.endsWith(":")) {
127
- return false;
128
- }
129
- const splitValue = value.split(":");
130
- const validLength = splitValue.length > 1 && splitValue.length < 4;
131
- if (!validLength) {
132
- return false;
133
- }
134
- const [hour, minute, second] = splitValue;
135
- const hourAsNumber = parseInt(splitValue[0]);
136
- const minuteAsNumber = parseInt(splitValue[1]);
137
- const secondAsNumber = parseInt(splitValue[2]);
138
- const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
139
- const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
140
- const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
141
- if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
142
- return true;
143
- }
144
- }
145
- function isValidTimePart(value, part) {
146
- if (part === "meridiem") {
147
- return value === "AM" || value === "PM";
148
- }
149
- if (!isValidNumber(value)) {
150
- return false;
151
- }
152
- const valueAsNumber = Number(value);
153
- return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
154
- }
155
- function localizeTimePart({ value, part, locale, numberingSystem }) {
156
- if (part === "fractionalSecond") {
157
- const localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
158
- let localizedFractionalSecond = null;
159
- if (value) {
160
- numberStringFormatter.numberFormatOptions = {
161
- locale,
162
- numberingSystem,
163
- };
164
- const localizedZero = numberStringFormatter.localize("0");
165
- if (parseInt(value) === 0) {
166
- localizedFractionalSecond = "".padStart(value.length, localizedZero);
167
- }
168
- else {
169
- localizedFractionalSecond = numberStringFormatter
170
- .localize(`0.${value}`)
171
- .replace(`${localizedZero}${localizedDecimalSeparator}`, "");
172
- if (localizedFractionalSecond.length < value.length) {
173
- localizedFractionalSecond = localizedFractionalSecond.padEnd(value.length, localizedZero);
174
- }
175
- }
176
- }
177
- return localizedFractionalSecond;
178
- }
179
- if (!isValidTimePart(value, part)) {
180
- return;
181
- }
182
- const valueAsNumber = parseInt(value);
183
- const date = new Date(Date.UTC(0, 0, 0, part === "hour" ? valueAsNumber : part === "meridiem" ? (value === "AM" ? 0 : 12) : 0, part === "minute" ? valueAsNumber : 0, part === "second" ? valueAsNumber : 0));
184
- if (!date) {
185
- return;
186
- }
187
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
188
- const parts = formatter.formatToParts(date);
189
- return getLocalizedTimePart(part, parts);
190
- }
191
- function localizeTimeString({ value, locale, numberingSystem, includeSeconds = true, fractionalSecondDigits, }) {
192
- if (!isValidTime(value)) {
193
- return null;
194
- }
195
- const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
196
- const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second), fractionalSecond && fractionalSecondPartToMilliseconds(fractionalSecond)));
197
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds, fractionalSecondDigits);
198
- return formatter.format(dateFromTimeString) || null;
199
- }
200
- function localizeTimeStringToParts({ value, locale, numberingSystem = "latn", }) {
201
- if (!isValidTime(value)) {
202
- return null;
203
- }
204
- const { hour, minute, second = "0", fractionalSecond } = parseTimeString(value);
205
- const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
206
- if (dateFromTimeString) {
207
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
208
- const parts = formatter.formatToParts(dateFromTimeString);
209
- return {
210
- localizedHour: getLocalizedTimePart("hour", parts),
211
- localizedHourSuffix: getLocalizedTimePart("hourSuffix", parts),
212
- localizedMinute: getLocalizedTimePart("minute", parts),
213
- localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
214
- localizedSecond: getLocalizedTimePart("second", parts),
215
- localizedDecimalSeparator: getLocalizedDecimalSeparator(locale, numberingSystem),
216
- localizedFractionalSecond: localizeTimePart({
217
- value: fractionalSecond,
218
- part: "fractionalSecond",
219
- locale,
220
- numberingSystem,
221
- }),
222
- localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
223
- localizedMeridiem: getLocalizedTimePart("meridiem", parts),
224
- };
225
- }
226
- return null;
227
- }
228
- function getTimeParts({ value, locale, numberingSystem }) {
229
- if (!isValidTime(value)) {
230
- return null;
231
- }
232
- const { hour, minute, second = "0" } = parseTimeString(value);
233
- const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
234
- if (dateFromTimeString) {
235
- const formatter = createLocaleDateTimeFormatter(locale, numberingSystem);
236
- const parts = formatter.formatToParts(dateFromTimeString);
237
- return parts;
238
- }
239
- return null;
240
- }
241
- function parseTimeString(value) {
242
- if (isValidTime(value)) {
243
- const [hour, minute, secondDecimal] = value.split(":");
244
- let second = secondDecimal;
245
- let fractionalSecond = null;
246
- if (secondDecimal?.includes(".")) {
247
- [second, fractionalSecond] = secondDecimal.split(".");
248
- }
249
- return {
250
- fractionalSecond,
251
- hour,
252
- minute,
253
- second,
254
- };
255
- }
256
- return {
257
- fractionalSecond: null,
258
- hour: null,
259
- minute: null,
260
- second: null,
261
- };
262
- }
263
- function toISOTimeString(value, includeSeconds = true) {
264
- if (!isValidTime(value)) {
265
- return "";
266
- }
267
- const { hour, minute, second, fractionalSecond } = parseTimeString(value);
268
- let isoTimeString = `${formatTimePart(parseInt(hour))}:${formatTimePart(parseInt(minute))}`;
269
- if (includeSeconds) {
270
- isoTimeString += `:${formatTimePart(parseInt((includeSeconds && second) || "0"))}`;
271
- if (fractionalSecond) {
272
- isoTimeString += `.${fractionalSecond}`;
273
- }
274
- }
275
- return isoTimeString;
276
- }
277
-
278
- const CSS$1 = {
279
- toggleIcon: "toggle-icon",
280
- };
281
-
282
- var SECONDS_A_MINUTE = 60;
283
- var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
284
- var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
285
- var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
286
- var MILLISECONDS_A_SECOND = 1e3;
287
- var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
288
- var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
289
- var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
290
- var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
291
-
292
- var MS = 'millisecond';
293
- var S = 'second';
294
- var MIN = 'minute';
295
- var H = 'hour';
296
- var D = 'day';
297
- var W = 'week';
298
- var M = 'month';
299
- var Q = 'quarter';
300
- var Y = 'year';
301
- var DATE = 'date';
302
- var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
303
- var INVALID_DATE_STRING = 'Invalid Date'; // regex
304
-
305
- var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
306
- var REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
307
-
308
- // English [en]
309
- // We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
310
- const en = {
311
- name: 'en',
312
- weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
313
- months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
314
- ordinal: function ordinal(n) {
315
- var s = ['th', 'st', 'nd', 'rd'];
316
- var v = n % 100;
317
- return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
318
- }
319
- };
320
-
321
- const en$1 = /*#__PURE__*/Object.freeze({
322
- __proto__: null,
323
- 'default': en
324
- });
325
-
326
- var padStart = function padStart(string, length, pad) {
327
- var s = String(string);
328
- if (!s || s.length >= length) return string;
329
- return "" + Array(length + 1 - s.length).join(pad) + string;
330
- };
331
-
332
- var padZoneStr = function padZoneStr(instance) {
333
- var negMinutes = -instance.utcOffset();
334
- var minutes = Math.abs(negMinutes);
335
- var hourOffset = Math.floor(minutes / 60);
336
- var minuteOffset = minutes % 60;
337
- return "" + (negMinutes <= 0 ? '+' : '-') + padStart(hourOffset, 2, '0') + ":" + padStart(minuteOffset, 2, '0');
338
- };
339
-
340
- var monthDiff = function monthDiff(a, b) {
341
- // function from moment.js in order to keep the same result
342
- if (a.date() < b.date()) return -monthDiff(b, a);
343
- var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
344
- var anchor = a.clone().add(wholeMonthDiff, M);
345
- var c = b - anchor < 0;
346
- var anchor2 = a.clone().add(wholeMonthDiff + (c ? -1 : 1), M);
347
- return +(-(wholeMonthDiff + (b - anchor) / (c ? anchor - anchor2 : anchor2 - anchor)) || 0);
348
- };
349
-
350
- var absFloor = function absFloor(n) {
351
- return n < 0 ? Math.ceil(n) || 0 : Math.floor(n);
352
- };
353
-
354
- var prettyUnit = function prettyUnit(u) {
355
- var special = {
356
- M: M,
357
- y: Y,
358
- w: W,
359
- d: D,
360
- D: DATE,
361
- h: H,
362
- m: MIN,
363
- s: S,
364
- ms: MS,
365
- Q: Q
366
- };
367
- return special[u] || String(u || '').toLowerCase().replace(/s$/, '');
368
- };
369
-
370
- var isUndefined = function isUndefined(s) {
371
- return s === undefined;
372
- };
373
-
374
- const U = {
375
- s: padStart,
376
- z: padZoneStr,
377
- m: monthDiff,
378
- a: absFloor,
379
- p: prettyUnit,
380
- u: isUndefined
381
- };
382
-
383
- var L = 'en'; // global locale
384
-
385
- var Ls = {}; // global loaded locale
386
-
387
- Ls[L] = en;
388
-
389
- var isDayjs = function isDayjs(d) {
390
- return d instanceof Dayjs;
391
- }; // eslint-disable-line no-use-before-define
392
-
393
-
394
- var parseLocale = function parseLocale(preset, object, isLocal) {
395
- var l;
396
- if (!preset) return L;
397
-
398
- if (typeof preset === 'string') {
399
- var presetLower = preset.toLowerCase();
400
-
401
- if (Ls[presetLower]) {
402
- l = presetLower;
403
- }
404
-
405
- if (object) {
406
- Ls[presetLower] = object;
407
- l = presetLower;
408
- }
409
-
410
- var presetSplit = preset.split('-');
411
-
412
- if (!l && presetSplit.length > 1) {
413
- return parseLocale(presetSplit[0]);
414
- }
415
- } else {
416
- var name = preset.name;
417
- Ls[name] = preset;
418
- l = name;
419
- }
420
-
421
- if (!isLocal && l) L = l;
422
- return l || !isLocal && L;
423
- };
424
-
425
- var dayjs = function dayjs(date, c) {
426
- if (isDayjs(date)) {
427
- return date.clone();
428
- } // eslint-disable-next-line no-nested-ternary
429
-
430
-
431
- var cfg = typeof c === 'object' ? c : {};
432
- cfg.date = date;
433
- cfg.args = arguments; // eslint-disable-line prefer-rest-params
434
-
435
- return new Dayjs(cfg); // eslint-disable-line no-use-before-define
436
- };
437
-
438
- var wrapper = function wrapper(date, instance) {
439
- return dayjs(date, {
440
- locale: instance.$L,
441
- utc: instance.$u,
442
- x: instance.$x,
443
- $offset: instance.$offset // todo: refactor; do not use this.$offset in you code
444
-
445
- });
446
- };
447
-
448
- var Utils = U; // for plugin use
449
-
450
- Utils.l = parseLocale;
451
- Utils.i = isDayjs;
452
- Utils.w = wrapper;
453
-
454
- var parseDate = function parseDate(cfg) {
455
- var date = cfg.date,
456
- utc = cfg.utc;
457
- if (date === null) return new Date(NaN); // null is invalid
458
-
459
- if (Utils.u(date)) return new Date(); // today
460
-
461
- if (date instanceof Date) return new Date(date);
462
-
463
- if (typeof date === 'string' && !/Z$/i.test(date)) {
464
- var d = date.match(REGEX_PARSE);
465
-
466
- if (d) {
467
- var m = d[2] - 1 || 0;
468
- var ms = (d[7] || '0').substring(0, 3);
469
-
470
- if (utc) {
471
- return new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms));
472
- }
473
-
474
- return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
475
- }
476
- }
477
-
478
- return new Date(date); // everything else
479
- };
480
-
481
- var Dayjs = /*#__PURE__*/function () {
482
- function Dayjs(cfg) {
483
- this.$L = parseLocale(cfg.locale, null, true);
484
- this.parse(cfg); // for plugin
485
- }
486
-
487
- var _proto = Dayjs.prototype;
488
-
489
- _proto.parse = function parse(cfg) {
490
- this.$d = parseDate(cfg);
491
- this.$x = cfg.x || {};
492
- this.init();
493
- };
494
-
495
- _proto.init = function init() {
496
- var $d = this.$d;
497
- this.$y = $d.getFullYear();
498
- this.$M = $d.getMonth();
499
- this.$D = $d.getDate();
500
- this.$W = $d.getDay();
501
- this.$H = $d.getHours();
502
- this.$m = $d.getMinutes();
503
- this.$s = $d.getSeconds();
504
- this.$ms = $d.getMilliseconds();
505
- } // eslint-disable-next-line class-methods-use-this
506
- ;
507
-
508
- _proto.$utils = function $utils() {
509
- return Utils;
510
- };
511
-
512
- _proto.isValid = function isValid() {
513
- return !(this.$d.toString() === INVALID_DATE_STRING);
514
- };
515
-
516
- _proto.isSame = function isSame(that, units) {
517
- var other = dayjs(that);
518
- return this.startOf(units) <= other && other <= this.endOf(units);
519
- };
520
-
521
- _proto.isAfter = function isAfter(that, units) {
522
- return dayjs(that) < this.startOf(units);
523
- };
524
-
525
- _proto.isBefore = function isBefore(that, units) {
526
- return this.endOf(units) < dayjs(that);
527
- };
528
-
529
- _proto.$g = function $g(input, get, set) {
530
- if (Utils.u(input)) return this[get];
531
- return this.set(set, input);
532
- };
533
-
534
- _proto.unix = function unix() {
535
- return Math.floor(this.valueOf() / 1000);
536
- };
537
-
538
- _proto.valueOf = function valueOf() {
539
- // timezone(hour) * 60 * 60 * 1000 => ms
540
- return this.$d.getTime();
541
- };
542
-
543
- _proto.startOf = function startOf(units, _startOf) {
544
- var _this = this;
545
-
546
- // startOf -> endOf
547
- var isStartOf = !Utils.u(_startOf) ? _startOf : true;
548
- var unit = Utils.p(units);
549
-
550
- var instanceFactory = function instanceFactory(d, m) {
551
- var ins = Utils.w(_this.$u ? Date.UTC(_this.$y, m, d) : new Date(_this.$y, m, d), _this);
552
- return isStartOf ? ins : ins.endOf(D);
553
- };
554
-
555
- var instanceFactorySet = function instanceFactorySet(method, slice) {
556
- var argumentStart = [0, 0, 0, 0];
557
- var argumentEnd = [23, 59, 59, 999];
558
- return Utils.w(_this.toDate()[method].apply( // eslint-disable-line prefer-spread
559
- _this.toDate('s'), (isStartOf ? argumentStart : argumentEnd).slice(slice)), _this);
560
- };
561
-
562
- var $W = this.$W,
563
- $M = this.$M,
564
- $D = this.$D;
565
- var utcPad = "set" + (this.$u ? 'UTC' : '');
566
-
567
- switch (unit) {
568
- case Y:
569
- return isStartOf ? instanceFactory(1, 0) : instanceFactory(31, 11);
570
-
571
- case M:
572
- return isStartOf ? instanceFactory(1, $M) : instanceFactory(0, $M + 1);
573
-
574
- case W:
575
- {
576
- var weekStart = this.$locale().weekStart || 0;
577
- var gap = ($W < weekStart ? $W + 7 : $W) - weekStart;
578
- return instanceFactory(isStartOf ? $D - gap : $D + (6 - gap), $M);
579
- }
580
-
581
- case D:
582
- case DATE:
583
- return instanceFactorySet(utcPad + "Hours", 0);
584
-
585
- case H:
586
- return instanceFactorySet(utcPad + "Minutes", 1);
587
-
588
- case MIN:
589
- return instanceFactorySet(utcPad + "Seconds", 2);
590
-
591
- case S:
592
- return instanceFactorySet(utcPad + "Milliseconds", 3);
593
-
594
- default:
595
- return this.clone();
596
- }
597
- };
598
-
599
- _proto.endOf = function endOf(arg) {
600
- return this.startOf(arg, false);
601
- };
602
-
603
- _proto.$set = function $set(units, _int) {
604
- var _C$D$C$DATE$C$M$C$Y$C;
605
-
606
- // private set
607
- var unit = Utils.p(units);
608
- var utcPad = "set" + (this.$u ? 'UTC' : '');
609
- var name = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
610
- var arg = unit === D ? this.$D + (_int - this.$W) : _int;
611
-
612
- if (unit === M || unit === Y) {
613
- // clone is for badMutable plugin
614
- var date = this.clone().set(DATE, 1);
615
- date.$d[name](arg);
616
- date.init();
617
- this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
618
- } else if (name) this.$d[name](arg);
619
-
620
- this.init();
621
- return this;
622
- };
623
-
624
- _proto.set = function set(string, _int2) {
625
- return this.clone().$set(string, _int2);
626
- };
627
-
628
- _proto.get = function get(unit) {
629
- return this[Utils.p(unit)]();
630
- };
631
-
632
- _proto.add = function add(number, units) {
633
- var _this2 = this,
634
- _C$MIN$C$H$C$S$unit;
635
-
636
- number = Number(number); // eslint-disable-line no-param-reassign
637
-
638
- var unit = Utils.p(units);
639
-
640
- var instanceFactorySet = function instanceFactorySet(n) {
641
- var d = dayjs(_this2);
642
- return Utils.w(d.date(d.date() + Math.round(n * number)), _this2);
643
- };
644
-
645
- if (unit === M) {
646
- return this.set(M, this.$M + number);
647
- }
648
-
649
- if (unit === Y) {
650
- return this.set(Y, this.$y + number);
651
- }
652
-
653
- if (unit === D) {
654
- return instanceFactorySet(1);
655
- }
656
-
657
- if (unit === W) {
658
- return instanceFactorySet(7);
659
- }
660
-
661
- var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[MIN] = MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[H] = MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[S] = MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1; // ms
662
-
663
- var nextTimeStamp = this.$d.getTime() + number * step;
664
- return Utils.w(nextTimeStamp, this);
665
- };
666
-
667
- _proto.subtract = function subtract(number, string) {
668
- return this.add(number * -1, string);
669
- };
670
-
671
- _proto.format = function format(formatStr) {
672
- var _this3 = this;
673
-
674
- var locale = this.$locale();
675
- if (!this.isValid()) return locale.invalidDate || INVALID_DATE_STRING;
676
- var str = formatStr || FORMAT_DEFAULT;
677
- var zoneStr = Utils.z(this);
678
- var $H = this.$H,
679
- $m = this.$m,
680
- $M = this.$M;
681
- var weekdays = locale.weekdays,
682
- months = locale.months,
683
- meridiem = locale.meridiem;
684
-
685
- var getShort = function getShort(arr, index, full, length) {
686
- return arr && (arr[index] || arr(_this3, str)) || full[index].slice(0, length);
687
- };
688
-
689
- var get$H = function get$H(num) {
690
- return Utils.s($H % 12 || 12, num, '0');
691
- };
692
-
693
- var meridiemFunc = meridiem || function (hour, minute, isLowercase) {
694
- var m = hour < 12 ? 'AM' : 'PM';
695
- return isLowercase ? m.toLowerCase() : m;
696
- };
697
-
698
- var matches = function matches(match) {
699
- switch (match) {
700
- case 'YY':
701
- return String(_this3.$y).slice(-2);
702
-
703
- case 'YYYY':
704
- return Utils.s(_this3.$y, 4, '0');
705
-
706
- case 'M':
707
- return $M + 1;
708
-
709
- case 'MM':
710
- return Utils.s($M + 1, 2, '0');
711
-
712
- case 'MMM':
713
- return getShort(locale.monthsShort, $M, months, 3);
714
-
715
- case 'MMMM':
716
- return getShort(months, $M);
717
-
718
- case 'D':
719
- return _this3.$D;
720
-
721
- case 'DD':
722
- return Utils.s(_this3.$D, 2, '0');
723
-
724
- case 'd':
725
- return String(_this3.$W);
726
-
727
- case 'dd':
728
- return getShort(locale.weekdaysMin, _this3.$W, weekdays, 2);
729
-
730
- case 'ddd':
731
- return getShort(locale.weekdaysShort, _this3.$W, weekdays, 3);
732
-
733
- case 'dddd':
734
- return weekdays[_this3.$W];
735
-
736
- case 'H':
737
- return String($H);
738
-
739
- case 'HH':
740
- return Utils.s($H, 2, '0');
741
-
742
- case 'h':
743
- return get$H(1);
744
-
745
- case 'hh':
746
- return get$H(2);
747
-
748
- case 'a':
749
- return meridiemFunc($H, $m, true);
750
-
751
- case 'A':
752
- return meridiemFunc($H, $m, false);
753
-
754
- case 'm':
755
- return String($m);
756
-
757
- case 'mm':
758
- return Utils.s($m, 2, '0');
759
-
760
- case 's':
761
- return String(_this3.$s);
762
-
763
- case 'ss':
764
- return Utils.s(_this3.$s, 2, '0');
765
-
766
- case 'SSS':
767
- return Utils.s(_this3.$ms, 3, '0');
768
-
769
- case 'Z':
770
- return zoneStr;
771
- }
772
-
773
- return null;
774
- };
775
-
776
- return str.replace(REGEX_FORMAT, function (match, $1) {
777
- return $1 || matches(match) || zoneStr.replace(':', '');
778
- }); // 'ZZ'
779
- };
780
-
781
- _proto.utcOffset = function utcOffset() {
782
- // Because a bug at FF24, we're rounding the timezone offset around 15 minutes
783
- // https://github.com/moment/moment/pull/1871
784
- return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
785
- };
786
-
787
- _proto.diff = function diff(input, units, _float) {
788
- var _this4 = this;
789
-
790
- var unit = Utils.p(units);
791
- var that = dayjs(input);
792
- var zoneDelta = (that.utcOffset() - this.utcOffset()) * MILLISECONDS_A_MINUTE;
793
- var diff = this - that;
794
-
795
- var getMonth = function getMonth() {
796
- return Utils.m(_this4, that);
797
- };
798
-
799
- var result;
800
-
801
- switch (unit) {
802
- case Y:
803
- result = getMonth() / 12;
804
- break;
805
-
806
- case M:
807
- result = getMonth();
808
- break;
809
-
810
- case Q:
811
- result = getMonth() / 3;
812
- break;
813
-
814
- case W:
815
- result = (diff - zoneDelta) / MILLISECONDS_A_WEEK;
816
- break;
817
-
818
- case D:
819
- result = (diff - zoneDelta) / MILLISECONDS_A_DAY;
820
- break;
821
-
822
- case H:
823
- result = diff / MILLISECONDS_A_HOUR;
824
- break;
825
-
826
- case MIN:
827
- result = diff / MILLISECONDS_A_MINUTE;
828
- break;
829
-
830
- case S:
831
- result = diff / MILLISECONDS_A_SECOND;
832
- break;
833
-
834
- default:
835
- result = diff; // milliseconds
836
-
837
- break;
838
- }
839
-
840
- return _float ? result : Utils.a(result);
841
- };
842
-
843
- _proto.daysInMonth = function daysInMonth() {
844
- return this.endOf(M).$D;
845
- };
846
-
847
- _proto.$locale = function $locale() {
848
- // get locale object
849
- return Ls[this.$L];
850
- };
851
-
852
- _proto.locale = function locale(preset, object) {
853
- if (!preset) return this.$L;
854
- var that = this.clone();
855
- var nextLocaleName = parseLocale(preset, object, true);
856
- if (nextLocaleName) that.$L = nextLocaleName;
857
- return that;
858
- };
859
-
860
- _proto.clone = function clone() {
861
- return Utils.w(this.$d, this);
862
- };
863
-
864
- _proto.toDate = function toDate() {
865
- return new Date(this.valueOf());
866
- };
867
-
868
- _proto.toJSON = function toJSON() {
869
- return this.isValid() ? this.toISOString() : null;
870
- };
871
-
872
- _proto.toISOString = function toISOString() {
873
- // ie 8 return
874
- // new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
875
- // .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
876
- return this.$d.toISOString();
877
- };
878
-
879
- _proto.toString = function toString() {
880
- return this.$d.toUTCString();
881
- };
882
-
883
- return Dayjs;
884
- }();
885
-
886
- var proto = Dayjs.prototype;
887
- dayjs.prototype = proto;
888
- [['$ms', MS], ['$s', S], ['$m', MIN], ['$H', H], ['$W', D], ['$M', M], ['$y', Y], ['$D', DATE]].forEach(function (g) {
889
- proto[g[1]] = function (input) {
890
- return this.$g(input, g[0], g[1]);
891
- };
892
- });
893
-
894
- dayjs.extend = function (plugin, option) {
895
- if (!plugin.$i) {
896
- // install plugin only once
897
- plugin(option, Dayjs, dayjs);
898
- plugin.$i = true;
899
- }
900
-
901
- return dayjs;
902
- };
903
-
904
- dayjs.locale = parseLocale;
905
- dayjs.isDayjs = isDayjs;
906
-
907
- dayjs.unix = function (timestamp) {
908
- return dayjs(timestamp * 1e3);
909
- };
910
-
911
- dayjs.en = Ls[L];
912
- dayjs.Ls = Ls;
913
- dayjs.p = {};
914
-
915
- // eslint-disable-next-line import/prefer-default-export
916
- var t = function t(format) {
917
- return format.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (_, a, b) {
918
- return a || b.slice(1);
919
- });
920
- };
921
- var englishFormats = {
922
- LTS: 'h:mm:ss A',
923
- LT: 'h:mm A',
924
- L: 'MM/DD/YYYY',
925
- LL: 'MMMM D, YYYY',
926
- LLL: 'MMMM D, YYYY h:mm A',
927
- LLLL: 'dddd, MMMM D, YYYY h:mm A'
928
- };
929
- var u = function u(formatStr, formats) {
930
- return formatStr.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (_, a, b) {
931
- var B = b && b.toUpperCase();
932
- return a || formats[b] || englishFormats[b] || t(formats[B]);
933
- });
934
- };
935
-
936
- var formattingTokens = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g;
937
- var match1 = /\d/; // 0 - 9
938
-
939
- var match2 = /\d\d/; // 00 - 99
940
-
941
- var match3 = /\d{3}/; // 000 - 999
942
-
943
- var match4 = /\d{4}/; // 0000 - 9999
944
-
945
- var match1to2 = /\d\d?/; // 0 - 99
946
-
947
- var matchSigned = /[+-]?\d+/; // -inf - inf
948
-
949
- var matchOffset = /[+-]\d\d:?(\d\d)?|Z/; // +00:00 -00:00 +0000 or -0000 +00 or Z
950
-
951
- var matchWord = /\d*[^-_:/,()\s\d]+/; // Word
952
-
953
- var locale = {};
954
-
955
- var parseTwoDigitYear = function parseTwoDigitYear(input) {
956
- input = +input;
957
- return input + (input > 68 ? 1900 : 2000);
958
- };
959
-
960
- function offsetFromString(string) {
961
- if (!string) return 0;
962
- if (string === 'Z') return 0;
963
- var parts = string.match(/([+-]|\d\d)/g);
964
- var minutes = +(parts[1] * 60) + (+parts[2] || 0);
965
- return minutes === 0 ? 0 : parts[0] === '+' ? -minutes : minutes; // eslint-disable-line no-nested-ternary
966
- }
967
-
968
- var addInput = function addInput(property) {
969
- return function (input) {
970
- this[property] = +input;
971
- };
972
- };
973
-
974
- var zoneExpressions = [matchOffset, function (input) {
975
- var zone = this.zone || (this.zone = {});
976
- zone.offset = offsetFromString(input);
977
- }];
978
-
979
- var getLocalePart = function getLocalePart(name) {
980
- var part = locale[name];
981
- return part && (part.indexOf ? part : part.s.concat(part.f));
982
- };
983
-
984
- var meridiemMatch = function meridiemMatch(input, isLowerCase) {
985
- var isAfternoon;
986
- var _locale = locale,
987
- meridiem = _locale.meridiem;
988
-
989
- if (!meridiem) {
990
- isAfternoon = input === (isLowerCase ? 'pm' : 'PM');
991
- } else {
992
- for (var i = 1; i <= 24; i += 1) {
993
- // todo: fix input === meridiem(i, 0, isLowerCase)
994
- if (input.indexOf(meridiem(i, 0, isLowerCase)) > -1) {
995
- isAfternoon = i > 12;
996
- break;
997
- }
998
- }
999
- }
1000
-
1001
- return isAfternoon;
1002
- };
1003
-
1004
- var expressions = {
1005
- A: [matchWord, function (input) {
1006
- this.afternoon = meridiemMatch(input, false);
1007
- }],
1008
- a: [matchWord, function (input) {
1009
- this.afternoon = meridiemMatch(input, true);
1010
- }],
1011
- S: [match1, function (input) {
1012
- this.milliseconds = +input * 100;
1013
- }],
1014
- SS: [match2, function (input) {
1015
- this.milliseconds = +input * 10;
1016
- }],
1017
- SSS: [match3, function (input) {
1018
- this.milliseconds = +input;
1019
- }],
1020
- s: [match1to2, addInput('seconds')],
1021
- ss: [match1to2, addInput('seconds')],
1022
- m: [match1to2, addInput('minutes')],
1023
- mm: [match1to2, addInput('minutes')],
1024
- H: [match1to2, addInput('hours')],
1025
- h: [match1to2, addInput('hours')],
1026
- HH: [match1to2, addInput('hours')],
1027
- hh: [match1to2, addInput('hours')],
1028
- D: [match1to2, addInput('day')],
1029
- DD: [match2, addInput('day')],
1030
- Do: [matchWord, function (input) {
1031
- var _locale2 = locale,
1032
- ordinal = _locale2.ordinal;
1033
-
1034
- var _input$match = input.match(/\d+/);
1035
-
1036
- this.day = _input$match[0];
1037
- if (!ordinal) return;
1038
-
1039
- for (var i = 1; i <= 31; i += 1) {
1040
- if (ordinal(i).replace(/\[|\]/g, '') === input) {
1041
- this.day = i;
1042
- }
1043
- }
1044
- }],
1045
- M: [match1to2, addInput('month')],
1046
- MM: [match2, addInput('month')],
1047
- MMM: [matchWord, function (input) {
1048
- var months = getLocalePart('months');
1049
- var monthsShort = getLocalePart('monthsShort');
1050
- var matchIndex = (monthsShort || months.map(function (_) {
1051
- return _.slice(0, 3);
1052
- })).indexOf(input) + 1;
1053
-
1054
- if (matchIndex < 1) {
1055
- throw new Error();
1056
- }
1057
-
1058
- this.month = matchIndex % 12 || matchIndex;
1059
- }],
1060
- MMMM: [matchWord, function (input) {
1061
- var months = getLocalePart('months');
1062
- var matchIndex = months.indexOf(input) + 1;
1063
-
1064
- if (matchIndex < 1) {
1065
- throw new Error();
1066
- }
1067
-
1068
- this.month = matchIndex % 12 || matchIndex;
1069
- }],
1070
- Y: [matchSigned, addInput('year')],
1071
- YY: [match2, function (input) {
1072
- this.year = parseTwoDigitYear(input);
1073
- }],
1074
- YYYY: [match4, addInput('year')],
1075
- Z: zoneExpressions,
1076
- ZZ: zoneExpressions
1077
- };
1078
-
1079
- function correctHours(time) {
1080
- var afternoon = time.afternoon;
1081
-
1082
- if (afternoon !== undefined) {
1083
- var hours = time.hours;
1084
-
1085
- if (afternoon) {
1086
- if (hours < 12) {
1087
- time.hours += 12;
1088
- }
1089
- } else if (hours === 12) {
1090
- time.hours = 0;
1091
- }
1092
-
1093
- delete time.afternoon;
1094
- }
1095
- }
1096
-
1097
- function makeParser(format) {
1098
- format = u(format, locale && locale.formats);
1099
- var array = format.match(formattingTokens);
1100
- var length = array.length;
1101
-
1102
- for (var i = 0; i < length; i += 1) {
1103
- var token = array[i];
1104
- var parseTo = expressions[token];
1105
- var regex = parseTo && parseTo[0];
1106
- var parser = parseTo && parseTo[1];
1107
-
1108
- if (parser) {
1109
- array[i] = {
1110
- regex: regex,
1111
- parser: parser
1112
- };
1113
- } else {
1114
- array[i] = token.replace(/^\[|\]$/g, '');
1115
- }
1116
- }
1117
-
1118
- return function (input) {
1119
- var time = {};
1120
-
1121
- for (var _i = 0, start = 0; _i < length; _i += 1) {
1122
- var _token = array[_i];
1123
-
1124
- if (typeof _token === 'string') {
1125
- start += _token.length;
1126
- } else {
1127
- var _regex = _token.regex,
1128
- _parser = _token.parser;
1129
- var part = input.slice(start);
1130
-
1131
- var match = _regex.exec(part);
1132
-
1133
- var value = match[0];
1134
-
1135
- _parser.call(time, value);
1136
-
1137
- input = input.replace(value, '');
1138
- }
1139
- }
1140
-
1141
- correctHours(time);
1142
- return time;
1143
- };
1144
- }
1145
-
1146
- var parseFormattedInput = function parseFormattedInput(input, format, utc) {
1147
- try {
1148
- if (['x', 'X'].indexOf(format) > -1) return new Date((format === 'X' ? 1000 : 1) * input);
1149
- var parser = makeParser(format);
1150
-
1151
- var _parser2 = parser(input),
1152
- year = _parser2.year,
1153
- month = _parser2.month,
1154
- day = _parser2.day,
1155
- hours = _parser2.hours,
1156
- minutes = _parser2.minutes,
1157
- seconds = _parser2.seconds,
1158
- milliseconds = _parser2.milliseconds,
1159
- zone = _parser2.zone;
1160
-
1161
- var now = new Date();
1162
- var d = day || (!year && !month ? now.getDate() : 1);
1163
- var y = year || now.getFullYear();
1164
- var M = 0;
1165
-
1166
- if (!(year && !month)) {
1167
- M = month > 0 ? month - 1 : now.getMonth();
1168
- }
1169
-
1170
- var h = hours || 0;
1171
- var m = minutes || 0;
1172
- var s = seconds || 0;
1173
- var ms = milliseconds || 0;
1174
-
1175
- if (zone) {
1176
- return new Date(Date.UTC(y, M, d, h, m, s, ms + zone.offset * 60 * 1000));
1177
- }
1178
-
1179
- if (utc) {
1180
- return new Date(Date.UTC(y, M, d, h, m, s, ms));
1181
- }
1182
-
1183
- return new Date(y, M, d, h, m, s, ms);
1184
- } catch (e) {
1185
- return new Date(''); // Invalid Date
1186
- }
1187
- };
1188
-
1189
- const customParseFormat = (function (o, C, d) {
1190
- d.p.customParseFormat = true;
1191
-
1192
- if (o && o.parseTwoDigitYear) {
1193
- parseTwoDigitYear = o.parseTwoDigitYear;
1194
- }
1195
-
1196
- var proto = C.prototype;
1197
- var oldParse = proto.parse;
1198
-
1199
- proto.parse = function (cfg) {
1200
- var date = cfg.date,
1201
- utc = cfg.utc,
1202
- args = cfg.args;
1203
- this.$u = utc;
1204
- var format = args[1];
1205
-
1206
- if (typeof format === 'string') {
1207
- var isStrictWithoutLocale = args[2] === true;
1208
- var isStrictWithLocale = args[3] === true;
1209
- var isStrict = isStrictWithoutLocale || isStrictWithLocale;
1210
- var pl = args[2];
1211
-
1212
- if (isStrictWithLocale) {
1213
- pl = args[2];
1214
- }
1215
-
1216
- locale = this.$locale();
1217
-
1218
- if (!isStrictWithoutLocale && pl) {
1219
- locale = d.Ls[pl];
1220
- }
1221
-
1222
- this.$d = parseFormattedInput(date, format, utc);
1223
- this.init();
1224
- if (pl && pl !== true) this.$L = this.locale(pl).$L; // use != to treat
1225
- // input number 1410715640579 and format string '1410715640579' equal
1226
- // eslint-disable-next-line eqeqeq
1227
-
1228
- if (isStrict && date != this.format(format)) {
1229
- this.$d = new Date('');
1230
- } // reset global locale to make parallel unit test
1231
-
1232
-
1233
- locale = {};
1234
- } else if (format instanceof Array) {
1235
- var len = format.length;
1236
-
1237
- for (var i = 1; i <= len; i += 1) {
1238
- args[1] = format[i - 1];
1239
- var result = d.apply(this, args);
1240
-
1241
- if (result.isValid()) {
1242
- this.$d = result.$d;
1243
- this.$L = result.$L;
1244
- this.init();
1245
- break;
1246
- }
1247
-
1248
- if (i === len) this.$d = new Date('');
1249
- }
1250
- } else {
1251
- oldParse.call(this, cfg);
1252
- }
1253
- };
1254
- });
1255
-
1256
- const localeData = (function (o, c, dayjs) {
1257
- // locale needed later
1258
- var proto = c.prototype;
1259
-
1260
- var getLocalePart = function getLocalePart(part) {
1261
- return part && (part.indexOf ? part : part.s);
1262
- };
1263
-
1264
- var getShort = function getShort(ins, target, full, num, localeOrder) {
1265
- var locale = ins.name ? ins : ins.$locale();
1266
- var targetLocale = getLocalePart(locale[target]);
1267
- var fullLocale = getLocalePart(locale[full]);
1268
- var result = targetLocale || fullLocale.map(function (f) {
1269
- return f.slice(0, num);
1270
- });
1271
- if (!localeOrder) return result;
1272
- var weekStart = locale.weekStart;
1273
- return result.map(function (_, index) {
1274
- return result[(index + (weekStart || 0)) % 7];
1275
- });
1276
- };
1277
-
1278
- var getDayjsLocaleObject = function getDayjsLocaleObject() {
1279
- return dayjs.Ls[dayjs.locale()];
1280
- };
1281
-
1282
- var getLongDateFormat = function getLongDateFormat(l, format) {
1283
- return l.formats[format] || t(l.formats[format.toUpperCase()]);
1284
- };
1285
-
1286
- var localeData = function localeData() {
1287
- var _this = this;
1288
-
1289
- return {
1290
- months: function months(instance) {
1291
- return instance ? instance.format('MMMM') : getShort(_this, 'months');
1292
- },
1293
- monthsShort: function monthsShort(instance) {
1294
- return instance ? instance.format('MMM') : getShort(_this, 'monthsShort', 'months', 3);
1295
- },
1296
- firstDayOfWeek: function firstDayOfWeek() {
1297
- return _this.$locale().weekStart || 0;
1298
- },
1299
- weekdays: function weekdays(instance) {
1300
- return instance ? instance.format('dddd') : getShort(_this, 'weekdays');
1301
- },
1302
- weekdaysMin: function weekdaysMin(instance) {
1303
- return instance ? instance.format('dd') : getShort(_this, 'weekdaysMin', 'weekdays', 2);
1304
- },
1305
- weekdaysShort: function weekdaysShort(instance) {
1306
- return instance ? instance.format('ddd') : getShort(_this, 'weekdaysShort', 'weekdays', 3);
1307
- },
1308
- longDateFormat: function longDateFormat(format) {
1309
- return getLongDateFormat(_this.$locale(), format);
1310
- },
1311
- meridiem: this.$locale().meridiem,
1312
- ordinal: this.$locale().ordinal
1313
- };
1314
- };
1315
-
1316
- proto.localeData = function () {
1317
- return localeData.bind(this)();
1318
- };
1319
-
1320
- dayjs.localeData = function () {
1321
- var localeObject = getDayjsLocaleObject();
1322
- return {
1323
- firstDayOfWeek: function firstDayOfWeek() {
1324
- return localeObject.weekStart || 0;
1325
- },
1326
- weekdays: function weekdays() {
1327
- return dayjs.weekdays();
1328
- },
1329
- weekdaysShort: function weekdaysShort() {
1330
- return dayjs.weekdaysShort();
1331
- },
1332
- weekdaysMin: function weekdaysMin() {
1333
- return dayjs.weekdaysMin();
1334
- },
1335
- months: function months() {
1336
- return dayjs.months();
1337
- },
1338
- monthsShort: function monthsShort() {
1339
- return dayjs.monthsShort();
1340
- },
1341
- longDateFormat: function longDateFormat(format) {
1342
- return getLongDateFormat(localeObject, format);
1343
- },
1344
- meridiem: localeObject.meridiem,
1345
- ordinal: localeObject.ordinal
1346
- };
1347
- };
1348
-
1349
- dayjs.months = function () {
1350
- return getShort(getDayjsLocaleObject(), 'months');
1351
- };
1352
-
1353
- dayjs.monthsShort = function () {
1354
- return getShort(getDayjsLocaleObject(), 'monthsShort', 'months', 3);
1355
- };
1356
-
1357
- dayjs.weekdays = function (localeOrder) {
1358
- return getShort(getDayjsLocaleObject(), 'weekdays', null, null, localeOrder);
1359
- };
1360
-
1361
- dayjs.weekdaysShort = function (localeOrder) {
1362
- return getShort(getDayjsLocaleObject(), 'weekdaysShort', 'weekdays', 3, localeOrder);
1363
- };
1364
-
1365
- dayjs.weekdaysMin = function (localeOrder) {
1366
- return getShort(getDayjsLocaleObject(), 'weekdaysMin', 'weekdays', 2, localeOrder);
1367
- };
1368
- });
1369
-
1370
- const localizedFormat = (function (o, c, d) {
1371
- var proto = c.prototype;
1372
- var oldFormat = proto.format;
1373
- d.en.formats = englishFormats;
1374
-
1375
- proto.format = function (formatStr) {
1376
- if (formatStr === void 0) {
1377
- formatStr = FORMAT_DEFAULT;
1378
- }
1379
-
1380
- var _this$$locale = this.$locale(),
1381
- _this$$locale$formats = _this$$locale.formats,
1382
- formats = _this$$locale$formats === void 0 ? {} : _this$$locale$formats;
1383
-
1384
- var result = u(formatStr, formats);
1385
- return oldFormat.call(this, result);
1386
- };
1387
- });
1388
-
1389
- // Plugin template from https://day.js.org/docs/en/plugin/plugin
1390
- const preParsePostFormat = (function (option, dayjsClass) {
1391
- var oldParse = dayjsClass.prototype.parse;
1392
-
1393
- dayjsClass.prototype.parse = function (cfg) {
1394
- if (typeof cfg.date === 'string') {
1395
- var locale = this.$locale();
1396
- cfg.date = locale && locale.preparse ? locale.preparse(cfg.date) : cfg.date;
1397
- } // original parse result
1398
-
1399
-
1400
- return oldParse.bind(this)(cfg);
1401
- }; // // overriding existing API
1402
- // // e.g. extend dayjs().format()
1403
-
1404
-
1405
- var oldFormat = dayjsClass.prototype.format;
1406
-
1407
- dayjsClass.prototype.format = function () {
1408
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1409
- args[_key] = arguments[_key];
1410
- }
1411
-
1412
- // original format result
1413
- var result = oldFormat.call.apply(oldFormat, [this].concat(args)); // return modified result
1414
-
1415
- var locale = this.$locale();
1416
- return locale && locale.postformat ? locale.postformat(result) : result;
1417
- };
1418
-
1419
- var oldFromTo = dayjsClass.prototype.fromToBase;
1420
-
1421
- if (oldFromTo) {
1422
- dayjsClass.prototype.fromToBase = function (input, withoutSuffix, instance, isFrom) {
1423
- var locale = this.$locale() || instance.$locale(); // original format result
1424
-
1425
- return oldFromTo.call(this, input, withoutSuffix, instance, isFrom, locale && locale.postformat);
1426
- };
1427
- }
1428
- });
1429
-
1430
- const updateLocale = (function (option, Dayjs, dayjs) {
1431
- dayjs.updateLocale = function (locale, customConfig) {
1432
- var localeList = dayjs.Ls;
1433
- var localeConfig = localeList[locale];
1434
- if (!localeConfig) return;
1435
- var customConfigKeys = customConfig ? Object.keys(customConfig) : [];
1436
- customConfigKeys.forEach(function (c) {
1437
- localeConfig[c] = customConfig[c];
1438
- });
1439
- return localeConfig; // eslint-disable-line consistent-return
1440
- };
1441
- });
1442
-
1443
- const inputTimePickerCss = ":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([scale=s]){--calcite-toggle-spacing:0.5rem}:host([scale=m]){--calcite-toggle-spacing:0.75rem}:host([scale=l]){--calcite-toggle-spacing:1rem}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;inline-size:1rem;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([hidden]){display:none}[hidden]{display:none}";
1444
-
1445
- // some bundlers (e.g., Webpack) need dynamic import paths to be static
1446
- const supportedDayjsLocaleToLocaleConfigImport = new Map([
1447
- ["ar", () => import('./ar-a6dfa8aa.js')],
1448
- ["bg", () => import('./bg-53e39987.js')],
1449
- ["bs", () => import('./bs-d54aa11b.js')],
1450
- ["ca", () => import('./ca-26d0f4f9.js')],
1451
- ["cs", () => import('./cs-22daa2a9.js')],
1452
- ["da", () => import('./da-784a4856.js')],
1453
- ["de", () => import('./de-7799399b.js')],
1454
- ["de-at", () => import('./de-at-5dbd261c.js')],
1455
- ["de-ch", () => import('./de-ch-f275b0c0.js')],
1456
- ["el", () => import('./el-31db4fe2.js')],
1457
- ["en", () => Promise.resolve().then(function () { return en$1; })],
1458
- ["en-au", () => import('./en-au-2e7a2bf4.js')],
1459
- ["en-ca", () => import('./en-ca-1d937970.js')],
1460
- ["en-gb", () => import('./en-gb-c67e29f1.js')],
1461
- ["es", () => import('./es-2c3426f8.js')],
1462
- ["es-mx", () => import('./es-mx-2257e6a5.js')],
1463
- ["et", () => import('./et-2a3de187.js')],
1464
- ["fi", () => import('./fi-5068573b.js')],
1465
- ["fr", () => import('./fr-922fc5f6.js')],
1466
- ["fr-ch", () => import('./fr-ch-5aed9648.js')],
1467
- ["he", () => import('./he-2e9f8c9d.js')],
1468
- ["hi", () => import('./hi-e182a600.js')],
1469
- ["hr", () => import('./hr-0d7b7c28.js')],
1470
- ["hu", () => import('./hu-f46cfbef.js')],
1471
- ["id", () => import('./id-0d722dc1.js')],
1472
- ["it", () => import('./it-993cf4a0.js')],
1473
- ["it-ch", () => import('./it-ch-dc024326.js')],
1474
- ["ja", () => import('./ja-f0949e9e.js')],
1475
- ["ko", () => import('./ko-047803f5.js')],
1476
- ["lt", () => import('./lt-db317159.js')],
1477
- ["lv", () => import('./lv-c034250a.js')],
1478
- ["mk", () => import('./mk-8e80c6e2.js')],
1479
- ["nl", () => import('./nl-bd5e8541.js')],
1480
- ["nb", () => import('./nb-712fd989.js')],
1481
- ["pl", () => import('./pl-757d96a6.js')],
1482
- ["pt", () => import('./pt-76c48f5f.js')],
1483
- ["pt-br", () => import('./pt-br-c1f951a0.js')],
1484
- ["ro", () => import('./ro-4d823274.js')],
1485
- ["ru", () => import('./ru-0bc23637.js')],
1486
- ["sk", () => import('./sk-2cfc4640.js')],
1487
- ["sl", () => import('./sl-6100e69f.js')],
1488
- ["sr", () => import('./sr-fbf87438.js')],
1489
- ["sv", () => import('./sv-6df9a49f.js')],
1490
- ["th", () => import('./th-c11c3249.js')],
1491
- ["tr", () => import('./tr-257a6cb3.js')],
1492
- ["uk", () => import('./uk-c7422687.js')],
1493
- ["vi", () => import('./vi-f4b323c7.js')],
1494
- ["zh-cn", () => import('./zh-cn-63d4b701.js')],
1495
- ["zh-hk", () => import('./zh-hk-bcbf6c17.js')],
1496
- ["zh-tw", () => import('./zh-tw-705c7667.js')],
1497
- ]);
1498
- dayjs.extend(customParseFormat);
1499
- dayjs.extend(localeData);
1500
- dayjs.extend(localizedFormat);
1501
- dayjs.extend(preParsePostFormat);
1502
- dayjs.extend(updateLocale);
1503
- const InputTimePicker = class {
1504
- constructor(hostRef) {
1505
- registerInstance(this, hostRef);
1506
- this.calciteInputTimePickerChange = createEvent(this, "calciteInputTimePickerChange", 7);
1507
- this.focusOnOpen = false;
1508
- this.dialogId = `time-picker-dialog--${guid()}`;
1509
- /** whether the value of the input was changed as a result of user typing or not */
1510
- this.userChangedValue = false;
1511
- this.referenceElementId = `input-time-picker-${guid()}`;
1512
- //--------------------------------------------------------------------------
1513
- //
1514
- // Event Listeners
1515
- //
1516
- //--------------------------------------------------------------------------
1517
- this.hostBlurHandler = () => {
1518
- const inputValue = this.calciteInputEl.value;
1519
- const delocalizedInputValue = this.delocalizeTimeString(inputValue);
1520
- if (!delocalizedInputValue) {
1521
- this.setValue("");
1522
- return;
1523
- }
1524
- if (delocalizedInputValue !== this.value) {
1525
- this.setValue(delocalizedInputValue);
1526
- }
1527
- const localizedTimeString = localizeTimeString({
1528
- value: this.value,
1529
- locale: this.effectiveLocale,
1530
- numberingSystem: this.numberingSystem,
1531
- includeSeconds: this.shouldIncludeSeconds(),
1532
- fractionalSecondDigits: decimalPlaces(this.step),
1533
- });
1534
- if (localizedTimeString !== inputValue) {
1535
- this.setInputValue(localizedTimeString);
1536
- }
1537
- this.deactivate();
1538
- };
1539
- this.calciteInternalInputFocusHandler = (event) => {
1540
- if (!this.readOnly) {
1541
- event.stopPropagation();
1542
- }
1543
- };
1544
- this.calciteInternalInputInputHandler = (event) => {
1545
- const { effectiveLocale: locale, numberingSystem } = this;
1546
- if (numberingSystem && numberingSystem !== "latn") {
1547
- const target = event.target;
1548
- numberStringFormatter.numberFormatOptions = {
1549
- locale,
1550
- numberingSystem,
1551
- useGrouping: false,
1552
- };
1553
- const valueInNumberingSystem = numberStringFormatter
1554
- .delocalize(target.value)
1555
- .split("")
1556
- .map((char) => numberKeys.includes(char)
1557
- ? numberStringFormatter.numberFormatter.format(Number(char))
1558
- : char)
1559
- .join("");
1560
- this.setInputValue(valueInNumberingSystem);
1561
- }
1562
- };
1563
- this.timePickerChangeHandler = (event) => {
1564
- event.stopPropagation();
1565
- const target = event.target;
1566
- const value = target.value;
1567
- const includeSeconds = this.shouldIncludeSeconds();
1568
- this.setValue(toISOTimeString(value, includeSeconds));
1569
- this.setInputValue(localizeTimeString({
1570
- value,
1571
- locale: this.effectiveLocale,
1572
- numberingSystem: this.numberingSystem,
1573
- includeSeconds,
1574
- fractionalSecondDigits: decimalPlaces(this.step),
1575
- }));
1576
- };
1577
- this.popoverCloseHandler = () => {
1578
- deactivateFocusTrap(this, {
1579
- onDeactivate: () => {
1580
- this.calciteInputEl.setFocus();
1581
- this.focusOnOpen = false;
1582
- },
1583
- });
1584
- };
1585
- this.popoverOpenHandler = () => {
1586
- activateFocusTrap(this, {
1587
- onActivate: () => {
1588
- if (this.focusOnOpen) {
1589
- this.calciteTimePickerEl.setFocus();
1590
- this.focusOnOpen = false;
1591
- }
1592
- },
1593
- });
1594
- };
1595
- this.keyDownHandler = (event) => {
1596
- const { defaultPrevented, key } = event;
1597
- if (defaultPrevented) {
1598
- return;
1599
- }
1600
- if (key === "Enter") {
1601
- if (submitForm(this)) {
1602
- event.preventDefault();
1603
- this.calciteInputEl.setFocus();
1604
- }
1605
- if (event.composedPath().includes(this.calciteTimePickerEl)) {
1606
- return;
1607
- }
1608
- const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
1609
- if (isValidTime(newValue)) {
1610
- this.setValue(newValue);
1611
- const localizedTimeString = localizeTimeString({
1612
- value: this.value,
1613
- locale: this.effectiveLocale,
1614
- numberingSystem: this.numberingSystem,
1615
- includeSeconds: this.shouldIncludeSeconds(),
1616
- fractionalSecondDigits: decimalPlaces(this.step),
1617
- });
1618
- if (newValue && this.calciteInputEl.value !== localizedTimeString) {
1619
- this.setInputValue(localizedTimeString);
1620
- }
1621
- }
1622
- }
1623
- else if (key === "ArrowDown") {
1624
- this.open = true;
1625
- this.focusOnOpen = true;
1626
- event.preventDefault();
1627
- }
1628
- else if (key === "Escape" && this.open) {
1629
- this.open = false;
1630
- event.preventDefault();
1631
- this.calciteInputEl.setFocus();
1632
- }
1633
- };
1634
- this.setCalcitePopoverEl = (el) => {
1635
- this.popoverEl = el;
1636
- };
1637
- this.setCalciteInputEl = (el) => {
1638
- this.calciteInputEl = el;
1639
- };
1640
- this.setCalciteTimePickerEl = (el) => {
1641
- this.calciteTimePickerEl = el;
1642
- connectFocusTrap(this, {
1643
- focusTrapEl: el,
1644
- focusTrapOptions: {
1645
- initialFocus: false,
1646
- setReturnFocus: false,
1647
- },
1648
- });
1649
- };
1650
- this.setInputValue = (newInputValue) => {
1651
- if (!this.calciteInputEl) {
1652
- return;
1653
- }
1654
- this.calciteInputEl.value = newInputValue;
1655
- };
1656
- /**
1657
- * Sets the value and emits a change event.
1658
- * This is used to update the value as a result of user interaction.
1659
- *
1660
- * @param value
1661
- */
1662
- this.setValue = (value) => {
1663
- const oldValue = this.value;
1664
- const newValue = formatTimeString(value) || "";
1665
- if (newValue === oldValue) {
1666
- return;
1667
- }
1668
- this.userChangedValue = true;
1669
- this.value = newValue || "";
1670
- const changeEvent = this.calciteInputTimePickerChange.emit();
1671
- if (changeEvent.defaultPrevented) {
1672
- this.userChangedValue = false;
1673
- this.value = oldValue;
1674
- this.setInputValue(localizeTimeString({
1675
- value: oldValue,
1676
- locale: this.effectiveLocale,
1677
- numberingSystem: this.numberingSystem,
1678
- includeSeconds: this.shouldIncludeSeconds(),
1679
- fractionalSecondDigits: decimalPlaces(this.step),
1680
- }));
1681
- }
1682
- };
1683
- /**
1684
- * Sets the value directly without emitting a change event.
1685
- * This is used to update the value on initial load and when props change that are not the result of user interaction.
1686
- *
1687
- * @param value
1688
- */
1689
- this.setValueDirectly = (value) => {
1690
- const includeSeconds = this.shouldIncludeSeconds();
1691
- this.value = toISOTimeString(value, includeSeconds);
1692
- this.setInputValue(this.value
1693
- ? localizeTimeString({
1694
- value: this.value,
1695
- includeSeconds,
1696
- locale: this.effectiveLocale,
1697
- numberingSystem: this.numberingSystem,
1698
- fractionalSecondDigits: decimalPlaces(this.step),
1699
- })
1700
- : "");
1701
- };
1702
- this.onInputWrapperClick = () => {
1703
- this.open = !this.open;
1704
- };
1705
- this.deactivate = () => {
1706
- this.open = false;
1707
- };
1708
- this.open = false;
1709
- this.disabled = false;
1710
- this.focusTrapDisabled = false;
1711
- this.form = undefined;
1712
- this.readOnly = false;
1713
- this.messageOverrides = undefined;
1714
- this.messages = undefined;
1715
- this.name = undefined;
1716
- this.numberingSystem = undefined;
1717
- this.required = false;
1718
- this.scale = "m";
1719
- this.overlayPositioning = "absolute";
1720
- this.placement = "auto";
1721
- this.step = 60;
1722
- this.value = null;
1723
- this.defaultMessages = undefined;
1724
- this.effectiveLocale = "";
1725
- }
1726
- openHandler(value) {
1727
- if (this.disabled || this.readOnly) {
1728
- this.open = false;
1729
- return;
1730
- }
1731
- if (value) {
1732
- this.reposition(true);
1733
- }
1734
- }
1735
- handleFocusTrapDisabled(focusTrapDisabled) {
1736
- if (!this.open) {
1737
- return;
1738
- }
1739
- focusTrapDisabled ? deactivateFocusTrap(this) : activateFocusTrap(this);
1740
- }
1741
- handleDisabledAndReadOnlyChange(value) {
1742
- if (!value) {
1743
- this.open = false;
1744
- }
1745
- }
1746
- onMessagesChange() {
1747
- /* wired up by t9n util */
1748
- }
1749
- numberingSystemWatcher(numberingSystem) {
1750
- this.setInputValue(localizeTimeString({
1751
- value: this.value,
1752
- locale: this.effectiveLocale,
1753
- numberingSystem,
1754
- includeSeconds: this.shouldIncludeSeconds(),
1755
- fractionalSecondDigits: decimalPlaces(this.step),
1756
- }));
1757
- }
1758
- stepWatcher(newStep, oldStep) {
1759
- if ((oldStep >= 60 && newStep > 0 && newStep < 60) ||
1760
- (newStep >= 60 && oldStep > 0 && oldStep < 60)) {
1761
- this.setValueDirectly(this.value);
1762
- }
1763
- }
1764
- valueWatcher(newValue) {
1765
- if (!this.userChangedValue) {
1766
- this.setValueDirectly(newValue);
1767
- }
1768
- this.userChangedValue = false;
1769
- }
1770
- async effectiveLocaleWatcher(locale) {
1771
- await this.loadDateTimeLocaleData();
1772
- this.setInputValue(localizeTimeString({
1773
- value: this.value,
1774
- locale,
1775
- numberingSystem: this.numberingSystem,
1776
- includeSeconds: this.shouldIncludeSeconds(),
1777
- fractionalSecondDigits: decimalPlaces(this.step),
1778
- }));
1779
- }
1780
- // --------------------------------------------------------------------------
1781
- //
1782
- // Public Methods
1783
- //
1784
- // --------------------------------------------------------------------------
1785
- /** Sets focus on the component. */
1786
- async setFocus() {
1787
- await componentFocusable(this);
1788
- this.el.focus();
1789
- }
1790
- /**
1791
- * Updates the position of the component.
1792
- *
1793
- * @param delayed
1794
- */
1795
- async reposition(delayed = false) {
1796
- this.popoverEl?.reposition(delayed);
1797
- }
1798
- // --------------------------------------------------------------------------
1799
- //
1800
- // Private Methods
1801
- //
1802
- // --------------------------------------------------------------------------
1803
- delocalizeTimeString(value) {
1804
- // we need to set the corresponding locale before parsing, otherwise it defaults to English (possible dayjs bug)
1805
- dayjs.locale(this.effectiveLocale.toLowerCase());
1806
- const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
1807
- let delocalizedTimeString;
1808
- if (this.shouldIncludeFractionalSeconds()) {
1809
- const stepPrecision = decimalPlaces(this.step);
1810
- const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
1811
- if (stepPrecision === 1) {
1812
- delocalizedTimeString =
1813
- centisecondParts.millisecond !== 0
1814
- ? this.getTimeStringFromParts(centisecondParts)
1815
- : this.getTimeStringFromParts(nonFractionalSecondParts);
1816
- }
1817
- else {
1818
- const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
1819
- if (stepPrecision === 2) {
1820
- if (decisecondParts.millisecond !== 0) {
1821
- delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
1822
- }
1823
- else if (centisecondParts.millisecond !== 0) {
1824
- delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
1825
- }
1826
- else {
1827
- delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
1828
- }
1829
- }
1830
- else if (stepPrecision >= 3) {
1831
- const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
1832
- if (millisecondParts.millisecond !== 0) {
1833
- delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
1834
- }
1835
- else if (decisecondParts.millisecond !== 0) {
1836
- delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
1837
- }
1838
- else if (centisecondParts.millisecond !== 0) {
1839
- delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
1840
- }
1841
- else {
1842
- delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
1843
- }
1844
- }
1845
- }
1846
- }
1847
- else {
1848
- delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
1849
- }
1850
- return delocalizedTimeString;
1851
- }
1852
- delocalizeTimeStringToParts(localizedTimeString, fractionalSecondFormatToken) {
1853
- const ltsFormatString = this.localeConfig?.formats?.LTS;
1854
- const fractionalSecondTokenMatch = ltsFormatString.match(/ss\.*(S+)/g);
1855
- if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
1856
- const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
1857
- this.localeConfig.formats.LTS = fractionalSecondTokenMatch
1858
- ? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken)
1859
- : ltsFormatString.replace("ss", secondFormatToken);
1860
- }
1861
- else if (fractionalSecondTokenMatch) {
1862
- this.localeConfig.formats.LTS = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
1863
- }
1864
- dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(this.effectiveLocale)), this.localeConfig);
1865
- const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
1866
- if (dayjsParseResult.isValid()) {
1867
- return {
1868
- hour: dayjsParseResult.get("hour"),
1869
- minute: dayjsParseResult.get("minute"),
1870
- second: dayjsParseResult.get("second"),
1871
- millisecond: dayjsParseResult.get("millisecond"),
1872
- };
1873
- }
1874
- return {
1875
- hour: null,
1876
- minute: null,
1877
- second: null,
1878
- millisecond: null,
1879
- };
1880
- }
1881
- getTimeStringFromParts(parts) {
1882
- let timeString = "";
1883
- if (!parts) {
1884
- return timeString;
1885
- }
1886
- if (parts.hour !== null && parts.minute !== null) {
1887
- timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
1888
- if (this.shouldIncludeSeconds() && parts.second !== null) {
1889
- timeString += `:${formatTimePart(parts.second)}`;
1890
- if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
1891
- const second = (parts.millisecond * 0.001).toFixed(decimalPlaces(this.step));
1892
- timeString += `.${second.toString().replace("0.", "")}`;
1893
- }
1894
- }
1895
- }
1896
- return timeString;
1897
- }
1898
- getSupportedDayjsLocale(locale) {
1899
- const dayjsLocale = locale.toLowerCase();
1900
- if (dayjsLocale === "no") {
1901
- return "nb";
1902
- }
1903
- if (dayjsLocale === "pt-pt") {
1904
- return "pt";
1905
- }
1906
- return dayjsLocale;
1907
- }
1908
- async loadDateTimeLocaleData() {
1909
- let supportedLocale = getSupportedLocale(this.effectiveLocale).toLowerCase();
1910
- supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
1911
- const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
1912
- this.localeConfig = localeConfig;
1913
- dayjs.locale(this.localeConfig, null, true);
1914
- dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
1915
- }
1916
- getExtendedLocaleConfig(locale) {
1917
- if (locale === "ar") {
1918
- return {
1919
- meridiem: (hour) => (hour > 12 ? "م" : "ص"),
1920
- formats: {
1921
- LT: "HH:mm A",
1922
- LTS: "HH:mm:ss A",
1923
- L: "DD/MM/YYYY",
1924
- LL: "D MMMM YYYY",
1925
- LLL: "D MMMM YYYY HH:mm A",
1926
- LLLL: "dddd D MMMM YYYY HH:mm A",
1927
- },
1928
- };
1929
- }
1930
- if (locale === "en-au") {
1931
- return {
1932
- meridiem: (hour) => (hour > 12 ? "pm" : "am"),
1933
- };
1934
- }
1935
- if (locale === "en-ca") {
1936
- return {
1937
- meridiem: (hour) => (hour > 12 ? "p.m." : "a.m."),
1938
- };
1939
- }
1940
- if (locale === "el") {
1941
- return {
1942
- meridiem: (hour) => (hour > 12 ? "μ.μ." : "π.μ."),
1943
- };
1944
- }
1945
- if (locale === "hi") {
1946
- return {
1947
- formats: {
1948
- LT: "h:mm A",
1949
- LTS: "h:mm:ss A",
1950
- L: "DD/MM/YYYY",
1951
- LL: "D MMMM YYYY",
1952
- LLL: "D MMMM YYYY, h:mm A",
1953
- LLLL: "dddd, D MMMM YYYY, h:mm A",
1954
- },
1955
- meridiem: (hour) => (hour > 12 ? "pm" : "am"),
1956
- };
1957
- }
1958
- if (locale === "ko") {
1959
- return {
1960
- meridiem: (hour) => (hour > 12 ? "오후" : "오전"),
1961
- };
1962
- }
1963
- if (locale === "zh-tw") {
1964
- return {
1965
- formats: {
1966
- LT: "AHH:mm",
1967
- LTS: "AHH:mm:ss",
1968
- },
1969
- };
1970
- }
1971
- if (locale === "zh-hk") {
1972
- return {
1973
- formats: {
1974
- LT: "AHH:mm",
1975
- LTS: "AHH:mm:ss",
1976
- },
1977
- meridiem: (hour) => (hour > 12 ? "下午" : "上午"),
1978
- };
1979
- }
1980
- }
1981
- onLabelClick() {
1982
- this.setFocus();
1983
- }
1984
- shouldIncludeSeconds() {
1985
- return this.step < 60;
1986
- }
1987
- shouldIncludeFractionalSeconds() {
1988
- return decimalPlaces(this.step) > 0;
1989
- }
1990
- //--------------------------------------------------------------------------
1991
- //
1992
- // Lifecycle
1993
- //
1994
- //--------------------------------------------------------------------------
1995
- connectedCallback() {
1996
- connectInteractive(this);
1997
- connectLocalized(this);
1998
- if (isValidTime(this.value)) {
1999
- this.setValueDirectly(this.value);
2000
- }
2001
- else {
2002
- this.value = undefined;
2003
- }
2004
- connectLabel(this);
2005
- connectForm(this);
2006
- connectMessages(this);
2007
- }
2008
- async componentWillLoad() {
2009
- setUpLoadableComponent(this);
2010
- await Promise.all([setUpMessages(this), this.loadDateTimeLocaleData()]);
2011
- }
2012
- componentDidLoad() {
2013
- setComponentLoaded(this);
2014
- if (isValidTime(this.value)) {
2015
- this.setInputValue(localizeTimeString({
2016
- value: this.value,
2017
- locale: this.effectiveLocale,
2018
- numberingSystem: this.numberingSystem,
2019
- includeSeconds: this.shouldIncludeSeconds(),
2020
- fractionalSecondDigits: decimalPlaces(this.step),
2021
- }));
2022
- }
2023
- }
2024
- disconnectedCallback() {
2025
- disconnectInteractive(this);
2026
- disconnectLabel(this);
2027
- disconnectForm(this);
2028
- disconnectLocalized(this);
2029
- deactivateFocusTrap(this);
2030
- disconnectMessages(this);
2031
- }
2032
- componentDidRender() {
2033
- updateHostInteraction(this);
2034
- }
2035
- // --------------------------------------------------------------------------
2036
- //
2037
- // Render Methods
2038
- //
2039
- // --------------------------------------------------------------------------
2040
- render() {
2041
- const { disabled, messages, readOnly, dialogId } = this;
2042
- return (h(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, h("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, h("calcite-input", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, step: this.step,
2043
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2044
- ref: this.setCalciteInputEl }), !this.readOnly && this.renderToggleIcon(this.open)), h("calcite-popover", { focusTrapDisabled: true, id: dialogId, label: messages.chooseTime, lang: this.effectiveLocale, onCalcitePopoverClose: this.popoverCloseHandler, onCalcitePopoverOpen: this.popoverOpenHandler, open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, referenceElement: this.referenceElementId, triggerDisabled: true,
2045
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2046
- ref: this.setCalcitePopoverEl }, h("calcite-time-picker", { lang: this.effectiveLocale, messageOverrides: this.messageOverrides, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, scale: this.scale, step: this.step, tabIndex: this.open ? undefined : -1, value: this.value,
2047
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2048
- ref: this.setCalciteTimePickerEl })), h(HiddenFormInputSlot, { component: this })));
2049
- }
2050
- renderToggleIcon(open) {
2051
- return (h("span", { class: CSS$1.toggleIcon }, h("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
2052
- }
2053
- static get delegatesFocus() { return true; }
2054
- static get assetsDirs() { return ["assets"]; }
2055
- get el() { return getElement(this); }
2056
- static get watchers() { return {
2057
- "open": ["openHandler"],
2058
- "focusTrapDisabled": ["handleFocusTrapDisabled"],
2059
- "disabled": ["handleDisabledAndReadOnlyChange"],
2060
- "readOnly": ["handleDisabledAndReadOnlyChange"],
2061
- "messageOverrides": ["onMessagesChange"],
2062
- "numberingSystem": ["numberingSystemWatcher"],
2063
- "step": ["stepWatcher"],
2064
- "value": ["valueWatcher"],
2065
- "effectiveLocale": ["effectiveLocaleWatcher"]
2066
- }; }
2067
- };
2068
- InputTimePicker.style = inputTimePickerCss;
2069
-
2070
- const CSS = {
2071
- button: "button",
2072
- buttonBottomLeft: "button--bottom-left",
2073
- buttonBottomRight: "button--bottom-right",
2074
- buttonFractionalSecondDown: "button--fractionalSecond-down",
2075
- buttonFractionalSecondUp: "button--fractionalSecond-up",
2076
- buttonHourDown: "button--hour-down",
2077
- buttonHourUp: "button--hour-up",
2078
- buttonMeridiemDown: "button--meridiem-down",
2079
- buttonMeridiemUp: "button--meridiem-up",
2080
- buttonMinuteDown: "button--minute-down",
2081
- buttonMinuteUp: "button--minute-up",
2082
- buttonSecondDown: "button--second-down",
2083
- buttonSecondUp: "button--second-up",
2084
- buttonTopLeft: "button--top-left",
2085
- buttonTopRight: "button--top-right",
2086
- column: "column",
2087
- delimiter: "delimiter",
2088
- fractionalSecond: "fractionalSecond",
2089
- hour: "hour",
2090
- input: "input",
2091
- meridiem: "meridiem",
2092
- minute: "minute",
2093
- second: "second",
2094
- showMeridiem: "show-meridiem",
2095
- showSecond: "show-second",
2096
- "scale-s": "scale-s",
2097
- "scale-m": "scale-m",
2098
- "scale-l": "scale-l",
2099
- timePicker: "time-picker",
2100
- meridiemStart: "meridiem--start",
2101
- };
2102
-
2103
- const timePickerCss = ":host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;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);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:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items: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;z-index:var(--calcite-app-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-ui-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-ui-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);z-index:var(--calcite-app-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);z-index:var(--calcite-app-z-index-header);outline-offset:0}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:0.75rem;padding-block:0.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{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-inline:1rem;padding-block:0.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{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-inline:1.25rem;padding-block:0.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}";
2104
-
2105
- function capitalize(str) {
2106
- return str.charAt(0).toUpperCase() + str.slice(1);
2107
- }
2108
- const TimePicker = class {
2109
- constructor(hostRef) {
2110
- registerInstance(this, hostRef);
2111
- this.calciteInternalTimePickerBlur = createEvent(this, "calciteInternalTimePickerBlur", 6);
2112
- this.calciteInternalTimePickerChange = createEvent(this, "calciteInternalTimePickerChange", 6);
2113
- this.calciteInternalTimePickerFocus = createEvent(this, "calciteInternalTimePickerFocus", 6);
2114
- this.decrementFractionalSecond = () => {
2115
- this.nudgeFractionalSecond("down");
2116
- };
2117
- this.decrementHour = () => {
2118
- const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
2119
- this.setValuePart("hour", newHour);
2120
- };
2121
- this.decrementMeridiem = () => {
2122
- const newMeridiem = this.meridiem === "PM" ? "AM" : "PM";
2123
- this.setValuePart("meridiem", newMeridiem);
2124
- };
2125
- this.decrementMinuteOrSecond = (key) => {
2126
- let newValue;
2127
- if (isValidNumber(this[key])) {
2128
- const valueAsNumber = parseInt(this[key]);
2129
- newValue = valueAsNumber === 0 ? 59 : valueAsNumber - 1;
2130
- }
2131
- else {
2132
- newValue = 59;
2133
- }
2134
- this.setValuePart(key, newValue);
2135
- };
2136
- this.decrementMinute = () => {
2137
- this.decrementMinuteOrSecond("minute");
2138
- };
2139
- this.decrementSecond = () => {
2140
- this.decrementMinuteOrSecond("second");
2141
- };
2142
- this.focusHandler = (event) => {
2143
- this.activeEl = event.currentTarget;
2144
- };
2145
- this.fractionalSecondKeyDownHandler = (event) => {
2146
- const { key } = event;
2147
- if (numberKeys.includes(key)) {
2148
- const stepPrecision = decimalPlaces(this.step);
2149
- const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
2150
- const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
2151
- let newFractionalSecondAsIntegerString;
2152
- if (fractionalSecondAsIntegerLength >= stepPrecision) {
2153
- newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
2154
- }
2155
- else if (fractionalSecondAsIntegerLength < stepPrecision) {
2156
- newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
2157
- }
2158
- this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
2159
- }
2160
- else {
2161
- switch (key) {
2162
- case "Backspace":
2163
- case "Delete":
2164
- this.setValuePart("fractionalSecond", null);
2165
- break;
2166
- case "ArrowDown":
2167
- event.preventDefault();
2168
- this.nudgeFractionalSecond("down");
2169
- break;
2170
- case "ArrowUp":
2171
- event.preventDefault();
2172
- this.nudgeFractionalSecond("up");
2173
- break;
2174
- case " ":
2175
- event.preventDefault();
2176
- break;
2177
- }
2178
- }
2179
- };
2180
- this.hourKeyDownHandler = (event) => {
2181
- const { key } = event;
2182
- if (numberKeys.includes(key)) {
2183
- const keyAsNumber = parseInt(key);
2184
- let newHour;
2185
- if (isValidNumber(this.hour)) {
2186
- switch (this.hourCycle) {
2187
- case "12":
2188
- newHour =
2189
- this.hour === "01" && keyAsNumber >= 0 && keyAsNumber <= 2
2190
- ? `1${keyAsNumber}`
2191
- : keyAsNumber;
2192
- break;
2193
- case "24":
2194
- if (this.hour === "01") {
2195
- newHour = `1${keyAsNumber}`;
2196
- }
2197
- else if (this.hour === "02" && keyAsNumber >= 0 && keyAsNumber <= 3) {
2198
- newHour = `2${keyAsNumber}`;
2199
- }
2200
- else {
2201
- newHour = keyAsNumber;
2202
- }
2203
- break;
2204
- }
2205
- }
2206
- else {
2207
- newHour = keyAsNumber;
2208
- }
2209
- this.setValuePart("hour", newHour);
2210
- }
2211
- else {
2212
- switch (key) {
2213
- case "Backspace":
2214
- case "Delete":
2215
- this.setValuePart("hour", null);
2216
- break;
2217
- case "ArrowDown":
2218
- event.preventDefault();
2219
- this.decrementHour();
2220
- break;
2221
- case "ArrowUp":
2222
- event.preventDefault();
2223
- this.incrementHour();
2224
- break;
2225
- case " ":
2226
- event.preventDefault();
2227
- break;
2228
- }
2229
- }
2230
- };
2231
- this.incrementFractionalSecond = () => {
2232
- this.nudgeFractionalSecond("up");
2233
- };
2234
- this.incrementMeridiem = () => {
2235
- const newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
2236
- this.setValuePart("meridiem", newMeridiem);
2237
- };
2238
- this.incrementHour = () => {
2239
- const newHour = isValidNumber(this.hour)
2240
- ? this.hour === "23"
2241
- ? 0
2242
- : parseInt(this.hour) + 1
2243
- : 1;
2244
- this.setValuePart("hour", newHour);
2245
- };
2246
- this.incrementMinuteOrSecond = (key) => {
2247
- const newValue = isValidNumber(this[key])
2248
- ? this[key] === "59"
2249
- ? 0
2250
- : parseInt(this[key]) + 1
2251
- : 0;
2252
- this.setValuePart(key, newValue);
2253
- };
2254
- this.incrementMinute = () => {
2255
- this.incrementMinuteOrSecond("minute");
2256
- };
2257
- this.incrementSecond = () => {
2258
- this.incrementMinuteOrSecond("second");
2259
- };
2260
- this.meridiemKeyDownHandler = (event) => {
2261
- switch (event.key) {
2262
- case "a":
2263
- this.setValuePart("meridiem", "AM");
2264
- break;
2265
- case "p":
2266
- this.setValuePart("meridiem", "PM");
2267
- break;
2268
- case "Backspace":
2269
- case "Delete":
2270
- this.setValuePart("meridiem", null);
2271
- break;
2272
- case "ArrowUp":
2273
- event.preventDefault();
2274
- this.incrementMeridiem();
2275
- break;
2276
- case "ArrowDown":
2277
- event.preventDefault();
2278
- this.decrementMeridiem();
2279
- break;
2280
- case " ":
2281
- event.preventDefault();
2282
- break;
2283
- }
2284
- };
2285
- this.minuteKeyDownHandler = (event) => {
2286
- const { key } = event;
2287
- if (numberKeys.includes(key)) {
2288
- const keyAsNumber = parseInt(key);
2289
- let newMinute;
2290
- if (isValidNumber(this.minute) && this.minute.startsWith("0")) {
2291
- const minuteAsNumber = parseInt(this.minute);
2292
- newMinute =
2293
- minuteAsNumber > maxTenthForMinuteAndSecond
2294
- ? keyAsNumber
2295
- : `${minuteAsNumber}${keyAsNumber}`;
2296
- }
2297
- else {
2298
- newMinute = keyAsNumber;
2299
- }
2300
- this.setValuePart("minute", newMinute);
2301
- }
2302
- else {
2303
- switch (key) {
2304
- case "Backspace":
2305
- case "Delete":
2306
- this.setValuePart("minute", null);
2307
- break;
2308
- case "ArrowDown":
2309
- event.preventDefault();
2310
- this.decrementMinute();
2311
- break;
2312
- case "ArrowUp":
2313
- event.preventDefault();
2314
- this.incrementMinute();
2315
- break;
2316
- case " ":
2317
- event.preventDefault();
2318
- break;
2319
- }
2320
- }
2321
- };
2322
- this.nudgeFractionalSecond = (direction) => {
2323
- const stepDecimal = getDecimals(this.step);
2324
- const stepPrecision = decimalPlaces(this.step);
2325
- const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
2326
- const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
2327
- let nudgedValue;
2328
- let nudgedValueRounded;
2329
- let nudgedValueRoundedDecimals;
2330
- let newFractionalSecond;
2331
- if (direction === "up") {
2332
- nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
2333
- nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
2334
- nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
2335
- newFractionalSecond =
2336
- nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0
2337
- ? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
2338
- : "".padStart(stepPrecision, "0");
2339
- }
2340
- if (direction === "down") {
2341
- nudgedValue =
2342
- isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0
2343
- ? 1 - stepDecimal
2344
- : fractionalSecondAsFloat - stepDecimal;
2345
- nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
2346
- nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
2347
- newFractionalSecond =
2348
- nudgedValueRounded < 1 &&
2349
- decimalPlaces(nudgedValueRoundedDecimals) > 0 &&
2350
- Math.sign(nudgedValueRoundedDecimals) === 1
2351
- ? formatTimePart(nudgedValueRoundedDecimals, stepPrecision)
2352
- : "".padStart(stepPrecision, "0");
2353
- }
2354
- this.setValuePart("fractionalSecond", newFractionalSecond);
2355
- };
2356
- this.sanitizeValue = (value) => {
2357
- const { hour, minute, second, fractionalSecond } = parseTimeString(value);
2358
- if (fractionalSecond) {
2359
- const sanitizedFractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
2360
- return `${hour}:${minute}:${second}.${sanitizedFractionalSecond}`;
2361
- }
2362
- return isValidTime(value) && value;
2363
- };
2364
- this.sanitizeFractionalSecond = (fractionalSecond) => fractionalSecond && decimalPlaces(this.step) !== fractionalSecond.length
2365
- ? parseFloat(`0.${fractionalSecond}`).toFixed(decimalPlaces(this.step)).replace("0.", "")
2366
- : fractionalSecond;
2367
- this.secondKeyDownHandler = (event) => {
2368
- const { key } = event;
2369
- if (numberKeys.includes(key)) {
2370
- const keyAsNumber = parseInt(key);
2371
- let newSecond;
2372
- if (isValidNumber(this.second) && this.second.startsWith("0")) {
2373
- const secondAsNumber = parseInt(this.second);
2374
- newSecond =
2375
- secondAsNumber > maxTenthForMinuteAndSecond
2376
- ? keyAsNumber
2377
- : `${secondAsNumber}${keyAsNumber}`;
2378
- }
2379
- else {
2380
- newSecond = keyAsNumber;
2381
- }
2382
- this.setValuePart("second", newSecond);
2383
- }
2384
- else {
2385
- switch (key) {
2386
- case "Backspace":
2387
- case "Delete":
2388
- this.setValuePart("second", null);
2389
- break;
2390
- case "ArrowDown":
2391
- event.preventDefault();
2392
- this.decrementSecond();
2393
- break;
2394
- case "ArrowUp":
2395
- event.preventDefault();
2396
- this.incrementSecond();
2397
- break;
2398
- case " ":
2399
- event.preventDefault();
2400
- break;
2401
- }
2402
- }
2403
- };
2404
- this.setHourEl = (el) => (this.hourEl = el);
2405
- this.setMeridiemEl = (el) => (this.meridiemEl = el);
2406
- this.setMinuteEl = (el) => (this.minuteEl = el);
2407
- this.setSecondEl = (el) => (this.secondEl = el);
2408
- this.setFractionalSecondEl = (el) => (this.fractionalSecondEl = el);
2409
- this.setValue = (value) => {
2410
- if (isValidTime(value)) {
2411
- const { hour, minute, second, fractionalSecond } = parseTimeString(value);
2412
- const { effectiveLocale: locale, numberingSystem } = this;
2413
- const { localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedDecimalSeparator, localizedFractionalSecond, localizedSecondSuffix, localizedMeridiem, } = localizeTimeStringToParts({ value, locale, numberingSystem });
2414
- this.hour = hour;
2415
- this.minute = minute;
2416
- this.second = second;
2417
- this.fractionalSecond = this.sanitizeFractionalSecond(fractionalSecond);
2418
- this.localizedHour = localizedHour;
2419
- this.localizedHourSuffix = localizedHourSuffix;
2420
- this.localizedMinute = localizedMinute;
2421
- this.localizedMinuteSuffix = localizedMinuteSuffix;
2422
- this.localizedSecond = localizedSecond;
2423
- this.localizedDecimalSeparator = localizedDecimalSeparator;
2424
- this.localizedFractionalSecond = localizedFractionalSecond;
2425
- this.localizedSecondSuffix = localizedSecondSuffix;
2426
- if (localizedMeridiem) {
2427
- this.localizedMeridiem = localizedMeridiem;
2428
- this.meridiem = getMeridiem(this.hour);
2429
- const formatParts = getTimeParts({ value, locale, numberingSystem });
2430
- this.meridiemOrder = this.getMeridiemOrder(formatParts);
2431
- }
2432
- }
2433
- else {
2434
- this.hour = null;
2435
- this.fractionalSecond = null;
2436
- this.localizedHour = null;
2437
- this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", this.effectiveLocale, this.numberingSystem);
2438
- this.localizedMeridiem = null;
2439
- this.localizedMinute = null;
2440
- this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", this.effectiveLocale, this.numberingSystem);
2441
- this.localizedSecond = null;
2442
- this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
2443
- this.localizedFractionalSecond = null;
2444
- this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", this.effectiveLocale, this.numberingSystem);
2445
- this.meridiem = null;
2446
- this.minute = null;
2447
- this.second = null;
2448
- this.value = null;
2449
- }
2450
- };
2451
- this.setValuePart = (key, value) => {
2452
- const { effectiveLocale: locale, numberingSystem } = this;
2453
- if (key === "meridiem") {
2454
- this.meridiem = value;
2455
- if (isValidNumber(this.hour)) {
2456
- const hourAsNumber = parseInt(this.hour);
2457
- switch (value) {
2458
- case "AM":
2459
- if (hourAsNumber >= 12) {
2460
- this.hour = formatTimePart(hourAsNumber - 12);
2461
- }
2462
- break;
2463
- case "PM":
2464
- if (hourAsNumber < 12) {
2465
- this.hour = formatTimePart(hourAsNumber + 12);
2466
- }
2467
- break;
2468
- }
2469
- this.localizedHour = localizeTimePart({
2470
- value: this.hour,
2471
- part: "hour",
2472
- locale,
2473
- numberingSystem,
2474
- });
2475
- }
2476
- }
2477
- else if (key === "fractionalSecond") {
2478
- const stepPrecision = decimalPlaces(this.step);
2479
- if (typeof value === "number") {
2480
- this.fractionalSecond =
2481
- value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
2482
- }
2483
- else {
2484
- this.fractionalSecond = value;
2485
- }
2486
- this.localizedFractionalSecond = localizeTimePart({
2487
- value: this.fractionalSecond,
2488
- part: "fractionalSecond",
2489
- locale,
2490
- numberingSystem,
2491
- });
2492
- }
2493
- else {
2494
- this[key] = typeof value === "number" ? formatTimePart(value) : value;
2495
- this[`localized${capitalize(key)}`] = localizeTimePart({
2496
- value: this[key],
2497
- part: key,
2498
- locale,
2499
- numberingSystem,
2500
- });
2501
- }
2502
- let emit = false;
2503
- let newValue;
2504
- if (this.hour && this.minute) {
2505
- newValue = `${this.hour}:${this.minute}`;
2506
- if (this.showSecond) {
2507
- newValue = `${newValue}:${this.second ?? "00"}`;
2508
- if (this.showFractionalSecond && this.fractionalSecond) {
2509
- newValue = `${newValue}.${this.fractionalSecond}`;
2510
- }
2511
- }
2512
- }
2513
- else {
2514
- newValue = null;
2515
- }
2516
- if (this.value !== newValue) {
2517
- emit = true;
2518
- }
2519
- this.value = newValue;
2520
- this.localizedMeridiem = this.value
2521
- ? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
2522
- ?.localizedMeridiem || null
2523
- : localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
2524
- if (emit) {
2525
- this.calciteInternalTimePickerChange.emit();
2526
- }
2527
- };
2528
- this.scale = "m";
2529
- this.step = 60;
2530
- this.numberingSystem = undefined;
2531
- this.value = null;
2532
- this.messages = undefined;
2533
- this.messageOverrides = undefined;
2534
- this.effectiveLocale = "";
2535
- this.fractionalSecond = undefined;
2536
- this.hour = undefined;
2537
- this.hourCycle = undefined;
2538
- this.localizedDecimalSeparator = ".";
2539
- this.localizedHour = undefined;
2540
- this.localizedHourSuffix = undefined;
2541
- this.localizedMeridiem = undefined;
2542
- this.localizedFractionalSecond = undefined;
2543
- this.localizedMinute = undefined;
2544
- this.localizedMinuteSuffix = undefined;
2545
- this.localizedSecond = undefined;
2546
- this.localizedSecondSuffix = undefined;
2547
- this.meridiem = undefined;
2548
- this.minute = undefined;
2549
- this.second = undefined;
2550
- this.showFractionalSecond = undefined;
2551
- this.showSecond = undefined;
2552
- this.defaultMessages = undefined;
2553
- }
2554
- stepChange() {
2555
- this.toggleSecond();
2556
- }
2557
- valueWatcher(newValue) {
2558
- this.setValue(newValue);
2559
- }
2560
- onMessagesChange() {
2561
- /* wired up by t9n util */
2562
- }
2563
- effectiveLocaleWatcher() {
2564
- this.updateLocale();
2565
- }
2566
- //--------------------------------------------------------------------------
2567
- //
2568
- // Event Listeners
2569
- //
2570
- //--------------------------------------------------------------------------
2571
- hostBlurHandler() {
2572
- this.calciteInternalTimePickerBlur.emit();
2573
- }
2574
- hostFocusHandler() {
2575
- this.calciteInternalTimePickerFocus.emit();
2576
- }
2577
- keyDownHandler(event) {
2578
- const { defaultPrevented, key } = event;
2579
- if (defaultPrevented) {
2580
- return;
2581
- }
2582
- switch (this.activeEl) {
2583
- case this.hourEl:
2584
- if (key === "ArrowRight") {
2585
- this.focusPart("minute");
2586
- event.preventDefault();
2587
- }
2588
- break;
2589
- case this.minuteEl:
2590
- switch (key) {
2591
- case "ArrowLeft":
2592
- this.focusPart("hour");
2593
- event.preventDefault();
2594
- break;
2595
- case "ArrowRight":
2596
- if (this.step !== 60) {
2597
- this.focusPart("second");
2598
- event.preventDefault();
2599
- }
2600
- else if (this.hourCycle === "12") {
2601
- this.focusPart("meridiem");
2602
- event.preventDefault();
2603
- }
2604
- break;
2605
- }
2606
- break;
2607
- case this.secondEl:
2608
- switch (key) {
2609
- case "ArrowLeft":
2610
- this.focusPart("minute");
2611
- event.preventDefault();
2612
- break;
2613
- case "ArrowRight":
2614
- if (this.showFractionalSecond) {
2615
- this.focusPart("fractionalSecond");
2616
- }
2617
- else if (this.hourCycle === "12") {
2618
- this.focusPart("meridiem");
2619
- event.preventDefault();
2620
- }
2621
- break;
2622
- }
2623
- break;
2624
- case this.fractionalSecondEl:
2625
- switch (key) {
2626
- case "ArrowLeft":
2627
- this.focusPart("second");
2628
- event.preventDefault();
2629
- break;
2630
- case "ArrowRight":
2631
- if (this.hourCycle === "12") {
2632
- this.focusPart("meridiem");
2633
- event.preventDefault();
2634
- }
2635
- break;
2636
- }
2637
- break;
2638
- case this.meridiemEl:
2639
- switch (key) {
2640
- case "ArrowLeft":
2641
- if (this.showFractionalSecond) {
2642
- this.focusPart("fractionalSecond");
2643
- }
2644
- else if (this.step !== 60) {
2645
- this.focusPart("second");
2646
- event.preventDefault();
2647
- }
2648
- else {
2649
- this.focusPart("minute");
2650
- event.preventDefault();
2651
- }
2652
- break;
2653
- }
2654
- break;
2655
- }
2656
- }
2657
- //--------------------------------------------------------------------------
2658
- //
2659
- // Public Methods
2660
- //
2661
- //--------------------------------------------------------------------------
2662
- /**
2663
- * Sets focus on the component's first focusable element.
2664
- */
2665
- async setFocus() {
2666
- await componentFocusable(this);
2667
- this.el?.focus();
2668
- }
2669
- // --------------------------------------------------------------------------
2670
- //
2671
- // Private Methods
2672
- //
2673
- // --------------------------------------------------------------------------
2674
- async focusPart(target) {
2675
- await componentFocusable(this);
2676
- this[`${target || "hour"}El`]?.focus();
2677
- }
2678
- toggleSecond() {
2679
- this.showSecond = this.step < 60;
2680
- this.showFractionalSecond = decimalPlaces(this.step) > 0;
2681
- }
2682
- getMeridiemOrder(formatParts) {
2683
- const locale = this.effectiveLocale;
2684
- const isRTLKind = locale === "ar" || locale === "he";
2685
- if (formatParts && !isRTLKind) {
2686
- const index = formatParts.findIndex((parts) => {
2687
- return parts.value === this.localizedMeridiem;
2688
- });
2689
- return index;
2690
- }
2691
- return 0;
2692
- }
2693
- updateLocale() {
2694
- updateMessages(this, this.effectiveLocale);
2695
- this.hourCycle = getLocaleHourCycle(this.effectiveLocale, this.numberingSystem);
2696
- this.localizedDecimalSeparator = getLocalizedDecimalSeparator(this.effectiveLocale, this.numberingSystem);
2697
- this.setValue(this.sanitizeValue(this.value));
2698
- }
2699
- // --------------------------------------------------------------------------
2700
- //
2701
- // Lifecycle
2702
- //
2703
- // --------------------------------------------------------------------------
2704
- connectedCallback() {
2705
- connectLocalized(this);
2706
- this.updateLocale();
2707
- connectMessages(this);
2708
- this.toggleSecond();
2709
- this.meridiemOrder = this.getMeridiemOrder(getTimeParts({
2710
- value: "0:00:00",
2711
- locale: this.effectiveLocale,
2712
- numberingSystem: this.numberingSystem,
2713
- }));
2714
- }
2715
- async componentWillLoad() {
2716
- setUpLoadableComponent(this);
2717
- await setUpMessages(this);
2718
- }
2719
- componentDidLoad() {
2720
- setComponentLoaded(this);
2721
- }
2722
- disconnectedCallback() {
2723
- disconnectLocalized(this);
2724
- disconnectMessages(this);
2725
- }
2726
- // --------------------------------------------------------------------------
2727
- //
2728
- // Render Methods
2729
- //
2730
- // --------------------------------------------------------------------------
2731
- render() {
2732
- const hourIsNumber = isValidNumber(this.hour);
2733
- const iconScale = this.scale === "s" || this.scale === "m" ? "s" : "m";
2734
- const minuteIsNumber = isValidNumber(this.minute);
2735
- const secondIsNumber = isValidNumber(this.second);
2736
- const fractionalSecondIsNumber = isValidNumber(this.fractionalSecond);
2737
- const showMeridiem = this.hourCycle === "12";
2738
- return (h("div", { class: {
2739
- [CSS.timePicker]: true,
2740
- [CSS.showMeridiem]: showMeridiem,
2741
- [CSS.showSecond]: this.showSecond,
2742
- [CSS[`scale-${this.scale}`]]: true,
2743
- }, dir: "ltr" }, h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.hourUp, class: {
2744
- [CSS.button]: true,
2745
- [CSS.buttonHourUp]: true,
2746
- [CSS.buttonTopLeft]: true,
2747
- }, onClick: this.incrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.hour, "aria-valuemax": "23", "aria-valuemin": "1", "aria-valuenow": (hourIsNumber && parseInt(this.hour)) || "0", "aria-valuetext": this.hour, class: {
2748
- [CSS.input]: true,
2749
- [CSS.hour]: true,
2750
- }, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
2751
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2752
- ref: this.setHourEl }, this.localizedHour || "--"), h("span", { "aria-label": this.messages.hourDown, class: {
2753
- [CSS.button]: true,
2754
- [CSS.buttonHourDown]: true,
2755
- [CSS.buttonBottomLeft]: true,
2756
- }, onClick: this.decrementHour, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), h("span", { class: CSS.delimiter }, this.localizedHourSuffix), h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.minuteUp, class: {
2757
- [CSS.button]: true,
2758
- [CSS.buttonMinuteUp]: true,
2759
- }, onClick: this.incrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.minute, "aria-valuemax": "12", "aria-valuemin": "1", "aria-valuenow": (minuteIsNumber && parseInt(this.minute)) || "0", "aria-valuetext": this.minute, class: {
2760
- [CSS.input]: true,
2761
- [CSS.minute]: true,
2762
- }, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
2763
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2764
- ref: this.setMinuteEl }, this.localizedMinute || "--"), h("span", { "aria-label": this.messages.minuteDown, class: {
2765
- [CSS.button]: true,
2766
- [CSS.buttonMinuteDown]: true,
2767
- }, onClick: this.decrementMinute, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))), this.showSecond && h("span", { class: CSS.delimiter }, this.localizedMinuteSuffix), this.showSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.secondUp, class: {
2768
- [CSS.button]: true,
2769
- [CSS.buttonSecondUp]: true,
2770
- }, onClick: this.incrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.second, "aria-valuemax": "59", "aria-valuemin": "0", "aria-valuenow": (secondIsNumber && parseInt(this.second)) || "0", "aria-valuetext": this.second, class: {
2771
- [CSS.input]: true,
2772
- [CSS.second]: true,
2773
- }, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
2774
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2775
- ref: this.setSecondEl }, this.localizedSecond || "--"), h("span", { "aria-label": this.messages.secondDown, class: {
2776
- [CSS.button]: true,
2777
- [CSS.buttonSecondDown]: true,
2778
- }, onClick: this.decrementSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.showFractionalSecond && (h("span", { class: CSS.delimiter }, this.localizedDecimalSeparator)), this.showFractionalSecond && (h("div", { class: CSS.column, role: "group" }, h("span", { "aria-label": this.messages.fractionalSecondUp, class: {
2779
- [CSS.button]: true,
2780
- [CSS.buttonFractionalSecondUp]: true,
2781
- }, onClick: this.incrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.fractionalSecond, "aria-valuemax": "999", "aria-valuemin": "1", "aria-valuenow": (fractionalSecondIsNumber && parseInt(this.fractionalSecond)) || "0", "aria-valuetext": this.localizedFractionalSecond, class: {
2782
- [CSS.input]: true,
2783
- [CSS.fractionalSecond]: true,
2784
- }, onFocus: this.focusHandler, onKeyDown: this.fractionalSecondKeyDownHandler, role: "spinbutton", tabIndex: 0,
2785
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2786
- ref: this.setFractionalSecondEl }, this.localizedFractionalSecond || "--"), h("span", { "aria-label": this.messages.fractionalSecondDown, class: {
2787
- [CSS.button]: true,
2788
- [CSS.buttonFractionalSecondDown]: true,
2789
- }, onClick: this.decrementFractionalSecond, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale })))), this.localizedSecondSuffix && (h("span", { class: CSS.delimiter }, this.localizedSecondSuffix)), showMeridiem && (h("div", { class: {
2790
- [CSS.column]: true,
2791
- [CSS.meridiemStart]: this.meridiemOrder === 0,
2792
- }, role: "group" }, h("span", { "aria-label": this.messages.meridiemUp, class: {
2793
- [CSS.button]: true,
2794
- [CSS.buttonMeridiemUp]: true,
2795
- [CSS.buttonTopRight]: true,
2796
- }, onClick: this.incrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-up", scale: iconScale })), h("span", { "aria-label": this.messages.meridiem, "aria-valuemax": "2", "aria-valuemin": "1", "aria-valuenow": (this.meridiem === "PM" && "2") || "1", "aria-valuetext": this.meridiem, class: {
2797
- [CSS.input]: true,
2798
- [CSS.meridiem]: true,
2799
- }, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
2800
- // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
2801
- ref: this.setMeridiemEl }, this.localizedMeridiem || "--"), h("span", { "aria-label": this.messages.meridiemDown, class: {
2802
- [CSS.button]: true,
2803
- [CSS.buttonMeridiemDown]: true,
2804
- [CSS.buttonBottomRight]: true,
2805
- }, onClick: this.decrementMeridiem, role: "button" }, h("calcite-icon", { icon: "chevron-down", scale: iconScale }))))));
2806
- }
2807
- static get delegatesFocus() { return true; }
2808
- static get assetsDirs() { return ["assets"]; }
2809
- get el() { return getElement(this); }
2810
- static get watchers() { return {
2811
- "step": ["stepChange"],
2812
- "value": ["valueWatcher"],
2813
- "messageOverrides": ["onMessagesChange"],
2814
- "effectiveLocale": ["effectiveLocaleWatcher"]
2815
- }; }
2816
- };
2817
- TimePicker.style = timePickerCss;
2818
-
2819
- export { InputTimePicker as I, TimePicker as T, dayjs as d };