@luzmo/lucero 1.0.1-alpha.9 → 1.0.2

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 (487) hide show
  1. package/README.md +74 -9
  2. package/components/accordion/index.cjs +1 -26
  3. package/components/accordion/index.js +8 -164
  4. package/components/accordion-BHBIfsLU.cjs +43 -0
  5. package/components/accordion-DC7cjb1c.js +152 -0
  6. package/components/action-bar/index.cjs +1 -22
  7. package/components/action-bar/index.js +8 -90
  8. package/components/action-bar-BMHZ4e_p.cjs +39 -0
  9. package/components/action-bar-CmLjsljR.js +92 -0
  10. package/components/action-button/index.cjs +1 -7
  11. package/components/action-button/index.js +8 -144
  12. package/components/action-button-B4_UEJle.js +121 -0
  13. package/components/action-button-G0PWSrZo.cjs +24 -0
  14. package/components/action-group/index.cjs +1 -1
  15. package/components/action-group/index.js +11 -12
  16. package/components/action-group-CH8FTW0i.cjs +20 -0
  17. package/components/action-group-DYKpp-mz.js +211 -0
  18. package/components/action-menu/index.cjs +1 -39
  19. package/components/action-menu/index.js +8 -109
  20. package/components/action-menu-CJyB0mmO.cjs +56 -0
  21. package/components/action-menu-FiS1vhW7.js +105 -0
  22. package/components/avatar/avatar.d.ts +5 -0
  23. package/components/avatar/index.cjs +1 -7
  24. package/components/avatar/index.js +8 -64
  25. package/components/avatar-CyY_ZSD0.js +65 -0
  26. package/components/avatar-PulwjkMI.cjs +24 -0
  27. package/components/badge/badge.d.ts +35 -0
  28. package/components/{random-id-CqvckpWe.cjs → badge/index.cjs} +1 -1
  29. package/components/badge/index.d.ts +8 -0
  30. package/components/badge/index.js +25 -0
  31. package/components/badge-D1Ry32wi.cjs +23 -0
  32. package/components/badge-D6p2hPj8.js +94 -0
  33. package/components/button/button-base.d.ts +16 -0
  34. package/components/button/button.d.ts +38 -2
  35. package/components/button/index.cjs +1 -3
  36. package/components/button/index.js +9 -110
  37. package/components/button-CRNRP8P0.js +115 -0
  38. package/components/button-D3ZTogni.cjs +20 -0
  39. package/components/button-base-BYV3Lp3P.cjs +25 -0
  40. package/components/button-base-SHgEJgk2.js +123 -0
  41. package/components/button-group/index.cjs +1 -1
  42. package/components/button-group/index.js +8 -42
  43. package/components/button-group-CJVpgiLq.js +46 -0
  44. package/components/button-group-rEK_YaF3.cjs +18 -0
  45. package/components/calendar/calendar.d.ts +67 -0
  46. package/components/calendar/index.cjs +1 -1
  47. package/components/calendar/index.d.ts +1 -0
  48. package/components/calendar/index.js +8 -11
  49. package/components/calendar-CKr5T_zV.js +619 -0
  50. package/components/calendar-WRhzTEyZ.cjs +142 -0
  51. package/components/chat-message/chat-message.d.ts +139 -0
  52. package/components/{random-id-ByCz1xaq.js → chat-message/index.cjs} +1 -9
  53. package/components/chat-message/index.d.ts +8 -0
  54. package/components/chat-message/index.js +25 -0
  55. package/components/chat-message-CNE-mGuP.cjs +149 -0
  56. package/components/chat-message-DJgocVNj.js +2295 -0
  57. package/components/chat-message-group/chat-message-group.d.ts +50 -0
  58. package/components/{when-CDZyJPvd.cjs → chat-message-group/index.cjs} +1 -5
  59. package/components/chat-message-group/index.d.ts +7 -0
  60. package/components/chat-message-group/index.js +25 -0
  61. package/components/chat-message-group-B4U2MzHx.js +100 -0
  62. package/components/chat-message-group-COmhCN-R.cjs +24 -0
  63. package/components/checkbox/checkbox.d.ts +7 -0
  64. package/components/checkbox/index.cjs +1 -8
  65. package/components/checkbox/index.js +8 -79
  66. package/components/checkbox-CPS-tR_i.js +89 -0
  67. package/components/checkbox-DFwDrIdY.cjs +25 -0
  68. package/components/checkbox-mixin-C5sLMo5L.js +67 -0
  69. package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-D4HeLrMj.cjs} +3 -3
  70. package/components/chunk-D-qHiVGv.cjs +18 -0
  71. package/components/close-button-BeXYep8K.js +42 -0
  72. package/components/close-button-BzapEpcF.cjs +18 -0
  73. package/components/color-area/index.cjs +1 -63
  74. package/components/color-area/index.js +8 -364
  75. package/components/color-area-DA3ps2-c.cjs +80 -0
  76. package/components/color-area-DViRjuKo.js +300 -0
  77. package/components/color-controller-DueaXfnX.cjs +18 -0
  78. package/components/color-controller-G2_v2xSl.js +247 -0
  79. package/components/color-field/color-field.d.ts +1 -0
  80. package/components/color-field/index.cjs +1 -6
  81. package/components/color-field/index.js +8 -68
  82. package/components/color-field-CxdIoSq6.js +75 -0
  83. package/components/color-field-D7_7z2A2.cjs +23 -0
  84. package/components/color-handle/index.cjs +1 -7
  85. package/components/color-handle/index.js +8 -56
  86. package/components/color-handle-BOusOFFx.js +62 -0
  87. package/components/color-handle-Cka48yPY.cjs +24 -0
  88. package/components/color-loupe/index.cjs +1 -1
  89. package/components/color-loupe/index.js +11 -12
  90. package/components/color-loupe-DMk8uWZW.cjs +56 -0
  91. package/components/color-loupe-bEzi2P0y.js +76 -0
  92. package/components/color-menu/index.cjs +1 -69
  93. package/components/color-menu/index.js +8 -189
  94. package/components/color-menu-DwbTxeqv.cjs +89 -0
  95. package/components/color-menu-Lxc9PTzl.js +183 -0
  96. package/components/color-palette/index.cjs +1 -1
  97. package/components/color-palette/index.js +8 -71
  98. package/components/color-palette-349EkPMg.cjs +18 -0
  99. package/components/color-palette-BAdaNySC.js +80 -0
  100. package/components/color-palette-group/index.cjs +1 -11
  101. package/components/color-palette-group/index.js +8 -188
  102. package/components/color-palette-group-BvP09zmT.cjs +28 -0
  103. package/components/color-palette-group-D8Mavsd2.js +163 -0
  104. package/components/color-picker/color-picker.d.ts +3 -3
  105. package/components/color-picker/index.cjs +1 -31
  106. package/components/color-picker/index.js +8 -128
  107. package/components/color-picker-CSWiU-X5.cjs +48 -0
  108. package/components/color-picker-DqjfTvYf.js +126 -0
  109. package/components/color-slider/index.cjs +1 -1
  110. package/components/color-slider/index.js +8 -11
  111. package/components/color-slider-DxjJ72ue.cjs +57 -0
  112. package/components/color-slider-ihAIFt5p.js +421 -0
  113. package/components/{condition-attribute-with-id-Dv4lSRbe.js → condition-attribute-with-id-DauPaLSS.cjs} +1 -14
  114. package/components/{query-assigned-nodes-C76XVPWY.js → condition-attribute-with-id-Duo51HZ7.js} +10 -18
  115. package/components/date-range-picker/date-range-picker.d.ts +184 -0
  116. package/components/{if-defined-C9YGdo33.cjs → date-range-picker/index.cjs} +1 -5
  117. package/components/date-range-picker/index.d.ts +8 -0
  118. package/components/date-range-picker/index.js +25 -0
  119. package/components/date-range-picker/types.d.ts +16 -0
  120. package/components/date-range-picker-BdRQep--.js +626 -0
  121. package/components/date-range-picker-CgitOe0i.cjs +187 -0
  122. package/components/date-time-picker/date-time-picker.d.ts +3 -3
  123. package/components/date-time-picker/index.cjs +1 -88
  124. package/components/date-time-picker/index.d.ts +1 -0
  125. package/components/date-time-picker/index.js +8 -1109
  126. package/components/date-time-picker/{types.d.ts → shared/types.d.ts} +1 -1
  127. package/components/date-time-picker-Bz8XwSOR.cjs +105 -0
  128. package/components/date-time-picker-Ct_ln8Ot.js +470 -0
  129. package/components/decorate-B2wePfNm.cjs +18 -0
  130. package/components/decorate-aGxJUVxg.js +91 -0
  131. package/components/{condition-attribute-with-id-DrQYZzFS.cjs → dependency-manger-CHy9t__e.cjs} +1 -1
  132. package/components/dependency-manger-DMrulWcJ.js +40 -0
  133. package/components/divider/index.cjs +1 -1
  134. package/components/divider/index.js +8 -44
  135. package/components/divider-Dn8XqbB6.cjs +18 -0
  136. package/components/divider-cU0lVwOp.js +59 -0
  137. package/components/divider.module-C65RfSUa.js +21 -0
  138. package/components/divider.module-CL60P_z8.cjs +18 -0
  139. package/components/element-resolution-Bs1x89vU.js +80 -0
  140. package/components/element-resolution-C0aiOB0Y.cjs +18 -0
  141. package/components/field-group/index.cjs +1 -1
  142. package/components/field-group/index.js +11 -12
  143. package/components/field-group-C7ROsWq3.js +57 -0
  144. package/components/field-group-OcI5Lgu7.cjs +23 -0
  145. package/components/field-label/index.cjs +1 -1
  146. package/components/field-label/index.js +11 -12
  147. package/components/field-label-BCl6R1uO.cjs +25 -0
  148. package/components/field-label-CtGCEmdp.js +87 -0
  149. package/components/focus-group-BshI1RpM.js +164 -0
  150. package/components/focus-group-SF8Kj7iB.cjs +18 -0
  151. package/components/focus-visible-B0NNezGc.cjs +18 -0
  152. package/components/focus-visible-CrooVCUu.js +58 -0
  153. package/components/focusable-BmS8IzhH.js +117 -0
  154. package/components/focusable-CupEoHmn.cjs +18 -0
  155. package/components/{base-BjTwmyRF.cjs → focusable-selectors-5n5liBn0.cjs} +1 -5
  156. package/components/{focusable-selectors-BgFlyFcY.cjs → focusable-selectors-Bg60_Kra.js} +13 -1
  157. package/components/{state-Deh-vKYE.js → get-label-from-slot-5vVnfSgN.js} +7 -11
  158. package/components/get-label-from-slot-LO_DZP60.cjs +18 -0
  159. package/components/icon/index.cjs +1 -1
  160. package/components/icon/index.js +8 -71
  161. package/components/icon-B7hKwn_q.cjs +18 -0
  162. package/components/icon-CwBAE1eU.js +59 -0
  163. package/components/index.cjs +1 -1
  164. package/components/index.js +78 -176
  165. package/components/infield-button/index.cjs +1 -5
  166. package/components/infield-button/index.js +8 -47
  167. package/components/infield-button-B2z0dLzq.js +54 -0
  168. package/components/infield-button-BVKotWqr.cjs +22 -0
  169. package/components/label/index.cjs +1 -1
  170. package/components/label/index.js +8 -34
  171. package/components/label-ClJE2esm.js +41 -0
  172. package/components/label-CqolZbJo.cjs +18 -0
  173. package/components/language-resolution-BYemISJC.cjs +18 -0
  174. package/components/language-resolution-BpfGTC29.js +43 -0
  175. package/components/like-anchor-BZJXts_H.cjs +32 -0
  176. package/components/like-anchor-DeOXX-MX.js +46 -0
  177. package/components/manage-help-text-CF0xBh0F.js +81 -0
  178. package/components/manage-help-text-D9VbYRf_.cjs +30 -0
  179. package/components/menu/index.cjs +1 -66
  180. package/components/menu/index.js +8 -879
  181. package/components/menu/menu-item.d.ts +8 -1
  182. package/components/menu/menu.d.ts +1 -0
  183. package/components/menu--ukVtSq7.js +749 -0
  184. package/components/menu-DAA51y45.cjs +108 -0
  185. package/components/multi-language-field/index.cjs +1 -22
  186. package/components/multi-language-field/index.js +8 -131
  187. package/components/multi-language-field/multi-language-field.d.ts +1 -0
  188. package/components/multi-language-field-BzY75rOY.js +122 -0
  189. package/components/multi-language-field-DmoMyCBH.cjs +40 -0
  190. package/components/number-field/index.cjs +1 -40
  191. package/components/number-field/index.js +8 -453
  192. package/components/number-field/number-field.d.ts +145 -0
  193. package/components/number-field-B4RSFeTR.cjs +57 -0
  194. package/components/number-field-C66dTUMM.js +402 -0
  195. package/components/observe-slot-presence-BCqd3VSd.js +55 -0
  196. package/components/observe-slot-presence-Dx8hzNzK.cjs +18 -0
  197. package/components/observe-slot-text-BhTcGuHY.cjs +18 -0
  198. package/components/observe-slot-text-Ddf1OC6F.js +71 -0
  199. package/components/options/index.cjs +1 -84
  200. package/components/options/index.js +8 -1160
  201. package/components/options/option.d.ts +16 -0
  202. package/components/options/options.d.ts +44 -4
  203. package/components/options-BPNAm4MW.cjs +101 -0
  204. package/components/options-Dz-ejkxF.js +484 -0
  205. package/components/overlay/index.cjs +1 -56
  206. package/components/overlay/index.js +10 -329
  207. package/components/overlay/overlay.d.ts +12 -1
  208. package/components/overlay/virtual-trigger.d.ts +3 -2
  209. package/components/overlay-8tN0KPbR.js +1115 -0
  210. package/components/overlay-CMd2Dnpv.cjs +73 -0
  211. package/components/overlay-CwR_36OV.js +227 -0
  212. package/components/overlay-DdrfkOry.cjs +47 -0
  213. package/components/pending-state-DFcNf5rd.js +50 -0
  214. package/components/{pending-state-CaH1si5b.cjs → pending-state-DIeF18qg.cjs} +4 -3
  215. package/components/picker/index.cjs +1 -1
  216. package/components/picker/index.js +11 -15
  217. package/components/picker/picker.d.ts +1 -0
  218. package/components/picker-C4RVOxLq.cjs +123 -0
  219. package/components/picker-agQW7YNo.js +394 -0
  220. package/components/picker-button/index.cjs +1 -20
  221. package/components/picker-button/index.js +8 -70
  222. package/components/picker-button-BLbeT3Yu.js +72 -0
  223. package/components/picker-button-D34YXyXp.cjs +37 -0
  224. package/components/platform-B7Sk7Qon.cjs +18 -0
  225. package/components/{platform-BM-uMWpX.js → platform-D4V_cOJF.js} +29 -38
  226. package/components/popover/index.cjs +1 -1
  227. package/components/popover/index.js +11 -12
  228. package/components/popover-DyC9xGhX.js +58 -0
  229. package/components/popover-dgL04x6P.cjs +30 -0
  230. package/components/progress-bar/index.cjs +18 -0
  231. package/components/progress-bar/index.d.ts +7 -0
  232. package/components/progress-bar/index.js +25 -0
  233. package/components/progress-bar/progress-bar.d.ts +34 -0
  234. package/components/progress-bar-BR28tISC.cjs +31 -0
  235. package/components/progress-bar-DHgFRml1.js +119 -0
  236. package/components/progress-circle/index.cjs +1 -1
  237. package/components/progress-circle/index.js +11 -12
  238. package/components/progress-circle-Cg_ua9Ff.js +78 -0
  239. package/components/progress-circle-DuzwUiGN.cjs +33 -0
  240. package/components/progress-steps/index.cjs +18 -0
  241. package/components/progress-steps/index.d.ts +8 -0
  242. package/components/progress-steps/index.js +25 -0
  243. package/components/progress-steps/progress-steps.d.ts +148 -0
  244. package/components/progress-steps/types.d.ts +32 -0
  245. package/components/progress-steps-Da8aZWx3.js +262 -0
  246. package/components/progress-steps-WriXaZpE.cjs +96 -0
  247. package/components/prompt-box/controllers/attachments-controller.d.ts +35 -0
  248. package/components/prompt-box/controllers/recording-controller.d.ts +23 -0
  249. package/components/prompt-box/controllers/rich-input-controller.d.ts +89 -0
  250. package/components/prompt-box/controllers/trigger-menu-controller.d.ts +107 -0
  251. package/components/prompt-box/index.cjs +18 -0
  252. package/components/prompt-box/index.d.ts +9 -0
  253. package/components/prompt-box/index.js +25 -0
  254. package/components/prompt-box/keyboard-focus-tracker.d.ts +3 -0
  255. package/components/prompt-box/prompt-box-templates.d.ts +10 -0
  256. package/components/prompt-box/prompt-box.d.ts +194 -0
  257. package/components/prompt-box/range-from-point.d.ts +21 -0
  258. package/components/prompt-box/selection-utils.d.ts +39 -0
  259. package/components/prompt-box/slot-state-sync.d.ts +10 -0
  260. package/components/prompt-box/types.d.ts +112 -0
  261. package/components/prompt-box-BEloQP-R.js +1506 -0
  262. package/components/prompt-box-DV8Smf3Q.cjs +282 -0
  263. package/components/radio/index.cjs +1 -5
  264. package/components/radio/index.js +8 -174
  265. package/components/radio-BzEPGUmQ.js +141 -0
  266. package/components/radio-d-2GUbYE.cjs +22 -0
  267. package/components/{if-defined-DOaE2coe.js → random-id-B51lUxUB.cjs} +1 -10
  268. package/components/{when-CDK1Tt5Y.js → random-id-Dd4boCPV.js} +5 -10
  269. package/components/{focusable-selectors-B4YgbghQ.js → rolldown-runtime-CAFD8bLK.js} +10 -13
  270. package/components/roving-tabindex-B7x5ePUB.cjs +18 -0
  271. package/components/roving-tabindex-BP6mQbXf.js +62 -0
  272. package/components/{directive-oAbCiebi.js → scaled-indicator-BcO2BOsf.js} +24 -26
  273. package/components/scaled-indicator-p8-3k2cJ.cjs +26 -0
  274. package/components/search/index.cjs +1 -28
  275. package/components/search/index.js +8 -114
  276. package/components/search-CmLfd2dF.js +94 -0
  277. package/components/search-DRTD4xsE.cjs +45 -0
  278. package/components/segments-factory-CHo9oQw7.cjs +18 -0
  279. package/components/segments-factory-D0IveW-q.js +417 -0
  280. package/components/select/index.cjs +1 -140
  281. package/components/select/index.js +8 -602
  282. package/components/select/select.d.ts +26 -17
  283. package/components/select--vrG59GQ.cjs +158 -0
  284. package/components/select-DPeI0jP9.js +518 -0
  285. package/components/{language-resolution-8yZa5r_P.js → sized-mixin-DaBoZkVS.js} +38 -35
  286. package/components/sized-mixin-StFA4y0J.cjs +18 -0
  287. package/components/skeleton-loader/index.cjs +18 -0
  288. package/components/skeleton-loader/index.d.ts +7 -0
  289. package/components/skeleton-loader/index.js +25 -0
  290. package/components/skeleton-loader/skeleton-loader.d.ts +22 -0
  291. package/components/skeleton-loader-B8NgELvX.cjs +18 -0
  292. package/components/skeleton-loader-C1XG3m_u.js +46 -0
  293. package/components/slider/index.cjs +1 -1
  294. package/components/slider/index.js +8 -1141
  295. package/components/slider/slider.d.ts +2 -0
  296. package/components/slider-3QBnq0S8.js +96 -0
  297. package/components/slider-uXRKcOz5.cjs +18 -0
  298. package/components/slottable-request-event-DZ2Z_BLk.js +29 -0
  299. package/components/{base-D76d76ww.js → slottable-request-event-gAcEQan2.cjs} +1 -9
  300. package/components/status-light/index.cjs +18 -0
  301. package/components/status-light/index.d.ts +8 -0
  302. package/components/status-light/index.js +25 -0
  303. package/components/status-light/status-light.d.ts +26 -0
  304. package/components/status-light-Bf8jGu4G.js +85 -0
  305. package/components/status-light-CBaAFRUc.cjs +21 -0
  306. package/components/strategies-DhxJGIZT.js +137 -0
  307. package/components/strategies-kuvLVIKO.cjs +18 -0
  308. package/components/streaming-listener-2NcP7ys7.js +77 -0
  309. package/components/streaming-listener-BnDW38lt.cjs +18 -0
  310. package/components/suggestion/index.cjs +18 -0
  311. package/components/suggestion/index.d.ts +8 -0
  312. package/components/suggestion/index.js +25 -0
  313. package/components/suggestion/suggestion.d.ts +45 -0
  314. package/components/suggestion-CEJiW_7y.cjs +23 -0
  315. package/components/suggestion-DK5gxxDI.js +76 -0
  316. package/components/swatch/index.cjs +1 -32
  317. package/components/swatch/index.js +8 -325
  318. package/components/swatch-BLuV-hlF.js +271 -0
  319. package/components/swatch-G70JUe6I.cjs +49 -0
  320. package/components/switch/index.cjs +1 -5
  321. package/components/switch/index.js +8 -56
  322. package/components/switch-BdE-hI69.js +60 -0
  323. package/components/switch-KzkrF-ob.cjs +22 -0
  324. package/components/tabs/index.cjs +1 -76
  325. package/components/tabs/index.js +8 -619
  326. package/components/tabs/tabs.d.ts +3 -9
  327. package/components/tabs-BfTgzdid.cjs +76 -0
  328. package/components/tabs-BthdwrmW.js +434 -0
  329. package/components/tags/index.cjs +1 -15
  330. package/components/tags/index.d.ts +1 -0
  331. package/components/tags/index.js +8 -156
  332. package/components/tags/tag.d.ts +28 -0
  333. package/components/tags/tags.d.ts +3 -1
  334. package/components/tags-B89eYzsB.js +203 -0
  335. package/components/tags-OBPAvjdV.cjs +47 -0
  336. package/components/text-field/index.cjs +1 -4
  337. package/components/text-field/index.js +9 -45
  338. package/components/text-field/text-field.d.ts +27 -0
  339. package/components/text-field-A4Obzs4l.cjs +21 -0
  340. package/components/text-field-BoGAvXvh.js +44 -0
  341. package/components/text-field-Cs8HYRYL.js +256 -0
  342. package/components/text-field-FJr8ZUhI.cjs +81 -0
  343. package/components/text-field.module-Btsve-VN.js +21 -0
  344. package/components/text-field.module-D5oDP7MB.cjs +18 -0
  345. package/components/toast/index.cjs +1 -34
  346. package/components/toast/index.js +8 -136
  347. package/components/toast-CJSQUzoW.cjs +51 -0
  348. package/components/toast-DKwphMrp.js +133 -0
  349. package/components/tooltip/index.cjs +1 -28
  350. package/components/tooltip/index.js +8 -205
  351. package/components/tooltip/tooltip.d.ts +12 -1
  352. package/components/tooltip-C3O4AQ1l.js +192 -0
  353. package/components/tooltip-DY1trLtg.cjs +45 -0
  354. package/components/top-nav/index.cjs +18 -0
  355. package/components/top-nav/index.d.ts +10 -0
  356. package/components/top-nav/index.js +25 -0
  357. package/components/top-nav/top-nav-item.d.ts +26 -0
  358. package/components/top-nav/top-nav.d.ts +45 -0
  359. package/components/top-nav-DVQ5ASMa.js +203 -0
  360. package/components/top-nav-DlTojz8S.cjs +45 -0
  361. package/components/utils.cjs +1 -1
  362. package/components/utils.js +8 -25
  363. package/components/voice-recorder-477xPHRU.js +134 -0
  364. package/components/voice-recorder-BUtmSvPO.cjs +18 -0
  365. package/custom-elements.json +1 -1
  366. package/index.d.ts +11 -1
  367. package/package.json +134 -5
  368. package/utils/button-interaction-controllers/interaction-controller.d.ts +1 -1
  369. package/utils/index.d.ts +1 -0
  370. package/utils/scaled-indicator.d.ts +8 -0
  371. package/utils/voice-recorder.d.ts +121 -0
  372. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  373. package/components/NumberFormatter-DgOUVrge.js +0 -136
  374. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  375. package/components/NumberParser-ci9J5EKv.js +0 -173
  376. package/components/action-group-DBImibFn.js +0 -258
  377. package/components/action-group-DJGMcRHb.cjs +0 -20
  378. package/components/async-directive-BX1T1e1_.cjs +0 -22
  379. package/components/async-directive-BfcqVjDp.js +0 -82
  380. package/components/base-CBCg3yyw.cjs +0 -40
  381. package/components/base-WsynuqaS.js +0 -677
  382. package/components/button-base-DbkDzb71.js +0 -144
  383. package/components/button-base-XgPLmwP-.cjs +0 -25
  384. package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
  385. package/components/class-map-Di1D_rCm.cjs +0 -22
  386. package/components/class-map-NbVXqBU0.js +0 -51
  387. package/components/clear-button-DQcRdcUa.js +0 -53
  388. package/components/clear-button-OFUFFe7G.cjs +0 -18
  389. package/components/close-button-Cbnb7XXj.cjs +0 -18
  390. package/components/close-button-CqHYZhum.js +0 -51
  391. package/components/color-controller-DTp1juRz.js +0 -3198
  392. package/components/color-controller-_ZwyhvaU.cjs +0 -18
  393. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  394. package/components/color-loupe-CmMsXbjT.js +0 -81
  395. package/components/dependency-manger-C5HCkMMB.cjs +0 -18
  396. package/components/dependency-manger-CEXvGQUV.js +0 -54
  397. package/components/directive-C7oCP5Bh.cjs +0 -22
  398. package/components/directive-helpers-Cm6gitnu.js +0 -62
  399. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  400. package/components/divider.module-DDvBo9zo.cjs +0 -18
  401. package/components/divider.module-DoQWQEIJ.js +0 -21
  402. package/components/element-resolution-BvRLGqIU.cjs +0 -18
  403. package/components/element-resolution-FCUT-wql.js +0 -91
  404. package/components/field-group-DXfBWrkO.js +0 -66
  405. package/components/field-group-DkGst3r5.cjs +0 -23
  406. package/components/field-label-CZ2zzChK.js +0 -106
  407. package/components/field-label-mO1AkUgR.cjs +0 -25
  408. package/components/flow-D-0MTYCm.js +0 -527
  409. package/components/flow-DM3dNAKs.cjs +0 -30
  410. package/components/focus-group-DHeTq18L.js +0 -218
  411. package/components/focus-group-DnxZUBhQ.cjs +0 -18
  412. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  413. package/components/focus-visible-DBlJGoEW.js +0 -74
  414. package/components/focusable-BxtpnzWp.js +0 -153
  415. package/components/focusable-EbipgXRh.cjs +0 -18
  416. package/components/index-BwxgAdzi.cjs +0 -57
  417. package/components/index-Cl54m8Yh.js +0 -1490
  418. package/components/index-HjQa8tew.js +0 -1174
  419. package/components/index-Wq3qZJGh.cjs +0 -113
  420. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  421. package/components/like-anchor-Bvn_vLQ8.js +0 -69
  422. package/components/like-anchor-sod1C1fR.cjs +0 -32
  423. package/components/luzmo-icons-4nDFv1Lq.js +0 -229
  424. package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
  425. package/components/manage-help-text-DhgARkZX.cjs +0 -30
  426. package/components/manage-help-text-syYnjKGL.js +0 -92
  427. package/components/mutation-controller-DH7YOCyj.js +0 -52
  428. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  429. package/components/observe-slot-presence-CmVi0zTc.js +0 -68
  430. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  431. package/components/observe-slot-text-BPfIQQtz.js +0 -87
  432. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  433. package/components/overlay-Cig9r6uU.js +0 -2747
  434. package/components/overlay-KSKMzzkh.cjs +0 -47
  435. package/components/pending-state-DTX7ggyF.js +0 -61
  436. package/components/picker-BfBP7XJN.js +0 -461
  437. package/components/picker-xIphqE6d.cjs +0 -123
  438. package/components/platform-BiXhwqk3.cjs +0 -18
  439. package/components/popover-DjX0aAnY.js +0 -67
  440. package/components/popover-KFfO0IYL.cjs +0 -30
  441. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  442. package/components/progress-circle-DXH9z8-6.js +0 -97
  443. package/components/query-BL-TJj7K.cjs +0 -22
  444. package/components/query-D_KR_GUc.js +0 -51
  445. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  446. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  447. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  448. package/components/roving-tabindex-By_fCy_e.cjs +0 -18
  449. package/components/roving-tabindex-DOg4z6ZU.js +0 -66
  450. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  451. package/components/sized-mixin-D4ACoVUr.js +0 -63
  452. package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
  453. package/components/slottable-request-event-DggLA4Rx.js +0 -31
  454. package/components/state-D8JEtYqe.cjs +0 -22
  455. package/components/strategies-9indNIEb.js +0 -195
  456. package/components/strategies-BACP6MhR.cjs +0 -18
  457. package/components/streaming-listener-B00MvALi.cjs +0 -18
  458. package/components/streaming-listener-CP-JE6Fa.js +0 -91
  459. package/components/style-map-CeilmSgs.cjs +0 -22
  460. package/components/style-map-IgqIKvlE.js +0 -53
  461. package/components/text-field-BTkr42k4.cjs +0 -85
  462. package/components/text-field-ol9Ed5lQ.js +0 -314
  463. package/components/text-field.module-ColtFhf_.js +0 -21
  464. package/components/text-field.module-p_VF2tC_.cjs +0 -18
  465. package/components/unit-input/index.cjs +0 -43
  466. package/components/unit-input/index.d.ts +0 -7
  467. package/components/unit-input/index.js +0 -183
  468. package/components/unit-input/unit-input.d.ts +0 -33
  469. /package/components/date-time-picker/{helpers.d.ts → shared/helpers.d.ts} +0 -0
  470. /package/components/date-time-picker/{segments → shared/segments}/date/day-segment.d.ts +0 -0
  471. /package/components/date-time-picker/{segments → shared/segments}/date/month-segment.d.ts +0 -0
  472. /package/components/date-time-picker/{segments → shared/segments}/date/year-segment.d.ts +0 -0
  473. /package/components/date-time-picker/{segments → shared/segments}/date-time-segments.d.ts +0 -0
  474. /package/components/date-time-picker/{segments → shared/segments}/editable-segment.d.ts +0 -0
  475. /package/components/date-time-picker/{segments → shared/segments}/literal-segment.d.ts +0 -0
  476. /package/components/date-time-picker/{segments → shared/segments}/modifiers/clear-modifier.d.ts +0 -0
  477. /package/components/date-time-picker/{segments → shared/segments}/modifiers/decrement-modifier.d.ts +0 -0
  478. /package/components/date-time-picker/{segments → shared/segments}/modifiers/increment-modifier.d.ts +0 -0
  479. /package/components/date-time-picker/{segments → shared/segments}/modifiers/input-modifier.d.ts +0 -0
  480. /package/components/date-time-picker/{segments → shared/segments}/modifiers/segments-modifier.d.ts +0 -0
  481. /package/components/date-time-picker/{segments → shared/segments}/segments-factory.d.ts +0 -0
  482. /package/components/date-time-picker/{segments → shared/segments}/segments-formatter.d.ts +0 -0
  483. /package/components/date-time-picker/{segments → shared/segments}/time/day-period-segment.d.ts +0 -0
  484. /package/components/date-time-picker/{segments → shared/segments}/time/hour-segment.d.ts +0 -0
  485. /package/components/date-time-picker/{segments → shared/segments}/time/millisecond-segment.d.ts +0 -0
  486. /package/components/date-time-picker/{segments → shared/segments}/time/minute-segment.d.ts +0 -0
  487. /package/components/date-time-picker/{segments → shared/segments}/time/second-segment.d.ts +0 -0
