@sbb-esta/lyne-elements 2.2.0 → 2.4.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 (392) hide show
  1. package/accordion.js +6 -6
  2. package/alert/alert-group.js +4 -4
  3. package/alert/alert.js +9 -9
  4. package/autocomplete/autocomplete-base-element.d.ts +1 -0
  5. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  6. package/autocomplete/autocomplete.d.ts.map +1 -1
  7. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  8. package/autocomplete-grid/autocomplete-grid-button.js +4 -4
  9. package/autocomplete-grid/autocomplete-grid-optgroup.js +4 -4
  10. package/autocomplete-grid/autocomplete-grid-row.js +4 -4
  11. package/autocomplete-grid/autocomplete-grid.js +0 -1
  12. package/autocomplete.js +29 -29
  13. package/badge.css +31 -0
  14. package/breadcrumb/breadcrumb-group.js +4 -4
  15. package/breadcrumb/breadcrumb.js +19 -19
  16. package/button/accent-button-link.js +9 -9
  17. package/button/accent-button-static.js +6 -6
  18. package/button/accent-button.js +6 -6
  19. package/button/button-link.js +7 -7
  20. package/button/button-static.js +7 -7
  21. package/button/button.js +8 -8
  22. package/button/common/button-common.d.ts.map +1 -1
  23. package/button/common.js +1 -1
  24. package/button/mini-button-group.js +8 -8
  25. package/button/secondary-button-link.js +7 -7
  26. package/button/secondary-button-static.js +7 -7
  27. package/button/secondary-button.js +3 -3
  28. package/button/transparent-button-link.js +6 -6
  29. package/button/transparent-button-static.js +5 -5
  30. package/button/transparent-button.js +6 -6
  31. package/calendar/calendar.d.ts +55 -11
  32. package/calendar/calendar.d.ts.map +1 -1
  33. package/calendar.js +374 -224
  34. package/card/card-badge.js +9 -9
  35. package/card/card-button.js +5 -5
  36. package/card/card-link.js +7 -7
  37. package/card/card.js +1 -1
  38. package/card/common/card-action-common.d.ts.map +1 -1
  39. package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  40. package/checkbox/checkbox-group.js +1 -1
  41. package/checkbox/checkbox-panel.js +16 -16
  42. package/checkbox/checkbox.js +15 -15
  43. package/checkbox/common/checkbox-common.d.ts.map +1 -1
  44. package/checkbox/common.js +3 -3
  45. package/clock.js +8 -8
  46. package/container/container.js +4 -4
  47. package/core/base-elements.js +10 -10
  48. package/core/controllers/escapable-overlay-controller.d.ts +11 -0
  49. package/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
  50. package/core/controllers.d.ts +1 -0
  51. package/core/controllers.d.ts.map +1 -1
  52. package/core/controllers.js +73 -47
  53. package/core/datetime/date-adapter.d.ts +4 -2
  54. package/core/datetime/date-adapter.d.ts.map +1 -1
  55. package/core/datetime/native-date-adapter.d.ts +1 -1
  56. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  57. package/core/datetime.js +51 -43
  58. package/core/decorators/date-converter.d.ts +8 -0
  59. package/core/decorators/date-converter.d.ts.map +1 -0
  60. package/core/decorators/date-only-type.d.ts +8 -0
  61. package/core/decorators/date-only-type.d.ts.map +1 -0
  62. package/core/decorators/get-override.d.ts.map +1 -1
  63. package/core/decorators/handle-distinct-change.d.ts.map +1 -1
  64. package/core/decorators/host-attributes.d.ts.map +1 -1
  65. package/core/decorators/slot-state.d.ts.map +1 -1
  66. package/core/decorators.d.ts +2 -0
  67. package/core/decorators.d.ts.map +1 -1
  68. package/core/decorators.js +52 -31
  69. package/core/dom/input-element.d.ts +1 -1
  70. package/core/dom/input-element.d.ts.map +1 -1
  71. package/core/dom.js +5 -5
  72. package/core/eventing/throttle.d.ts.map +1 -1
  73. package/core/eventing.js +4 -4
  74. package/core/i18n/i18n.d.ts +6 -0
  75. package/core/i18n/i18n.d.ts.map +1 -1
  76. package/core/i18n.js +106 -70
  77. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  78. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  79. package/core/mixins/form-associated-input-mixin.d.ts +25 -0
  80. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
  81. package/core/mixins/form-associated-mixin.d.ts +16 -0
  82. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  83. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  84. package/core/mixins/hydration-mixin.d.ts.map +1 -1
  85. package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  86. package/core/mixins/negative-mixin.d.ts.map +1 -1
  87. package/core/mixins/panel-mixin.d.ts.map +1 -1
  88. package/core/mixins/required-mixin.d.ts.map +1 -1
  89. package/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
  90. package/core/mixins.d.ts +1 -0
  91. package/core/mixins.d.ts.map +1 -1
  92. package/core/mixins.js +574 -295
  93. package/core/styles/badge.scss +3 -0
  94. package/core/styles/core.scss +3 -1
  95. package/core/styles/mixins/badge.scss +26 -1
  96. package/core/styles/mixins/font-face.scss +12 -12
  97. package/core/styles/mixins/link.scss +32 -8
  98. package/core/styles/standard-theme.scss +1 -0
  99. package/core/testing/mocha-extensions.d.ts.map +1 -1
  100. package/core/testing/wait-for-render.d.ts.map +1 -1
  101. package/core/testing.js +14 -14
  102. package/core.css +5 -5
  103. package/custom-elements.json +28284 -17221
  104. package/date-input/date-input.d.ts +67 -0
  105. package/date-input/date-input.d.ts.map +1 -0
  106. package/date-input.d.ts +2 -0
  107. package/date-input.d.ts.map +1 -0
  108. package/date-input.js +149 -0
  109. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  110. package/datepicker/common.js +49 -45
  111. package/datepicker/datepicker/datepicker.d.ts +16 -6
  112. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  113. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  114. package/datepicker/datepicker-toggle.js +43 -40
  115. package/datepicker/datepicker.js +94 -76
  116. package/development/alert/alert-group.js +1 -1
  117. package/development/alert/alert.js +1 -1
  118. package/development/autocomplete/autocomplete-base-element.d.ts +1 -0
  119. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  120. package/development/autocomplete/autocomplete.d.ts.map +1 -1
  121. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  122. package/development/autocomplete-grid/autocomplete-grid.js +1 -2
  123. package/development/autocomplete.js +10 -5
  124. package/development/breadcrumb/breadcrumb.js +5 -2
  125. package/development/button/common/button-common.d.ts.map +1 -1
  126. package/development/button/common.js +18 -14
  127. package/development/calendar/calendar.d.ts +55 -11
  128. package/development/calendar/calendar.d.ts.map +1 -1
  129. package/development/calendar.js +302 -88
  130. package/development/card/card.js +1 -1
  131. package/development/card/common/card-action-common.d.ts.map +1 -1
  132. package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  133. package/development/checkbox/checkbox-group.js +2 -2
  134. package/development/checkbox/checkbox-panel.js +1 -1
  135. package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
  136. package/development/core/controllers/escapable-overlay-controller.d.ts +11 -0
  137. package/development/core/controllers/escapable-overlay-controller.d.ts.map +1 -0
  138. package/development/core/controllers.d.ts +1 -0
  139. package/development/core/controllers.d.ts.map +1 -1
  140. package/development/core/controllers.js +36 -1
  141. package/development/core/datetime/date-adapter.d.ts +4 -2
  142. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  143. package/development/core/datetime/native-date-adapter.d.ts +1 -1
  144. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  145. package/development/core/datetime.js +14 -2
  146. package/development/core/decorators/date-converter.d.ts +8 -0
  147. package/development/core/decorators/date-converter.d.ts.map +1 -0
  148. package/development/core/decorators/date-only-type.d.ts +8 -0
  149. package/development/core/decorators/date-only-type.d.ts.map +1 -0
  150. package/development/core/decorators/get-override.d.ts.map +1 -1
  151. package/development/core/decorators/handle-distinct-change.d.ts.map +1 -1
  152. package/development/core/decorators/host-attributes.d.ts.map +1 -1
  153. package/development/core/decorators/slot-state.d.ts.map +1 -1
  154. package/development/core/decorators.d.ts +2 -0
  155. package/development/core/decorators.d.ts.map +1 -1
  156. package/development/core/decorators.js +23 -2
  157. package/development/core/dom/input-element.d.ts +1 -1
  158. package/development/core/dom/input-element.d.ts.map +1 -1
  159. package/development/core/dom.js +3 -3
  160. package/development/core/eventing/throttle.d.ts.map +1 -1
  161. package/development/core/i18n/i18n.d.ts +6 -0
  162. package/development/core/i18n/i18n.d.ts.map +1 -1
  163. package/development/core/i18n.js +43 -1
  164. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  165. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  166. package/development/core/mixins/form-associated-input-mixin.d.ts +25 -0
  167. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -0
  168. package/development/core/mixins/form-associated-mixin.d.ts +16 -0
  169. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  170. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  171. package/development/core/mixins/hydration-mixin.d.ts.map +1 -1
  172. package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  173. package/development/core/mixins/negative-mixin.d.ts.map +1 -1
  174. package/development/core/mixins/panel-mixin.d.ts.map +1 -1
  175. package/development/core/mixins/required-mixin.d.ts.map +1 -1
  176. package/development/core/mixins/update-scheduler-mixin.d.ts.map +1 -1
  177. package/development/core/mixins.d.ts +1 -0
  178. package/development/core/mixins.d.ts.map +1 -1
  179. package/development/core/mixins.js +460 -32
  180. package/development/core/testing/mocha-extensions.d.ts.map +1 -1
  181. package/development/core/testing/wait-for-render.d.ts.map +1 -1
  182. package/development/date-input/date-input.d.ts +67 -0
  183. package/development/date-input/date-input.d.ts.map +1 -0
  184. package/development/date-input.d.ts +2 -0
  185. package/development/date-input.d.ts.map +1 -0
  186. package/development/date-input.js +259 -0
  187. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  188. package/development/datepicker/common.js +11 -2
  189. package/development/datepicker/datepicker/datepicker.d.ts +16 -6
  190. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  191. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  192. package/development/datepicker/datepicker-toggle.js +13 -4
  193. package/development/datepicker/datepicker.js +65 -39
  194. package/development/dialog/dialog/dialog.d.ts.map +1 -1
  195. package/development/dialog/dialog-title.js +1 -1
  196. package/development/dialog/dialog.js +3 -1
  197. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  198. package/development/expansion-panel/expansion-panel-header.js +1 -1
  199. package/development/expansion-panel/expansion-panel.js +3 -3
  200. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  201. package/development/file-selector/common.js +1 -1
  202. package/development/footer.js +1 -1
  203. package/development/form-field/form-field/form-field.d.ts +1 -1
  204. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  205. package/development/form-field/form-field.js +23 -14
  206. package/development/header/common/header-action-common.d.ts.map +1 -1
  207. package/development/icon/icon-name-mixin.d.ts.map +1 -1
  208. package/development/icon/icon-request.d.ts.map +1 -1
  209. package/development/icon/icon-validate.d.ts.map +1 -1
  210. package/development/image.js +1 -1
  211. package/development/journey-header.js +1 -1
  212. package/development/link/common/block-link-common.d.ts.map +1 -1
  213. package/development/link/common/inline-link-common.d.ts.map +1 -1
  214. package/development/link/common/link-common.d.ts.map +1 -1
  215. package/development/link/common.js +19 -7
  216. package/development/link-list/common.js +1 -1
  217. package/development/map-container.js +1 -1
  218. package/development/menu/common/menu-action-common.d.ts +3 -0
  219. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  220. package/development/menu/common.js +35 -12
  221. package/development/menu/menu/menu.d.ts +1 -1
  222. package/development/menu/menu/menu.d.ts.map +1 -1
  223. package/development/menu/menu.js +5 -15
  224. package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
  225. package/development/navigation/navigation/navigation.d.ts +1 -3
  226. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  227. package/development/navigation/navigation-section.js +1 -1
  228. package/development/navigation/navigation.js +8 -21
  229. package/development/notification.js +1 -1
  230. package/development/overlay/overlay-base-element.d.ts +2 -2
  231. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  232. package/development/overlay/overlay.d.ts.map +1 -1
  233. package/development/overlay.js +7 -14
  234. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  235. package/development/popover/popover/popover.d.ts +1 -1
  236. package/development/popover/popover/popover.d.ts.map +1 -1
  237. package/development/popover/popover.js +5 -15
  238. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  239. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  240. package/development/radio-button/radio-button-group.js +2 -2
  241. package/development/radio-button/radio-button-panel.js +1 -1
  242. package/development/select/select.d.ts +6 -1
  243. package/development/select/select.d.ts.map +1 -1
  244. package/development/select.js +28 -6
  245. package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  246. package/development/selection-expansion-panel.js +2 -2
  247. package/development/skiplink-list.js +1 -1
  248. package/development/slider.js +1 -1
  249. package/development/stepper/step/step.d.ts +0 -2
  250. package/development/stepper/step/step.d.ts.map +1 -1
  251. package/development/stepper/step.js +1 -16
  252. package/development/stepper/stepper/stepper.d.ts +11 -0
  253. package/development/stepper/stepper/stepper.d.ts.map +1 -1
  254. package/development/stepper/stepper.js +30 -3
  255. package/development/tabs/tab-label.js +1 -1
  256. package/development/tag/tag/tag.d.ts +11 -0
  257. package/development/tag/tag/tag.d.ts.map +1 -1
  258. package/development/tag/tag-group/tag-group.d.ts +1 -1
  259. package/development/tag/tag-group/tag-group.d.ts.map +1 -1
  260. package/development/tag/tag-group.js +9 -3
  261. package/development/tag/tag.js +37 -10
  262. package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  263. package/development/timetable-occupancy.js +1 -1
  264. package/development/toast.js +1 -1
  265. package/development/toggle/toggle/toggle.d.ts +25 -6
  266. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  267. package/development/toggle/toggle-option/toggle-option.d.ts +2 -6
  268. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  269. package/development/toggle/toggle-option.js +21 -39
  270. package/development/toggle/toggle.js +57 -39
  271. package/development/train/train-formation.js +1 -1
  272. package/development/train/train.js +1 -1
  273. package/development/visual-checkbox.js +1 -1
  274. package/dialog/dialog/dialog.d.ts.map +1 -1
  275. package/dialog/dialog-content.js +3 -3
  276. package/dialog/dialog-title.js +8 -8
  277. package/dialog/dialog.js +2 -2
  278. package/divider.js +12 -12
  279. package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  280. package/expansion-panel/expansion-panel-header.js +1 -1
  281. package/expansion-panel/expansion-panel.js +2 -2
  282. package/file-selector/common/file-selector-common.d.ts.map +1 -1
  283. package/file-selector/common.js +9 -9
  284. package/file-selector/file-selector-dropzone.js +5 -5
  285. package/file-selector/file-selector.js +6 -6
  286. package/flip-card/flip-card-details.js +4 -4
  287. package/flip-card/flip-card-summary.js +9 -9
  288. package/font-characters-extension.css +3 -3
  289. package/footer.js +4 -4
  290. package/form-field/form-field/form-field.d.ts +1 -1
  291. package/form-field/form-field/form-field.d.ts.map +1 -1
  292. package/form-field/form-field.js +32 -24
  293. package/header/common/header-action-common.d.ts.map +1 -1
  294. package/header/header-button.js +5 -5
  295. package/header/header-link.js +5 -5
  296. package/icon/icon-name-mixin.d.ts.map +1 -1
  297. package/icon/icon-request.d.ts.map +1 -1
  298. package/icon/icon-validate.d.ts.map +1 -1
  299. package/icon.js +36 -36
  300. package/image.js +1 -1
  301. package/index.d.ts +2 -0
  302. package/index.js +2 -0
  303. package/journey-header.js +5 -5
  304. package/link/block-link-button.js +4 -4
  305. package/link/block-link-static.js +9 -9
  306. package/link/block-link.js +4 -4
  307. package/link/common/block-link-common.d.ts.map +1 -1
  308. package/link/common/inline-link-common.d.ts.map +1 -1
  309. package/link/common/link-common.d.ts.map +1 -1
  310. package/link/common.js +28 -28
  311. package/link/link-button.js +7 -7
  312. package/link/link-static.js +7 -7
  313. package/link/link.js +4 -4
  314. package/link-list/common.js +15 -15
  315. package/loading-indicator-circle.js +11 -11
  316. package/map-container.js +5 -5
  317. package/menu/common/menu-action-common.d.ts +3 -0
  318. package/menu/common/menu-action-common.d.ts.map +1 -1
  319. package/menu/common.js +34 -30
  320. package/menu/menu/menu.d.ts +1 -1
  321. package/menu/menu/menu.d.ts.map +1 -1
  322. package/menu/menu-button.js +8 -8
  323. package/menu/menu-link.js +6 -6
  324. package/menu/menu.js +29 -38
  325. package/navigation/common/navigation-action-common.d.ts.map +1 -1
  326. package/navigation/navigation/navigation.d.ts +1 -3
  327. package/navigation/navigation/navigation.d.ts.map +1 -1
  328. package/navigation/navigation-button.js +4 -4
  329. package/navigation/navigation-link.js +7 -7
  330. package/navigation/navigation-list.js +4 -4
  331. package/navigation/navigation-marker.js +3 -3
  332. package/navigation/navigation-section.js +1 -1
  333. package/navigation/navigation.js +45 -54
  334. package/notification.js +18 -18
  335. package/option/optgroup.js +11 -11
  336. package/overlay/overlay-base-element.d.ts +2 -2
  337. package/overlay/overlay-base-element.d.ts.map +1 -1
  338. package/overlay/overlay.d.ts.map +1 -1
  339. package/overlay.js +57 -63
  340. package/package.json +11 -2
  341. package/paginator/common/paginator-common.d.ts.map +1 -1
  342. package/paginator/common.js +6 -6
  343. package/popover/popover/popover.d.ts +1 -1
  344. package/popover/popover/popover.d.ts.map +1 -1
  345. package/popover/popover.js +105 -114
  346. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  347. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  348. package/radio-button/radio-button-group.js +1 -1
  349. package/radio-button/radio-button-panel.js +6 -6
  350. package/screen-reader-only.js +5 -5
  351. package/select/select.d.ts +6 -1
  352. package/select/select.d.ts.map +1 -1
  353. package/select.js +52 -43
  354. package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  355. package/selection-expansion-panel.js +1 -1
  356. package/skiplink-list.js +3 -3
  357. package/slider.js +13 -13
  358. package/standard-theme.css +37 -5
  359. package/status.js +3 -3
  360. package/stepper/step/step.d.ts +0 -2
  361. package/stepper/step/step.d.ts.map +1 -1
  362. package/stepper/step-label.js +4 -4
  363. package/stepper/step.js +24 -36
  364. package/stepper/stepper/stepper.d.ts +11 -0
  365. package/stepper/stepper/stepper.d.ts.map +1 -1
  366. package/stepper/stepper.js +59 -41
  367. package/table/table-wrapper.js +4 -4
  368. package/tabs/tab-group.js +24 -24
  369. package/tabs/tab-label.js +1 -1
  370. package/tabs/tab.js +4 -4
  371. package/tag/tag/tag.d.ts +11 -0
  372. package/tag/tag/tag.d.ts.map +1 -1
  373. package/tag/tag-group/tag-group.d.ts +1 -1
  374. package/tag/tag-group/tag-group.d.ts.map +1 -1
  375. package/tag/tag-group.js +34 -31
  376. package/tag/tag.js +60 -41
  377. package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  378. package/teaser-product/common.js +5 -5
  379. package/teaser-product/teaser-product-static.js +2 -2
  380. package/timetable-occupancy-icon.js +3 -3
  381. package/timetable-occupancy.js +6 -6
  382. package/toast.js +5 -5
  383. package/toggle/toggle/toggle.d.ts +25 -6
  384. package/toggle/toggle/toggle.d.ts.map +1 -1
  385. package/toggle/toggle-option/toggle-option.d.ts +2 -6
  386. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  387. package/toggle/toggle-option.js +44 -52
  388. package/toggle/toggle.js +103 -83
  389. package/toggle-check.js +5 -5
  390. package/train/train-formation.js +1 -1
  391. package/train/train.js +29 -29
  392. package/visual-checkbox.js +1 -1
