@solid-design-system/components 6.22.0 → 6.22.1

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 (287) hide show
  1. package/cdn/chunks/chunk.23WKPZET.js +1 -0
  2. package/cdn/chunks/chunk.AHMUV4CN.js +2 -0
  3. package/cdn/components/datepicker/datepicker-converters.d.ts +12 -0
  4. package/cdn/components/datepicker/datepicker-converters.js +1 -0
  5. package/cdn/components/datepicker/datepicker.js +1 -1
  6. package/cdn/custom-elements.json +1767 -1483
  7. package/cdn/solid-components.bundle.js +28 -28
  8. package/cdn/solid-components.iife.js +27 -27
  9. package/cdn/solid-components.js +1 -1
  10. package/cdn/vscode.html-custom-data.json +159 -159
  11. package/cdn/web-types.json +642 -564
  12. package/cdn-versioned/chunks/chunk.23WKPZET.js +1 -0
  13. package/cdn-versioned/chunks/chunk.2IFJTWWI.js +2 -2
  14. package/cdn-versioned/chunks/chunk.2Q64C7PW.js +2 -2
  15. package/cdn-versioned/chunks/chunk.2SEVUMWS.js +2 -2
  16. package/cdn-versioned/chunks/chunk.2UC7ID2H.js +2 -2
  17. package/cdn-versioned/chunks/chunk.3UAQXMAF.js +2 -2
  18. package/cdn-versioned/chunks/chunk.4LLZ2ILW.js +2 -2
  19. package/cdn-versioned/chunks/chunk.4OE2TU3Y.js +2 -2
  20. package/cdn-versioned/chunks/chunk.5CJ4UEYT.js +2 -2
  21. package/cdn-versioned/chunks/chunk.6HSHV3NX.js +3 -3
  22. package/cdn-versioned/chunks/chunk.6PB7EWTQ.js +1 -1
  23. package/cdn-versioned/chunks/chunk.7DKBOZJU.js +2 -2
  24. package/cdn-versioned/chunks/chunk.7LZHW3Q5.js +1 -1
  25. package/cdn-versioned/chunks/chunk.AGTHQN5U.js +2 -2
  26. package/cdn-versioned/chunks/chunk.AHMUV4CN.js +2 -0
  27. package/cdn-versioned/chunks/chunk.AO2OON4N.js +5 -5
  28. package/cdn-versioned/chunks/chunk.APOMDHNP.js +1 -1
  29. package/cdn-versioned/chunks/chunk.BOWHXMXY.js +2 -2
  30. package/cdn-versioned/chunks/chunk.BS3GY6J5.js +5 -5
  31. package/cdn-versioned/chunks/chunk.CW7N5I3S.js +2 -2
  32. package/cdn-versioned/chunks/chunk.CXFLSM56.js +2 -2
  33. package/cdn-versioned/chunks/chunk.D4SBGWDF.js +2 -2
  34. package/cdn-versioned/chunks/chunk.DDU5T7TW.js +2 -2
  35. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  36. package/cdn-versioned/chunks/chunk.E3RBLJOD.js +2 -2
  37. package/cdn-versioned/chunks/chunk.EBMYXBFR.js +2 -2
  38. package/cdn-versioned/chunks/chunk.EDP2BY4Q.js +1 -1
  39. package/cdn-versioned/chunks/chunk.ENE5YY4Y.js +9 -9
  40. package/cdn-versioned/chunks/chunk.EPVQ4QAS.js +2 -2
  41. package/cdn-versioned/chunks/chunk.ES62UWOT.js +2 -2
  42. package/cdn-versioned/chunks/chunk.FEXFNF27.js +2 -2
  43. package/cdn-versioned/chunks/chunk.GXY2VZH2.js +2 -2
  44. package/cdn-versioned/chunks/chunk.ICWUJ66F.js +2 -2
  45. package/cdn-versioned/chunks/chunk.J6KIY4UA.js +2 -2
  46. package/cdn-versioned/chunks/chunk.JFN54TP3.js +3 -3
  47. package/cdn-versioned/chunks/chunk.JHDF277H.js +1 -1
  48. package/cdn-versioned/chunks/chunk.JQW6SYSE.js +2 -2
  49. package/cdn-versioned/chunks/chunk.L7BTB6LI.js +2 -2
  50. package/cdn-versioned/chunks/chunk.LH5RKLIB.js +2 -2
  51. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  52. package/cdn-versioned/chunks/chunk.MC7A5NMS.js +2 -2
  53. package/cdn-versioned/chunks/chunk.MLNVOR7M.js +2 -2
  54. package/cdn-versioned/chunks/chunk.OJGPDUWV.js +2 -2
  55. package/cdn-versioned/chunks/chunk.OMRKG6ND.js +2 -2
  56. package/cdn-versioned/chunks/chunk.POBQCTPL.js +3 -3
  57. package/cdn-versioned/chunks/chunk.PXFYL6KY.js +2 -2
  58. package/cdn-versioned/chunks/chunk.Q7E6F2HW.js +1 -1
  59. package/cdn-versioned/chunks/chunk.R6ZEBMRH.js +2 -2
  60. package/cdn-versioned/chunks/chunk.RKMV24FY.js +2 -2
  61. package/cdn-versioned/chunks/chunk.RRIIBUZG.js +2 -2
  62. package/cdn-versioned/chunks/chunk.S6JJWCTI.js +2 -2
  63. package/cdn-versioned/chunks/chunk.SCHC5WSJ.js +1 -1
  64. package/cdn-versioned/chunks/chunk.SOQN353H.js +2 -2
  65. package/cdn-versioned/chunks/chunk.UTS7NBOJ.js +1 -1
  66. package/cdn-versioned/chunks/chunk.UTXIVBR2.js +1 -1
  67. package/cdn-versioned/chunks/chunk.VFMCDN7W.js +2 -2
  68. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  69. package/cdn-versioned/chunks/chunk.WHOK4XT7.js +2 -2
  70. package/cdn-versioned/chunks/chunk.WIHSK6PN.js +2 -2
  71. package/cdn-versioned/chunks/chunk.WYUWPKVY.js +2 -2
  72. package/cdn-versioned/chunks/chunk.XICZDG3E.js +2 -2
  73. package/cdn-versioned/chunks/chunk.XJAJO727.js +1 -1
  74. package/cdn-versioned/chunks/chunk.YAANK3U6.js +2 -2
  75. package/cdn-versioned/chunks/chunk.ZIC3N6YJ.js +2 -2
  76. package/cdn-versioned/chunks/chunk.ZSCCD7CU.js +2 -2
  77. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  78. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  79. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  80. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  81. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  82. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  83. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  84. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  85. package/cdn-versioned/components/button/button.d.ts +1 -1
  86. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  87. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  88. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  89. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  90. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  91. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  92. package/cdn-versioned/components/datepicker/datepicker-converters.d.ts +12 -0
  93. package/cdn-versioned/components/datepicker/datepicker-converters.js +1 -0
  94. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  95. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  96. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  97. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  98. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  99. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  100. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  101. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  102. package/cdn-versioned/components/header/header.d.ts +1 -1
  103. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  104. package/cdn-versioned/components/include/include.d.ts +1 -1
  105. package/cdn-versioned/components/input/input.d.ts +1 -1
  106. package/cdn-versioned/components/link/link.d.ts +1 -1
  107. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  108. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  109. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  110. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  111. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  112. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  113. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  114. package/cdn-versioned/components/option/option.d.ts +1 -1
  115. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  116. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  117. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  118. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  119. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  120. package/cdn-versioned/components/range/range.d.ts +1 -1
  121. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  122. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  123. package/cdn-versioned/components/select/select.d.ts +1 -1
  124. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  125. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  126. package/cdn-versioned/components/step/step.d.ts +1 -1
  127. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  128. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  129. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  130. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  131. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  132. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  133. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  134. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  135. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  136. package/cdn-versioned/components/video/video.d.ts +1 -1
  137. package/cdn-versioned/custom-elements.json +1987 -1703
  138. package/cdn-versioned/internal/form.js +2 -2
  139. package/cdn-versioned/solid-components.bundle.js +88 -88
  140. package/cdn-versioned/solid-components.css +2 -2
  141. package/cdn-versioned/solid-components.iife.js +88 -88
  142. package/cdn-versioned/solid-components.js +1 -1
  143. package/cdn-versioned/vscode.html-custom-data.json +253 -253
  144. package/cdn-versioned/web-types.json +777 -699
  145. package/dist/chunks/{chunk.C7RAFK2U.js → chunk.LQBN4KWJ.js} +5 -78
  146. package/dist/chunks/chunk.TJ2FFWLY.js +85 -0
  147. package/dist/components/datepicker/datepicker-converters.d.ts +12 -0
  148. package/dist/components/datepicker/datepicker-converters.js +11 -0
  149. package/dist/components/datepicker/datepicker.js +2 -1
  150. package/dist/custom-elements.json +1767 -1483
  151. package/dist/solid-components.js +24 -23
  152. package/dist/vscode.html-custom-data.json +159 -159
  153. package/dist/web-types.json +642 -564
  154. package/dist-versioned/chunks/chunk.2PFOTMKD.js +33 -33
  155. package/dist-versioned/chunks/chunk.2XO44VKK.js +2 -2
  156. package/dist-versioned/chunks/chunk.3MUWC7ZQ.js +1 -1
  157. package/dist-versioned/chunks/chunk.3NFW33UT.js +5 -5
  158. package/dist-versioned/chunks/chunk.3P3ZLPSI.js +5 -5
  159. package/dist-versioned/chunks/chunk.4CYDINDB.js +2 -2
  160. package/dist-versioned/chunks/chunk.5NTF57TJ.js +1 -1
  161. package/dist-versioned/chunks/chunk.6XTGETVW.js +11 -11
  162. package/dist-versioned/chunks/chunk.7AGLFNJK.js +3 -3
  163. package/dist-versioned/chunks/chunk.7BSLFKU5.js +10 -10
  164. package/dist-versioned/chunks/chunk.7BT4WAQS.js +3 -3
  165. package/dist-versioned/chunks/chunk.AGSJ3MWY.js +2 -2
  166. package/dist-versioned/chunks/chunk.AJ6IUEXD.js +5 -5
  167. package/dist-versioned/chunks/chunk.AQ5RLVDO.js +1 -1
  168. package/dist-versioned/chunks/chunk.B4TM2WST.js +5 -5
  169. package/dist-versioned/chunks/chunk.BR5PPGBX.js +7 -7
  170. package/dist-versioned/chunks/chunk.BS2ZPKOG.js +11 -11
  171. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  172. package/dist-versioned/chunks/chunk.CMHJNHR6.js +25 -25
  173. package/dist-versioned/chunks/chunk.D2XKPNOP.js +6 -6
  174. package/dist-versioned/chunks/chunk.DG6HQUYC.js +10 -10
  175. package/dist-versioned/chunks/chunk.DYG4FWRG.js +2 -2
  176. package/dist-versioned/chunks/chunk.EAJ3CM6N.js +4 -4
  177. package/dist-versioned/chunks/chunk.EDHEUF6G.js +25 -25
  178. package/dist-versioned/chunks/chunk.EEEIIJMB.js +2 -2
  179. package/dist-versioned/chunks/chunk.EXZ6VFXN.js +1 -1
  180. package/dist-versioned/chunks/chunk.FRLOS6P7.js +2 -2
  181. package/dist-versioned/chunks/chunk.G5R47M2B.js +6 -6
  182. package/dist-versioned/chunks/chunk.GFHNKXRG.js +8 -8
  183. package/dist-versioned/chunks/chunk.H3SVUQP3.js +5 -5
  184. package/dist-versioned/chunks/chunk.H53WQBDK.js +1 -1
  185. package/dist-versioned/chunks/chunk.HDGNHXRQ.js +11 -11
  186. package/dist-versioned/chunks/chunk.I4T5RT5D.js +4 -4
  187. package/dist-versioned/chunks/chunk.J3RX4Y6S.js +2 -2
  188. package/dist-versioned/chunks/chunk.J5A33XU2.js +4 -4
  189. package/dist-versioned/chunks/chunk.JQBYEVD6.js +3 -3
  190. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  191. package/dist-versioned/chunks/chunk.KVKO4ZLN.js +10 -10
  192. package/dist-versioned/chunks/chunk.KWD3E7PP.js +6 -6
  193. package/dist-versioned/chunks/{chunk.C7RAFK2U.js → chunk.LQBN4KWJ.js} +15 -88
  194. package/dist-versioned/chunks/chunk.M4O3MDU3.js +13 -13
  195. package/dist-versioned/chunks/chunk.MLDYTATL.js +7 -7
  196. package/dist-versioned/chunks/chunk.NWI2U6GV.js +4 -4
  197. package/dist-versioned/chunks/chunk.POKSS32D.js +2 -2
  198. package/dist-versioned/chunks/chunk.RMSZCVAI.js +5 -5
  199. package/dist-versioned/chunks/chunk.RS7M5R4R.js +5 -5
  200. package/dist-versioned/chunks/chunk.RU5GF26P.js +5 -5
  201. package/dist-versioned/chunks/chunk.SB4P52KM.js +1 -1
  202. package/dist-versioned/chunks/chunk.SLUGXG7E.js +2 -2
  203. package/dist-versioned/chunks/chunk.TE6LK5OI.js +14 -14
  204. package/dist-versioned/chunks/chunk.TJ2FFWLY.js +85 -0
  205. package/dist-versioned/chunks/chunk.TJI3UYUJ.js +5 -5
  206. package/dist-versioned/chunks/chunk.TQGIML36.js +2 -2
  207. package/dist-versioned/chunks/chunk.UF4HXV3V.js +10 -10
  208. package/dist-versioned/chunks/chunk.UI7JLJDL.js +6 -6
  209. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  210. package/dist-versioned/chunks/chunk.UWOJEWNV.js +2 -2
  211. package/dist-versioned/chunks/chunk.VTBH4LAP.js +1 -1
  212. package/dist-versioned/chunks/chunk.W6PBLDS5.js +12 -12
  213. package/dist-versioned/chunks/chunk.WXXHOSE3.js +4 -4
  214. package/dist-versioned/chunks/chunk.X3SWQRRP.js +3 -3
  215. package/dist-versioned/chunks/chunk.YSZ5CL7K.js +1 -1
  216. package/dist-versioned/chunks/chunk.YT23TSJR.js +5 -5
  217. package/dist-versioned/chunks/chunk.ZOLOAEEA.js +3 -3
  218. package/dist-versioned/chunks/chunk.ZXAAMEZI.js +3 -3
  219. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  220. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  221. package/dist-versioned/components/animation/animation.d.ts +1 -1
  222. package/dist-versioned/components/audio/audio.d.ts +1 -1
  223. package/dist-versioned/components/badge/badge.d.ts +1 -1
  224. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  225. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  226. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  227. package/dist-versioned/components/button/button.d.ts +1 -1
  228. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  229. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  230. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  231. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  232. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  233. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  234. package/dist-versioned/components/datepicker/datepicker-converters.d.ts +12 -0
  235. package/dist-versioned/components/datepicker/datepicker-converters.js +11 -0
  236. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  237. package/dist-versioned/components/datepicker/datepicker.js +2 -1
  238. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  239. package/dist-versioned/components/divider/divider.d.ts +1 -1
  240. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  241. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  242. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  243. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  244. package/dist-versioned/components/header/header.d.ts +1 -1
  245. package/dist-versioned/components/icon/icon.d.ts +1 -1
  246. package/dist-versioned/components/include/include.d.ts +1 -1
  247. package/dist-versioned/components/input/input.d.ts +1 -1
  248. package/dist-versioned/components/link/link.d.ts +1 -1
  249. package/dist-versioned/components/loader/loader.d.ts +1 -1
  250. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  251. package/dist-versioned/components/menu/menu.d.ts +1 -1
  252. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  253. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  254. package/dist-versioned/components/notification/notification.d.ts +1 -1
  255. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  256. package/dist-versioned/components/option/option.d.ts +1 -1
  257. package/dist-versioned/components/popup/popup.d.ts +1 -1
  258. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  259. package/dist-versioned/components/radio/radio.d.ts +1 -1
  260. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  261. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  262. package/dist-versioned/components/range/range.d.ts +1 -1
  263. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  264. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  265. package/dist-versioned/components/select/select.d.ts +1 -1
  266. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  267. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  268. package/dist-versioned/components/step/step.d.ts +1 -1
  269. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  270. package/dist-versioned/components/switch/switch.d.ts +1 -1
  271. package/dist-versioned/components/tab/tab.d.ts +1 -1
  272. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  273. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  274. package/dist-versioned/components/tag/tag.d.ts +1 -1
  275. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  276. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  277. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  278. package/dist-versioned/components/video/video.d.ts +1 -1
  279. package/dist-versioned/custom-elements.json +1987 -1703
  280. package/dist-versioned/internal/form.js +2 -2
  281. package/dist-versioned/solid-components.css +2 -2
  282. package/dist-versioned/solid-components.js +24 -23
  283. package/dist-versioned/vscode.html-custom-data.json +253 -253
  284. package/dist-versioned/web-types.json +777 -699
  285. package/package.json +1 -1
  286. package/cdn/chunks/chunk.D4I2KYVZ.js +0 -2
  287. package/cdn-versioned/chunks/chunk.D4I2KYVZ.js +0 -2