@@ -15,1112 +15,11 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { $ as ae, a as F, b as H, c as j, d as G, e as E, f as re, g as S, h as A, i as D, j as C, k as oe, l as ne, m as N } from "../index-Cl54m8Yh.js";
19
- import { $ as se } from "../NumberParser-ci9J5EKv.js";
20
- import { r as Z, x as _, E as U, n as b } from "../base-WsynuqaS.js";
21
- import { r as M } from "../state-Deh-vKYE.js";
22
- import { e as W } from "../query-D_KR_GUc.js";
23
- import { e as le } from "../class-map-NbVXqBU0.js";
24
- import { o as $ } from "../if-defined-DOaE2coe.js";
25
- import { o as ce } from "../style-map-IgqIKvlE.js";
26
- import { n as Y } from "../when-CDK1Tt5Y.js";
27
- import { F as de } from "../focusable-BxtpnzWp.js";
28
- import { S as ue, E as me } from "../sized-mixin-D4ACoVUr.js";
29
- import { $ as he, o as pe } from "../luzmo-icons-4nDFv1Lq.js";
30
- import "../icon/index.js";
31
- import "../overlay/index.js";
32
- import "../picker-button/index.js";
33
- import "../popover/index.js";
34
- import { M as fe } from "../manage-help-text-syYnjKGL.js";
35
- import { $ as K } from "../NumberFormatter-DgOUVrge.js";
36
- import { t as ve } from "../text-field.module-ColtFhf_.js";
37
- const ie = () => {
38
- if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
39
- const n = document.createElement("style");
40
- n.setAttribute("data-luzmo-vars", ""), n.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(n);
41
- }
42
- };
43
- ie();
44
- const o = {
45
- Year: "year",
46
- Month: "month",
47
- Day: "day",
48
- Hour: "hour",
49
- Minute: "minute",
50
- Second: "second",
51
- Millisecond: "fractionalSecond",
52
- DayPeriod: "dayPeriod",
53
- Literal: "literal"
54
- }, ge = {
55
- [o.Year]: "––––",
56
- [o.Month]: "––",
57
- [o.Day]: "––",
58
- [o.Hour]: "––",
59
- [o.Minute]: "––",
60
- [o.Second]: "––",
61
- [o.Millisecond]: "–––",
62
- [o.DayPeriod]: "––"
63
- }, p = {
64
- Day: "day",
65
- Hour: "hour",
66
- Minute: "minute",
67
- Second: "second",
68
- Millisecond: "millisecond"
69
- }, q = 0, V = 12, X = 2e3, ze = 31;
70
- function k(n) {
71
- return typeof n == "number";
72
- }
73
- function P(n) {
74
- return n instanceof ae;
75
- }
76
- function B(n) {
77
- return n instanceof F;
78
- }
79
- function L(n) {
80
- return n instanceof H;
81
- }
82
- function J(n, e) {
83
- return n = n % V + e;
84
- }
85
- function Q(n) {
86
- return n >= V ? V : q;
87
- }
88
- function R(n, e) {
89
- return n.length === e.length && n.every((t, i) => t === e[i]);
90
- }
91
- function ee(n) {
92
- return L(n) ? new Date(n.year, n.month - 1, n.day) : new Date(
93
- n.year,
94
- n.month - 1,
95
- n.day,
96
- n.hour,
97
- n.minute,
98
- n.second,
99
- n.millisecond
100
- );
101
- }
102
- class y {
103
- constructor(e, t, i) {
104
- this.type = e, this.formatted = t, this.label = i, this.placeholder = ge[e];
105
- }
106
- increment(e) {
107
- this.value === void 0 ? this.value = this.minValue : (this.value = this.value + 1, this.value > this.maxValue && (this.value = this.minValue));
108
- }
109
- decrement(e) {
110
- this.value === void 0 ? this.value = this.maxValue : (this.value = this.value - 1, this.value < this.minValue && (this.value = this.maxValue));
111
- }
112
- setValueFromDate(e) {
113
- this.type === "fractionalSecond" ? this.value = e.millisecond : this.type !== o.DayPeriod && (this.value = e[this.type]);
114
- }
115
- clear() {
116
- this.value = void 0;
117
- }
118
- handleInput(e, t) {
119
- const i = t.parse(e);
120
- if (Number.isNaN(i)) return;
121
- const a = t.parse(
122
- `${this.value ?? ""}${i}`
123
- );
124
- if (this.isInputValueCompliant(a)) {
125
- this.value = a;
126
- return;
127
- }
128
- this.isInputValueCompliant(i) && (this.value = i);
129
- }
130
- isInputValueCompliant(e) {
131
- const { minValue: t, maxValue: i } = this.inputValidationLimits;
132
- return e >= t && e <= i;
133
- }
134
- get inputValidationLimits() {
135
- return {
136
- minValue: this.minValue,
137
- maxValue: this.maxValue
138
- };
139
- }
140
- updateValueToLimits() {
141
- this.value !== void 0 && (this.value < this.minValue && (this.value = this.minValue), this.value > this.maxValue && (this.value = this.maxValue));
142
- }
143
- }
144
- class te extends y {
145
- constructor(e, t) {
146
- super(o.Year, e, t), this.minValue = 1, this.maxValue = 9999;
147
- }
148
- setLimits(e) {
149
- this.minValue = 1, this.maxValue = e.calendar.getYearsInEra(e), this.updateValueToLimits();
150
- }
151
- increment(e) {
152
- this.value === void 0 ? this.value = e.year : super.increment();
153
- }
154
- decrement(e) {
155
- this.value === void 0 ? this.value = e.year : super.decrement();
156
- }
157
- clear() {
158
- if (this.value === void 0) return;
159
- const e = Math.floor(this.value / 10);
160
- this.value = e > 0 ? e : void 0;
161
- }
162
- }
163
- class I {
164
- constructor(e) {
165
- this.segments = e;
166
- }
167
- get all() {
168
- return this.segments;
169
- }
170
- get editableValues() {
171
- return this.all.filter((e) => e instanceof y).map((e) => e.value);
172
- }
173
- get year() {
174
- const e = this.getByType(o.Year);
175
- if (e && e instanceof te) return e;
176
- }
177
- get month() {
178
- const e = this.getByType(o.Month);
179
- if (e) return e;
180
- }
181
- get day() {
182
- const e = this.getByType(o.Day);
183
- if (e) return e;
184
- }
185
- get hour() {
186
- const e = this.getByType(o.Hour);
187
- if (e) return e;
188
- }
189
- get minute() {
190
- const e = this.getByType(o.Minute);
191
- if (e) return e;
192
- }
193
- get second() {
194
- const e = this.getByType(o.Second);
195
- if (e) return e;
196
- }
197
- get millisecond() {
198
- const e = this.getByType(o.Millisecond);
199
- if (e) return e;
200
- }
201
- get dayPeriod() {
202
- const e = this.getByType(o.DayPeriod);
203
- if (e) return e;
204
- }
205
- getByType(e) {
206
- return this.segments.find(
207
- (t) => t.type === e
208
- );
209
- }
210
- /**
211
- * Returns a `CalendarDate` object with the year, month and day values of the segments if they are all defined. The time values
212
- * are checked and included based on the precision provided, returning a `CalendarDateTime` instead.
213
- *
214
- * @param precision - The precision to use when creating the date object
215
- */
216
- getFormattedDate(e = p.Day) {
217
- var c, f, v, g, h, z, x;
218
- const t = (c = this.year) == null ? void 0 : c.value, i = (f = this.month) == null ? void 0 : f.value, a = (v = this.day) == null ? void 0 : v.value;
219
- if (!k(t) || !k(i) || !k(a)) return;
220
- if (e === p.Day) return new H(t, i, a);
221
- let r = (g = this.hour) == null ? void 0 : g.value;
222
- if (!k(r)) return;
223
- if (this.dayPeriod) {
224
- const w = this.dayPeriod.value;
225
- if (!k(w)) return;
226
- r = J(r, w);
227
- }
228
- if (e === p.Hour)
229
- return new F(t, i, a, r);
230
- const s = (h = this.minute) == null ? void 0 : h.value;
231
- if (!k(s)) return;
232
- if (e === p.Minute)
233
- return new F(t, i, a, r, s);
234
- const l = (z = this.second) == null ? void 0 : z.value;
235
- if (!k(l)) return;
236
- if (e === p.Second)
237
- return new F(t, i, a, r, s, l);
238
- const d = (x = this.millisecond) == null ? void 0 : x.value;
239
- if (k(d))
240
- return new F(
241
- t,
242
- i,
243
- a,
244
- r,
245
- s,
246
- l,
247
- d
248
- );
249
- }
250
- }
251
- class be {
252
- constructor(e, t) {
253
- this.dateFormatter = e, this.currentDate = t, this.numberFormatter = new K(
254
- this.dateFormatter.resolvedOptions().locale,
255
- { useGrouping: !1 }
256
- );
257
- }
258
- /**
259
- * Formats all the `DateTimeSegments` to have the formatted property based on the value property, according to the date formatter.
260
- * @param segments - `DateTimeSegments` to format
261
- * @returns Formatted DateTimeSegments
262
- */
263
- format(e) {
264
- if (!e.year || !e.month || !e.day) return e;
265
- const t = this.getDateInfoWithDefaults(e);
266
- return t && (this.setSegmentsFormatted(e, t), this.padSegmentsFormatted(e)), e;
267
- }
268
- setSegmentsFormatted(e, t) {
269
- var h;
270
- e = new I(e.all);
271
- const { year: i, month: a, day: r, hour: s, minute: l, second: d, millisecond: c } = t, f = new Date(
272
- i,
273
- a - 1,
274
- r,
275
- s,
276
- l,
277
- d,
278
- c
279
- );
280
- if (!e.year) return;
281
- e.year.formatted = this.numberFormatter.format(i);
282
- const v = [
283
- o.Month,
284
- o.Day,
285
- o.Hour,
286
- o.Minute,
287
- o.Second,
288
- o.DayPeriod
289
- ], g = this.dateFormatter.formatToParts(f);
290
- for (const z of v) {
291
- const x = e[z];
292
- if (!x) continue;
293
- const w = (h = g.find(
294
- (T) => T.type === z
295
- )) == null ? void 0 : h.value;
296
- w && (x.formatted = w);
297
- }
298
- }
299
- padSegmentsFormatted(e) {
300
- if (!e.hour) return;
301
- const t = [
302
- o.Month,
303
- o.Day,
304
- o.Hour,
305
- o.Minute,
306
- o.Second
307
- ];
308
- for (const i of t) {
309
- const a = e[i];
310
- a && (a.formatted = a.formatted.padStart(
311
- 2,
312
- this.numberFormatter.format(0)
313
- ));
314
- }
315
- }
316
- getDateInfoWithDefaults(e) {
317
- var f, v, g, h, z;
318
- if (!e.year || !e.month || !e.day) return;
319
- const t = e.day.value ?? j(this.currentDate), i = e.month.value ?? G(this.currentDate), a = e.year.value ?? X, r = (f = e.dayPeriod) == null ? void 0 : f.value;
320
- let s = (v = e.hour) == null ? void 0 : v.value;
321
- k(s) ? k(r) && (s = J(s, r)) : s = k(r) ? r : this.currentDate.hour;
322
- const l = ((g = e.minute) == null ? void 0 : g.value) ?? this.currentDate.minute, d = ((h = e.second) == null ? void 0 : h.value) ?? this.currentDate.second, c = ((z = e.millisecond) == null ? void 0 : z.value) ?? this.currentDate.millisecond;
323
- return { year: a, month: i, day: t, hour: s, minute: l, second: d, millisecond: c };
324
- }
325
- }
326
- class O {
327
- constructor(e) {
328
- const { dateFormatter: t, segments: i, currentDate: a } = e;
329
- this.segments = new I(i.all), this.dateFormatter = t, this.currentDate = a;
330
- }
331
- modify(e) {
332
- const t = this.segments.getByType(e);
333
- if (!t) return this.segments;
334
- this.modifySegment(t), this.updateSegmentsLimits(e);
335
- const i = new be(
336
- this.dateFormatter,
337
- this.currentDate
338
- );
339
- return this.segments = i.format(this.segments), this.segments;
340
- }
341
- updateSegmentsLimits(e) {
342
- const t = e === o.Year, i = e === o.Month, a = this.segments.year, r = this.segments.month, s = this.segments.day;
343
- t && (r == null || r.setLimits(this.currentDate), s == null || s.setLimits(this.currentDate, r == null ? void 0 : r.value, a == null ? void 0 : a.value)), i && (s == null || s.setLimits(this.currentDate, r == null ? void 0 : r.value, a == null ? void 0 : a.value));
344
- }
345
- }
346
- class ke extends O {
347
- modifySegment(e) {
348
- e.clear();
349
- }
350
- }
351
- class xe extends O {
352
- modifySegment(e) {
353
- e.decrement(this.currentDate);
354
- }
355
- }
356
- class ye extends O {
357
- modifySegment(e) {
358
- e.increment(this.currentDate);
359
- }
360
- }
361
- class we extends O {
362
- constructor(e) {
363
- const { dateFormatter: t, segments: i, currentDate: a } = e;
364
- super({ dateFormatter: t, segments: i, currentDate: a }), this.eventData = e.eventData, this.numberParser = e.numberParser;
365
- }
366
- modifySegment(e) {
367
- this.eventData !== null && e.handleInput(this.eventData, this.numberParser);
368
- }
369
- }
370
- class Se extends y {
371
- constructor(e, t) {
372
- super(o.Day, e, t), this.minValue = 1, this.maxValue = 31;
373
- }
374
- setLimits(e, t, i) {
375
- if (!k(t)) {
376
- this.minValue = 1, this.maxValue = ze;
377
- return;
378
- }
379
- k(i) || (i = X);
380
- const a = new H(i, t, 1);
381
- this.maxValue = e.calendar.getDaysInMonth(a), this.minValue = j(a), this.updateValueToLimits();
382
- }
383
- }
384
- class De extends y {
385
- constructor(e, t) {
386
- super(o.Month, e, t), this.minValue = 1, this.maxValue = 12;
387
- }
388
- setLimits(e) {
389
- this.minValue = G(e), this.maxValue = e.calendar.getMonthsInYear(e), this.updateValueToLimits();
390
- }
391
- }
392
- class _e {
393
- constructor(e) {
394
- this.formatted = e, this.type = o.Literal;
395
- }
396
- }
397
- class Ve extends y {
398
- constructor(e, t) {
399
- super(o.DayPeriod, e, t), this.minValue = q, this.maxValue = V, this.localizedMinValue = "AM", this.localizedMaxValue = "PM";
400
- }
401
- toggleAmPm() {
402
- this.value = this.value === q ? V : q;
403
- }
404
- increment() {
405
- this.value === void 0 ? this.value = this.minValue : this.toggleAmPm();
406
- }
407
- decrement() {
408
- this.value === void 0 ? this.value = this.maxValue : this.toggleAmPm();
409
- }
410
- setValueFromDate(e) {
411
- this.value = Q(e.hour);
412
- }
413
- handleInput(e) {
414
- const t = e.toLowerCase(), i = this.localizedMinValue.toLowerCase().includes(t), a = this.localizedMaxValue.toLowerCase().includes(t);
415
- i && a || (i && (this.value = q), a && (this.value = V));
416
- }
417
- setLocalizedLimits(e) {
418
- const t = new Date(0, 0, 0, this.minValue, 0), i = new Date(0, 0, 0, this.maxValue, 0), [a, r] = [t, i].map(
419
- this.getDayPeriodFromDate.bind(this, e)
420
- );
421
- a && (this.localizedMinValue = a), r && (this.localizedMaxValue = r);
422
- }
423
- getDayPeriodFromDate(e, t) {
424
- var i;
425
- return (i = e.formatToParts(t).find((a) => a.type === this.type)) == null ? void 0 : i.value;
426
- }
427
- }
428
- class $e extends y {
429
- constructor(e, t) {
430
- super(o.Hour, e, t), this.minValue = 0, this.maxValue = 23;
431
- }
432
- setLimits(e) {
433
- this.minValue = 0, this.maxValue = 23, e && (this.minValue = 0, this.maxValue = 11), this.updateValueToLimits();
434
- }
435
- setValueFromDate(e, t) {
436
- t ? this.value = e.hour - Q(e.hour) : super.setValueFromDate(e);
437
- }
438
- /**
439
- * Returns the limits used to validate a user typed-in value.
440
- *
441
- * Different limits are needed when the user is typing in the hour segment and the clock is in 12-hour format due to the fact that
442
- * the hour value of 0 should be displayed as 12. Therefore, in the 12h format, the user should be able to type in "12" but not "00",
443
- * for the 00 time, which is represented by the value of 0 of the hour segment.
444
- */
445
- get inputValidationLimits() {
446
- const e = this.maxValue === 11;
447
- return {
448
- minValue: e ? 1 : 0,
449
- maxValue: e ? 12 : 23
450
- };
451
- }
452
- }
453
- class Pe extends y {
454
- constructor(e, t) {
455
- super(o.Millisecond, e, t), this.minValue = 0, this.maxValue = 999;
456
- }
457
- }
458
- class Fe extends y {
459
- constructor(e, t) {
460
- super(o.Minute, e, t), this.minValue = 0, this.maxValue = 59;
461
- }
462
- }
463
- class qe extends y {
464
- constructor(e, t) {
465
- super(o.Second, e, t), this.minValue = 0, this.maxValue = 59;
466
- }
467
- }
468
- class Me {
469
- constructor(e) {
470
- this.dateFormatter = e;
471
- const t = this.dateFormatter.resolvedOptions().locale;
472
- this.numberFormatter = new K(t, {
473
- useGrouping: !1
474
- }), this.dateTimeFieldDisplayNames = new Intl.DisplayNames([t], {
475
- type: "dateTimeField"
476
- });
477
- }
478
- /**
479
- * Creates the `DateTimeSegments` needed for the DateTimePicker
480
- * @param currentDate - The date to create the segments from. This is used to set the limits and values of the segments.
481
- * @param setValues - If true, the segments will have their values set from the currentDate. If false, the segments will have no values.
482
- */
483
- createSegments(e, t = !1) {
484
- const i = ee(e), a = this.dateFormatter.formatToParts(i).map((x) => {
485
- const w = x.type;
486
- let T = x.value;
487
- return w === "year" && (T = this.numberFormatter.format(e.year)), this.createSegment(w, T);
488
- }), r = new I(a), s = r.year, l = r.month, d = r.day;
489
- s.setLimits(e), l.setLimits(e), t && (s.setValueFromDate(e), l.setValueFromDate(e)), d.setLimits(e, l.value, s.value), t && d.setValueFromDate(e);
490
- const c = r.hour, f = r.minute, v = r.second, g = r.millisecond, h = r.dayPeriod;
491
- if (h && h.setLocalizedLimits(this.dateFormatter), !c) return r;
492
- const z = !!h;
493
- if (c.setLimits(z), t) {
494
- if (c.setValueFromDate(e, z), z && r.dayPeriod.setValueFromDate(e), !f || (f.setValueFromDate(e), !v) || (v.setValueFromDate(e), !g)) return r;
495
- g.setValueFromDate(e);
496
- }
497
- return r;
498
- }
499
- createSegment(e, t) {
500
- if (e === o.Literal) return new _e(t);
501
- const i = this.displayNameOfType(e);
502
- switch (e) {
503
- case o.Year:
504
- return new te(t, i);
505
- case o.Month:
506
- return new De(t, i);
507
- case o.Day:
508
- return new Se(t, i);
509
- case o.Hour:
510
- return new $e(t, i);
511
- case o.Minute:
512
- return new Fe(t, i);
513
- case o.Second:
514
- return new qe(t, i);
515
- case o.Millisecond:
516
- return new Pe(t, i);
517
- case o.DayPeriod:
518
- return new Ve(t, i);
519
- }
520
- }
521
- displayNameOfType(e) {
522
- const t = e === "fractionalSecond" ? "millisecond" : this.dateTimeFieldDisplayNames.of(e);
523
- return t ? t.charAt(0).toUpperCase() + t.slice(1) : "";
524
- }
525
- }
526
- const Te = '@charset "UTF-8";:host{font-family:var(--luzmo-font-family);--date-time-picker-border-radius: var( --luzmo-date-time-picker-border-radius, var(--luzmo-border-radius) );--date-time-picker-border-radius-quiet: var( --luzmo-date-time-picker-border-radius-quiet, 0 );--date-time-picker-border-width: var(--luzmo-border-width);--date-time-picker-button-border-color: var( --highcontrast-datepicker-pickerbutton-border-color, var( --luzmo-date-time-picker-pickerbutton-border-color, var(--luzmo-border-color) ) );--date-time-picker-button-border-color-focus: var( --highcontrast-datepicker-pickerbutton-border-color, var( --luzmo-date-time-picker-pickerbutton-border-color-focus, var(--luzmo-primary) ) );--date-time-picker-button-border-color-invalid: var( --highcontrast-datepicker-pickerbutton-border-color, var( --luzmo-date-time-picker-pickerbutton-border-color-invalid, var(--luzmo-negative-color) ) );--date-time-picker-button-width: calc( var(--date-time-picker-edge-to-disclosure-icon) * 2 + var(--date-time-picker-icon-size) );--date-time-picker-quiet-button-offset: var( --luzmo-date-time-picker-quiet-button-offset, var(--date-time-picker-text-to-visual) );--date-time-picker-icon-to-text: var(--date-time-picker-edge-to-text);--date-time-picker-button-width-quiet: calc( var(--date-time-picker-button-width) - var( --date-time-picker-quiet-button-offset ) );--date-time-picker-focus-ring-gap: var( --luzmo-date-time-picker-focus-ring-gap, var(--luzmo-indicator-gap) );--date-time-picker-focus-thickness: var( --luzmo-date-time-picker-focus-thickness, var(--luzmo-indicator-width) );--date-time-picker-focus-animation: var( --luzmo-date-time-picker-focus-animation, var(--luzmo-animation-duration) );--date-time-picker-focus-ring-width: var( --luzmo-date-time-picker-focus-ring-width, var(--luzmo-border-width) );--date-time-picker-focus-ring-color: var( --highcontrast-datepicker-focus-ring-color, var(--luzmo-date-time-picker-focus-ring-color, var(--luzmo-indicator-color)) );--date-time-picker-focus-line-gap: var( --luzmo-date-time-picker-focus-line-gap, var(--luzmo-spacing-2) );--date-time-picker-invalid-quiet-color: var( --luzmo-date-time-picker-invalid-quiet-color, var(--luzmo-negative-color) );--date-time-picker-quiet-border-color-hover: var( --luzmo-date-time-picker-quiet-border-color-hover, var(--luzmo-border-color-hover) );--date-time-picker-border-color-disabled: var( --luzmo-date-time-picker-border-color-disabled, var(--luzmo-border-color-disabled) );--date-time-picker-dash-font-size: var( --luzmo-date-time-picker-dash-font-size, var(--date-time-picker-dash-font-size) );--date-time-picker-dash-color: var( --highcontrast-datepicker-dash-color, var(--luzmo-date-time-picker-dash-color, var(--luzmo-font-color)) );--date-time-picker-range-dash-padding-top: var( --luzmo-date-time-picker-range-dash-padding-top, 0 );--date-time-picker-range-dash-margin-inline-start: var( --luzmo-date-time-picker-range-dash-margin-left, calc(var(--date-time-picker-dash-font-size) * -.5) );--date-time-picker-range-input-width-first: var( --luzmo-date-time-picker-range-input-width-first, calc( var(--date-time-picker-initial-width) - var( --date-time-picker-generic-padding ) * 2 ) );--date-time-picker-input-width-base: calc( var(--date-time-picker-range-input-width-first) + var(--date-time-picker-icon-size) );--date-time-picker-input-width: var( --luzmo-date-time-picker-input-width, calc( var(--date-time-picker-input-width-base) + var(--date-time-picker-initial-height) ) );--date-time-picker-range-input-width-quiet-first: var( --luzmo-date-time-picker-range-input-width-quiet-first, calc( var(--date-time-picker-width-quiet-first) + var(--date-time-picker-width-quiet-second) ) );--date-time-picker-input-width-quiet: var( --luzmo-date-time-picker-input-width-quiet, calc( var(--date-time-picker-range-input-width-quiet-first) + var(--date-time-picker-icon-size) + var(--date-time-picker-initial-height) ) );--date-time-picker-datetime-input-width-first: var( --luzmo-date-time-picker-datetime-input-width-first, calc( var(--date-time-picker-input-width-base) + var(--date-time-picker-datetime-width-first) ) );--date-time-picker-datetime-input-width: var( --luzmo-date-time-picker-datetime-input-width, calc( var(--date-time-picker-datetime-input-width-first) + var(--date-time-picker-icon-size) + var(--date-time-picker-initial-height) ) );--date-time-picker-datetime-quiet-input-width-first: var( --luzmo-date-time-picker-datetime-quiet-input-width-first, calc( var(--date-time-picker-input-width-base) + var(--date-time-picker-input-datetime-width) ) );--date-time-picker-datetime-quiet-input-width: var( --luzmo-date-time-picker-datetime-quiet-input-width, calc( var(--date-time-picker-datetime-quiet-input-width-first) + var(--date-time-picker-icon-size) + var(--date-time-picker-initial-height) ) );--date-time-picker-padding-inline-end: var( --luzmo-date-time-picker-padding-inline, calc( var(--date-time-picker-button-width) + var(--date-time-picker-edge-to-text) - var( --date-time-picker-border-width ) * 2 ) );--date-time-picker-padding-inline-end-quiet: var( --luzmo-date-time-picker-padding-inline-quiet, calc( var(--date-time-picker-button-width) + var(--date-time-picker-edge-to-text) - var( --date-time-picker-quiet-button-offset ) ) );--date-time-picker-padding-inline-end-invalid-quiet: var( --luzmo-date-time-picker-padding-inline-end-invalid-quiet, calc( var(--date-time-picker-button-width-quiet) + var(--date-time-picker-icon-size) + var(--date-time-picker-icon-to-text) ) );min-inline-size:var(--luzmo-date-time-picker-min-width, var(--date-time-picker-min-width));border-radius:var(--date-time-picker-border-radius);flex-flow:row;display:inline-flex;position:relative}:host([disabled]) luzmo-picker-button{cursor:default}:host([disabled]){--luzmo-date-time-picker-dash-color: var( --luzmo-date-time-picker-dash-color-disabled, var(--disabled-content-color) );--luzmo-text-field-border-color-disabled: transparent}:host([invalid]),:host([invalid]) #text-field .icon{--luzmo-text-field-icon-spacing-inline-end-invalid: calc( var(--date-time-picker-button-width) + var(--date-time-picker-invalid-icon-to-button) );--luzmo-text-field-icon-spacing-inline-end-quiet-invalid: calc( var(--date-time-picker-button-width-quiet) + var(--date-time-picker-invalid-icon-to-button-quiet) )}:host(:not([quiet])){inline-size:var(--luzmo-date-time-picker-width, var(--date-time-picker-width))}:host([quiet]){inline-size:var(--luzmo-date-time-picker-width-quiet, var(--date-time-picker-width-quiet, var(--date-time-picker-width)))}:host(:not([quiet],[disabled])){--luzmo-picker-button-border-color: var( --date-time-picker-button-border-color )}:host([focused]),:host([focused]:not([quiet],[disabled])){--luzmo-picker-button-border-color: var( --date-time-picker-button-border-color-focus )}:host([invalid]:not([quiet],[disabled])){--luzmo-picker-button-border-color: var( --date-time-picker-button-border-color-invalid )}.input{inline-size:100%;flex:1;padding-inline-end:var(--date-time-picker-padding-inline-end);border-color:var(--luzmo-date-time-picker-border-color, var(--datepicker-border-color))}:host .input:read-only{border-color:var(--luzmo-date-time-picker-border-color, var(--datepicker-border-color))}.input.luzmo-DatePicker-startField{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0;padding-inline-end:var(--luzmo-date-time-picker-generic-padding, var(--date-time-picker-generic-padding))}.input.luzmo-DatePicker-endField{border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0;padding-inline-start:var(--luzmo-date-time-picker-generic-padding, var(--date-time-picker-generic-padding))}luzmo-picker-button{cursor:pointer;position:absolute;inset-inline-end:0}.luzmo-DatePicker-rangeDash{color:var(--date-time-picker-dash-color);line-height:var(--luzmo-date-time-picker-dash-line-height, var(--date-time-picker-dash-line-height));flex:initial;inline-size:0;z-index:1;padding-block-start:var(--date-time-picker-range-dash-padding-top)}.luzmo-DatePicker-rangeDash:before{content:"–";margin-block:0;margin-inline:var(--date-time-picker-range-dash-margin-inline-start);text-align:center;vertical-align:middle;inline-size:var(--date-time-picker-dash-font-size);display:inline-block;overflow:hidden}:host([quiet]){--luzmo-date-time-picker-border-radius: var( --date-time-picker-border-radius-quiet );--luzmo-date-time-picker-padding-inline: var( --date-time-picker-padding-inline-end-quiet );--luzmo-picker-button-border-color-disabled: var( --date-time-picker-border-color-disabled );--luzmo-picker-button-background-color-hover-disabled: var( --date-time-picker-border-color-disabled )}:host([quiet][disabled]){--luzmo-text-field-border-color-disabled: var( --date-time-picker-border-color-disabled )}:host([quiet][invalid]) .input:not(.luzmo-DatePicker-startField){padding-inline-end:var(--date-time-picker-padding-inline-end-invalid-quiet)}@media (hover: hover){:host(:hover):not([focused],[disabled],[invalid]){--luzmo-picker-button-border-color: var( --date-time-picker-quiet-border-color-hover )}}:host([quiet][invalid]){--luzmo-picker-button-border-color: var( --date-time-picker-invalid-quiet-color )}:host([quiet]) luzmo-picker-button{inline-size:auto;inset-inline-end:calc(var(--date-time-picker-quiet-button-offset) * -1)}:host([quiet]) luzmo-picker-button:not(.is-open){--luzmo-picker-button-border-color-disabled: transparent}:host([quiet]) luzmo-picker-button:not(:disabled,.is-open){--luzmo-picker-button-background-color: transparent}.luzmo-DatePicker--range{--luzmo-date-time-picker-border-radius: var(--date-time-picker-border-radius)}.luzmo-DatePicker--range:after{pointer-events:none;content:"";margin:calc(var(--date-time-picker-focus-ring-gap) * -1);border-radius:calc(var(--date-time-picker-border-radius) + var(--date-time-picker-focus-ring-gap));transition:box-shadow var(--date-time-picker-focus-animation) ease-in-out,border-color var(--date-time-picker-focus-animation) ease-in-out;border-color:#0000;position:absolute;top:0;right:0;bottom:0;left:0}:host([focused]) .luzmo-DatePicker--range:not(.luzmo-DatePicker--quiet):after{box-shadow:0 0 0 var(--date-time-picker-focus-ring-width) var(--date-time-picker-focus-ring-color)}:host([focused]) .luzmo-DatePicker--range:not(.luzmo-DatePicker--quiet) #text-field:after{display:none}:host([quiet]) .luzmo-DatePicker--range{--luzmo-date-time-picker-border-radius: var( --date-time-picker-border-radius-quiet )}:host([quiet][focused]) .luzmo-DatePicker--range:after{box-shadow:none;border-block-end:var(--date-time-picker-focus-thickness) solid var(--date-time-picker-focus-ring-color);border-radius:0;margin:0;inset-block-end:calc(var(--date-time-picker-focus-line-gap) * -1)}:host([quiet]) .luzmo-DatePicker--range #text-field{min-inline-size:0;inline-size:var(--date-time-picker-input-width-quiet)}:host([quiet]) .luzmo-DatePicker--range #text-field:first-of-type{inline-size:var(--date-time-picker-range-input-width-quiet-first)}.luzmo-DatePicker--range.luzmo-DatePicker--datetimeRange #text-field{inline-size:var(--date-time-picker-datetime-input-width);min-inline-size:0}.luzmo-DatePicker--range.luzmo-DatePicker--datetimeRange #text-field:first-of-type{inline-size:var(--date-time-picker-datetime-input-width-first)}:host([quiet]) .luzmo-DatePicker--range.luzmo-DatePicker--datetimeRange #text-field{inline-size:var(--date-time-picker-datetime-quiet-input-width)}:host([quiet]) .luzmo-DatePicker--range.luzmo-DatePicker--datetimeRange #text-field:first-of-type{inline-size:var(--date-time-picker-datetime-quiet-input-width-first)}.luzmo-DatePicker--range #text-field{flex:initial;min-inline-size:0;inline-size:var(--date-time-picker-input-width)}.luzmo-DatePicker--range #text-field:first-of-type{inline-size:var(--date-time-picker-range-input-width-first)}@media (forced-colors: active){:host{--highcontrast-datepicker-dash-color: CanvasText;--highcontrast-datepicker-focus-ring-color: Highlight;--highcontrast-datepicker-pickerbutton-border-color: Highlight}:host([disabled]){--highcontrast-datepicker-dash-color: GrayText}:host([quiet][invalid]){--highcontrast-datepicker-pickerbutton-border-color: Highlight}}:host{--date-time-picker-width: auto;--date-time-picker-initial-height: var(--system-date-picker-initial-height);--date-time-picker-font-color-default: var(--luzmo-font-color);--datepicker-border-color: var(--luzmo-border-color);--date-time-picker-button-indicator-color: var(--luzmo-indicator-color);--text-field-focus-indicator-color: var(--luzmo-background-color-highlight);--date-time-picker-initial-width: 120px;--date-time-picker-min-width: 160px;--date-time-picker-calendar-padding: var(--luzmo-spacing-4);--date-time-picker-icon-size: 18px;--date-time-picker-dash-font-size: var(--luzmo-font-size);--date-time-picker-text-to-visual: var(--luzmo-spacing-3);--date-time-picker-edge-to-disclosure-icon: var(--luzmo-spacing-3);--date-time-picker-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-icon-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-invalid-icon-to-button: var(--luzmo-spacing-3);--date-time-picker-generic-padding: var(--luzmo-spacing-4)}:host([size=s]){--date-time-picker-min-width: 140px;--date-time-picker-calendar-padding: var(--luzmo-spacing-3);--date-time-picker-icon-size: 16px;--date-time-picker-dash-font-size: var(--luzmo-font-size-s);--date-time-picker-text-to-visual: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--date-time-picker-edge-to-disclosure-icon: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--date-time-picker-edge-to-text: var(--luzmo-spacing-3);--date-time-picker-invalid-icon-to-button: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--date-time-picker-icon-to-text: var(--luzmo-spacing-3)}:host([invalid][size=s]){--text-field-icon-spacing-block-invalid: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=m]){--date-time-picker-min-width: 160px;--date-time-picker-calendar-padding: var(--luzmo-spacing-4);--date-time-picker-icon-size: 18px;--date-time-picker-dash-font-size: var(--luzmo-font-size-m);--date-time-picker-text-to-visual: var(--luzmo-spacing-3);--date-time-picker-edge-to-disclosure-icon: var(--luzmo-spacing-3);--date-time-picker-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-invalid-icon-to-button: var(--luzmo-spacing-3);--date-time-picker-icon-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=l]){--date-time-picker-min-width: 180px;--date-time-picker-calendar-padding: var(--luzmo-spacing-5);--date-time-picker-icon-size: 20px;--date-time-picker-dash-font-size: var(--luzmo-font-size-l);--date-time-picker-text-to-visual: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-edge-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-edge-to-text: var(--luzmo-spacing-4);--date-time-picker-invalid-icon-to-button: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--date-time-picker-icon-to-text: var(--luzmo-spacing-4)}:host([size=xl]){--date-time-picker-min-width: 200px;--date-time-picker-calendar-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--date-time-picker-icon-size: 22px;--date-time-picker-dash-font-size: var(--luzmo-font-size-xl);--date-time-picker-text-to-visual: var(--luzmo-spacing-4);--date-time-picker-edge-to-disclosure-icon: var(--luzmo-spacing-4);--date-time-picker-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--date-time-picker-invalid-icon-to-button: var(--luzmo-spacing-4);--date-time-picker-icon-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) )}:host{--status-icon-size: var( --luzmo-text-field-icon-size-invalid, var(--text-field-icon-size-invalid) );--picker-button-size: var( --luzmo-text-field-height, var(--text-field-height) );--input-spacing: var( --luzmo-text-field-spacing-inline, var(--text-field-spacing-inline) );--input-border-width: var( --luzmo-text-field-border-width, var(--luzmo-border-width) );--text-to-icon: var( --luzmo-text-field-icon-spacing-inline-start-invalid, var(--text-field-icon-spacing-inline-start-invalid) );--date-time-picker-input-width: var(--date-time-picker-width);flex-wrap:wrap}:host #text-field{display:inline-block}:host #text-field .input,:host([quiet]) #text-field .input,:host([valid]) #text-field .input,:host([invalid]) #text-field .input{inline-size:100%}:host #text-field .input,:host([quiet]) #text-field .input{padding-inline-end:calc(var(--picker-button-size) + var(--input-spacing) - var(--input-border-width))}:host([valid]) #text-field .input,:host([invalid]) #text-field .input{inline-size:100%;padding-inline-end:calc(var(--status-icon-size) + var(--picker-button-size) + var(--input-spacing) - var(--input-border-width) + var(--text-to-icon))}@media (hover: hover){:host([invalid]) #text-field:hover .input,:host([focused][invalid]) .input:hover,:host([focused][invalid]) #text-field:hover .input{border-color:var(--highcontrast-text-field-border-color-invalid-default, var(--luzmo-text-field-border-color-invalid-default, var(--luzmo-negative-color-hover)))}}luzmo-picker-button:focus-visible{outline:none}luzmo-popover{overflow-y:auto}luzmo-popover .popover-content{padding:var(--luzmo-date-time-picker-calendar-padding, var(--date-time-picker-calendar-padding))}.input-content{display:flex;align-items:center;height:100%;overflow:auto hidden;scrollbar-width:none;line-height:normal}.input-content::-webkit-scrollbar{display:none;width:0;height:0}.literal-segment,.editable-segment{display:inline-block;color:var(--luzmo-date-time-picker-font-color-default, var(--date-time-picker-font-color-default))}.editable-segment{padding:0 .15em;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;caret-color:transparent;outline:none}[dir=ltr] .editable-segment{text-align:start}.literal-segment{white-space:pre;user-select:none;-webkit-user-select:none}.is-placeholder,.is-placeholder+.literal-segment{color:var(--luzmo-font-color-disabled)}.editable-segment:focus-visible{color:var(--white);background-color:var(--highcontrast-text-field-focus-indicator-color, var(--luzmo-text-field-focus-indicator-color, var(--text-field-focus-indicator-color)))}.editable-segment::selection{background-color:transparent}';
527
- var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, m = (n, e, t, i) => {
528
- for (var a = i > 1 ? void 0 : i ? Le(e, t) : e, r = n.length - 1, s; r >= 0; r--)
529
- (s = n[r]) && (a = (i ? s(e, t, a) : s(a)) || a);
530
- return i && a && Ce(e, t, a), a;
531
- };
532
- class u extends fe(
533
- ue(de, {
534
- validSizes: Object.values(me)
535
- })
536
- ) {
537
- constructor() {
538
- super(), this._precision = p.Minute, this.isUserSetPrecision = !1, this.invalid = !1, this.readonly = !1, this.quiet = !1, this.placement = "bottom", this.language = "en", this.labels = {
539
- previous: "Previous",
540
- next: "Next",
541
- today: "Today",
542
- selected: "Selected",
543
- empty: "Empty",
544
- calendar: "Calendar"
545
- }, this.focused = !1, this.segments = new I([]), this.isCalendarOpen = !1, this._timeZone = this.timeZone ?? E(), this.cachedLocalTime = re(this._timeZone), this.setNumberParser(), this.setDateFormatter(), this.setAriaDateFormatter(), this.addEventListener(
546
- "focusin",
547
- () => this.previousCommitedValue = this._value
548
- ), this.addEventListener("focusout", () => this.commitValue());
549
- }
550
- /**
551
- * The styles of the calendar
552
- * @internal
553
- */
554
- static get styles() {
555
- return [Z(Te), Z(ve)];
556
- }
557
- get precision() {
558
- return this._precision;
559
- }
560
- set precision(e) {
561
- this.isUserSetPrecision = !0;
562
- const t = this._precision;
563
- e !== t && (this._precision = e, this.requestUpdate("precision", t));
564
- }
565
- /**
566
- * The language used to format the dates and weekdays.
567
- * @internal
568
- */
569
- get _language() {
570
- try {
571
- return this.language ? new Intl.Locale(this.language).language : "en";
572
- } catch {
573
- return "en";
574
- }
575
- }
576
- /**
577
- * The focus element of the component
578
- * @internal
579
- */
580
- get focusElement() {
581
- return this.firstEditableSegment;
582
- }
583
- /**
584
- * The current date of the component
585
- * @internal
586
- */
587
- get currentDate() {
588
- return this._value ? S(this._value, this._timeZone) : this.cachedLocalTime;
589
- }
590
- /**
591
- * @return Whether the component's precision includes time segments (hour, minute, second, millisecond)
592
- * @internal
593
- */
594
- get includesTime() {
595
- return [
596
- p.Hour,
597
- p.Minute,
598
- p.Second,
599
- p.Millisecond
600
- ].includes(this.precision);
601
- }
602
- /**
603
- * Resets the component's value and segments
604
- */
605
- clear() {
606
- this._value = void 0, this.setSegments();
607
- }
608
- willUpdate(e) {
609
- const t = e.has("value"), i = e.has("timeZone"), a = e.has("min"), r = e.has("max"), s = e.has("language"), l = e.has("dateFormat"), d = e.has("dateSeparator"), c = e.has("precision"), f = e.has("segments"), v = e.has("disabled");
610
- if (s && this.setNumberParser(), (s || c) && (this.setDateFormatter(), this.setAriaDateFormatter()), t || a || r || i) {
611
- this._value = this.value ? A(new Date(this.value).toISOString(), "UTC") : void 0, this._min = this.min ? A(new Date(this.min).toISOString(), "UTC") : void 0, this._max = this.max ? A(new Date(this.max).toISOString(), "UTC") : void 0;
612
- const h = this.mostSpecificDateValue;
613
- h && (this.convertDatePropsToMatch(h), this.checkDatePropsCompliance(a || r), this.updateDateProps(), this.updateDefaultPrecision());
614
- }
615
- (t || s || c || l || i || d) && this.setSegments(), f && this.setValueFromSegments(), v && this.isCalendarOpen && (this.isCalendarOpen = !1);
616
- const g = this._value && this.labels.selected + ": " + this.ariaDateFormatter.format(ee(this._value));
617
- this.setAttribute("aria-label", g ?? this.labels.empty);
618
- }
619
- /**
620
- * Computes the component's most precise date property (min, max or value) or undefined if none is defined.
621
- * The order of precedence is: ZonedDateTime, CalendarDateTime, CalendarDate.
622
- * @internal
623
- */
624
- get mostSpecificDateValue() {
625
- const e = [this._value, this._min, this._max].filter(
626
- (r) => r !== void 0
627
- );
628
- if (e.length === 0) return;
629
- const t = e.filter((r) => P(r));
630
- if (t.length > 0) return t[0];
631
- const i = e.filter((r) => B(r));
632
- return i.length > 0 ? i[0] : e.find((r) => L(r));
633
- }
634
- /**
635
- * Converts the DateTimePicker's date properties (min, max and value) to match the provided date's type.
636
- *
637
- * @param dateValue - The date value to be used as a reference for the conversion
638
- */
639
- convertDatePropsToMatch(e) {
640
- if (P(e)) {
641
- this._timeZone = this.timeZone ?? e.timeZone, this._value = this._value && S(this._value, this._timeZone), this._min = this._min && S(this._min, this._timeZone), this._max = this._max && S(this._max, this._timeZone);
642
- return;
643
- }
644
- if (this._timeZone = this.timeZone ?? E(), B(e)) {
645
- this._value = this._value && D(this._value), this._min = this._min && D(this._min), this._max = this._max && D(this._max);
646
- return;
647
- }
648
- this._value = this._value && C(this._value), this._min = this._min && C(this._min), this._max = this._max && C(this._max);
649
- }
650
- /**
651
- * Validates the component's date properties (min, max and value) compliance with one another.
652
- * If the [min, max] constraint interval is invalid, both properties are reset.
653
- * If the value is not within the [min, max] (valid) interval, it is reset.
654
- *
655
- * @param checkInterval - Whether to check the [min, max] interval
656
- */
657
- checkDatePropsCompliance(e) {
658
- e && this._min && this._max && (this._min.compare(this._max) < 0 || (console.warn(
659
- this,
660
- `<${this.localName}> expects the 'min' to be less than 'max'. Please ensure that 'min' property's date is earlier than 'max' property's date.`
661
- ), this._min = void 0, this._max = void 0)), this.isNonCompliantValue() && (console.warn(
662
- this,
663
- `<${this.localName}> expects the preselected value to comply with the min and max constraints. Please ensure that 'value' property's date is in between the dates for the 'min' and 'max' properties.`
664
- ), this._value = void 0), !this._min && !this._max && !this._value && (this._timeZone = E());
665
- }
666
- isNonCompliantValue() {
667
- return this._value === void 0 ? !1 : !!(this._min && this._value.compare(this._min) < 0 || this._max && this._value.compare(this._max) > 0);
668
- }
669
- /**
670
- * Update the component's date properties' types to include the provided precision.
671
- */
672
- updateDateProps() {
673
- const e = this.mostSpecificDateValue;
674
- if (!e || !this.isUserSetPrecision) return;
675
- this.includesTime && L(e) && this.convertDatePropsToMatch(D(e));
676
- }
677
- /**
678
- * Changes the component's default precision according to the most specific date property (min, max or value).
679
- */
680
- updateDefaultPrecision() {
681
- if (this.isUserSetPrecision) return;
682
- const e = this.mostSpecificDateValue;
683
- e && (this._precision = L(e) ? p.Day : p.Minute);
684
- }
685
- render() {
686
- return _`
687
- <div id="text-field">
688
- ${this.renderStateIcons()} ${this.renderInputContent()}
689
- </div>
690
- ${this.renderHelpText(this.invalid)}${this.renderPicker()}
691
- `;
692
- }
693
- renderStateIcons() {
694
- return this.invalid ? _`
695
- <luzmo-icon
696
- .icon=${he}
697
- .size=${this.size}
698
- id="invalid"
699
- class="icon"
700
- ></luzmo-icon>
701
- ` : U;
702
- }
703
- renderPicker() {
704
- if (this.readonly) return U;
705
- const e = () => this.isCalendarOpen = !1, t = () => this.isCalendarOpen = !0;
706
- return _`
707
- <luzmo-picker-button
708
- ?open=${this.isCalendarOpen}
709
- ?quiet=${this.quiet}
710
- ?invalid=${this.invalid}
711
- ?disabled=${this.disabled}
712
- .size=${this.size}
713
- @click=${t}
714
- label=${this.labels.calendar}
715
- >
716
- <slot name="calendar-icon" slot="icon">
717
- <luzmo-icon
718
- .icon=${pe}
719
- .size=${this.size}
720
- block
721
- ></luzmo-icon>
722
- </slot>
723
- </luzmo-picker-button>
724
-
725
- <luzmo-overlay
726
- .triggerElement=${this.input}
727
- type="modal"
728
- placement=${this.placement ?? "bottom"}
729
- offset="0"
730
- ?open=${this.isCalendarOpen}
731
- @luzmo-closed=${e}
732
- >
733
- <luzmo-popover>
734
- <div class="popover-content">
735
- <luzmo-calendar
736
- .value=${this._value ? (
737
- // TODO: check if this is the correct way to handle the value with TZ
738
- this._value.toString().slice(0, 10)
739
- ) : void 0}
740
- .min=${this._min ? this._min.toString() : void 0}
741
- .max=${this._max ? this._max.toString() : void 0}
742
- .labels=${this.labels}
743
- .size=${this.size}
744
- .language=${this.language}
745
- @change=${this.handleChange}
746
- ></luzmo-calendar>
747
- </div>
748
- </luzmo-popover>
749
- </luzmo-overlay>
750
- `;
751
- }
752
- handleChange(e) {
753
- var i, a, r, s, l, d, c;
754
- e.stopPropagation(), this.isCalendarOpen = !1, (i = e.target) != null && i.value && (this.value = (a = e.target) == null ? void 0 : a.value);
755
- const t = oe(
756
- ((r = e.target) == null ? void 0 : r.value) ?? ""
757
- );
758
- if (this.includesTime) {
759
- const f = ((s = this.segments.hour) == null ? void 0 : s.value) ?? 0, v = ((l = this.segments.minute) == null ? void 0 : l.value) ?? 0, g = ((d = this.segments.second) == null ? void 0 : d.value) ?? 0, h = ((c = this.segments.millisecond) == null ? void 0 : c.value) ?? 0, z = new ne(f, v, g, h), x = this.mostSpecificDateValue;
760
- this._value = D(t, z), x && P(x) && (this._value = S(this._value, this._timeZone));
761
- } else
762
- this._value = t;
763
- this.commitValue();
764
- }
765
- renderInputContent() {
766
- return _`
767
- <div class="input">
768
- <span
769
- class="input-content"
770
- @focusin=${() => this.focused = !this.readonly}
771
- @focusout=${() => this.focused = !1}
772
- @keydown=${this.handleKeydown}
773
- @input=${this.handleInput}
774
- >
775
- ${this.renderSegments()}
776
- </span>
777
- </div>
778
- `;
779
- }
780
- renderSegments() {
781
- return this.segments.all.map(
782
- (e) => Y(
783
- e.type === o.Literal,
784
- () => this.renderLiteralSegment(e),
785
- () => this.renderEditableSegment(e)
786
- )
787
- );
788
- }
789
- renderLiteralSegment(e) {
790
- return _`
791
- <span
792
- class="literal-segment"
793
- data-test-id=${e.type}
794
- aria-hidden="true"
795
- >${e.formatted}</span>
796
- `;
797
- }
798
- renderEditableSegment(e) {
799
- const t = !this.disabled && !this.readonly, i = e.value === void 0, a = e.type === o.DayPeriod ? "text" : "numeric", r = {
800
- "editable-segment": !0,
801
- "is-placeholder": i
802
- }, s = e.type !== o.Year && String(e.maxValue).length > 0, l = {
803
- minWidth: s ? `${s}ch` : void 0
804
- };
805
- return _`
806
- <div
807
- role="spinbutton"
808
- aria-valuenow=${$(e.value)}
809
- aria-valuemin=${e.minValue}
810
- aria-valuemax=${e.maxValue}
811
- aria-label=${e.label}
812
- aria-valuetext=${$(
813
- e.value === void 0 ? this.labels.empty : e.formatted
814
- )}
815
- contenteditable=${$(t ? !0 : void 0)}
816
- inputmode=${$(t ? a : void 0)}
817
- tabindex=${$(t ? "0" : void 0)}
818
- class=${le(r)}
819
- style=${ce(l)}
820
- data-type=${e.type}
821
- .innerText=${this.renderSegmentText(e)}
822
- ></div>
823
- `;
824
- }
825
- renderSegmentText(e) {
826
- const t = e.value === void 0;
827
- return Y(
828
- t,
829
- () => e.placeholder ?? "",
830
- () => e.formatted ?? ""
831
- );
832
- }
833
- handleKeydown(e) {
834
- var a;
835
- const t = e.target, i = t.dataset.type;
836
- if (i)
837
- switch (e.code) {
838
- case "ArrowUp": {
839
- this.incrementValue(i);
840
- break;
841
- }
842
- case "ArrowDown": {
843
- this.decrementValue(i);
844
- break;
845
- }
846
- case "ArrowRight": {
847
- this.focusSegment(t, "next");
848
- break;
849
- }
850
- case "ArrowLeft": {
851
- this.focusSegment(t, "previous");
852
- break;
853
- }
854
- case "Enter":
855
- case "Space": {
856
- this.commitValue();
857
- break;
858
- }
859
- case "Backspace":
860
- case "Delete": {
861
- e.preventDefault(), ((a = this.segments.getByType(i)) == null ? void 0 : a.value) === void 0 ? this.focusSegment(t, "previous") : this.clearSegmentContent(i);
862
- break;
863
- }
864
- }
865
- }
866
- /**
867
- * The modifier parameters of the component
868
- * @internal
869
- */
870
- get modifierParams() {
871
- return {
872
- dateFormatter: this.dateFormatter,
873
- segments: this.segments,
874
- currentDate: this.currentDate
875
- };
876
- }
877
- incrementValue(e) {
878
- const t = new ye(this.modifierParams);
879
- this.segments = t.modify(e), this.dispatchInput();
880
- }
881
- decrementValue(e) {
882
- const t = new xe(this.modifierParams);
883
- this.segments = t.modify(e), this.dispatchInput();
884
- }
885
- /**
886
- * Focuses the segment according to the direction, if there is one to focus on
887
- *
888
- * @param segment - Segment on which the event was triggered (the segment being changed)
889
- * @param elementToFocus - Defines which element will be focused: is it the previous one or the next one?
890
- */
891
- focusSegment(e, t) {
892
- let i = !1, a = e;
893
- for (; !i; ) {
894
- const r = t === "previous" ? a.previousElementSibling : a.nextElementSibling;
895
- if (!r)
896
- break;
897
- r.getAttribute("contenteditable") && (r.focus(), i = !0), a = r;
898
- }
899
- }
900
- /**
901
- * Mark the user intent to commit the selected value. If the current value
902
- * is different from the previous commited value, dispatch a change event.
903
- */
904
- commitValue() {
905
- if (!(this._value && this.previousCommitedValue && this._value.compare(this.previousCommitedValue) === 0)) {
906
- if (this._value === void 0 && this.previousCommitedValue === void 0) {
907
- const e = this.segments.editableValues.every(
908
- (t) => t === void 0
909
- );
910
- this.invalid = !e;
911
- return;
912
- }
913
- this.invalid = !!(this._value === void 0 || this.isNonCompliantValue()), this.previousCommitedValue = this._value, this.dispatchChange();
914
- }
915
- }
916
- clearSegmentContent(e) {
917
- const t = this.segments.editableValues, i = new ke(this.modifierParams);
918
- this.segments = i.modify(e);
919
- const a = this.segments.editableValues;
920
- R(t, a) || this.dispatchInput();
921
- }
922
- handleInput(e) {
923
- e.stopPropagation();
924
- const t = e.target.dataset.type, i = this.segments.editableValues, a = new we({
925
- ...this.modifierParams,
926
- eventData: e.data,
927
- numberParser: this.numberParser
928
- });
929
- this.segments = a.modify(t), this.updateSegmentContent(
930
- this.segments.getByType(t),
931
- e.target
932
- );
933
- const r = this.segments.editableValues;
934
- R(i, r) || this.dispatchInput();
935
- }
936
- /**
937
- * Updates the content of the segments by binding it to the `.innerText` property of the element,
938
- * instead of using string interpolation. This allows to not show user typed characters, but
939
- * only the formatted content of the segment, needed for the 'contenteditable' elements.
940
- *
941
- * @param segment - Segment on which the event was triggered (the segment being changed)
942
- * @param event - Triggered event details
943
- */
944
- updateSegmentContent(e, t) {
945
- t.textContent = e.value === void 0 ? e.placeholder : e.formatted;
946
- }
947
- createOutputString(e) {
948
- return e ? P(e) ? this._value.toAbsoluteString() : new Date(this._value.toString()).toISOString() : "";
949
- }
950
- dispatchChange() {
951
- const e = this.createOutputString(this._value);
952
- this.dispatchEvent(
953
- new CustomEvent("change", {
954
- bubbles: !0,
955
- composed: !0,
956
- cancelable: !0,
957
- detail: {
958
- value: e
959
- }
960
- })
961
- );
962
- }
963
- dispatchInput() {
964
- const e = this.createOutputString(this._value);
965
- this.dispatchEvent(
966
- new CustomEvent("input", {
967
- bubbles: !0,
968
- composed: !0,
969
- cancelable: !0,
970
- detail: {
971
- value: e
972
- }
973
- })
974
- );
975
- }
976
- setValueFromSegments() {
977
- const e = this.segments.getFormattedDate(this.precision);
978
- if (!e) {
979
- this._value && this.dispatchChange(), this._value = void 0;
980
- return;
981
- }
982
- this._value === void 0 && this.dispatchChange();
983
- const t = this.mostSpecificDateValue;
984
- t ? P(t) ? this._value = S(e, this._timeZone) : B(t) ? this._value = D(e) : this._value = C(e) : this._value = e;
985
- }
986
- setSegments() {
987
- var i, a, r, s;
988
- const t = new Me(this.dateFormatter).createSegments(
989
- this.currentDate,
990
- this._value !== void 0
991
- );
992
- if (this.dateFormat) {
993
- const l = t.all.findIndex(
994
- (c) => c.type === o.Month
995
- ), d = t.all.findIndex(
996
- (c) => c.type === o.Day
997
- );
998
- if (l !== -1 && d !== -1) {
999
- if (this.dateFormat === "mmdd" && l > d) {
1000
- const c = t.all[l];
1001
- t.all[l] = t.all[d], t.all[d] = c;
1002
- } else if (this.dateFormat === "ddmm" && d > l) {
1003
- const c = t.all[d];
1004
- t.all[d] = t.all[l], t.all[l] = c;
1005
- }
1006
- }
1007
- }
1008
- typeof this.dateSeparator == "string" && this.dateSeparator && (((a = (i = t.all) == null ? void 0 : i[1]) == null ? void 0 : a.type) === o.Literal && (t.all[1].formatted = this.dateSeparator), ((s = (r = t.all) == null ? void 0 : r[3]) == null ? void 0 : s.type) === o.Literal && (t.all[3].formatted = this.dateSeparator)), this.segments = t;
1009
- }
1010
- setNumberParser() {
1011
- this.numberParser = new se(this._language, {
1012
- maximumFractionDigits: 0
1013
- });
1014
- }
1015
- setDateFormatter() {
1016
- this.dateFormatter = new N(this._language, {
1017
- day: "2-digit",
1018
- month: "2-digit",
1019
- year: "numeric",
1020
- ...this.getTimeOptions("2-digit")
1021
- });
1022
- }
1023
- setAriaDateFormatter() {
1024
- this.ariaDateFormatter = new N(this._language, {
1025
- day: "numeric",
1026
- month: "long",
1027
- year: "numeric",
1028
- ...this.getTimeOptions("numeric")
1029
- });
1030
- }
1031
- getTimeOptions(e) {
1032
- switch (this.precision) {
1033
- case p.Millisecond:
1034
- return {
1035
- hour: e,
1036
- minute: e,
1037
- second: e,
1038
- fractionalSecondDigits: 3
1039
- };
1040
- case p.Second:
1041
- return {
1042
- hour: e,
1043
- minute: e,
1044
- second: e
1045
- };
1046
- case p.Minute:
1047
- return {
1048
- hour: e,
1049
- minute: e
1050
- };
1051
- case p.Hour:
1052
- return {
1053
- hour: e
1054
- };
1055
- default:
1056
- return {};
1057
- }
1058
- }
1059
- }
1060
- m([
1061
- b({ type: String, reflect: !0 })
1062
- ], u.prototype, "value", 2);
1063
- m([
1064
- b({ type: String, reflect: !0 })
1065
- ], u.prototype, "min", 2);
1066
- m([
1067
- b({ type: String, reflect: !0 })
1068
- ], u.prototype, "max", 2);
1069
- m([
1070
- b({ type: String, attribute: "date-format", reflect: !0 })
1071
- ], u.prototype, "dateFormat", 2);
1072
- m([
1073
- b({ type: String, attribute: "date-separator", reflect: !0 })
1074
- ], u.prototype, "dateSeparator", 2);
1075
- m([
1076
- b({ type: String, reflect: !0 })
1077
- ], u.prototype, "precision", 1);
1078
- m([
1079
- b({ type: Boolean, reflect: !0 })
1080
- ], u.prototype, "invalid", 2);
1081
- m([
1082
- b({ type: Boolean, reflect: !0 })
1083
- ], u.prototype, "readonly", 2);
1084
- m([
1085
- b({ type: Boolean, reflect: !0 })
1086
- ], u.prototype, "quiet", 2);
1087
- m([
1088
- b({ type: String, reflect: !0 })
1089
- ], u.prototype, "placement", 2);
1090
- m([
1091
- b({ type: String, attribute: "time-zone", reflect: !0 })
1092
- ], u.prototype, "timeZone", 2);
1093
- m([
1094
- b({ type: String, reflect: !0 })
1095
- ], u.prototype, "language", 2);
1096
- m([
1097
- b({ attribute: !1 })
1098
- ], u.prototype, "labels", 2);
1099
- m([
1100
- b({ type: Boolean, reflect: !0 })
1101
- ], u.prototype, "focused", 2);
1102
- m([
1103
- M()
1104
- ], u.prototype, "_value", 2);
1105
- m([
1106
- M()
1107
- ], u.prototype, "_min", 2);
1108
- m([
1109
- M()
1110
- ], u.prototype, "_max", 2);
1111
- m([
1112
- M()
1113
- ], u.prototype, "segments", 2);
1114
- m([
1115
- M()
1116
- ], u.prototype, "isCalendarOpen", 2);
1117
- m([
1118
- W(".editable-segment")
1119
- ], u.prototype, "firstEditableSegment", 2);
1120
- m([
1121
- W(".input")
1122
- ], u.prototype, "input", 2);
1123
- customElements.get("luzmo-date-time-picker") || customElements.define("luzmo-date-time-picker", u);
1124
- export {
1125
- u as LuzmoDateTimePicker
1126
- };
18
+ (() => {
19
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
20
+ let e = document.createElement("style");
21
+ e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 25%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 45%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 25%);--luzmo-secondary: #d000d0;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 208, 0, 208;--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba( var(--luzmo-border-color-rgb), 0.4 );--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-width: thin;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-negative-inverse-color: #ffffff;--luzmo-positive-color: rgb(18, 133, 90);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 18, 133, 90;--luzmo-positive-inverse-color: #ffffff;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-informative-color: #1670dd;--luzmo-informative-color-rgb: 22, 112, 221;--luzmo-notice-color: rgb(229, 127, 0);--luzmo-seafoam-color: rgb(0, 140, 140);--luzmo-indigo-color: rgb(68, 52, 255);--luzmo-purple-color: rgb(112, 48, 210);--luzmo-fuchsia-color: rgb(205, 30, 170);--luzmo-magenta-color: rgb(203, 36, 98);--luzmo-yellow-color: rgb(228, 208, 0);--luzmo-gray-color: rgb(110, 110, 110);--luzmo-red-color: rgb(202, 34, 28);--luzmo-orange-color: rgb(218, 123, 17);--luzmo-chartreuse-color: rgb(85, 135, 0);--luzmo-celery-color: rgb(48, 134, 22);--luzmo-green-color: rgb(18, 133, 90);--luzmo-cyan-color: rgb(0, 134, 180);--luzmo-blue-color: rgb(22, 112, 221);--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 10px;--luzmo-icon-size-xs: 12px;--luzmo-icon-size-s: 14px;--luzmo-icon-size-m: 16px;--luzmo-icon-size-l: 18px;--luzmo-icon-size-xl: 20px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
22
+ }
23
+ })();
24
+ import { t as e } from "../date-time-picker-Ct_ln8Ot.js";
25
+ export { e as LuzmoDateTimePicker };