@luzmo/lucero 1.0.1-alpha.14 → 1.0.1-alpha.16

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 (275) hide show
  1. package/components/accordion/index.cjs +183 -6
  2. package/components/accordion/index.js +136 -88
  3. package/components/action-bar/index.cjs +85 -4
  4. package/components/action-bar/index.js +72 -50
  5. package/components/action-button/index.cjs +205 -3
  6. package/components/action-button/index.js +167 -93
  7. package/components/action-group/index.cjs +7 -1
  8. package/components/action-group/index.js +12 -8
  9. package/components/action-group-DHp8RHDf.js +392 -0
  10. package/components/action-group-MPf19RPV.cjs +391 -0
  11. package/components/action-menu/index.cjs +91 -11
  12. package/components/action-menu/index.js +66 -47
  13. package/components/avatar/index.cjs +63 -3
  14. package/components/avatar/index.js +54 -42
  15. package/components/base-COw9n7UR.cjs +119 -0
  16. package/components/base-DmeVy0cq.js +120 -0
  17. package/components/button/index.cjs +134 -2
  18. package/components/button/index.js +106 -72
  19. package/components/button-base-7Ak55xFd.cjs +206 -0
  20. package/components/button-base-C3kf6BTK.js +207 -0
  21. package/components/button-group/index.cjs +45 -1
  22. package/components/button-group/index.js +37 -25
  23. package/components/calendar/index.cjs +632 -1
  24. package/components/calendar/index.js +637 -7
  25. package/components/checkbox/index.cjs +111 -4
  26. package/components/checkbox/index.js +98 -53
  27. package/components/checkbox-mixin-8cL-vfDy.js +84 -0
  28. package/components/checkbox-mixin-CE7dJj3J.cjs +83 -0
  29. package/components/clear-button-Co6oKSgl.js +59 -0
  30. package/components/clear-button-X_HDY2eH.cjs +58 -0
  31. package/components/close-button-DPBK6Kpu.cjs +59 -0
  32. package/components/close-button-Miw9ZjoJ.js +60 -0
  33. package/components/color-area/index.cjs +440 -13
  34. package/components/color-area/index.js +322 -187
  35. package/components/color-controller-BjDZaxhX.js +491 -0
  36. package/components/color-controller-C3c_vb2P.cjs +490 -0
  37. package/components/color-field/index.cjs +95 -2
  38. package/components/color-field/index.js +77 -41
  39. package/components/color-handle/index.cjs +64 -3
  40. package/components/color-handle/index.js +58 -37
  41. package/components/color-loupe/index.cjs +7 -1
  42. package/components/color-loupe/index.js +12 -8
  43. package/components/color-loupe-BQqNR8YD.cjs +88 -0
  44. package/components/color-loupe-B_DDFv8l.js +89 -0
  45. package/components/color-menu/index.cjs +217 -12
  46. package/components/color-menu/index.js +187 -93
  47. package/components/color-palette/index.cjs +89 -1
  48. package/components/color-palette/index.js +78 -51
  49. package/components/color-palette-group/index.cjs +259 -3
  50. package/components/color-palette-group/index.js +193 -105
  51. package/components/color-picker/index.cjs +114 -6
  52. package/components/color-picker/index.js +92 -72
  53. package/components/color-slider/index.cjs +585 -1
  54. package/components/color-slider/index.js +590 -7
  55. package/components/{directive-oAbCiebi.js → condition-attribute-with-id-Cn815e9W.js} +22 -22
  56. package/components/condition-attribute-with-id-DEc2Yjne.cjs +43 -0
  57. package/components/date-time-picker/index.cjs +1357 -31
  58. package/components/date-time-picker/index.js +951 -637
  59. package/components/dependency-manger-CcIE1uvQ.cjs +63 -0
  60. package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-XHpQjFgK.js} +24 -14
  61. package/components/divider/index.cjs +54 -1
  62. package/components/divider/index.js +49 -30
  63. package/components/divider.module-Cm5LcDRV.cjs +20 -0
  64. package/components/divider.module-DauH6k2_.js +21 -0
  65. package/components/element-resolution-DCsrhGZO.cjs +112 -0
  66. package/components/element-resolution-nMlmW4Jy.js +113 -0
  67. package/components/field-group/index.cjs +7 -1
  68. package/components/field-group/index.js +12 -8
  69. package/components/field-group-DNmY8W9v.cjs +86 -0
  70. package/components/field-group-DVdAWCQF.js +87 -0
  71. package/components/field-label/index.cjs +7 -1
  72. package/components/field-label/index.js +12 -8
  73. package/components/field-label-CKH9EXpR.cjs +156 -0
  74. package/components/field-label-Dpsecoc6.js +157 -0
  75. package/components/focus-group-BqDAk9Is.js +337 -0
  76. package/components/focus-group-DFzOlalL.cjs +336 -0
  77. package/components/focus-visible-B-B8-P9R.cjs +104 -0
  78. package/components/focus-visible-BUPRWlsh.js +105 -0
  79. package/components/focusable-BPrTcZPd.cjs +262 -0
  80. package/components/focusable-ChCLg1k4.js +263 -0
  81. package/components/{directive-C7oCP5Bh.cjs → focusable-selectors-D0t_5P7C.cjs} +16 -5
  82. package/components/{focusable-selectors-B4YgbghQ.js → focusable-selectors-IltOAOd9.js} +7 -4
  83. package/components/icon/index.cjs +90 -1
  84. package/components/icon/index.js +74 -46
  85. package/components/index.cjs +174 -1
  86. package/components/index.js +174 -172
  87. package/components/infield-button/index.cjs +46 -2
  88. package/components/infield-button/index.js +41 -30
  89. package/components/label/index.cjs +37 -1
  90. package/components/label/index.js +36 -24
  91. package/components/{language-resolution-8yZa5r_P.js → language-resolution-BSGJAWiQ.js} +21 -16
  92. package/components/language-resolution-iN9EImbb.cjs +57 -0
  93. package/components/like-anchor-D62faRNG.cjs +79 -0
  94. package/components/like-anchor-v3cJ9RWM.js +80 -0
  95. package/components/manage-help-text-BYx84zZR.cjs +125 -0
  96. package/components/manage-help-text-DOuMTGht.js +126 -0
  97. package/components/menu/index.cjs +1297 -29
  98. package/components/menu/index.js +954 -499
  99. package/components/multi-language-field/index.cjs +132 -2
  100. package/components/multi-language-field/index.js +118 -88
  101. package/components/number-field/index.cjs +613 -10
  102. package/components/number-field/index.js +442 -243
  103. package/components/observe-slot-presence-9AwLGUQ_.cjs +78 -0
  104. package/components/observe-slot-presence-DcMdoumP.js +79 -0
  105. package/components/observe-slot-text-CSofZeeF.cjs +104 -0
  106. package/components/observe-slot-text-CjnkkBPn.js +105 -0
  107. package/components/options/index.cjs +693 -60
  108. package/components/options/index.js +519 -953
  109. package/components/overlay/index.cjs +367 -21
  110. package/components/overlay/index.js +273 -189
  111. package/components/overlay-CN8ISP1F.js +2485 -0
  112. package/components/overlay-LViy9VWM.cjs +2484 -0
  113. package/components/{pending-state-DTX7ggyF.js → pending-state-CXbe-Xul.js} +28 -13
  114. package/components/pending-state-e4RbXe9u.cjs +75 -0
  115. package/components/picker/index.cjs +9 -1
  116. package/components/picker/index.js +15 -11
  117. package/components/picker-DNde3awt.cjs +672 -0
  118. package/components/picker-PfUAF05y.js +673 -0
  119. package/components/picker-button/index.cjs +56 -4
  120. package/components/picker-button/index.js +45 -34
  121. package/components/platform-CxDar3Dn.cjs +68 -0
  122. package/components/platform-Cxn0WbyT.js +69 -0
  123. package/components/popover/index.cjs +7 -1
  124. package/components/popover/index.js +12 -8
  125. package/components/popover-BkbYhl3i.js +74 -0
  126. package/components/popover-BkgUf0kL.cjs +74 -0
  127. package/components/progress-circle/index.cjs +7 -1
  128. package/components/progress-circle/index.js +12 -8
  129. package/components/progress-circle-Hu_ivPHf.js +133 -0
  130. package/components/progress-circle-_Etqsj9f.cjs +132 -0
  131. package/components/radio/index.cjs +244 -2
  132. package/components/radio/index.js +192 -110
  133. package/components/{when-CDK1Tt5Y.js → random-id-BE6HA503.cjs} +7 -10
  134. package/components/{random-id-ByCz1xaq.js → random-id-BEc6QIUL.js} +3 -3
  135. package/components/roving-tabindex-AsmAh2In.cjs +95 -0
  136. package/components/roving-tabindex-DPF9NmrH.js +96 -0
  137. package/components/search/index.cjs +115 -8
  138. package/components/search/index.js +96 -66
  139. package/components/select/index.cjs +720 -51
  140. package/components/select/index.js +563 -347
  141. package/components/sized-mixin-DmkrNdWB.js +80 -0
  142. package/components/sized-mixin-UaTVa-AE.cjs +79 -0
  143. package/components/slider/index.cjs +119 -1
  144. package/components/slider/index.js +100 -1113
  145. package/components/{condition-attribute-with-id-Dv4lSRbe.js → slottable-request-event-CANixJnR.cjs} +15 -13
  146. package/components/{slottable-request-event-DggLA4Rx.js → slottable-request-event-D9WzrdWv.js} +12 -9
  147. package/components/strategies-DlMlaSJR.cjs +317 -0
  148. package/components/strategies-DlPQoTFE.js +318 -0
  149. package/components/streaming-listener-D4sHaMub.cjs +145 -0
  150. package/components/streaming-listener-cAz5zJyk.js +146 -0
  151. package/components/swatch/index.cjs +436 -7
  152. package/components/swatch/index.js +350 -205
  153. package/components/switch/index.cjs +61 -2
  154. package/components/switch/index.js +51 -34
  155. package/components/tabs/index.cjs +693 -26
  156. package/components/tabs/index.js +521 -388
  157. package/components/tags/index.cjs +201 -4
  158. package/components/tags/index.js +152 -87
  159. package/components/text-field/index.cjs +49 -3
  160. package/components/text-field/index.js +44 -30
  161. package/components/text-field-11tcnftU.cjs +338 -0
  162. package/components/text-field-Chi9J2Cz.js +339 -0
  163. package/components/text-field.module-CMBS0jSL.js +21 -0
  164. package/components/text-field.module-DIJdV_sA.cjs +20 -0
  165. package/components/toast/index.cjs +177 -12
  166. package/components/toast/index.js +145 -73
  167. package/components/tooltip/index.cjs +221 -6
  168. package/components/tooltip/index.js +156 -109
  169. package/components/unit-input/index.cjs +232 -8
  170. package/components/unit-input/index.js +201 -108
  171. package/components/utils.cjs +25 -1
  172. package/components/utils.js +22 -22
  173. package/package.json +1 -1
  174. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  175. package/components/NumberFormatter-DgOUVrge.js +0 -136
  176. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  177. package/components/NumberParser-ci9J5EKv.js +0 -173
  178. package/components/action-group-DBImibFn.js +0 -258
  179. package/components/action-group-DJGMcRHb.cjs +0 -20
  180. package/components/async-directive-BX1T1e1_.cjs +0 -22
  181. package/components/async-directive-BfcqVjDp.js +0 -82
  182. package/components/base-BjTwmyRF.cjs +0 -22
  183. package/components/base-CBCg3yyw.cjs +0 -40
  184. package/components/base-D76d76ww.js +0 -26
  185. package/components/base-WsynuqaS.js +0 -677
  186. package/components/button-base-DbkDzb71.js +0 -144
  187. package/components/button-base-XgPLmwP-.cjs +0 -25
  188. package/components/checkbox-mixin-BDN0dBtS.cjs +0 -27
  189. package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
  190. package/components/class-map-Di1D_rCm.cjs +0 -22
  191. package/components/class-map-NbVXqBU0.js +0 -51
  192. package/components/clear-button-DQcRdcUa.js +0 -53
  193. package/components/clear-button-OFUFFe7G.cjs +0 -18
  194. package/components/close-button-Cbnb7XXj.cjs +0 -18
  195. package/components/close-button-CqHYZhum.js +0 -51
  196. package/components/color-controller-B0uX6Zso.js +0 -3230
  197. package/components/color-controller-CoUL5f9K.cjs +0 -18
  198. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  199. package/components/color-loupe-CmMsXbjT.js +0 -81
  200. package/components/condition-attribute-with-id-DrQYZzFS.cjs +0 -18
  201. package/components/dependency-manger-C5HCkMMB.cjs +0 -18
  202. package/components/directive-helpers-Cm6gitnu.js +0 -62
  203. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  204. package/components/divider.module-DDvBo9zo.cjs +0 -18
  205. package/components/divider.module-DoQWQEIJ.js +0 -21
  206. package/components/element-resolution-BvRLGqIU.cjs +0 -18
  207. package/components/element-resolution-FCUT-wql.js +0 -91
  208. package/components/field-group-DXfBWrkO.js +0 -66
  209. package/components/field-group-DkGst3r5.cjs +0 -23
  210. package/components/field-label-CZ2zzChK.js +0 -106
  211. package/components/field-label-mO1AkUgR.cjs +0 -25
  212. package/components/flow-D-0MTYCm.js +0 -527
  213. package/components/flow-DM3dNAKs.cjs +0 -30
  214. package/components/focus-group-DHeTq18L.js +0 -218
  215. package/components/focus-group-DnxZUBhQ.cjs +0 -18
  216. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  217. package/components/focus-visible-DBlJGoEW.js +0 -74
  218. package/components/focusable-BxtpnzWp.js +0 -153
  219. package/components/focusable-EbipgXRh.cjs +0 -18
  220. package/components/focusable-selectors-BgFlyFcY.cjs +0 -18
  221. package/components/if-defined-C9YGdo33.cjs +0 -22
  222. package/components/if-defined-DOaE2coe.js +0 -27
  223. package/components/index-BwxgAdzi.cjs +0 -57
  224. package/components/index-Cl54m8Yh.js +0 -1490
  225. package/components/index-HjQa8tew.js +0 -1174
  226. package/components/index-Wq3qZJGh.cjs +0 -113
  227. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  228. package/components/like-anchor-Bvn_vLQ8.js +0 -69
  229. package/components/like-anchor-sod1C1fR.cjs +0 -32
  230. package/components/luzmo-icons-4nDFv1Lq.js +0 -229
  231. package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
  232. package/components/manage-help-text-DhgARkZX.cjs +0 -30
  233. package/components/manage-help-text-syYnjKGL.js +0 -92
  234. package/components/mutation-controller-DH7YOCyj.js +0 -52
  235. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  236. package/components/observe-slot-presence-CmVi0zTc.js +0 -68
  237. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  238. package/components/observe-slot-text-BPfIQQtz.js +0 -87
  239. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  240. package/components/overlay-Cig9r6uU.js +0 -2747
  241. package/components/overlay-KSKMzzkh.cjs +0 -47
  242. package/components/pending-state-CaH1si5b.cjs +0 -26
  243. package/components/picker-BfBP7XJN.js +0 -461
  244. package/components/picker-xIphqE6d.cjs +0 -123
  245. package/components/platform-BM-uMWpX.js +0 -69
  246. package/components/platform-BiXhwqk3.cjs +0 -18
  247. package/components/popover-DjX0aAnY.js +0 -67
  248. package/components/popover-KFfO0IYL.cjs +0 -30
  249. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  250. package/components/progress-circle-DXH9z8-6.js +0 -97
  251. package/components/query-BL-TJj7K.cjs +0 -22
  252. package/components/query-D_KR_GUc.js +0 -51
  253. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  254. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  255. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  256. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  257. package/components/random-id-CqvckpWe.cjs +0 -18
  258. package/components/roving-tabindex-By_fCy_e.cjs +0 -18
  259. package/components/roving-tabindex-DOg4z6ZU.js +0 -66
  260. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  261. package/components/sized-mixin-D4ACoVUr.js +0 -63
  262. package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
  263. package/components/state-D8JEtYqe.cjs +0 -22
  264. package/components/state-Deh-vKYE.js +0 -29
  265. package/components/strategies-9indNIEb.js +0 -195
  266. package/components/strategies-BACP6MhR.cjs +0 -18
  267. package/components/streaming-listener-B00MvALi.cjs +0 -18
  268. package/components/streaming-listener-CP-JE6Fa.js +0 -91
  269. package/components/style-map-CeilmSgs.cjs +0 -22
  270. package/components/style-map-IgqIKvlE.js +0 -53
  271. package/components/text-field-CeG75PPO.cjs +0 -85
  272. package/components/text-field-DCl-AFM-.js +0 -314
  273. package/components/text-field.module-C2KVUJcX.js +0 -21
  274. package/components/text-field.module-DXhFA9G-.cjs +0 -18
  275. package/components/when-CDZyJPvd.cjs +0 -22