@@ -1,7 +1,7 @@
1
- import { isServer as n } from "lit";
2
- import { readConfig as b } from "./config.js";
3
- import { S as f, i as m, h as g } from "../sbb-tokens-BgDF8jIh.js";
4
- class S {
1
+ import { isServer as a } from "lit";
2
+ import { readConfig as f } from "./config.js";
3
+ import { S as v, i as m, h as g } from "../sbb-tokens-BgDF8jIh.js";
4
+ class w {
5
5
  get signal() {
6
6
  var t;
7
7
  return (t = this._abortController) == null ? void 0 : t.signal;
@@ -17,11 +17,11 @@ class S {
17
17
  (t = this._abortController) == null || t.abort(), this._abortController = void 0;
18
18
  }
19
19
  }
20
- const v = ["script", "head", "template", "style"], y = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
20
+ const y = ["script", "head", "template", "style"], p = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
21
21
  class O {
22
- constructor(t, e = y, i = A) {
23
- var s, o;
24
- this._host = t, this._inertElements = e, this._inertOverlays = i, (o = (s = this._host).addController) == null || o.call(s, this);
22
+ constructor(t, e = p, r = A) {
23
+ var s, n;
24
+ this._host = t, this._inertElements = e, this._inertOverlays = r, (n = (s = this._host).addController) == null || n.call(s, this);
25
25
  }
26
26
  hostConnected() {
27
27
  this._host.isOpen && this.activate();
@@ -50,23 +50,23 @@ class O {
50
50
  }), this._inertElements.clear();
51
51
  }
52
52
  _addInertAttributes() {
53
- var e, i;
53
+ var e, r;
54
54
  let t = this._currentOverlay();
55
55
  for (; t !== document.documentElement && t !== null; )
56
- Array.from(((e = (t == null ? void 0 : t.parentElement) ?? (t == null ? void 0 : t.getRootNode())) == null ? void 0 : e.childNodes) ?? []).filter((s) => s !== t && s instanceof window.HTMLElement && !v.includes(s.localName)).forEach((s) => {
56
+ Array.from(((e = (t == null ? void 0 : t.parentElement) ?? (t == null ? void 0 : t.getRootNode())) == null ? void 0 : e.childNodes) ?? []).filter((s) => s !== t && s instanceof window.HTMLElement && !y.includes(s.localName)).forEach((s) => {
57
57
  this._inertElements.add(s), s.inert || (s.inert = !0, s.toggleAttribute("data-sbb-inert", !0)), s.hasAttribute("aria-hidden") || (s.setAttribute("aria-hidden", "true"), s.toggleAttribute("data-sbb-aria-hidden", !0));
58
- }), t = (t == null ? void 0 : t.parentElement) ?? ((i = t == null ? void 0 : t.getRootNode()) == null ? void 0 : i.host) ?? null;
58
+ }), t = (t == null ? void 0 : t.parentElement) ?? ((r = t == null ? void 0 : t.getRootNode()) == null ? void 0 : r.host) ?? null;
59
59
  }
60
60
  }
61
- const r = class r {
61
+ const i = class i {
62
62
  /** Get the current language. */
63
63
  static get current() {
64
- const e = ((b().language ?? (n ? r._defaultLanguage : document.documentElement.getAttribute("lang"))) || r._defaultLanguage).split("-")[0];
65
- return r._supportedLocales.includes(e) ? e : r._defaultLanguage;
64
+ const e = ((f().language ?? (a ? i._defaultLanguage : document.documentElement.getAttribute("lang"))) || i._defaultLanguage).split("-")[0];
65
+ return i._supportedLocales.includes(e) ? e : i._defaultLanguage;
66
66
  }
67
67
  /** Get the current language. */
68
68
  get current() {
69
- return r.current;
69
+ return i.current;
70
70
  }
71
71
  constructor(t) {
72
72
  this._host = t, this._handlers = [], this._host.addController(this);
@@ -76,24 +76,24 @@ const r = class r {
76
76
  return this._handlers.unshift(t), this;
77
77
  }
78
78
  hostConnected() {
79
- n || (r._listeners.size || r._observer.observe(document.documentElement, r._observerConfig), r._listeners.add(this), this._previousLanguage !== this.current && this._callHandlers(this._previousLanguage !== void 0));
79
+ a || (i._listeners.size || i._observer.observe(document.documentElement, i._observerConfig), i._listeners.add(this), this._previousLanguage !== this.current && this._callHandlers(this._previousLanguage !== void 0));
80
80
  }
81
81
  hostDisconnected() {
82
- n || (this._previousLanguage = this.current, r._listeners.delete(this), r._listeners.size || r._observer.disconnect());
82
+ a || (this._previousLanguage = this.current, i._listeners.delete(this), i._listeners.size || i._observer.disconnect());
83
83
  }
84
84
  _callHandlers(t = !0) {
85
85
  this._handlers.forEach((e) => e()), t && this._host.requestUpdate();
86
86
  }
87
87
  };
88
- r._defaultLanguage = "en", r._supportedLocales = ["en", "de", "fr", "it"], r._listeners = /* @__PURE__ */ new Set(), r._observer = n ? null : new MutationObserver((t) => {
89
- t[0].oldValue !== document.documentElement.getAttribute("lang") && r._listeners.forEach((e) => e._callHandlers());
90
- }), r._observerConfig = {
88
+ i._defaultLanguage = "en", i._supportedLocales = ["en", "de", "fr", "it"], i._listeners = /* @__PURE__ */ new Set(), i._observer = a ? null : new MutationObserver((t) => {
89
+ t[0].oldValue !== document.documentElement.getAttribute("lang") && i._listeners.forEach((e) => e._callHandlers());
90
+ }), i._observerConfig = {
91
91
  attributeFilter: ["lang"],
92
92
  attributeOldValue: !0
93
93
  };
94
- let u = r;
95
- const _ = (a) => a / f, w = "(forced-colors: active)", M = "(any-hover: hover)", N = "(pointer: coarse)", Q = `(min-width: ${_(g)}rem)`, H = `(max-width: ${_(m)}rem)`, l = /* @__PURE__ */ new Map();
96
- class L {
94
+ let u = i;
95
+ const _ = (o) => o / v, M = "(forced-colors: active)", k = "(any-hover: hover)", L = "(pointer: coarse)", N = `(min-width: ${_(g)}rem)`, Q = `(max-width: ${_(m)}rem)`, l = /* @__PURE__ */ new Map();
96
+ class H {
97
97
  constructor(t, e) {
98
98
  this._queries = e, t.addController(this);
99
99
  }
@@ -103,34 +103,59 @@ class L {
103
103
  * @returns Whether the query matches or null with SSR.
104
104
  */
105
105
  matches(t) {
106
- if (n)
106
+ if (a)
107
107
  return null;
108
108
  const e = l.get(t);
109
109
  return e ? e.mediaQueryList.matches : matchMedia(t).matches;
110
110
  }
111
111
  hostConnected() {
112
- if (!n)
112
+ if (!a)
113
113
  for (const [t, e] of Object.entries(this._queries)) {
114
- const i = l.get(t);
115
- if (i)
116
- i.handlers.add(e);
114
+ const r = l.get(t);
115
+ if (r)
116
+ r.handlers.add(e);
117
117
  else {
118
- const s = matchMedia(t), o = /* @__PURE__ */ new Set([e]), h = (d) => o.forEach((c) => c(d.matches));
119
- s.addEventListener("change", h), l.set(t, { mediaQueryList: s, handlers: o, eventHandler: h });
118
+ const s = matchMedia(t), n = /* @__PURE__ */ new Set([e]), h = (d) => n.forEach((c) => c(d.matches));
119
+ s.addEventListener("change", h), l.set(t, { mediaQueryList: s, handlers: n, eventHandler: h });
120
120
  }
121
121
  }
122
122
  }
123
123
  hostDisconnected() {
124
124
  for (const [t, e] of Object.entries(this._queries)) {
125
- const i = l.get(t);
126
- i && (i.handlers.delete(e), i.handlers.size || l.delete(t));
125
+ const r = l.get(t);
126
+ r && (r.handlers.delete(e), r.handlers.size || l.delete(t));
127
127
  }
128
128
  }
129
129
  }
130
+ const b = new Array();
131
+ a || window.addEventListener("keydown", (o) => {
132
+ var t;
133
+ o.key === "Escape" && !o.defaultPrevented && (o.preventDefault(), (t = b.at(-1)) == null || t.close());
134
+ });
130
135
  class I {
136
+ constructor(t, e = b) {
137
+ var r, s;
138
+ this._host = t, this._overlayStack = e, (s = (r = this._host).addController) == null || s.call(r, this);
139
+ }
140
+ hostDisconnected() {
141
+ this.disconnect();
142
+ }
143
+ // This must be called when the overlay is opened
144
+ connect() {
145
+ this._overlayStack.push(this._host);
146
+ }
147
+ // This must be called when the overlay is closed
148
+ disconnect() {
149
+ if (this._overlayStack.length) {
150
+ const t = this._overlayStack.findIndex((e) => e === this._host);
151
+ t !== -1 && this._overlayStack.splice(t, 1);
152
+ }
153
+ }
154
+ }
155
+ class D {
131
156
  constructor(t, e = null) {
132
- this._host = t, this._onChangeCallback = e, this.slots = /* @__PURE__ */ new Set(), this._slotchangeHandler = (i) => {
133
- this._syncSlots(i.target);
157
+ this._host = t, this._onChangeCallback = e, this.slots = /* @__PURE__ */ new Set(), this._slotchangeHandler = (r) => {
158
+ this._syncSlots(r.target);
134
159
  }, this._host.addController(this);
135
160
  }
136
161
  hostConnected() {
@@ -143,26 +168,27 @@ class I {
143
168
  }
144
169
  _syncSlots(...t) {
145
170
  var s;
146
- for (const o of t) {
147
- const h = o.name || "unnamed";
148
- o.assignedNodes().some((d) => {
171
+ for (const n of t) {
172
+ const h = n.name || "unnamed";
173
+ n.assignedNodes().some((d) => {
149
174
  var c;
150
175
  return "tagName" in d || ((c = d.textContent) == null ? void 0 : c.trim());
151
176
  }) ? this.slots.add(h) : this.slots.delete(h);
152
177
  }
153
- const e = this._host.getAttribute("data-slot-names"), i = [...this.slots].sort().join(" ");
154
- i ? this._host.getAttribute("data-slot-names") !== i && this._host.setAttribute("data-slot-names", i) : this._host.removeAttribute("data-slot-names"), i !== e && ((s = this._onChangeCallback) == null || s.call(this));
178
+ const e = this._host.getAttribute("data-slot-names"), r = [...this.slots].sort().join(" ");
179
+ r ? this._host.getAttribute("data-slot-names") !== r && this._host.setAttribute("data-slot-names", r) : this._host.removeAttribute("data-slot-names"), r !== e && ((s = this._onChangeCallback) == null || s.call(this));
155
180
  }
156
181
  }
157
182
  export {
158
- S as SbbConnectedAbortController,
183
+ w as SbbConnectedAbortController,
184
+ I as SbbEscapableOverlayController,
159
185
  O as SbbInertController,
160
186
  u as SbbLanguageController,
161
- L as SbbMediaMatcherController,
162
- Q as SbbMediaQueryBreakpointMediumAndAbove,
163
- H as SbbMediaQueryBreakpointSmallAndBelow,
164
- w as SbbMediaQueryForcedColors,
165
- M as SbbMediaQueryHover,
166
- N as SbbMediaQueryPointerCoarse,
167
- I as SbbSlotStateController
187
+ H as SbbMediaMatcherController,
188
+ N as SbbMediaQueryBreakpointMediumAndAbove,
189
+ Q as SbbMediaQueryBreakpointSmallAndBelow,
190
+ M as SbbMediaQueryForcedColors,
191
+ k as SbbMediaQueryHover,
192
+ L as SbbMediaQueryPointerCoarse,
193
+ D as SbbSlotStateController
168
194
  };
@@ -1,8 +1,10 @@
1
1
  export declare const DAYS_PER_ROW: number;
2
2
  export declare const MONTHS_PER_ROW: number;
3
3
  export declare const YEARS_PER_ROW: number;
4
+ export declare const MONTHS_PER_PAGE: number;
4
5
  export declare const YEARS_PER_PAGE: number;
5
6
  export declare const FORMAT_DATE: RegExp;
7
+ export declare const ISO8601_FORMAT_DATE: RegExp;
6
8
  /**
7
9
  * Abstract date functionality.
8
10
  *
@@ -109,14 +111,14 @@ export declare abstract class DateAdapter<T = any> {
109
111
  * @param value The date in the format DD.MM.YYYY.
110
112
  * @param now The current date as Date.
111
113
  */
112
- abstract parse(value: string | null | undefined, now: T): T | null;
114
+ abstract parse(value: string | null | undefined, now?: T): T | null;
113
115
  /**
114
116
  * Format the given date as string.
115
117
  * @param date The date to format.
116
118
  * @param options options object with weekdayStyle as property
117
119
  */
118
120
  format(date: T | null | undefined, options?: {
119
- weekdayStyle?: 'long' | 'short' | 'narrow';
121
+ weekdayStyle?: 'long' | 'short' | 'narrow' | 'none';
120
122
  }): string;
121
123
  /**
122
124
  * Checks whether the given `obj` is a Date.
@@ -1 +1 @@
1
- {"version":3,"file":"date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/date-adapter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAU,CAAC;AACtC,eAAO,MAAM,cAAc,EAAE,MAAU,CAAC;AACxC,eAAO,MAAM,aAAa,EAAE,MAAU,CAAC;AACvC,eAAO,MAAM,cAAc,EAAE,MAAW,CAAC;AACzC,eAAO,MAAM,WAAW,QACgE,CAAC;AAEzF;;;;GAIG;AACH,8BAAsB,WAAW,CAAC,CAAC,GAAG,GAAG;IACvC;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAExC;;;;OAIG;aACa,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAEzC;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAExC;;;OAGG;aACa,YAAY,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAE7C,kEAAkE;aAClD,iBAAiB,IAAI,MAAM;IAE3C;;;;OAIG;aACa,iBAAiB,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAElD;;;OAGG;aACa,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAE3E,6FAA6F;aAC7E,YAAY,IAAI,MAAM,EAAE;IAExC;;;OAGG;aACa,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE;IAE/E,4BAA4B;aACZ,KAAK,IAAI,CAAC;IAE1B;;;OAGG;aACa,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,CAAC;IAE9D;;;OAGG;aACa,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,C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,GAChE,MAAM;IA4BT;;;OAGG;aACa,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAEjD;;;OAGG;aACa,OAAO,IAAI,CAAC;IAE5B;;;OAGG;IACI,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAKjC;;;;;OAKG;IACI,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,GAAG,IAAI;IAInD;;OAEG;IACI,kBAAkB,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAO1C;;;;;;OAMG;IACI,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM;IAQ/C;;;;;;OAMG;IACI,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,OAAO;IAY3D;;;;;;;OAOG;IACI,SAAS,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC;CAS7D"}
@@ -57,7 +57,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
57
57
  /** Creates a Date from a valid input (Date, string or number in seconds). */
58
58
  deserialize(date: SbbDateLike | null | undefined): Date | null;
59
59
  /** Returns the right format for the `valueAsDate` property. */
60
- parse(value: string | null | undefined, now: Date): Date | null;
60
+ parse(value: string | null | undefined, now?: Date): Date | null;
61
61
  invalid(): Date;
62
62
  /**
63
63
  * Creates an array with the given length and fills it by mapping with the provided function.
@@ -1 +1 @@
1
- {"version":3,"file":"native-date-adapter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/datetime/native-date-adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAU7D,qBAAa,iBAAkB,SAAQ,WAAW,CAA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B;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAId,gEAAgE;IAChE,OAAO,CAAC,uBAAuB;CAShC;AAED,eAAO,MAAM,kBAAkB,mBAA0B,CAAC"}
package/core/datetime.js CHANGED
@@ -1,6 +1,6 @@
1
- import { SbbLanguageController as i } from "./controllers.js";
2
- const o = 7, f = 4, m = 4, d = 24, u = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/;
3
- class l {
1
+ import { SbbLanguageController as o } from "./controllers.js";
2
+ const l = 7, w = 4, y = 4, O = 12, M = 24, D = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/, c = /^(\d{4})-(\d{2})-(\d{2})$/;
3
+ class g {
4
4
  /**
5
5
  * Attempts to deserialize a value to a valid date object. This is different from parsing in that
6
6
  * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
@@ -20,20 +20,23 @@ class l {
20
20
  format(t, e) {
21
21
  if (!this.isValid(t))
22
22
  return "";
23
- const r = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"), n = new Intl.DateTimeFormat("de-CH", {
23
+ const r = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"), a = new Intl.DateTimeFormat("de-CH", {
24
24
  day: "2-digit",
25
25
  month: "2-digit",
26
26
  year: "numeric"
27
- }), a = (e == null ? void 0 : e.weekdayStyle) ?? "short";
28
- let s = this.getDayOfWeekNames(a)[this.getDayOfWeek(t)];
29
- return s = s.charAt(0).toUpperCase() + s.substring(1), a === "short" && (s = s.substring(0, 2)), `${s}, ${n.format(r)}`;
27
+ });
28
+ if ((e == null ? void 0 : e.weekdayStyle) === "none")
29
+ return a.format(r);
30
+ const s = (e == null ? void 0 : e.weekdayStyle) ?? "short";
31
+ let n = this.getDayOfWeekNames(s)[this.getDayOfWeek(t)];
32
+ return n = n.charAt(0).toUpperCase() + n.substring(1), s === "short" && (n = n.substring(0, 2)), `${n}, ${a.format(r)}`;
30
33
  }
31
34
  /**
32
35
  * Get the given date as ISO String.
33
36
  * @param date The date to convert to ISO String.
34
37
  */
35
38
  toIso8601(t) {
36
- const e = (r, n = 2) => `${r}`.padStart(n, "0");
39
+ const e = (r, a = 2) => `${r}`.padStart(a, "0");
37
40
  return `${e(this.getYear(t), 4)}-${e(this.getMonth(t))}-${e(this.getDate(t))}`;
38
41
  }
39
42
  /**
@@ -50,7 +53,7 @@ class l {
50
53
  */
51
54
  getFirstWeekOffset(t) {
52
55
  const e = this.createDate(this.getYear(t), this.getMonth(t), 1);
53
- return (o + this.getDayOfWeek(e) - this.getFirstDayOfWeek()) % o;
56
+ return (l + this.getDayOfWeek(e) - this.getFirstDayOfWeek()) % l;
54
57
  }
55
58
  /**
56
59
  * Compares two dates.
@@ -71,8 +74,8 @@ class l {
71
74
  */
72
75
  sameDate(t, e) {
73
76
  if (t && e) {
74
- const r = this.isValid(t), n = this.isValid(e);
75
- return r && n ? !this.compareDate(t, e) : r == n;
77
+ const r = this.isValid(t), a = this.isValid(e);
78
+ return r && a ? !this.compareDate(t, e) : r == a;
76
79
  }
77
80
  return t == e;
78
81
  }
@@ -88,8 +91,8 @@ class l {
88
91
  return e && this.compareDate(t, e) < 0 ? e : r && this.compareDate(t, r) > 0 ? r : t;
89
92
  }
90
93
  }
91
- const D = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
92
- class g extends l {
94
+ const f = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
95
+ class d extends g {
93
96
  constructor(t = 15) {
94
97
  super(), this._cutoffYearOffset = t;
95
98
  }
@@ -116,7 +119,7 @@ class g extends l {
116
119
  month: "long",
117
120
  day: "numeric"
118
121
  };
119
- return new Intl.DateTimeFormat(i.current, e).format(new Date(t));
122
+ return new Intl.DateTimeFormat(o.current, e).format(new Date(t));
120
123
  }
121
124
  /**
122
125
  * Creates an array of strings with length = 12, filled with the name of the months starting from January, in the document language.
@@ -124,12 +127,12 @@ class g extends l {
124
127
  * E.g., with January in en-gb: `long` returns "January", `short` returns "Jan", `narrow` returns "J".
125
128
  */
126
129
  getMonthNames(t) {
127
- const e = new Intl.DateTimeFormat(i.current, { month: t });
130
+ const e = new Intl.DateTimeFormat(o.current, { month: t });
128
131
  return this._range(12, (r) => e.format(new Date(2017, r, 1)));
129
132
  }
130
133
  /** Creates a string array with length = 31, filled with the days in a month, starting from 1. */
131
134
  getDateNames() {
132
- const t = new Intl.DateTimeFormat(i.current, { day: "numeric" });
135
+ const t = new Intl.DateTimeFormat(o.current, { day: "numeric" });
133
136
  return this._range(31, (e) => t.format(new Date(2017, 0, e + 1)));
134
137
  }
135
138
  /**
@@ -138,7 +141,7 @@ class g extends l {
138
141
  * E.g., with Monday in en-gb: `long` returns "Monday", `short` returns "Mon", `narrow` returns "M".
139
142
  */
140
143
  getDayOfWeekNames(t) {
141
- const e = new Intl.DateTimeFormat(i.current, { weekday: t });
144
+ const e = new Intl.DateTimeFormat(o.current, { weekday: t });
142
145
  return this._range(7, (r) => e.format(new Date(2017, 0, r + 1)));
143
146
  }
144
147
  /* Defines which is the first day of the week (0: sunday; 1: monday; etc.). */
@@ -159,10 +162,10 @@ class g extends l {
159
162
  throw Error(`Invalid month index "${e}". Month index has to be between 1 and 12.`);
160
163
  if (r < 1)
161
164
  throw Error(`Invalid date "${r}". Date has to be greater than 0.`);
162
- const n = this._createDateWithOverflow(t, e - 1, r);
163
- if (n.getMonth() + 1 !== e)
165
+ const a = this._createDateWithOverflow(t, e - 1, r);
166
+ if (a.getMonth() + 1 !== e)
164
167
  throw Error(`Invalid date "${r}" for month with index "${e}".`);
165
- return n;
168
+ return a;
166
169
  }
167
170
  /** Checks whether the given `obj` is a Date. */
168
171
  isDateInstance(t) {
@@ -190,8 +193,8 @@ class g extends l {
190
193
  * E.g., with `date` = new Date(2022, 0, 31) and `months` = 1, it returns new Date(2022, 1, 28).
191
194
  */
192
195
  addCalendarMonths(t, e) {
193
- const r = t.getMonth() + e, n = new Date(t.getFullYear(), r, 1, 0, 0, 0, 0), a = this.getNumDaysInMonth(n);
194
- return new Date(this.clone(t).setMonth(r, Math.min(a, t.getDate())));
196
+ const r = t.getMonth() + e, a = new Date(t.getFullYear(), r, 1, 0, 0, 0, 0), s = this.getNumDaysInMonth(a);
197
+ return new Date(this.clone(t).setMonth(r, Math.min(s, t.getDate())));
195
198
  }
196
199
  /** Creates a new date by adding the number of provided `days` to the provided `date`. */
197
200
  addCalendarDays(t, e) {
@@ -203,7 +206,7 @@ class g extends l {
203
206
  if (typeof t == "string")
204
207
  if (t)
205
208
  if (Number.isNaN(+t)) {
206
- if (D.test(t))
209
+ if (f.test(t))
207
210
  return this.getValidDateOrNull(new Date(t.includes("T") ? t : t + "T00:00:00"));
208
211
  } else return this.getValidDateOrNull(new Date(+t * 1e3));
209
212
  else return null;
@@ -212,18 +215,21 @@ class g extends l {
212
215
  return super.deserialize(t);
213
216
  }
214
217
  /** Returns the right format for the `valueAsDate` property. */
215
- parse(t, e) {
218
+ parse(t, e = this.today()) {
216
219
  if (!t)
217
220
  return null;
218
- const r = t.replace(/\D/g, " ").trim(), n = r == null ? void 0 : r.match(u);
219
- if (!n || n.index !== 0 || n.length <= 2 || n.some((s) => s === void 0) || !this.isValid(this.createDate(+n[3], +n[2], +n[1])))
221
+ const r = t.match(c), a = r ? this.createDate(+r[1], +r[2], +r[3]) : null;
222
+ if (this.isValid(a))
223
+ return a;
224
+ const s = t.replace(/\D/g, " ").trim(), n = s == null ? void 0 : s.match(D);
225
+ if (!n || n.index !== 0 || n.length <= 2 || n.some((h) => h === void 0) || !this.isValid(this.createDate(+n[3], +n[2], +n[1])))
220
226
  return null;
221
- let a = +n[3];
222
- if (typeof a == "number" && a < 100 && a >= 0) {
223
- const s = e.getFullYear() - 2e3 + this._cutoffYearOffset;
224
- a = a <= s ? 2e3 + a : 1900 + a;
227
+ let i = +n[3];
228
+ if (typeof i == "number" && i < 100 && i >= 0) {
229
+ const h = e.getFullYear() - 2e3 + this._cutoffYearOffset;
230
+ i = i <= h ? 2e3 + i : 1900 + i;
225
231
  }
226
- return new Date(a, +n[2] - 1, +n[1]);
232
+ return new Date(i, +n[2] - 1, +n[1]);
227
233
  }
228
234
  invalid() {
229
235
  return /* @__PURE__ */ new Date(NaN);
@@ -234,22 +240,24 @@ class g extends l {
234
240
  * @param valueFunction The function of array's index used to fill the array.
235
241
  */
236
242
  _range(t, e) {
237
- return Array.from({ length: t }).map((r, n) => e(n));
243
+ return Array.from({ length: t }).map((r, a) => e(a));
238
244
  }
239
245
  /** Creates a date but allows the month and date to overflow. */
240
246
  _createDateWithOverflow(t, e, r) {
241
- const n = new Date(t, e, r);
242
- return t >= 0 && t < 100 && n.setFullYear(this.getYear(n) - 1900), n;
247
+ const a = new Date(t, e, r);
248
+ return t >= 0 && t < 100 && a.setFullYear(this.getYear(a) - 1900), a;
243
249
  }
244
250
  }
245
- const w = new g();
251
+ const _ = new d();
246
252
  export {
247
- o as DAYS_PER_ROW,
248
- l as DateAdapter,
249
- u as FORMAT_DATE,
250
- f as MONTHS_PER_ROW,
251
- g as NativeDateAdapter,
252
- d as YEARS_PER_PAGE,
253
- m as YEARS_PER_ROW,
254
- w as defaultDateAdapter
253
+ l as DAYS_PER_ROW,
254
+ g as DateAdapter,
255
+ D as FORMAT_DATE,
256
+ c as ISO8601_FORMAT_DATE,
257
+ O as MONTHS_PER_PAGE,
258
+ w as MONTHS_PER_ROW,
259
+ d as NativeDateAdapter,
260
+ M as YEARS_PER_PAGE,
261
+ y as YEARS_PER_ROW,
262
+ _ as defaultDateAdapter
255
263
  };
@@ -0,0 +1,8 @@
1
+ import { ComplexAttributeConverter } from 'lit';
2
+ /**
3
+ * Converts empty values to null, which will not be rendered as attributes.
4
+ * e.g. for string properties, an empty value '' will not be rendered as an
5
+ * empty attribute, as would be the default with lit.
6
+ */
7
+ export declare const dateConverter: ComplexAttributeConverter;
8
+ //# sourceMappingURL=date-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-converter.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/date-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,KAAK,CAAC;AAKrD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,yBAS3B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Converts the given value to a date object or null.
3
+ * Should be used as a type hint for the @property decorator.
4
+ * @param value The value to convert to a date object.
5
+ * @returns A date object or null.
6
+ */
7
+ export declare function DateOnlyType(value: unknown): unknown | null;
8
+ //# sourceMappingURL=date-only-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-only-type.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/date-only-type.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAS3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-override.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/get-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,YACvD,CAAC,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,cAGjC,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,WACjC,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAeJ,CAAC"}
1
+ {"version":3,"file":"get-override.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/get-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EACjE,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,MAGzC,QAAQ,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAeJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handle-distinct-change.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/handle-distinct-change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,YAChE,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,KAAK,IAAI,cAG3D,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,WACjC,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAiBJ,CAAC"}
1
+ {"version":3,"file":"handle-distinct-change.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/handle-distinct-change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAC1E,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,KAAK,IAAI,MAGnE,QAAQ,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1C,SAAS,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAC3C,GAiBJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"host-attributes.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/host-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,KAAK,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAexD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,eACZ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,cAAc,mBAAmB,CAAC,eAAe,CAAC,SAoBxF,CAAC"}
1
+ {"version":3,"file":"host-attributes.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/host-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,KAAK,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAexD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,GACxB,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,QAAQ,mBAAmB,CAAC,eAAe,CAAC,SAoBxF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"slot-state.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/slot-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,iBAAkB,mBAAmB,CAAC,eAAe,CAAC,SAM3E,CAAC"}
1
+ {"version":3,"file":"slot-state.d.ts","sourceRoot":"","sources":["../../../../src/elements/core/decorators/slot-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,KAAK,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,SAAU,QAAQ,mBAAmB,CAAC,eAAe,CAAC,SAM3E,CAAC"}
@@ -1,3 +1,5 @@
1
+ export * from './decorators/date-converter.js';
2
+ export * from './decorators/date-only-type.js';
1
3
  export * from './decorators/force-type.js';
2
4
  export * from './decorators/get-override.js';
3
5
  export * from './decorators/handle-distinct-change.js';
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/elements/core/decorators.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/elements/core/decorators.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC"}