@@ -0,0 +1 @@
1
+ var m={fromAttribute(r){if(!r)return null;let t=r.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,n=new Date(+t[1],+t[2]-1,+t[3]);return n.getFullYear()!==+t[1]||n.getMonth()!==+t[2]-1||n.getDate()!==+t[3]?null:e},toAttribute(r){return r!=null?r:""}},d={fromAttribute(r){if(!r)return null;let i=r.trim().replace(/[./]/g,"-"),t=i.match(/^(\d{2})-(\d{4})$/),e,n;if(t)e=Number(t[1]),n=Number(t[2]);else{if(t=i.match(/^(\d{4})-(\d{2})$/),!t)return null;n=Number(t[1]),e=Number(t[2])}return!n||!e||e<1||e>12?null:new Date(n,e-1,1)},toAttribute(r){if(!r)return"";let i=r.getFullYear(),t=String(r.getMonth()+1).padStart(2,"0");return`${i}-${t}`}},f={fromAttribute(r){if(!r)return[];let i=[],t=r.trim();if(t.startsWith("["))try{let n=JSON.parse(t);Array.isArray(n)&&(i=n.map(String))}catch(n){return[]}else i=t.split(/[\s,]+/).map(n=>n.trim()).filter(Boolean);let e=[];for(let n of i){let a=n.replace(/[-/]/g,".").split(".");if(a.length!==3)continue;let[s,o,l]=a.map(Number);if(!s||!o||!l)continue;let u=new Date(s,o-1,l);if(u.getFullYear()!==s||u.getMonth()!==o-1||u.getDate()!==l)continue;let c=`${s}-${String(o).padStart(2,"0")}-${String(l).padStart(2,"0")}`;e.push(c)}return e},toAttribute(r){return r?r.join(","):""}};export{m as a,d as b,f as c};
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk.WWGARXPI.js";import{a as z,b as K,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as U}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.VAM5SM3O.js";import{a as x}from"./chunk.UFTAQNZB.js";import{a as F}from"./chunk.NYKJXI3Q.js";import{a as H,b,c as E,d as Y,h as A}from"./chunk.XJAJO727.js";import{b as q,e as V,i as R}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new U(this,"label","help-text","tooltip");this.formControlController=new N(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.viewMonth=null;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=a.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(n=>{var s,l;return n instanceof HTMLElement&&(((s=n.classList)==null?void 0:s.contains("nav"))||((l=n.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,g,y,m;if(this.disabled||this.visuallyDisabled||this.readonly){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,i=e.value,n=(g=e.selectionStart)!=null?g:i.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),c=d.slice(8,16),f=this.buildDmyFromDigits(u),p=this.buildDmyFromDigits(c),M;u.length===0?M="":u.length<8?M=f:c.length>0?M=`${f} - ${p}`:M=s?f:`${f} -`;let I=this.countDigitsBeforeCaret(i,n),D;if(I<=8){let v=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(v,f.length)}else{let v=u.length<8?f.length:f.length+3,S=Math.min(I-8,8),w=this.digitIndexToDmyCaretPos(S);D=v+Math.min(w,p.length)}this.inputValue=M;let $=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(f)){let v=this.dmyToIso(f),S=v?a.parseLocalISO(v):null;S&&!this.isDisabled(S)&&this.inMinMax(S)&&this.rangeStart!==v&&(this.rangeStart=v,this.previewEnd=null,this.viewMonth=new Date(S.getFullYear(),S.getMonth(),1),this.focusedDate=a.startOfDayLocal(S),$=!0)}else this.rangeStart&&(this.rangeStart=null,$=!0),this.rangeEnd&&(this.rangeEnd=null,$=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)&&this.rangeStart){let v=a.parseLocalISO(this.rangeStart),S=this.dmyToIso(p),w=S?a.parseLocalISO(S):null;if(!!w&&!this.isDisabled(w)&&this.inMinMax(w)){let[k,T]=a.compareDates(v,w)<=0?[v,w]:[w,v],P=a.isSameDay(k,T);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled(k,T)){let C=a.toLocalISODate(a.startOfDayLocal(k)),_=a.toLocalISODate(a.startOfDayLocal(T));(this.rangeStart!==C||this.rangeEnd!==_)&&(this.rangeStart=C,this.rangeEnd=_,this.viewMonth=new Date(T.getFullYear(),T.getMonth(),1),this.focusedDate=a.startOfDayLocal(T),$=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,$=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),$&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var S;let v=(S=this.input)!=null?S:e;v&&(v.value=this.inputValue,v.setSelectionRange(D,D))})})}else{let d=e,u=d.value,c=(m=d.selectionStart)!=null?m:u.length,f=u.replace(/\D/g,"").slice(0,8),p=f.slice(0,2),M=f.slice(2,4),I=f.slice(4,8),D="";p.length>0&&(D+=p,p.length===2&&(D+=".")),M.length>0&&p.length===2&&(D+=M,M.length===2&&(D+=".")),I.length>0&&p.length===2&&M.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let $=this.inputValue||"";this.inputValue=D;let v=c,S=L=>{let C=[];for(let _=0;_<L.length;_++)L[_]==="."&&C.push(_);return C},w=S($),O=S(D),k=w.filter(L=>L<c).length,P=O.filter(L=>L<c).length-k;if(P>0?v+=P:!w.includes(c)&&O.includes(c)&&(v+=1),v=Math.min(Math.max(0,v),D.length),requestAnimationFrame(()=>{var C;let L=(C=this.input)!=null?C:d;L&&(L.value=this.inputValue,L.setSelectionRange(v,v))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let L=this.parseInputText(D);this.applyParsedInput(L)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let d=this.rangeStart?a.parseLocalISO(this.rangeStart):null,u=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;d&&!u?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}`):d&&u&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(u)}`)}else if(this.value){let d=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(d)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{let e=t.detail;e&&(this.currentPlacement=e)};this.handleHeaderKeyDown=(t,e,i,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){n&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(i):this.setYear(i))}};this.onKeyDown=t=>{var s,l;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,n=new Date(this.focusedDate);switch(e){case"ArrowLeft":n.setDate(n.getDate()-1);break;case"ArrowRight":n.setDate(n.getDate()+1);break;case"ArrowUp":n.setDate(n.getDate()-7);break;case"ArrowDown":n.setDate(n.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:i=!1}if(i){t.preventDefault();let h=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(n.getMonth()!==h.getMonth()||n.getFullYear()!==h.getFullYear()){let d=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let y=a.startOfDayLocal(n);y.getTime()!==((l=this.focusedDate)==null?void 0:l.getTime())&&(this.focusedDate=y);let m=y.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(m),this.requestUpdate(),requestAnimationFrame(()=>{let d=this.shadowRoot,u=d==null?void 0:d.querySelector("button.day.focused");u==null||u.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled||this.readonly)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){var l;super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(n,s),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}handleOpenChange(){this.popup&&(this.popup.active=this.open&&!this.disabled&&!this.visuallyDisabled)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleViewMonthChange(){var i;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&a.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&a.parseLocalISO(this.rangeStart)||this.value&&a.parseLocalISO(this.value)||this.today;if(!t)return;let e=a.clampDateToMonth(t,this.viewMonth);e.getTime()!==((i=this.focusedDate)==null?void 0:i.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var i;let e=this.input;if(e){e.value=(i=this.inputValue)!=null?i:"";let n=e.value.length;e.setSelectionRange(n,n)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,i=t!=null?t:e;i&&(this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1),this.focusedDate=a.startOfDayLocal(i)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let n=this.input;if(n){n.value=(s=this.inputValue)!=null?s:"";let l=n.value.length;n.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return a.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return a.startOfDayLocal(s);if(typeof s=="number")return a.startOfDayLocal(new Date(s));if(typeof s=="string"){let l=this.parseISO(s);return l?a.startOfDayLocal(l):null}return null},i=e(this.min),n=e(this.max);return!(i&&t<i||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${n}`;return this.disabledDatesSet.has(s)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let i="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+i},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),i=this.ordinal(e),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,n=e[(i-20)%10]||e[i]||e[0];return t+n}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let i=JSON.parse(e);Array.isArray(i)&&(t=i)}catch(i){t=[]}else e.length>0&&(t=e.split(",").map(i=>i.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let i=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),n=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,n)<=0;){if(this.isDisabled(s))return!0;s.setDate(s.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=a.parseLocalISO(t);if(e||(e=a.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let i=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${n}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let i=Number(e[1]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,i);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==i)return null;let h=a.startOfDayLocal(l);return a.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),n=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return s&&l?`${s} ${n} ${l}`:s&&!l?`${s} ${n}`:""}parseInputText(t){var n,s;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let g=this.dmyToIso(h);return g?{start:g,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",g=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,m=g?this.dmyToIso(g):null;return h&&!y?{start:null,end:null,valid:!1}:g&&!m?{start:null,end:null,valid:!1}:{start:y,end:m,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let i=this.dmyToIso(e);return i?{single:i,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,g,y,m;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=d=>{if(!d)return!0;let u=a.parseLocalISO(d);return!(!this.inMinMax(u)||this.isDisabled(u))},i=!1;if(this.range){let d=(h=t.start)!=null?h:null,u=(g=t.end)!=null?g:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let c=d?a.parseLocalISO(d):null,f=u?a.parseLocalISO(u):null;if(c&&f){if(a.compareDates(c,f)>0){let I=c;c=f,f=I}if(!this.allowSameDayRange&&a.isSameDay(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let p=c?a.toLocalISODate(a.startOfDayLocal(c)):null,M=f?a.toLocalISODate(a.startOfDayLocal(f)):null;if(this.rangeStart!==p||this.rangeEnd!==M){this.rangeStart=p,this.rangeEnd=M,this.previewEnd=null,i=!0;let I=(y=c!=null?c:f)!=null?y:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=a.startOfDayLocal(I),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let n=(m=t.single)!=null?m:null;if(!e(n))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=n?a.parseLocalISO(n):null,l=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,i=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.emit("sd-select",{detail:{value:this.value,date:s!=null?s:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),i}buildDmyFromDigits(t){let e=t.slice(0,8),i=e.slice(0,2),n=e.slice(2,4),s=e.slice(4,8),l=i;return n.length&&(l+="."+n),s.length&&(l+="."+s),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var i,n;((n=(i=t.composedPath)==null?void 0:i.call(t))!=null?n:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled||this.readonly){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled||this.readonly){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&this.show(),this.emit("sd-focus")}setMonth(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear(),e.getMonth()+t,1);if(i.getMonth()===e.getMonth()&&i.getFullYear()===e.getFullYear())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-change",{detail:{month:i}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear()+t,e.getMonth(),1);if(i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var n;let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,l=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;l?t=a.startOfDayLocal(l):s&&(t=a.startOfDayLocal(s))}let e=(n=this.viewMonth)!=null?n:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),l=s.flat().find(h=>h.getMonth()===e.getMonth()&&a.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=a.startOfDayLocal(l);else{let h=s.flat().find(g=>g.getMonth()===e.getMonth()&&!this.isDisabled(g));t=h?a.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));l==null||l.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=a.startOfDayLocal(t),i=a.toLocalISODate(e);if(this.value===i)return;this.value=i;let n=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(n),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let s=this.input;s&&(s.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=s.value.length;s.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let g=l.value.length;l.setSelectionRange(g,g)})}))});return}if(i&&!n){if(this.isDisabled(e))return;if(a.isSameDay(i,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let d=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${d}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var c;let u=this.input;u&&(u.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=u.value.length;u.setSelectionRange(f,f)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let m=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${m}`,40),this.announceSelect(`${this.termEndSelected()}: ${m}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let d=this.input;d&&(d.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=d.value.length;d.setSelectionRange(c,c)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(h),this.previewEnd=null;let g=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${y}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var d;let m=this.input;m&&(m.value=(d=this.inputValue)!=null?d:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=m.value.length;m.setSelectionRange(u,u)})}))});return}if(i&&n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let g=l.value.length;l.setSelectionRange(g,g)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=new Date(n.getFullYear(),n.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var y;let e=(y=this.firstDayOfWeek)!=null?y:1,i=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(i),s=(i.getDay()-e+7)%7;n.setDate(i.getDate()-s);let l=[],h=n;for(let m=0;m<6;m++){let d=[];for(let u=0;u<7;u++)d.push(new Date(h)),h.setDate(h.getDate()+1);l.push(d)}let g=m=>m.every(d=>d.getMonth()!==t.getMonth());for(;l.length>0&&g(l[l.length-1]);)l.pop();return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var n;let t=(n=this.firstDayOfWeek)!=null?n:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){i.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(l=>l.getMonth()===e.getMonth()&&a.isSameDay(l,this.today)&&!this.isDisabled(l));if(i)return a.startOfDayLocal(i);let n=t.flat().find(l=>l.getMonth()===e.getMonth()&&!this.isDisabled(l));return n?a.startOfDayLocal(n):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!i){let n=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var d,u;let t=(d=this.viewMonth)!=null?d:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),n=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,l=this.rangeStart?this.parseISO(this.rangeStart):null,h=this.rangeEnd?this.parseISO(this.rangeEnd):null,g=this.previewEnd,y=c=>!this.range||!l||h||!g?!1:a.isBetweenInclusive(c,l,g),m=this.getTabTargetDayForCurrentView(e);return V`<div part="datepicker" class="${x("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(u=this.currentPlacement)!=null&&u.startsWith("bottom")?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius","border-primary")}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${i}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${i}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${n.map((c,f)=>V`<div role="columnheader" aria-colindex="${f+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${c}" title="${c}" id="${"col-"+(f+1)}">${c}</div>`)}</div>${e.map((c,f)=>V`<div class="grid-row grid grid-cols-7 ${f===0?"mt-2":""}" role="row" aria-rowindex="${f+2}">${c.map((p,M)=>{let I=p.getMonth()===t.getMonth(),D=this.isDisabled(p)||!this.inMinMax(p),$=a.isSameDay(p,this.focusedDate),v=a.isSameDay(p,this.today),S=!this.range&&s?a.isSameDay(p,s):!1,w=this.range&&l?a.isSameDay(p,l):!1,O=this.range&&h?a.isSameDay(p,h):!1,k=this.range&&l&&h?a.isBetweenInclusive(p,l,h):!1,T=y(p)&&!D,P=-1,L=m&&a.isSameDay(p,m);(this.tabbingIntoGrid&&L||!this.tabbingIntoGrid&&$)&&(P=0);let C=this.isWeekend(p),_=p.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=w?this.localize.term("startDateSelected"):O?this.localize.term("endDateSelected"):void 0;return V`<button type="button" part="day" class="${x("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",w||O?$?"outline-none sd-datepicker__date-item--selected--hover-color-background sd-datepicker__date-item--selected--hover-color-text":"outline-none sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"hover:sd-datepicker__date-item--hover--default-color-text",!w&&!O&&!k&&"hover:sd-datepicker__date-item--hover--default-color-background",S?"selected outline-none border-primary sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-text hover:sd-datepicker__date-item--selected--hover-color-background":I?this.isInDisabledDates(p)||!this.inMinMax(p)?"out-month text-neutral-500":this.disabledWeekends&&C?"weekend-day text-neutral-500":"in-month sd-datepicker__date-item--default-color-text":this.disabledWeekends&&C?"out-month weekend-day text-neutral-500":C?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-datepicker__date-item--hover--prev-next-color-text hover:sd-datepicker__date-item--hover--prev-next-color-background",w?"rounded-l-md rounded-r-none":"",O?"range-end rounded-r-md rounded-l-none":"",k&&!w&&!O?"in-range selected sd-datepicker__date-item--range-color-background rounded-none hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"",!k&&T&&!w&&!O?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",v&&!S&&!w&&!O&&$?"today border-[1px] border-primary sd-datepicker__date-item--current-font-weight":"",D?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",$&&!v?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${M+1}" aria-labelledby="${"col-"+(M+1)}" .tabIndex="${P}" ?disabled="${D||this.disabled||this.readonly}" aria-disabled="${D||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${S||k||w||O?"true":"false"}" aria-current="${v?"date":R}" aria-label="${_}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=a.startOfDayLocal(p)}" @mouseenter="${()=>this.onDayMouseEnter(p)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(p),this.selectDate(p)}}">${p.getDate()}</button>`})}</div>`)}</div></div>`}render(){var c,f;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,n=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],u=this.size==="sm"?"text-sm":"text-base";return V`<div part="form-control" class="${x("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?V`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${x(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?V`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${x("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?V`<label id="label" part="form-control-floating-label" class="${x("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",l&&"mt-1")}" for="input"><span class="${x("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${x("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",d,this.open&&((c=this.currentPlacement)!=null&&c.startsWith("bottom")?this.open&&this.alignment==="left"?"rounded-bl-none":"rounded-br-none":this.open&&this.alignment==="left"?"rounded-tl-none":"rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${x("inline-flex relative w-full",(f=this.currentPlacement)!=null&&f.startsWith("bottom")?"origin-top":"origin-bottom")}" placement="${this.alignment==="left"?`${this.placement}-start`:`${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${x("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",m==="disabled"||m==="visuallyDisabled"?"text-neutral-500":"text-black",m==="invalid"&&"form-control--invalid-color-background",m==="active"&&"shadow")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${i?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${x("min-w-0 grow focus:outline-none bg-transparent hover:cursor-pointer text-black",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],u,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||l?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?V`<sd-icon part="invalid-icon" class="${x("text-error",g,y)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?V`<sd-icon class="${x("text-success shrink-0",g,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}<sd-icon class="${x(h,g,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${x("text-sm mt-1",i?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}.today:hover{border-color:rgba(var(--sd-datepicker__date-item--hover--default-color-border,rgba(var(--sd-color-primary-500))))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,rgba(var(--sd-color-primary))))}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}.month-label{color:rgb(var(--sd-color-border-primary))!important}`],o([b({type:String,reflect:!0})],r.prototype,"locale",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"value",2),o([b({type:Boolean,reflect:!0})],r.prototype,"range",2),o([b({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),o([b({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),o([b({type:Boolean})],r.prototype,"allowSameDayRange",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"min",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"max",2),o([b({attribute:"view-month",converter:K})],r.prototype,"viewMonth",2),o([b({type:Number})],r.prototype,"firstDayOfWeek",2),o([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),o([b({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),o([b({attribute:!1})],r.prototype,"isDateDisabled",2),o([b({type:String,reflect:!0})],r.prototype,"size",2),o([b({type:String})],r.prototype,"alignment",2),o([b({type:String,reflect:!0})],r.prototype,"label",2),o([b({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),o([b({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),o([b({type:Boolean,reflect:!0})],r.prototype,"disabled",2),o([b({type:Boolean,reflect:!0})],r.prototype,"required",2),o([b({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),o([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),o([b({type:Boolean,reflect:!0})],r.prototype,"readonly",2),o([b({type:String,reflect:!0})],r.prototype,"placement",2),o([b({type:String,reflect:!0})],r.prototype,"placeholder",2),o([b({reflect:!0})],r.prototype,"name",2),o([b({type:String,reflect:!0})],r.prototype,"form",2),o([E()],r.prototype,"open",2),o([E()],r.prototype,"focusedDate",2),o([E()],r.prototype,"today",2),o([E()],r.prototype,"disabledDatesSet",2),o([E()],r.prototype,"previewEnd",2),o([E()],r.prototype,"statusNavText",2),o([E()],r.prototype,"statusSelectText",2),o([E()],r.prototype,"hasFocus",2),o([E()],r.prototype,"showValidStyle",2),o([E()],r.prototype,"showInvalidStyle",2),o([E()],r.prototype,"currentPlacement",2),o([E()],r.prototype,"inputValue",2),o([Y("sd-popup")],r.prototype,"popup",2),o([Y("#invalid-message")],r.prototype,"invalidMessage",2),o([Y("#input")],r.prototype,"input",2),o([F("open",{waitUntilFirstUpdate:!0})],r.prototype,"handleOpenChange",1),o([F("locale")],r.prototype,"handleLocaleChange",1),o([F("viewMonth")],r.prototype,"handleViewMonthChange",1),o([F("disabledDates")],r.prototype,"handleDisabledDatesChange",1),o([F("value")],r.prototype,"handleValueChange",1),o([F("rangeStart"),F("rangeEnd")],r.prototype,"handleRangeChange",1),o([F(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],r.prototype,"handleDisabledChange",1),o([F(["size","floatingLabel"])],r.prototype,"handleSizeChange",1),r=o([H("sd-datepicker")],r);export{r as a};
@@ -0,0 +1,12 @@
1
+ export declare const isoDateConverter: {
2
+ fromAttribute(value: string | null): string | null;
3
+ toAttribute(value: string | null): string;
4
+ };
5
+ export declare const viewMonthConverter: {
6
+ fromAttribute(value: string | null): Date | null;
7
+ toAttribute(value: Date | null): string;
8
+ };
9
+ export declare const disabledDatesConverter: {
10
+ fromAttribute(value: string | null): string[];
11
+ toAttribute(value: string[] | null): string;
12
+ };
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../../chunks/chunk.23WKPZET.js";import"../../chunks/chunk.6EV4YU6C.js";export{c as disabledDatesConverter,a as isoDateConverter,b as viewMonthConverter};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.D4I2KYVZ.js";import"../../chunks/chunk.WWGARXPI.js";import"../../chunks/chunk.CW7N5I3S.js";import"../../chunks/chunk.EDP2BY4Q.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.2UC7ID2H.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.BKN6CM3X.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.XJAJO727.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.AHMUV4CN.js";import"../../chunks/chunk.WWGARXPI.js";import"../../chunks/chunk.23WKPZET.js";import"../../chunks/chunk.CW7N5I3S.js";import"../../chunks/chunk.EDP2BY4Q.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.2UC7ID2H.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.BKN6CM3X.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.XJAJO727.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};