@@ -1,113 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- "use strict";const le=require("./NumberFormatter-DewVDY5w.cjs"),c=require("./base-CBCg3yyw.cjs"),Oe=require("./class-map-Di1D_rCm.cjs"),Pe=require("./if-defined-C9YGdo33.cjs"),We=require("./sized-mixin-CPxE5C96.cjs");require("./action-button/index.cjs");require("./icon/index.cjs");const ie=require("./luzmo-icons-D4IvHgVd.cjs"),C=require("./state-D8JEtYqe.cjs");function Z(t,e){return t-e*Math.floor(t/e)}const me=1721426;function P(t,e,a,r){e=X(t,e);let n=e-1,o=-2;return a<=2?o=0:N(e)&&(o=-1),me-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+o+r)}function N(t){return t%4===0&&(t%100!==0||t%400===0)}function X(t,e){return t==="BC"?1-e:e}function Ne(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const Ye={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class S{fromJulianDay(e){let a=e,r=a-me,n=Math.floor(r/146097),o=Z(r,146097),d=Math.floor(o/36524),l=Z(o,36524),i=Math.floor(l/1461),y=Z(l,1461),I=Math.floor(y/365),T=n*400+d*100+i*4+I+(d!==4&&I!==4?1:0),[_,$]=Ne(T),g=a-P(_,$,1,1),U=2;a<P(_,$,3,1)?U=0:N($)&&(U=1);let de=Math.floor(((g+U)*12+373)/367),Re=a-P(_,$,de,1)+1;return new M(_,$,de,Re)}toJulianDay(e){return P(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Ye[N(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return N(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const He={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function p(t,e){return e=f(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function x(t,e){return e=f(e,t.calendar),t=w(t),e=w(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function Le(t,e){var a,r,n,o;return(o=(n=(a=t.isEqual)===null||a===void 0?void 0:a.call(t,e))!==null&&n!==void 0?n:(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&o!==void 0?o:t.identifier===e.identifier}function be(t,e,a){let r=t.calendar.toJulianDay(t),n=Ke(e),o=Math.ceil(r+1-n)%7;return o<0&&(o+=7),o}function ve(t){return b(Date.now(),t)}function Ue(t){return A(ve(t))}function ge(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function $e(t,e){return ce(t)-ce(e)}function ce(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let q=null;function Y(){return q==null&&(q=new Intl.DateTimeFormat().resolvedOptions().timeZone),q}function w(t){return t.subtract({days:t.day-1})}function Ze(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function qe(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function je(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function se(t,e,a){let r=be(t,e);return t.subtract({days:r})}const he=new Map;function Ge(t){if(Intl.Locale){let a=he.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&he.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Ke(t){let e=Ge(t);return e&&He[e]||0}function Ve(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((be(w(t),e)+r)/7)}function E(t){t=f(t,new S);let e=X(t.era,t.year);return pe(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function pe(t,e,a,r,n,o,d){let l=new Date;return l.setUTCHours(r,n,o,d),l.setUTCFullYear(t,e-1,a),l.getTime()}function V(t,e){if(e==="UTC")return 0;if(t>0&&e===Y())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:o,minute:d,second:l}=xe(t,e);return pe(a,r,n,o,d,l,0)-Math.floor(t/1e3)*1e3}const ue=new Map;function xe(t,e){let a=ue.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ue.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let o of r)o.type!=="literal"&&(n[o.type]=o.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}const fe=864e5;function Je(t,e,a,r){return(a===r?[a]:[a,r]).filter(o=>Qe(t,e,o))}function Qe(t,e,a){let r=xe(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function m(t,e,a="compatible"){let r=z(t);if(e==="UTC")return E(r);if(e===Y()&&a==="compatible"){r=f(r,new S);let i=new Date,y=X(r.era,r.year);return i.setFullYear(y,r.month-1,r.day),i.setHours(r.hour,r.minute,r.second,r.millisecond),i.getTime()}let n=E(r),o=V(n-fe,e),d=V(n+fe,e),l=Je(r,e,n-o,n-d);if(l.length===1)return l[0];if(l.length>1)switch(a){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-o,n-d);case"compatible":case"later":return Math.max(n-o,n-d);case"reject":throw new RangeError("No such absolute time found")}}function we(t,e,a="compatible"){return new Date(m(t,e,a))}function b(t,e){let a=V(t,e),r=new Date(t+a),n=r.getUTCFullYear(),o=r.getUTCMonth()+1,d=r.getUTCDate(),l=r.getUTCHours(),i=r.getUTCMinutes(),y=r.getUTCSeconds(),I=r.getUTCMilliseconds();return new k(n<1?"BC":"AD",n<1?-n+1:n,o,d,e,a,l,i,y,I)}function A(t){return new M(t.calendar,t.era,t.year,t.month,t.day)}function z(t,e){let a=0,r=0,n=0,o=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:o}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:o}=e),new O(t.calendar,t.era,t.year,t.month,t.day,a,r,n,o)}function f(t,e){if(Le(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,D(r),r}function ze(t,e,a){if(t instanceof k)return t.timeZone===e?t:De(t,e);let r=m(t,e,a);return b(r,e)}function Xe(t){let e=E(t)-t.offset;return new Date(e)}function De(t,e){let a=E(t)-t.offset;return f(b(a,e),t.calendar)}const F=36e5;function H(t,e){let a=t.copy(),r="hour"in a?Ie(a,e):0;J(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Q(a),Me(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,et(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var o,d;let i=(o=(d=a.calendar).isInverseEra)===null||o===void 0?void 0:o.call(d,a);a.year=n,a.month=i?1:a.calendar.getMonthsInYear(a),a.day=i?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function J(t,e){var a,r;!((a=(r=t.calendar).isInverseEra)===null||a===void 0)&&a.call(r,t)&&(e=-e),t.year+=e}function Q(t){for(;t.month<1;)J(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,J(t,1)}function et(t){for(;t.day<1;)t.month--,Q(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Q(t)}function Me(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function D(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Me(t)}function ee(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function ke(t,e){return H(t,ee(e))}function te(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),D(a),a}function R(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),Ce(a),a}function tt(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=W(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=W(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=W(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=W(t.hour,24),e}function Ce(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function W(t,e){let a=t%e;return a<0&&(a+=e),a}function Ie(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,tt(t)}function Te(t,e){let a=t.copy();return Ie(a,e),a}function at(t,e){return Te(t,ee(e))}function ae(t,e,a,r){let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),i=l.indexOf(t.era);if(i<0)throw new Error("Invalid era: "+t.era);i=v(i,a,0,l.length-1,r==null?void 0:r.round),n.era=l[i],D(n);break}case"year":var o,d;!((o=(d=n.calendar).isInverseEra)===null||o===void 0)&&o.call(d,n)&&(a=-a),n.year=v(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=v(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=v(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),D(n),n}function re(t,e,a,r){let n=t.copy();switch(e){case"hour":{let o=t.hour,d=0,l=23;if((r==null?void 0:r.hourCycle)===12){let i=o>=12;d=i?12:0,l=i?23:11}n.hour=v(o,a,d,l,r==null?void 0:r.round);break}case"minute":n.minute=v(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=v(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=v(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+e)}return n}function v(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let o=Math.abs(e);e>0?t=Math.ceil(t/o)*o:t=Math.floor(t/o)*o,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function _e(t,e){let a;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let n=H(z(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});a=m(n,t.timeZone)}else a=E(t)-t.offset;a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5;let r=b(a,t.timeZone);return f(r,t.calendar)}function rt(t,e){return _e(t,ee(e))}function nt(t,e,a,r){switch(e){case"hour":{let n=0,o=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,o=g?23:11}let d=z(t),l=f(R(d,{hour:n}),new S),i=[m(l,t.timeZone,"earlier"),m(l,t.timeZone,"later")].filter(g=>b(g,t.timeZone).day===l.day)[0],y=f(R(d,{hour:o}),new S),I=[m(y,t.timeZone,"earlier"),m(y,t.timeZone,"later")].filter(g=>b(g,t.timeZone).day===y.day).pop(),T=E(t)-t.offset,_=Math.floor(T/F),$=T%F;return T=v(_,a,Math.floor(i/F),Math.floor(I/F),r==null?void 0:r.round)*F+$,f(b(T,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return re(t,e,a,r);case"era":case"year":case"month":case"day":{let n=ae(z(t),e,a,r),o=m(n,t.timeZone);return f(b(o,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function ot(t,e,a){let r=z(t),n=R(te(r,e),e);if(n.compare(r)===0)return t;let o=m(n,t.timeZone,a);return f(b(o,t.timeZone),t.calendar)}const dt=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lt=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function B(t){let e=t.match(dt);if(!e)throw new Error("Invalid ISO 8601 date string: "+t);let a=new M(u(e[1],0,9999),u(e[2],1,12),1);return a.day=u(e[3],0,a.calendar.getDaysInMonth(a)),a}function it(t,e){let a=t.match(lt);if(!a)throw new Error("Invalid ISO 8601 date time string: "+t);let r=u(a[1],-9999,9999),n=r<1?"BC":"AD",o=new k(n,r<1?-r+1:r,u(a[2],1,12),1,e,0,a[4]?u(a[4],0,23):0,a[5]?u(a[5],0,59):0,a[6]?u(a[6],0,59):0,a[7]?u(a[7],0,1/0)*1e3:0);o.day=u(a[3],0,o.calendar.getDaysInMonth(o));var d;return a[8]&&(o.offset=u(a[8],-23,23)*36e5+u((d=a[9])!==null&&d!==void 0?d:"0",0,59)*6e4),De(o,e)}function u(t,e,a){let r=Number(t);if(r<e||r>a)throw new RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function Se(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Ee(t){let e=f(t,new S),a;return e.era==="BC"?a=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):a=String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Fe(t){return`${Ee(t)}T${Se(t)}`}function ct(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=t%36e5/6e4;return`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function st(t){return`${Fe(t)}${ct(t.offset)}[${t.timeZone}]`}function ht(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function L(t,e,a){ht(t,e),e.set(t,a)}function ne(t){let e=typeof t[0]=="object"?t.shift():new S,a;if(typeof t[0]=="string")a=t.shift();else{let d=e.getEras();a=d[d.length-1]}let r=t.shift(),n=t.shift(),o=t.shift();return[e,a,r,n,o]}var ut=new WeakMap;class M{copy(){return this.era?new M(this.calendar,this.era,this.year,this.month,this.day):new M(this.calendar,this.year,this.month,this.day)}add(e){return H(this,e)}subtract(e){return ke(this,e)}set(e){return te(this,e)}cycle(e,a,r){return ae(this,e,a,r)}toDate(e){return we(this,e)}toString(){return Ee(this)}compare(e){return ge(this,e)}constructor(...e){L(this,ut,{writable:!0,value:void 0});let[a,r,n,o,d]=ne(e);this.calendar=a,this.era=r,this.year=n,this.month=o,this.day=d,D(this)}}var ft=new WeakMap;class oe{copy(){return new oe(this.hour,this.minute,this.second,this.millisecond)}add(e){return Te(this,e)}subtract(e){return at(this,e)}set(e){return R(this,e)}cycle(e,a,r){return re(this,e,a,r)}toString(){return Se(this)}compare(e){return $e(this,e)}constructor(e=0,a=0,r=0,n=0){L(this,ft,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,Ce(this)}}var yt=new WeakMap;class O{copy(){return this.era?new O(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new O(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return H(this,e)}subtract(e){return ke(this,e)}set(e){return te(R(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return ae(this,e,a,r);default:return re(this,e,a,r)}}toDate(e,a){return we(this,e,a)}toString(){return Fe(this)}compare(e){let a=ge(this,e);return a===0?$e(this,z(e)):a}constructor(...e){L(this,yt,{writable:!0,value:void 0});let[a,r,n,o,d]=ne(e);this.calendar=a,this.era=r,this.year=n,this.month=o,this.day=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,D(this)}}var mt=new WeakMap;class k{copy(){return this.era?new k(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new k(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return _e(this,e)}subtract(e){return rt(this,e)}set(e,a){return ot(this,e,a)}cycle(e,a,r){return nt(this,e,a,r)}toDate(){return Xe(this)}toString(){return st(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ze(e,this.timeZone).toDate().getTime()}constructor(...e){L(this,mt,{writable:!0,value:void 0});let[a,r,n,o,d]=ne(e),l=e.shift(),i=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=o,this.day=d,this.timeZone=l,this.offset=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,D(this)}}let j=new Map;class Be{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,a){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,a);if(a<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(a)}`}formatRangeToParts(e,a){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,a);if(a<e)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),n=this.formatter.formatToParts(a);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return gt()&&(this.resolvedHourCycle||(this.resolvedHourCycle=$t(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,a={}){this.formatter=Ae(e,a),this.options=a}}const bt={true:{ja:"h11"},false:{}};function Ae(t,e={}){if(typeof e.hour12=="boolean"&&vt()){e={...e};let n=bt[String(e.hour12)][t.split("-")[0]],o=e.hour12?"h12":"h23";e.hourCycle=n??o,delete e.hour12}let a=t+(e?Object.entries(e).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(j.has(a))return j.get(a);let r=new Intl.DateTimeFormat(t,e);return j.set(a,r),r}let G=null;function vt(){return G==null&&(G=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),G}let K=null;function gt(){return K==null&&(K=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),K}function $t(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let a=Ae(t,{...e,timeZone:void 0}),r=parseInt(a.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),n=parseInt(a.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&n===23)return"h23";if(r===24&&n===23)return"h24";if(r===0&&n===11)return"h11";if(r===12&&n===11)return"h12";throw new Error("Unexpected hour cycle result")}const pt=':host{inline-size:var(--luzmo-calendar-width, var(--calendar-width));display:inline-block}.header{inline-size:100%;align-items:center;display:flex}.title{color:var(--highcontrast-calendar-date-text-color, var(--luzmo-calendar-date-text-color, var(--calendar-date-text-color)));font-size:var(--luzmo-calendar-title-text-size, var(--calendar-title-text-size));font-weight:var(--luzmo-calendar-title-font-weight, var(--calendar-title-font-weight));line-height:var(--luzmo-calendar-title-height, var(--calendar-title-height));text-align:center;white-space:nowrap;text-overflow:ellipsis;flex-grow:1;order:1;margin:0;overflow:hidden}.nextMonth,.prevMonth{transform:var(--logical-rotation)}.nextMonth:not([disabled]),.prevMonth:not([disabled]){color:var(--highcontrast-calendar-button-icon-color, var(--luzmo-calendar-button-icon-color, var(--calendar-button-icon-color)))}.prevMonth{order:0}.nextMonth{order:2}.dayOfWeek{inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));color:var(--highcontrast-calendar-day-title-text-color, var(--luzmo-calendar-day-title-text-color, var(--calendar-day-title-text-color)));font-size:var(--luzmo-calendar-day-title-text-size, var(--calendar-day-title-text-size));font-weight:var(--luzmo-calendar-day-title-text-font-weight, var(--calendar-day-title-text-font-weight));text-transform:uppercase;cursor:default;flex-direction:column;justify-content:flex-end;display:flex;border-block-end:none!important;-webkit-text-decoration:none!important;text-decoration:none!important}:host([title]) .dayOfWeek{text-decoration:underline;letter-spacing:var(--luzmo-calendar-title-text-letter-spacing, var(--calendar-title-text-letter-spacing));border-block-end:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.body{outline:none}.table{table-layout:fixed;border-collapse:collapse;border-spacing:0;-webkit-user-select:none;user-select:none}.table-cell{text-align:center;box-sizing:initial;block-size:var(--luzmo-calendar-day-height, var(--calendar-day-height));inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));padding:var(--luzmo-calendar-day-padding, var(--calendar-day-padding));position:relative}.table-cell:focus{outline:0}.date{box-sizing:border-box;block-size:var(--luzmo-calendar-day-height, var(--calendar-day-height));inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));margin:var(--luzmo-calendar-day-padding, var(--calendar-day-padding));border-radius:var(--luzmo-calendar-day-border-radius, var(--calendar-day-border-radius));border:var(--luzmo-calendar-day-border-size, var(--calendar-day-border-size)) solid transparent;font-size:var(--luzmo-calendar-day-text-size, var(--calendar-day-text-size));line-height:calc(var(--luzmo-calendar-day-width, var(--calendar-day-width)) - var(--luzmo-calendar-day-border-size, var(--calendar-day-border-size)) * 2);white-space:nowrap;cursor:pointer;display:block;position:absolute;inset-block-start:0;inset-inline-start:0}.date:lang(ja),.date:lang(ko),.date:lang(zh){font-size:var(--luzmo-calendar-day-text-size-han, var(--calendar-day-text-size-han))}.date.is-disabled{cursor:default;pointer-events:none}.date.is-outsideMonth{display:none}.date:before{content:"";box-sizing:border-box;inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));block-size:var(--luzmo-calendar-day-height, var(--calendar-day-height));border-radius:var(--luzmo-calendar-day-border-radius, var(--calendar-day-border-radius));border:var(--luzmo-calendar-day-border-size, var(--calendar-day-border-size)) solid transparent;position:absolute;inset-block-start:calc(50% - var(--luzmo-calendar-day-width, var(--calendar-day-width)) / 2);inset-inline-start:calc(50% - var(--luzmo-calendar-day-width, var(--calendar-day-width)) / 2)}.date.is-selected:not(.is-range-selection){font-weight:var(--luzmo-calendar-day-text-font-weight-selected, var(--calendar-day-text-font-weight-selected))}.date.is-selected:not(.is-range-selection):before{display:none}.date.is-today{font-weight:var(--luzmo-calendar-day-today-text-font-weight, var(--calendar-day-today-text-font-weight))}.date.is-range-selection{margin:var(--luzmo-calendar-day-padding, var(--calendar-day-padding)) 0;border-width:var(--luzmo-calendar-border-width-reset, var(--calendar-border-width-reset));line-height:var(--luzmo-calendar-day-height, var(--calendar-day-height));border-radius:var(--luzmo-calendar-border-radius-reset, var(--calendar-border-radius-reset));inline-size:calc(var(--luzmo-calendar-day-width, var(--calendar-day-width)) + var(--luzmo-calendar-day-padding, var(--calendar-day-padding)) * 2)}.date.is-range-selection.is-range-end,.date.is-range-selection.is-range-start,.date.is-range-selection.is-selection-end,.date.is-range-selection.is-selection-start{inline-size:calc(var(--luzmo-calendar-day-width, var(--calendar-day-width)) + var(--luzmo-calendar-day-padding, var(--calendar-day-padding)))}.date.is-range-selection.is-selection-end,.date.is-range-selection.is-selection-start{font-weight:var(--luzmo-calendar-day-text-font-weight-cap-selected, var(--calendar-day-text-font-weight-cap-selected))}.date.is-range-selection.is-selection-end:after,.date.is-range-selection.is-selection-start:after{block-size:var(--luzmo-calendar-day-height, var(--calendar-day-height));inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));border-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width));content:"";display:block;position:absolute;inset-block-start:0}.date.is-range-selection.is-range-start,.date.is-range-selection.is-selection-start{border-start-start-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width));border-end-start-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width));margin-inline-start:var(--luzmo-calendar-day-padding, var(--calendar-day-padding));padding-inline-end:var(--luzmo-calendar-day-padding, var(--calendar-day-padding))}.date.is-range-selection.is-range-start:after,.date.is-range-selection.is-range-start:before,.date.is-range-selection.is-selection-start:after,.date.is-range-selection.is-selection-start:before{inset-inline-start:0}.date.is-range-selection.is-range-end,.date.is-range-selection.is-selection-end{border-start-end-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width));border-end-end-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width));margin-inline-end:var(--luzmo-calendar-day-padding, var(--calendar-day-padding));padding-inline-start:var(--luzmo-calendar-day-padding, var(--calendar-day-padding))}.date.is-range-selection.is-range-end:after,.date.is-range-selection.is-range-end:before,.date.is-range-selection.is-selection-end:after,.date.is-range-selection.is-selection-end:before{inset-inline:auto 0}.date.is-range-selection.is-range-start.is-range-end,.date.is-range-selection.is-selection-end.is-range-start,.date.is-range-selection.is-selection-start.is-range-end,.date.is-range-selection.is-selection-start.is-selection-end{inline-size:var(--luzmo-calendar-day-width, var(--calendar-day-width));border-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width))}.date{color:var(--highcontrast-calendar-day-text-color, var(--luzmo-calendar-day-text-color, var(--calendar-day-text-color)))}.date:active{background-color:var(--highcontrast-calendar-day-background-color-down, var(--luzmo-calendar-day-background-color-down, var(--calendar-day-background-color-down)))}.date.is-selected{color:var(--highcontrast-calendar-day-text-color-selected, var(--luzmo-calendar-day-text-color-selected, var(--calendar-day-text-color-selected)));background:var(--highcontrast-calendar-day-background-color-selected, var(--luzmo-calendar-day-background-color-selected, var(--calendar-day-background-color-selected)))}.date.is-selected:not(.is-range-selection){background:var(--highcontrast-calendar-day-background-color-cap-selected, var(--luzmo-calendar-day-background-color-cap-selected, var(--calendar-day-background-color-cap-selected)));color:var(--highcontrast-calendar-day-text-color-cap-selected, var(--luzmo-calendar-day-text-color-cap-selected, var(--calendar-day-text-color-cap-selected)));border-color:var(--highcontrast-calendar-day-border-color-cap-selected, var(--luzmo-calendar-day-border-color-cap-selected, var(--calendar-day-border-color-cap-selected)))}.date.is-today{color:var(--highcontrast-calendar-day-today-text-color, var(--luzmo-calendar-day-today-text-color, var(--calendar-day-today-text-color)));background-color:var(--highcontrast-calendar-day-today-background-color, var(--luzmo-calendar-day-today-background-color, var(--calendar-day-today-background-color)))}.date.is-today,.date.is-today:before{border-color:var(--highcontrast-calendar-day-today-border-color, var(--luzmo-calendar-day-today-border-color, var(--calendar-day-today-border-color)))}@media (hover: hover){.date:hover{color:var(--highcontrast-calendar-day-text-color-hover, var(--luzmo-calendar-day-text-color-hover, var(--calendar-day-text-color-hover)))}.date:hover:not(.is-selection-end,.is-selection-start):before{background:var(--highcontrast-calendar-day-background-color-hover, var(--luzmo-calendar-day-background-color-hover, var(--calendar-day-background-color-hover)))}.date.is-range-selection:hover:before,.date.is-selected:hover:not(.is-selection-end,.is-selection-start):before{background:var(--highcontrast-calendar-day-background-color-selected-hover, var(--luzmo-calendar-day-background-color-selected-hover, var(--calendar-day-background-color-selected-hover)))}.date.is-today.is-selected:not(.is-range-selection):hover:before{background:var(--highcontrast-calendar-day-today-background-color-selected-hover, var(--luzmo-calendar-day-today-background-color-selected-hover, var(--calendar-day-today-background-color-selected-hover)))}}.date.is-today.is-disabled{color:var(--highcontrast-calendar-day-today-text-color-disabled, var(--luzmo-calendar-day-today-text-color-disabled, var(--calendar-day-today-text-color-disabled)))}.date.is-today.is-disabled,.date.is-today.is-disabled:before{border-color:var(--highcontrast-calendar-day-today-border-color-disabled, var(--luzmo-calendar-day-today-border-color-disabled, var(--calendar-day-today-border-color-disabled)))}.table-cell:focus-within .date:not(.is-range-selection){background:var(--highcontrast-calendar-day-background-color-key-focus, var(--luzmo-calendar-day-background-color-key-focus, var(--calendar-day-background-color-key-focus)));color:var(--highcontrast-calendar-day-text-color-key-focus, var(--luzmo-calendar-day-text-color-key-focus, var(--calendar-day-text-color-key-focus)))}.table-cell:focus-within .date.is-selected:not(.is-range-selection),.table-cell:focus-within .date.is-today:not(.is-range-selection),.table-cell:focus-within .date:not(.is-range-selection),.table-cell:focus-within .date:not(.is-range-selection):active{border-color:var(--highcontrast-calendar-day-border-color-key-focus, var(--luzmo-calendar-day-border-color-key-focus, var(--calendar-day-border-color-key-focus)))}.table-cell:focus-within .date.is-selected:not(.is-range-selection),.table-cell:focus-within .date:not(.is-range-selection):active{color:var(--highcontrast-calendar-day-text-color-selected, var(--luzmo-calendar-day-text-color-selected, var(--calendar-day-text-color-selected)));background:var(--highcontrast-calendar-day-background-color-cap-selected, var(--luzmo-calendar-day-background-color-cap-selected, var(--calendar-day-background-color-cap-selected)));border-color:var(--highcontrast-calendar-day-border-color-key-focus, var(--luzmo-calendar-day-border-color-cap-selected-focus, var(--calendar-day-border-color-cap-selected-focus)))}.table-cell:focus-within .date.is-range-selection:before,.table-cell:focus-within .date.is-selected:before{background:var(--highcontrast-calendar-day-background-color-selected-hover, var(--luzmo-calendar-day-background-color-selected-hover, var(--calendar-day-background-color-selected-hover)))}.table-cell:focus-within .date:before{border-color:var(--highcontrast-calendar-day-border-color-key-focus, var(--luzmo-calendar-day-border-color-key-focus, var(--calendar-day-border-color-key-focus)))}.date.is-disabled{color:var(--highcontrast-calendar-day-text-color-disabled, var(--luzmo-calendar-day-text-color-disabled, var(--calendar-day-text-color-disabled)))}.date.is-selection-end,.date.is-selection-start{color:var(--highcontrast-calendar-day-text-color-cap-selected, var(--luzmo-calendar-day-text-color-cap-selected, var(--calendar-day-text-color-cap-selected)))}.date.is-selection-end:after,.date.is-selection-start:after{background-color:var(--highcontrast-calendar-day-background-color-selected, var(--luzmo-calendar-day-background-color-selected, var(--calendar-day-background-color-selected)))}.date.is-selection-end.is-disabled,.date.is-selection-start.is-disabled{color:var(--highcontrast-calendar-day-text-color-disabled, var(--luzmo-calendar-day-text-color-disabled, var(--calendar-day-text-color-disabled)))}@media (forced-colors: active){.nextMonth,.prevMonth{--highcontrast-calendar-button-icon-color: ButtonText}.date{--highcontrast-calendar-day-background-color-cap-selected: Highlight;--highcontrast-calendar-day-background-color-down: ButtonFace;--highcontrast-calendar-day-background-color-hover: Transparent;--highcontrast-calendar-day-background-color-key-focus: ButtonFace;--highcontrast-calendar-day-background-color-selected-hover: Transparent;--highcontrast-calendar-day-background-color-selected: Highlight;--highcontrast-calendar-day-border-color-key-focus: ButtonText;--highcontrast-calendar-day-text-color-cap-selected: HighlightText;--highcontrast-calendar-day-text-color-disabled: GrayText;--highcontrast-calendar-day-text-color-hover: ButtonText;--highcontrast-calendar-day-text-color-key-focus: ButtonText;--highcontrast-calendar-day-text-color-selected: HighlightText;--highcontrast-calendar-day-text-color: CanvasText;--highcontrast-calendar-date-text-color: CanvasText;--highcontrast-calendar-day-title-text-color: CanvasText;--highcontrast-calendar-day-today-background-color-selected-hover: Highlight;--highcontrast-calendar-day-today-border-color-disabled: GrayText;--highcontrast-calendar-day-today-border-color: ButtonText;--highcontrast-calendar-day-today-text-color-disabled: GrayText;--highcontrast-calendar-day-today-text-color: ButtonText;forced-color-adjust:none}.date.is-range-selection.is-today{color:HighlightText}.date.is-range-selection.is-selection-end:after,.date.is-range-selection.is-selection-start:after{content:none}.date.is-disabled.is-range-selection,.date.is-disabled.is-selected{background:Highlight;color:HighlightText}}:host{--calendar-background-color: var(--luzmo-background-color-white)}:host{font-family:var(--luzmo-font-family);--calendar-day-width: var(--luzmo-component-height);--calendar-day-height: var(--luzmo-component-height);--calendar-border-radius-reset: 0;--calendar-border-width-reset: 0;--calendar-day-border-size: var(--luzmo-border-width);--calendar-margin-y: calc(var(--luzmo-spacing) * 3);--calendar-margin-x: var(--luzmo-component-height);--calendar-day-padding: var(--luzmo-spacing-2);--calendar-width: calc( (var(--calendar-day-width) + var(--calendar-day-padding) * 2) * 7 );--calendar-title-text-letter-spacing: .06em;--calendar-day-title-text-font-weight: bold;--calendar-day-title-text-color: var(--luzmo-font-color-disabled);--calendar-title-height: var(--luzmo-component-height);--calendar-title-font-weight: bold;--calendar-title-text-size: var(--luzmo-font-size);--calendar-day-title-text-size: var(--luzmo-font-size);--calendar-day-text-size-han: var(--luzmo-font-size);--calendar-date-text-color: var(--luzmo-font-color);--calendar-day-text-color: var(--luzmo-font-color);--calendar-day-text-size: var(--luzmo-font-size);--calendar-day-border-radius: var(--luzmo-border-radius);--calendar-day-text-color-selected: var(--luzmo-primary-inverse-color);--calendar-day-text-color-hover: var(--luzmo-font-color-hover);--calendar-day-text-color-cap-selected: var(--luzmo-primary-inverse-color);--calendar-day-border-color-cap-selected: var(--luzmo-primary);--calendar-day-border-color-cap-selected-focus: var(--luzmo-primary-focus);--calendar-day-text-font-weight-selected: var(--bold-font-weight);--calendar-day-text-font-weight-cap-selected: var(--bold-font-weight);--calendar-day-today-text-color: var(--luzmo-primary);--calendar-day-today-background-color: var(--luzmo-background-color-hover);--calendar-day-today-text-font-weight: normal;--calendar-day-today-border-color: transparent;--calendar-day-today-text-color-disabled: var(--luzmo-font-color-disabled);--calendar-day-today-border-color-disabled: transparent;--calendar-day-text-color-disabled: var(--luzmo-font-color-disabled);--calendar-day-text-color-key-focus: var(--luzmo-primary-down);--calendar-day-background-color-cap-selected: var(--luzmo-primary);--calendar-button-icon-color: var(--luzmo-font-color)}:host:dir(rtl),:host([dir=rtl]){--logical-rotation: matrix(-1, 0, 0, 1, 0, 0)}:host([size=s]){--calendar-day-width: var(--luzmo-component-height-s);--calendar-day-height: var(--luzmo-component-height-s);--calendar-day-border-radius: var(--luzmo-border-radius-s);--calendar-title-height: var(--luzmo-component-height-s);--calendar-title-text-size: var(--luzmo-font-size-s);--calendar-day-title-text-size: var(--luzmo-font-size-s);--calendar-day-text-size-han: var(--luzmo-font-size-s);--calendar-day-text-size: var(--luzmo-font-size-s)}:host([size=l]){--calendar-day-width: var(--luzmo-component-height-l);--calendar-day-height: var(--luzmo-component-height-l);--calendar-day-border-radius: var(--luzmo-border-radius-l);--calendar-title-height: var(--luzmo-component-height-l);--calendar-title-text-size: var(--luzmo-font-size-l);--calendar-day-title-text-size: var(--luzmo-font-size-l);--calendar-day-text-size-han: var(--luzmo-font-size-l);--calendar-day-text-size: var(--luzmo-font-size-l)}:host([size=xl]){--calendar-day-width: var(--luzmo-component-height-xl);--calendar-day-height: var(--luzmo-component-height-xl);--calendar-day-border-radius: var(--luzmo-border-radius-xl);--calendar-title-height: var(--luzmo-component-height-xl);--calendar-title-text-size: var(--luzmo-font-size-xl);--calendar-day-title-text-size: var(--luzmo-font-size-xl);--calendar-day-text-size-han: var(--luzmo-font-size-xl);--calendar-day-text-size: var(--luzmo-font-size-xl)}.table-cell span[role=button]{border-radius:var(--luzmo-calendar-day-width, var(--calendar-day-width))}';var xt=Object.defineProperty,wt=Object.getOwnPropertyDescriptor,h=(t,e,a,r)=>{for(var n=r>1?void 0:r?wt(e,a):e,o=t.length-1,d;o>=0;o--)(d=t[o])&&(n=(r?d(e,a,n):d(n))||n);return r&&n&&xt(e,a,n),n};const ye=7;class s extends We.SizedMixin(c.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this.disabled=!1,this.labels={previous:"Previous",next:"Next",today:"Today",selected:"Selected"},this.currentDate=this.today,this.timeZone=Y(),this.weekdays=[],this.currentMonthDates=[],this._isDateFocusIntent=!1,this.numberFormatter=new le.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this._language),this.setNumberFormatter(),this.setWeekdays(),this.setCurrentMonthDates()}static get styles(){return[c.r(pt)]}get _language(){try{return this.language?new Intl.Locale(this.language).language:"en"}catch{return"en"}}get today(){return Ue(this.timeZone)}set isDateFocusIntent(e){this._isDateFocusIntent!==e&&(this._isDateFocusIntent=e,this.requestUpdate("isDateFocusIntent",!e))}get isDateFocusIntent(){return this._isDateFocusIntent}setDateFocusIntent(){this.isDateFocusIntent=!0}resetDateFocusIntent(){this.isDateFocusIntent=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.resetDateFocusIntent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.resetDateFocusIntent)}clear(){this._value=void 0}willUpdate(e){e.has("language")&&(this.setNumberFormatter(),this.setWeekdays(),this.setCurrentMonthDates());const a=e.has("min"),r=e.has("max"),n=e.has("value");(a||r||n)&&(this.convertToCalendarDates(),this.checkDatePropsCompliance(a||r),this.updateCurrentDate());const d=e.get("currentDate");e.has("currentDate")&&(!d||!x(d,this.currentDate))&&(this.setCurrentMonthDates(),this.setAttribute("aria-label",this.monthAndYear))}updated(e){e.has("currentDate")&&this.isDateFocusIntent&&this.focusCurrentDate()}focusCurrentDate(){var a;const e=(a=this.shadowRoot)==null?void 0:a.querySelector('td span[tabindex="0"]');e&&e.focus()}convertToCalendarDates(){this._min=this.min?B(this.min):void 0,this._max=this.max?B(this.max):void 0,this._value=this.value?B(this.value):void 0;const e="AD";this._min=this._min&&A(this._min).set({era:e}),this._max=this._max&&A(this._max).set({era:e}),this._value=this._value&&A(this._value).set({era:e})}checkDatePropsCompliance(e){e&&this._min&&this._max&&(this._min.compare(this._max)<0||(console.warn&&console.warn(this,`<${this.localName}> expects the 'min' to be less than 'max'. Please ensure that 'min' property's date is earlier than 'max' property's date.`),this._min=void 0,this._max=void 0)),this._value&&this.isNonCompliantDate(this._value)&&(console.warn&&console.warn(this,`<${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.`),this._value=void 0)}updateCurrentDate(){if(this._value){this.currentDate=this._value;return}this.isNonCompliantDate(this.today)?this._min?this.currentDate=this._min:this._max&&(this.currentDate=this._max):this.currentDate=this.today}isNonCompliantDate(e){return!!(this._min&&e.compare(this._min)<0||this._max&&e.compare(this._max)>0)}render(){return c.x` ${this.renderCalendarHeader()}${this.renderCalendarGrid()} `}get monthAndYear(){return this.formatDate(this.currentDate,{month:"long",year:"numeric"})}renderCalendarHeader(){return c.x`
19
- <div class="header" @focusin=${this.resetDateFocusIntent}>
20
- <h2
21
- class="title"
22
- aria-live="polite"
23
- aria-atomic="true"
24
- data-test-id="calendar-title"
25
- >
26
- ${this.monthAndYear}
27
- </h2>
28
-
29
- <luzmo-action-button
30
- quiet
31
- size="s"
32
- label=${this.labels.previous}
33
- class="prevMonth"
34
- data-test-id="prev-btn"
35
- ?disabled=${this.isPreviousMonthDisabled}
36
- @click=${this.handlePreviousMonth}
37
- >
38
- <div slot="icon">
39
- <slot name="prev-icon">
40
- <luzmo-icon
41
- block
42
- .size=${this.size}
43
- .icon=${ie.k}
44
- ></luzmo-icon>
45
- </slot>
46
- </div>
47
- </luzmo-action-button>
48
-
49
- <luzmo-action-button
50
- quiet
51
- size="s"
52
- label=${this.labels.next}
53
- class="nextMonth"
54
- data-test-id="next-btn"
55
- ?disabled=${this.isNextMonthDisabled}
56
- @click=${this.handleNextMonth}
57
- >
58
- <div slot="icon">
59
- <slot name="next-icon">
60
- <luzmo-icon
61
- block
62
- .size=${this.size}
63
- .icon=${ie.S}
64
- ></luzmo-icon>
65
- </slot>
66
- </div>
67
- </luzmo-action-button>
68
- </div>
69
- `}get isPreviousMonthDisabled(){if(this.disabled)return!0;const e=w(this.currentDate),a=e.subtract({months:1});return e.era!==a.era||p(e,a)}get isNextMonthDisabled(){if(this.disabled)return!0;const e=Ze(this.currentDate),a=e.add({months:1});return e.era!==a.era||p(e,a)}handlePreviousMonth(){let e=w(this.currentDate).subtract({months:1});this._value&&x(e,this._value)?e=this._value:x(e,this.today)&&(e=this.today),this.currentDate=e}handleNextMonth(){let e=w(this.currentDate).add({months:1});this._value&&x(e,this._value)?e=this._value:x(e,this.today)&&(e=this.today),this.currentDate=e}renderCalendarGrid(){return c.x`
70
- <table
71
- role="grid"
72
- aria-readonly="true"
73
- aria-disabled=${this.disabled}
74
- role="presentation"
75
- class="table body"
76
- @keydown=${this.handleKeydown}
77
- >
78
- ${this.renderCalendarTableHead()} ${this.renderCalendarTableBody()}
79
- </table>
80
- `}renderCalendarTableHead(){return c.x`
81
- <thead role="presentation">
82
- <tr role="row">
83
- ${this.renderWeekdayColumns()}
84
- </tr>
85
- </thead>
86
- `}renderWeekdayColumns(){return this.weekdays.map(e=>this.renderWeekdayColumn(e))}renderWeekdayColumn(e){return c.x`
87
- <th role="columnheader" scope="col" class="table-cell">
88
- <abbr class="dayOfWeek" title=${e.long}> ${e.narrow} </abbr>
89
- </th>
90
- `}renderCalendarTableBody(){return c.x`
91
- <tbody role="presentation">
92
- ${this.renderCalendarWeeks()}
93
- </tbody>
94
- `}renderCalendarWeeks(){return this.currentMonthDates.map(e=>c.x`
95
- <tr role="row">
96
- ${this.renderDatesInWeek(e)}
97
- </tr>
98
- `)}renderDatesInWeek(e){return e.map(a=>this.renderCalendarTableCell(a))}parseDateCellProperties(e){const a={isOutsideMonth:!1,isSelected:!1,isToday:!1,isDisabled:!1,isTabbable:!1};return a.isOutsideMonth=e.month!==this.currentDate.month,a.isOutsideMonth||(a.isDisabled=this.disabled||this.isMinLimitReached(e)||this.isMaxLimitReached(e),a.isToday=p(e,this.today),a.isDisabled)||(a.isTabbable=p(e,this.currentDate),a.isSelected=!!(this._value&&p(this._value,e))),a}renderCalendarTableCell(e){const{isOutsideMonth:a,isSelected:r,isToday:n,isDisabled:o,isTabbable:d}=this.parseDateCellProperties(e),l={date:!0,"is-outsideMonth":a,"is-selected":r,"is-today":n,"is-disabled":o};let i="";n?i=`${this.labels.today}, `:r&&(i=`${this.labels.selected}, `);const y=i+this.formatDate(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"});return c.x`
99
- <td role="gridcell" class="table-cell">
100
- <span
101
- role="button"
102
- tabindex=${Pe.o(a?void 0:d?"0":"-1")}
103
- aria-label=${y}
104
- aria-disabled=${a||o}
105
- data-value=${e.toString()}
106
- @mousedown=${this.handleDaySelect}
107
- >
108
- <span role="presentation" class=${Oe.e(l)}>
109
- ${this.formatNumber(e.day)}
110
- </span>
111
- </span>
112
- </td>
113
- `}handleKeydown(e){switch(this.setDateFocusIntent(),e.code){case"ArrowLeft":{this.moveToPreviousDay();break}case"ArrowDown":{this.moveToNextWeek();break}case"ArrowRight":{this.moveToNextDay();break}case"ArrowUp":{this.moveToPreviousWeek();break}case"Space":case"Enter":{this.handleDaySelect(e);break}}}handleDaySelect(e){if(this.disabled){e.preventDefault();return}const a=e.target.closest('span[role="button"]'),r=a&&a.dataset.value;if(!r)return;const n=B(r);if(this._value&&p(this._value,n)||this.isMinLimitReached(n)||this.isMaxLimitReached(n)){e.preventDefault();return}this._value=n,this.value=n.toString(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}}))}moveToPreviousDay(){const e=this.currentDate.subtract({days:1});this.canMoveBackToDate(e)&&(this.currentDate=e)}moveToNextDay(){const e=this.currentDate.add({days:1});this.canMoveForwardToDate(e)&&(this.currentDate=e)}moveToPreviousWeek(){const e=this.currentDate.subtract({weeks:1});if(this.canMoveBackToDate(e)){this.currentDate=e;return}let a=e.add({days:1});for(;!this.canMoveBackToDate(a);)a=a.add({days:1});this.currentDate=a}moveToNextWeek(){const e=this.currentDate.add({weeks:1});if(this.canMoveForwardToDate(e)){this.currentDate=e;return}let a=e.subtract({days:1});for(;!this.canMoveForwardToDate(a);)a=a.subtract({days:1});this.currentDate=a}canMoveBackToDate(e){return this.isMinLimitReached(e)?!1:x(this.currentDate,e)||!this.isPreviousMonthDisabled}canMoveForwardToDate(e){return this.isMaxLimitReached(e)?!1:x(this.currentDate,e)||!this.isNextMonthDisabled}setWeekdays(){const e=se(this.currentDate,this._language);this.weekdays=[...Array.from({length:ye}).keys()].map(a=>{const r=e.add({days:a});return{narrow:this.formatDate(r,{weekday:"narrow"}),long:this.formatDate(r,{weekday:"long"})}})}setCurrentMonthDates(){const e=Ve(this.currentDate,this._language),a=Array.from({length:e});for(const r of Array.from({length:e}).keys())a[r]=this.getDatesInWeek(this.currentDate,r);this.currentMonthDates=a}getDatesInWeek(e,a){const r=[];let n=se(w(e).add({weeks:a}),this._language);for(;r.length<ye;){r.push(n);const o=n.add({days:1});if(p(n,o))break;n=o}return r}isMinLimitReached(e){return!!(this._min&&e.compare(this._min)<0)}isMaxLimitReached(e){return!!(this._max&&e.compare(this._max)>0)}formatDate(e,a){return new Be(this._language,a).format(e.toDate(this.timeZone))}setNumberFormatter(){this.numberFormatter=new le.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this._language)}formatNumber(e){return this.numberFormatter.format(e)}}h([c.n({type:String})],s.prototype,"value",2);h([c.n({type:String})],s.prototype,"min",2);h([c.n({type:String})],s.prototype,"max",2);h([c.n({type:Boolean,reflect:!0})],s.prototype,"disabled",2);h([c.n({type:String,reflect:!0})],s.prototype,"language",2);h([c.n({type:Object})],s.prototype,"labels",2);h([C.r()],s.prototype,"currentDate",2);h([C.r()],s.prototype,"_value",2);h([C.r()],s.prototype,"_min",2);h([C.r()],s.prototype,"_max",2);h([C.r()],s.prototype,"weekdays",2);h([C.r()],s.prototype,"currentMonthDates",2);h([C.r()],s.prototype,"isDateFocusIntent",1);customElements.get("luzmo-calendar")||customElements.define("luzmo-calendar",s);exports.$11d87f3f76e88657$export$84c95a83c799e074=ze;exports.$11d87f3f76e88657$export$93522d1a439f3617=A;exports.$11d87f3f76e88657$export$b21e0b124e224484=z;exports.$14e0f24ef4ac5c92$export$461939dd4422153=ve;exports.$14e0f24ef4ac5c92$export$5412ac11713b72ad=qe;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Y;exports.$14e0f24ef4ac5c92$export$b2f4953d301981d5=je;exports.$35ea8db9cb2ccb90$export$680ea196effce5f=oe;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=M;exports.$35ea8db9cb2ccb90$export$ca871e8dbb80966f=O;exports.$35ea8db9cb2ccb90$export$d3b7288e7994edea=k;exports.$fae977aafc393c5c$export$5adfdab05168c219=it;exports.$fae977aafc393c5c$export$6b862160d295c8e=B;exports.$fb18d541ea1ad717$export$ad991b66133851cf=Be;exports.LuzmoCalendar=s;
@@ -1,18 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- "use strict";const t=Symbol("language resolver updated");class n{constructor(e){this.language=document.documentElement.lang||navigator.language,this.host=e,this.host.addController(this)}hostConnected(){this.resolveLanguage()}hostDisconnected(){var e;(e=this.unsubscribe)==null||e.call(this)}resolveLanguage(){const e=new CustomEvent("luzmo-language-context",{bubbles:!0,composed:!0,detail:{callback:(s,o)=>{const a=this.language;this.language=s,this.unsubscribe=o,this.host.requestUpdate(t,a)}},cancelable:!0});this.host.dispatchEvent(e)}}exports.LanguageResolutionController=n;exports.languageResolverUpdatedSymbol=t;
@@ -1,69 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- import { n as o, x as s } from "./base-WsynuqaS.js";
19
- import { o as e } from "./if-defined-DOaE2coe.js";
20
- var $ = Object.defineProperty, l = (i, r, p, d) => {
21
- for (var t = void 0, a = i.length - 1, n; a >= 0; a--)
22
- (n = i[a]) && (t = n(r, p, t) || t);
23
- return t && $(r, p, t), t;
24
- };
25
- function b(i) {
26
- class r extends i {
27
- renderAnchor({
28
- id: d,
29
- className: t,
30
- ariaHidden: a,
31
- labelledby: n,
32
- tabindex: f,
33
- // prettier-ignore
34
- anchorContent: h = s`<slot></slot>`
35
- }) {
36
- return s`
37
- <a
38
- id=${d}
39
- class=${e(t)}
40
- href=${e(this.href)}
41
- download=${e(this.download)}
42
- target=${e(this.target)}
43
- aria-label=${e(this.label)}
44
- aria-labelledby=${e(n)}
45
- aria-hidden=${e(a ? "true" : void 0)}
46
- tabindex=${e(f)}
47
- referrerpolicy=${e(this.referrerpolicy)}
48
- rel=${e(this.rel)}
49
- >${h}</a>
50
- `;
51
- }
52
- }
53
- return l([
54
- o()
55
- ], r.prototype, "download"), l([
56
- o()
57
- ], r.prototype, "label"), l([
58
- o()
59
- ], r.prototype, "href"), l([
60
- o()
61
- ], r.prototype, "target"), l([
62
- o()
63
- ], r.prototype, "referrerpolicy"), l([
64
- o()
65
- ], r.prototype, "rel"), r;
66
- }
67
- export {
68
- b as L
69
- };
@@ -1,32 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- "use strict";const t=require("./base-CBCg3yyw.cjs"),r=require("./if-defined-C9YGdo33.cjs");var f=Object.defineProperty,n=(l,e,s,d)=>{for(var o=void 0,i=l.length-1,a;i>=0;i--)(a=l[i])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function c(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:i,labelledby:a,tabindex:p,anchorContent:h=t.x`<slot></slot>`}){return t.x`
19
- <a
20
- id=${d}
21
- class=${r.o(o)}
22
- href=${r.o(this.href)}
23
- download=${r.o(this.download)}
24
- target=${r.o(this.target)}
25
- aria-label=${r.o(this.label)}
26
- aria-labelledby=${r.o(a)}
27
- aria-hidden=${r.o(i?"true":void 0)}
28
- tabindex=${r.o(p)}
29
- referrerpolicy=${r.o(this.referrerpolicy)}
30
- rel=${r.o(this.rel)}
31
- >${h}</a>
32
- `}}return n([t.n()],e.prototype,"download"),n([t.n()],e.prototype,"label"),n([t.n()],e.prototype,"href"),n([t.n()],e.prototype,"target"),n([t.n()],e.prototype,"referrerpolicy"),n([t.n()],e.prototype,"rel"),e}exports.LikeAnchor=c;
@@ -1,229 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- import { b as o } from "./base-WsynuqaS.js";
19
- const s = {
20
- icon: [
21
- 256,
22
- 512,
23
- "M120 327L4 209c-5-5-5-12 0-17l7-7c4-5 12-5 17 0l100 102 100-102c5-5 13-5 17 0l8 7c4 5 4 13 0 17L137 327c-5 5-13 5-17 0z"
24
- ],
25
- name: "angle-down"
26
- }, v = {
27
- icon: [
28
- 256,
29
- 512,
30
- "M137 185l116 118c4 5 4 12 0 17l-8 7c-4 5-12 5-17 0L128 225 28 327c-5 5-13 5-17 0l-8-7c-4-5-4-13 0-17l117-118c4-5 12-5 17 0z"
31
- ],
32
- name: "angle-up"
33
- }, z = {
34
- icon: [
35
- 196,
36
- 512,
37
- "M167 265L49 381c-5 4-12 4-17 0l-7-8c-5-4-5-12 0-17l102-100L25 156c-5-5-5-13 0-17l7-8c5-4 12-4 17 1l118 116c5 4 5 12 0 17z"
38
- ],
39
- name: "angle-right"
40
- }, t = {
41
- icon: [
42
- 196,
43
- 512,
44
- "m25 265 118 116c5 4 12 4 17 0l7-8c5-4 5-12 0-17L65 256 167 156c5-5 5-13 0-17l-7-8c-5-4-12-4-17 1L25 248c-5 4-5 12 0 17z"
45
- ],
46
- name: "angle-left"
47
- }, M = {
48
- icon: [
49
- 24,
50
- 24,
51
- "m6 6 16 16M3.3 4.7l7.3 7.3-7.3 7.3c-1 1 .5 2.3 1.4 1.4l7.3-7.3 7.3 7.3c1 1 2.3-.5 1.4-1.4L13.4 12l7.3-7.3c1-1-.5-2.3-1.4-1.4L12 10.6 4.7 3.3c-.9-1-2.3.5-1.4 1.4Z"
52
- ],
53
- name: "close-12"
54
- }, A = {
55
- icon: [
56
- 28,
57
- 28,
58
- "m6 6 16 16M5.3 6.7l7.3 7.3-7.3 7.3c-1 1 .5 2.3 1.4 1.4l7.3-7.3 7.3 7.3c1 1 2.3-.5 1.4-1.4L15.4 14l7.3-7.3c1-1-.5-2.3-1.4-1.4L14 12.6 6.7 5.3c-.9-1-2.3.5-1.4 1.4Z"
59
- ],
60
- name: "close-14"
61
- }, L = {
62
- icon: [
63
- 32,
64
- 32,
65
- "m6 6 16 16M5.3 6.7l9.3 9.3-9.3 9.3c-1 1 .5 2.3 1.4 1.4l9.3-9.3 9.3 9.3c1 1 2.3-.5 1.4-1.4L17.4 16l9.3-9.3c1-1-.5-2.3-1.4-1.4L16 14.6 6.7 5.3c-.9-1-2.3.5-1.4 1.4Z"
66
- ],
67
- name: "close-16"
68
- }, Z = {
69
- icon: [
70
- 32,
71
- 32,
72
- "M30 4a3 3 0 0 0-4 0L12 21l-6-6a3 3 0 0 0-4 0 3 3 0 0 0 0 4l8 9a3 3 0 0 0 4 0L30 8a3 3 0 0 0 0-4z"
73
- ],
74
- name: "check"
75
- }, g = {
76
- icon: [32, 32, "M7 13a3 3 0 1 0 0 6h18a3 3 0 1 0 0-6H7z"],
77
- name: "dash"
78
- }, u = {
79
- icon: [
80
- 32,
81
- 32,
82
- "M16 2a1 1 0 0 0-.9.5l-14 26A1 1 0 0 0 2 30h28a1 1 0 0 0 1-1.5l-14.1-26A1 1 0 0 0 16 2zm-1 7h2c.6 0 1 .4 1 1v10.5c0 .6-.4 1-1 1h-2a1 1 0 0 1-1-1V10c0-.6.4-1 1-1zm0 14h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1z"
83
- ],
84
- name: "alert"
85
- }, C = {
86
- icon: [
87
- 32,
88
- 32,
89
- "M16 .51c-1.1 0-2.21.68-2.9 2.04l-12 24C-.2 29.15 1.2 32 5 32h22c3.8 0 5.2-2.85 3.9-5.45l-12-24C18.2 1.2 17.1.51 16 .51zm0 1.99c.4 0 .79.31 1.1.95l12 24c.72 1.43.04 2.55-2.1 2.55H5c-2.14 0-2.82-1.12-2.1-2.55l12-24c.31-.64.7-.95 1.1-.95zm0 7.52c-.5 0-1 .33-1 .98v10c0 1.3 2 1.3 2 0V11c0-.65-.5-.98-1-.98zM16 24a1.5 1.5 0 0 0-1.5 1.5A1.5 1.5 0 0 0 16 27a1.5 1.5 0 0 0 1.5-1.5A1.5 1.5 0 0 0 16 24z"
90
- ],
91
- name: "alert-outline"
92
- }, $ = {
93
- icon: [
94
- 32,
95
- 32,
96
- "M 6 14 A 2 2 0 0 0 4 16 A 2 2 0 0 0 6 18 A 2 2 0 0 0 8 16 A 2 2 0 0 0 6 14 z M 16 14 A 2 2 0 0 0 14 16 A 2 2 0 0 0 16 18 A 2 2 0 0 0 18 16 A 2 2 0 0 0 16 14 z M 26 14 A 2 2 0 0 0 24 16 A 2 2 0 0 0 26 18 A 2 2 0 0 0 28 16 A 2 2 0 0 0 26 14 z"
97
- ],
98
- name: "ellipsis-horizontal"
99
- }, f = {
100
- icon: [
101
- 32,
102
- 32,
103
- "M16 0a16 16 0 1 0 0 32 16 16 0 0 0 0-32Zm0 2a14 14 0 0 1 14 14 14 14 0 0 1-14 14A14 14 0 0 1 2 16 14 14 0 0 1 16 2Zm0 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM15 15v9c0 1.3 2 1.3 2 0v-9c0-1.3-2-1.3-2 0z"
104
- ],
105
- name: "info-circle-outline"
106
- }, V = {
107
- icon: [
108
- 32,
109
- 32,
110
- "M31.4 2a1 1 0 0 0-1.1.3l-28 28A1 1 0 0 0 3 32h28c.6 0 1-.4 1-1V3a1 1 0 0 0-.6-1Z"
111
- ],
112
- name: "corner-triangle"
113
- }, h = {
114
- icon: [
115
- 30,
116
- 32,
117
- "M8 1a1 1 0 0 0-1 1v2H5C2.26 4 0 6.26 0 9v17c0 2.75 2.25 5 5 5h20a5 5 0 0 0 5-5V9a5 5 0 0 0-5-5h-2V2a1 1 0 1 0-2 0v2H9V2a1 1 0 0 0-1-1ZM5 6h2v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h12v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h2c1.68 0 3 1.32 3 3v2H2V9c0-1.68 1.33-3 3-3zm-3 7h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 19h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 25h7v4H5c-1.67 0-3-1.32-3-3zm9 0h8v4h-8zm10 0h7v1c0 1.68-1.32 3-3 3h-4z"
118
- ]
119
- }, p = {
120
- icon: h.icon,
121
- name: "calendar"
122
- }, w = {
123
- icon: [
124
- 32,
125
- 32,
126
- "M7 0C3.14 0 0 3.14 0 7v18c0 3.86 3.14 7 7 7h18a7 7 0 0 0 7-7V7c0-3.86-3.14-7-7-7zm18 8a2 2 0 0 1 1.41.59 2 2 0 0 1 0 2.82l-12 12a2 2 0 0 1-2.83 0l-5.99-6a2 2 0 0 1 0-2.82 2 2 0 0 1 2.83 0L13 19.17 23.6 8.6A2 2 0 0 1 25 8Z"
127
- ],
128
- name: "checkbox-checked"
129
- }, b = {
130
- icon: [
131
- 32,
132
- 32,
133
- "M7 0a7 7 0 0 0-7 7v18a7 7 0 0 0 7 7h18a7 7 0 0 0 7-7V7a7 7 0 0 0-7-7zm0 2h18c2.79 0 5 2.22 5 5v18c0 2.79-2.21 5-5 5H7c-2.78 0-5-2.21-5-5V7c0-2.78 2.22-5 5-5z"
134
- ],
135
- name: "checkbox"
136
- }, x = {
137
- icon: [
138
- 32,
139
- 32,
140
- "M16 0a16 16 0 1 0 0 32 16 16 0 0 0 0-32Zm0 2a14 14 0 0 1 14 14 14 14 0 0 1-14 14A14 14 0 0 1 2 16 14 14 0 0 1 16 2Zm5.2 8.4-6.3 9-4.2-4.1c-1-1-2.3.5-1.4 1.4l5 5a1 1 0 0 0 1.5-.1l7-10c.8-1.1-.9-2.2-1.6-1.2z"
141
- ],
142
- name: "check-circle-outline"
143
- }, H = {
144
- icon: [
145
- 24,
146
- 24,
147
- "M9.8 0C4.4 0 0 4.4 0 9.8a9.81 9.81 0 0 0 15.98 7.59l6.3 6.32a1 1 0 0 0 1.43 0 1 1 0 0 0 0-1.42l-6.32-6.3A9.81 9.81 0 0 0 9.8 0Zm0 2c4.32 0 7.8 3.48 7.8 7.8s-3.48 7.8-7.8 7.8A7.79 7.79 0 1 1 9.8 2z"
148
- ],
149
- name: "search-12"
150
- }, d = {
151
- icon: [
152
- 28,
153
- 28,
154
- "M11.4 0C5.12 0 0 5.12 0 11.4c0 6.3 5.12 11.4 11.4 11.4a11.2 11.2 0 0 0 7.22-2.77l7.68 7.69a1 1 0 0 0 1.66-.46 1 1 0 0 0-.24-.96l-7.69-7.68a11.2 11.2 0 0 0 2.78-7.22C22.8 5.12 17.69 0 11.4 0Zm0 2c5.21 0 9.4 4.2 9.4 9.4 0 5.21-4.19 9.4-9.4 9.4-5.2 0-9.4-4.19-9.4-9.4C2 6.2 6.2 2 11.4 2Z"
155
- ],
156
- name: "search-14"
157
- }, y = {
158
- icon: [
159
- 32,
160
- 32,
161
- "M21.3 21.3a1 1 0 0 0 0 1.41l9 9a1 1 0 0 0 1.4 0 1 1 0 0 0 0-1.41l-8.99-9a1 1 0 0 0-1.42 0zM13 0C5.83 0 0 5.83 0 13s5.83 13 13 13 13-5.83 13-13S20.17 0 13 0Zm0 2c6.09 0 11 4.91 11 11S19.1 24 13 24 2 19.1 2 13 6.91 2 13 2z"
162
- ],
163
- name: "search"
164
- }, k = {
165
- icon: [
166
- 24,
167
- 24,
168
- "m7 7 14 14M5 7l4.9 5-5 5c-1.3 1.3.8 3.4 2.2 2l4.9-4.9 5 5c1.3 1.3 3.4-.8 2-2.2L14.2 12l5-5c1.3-1.3-.8-3.4-2.2-2L12 9.8l-5-5c-1.3-1.3-3.5.8-2 2.2Z"
169
- ],
170
- name: "clear-12"
171
- }, S = {
172
- icon: [
173
- 28,
174
- 28,
175
- "m6 8 5.9 6-6 6c-1.3 1.3.8 3.4 2.2 2l5.9-5.9 6 6c1.3 1.3 3.4-.8 2-2.2L16.2 14l6-6c1.3-1.3-.8-3.4-2.2-2L14 11.8l-6-6c-1.3-1.3-3.5.8-2 2.2Z"
176
- ],
177
- name: "clear-14"
178
- }, B = {
179
- icon: [
180
- 32,
181
- 32,
182
- "m6.6 9.4 6.6 6.6-6.6 6.6c-1.9 1.8 1 4.7 2.8 2.8l6.6-6.6 6.6 6.6c1.8 1.9 4.7-1 2.8-2.8L18.8 16l6.6-6.6c1.9-1.9-1-4.6-2.8-2.8L16 13.2 9.4 6.6c-1.8-1.8-4.7 1-2.8 2.8Z"
183
- ],
184
- name: "clear-16"
185
- };
186
- function D(c, { prefix: a, className: l, color: i } = {}) {
187
- return o`<svg
188
- aria-hidden="true"
189
- focusable="false"
190
- data-icon="${c.name}"
191
- role="img"
192
- xmlns="http://www.w3.org/2000/svg"
193
- viewBox="0 0 ${c.icon[0]} ${c.icon[1]}"
194
- class="${l ? l + " " : ""}${a || "luzmo-icon"} ${a || "luzmo-icon"}-${c.name}"
195
- style="overflow: visible; box-sizing: content-box;height: 1em; vertical-align: var(--luzmo-icon-vertical-align, var(--icon-vertical-align, -.125em));"
196
- fill="${i || "currentColor"}">
197
- ${(Array.isArray(c.icon[2]) ? c.icon[2] : [c.icon[2]]).map((m, n) => {
198
- var e;
199
- return o`<path d="${m}" style="fill:${c.icon[3] && (e = c.icon[3]) != null && e[n] ? c.icon[3][n] : "currentColor"}"></path>`;
200
- })}
201
- </svg>`;
202
- }
203
- export {
204
- u as $,
205
- Z as B,
206
- x as C,
207
- k as D,
208
- L as F,
209
- C as I,
210
- $ as K,
211
- g as R,
212
- z as S,
213
- s as T,
214
- M as a,
215
- v as b,
216
- V as c,
217
- S as f,
218
- y as h,
219
- t as k,
220
- H as l,
221
- d as n,
222
- p as o,
223
- f as p,
224
- w as v,
225
- B as w,
226
- A as x,
227
- D as y,
228
- b as z
229
- };
@@ -1,29 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- "use strict";const o=require("./base-CBCg3yyw.cjs"),h={icon:[256,512,"M120 327L4 209c-5-5-5-12 0-17l7-7c4-5 12-5 17 0l100 102 100-102c5-5 13-5 17 0l8 7c4 5 4 13 0 17L137 327c-5 5-13 5-17 0z"],name:"angle-down"},r={icon:[256,512,"M137 185l116 118c4 5 4 12 0 17l-8 7c-4 5-12 5-17 0L128 225 28 327c-5 5-13 5-17 0l-8-7c-4-5-4-13 0-17l117-118c4-5 12-5 17 0z"],name:"angle-up"},v={icon:[196,512,"M167 265L49 381c-5 4-12 4-17 0l-7-8c-5-4-5-12 0-17l102-100L25 156c-5-5-5-13 0-17l7-8c5-4 12-4 17 1l118 116c5 4 5 12 0 17z"],name:"angle-right"},z={icon:[196,512,"m25 265 118 116c5 4 12 4 17 0l7-8c5-4 5-12 0-17L65 256 167 156c5-5 5-13 0-17l-7-8c-5-4-12-4-17 1L25 248c-5 4-5 12 0 17z"],name:"angle-left"},t={icon:[24,24,"m6 6 16 16M3.3 4.7l7.3 7.3-7.3 7.3c-1 1 .5 2.3 1.4 1.4l7.3-7.3 7.3 7.3c1 1 2.3-.5 1.4-1.4L13.4 12l7.3-7.3c1-1-.5-2.3-1.4-1.4L12 10.6 4.7 3.3c-.9-1-2.3.5-1.4 1.4Z"],name:"close-12"},s={icon:[28,28,"m6 6 16 16M5.3 6.7l7.3 7.3-7.3 7.3c-1 1 .5 2.3 1.4 1.4l7.3-7.3 7.3 7.3c1 1 2.3-.5 1.4-1.4L15.4 14l7.3-7.3c1-1-.5-2.3-1.4-1.4L14 12.6 6.7 5.3c-.9-1-2.3.5-1.4 1.4Z"],name:"close-14"},M={icon:[32,32,"m6 6 16 16M5.3 6.7l9.3 9.3-9.3 9.3c-1 1 .5 2.3 1.4 1.4l9.3-9.3 9.3 9.3c1 1 2.3-.5 1.4-1.4L17.4 16l9.3-9.3c1-1-.5-2.3-1.4-1.4L16 14.6 6.7 5.3c-.9-1-2.3.5-1.4 1.4Z"],name:"close-16"},A={icon:[32,32,"M30 4a3 3 0 0 0-4 0L12 21l-6-6a3 3 0 0 0-4 0 3 3 0 0 0 0 4l8 9a3 3 0 0 0 4 0L30 8a3 3 0 0 0 0-4z"],name:"check"},L={icon:[32,32,"M7 13a3 3 0 1 0 0 6h18a3 3 0 1 0 0-6H7z"],name:"dash"},Z={icon:[32,32,"M16 2a1 1 0 0 0-.9.5l-14 26A1 1 0 0 0 2 30h28a1 1 0 0 0 1-1.5l-14.1-26A1 1 0 0 0 16 2zm-1 7h2c.6 0 1 .4 1 1v10.5c0 .6-.4 1-1 1h-2a1 1 0 0 1-1-1V10c0-.6.4-1 1-1zm0 14h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1z"],name:"alert"},u={icon:[32,32,"M16 .51c-1.1 0-2.21.68-2.9 2.04l-12 24C-.2 29.15 1.2 32 5 32h22c3.8 0 5.2-2.85 3.9-5.45l-12-24C18.2 1.2 17.1.51 16 .51zm0 1.99c.4 0 .79.31 1.1.95l12 24c.72 1.43.04 2.55-2.1 2.55H5c-2.14 0-2.82-1.12-2.1-2.55l12-24c.31-.64.7-.95 1.1-.95zm0 7.52c-.5 0-1 .33-1 .98v10c0 1.3 2 1.3 2 0V11c0-.65-.5-.98-1-.98zM16 24a1.5 1.5 0 0 0-1.5 1.5A1.5 1.5 0 0 0 16 27a1.5 1.5 0 0 0 1.5-1.5A1.5 1.5 0 0 0 16 24z"],name:"alert-outline"},g={icon:[32,32,"M 6 14 A 2 2 0 0 0 4 16 A 2 2 0 0 0 6 18 A 2 2 0 0 0 8 16 A 2 2 0 0 0 6 14 z M 16 14 A 2 2 0 0 0 14 16 A 2 2 0 0 0 16 18 A 2 2 0 0 0 18 16 A 2 2 0 0 0 16 14 z M 26 14 A 2 2 0 0 0 24 16 A 2 2 0 0 0 26 18 A 2 2 0 0 0 28 16 A 2 2 0 0 0 26 14 z"],name:"ellipsis-horizontal"},C={icon:[32,32,"M16 0a16 16 0 1 0 0 32 16 16 0 0 0 0-32Zm0 2a14 14 0 0 1 14 14 14 14 0 0 1-14 14A14 14 0 0 1 2 16 14 14 0 0 1 16 2Zm0 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM15 15v9c0 1.3 2 1.3 2 0v-9c0-1.3-2-1.3-2 0z"],name:"info-circle-outline"},$={icon:[32,32,"M31.4 2a1 1 0 0 0-1.1.3l-28 28A1 1 0 0 0 3 32h28c.6 0 1-.4 1-1V3a1 1 0 0 0-.6-1Z"],name:"corner-triangle"},V={icon:[30,32,"M8 1a1 1 0 0 0-1 1v2H5C2.26 4 0 6.26 0 9v17c0 2.75 2.25 5 5 5h20a5 5 0 0 0 5-5V9a5 5 0 0 0-5-5h-2V2a1 1 0 1 0-2 0v2H9V2a1 1 0 0 0-1-1ZM5 6h2v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h12v1a1 1 0 0 0 1 1 1 1 0 0 0 1-1V6h2c1.68 0 3 1.32 3 3v2H2V9c0-1.68 1.33-3 3-3zm-3 7h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 19h7v4H2Zm9 0h8v4h-8zm10 0h7v4h-7ZM2 25h7v4H5c-1.67 0-3-1.32-3-3zm9 0h8v4h-8zm10 0h7v1c0 1.68-1.32 3-3 3h-4z"]},b={icon:V.icon,name:"calendar"},f={icon:[32,32,"M7 0C3.14 0 0 3.14 0 7v18c0 3.86 3.14 7 7 7h18a7 7 0 0 0 7-7V7c0-3.86-3.14-7-7-7zm18 8a2 2 0 0 1 1.41.59 2 2 0 0 1 0 2.82l-12 12a2 2 0 0 1-2.83 0l-5.99-6a2 2 0 0 1 0-2.82 2 2 0 0 1 2.83 0L13 19.17 23.6 8.6A2 2 0 0 1 25 8Z"],name:"checkbox-checked"},w={icon:[32,32,"M7 0a7 7 0 0 0-7 7v18a7 7 0 0 0 7 7h18a7 7 0 0 0 7-7V7a7 7 0 0 0-7-7zm0 2h18c2.79 0 5 2.22 5 5v18c0 2.79-2.21 5-5 5H7c-2.78 0-5-2.21-5-5V7c0-2.78 2.22-5 5-5z"],name:"checkbox"},p={icon:[32,32,"M16 0a16 16 0 1 0 0 32 16 16 0 0 0 0-32Zm0 2a14 14 0 0 1 14 14 14 14 0 0 1-14 14A14 14 0 0 1 2 16 14 14 0 0 1 16 2Zm5.2 8.4-6.3 9-4.2-4.1c-1-1-2.3.5-1.4 1.4l5 5a1 1 0 0 0 1.5-.1l7-10c.8-1.1-.9-2.2-1.6-1.2z"],name:"check-circle-outline"},x={icon:[24,24,"M9.8 0C4.4 0 0 4.4 0 9.8a9.81 9.81 0 0 0 15.98 7.59l6.3 6.32a1 1 0 0 0 1.43 0 1 1 0 0 0 0-1.42l-6.32-6.3A9.81 9.81 0 0 0 9.8 0Zm0 2c4.32 0 7.8 3.48 7.8 7.8s-3.48 7.8-7.8 7.8A7.79 7.79 0 1 1 9.8 2z"],name:"search-12"},H={icon:[28,28,"M11.4 0C5.12 0 0 5.12 0 11.4c0 6.3 5.12 11.4 11.4 11.4a11.2 11.2 0 0 0 7.22-2.77l7.68 7.69a1 1 0 0 0 1.66-.46 1 1 0 0 0-.24-.96l-7.69-7.68a11.2 11.2 0 0 0 2.78-7.22C22.8 5.12 17.69 0 11.4 0Zm0 2c5.21 0 9.4 4.2 9.4 9.4 0 5.21-4.19 9.4-9.4 9.4-5.2 0-9.4-4.19-9.4-9.4C2 6.2 6.2 2 11.4 2Z"],name:"search-14"},d={icon:[32,32,"M21.3 21.3a1 1 0 0 0 0 1.41l9 9a1 1 0 0 0 1.4 0 1 1 0 0 0 0-1.41l-8.99-9a1 1 0 0 0-1.42 0zM13 0C5.83 0 0 5.83 0 13s5.83 13 13 13 13-5.83 13-13S20.17 0 13 0Zm0 2c6.09 0 11 4.91 11 11S19.1 24 13 24 2 19.1 2 13 6.91 2 13 2z"],name:"search"},y={icon:[24,24,"m7 7 14 14M5 7l4.9 5-5 5c-1.3 1.3.8 3.4 2.2 2l4.9-4.9 5 5c1.3 1.3 3.4-.8 2-2.2L14.2 12l5-5c1.3-1.3-.8-3.4-2.2-2L12 9.8l-5-5c-1.3-1.3-3.5.8-2 2.2Z"],name:"clear-12"},k={icon:[28,28,"m6 8 5.9 6-6 6c-1.3 1.3.8 3.4 2.2 2l5.9-5.9 6 6c1.3 1.3 3.4-.8 2-2.2L16.2 14l6-6c1.3-1.3-.8-3.4-2.2-2L14 11.8l-6-6c-1.3-1.3-3.5.8-2 2.2Z"],name:"clear-14"},S={icon:[32,32,"m6.6 9.4 6.6 6.6-6.6 6.6c-1.9 1.8 1 4.7 2.8 2.8l6.6-6.6 6.6 6.6c1.8 1.9 4.7-1 2.8-2.8L18.8 16l6.6-6.6c1.9-1.9-1-4.6-2.8-2.8L16 13.2 9.4 6.6c-1.8-1.8-4.7 1-2.8 2.8Z"],name:"clear-16"};function B(c,{prefix:a,className:l,color:i}={}){return o.b`<svg
19
- aria-hidden="true"
20
- focusable="false"
21
- data-icon="${c.name}"
22
- role="img"
23
- xmlns="http://www.w3.org/2000/svg"
24
- viewBox="0 0 ${c.icon[0]} ${c.icon[1]}"
25
- class="${l?l+" ":""}${a||"luzmo-icon"} ${a||"luzmo-icon"}-${c.name}"
26
- style="overflow: visible; box-sizing: content-box;height: 1em; vertical-align: var(--luzmo-icon-vertical-align, var(--icon-vertical-align, -.125em));"
27
- fill="${i||"currentColor"}">
28
- ${(Array.isArray(c.icon[2])?c.icon[2]:[c.icon[2]]).map((m,n)=>{var e;return o.b`<path d="${m}" style="fill:${c.icon[3]&&(e=c.icon[3])!=null&&e[n]?c.icon[3][n]:"currentColor"}"></path>`})}
29
- </svg>`}exports.$=Z;exports.B=A;exports.C0=p;exports.D2=y;exports.F=M;exports.I=u;exports.K=g;exports.R=L;exports.S=v;exports.T=h;exports.b=r;exports.f2=k;exports.h2=d;exports.k=z;exports.l2=x;exports.n2=H;exports.o0=b;exports.p1=C;exports.v0=f;exports.w=t;exports.w2=S;exports.x=s;exports.y1=$;exports.y3=B;exports.z0=w;
@@ -1,30 +0,0 @@
1
- /*! * Lucero - The design system for Luzmo.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
- * This license allows users with a current active Luzmo account to use Lucero.
7
- * This license terminates automatically if a user no longer has an active Luzmo account.
8
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
- * SOFTWARE.
17
- * */
18
- "use strict";const d=require("./base-CBCg3yyw.cjs"),r=require("./if-defined-C9YGdo33.cjs"),a=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs");class l{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return d.x`
19
- <div
20
- id=${r.o(this.isInternal?this.id:void 0)}
21
- aria-live="assertive"
22
- >
23
- <slot
24
- name=${e?"negative-help-text":`pass-through-help-text-${s.randomID()}`}
25
- @slotchange=${this.handleSlotchange}
26
- >
27
- <slot name="help-text"></slot>
28
- </slot>
29
- </div>
30
- `}addId(){const e=this.helpTextElement?this.helpTextElement.id:this.id;this.conditionId=a.conditionAttributeWithId(this.host,"aria-describedby",e),this.host.hasAttribute("tabindex")&&(this.previousTabindex=Number.parseFloat(this.host.getAttribute("tabindex"))),this.host.tabIndex=0}removeId(){this.conditionId&&(this.conditionId(),delete this.conditionId),!this.helpTextElement&&(this.previousTabindex?this.host.tabIndex=this.previousTabindex:this.host.removeAttribute("tabindex"))}handleHelpText(e){if(this.isInternal)return;this.helpTextElement&&this.helpTextElement.id===this.id&&this.helpTextElement.removeAttribute("id"),this.removeId();const t=e.assignedElements()[0];this.helpTextElement=t,t&&(t.id||(t.id=this.id),this.addId())}handleNegativeHelpText(e){if(e.name!=="negative-help-text")return;e.assignedElements().forEach(t=>t.variant="negative")}}function o(n,{mode:e}={mode:"internal"}){class i extends n{constructor(){super(...arguments),this.helpTextManager=new l(this,{mode:e})}get helpTextId(){return this.helpTextManager.id}renderHelpText(h){return this.helpTextManager.render(h)}}return i}exports.ManageHelpText=o;