@sbb-esta/lyne-elements 3.0.0-next.1 → 3.0.0-next.3

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 (566) hide show
  1. package/accordion/accordion.component.js +19 -22
  2. package/action-group/action-group.component.js +3 -5
  3. package/alert/alert/alert.component.d.ts +5 -7
  4. package/alert/alert/alert.component.d.ts.map +1 -1
  5. package/alert/alert/alert.component.js +69 -84
  6. package/alert/alert-group/alert-group.component.js +2 -3
  7. package/autocomplete/autocomplete-base-element.js +83 -95
  8. package/autocomplete/autocomplete.component.js +28 -33
  9. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +42 -50
  10. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -1
  11. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  12. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +4 -5
  13. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
  14. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
  15. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  16. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +21 -24
  17. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +5 -5
  18. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +27 -31
  19. package/button/mini-button/mini-button.component.js +1 -1
  20. package/button/mini-button-group/mini-button-group.component.js +1 -2
  21. package/calendar/calendar.component.d.ts +0 -5
  22. package/calendar/calendar.component.d.ts.map +1 -1
  23. package/calendar/calendar.component.js +129 -147
  24. package/card/card/card.component.js +12 -12
  25. package/card/card-badge/card-badge.component.js +17 -17
  26. package/card/common/card-action-common.js +20 -22
  27. package/checkbox/checkbox/checkbox.component.js +17 -20
  28. package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
  29. package/checkbox/checkbox-panel/checkbox-panel.component.js +18 -21
  30. package/checkbox/common/checkbox-common.js +13 -15
  31. package/chip/chip-group/chip-group.component.js +66 -80
  32. package/clock/clock.component.js +50 -60
  33. package/container/container/container.component.js +28 -29
  34. package/container/sticky-bar/sticky-bar.component.js +25 -26
  35. package/core/a11y/focus-trap-controller.js +11 -14
  36. package/core/a11y/input-modality-detector.js +15 -16
  37. package/core/a11y/interactivity-checker.js +10 -10
  38. package/core/a11y/live-announcer.js +12 -14
  39. package/core/base-elements/button-base-element.js +58 -63
  40. package/core/base-elements/link-base-element.js +3 -6
  41. package/core/base-elements/open-close-base-element.js +1 -1
  42. package/core/config/config.d.ts.map +1 -1
  43. package/core/controllers/escapable-overlay-controller.js +10 -12
  44. package/core/controllers/id-reference-controller.js +13 -14
  45. package/core/controllers/inert-controller.js +8 -10
  46. package/core/controllers/slot-state-controller.js +16 -26
  47. package/core/datetime/date-adapter.d.ts +1 -1
  48. package/core/datetime/date-adapter.d.ts.map +1 -1
  49. package/core/datetime/date-adapter.js +21 -21
  50. package/core/datetime/native-date-adapter.d.ts +1 -1
  51. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  52. package/core/datetime/native-date-adapter.js +28 -28
  53. package/core/decorators/force-type.js +4 -5
  54. package/core/decorators/id-reference.js +34 -37
  55. package/core/decorators/plain-date.js +16 -19
  56. package/core/dom/breakpoint.js +8 -8
  57. package/core/eventing/event-emitter.js +4 -5
  58. package/core/i18n/i18n.js +41 -41
  59. package/core/mixins/element-internals-mixin.d.ts +21 -0
  60. package/core/mixins/element-internals-mixin.d.ts.map +1 -1
  61. package/core/mixins/element-internals-mixin.js +109 -23
  62. package/core/mixins/form-associated-checkbox-mixin.js +32 -37
  63. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  64. package/core/mixins/form-associated-input-mixin.js +69 -93
  65. package/core/mixins/form-associated-mixin.js +32 -35
  66. package/core/mixins/form-associated-radio-button-mixin.js +3 -5
  67. package/core/mixins/hydration-mixin.js +12 -13
  68. package/core/mixins/named-slot-list-mixin.js +32 -37
  69. package/core/mixins/panel-mixin.js +26 -27
  70. package/core/mixins/readonly-mixin.d.ts.map +1 -1
  71. package/core/mixins/readonly-mixin.js +10 -11
  72. package/core/mixins.js +27 -25
  73. package/core/overlay/position.js +23 -23
  74. package/core/styles/core/mediaqueries.scss +1 -1
  75. package/core/styles/core.scss +70 -35
  76. package/core/styles/mixins/table.scss +1 -24
  77. package/core/testing/event-spy.js +2 -4
  78. package/core/testing/wait-for-image-ready.js +8 -9
  79. package/core/testing/wait-for-render.js +8 -9
  80. package/core.css +29 -0
  81. package/custom-elements.json +5233 -2634
  82. package/date-input/date-input.component.d.ts +16 -1
  83. package/date-input/date-input.component.d.ts.map +1 -1
  84. package/date-input/date-input.component.js +71 -58
  85. package/datepicker/common/datepicker-button.d.ts +31 -20
  86. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  87. package/datepicker/common/datepicker-button.js +79 -74
  88. package/datepicker/common.d.ts +0 -1
  89. package/datepicker/common.d.ts.map +1 -1
  90. package/datepicker/common.js +3 -5
  91. package/datepicker/datepicker/datepicker.component.d.ts +23 -102
  92. package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  93. package/datepicker/datepicker/datepicker.component.js +91 -233
  94. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -2
  95. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  96. package/datepicker/datepicker-next-day/datepicker-next-day.component.js +27 -18
  97. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -2
  98. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  99. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +27 -18
  100. package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +6 -26
  101. package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
  102. package/datepicker/datepicker-toggle/datepicker-toggle.component.js +36 -145
  103. package/datepicker.js +9 -11
  104. package/development/accordion/accordion.component.js +4 -7
  105. package/development/action-group/action-group.component.js +3 -5
  106. package/development/alert/alert/alert.component.d.ts +5 -7
  107. package/development/alert/alert/alert.component.d.ts.map +1 -1
  108. package/development/alert/alert/alert.component.js +34 -52
  109. package/development/alert/alert-group/alert-group.component.js +2 -3
  110. package/development/autocomplete/autocomplete-base-element.js +20 -32
  111. package/development/autocomplete/autocomplete.component.js +7 -12
  112. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
  113. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -1
  114. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  115. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +4 -9
  116. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  117. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
  118. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
  119. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  120. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
  121. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
  122. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
  123. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
  124. package/development/button/accent-button/accent-button.component.js +1 -1
  125. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  126. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  127. package/development/button/button/button.component.js +1 -1
  128. package/development/button/button-link/button-link.component.js +1 -1
  129. package/development/button/button-static/button-static.component.js +1 -1
  130. package/development/button/common/button-common.js +1 -1
  131. package/development/button/mini-button/mini-button.component.js +1 -1
  132. package/development/button/mini-button-group/mini-button-group.component.js +2 -3
  133. package/development/button/secondary-button/secondary-button.component.js +1 -1
  134. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  135. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  136. package/development/button/transparent-button/transparent-button.component.js +1 -1
  137. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  138. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  139. package/development/calendar/calendar.component.d.ts +0 -5
  140. package/development/calendar/calendar.component.d.ts.map +1 -1
  141. package/development/calendar/calendar.component.js +20 -44
  142. package/development/card/card/card.component.js +1 -1
  143. package/development/card/card-badge/card-badge.component.js +2 -2
  144. package/development/card/card-button/card-button.component.js +1 -1
  145. package/development/card/card-link/card-link.component.js +1 -1
  146. package/development/card/common/card-action-common.js +4 -6
  147. package/development/checkbox/checkbox/checkbox.component.js +2 -5
  148. package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
  149. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
  150. package/development/checkbox/common/checkbox-common.js +3 -5
  151. package/development/chip/chip/chip.component.js +1 -1
  152. package/development/chip/chip-group/chip-group.component.js +18 -32
  153. package/development/chip-label/chip-label.component.js +1 -1
  154. package/development/clock/clock.component.js +23 -33
  155. package/development/container/container/container.component.js +2 -3
  156. package/development/container/sticky-bar/sticky-bar.component.js +3 -4
  157. package/development/core/a11y/arrow-navigation.js +1 -1
  158. package/development/core/a11y/fake-event-detection.js +1 -1
  159. package/development/core/a11y/focus-trap-controller.js +6 -9
  160. package/development/core/a11y/focus-visible-within-controller.js +1 -1
  161. package/development/core/a11y/input-modality-detector.js +2 -3
  162. package/development/core/a11y/interactivity-checker.js +2 -2
  163. package/development/core/a11y/live-announcer.js +6 -8
  164. package/development/core/base-elements/action-base-element.js +2 -3
  165. package/development/core/base-elements/button-base-element.js +6 -11
  166. package/development/core/base-elements/link-base-element.js +4 -7
  167. package/development/core/base-elements/open-close-base-element.js +2 -2
  168. package/development/core/config/config.d.ts.map +1 -1
  169. package/development/core/config/config.js +1 -1
  170. package/development/core/controllers/escapable-overlay-controller.js +3 -5
  171. package/development/core/controllers/id-reference-controller.js +2 -3
  172. package/development/core/controllers/inert-controller.js +4 -6
  173. package/development/core/controllers/language-controller.js +1 -1
  174. package/development/core/controllers/media-matchers-controller.js +1 -1
  175. package/development/core/controllers/slot-state-controller.js +8 -18
  176. package/development/core/datetime/date-adapter.d.ts +1 -1
  177. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  178. package/development/core/datetime/date-adapter.js +5 -5
  179. package/development/core/datetime/native-date-adapter.d.ts +1 -1
  180. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  181. package/development/core/datetime/native-date-adapter.js +4 -4
  182. package/development/core/decorators/force-type.js +3 -4
  183. package/development/core/decorators/get-override.js +1 -1
  184. package/development/core/decorators/handle-distinct-change.js +1 -1
  185. package/development/core/decorators/host-attributes.js +1 -1
  186. package/development/core/decorators/id-reference.js +4 -7
  187. package/development/core/decorators/plain-date.js +5 -8
  188. package/development/core/decorators/slot-state.js +1 -1
  189. package/development/core/dom/animation.js +1 -1
  190. package/development/core/dom/breakpoint.js +2 -2
  191. package/development/core/dom/host-context.js +1 -1
  192. package/development/core/dom/platform.js +1 -1
  193. package/development/core/dom/scroll.js +1 -1
  194. package/development/core/dom/set-or-remove-attribute.js +1 -1
  195. package/development/core/eventing/composed-path-has-attribute.js +1 -1
  196. package/development/core/eventing/event-emitter.js +2 -3
  197. package/development/core/eventing/form-element-handlers.js +1 -1
  198. package/development/core/eventing/forward-event.js +1 -1
  199. package/development/core/eventing/throttle.js +1 -1
  200. package/development/core/i18n/i18n.js +18 -18
  201. package/development/core/mixins/animation-complete-mixin.js +1 -1
  202. package/development/core/mixins/disabled-mixin.js +1 -1
  203. package/development/core/mixins/element-internals-mixin.d.ts +21 -0
  204. package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
  205. package/development/core/mixins/element-internals-mixin.js +123 -2
  206. package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
  207. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  208. package/development/core/mixins/form-associated-input-mixin.js +29 -59
  209. package/development/core/mixins/form-associated-mixin.js +6 -9
  210. package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
  211. package/development/core/mixins/hydration-mixin.js +3 -4
  212. package/development/core/mixins/named-slot-list-mixin.js +4 -7
  213. package/development/core/mixins/negative-mixin.js +1 -1
  214. package/development/core/mixins/panel-mixin.js +2 -3
  215. package/development/core/mixins/readonly-mixin.d.ts.map +1 -1
  216. package/development/core/mixins/readonly-mixin.js +4 -6
  217. package/development/core/mixins/required-mixin.js +1 -1
  218. package/development/core/mixins/update-scheduler-mixin.js +1 -1
  219. package/development/core/mixins.js +4 -2
  220. package/development/core/overlay/overlay-option-panel.js +1 -1
  221. package/development/core/overlay/overlay-trigger-attributes.js +1 -1
  222. package/development/core/overlay/overlay.js +1 -1
  223. package/development/core/overlay/position.js +5 -5
  224. package/development/core/testing/event-spy.js +3 -5
  225. package/development/core/testing/mocha-extensions.js +1 -1
  226. package/development/core/testing/wait-for-condition.js +1 -1
  227. package/development/core/testing/wait-for-image-ready.js +2 -3
  228. package/development/core/testing/wait-for-render.js +2 -3
  229. package/development/date-input/date-input.component.d.ts +16 -1
  230. package/development/date-input/date-input.component.d.ts.map +1 -1
  231. package/development/date-input/date-input.component.js +28 -11
  232. package/development/datepicker/common/datepicker-button.d.ts +31 -20
  233. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  234. package/development/datepicker/common/datepicker-button.js +103 -90
  235. package/development/datepicker/common.d.ts +0 -1
  236. package/development/datepicker/common.d.ts.map +1 -1
  237. package/development/datepicker/common.js +4 -6
  238. package/development/datepicker/datepicker/datepicker.component.d.ts +23 -102
  239. package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  240. package/development/datepicker/datepicker/datepicker.component.js +94 -337
  241. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -2
  242. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  243. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +18 -6
  244. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -2
  245. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  246. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +18 -6
  247. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +6 -26
  248. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
  249. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +137 -224
  250. package/development/datepicker.js +3 -5
  251. package/development/dialog/dialog/dialog.component.d.ts +7 -16
  252. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  253. package/development/dialog/dialog/dialog.component.js +78 -149
  254. package/development/dialog/dialog-actions/dialog-actions.component.d.ts +2 -2
  255. package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  256. package/development/dialog/dialog-actions/dialog-actions.component.js +20 -17
  257. package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  258. package/development/dialog/dialog-content/dialog-content.component.js +5 -46
  259. package/development/dialog/dialog-title/dialog-title.component.d.ts +2 -26
  260. package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  261. package/development/dialog/dialog-title/dialog-title.component.js +12 -179
  262. package/development/divider/divider.component.js +2 -2
  263. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
  264. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -2
  265. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +5 -6
  266. package/development/file-selector/common/file-selector-common.js +2 -3
  267. package/development/file-selector/file-selector/file-selector.component.js +1 -1
  268. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  269. package/development/flip-card/flip-card/flip-card.component.js +7 -13
  270. package/development/flip-card/flip-card-details/flip-card-details.component.js +3 -4
  271. package/development/flip-card/flip-card-summary/flip-card-summary.component.js +3 -4
  272. package/development/footer/footer.component.js +1 -1
  273. package/development/form-error/form-error.component.js +3 -4
  274. package/development/form-field/form-field/form-field.component.d.ts +1 -1
  275. package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
  276. package/development/form-field/form-field/form-field.component.js +39 -67
  277. package/development/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  278. package/development/form-field/form-field-clear/form-field-clear.component.js +6 -8
  279. package/development/header/common/header-action-common.js +1 -1
  280. package/development/header/header/header.component.js +5 -8
  281. package/development/header/header-button/header-button.component.js +1 -1
  282. package/development/header/header-link/header-link.component.js +1 -1
  283. package/development/icon/icon-base.d.ts +5 -3
  284. package/development/icon/icon-base.d.ts.map +1 -1
  285. package/development/icon/icon-base.js +4 -7
  286. package/development/icon/icon-name-mixin.js +1 -1
  287. package/development/icon/icon-request.js +2 -3
  288. package/development/icon/icon-validate.js +1 -1
  289. package/development/icon/icon.component.d.ts +1 -2
  290. package/development/icon/icon.component.d.ts.map +1 -1
  291. package/development/icon/icon.component.js +8 -19
  292. package/development/image/image.component.js +7 -9
  293. package/development/journey-header/journey-header.component.d.ts +5 -5
  294. package/development/journey-header/journey-header.component.d.ts.map +1 -1
  295. package/development/journey-header/journey-header.component.js +26 -40
  296. package/development/lead-container/lead-container.component.js +1 -1
  297. package/development/link/block-link/block-link.component.js +1 -1
  298. package/development/link/block-link-button/block-link-button.component.js +1 -1
  299. package/development/link/block-link-static/block-link-static.component.js +1 -1
  300. package/development/link/common/block-link-common.js +1 -1
  301. package/development/link/common/inline-link-common.js +1 -1
  302. package/development/link/link/link.component.js +1 -1
  303. package/development/link/link-button/link-button.component.js +1 -1
  304. package/development/link/link-static/link-static.component.js +1 -1
  305. package/development/link-common-DPLJx5Uo.js +1 -1
  306. package/development/link-list/common/link-list-base.js +1 -1
  307. package/development/link-list/link-list/link-list.component.js +1 -1
  308. package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
  309. package/development/loading-indicator/loading-indicator.component.js +1 -1
  310. package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
  311. package/development/logo/logo.component.js +1 -1
  312. package/development/map-container/map-container.component.js +2 -3
  313. package/development/menu/common/menu-action-common.js +1 -1
  314. package/development/menu/menu/menu.component.js +17 -25
  315. package/development/menu/menu-button/menu-button.component.js +1 -1
  316. package/development/menu/menu-link/menu-link.component.js +1 -1
  317. package/development/message/message.component.d.ts +4 -8
  318. package/development/message/message.component.d.ts.map +1 -1
  319. package/development/message/message.component.js +12 -54
  320. package/development/navigation/common/navigation-action-common.js +3 -5
  321. package/development/navigation/navigation/navigation.component.js +19 -35
  322. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  323. package/development/navigation/navigation-link/navigation-link.component.js +1 -1
  324. package/development/navigation/navigation-list/navigation-list.component.js +1 -1
  325. package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
  326. package/development/navigation/navigation-section/navigation-section.component.d.ts +1 -1
  327. package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
  328. package/development/navigation/navigation-section/navigation-section.component.js +27 -37
  329. package/development/notification/notification.component.d.ts +7 -9
  330. package/development/notification/notification.component.d.ts.map +1 -1
  331. package/development/notification/notification.component.js +47 -77
  332. package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  333. package/development/option/optgroup/optgroup-base-element.js +8 -14
  334. package/development/option/optgroup/optgroup.component.js +6 -10
  335. package/development/option/option/option-base-element.js +3 -4
  336. package/development/option/option/option.component.js +7 -10
  337. package/development/overlay/overlay-base-element.d.ts +24 -6
  338. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  339. package/development/overlay/overlay-base-element.js +114 -15
  340. package/development/overlay/overlay.component.d.ts +2 -12
  341. package/development/overlay/overlay.component.d.ts.map +1 -1
  342. package/development/overlay/overlay.component.js +33 -98
  343. package/development/paginator/common/paginator-common.js +1 -1
  344. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  345. package/development/paginator/paginator/paginator.component.js +2 -3
  346. package/development/popover/popover/popover.component.d.ts +45 -34
  347. package/development/popover/popover/popover.component.d.ts.map +1 -1
  348. package/development/popover/popover/popover.component.js +215 -172
  349. package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
  350. package/development/popover/popover.js +2 -1
  351. package/development/popover.js +2 -1
  352. package/development/radio-button/common/radio-button-common.js +6 -10
  353. package/development/radio-button/radio-button/radio-button.component.js +2 -5
  354. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +1 -1
  355. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  356. package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
  357. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
  358. package/development/screen-reader-only/screen-reader-only.component.js +1 -1
  359. package/development/select/select.component.js +26 -49
  360. package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
  361. package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
  362. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  363. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
  364. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
  365. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
  366. package/development/sidebar/sidebar/sidebar.component.js +9 -16
  367. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
  368. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  369. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +3 -8
  370. package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
  371. package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  372. package/development/sidebar/sidebar-title/sidebar-title.component.d.ts +2 -0
  373. package/development/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
  374. package/development/sidebar/sidebar-title/sidebar-title.component.js +3 -9
  375. package/development/signet/signet.component.js +1 -1
  376. package/development/skiplink-list/skiplink-list.component.d.ts.map +1 -1
  377. package/development/skiplink-list/skiplink-list.component.js +19 -10
  378. package/development/slider/slider.component.js +4 -6
  379. package/development/status/status.component.d.ts +4 -7
  380. package/development/status/status.component.d.ts.map +1 -1
  381. package/development/status/status.component.js +23 -57
  382. package/development/stepper/step/step.component.d.ts +2 -2
  383. package/development/stepper/step/step.component.d.ts.map +1 -1
  384. package/development/stepper/step/step.component.js +20 -22
  385. package/development/stepper/step-label/step-label.component.d.ts +3 -4
  386. package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
  387. package/development/stepper/step-label/step-label.component.js +20 -24
  388. package/development/stepper/stepper/stepper.component.js +16 -29
  389. package/development/table/table-wrapper/table-wrapper.component.js +2 -7
  390. package/development/tabs/tab/tab.component.js +1 -1
  391. package/development/tabs/tab-group/tab-group.component.js +23 -38
  392. package/development/tabs/tab-label/tab-label.component.js +1 -1
  393. package/development/tag/tag/tag.component.js +7 -13
  394. package/development/tag/tag-group/tag-group.component.js +5 -13
  395. package/development/teaser/teaser.component.d.ts +6 -10
  396. package/development/teaser/teaser.component.d.ts.map +1 -1
  397. package/development/teaser/teaser.component.js +48 -76
  398. package/development/teaser-hero/teaser-hero.component.js +1 -1
  399. package/development/teaser-product/common/teaser-product-common.js +1 -1
  400. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  401. package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
  402. package/development/time-input/time-input.component.js +10 -14
  403. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  404. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
  405. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -5
  406. package/development/title/title-base.d.ts +0 -8
  407. package/development/title/title-base.d.ts.map +1 -1
  408. package/development/title/title-base.js +17 -49
  409. package/development/title/title.component.d.ts +2 -0
  410. package/development/title/title.component.d.ts.map +1 -1
  411. package/development/title/title.component.js +9 -14
  412. package/development/toast/toast.component.d.ts.map +1 -1
  413. package/development/toast/toast.component.js +7 -16
  414. package/development/toggle/toggle/toggle.component.js +8 -12
  415. package/development/toggle/toggle-option/toggle-option.component.d.ts +1 -1
  416. package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
  417. package/development/toggle/toggle-option/toggle-option.component.js +10 -17
  418. package/development/toggle-check/toggle-check.component.js +1 -1
  419. package/development/train/train/train.component.js +1 -1
  420. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  421. package/development/train/train-formation/train-formation.component.js +5 -7
  422. package/development/train/train-wagon/train-wagon.component.js +1 -1
  423. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  424. package/dialog/dialog/dialog.component.d.ts +7 -16
  425. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  426. package/dialog/dialog/dialog.component.js +57 -87
  427. package/dialog/dialog-actions/dialog-actions.component.d.ts +2 -2
  428. package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  429. package/dialog/dialog-actions/dialog-actions.component.js +16 -16
  430. package/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  431. package/dialog/dialog-content/dialog-content.component.js +14 -19
  432. package/dialog/dialog-title/dialog-title.component.d.ts +2 -26
  433. package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  434. package/dialog/dialog-title/dialog-title.component.js +16 -111
  435. package/divider/divider.component.js +3 -3
  436. package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
  437. package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
  438. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +30 -31
  439. package/file-selector/common/file-selector-common.js +1 -2
  440. package/flip-card/flip-card/flip-card.component.js +48 -54
  441. package/flip-card/flip-card-details/flip-card-details.component.js +15 -16
  442. package/flip-card/flip-card-summary/flip-card-summary.component.js +19 -20
  443. package/form-error/form-error.component.js +13 -14
  444. package/form-field/form-field/form-field.component.d.ts +1 -1
  445. package/form-field/form-field/form-field.component.d.ts.map +1 -1
  446. package/form-field/form-field/form-field.component.js +149 -168
  447. package/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  448. package/form-field/form-field-clear/form-field-clear.component.js +19 -21
  449. package/header/header/header.component.js +26 -29
  450. package/icon/icon-base.d.ts +5 -3
  451. package/icon/icon-base.d.ts.map +1 -1
  452. package/icon/icon-base.js +32 -34
  453. package/icon/icon-request.js +10 -11
  454. package/icon/icon.component.d.ts +1 -2
  455. package/icon/icon.component.d.ts.map +1 -1
  456. package/icon/icon.component.js +37 -37
  457. package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
  458. package/image/image.component.js +4 -6
  459. package/journey-header/journey-header.component.d.ts +5 -5
  460. package/journey-header/journey-header.component.d.ts.map +1 -1
  461. package/journey-header/journey-header.component.js +50 -63
  462. package/map-container/map-container.component.js +1 -2
  463. package/menu/menu/menu.component.js +47 -55
  464. package/message/message.component.d.ts +4 -8
  465. package/message/message.component.d.ts.map +1 -1
  466. package/message/message.component.js +18 -47
  467. package/navigation/common/navigation-action-common.js +19 -21
  468. package/navigation/navigation/navigation.component.js +73 -92
  469. package/navigation/navigation-marker/navigation-marker.component.js +26 -28
  470. package/navigation/navigation-section/navigation-section.component.d.ts +1 -1
  471. package/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
  472. package/navigation/navigation-section/navigation-section.component.js +72 -82
  473. package/notification/notification.component.d.ts +7 -9
  474. package/notification/notification.component.d.ts.map +1 -1
  475. package/notification/notification.component.js +77 -95
  476. package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  477. package/option/optgroup/optgroup-base-element.js +36 -38
  478. package/option/optgroup/optgroup.component.js +16 -20
  479. package/option/option/option-base-element.js +3 -4
  480. package/option/option/option.component.js +26 -29
  481. package/overlay/overlay-base-element.d.ts +24 -6
  482. package/overlay/overlay-base-element.d.ts.map +1 -1
  483. package/overlay/overlay-base-element.js +98 -51
  484. package/overlay/overlay.component.d.ts +2 -12
  485. package/overlay/overlay.component.d.ts.map +1 -1
  486. package/overlay/overlay.component.js +57 -95
  487. package/package.json +1 -1
  488. package/paginator/paginator/paginator.component.js +3 -4
  489. package/popover/popover/popover.component.d.ts +45 -34
  490. package/popover/popover/popover.component.d.ts.map +1 -1
  491. package/popover/popover/popover.component.js +194 -168
  492. package/popover/popover-trigger/popover-trigger.component.js +1 -1
  493. package/popover/popover.js +2 -1
  494. package/popover.js +5 -4
  495. package/radio-button/common/radio-button-common.js +11 -15
  496. package/radio-button/radio-button/radio-button.component.js +16 -19
  497. package/radio-button/radio-button-group/radio-button-group.component.d.ts +1 -1
  498. package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  499. package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
  500. package/radio-button/radio-button-panel/radio-button-panel.component.js +33 -37
  501. package/select/select.component.js +94 -117
  502. package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
  503. package/sidebar/common.js +1 -1
  504. package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
  505. package/sidebar/sidebar/sidebar.component.js +62 -69
  506. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
  507. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  508. package/sidebar/sidebar-close-button/sidebar-close-button.component.js +18 -18
  509. package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
  510. package/sidebar/sidebar-title/sidebar-title.component.d.ts +2 -0
  511. package/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
  512. package/sidebar/sidebar-title/sidebar-title.component.js +16 -16
  513. package/sidebar.js +1 -1
  514. package/skiplink-list/skiplink-list.component.d.ts.map +1 -1
  515. package/skiplink-list/skiplink-list.component.js +36 -39
  516. package/slider/slider.component.js +11 -13
  517. package/standard-theme.css +29 -25
  518. package/status/status.component.d.ts +4 -7
  519. package/status/status.component.d.ts.map +1 -1
  520. package/status/status.component.js +34 -50
  521. package/stepper/step/step.component.d.ts +2 -2
  522. package/stepper/step/step.component.d.ts.map +1 -1
  523. package/stepper/step/step.component.js +29 -30
  524. package/stepper/step-label/step-label.component.d.ts +3 -4
  525. package/stepper/step-label/step-label.component.d.ts.map +1 -1
  526. package/stepper/step-label/step-label.component.js +22 -25
  527. package/stepper/stepper/stepper.component.js +72 -86
  528. package/table/table-wrapper/table-wrapper.component.js +17 -18
  529. package/table.css +0 -25
  530. package/tabs/tab-group/tab-group.component.js +77 -92
  531. package/tabs/tab-label/tab-label.component.js +12 -12
  532. package/tag/tag/tag.component.js +49 -55
  533. package/tag/tag-group/tag-group.component.js +37 -45
  534. package/teaser/teaser.component.d.ts +6 -10
  535. package/teaser/teaser.component.d.ts.map +1 -1
  536. package/teaser/teaser.component.js +45 -68
  537. package/teaser-product/common.js +1 -1
  538. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  539. package/teaser-product-common-C8oSkIxy.js +5 -0
  540. package/teaser-product.js +1 -1
  541. package/time-input/time-input.component.js +29 -33
  542. package/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
  543. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +22 -25
  544. package/title/title-base.d.ts +0 -8
  545. package/title/title-base.d.ts.map +1 -1
  546. package/title/title-base.js +34 -53
  547. package/title/title.component.d.ts +2 -0
  548. package/title/title.component.d.ts.map +1 -1
  549. package/title/title.component.js +9 -9
  550. package/toast/toast.component.d.ts.map +1 -1
  551. package/toast/toast.component.js +6 -9
  552. package/toggle/toggle/toggle.component.js +27 -31
  553. package/toggle/toggle-option/toggle-option.component.d.ts +1 -1
  554. package/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
  555. package/toggle/toggle-option/toggle-option.component.js +44 -51
  556. package/train/train-formation/train-formation.component.js +41 -43
  557. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
  558. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
  559. package/datepicker/common/datepicker-association-controllers.d.ts +0 -21
  560. package/datepicker/common/datepicker-association-controllers.d.ts.map +0 -1
  561. package/datepicker/common/datepicker-association-controllers.js +0 -58
  562. package/development/datepicker/common/datepicker-association-controllers.d.ts +0 -21
  563. package/development/datepicker/common/datepicker-association-controllers.d.ts.map +0 -1
  564. package/development/datepicker/common/datepicker-association-controllers.js +0 -82
  565. package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
  566. package/teaser-product-common-CpMAlYEp.js +0 -5
@@ -1,13 +1,11 @@
1
- import { isServer as n } from "lit";
2
- const c = new Array();
3
- n || window.addEventListener("keydown", (e) => {
4
- var t;
5
- e.key === "Escape" && !e.defaultPrevented && (e.preventDefault(), (t = c.at(-1)) == null || t.close());
1
+ import { isServer as i } from "lit";
2
+ const o = new Array();
3
+ i || window.addEventListener("keydown", (t) => {
4
+ t.key === "Escape" && !t.defaultPrevented && (t.preventDefault(), o.at(-1)?.close());
6
5
  });
7
- class r {
8
- constructor(t, s = c) {
9
- var o, i;
10
- this._host = t, this._overlayStack = s, (i = (o = this._host).addController) == null || i.call(o, this);
6
+ class n {
7
+ constructor(e, s = o) {
8
+ this._host = e, this._overlayStack = s, this._host.addController?.(this);
11
9
  }
12
10
  hostDisconnected() {
13
11
  this.disconnect();
@@ -19,11 +17,11 @@ class r {
19
17
  // This must be called when the overlay is closed
20
18
  disconnect() {
21
19
  if (this._overlayStack.length) {
22
- const t = this._overlayStack.findIndex((s) => s === this._host);
23
- t !== -1 && this._overlayStack.splice(t, 1);
20
+ const e = this._overlayStack.findIndex((s) => s === this._host);
21
+ e !== -1 && this._overlayStack.splice(e, 1);
24
22
  }
25
23
  }
26
24
  }
27
25
  export {
28
- r as SbbEscapableOverlayController
26
+ n as SbbEscapableOverlayController
29
27
  };
@@ -1,8 +1,8 @@
1
1
  import { isServer as d } from "lit";
2
2
  const h = /* @__PURE__ */ new WeakMap();
3
3
  class _ {
4
- constructor(t, o, i = h) {
5
- this._host = t, this._idRef = o, this._observers = i, this._rootNode = null, this._host.addController(this);
4
+ constructor(t, r, i = h) {
5
+ this._host = t, this._idRef = r, this._observers = i, this._rootNode = null, this._host.addController(this);
6
6
  }
7
7
  hostConnected() {
8
8
  if (d)
@@ -12,17 +12,17 @@ class _ {
12
12
  if (t)
13
13
  t.controllers.add(this);
14
14
  else {
15
- const o = /* @__PURE__ */ new Set([this]), i = new MutationObserver((n) => {
16
- const r = /* @__PURE__ */ new Set();
15
+ const r = /* @__PURE__ */ new Set([this]), i = new MutationObserver((n) => {
16
+ const s = /* @__PURE__ */ new Set();
17
17
  for (const e of n)
18
18
  if (e.type === "attributes")
19
- r.add(e.oldValue), r.add(e.target.id);
19
+ s.add(e.oldValue), s.add(e.target.id);
20
20
  else if (e.type === "childList")
21
- for (const s of [...e.addedNodes, ...e.removedNodes])
22
- s instanceof HTMLElement && (r.add(s.id), s.querySelectorAll("[id]").forEach((l) => r.add(l.id)));
23
- for (const e of o) {
24
- const s = e._host[e._idRef];
25
- s && typeof s == "string" && r.has(s) && e._host.requestUpdate();
21
+ for (const o of [...e.addedNodes, ...e.removedNodes])
22
+ o instanceof HTMLElement && (s.add(o.id), o.querySelectorAll("[id]").forEach((l) => s.add(l.id)));
23
+ for (const e of r) {
24
+ const o = e._host[e._idRef];
25
+ o && typeof o == "string" && s.has(o) && e._host.requestUpdate();
26
26
  }
27
27
  });
28
28
  i.observe(this._rootNode, {
@@ -30,7 +30,7 @@ class _ {
30
30
  childList: !0,
31
31
  subtree: !0,
32
32
  attributeOldValue: !0
33
- }), this._observers.set(this._rootNode, { observer: i, controllers: o });
33
+ }), this._observers.set(this._rootNode, { observer: i, controllers: r });
34
34
  }
35
35
  }
36
36
  hostDisconnected() {
@@ -47,12 +47,11 @@ class _ {
47
47
  * Find the element by id in the current document fragment
48
48
  */
49
49
  find() {
50
- var t;
51
50
  if (d || !this._rootNode)
52
51
  return null;
53
52
  {
54
- const o = this._host[this._idRef];
55
- return typeof o == "string" ? (t = this._rootNode) == null ? void 0 : t.getElementById(o) : null;
53
+ const t = this._host[this._idRef];
54
+ return typeof t == "string" ? this._rootNode?.getElementById(t) : null;
56
55
  }
57
56
  }
58
57
  }
@@ -1,8 +1,7 @@
1
- const a = ["script", "head", "template", "style"], n = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
2
- class d {
3
- constructor(t, r = n, e = h) {
4
- var i, s;
5
- this._host = t, this._inertElements = r, this._inertOverlays = e, (s = (i = this._host).addController) == null || s.call(i, this);
1
+ const r = ["script", "head", "template", "style"], s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
2
+ class h {
3
+ constructor(t, e = s, i = a) {
4
+ this._host = t, this._inertElements = e, this._inertOverlays = i, this._host.addController?.(this);
6
5
  }
7
6
  hostConnected() {
8
7
  this._host.isOpen && this.activate();
@@ -35,14 +34,13 @@ class d {
35
34
  }), this._inertElements.clear();
36
35
  }
37
36
  _addInertAttributes() {
38
- var r, e;
39
37
  let t = this._currentOverlay();
40
38
  for (; t !== document.documentElement && t !== null; )
41
- Array.from(((r = (t == null ? void 0 : t.parentElement) ?? (t == null ? void 0 : t.getRootNode())) == null ? void 0 : r.childNodes) ?? []).filter((i) => i !== t && i instanceof window.HTMLElement && !a.includes(i.localName) && !i.classList.contains("sbb-live-announcer-element")).forEach((i) => {
42
- this._inertElements.add(i), i.inert || (i.inert = !0, i.toggleAttribute("data-sbb-inert", !0)), i.hasAttribute("aria-hidden") || (i.setAttribute("aria-hidden", "true"), i.toggleAttribute("data-sbb-aria-hidden", !0));
43
- }), t = (t == null ? void 0 : t.parentElement) ?? ((e = t == null ? void 0 : t.getRootNode()) == null ? void 0 : e.host) ?? null;
39
+ Array.from((t?.parentElement ?? t?.getRootNode())?.childNodes ?? []).filter((e) => e !== t && e instanceof window.HTMLElement && !r.includes(e.localName) && !e.classList.contains("sbb-live-announcer-element")).forEach((e) => {
40
+ this._inertElements.add(e), e.inert || (e.inert = !0, e.toggleAttribute("data-sbb-inert", !0)), e.hasAttribute("aria-hidden") || (e.setAttribute("aria-hidden", "true"), e.toggleAttribute("data-sbb-aria-hidden", !0));
41
+ }), t = t?.parentElement ?? t?.getRootNode()?.host ?? null;
44
42
  }
45
43
  }
46
44
  export {
47
- d as SbbInertController
45
+ h as SbbInertController
48
46
  };
@@ -1,41 +1,31 @@
1
- import { isServer as i } from "lit";
2
- class l {
3
- constructor(e, s = null) {
4
- this._host = e, this._onChangeCallback = s, this.slots = /* @__PURE__ */ new Set(), this._textObserver = !i && new MutationObserver(() => {
5
- Array.from(this._host.childNodes).filter((o) => o.nodeType === o.TEXT_NODE).some((o) => {
6
- var n;
7
- return (n = o.textContent) == null ? void 0 : n.trim();
8
- }) ? this.slots.add("unnamed") : Array.from(this._host.children).every((o) => o.slot) && this.slots.delete("unnamed"), this._updateSlotNameAttribute();
9
- }), this._slotchangeHandler = (t) => {
10
- this._syncSlots(t.target);
1
+ import { isServer as n } from "lit";
2
+ class h {
3
+ constructor(s, t = null) {
4
+ this._host = s, this._onChangeCallback = t, this.slots = /* @__PURE__ */ new Set(), this._textObserver = !n && new MutationObserver(() => {
5
+ Array.from(this._host.childNodes).filter((e) => e.nodeType === e.TEXT_NODE).some((e) => e.textContent?.trim()) ? this.slots.add("unnamed") : Array.from(this._host.children).every((e) => e.slot) && this.slots.delete("unnamed"), this._updateSlotNameAttribute();
6
+ }), this._slotchangeHandler = (o) => {
7
+ this._syncSlots(o.target);
11
8
  }, this._host.addController(this);
12
9
  }
13
10
  hostConnected() {
14
- var e, s, t;
15
- this._syncSlots(...((s = (e = this._host.shadowRoot) == null ? void 0 : e.querySelectorAll) == null ? void 0 : s.call(e, "slot")) ?? []), (t = this._host.shadowRoot) == null || t.addEventListener("slotchange", this._slotchangeHandler);
11
+ this._syncSlots(...this._host.shadowRoot?.querySelectorAll?.("slot") ?? []), this._host.shadowRoot?.addEventListener("slotchange", this._slotchangeHandler);
16
12
  }
17
13
  hostDisconnected() {
18
- var e;
19
- (e = this._host.shadowRoot) == null || e.removeEventListener("slotchange", this._slotchangeHandler), this._textObserver.disconnect();
14
+ this._host.shadowRoot?.removeEventListener("slotchange", this._slotchangeHandler), this._textObserver.disconnect();
20
15
  }
21
- _syncSlots(...e) {
22
- var s;
16
+ _syncSlots(...s) {
23
17
  this._textObserver.disconnect();
24
- for (const t of e) {
18
+ for (const t of s) {
25
19
  const o = t.name || "unnamed";
26
- t.assignedNodes().some((n) => {
27
- var a;
28
- return "tagName" in n || ((a = n.textContent) == null ? void 0 : a.trim());
29
- }) ? this.slots.add(o) : this.slots.delete(o), this._updateSlotNameAttribute();
20
+ t.assignedNodes().some((e) => "tagName" in e || e.textContent?.trim()) ? this.slots.add(o) : this.slots.delete(o), this._updateSlotNameAttribute();
30
21
  }
31
- (s = e.find((t) => !t.name)) == null || s.assignedNodes().filter((t) => t.nodeType === t.TEXT_NODE).forEach((t) => this._textObserver.observe(t, { characterData: !0 }));
22
+ s.find((t) => !t.name)?.assignedNodes().filter((t) => t.nodeType === t.TEXT_NODE).forEach((t) => this._textObserver.observe(t, { characterData: !0 }));
32
23
  }
33
24
  _updateSlotNameAttribute() {
34
- var t;
35
- const e = this._host.getAttribute("data-slot-names"), s = [...this.slots].sort().join(" ");
36
- s ? this._host.getAttribute("data-slot-names") !== s && this._host.setAttribute("data-slot-names", s) : this._host.removeAttribute("data-slot-names"), s !== e && ((t = this._onChangeCallback) == null || t.call(this));
25
+ const s = this._host.getAttribute("data-slot-names"), t = [...this.slots].sort().join(" ");
26
+ t ? this._host.getAttribute("data-slot-names") !== t && this._host.setAttribute("data-slot-names", t) : this._host.removeAttribute("data-slot-names"), t !== s && this._onChangeCallback?.();
37
27
  }
38
28
  }
39
29
  export {
40
- l as SbbSlotStateController
30
+ h as SbbSlotStateController
41
31
  };
@@ -111,7 +111,7 @@ export declare abstract class DateAdapter<T = any> {
111
111
  * @param value The date in the format DD.MM.YYYY.
112
112
  * @param now The current date as Date.
113
113
  */
114
- abstract parse(value: string | null | undefined, now?: T): T | null;
114
+ abstract parse(value: string | null | undefined): T | null;
115
115
  /**
116
116
  * Format the given date as string.
117
117
  * @param date The date to format.
@@ -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,eAAe,EAAE,MAAW,CAAC;AAC1C,eAAO,MAAM,cAAc,EAAE,MAAW,CAAC;AACzC,eAAO,MAAM,WAAW,QACgE,CAAC;AACzF,eAAO,MAAM,mBAAmB,QAA8B,CAAC;AAE/D;;;;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,O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B,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;KAAE,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"}
@@ -1,5 +1,5 @@
1
- const n = 7, D = 4, c = 4, g = 12, l = 24, u = /(^0?[1-9]?|[12]?[0-9]?|3?[01]?)[.,\\/\-\s](0?[1-9]?|1?[0-2]?)?[.,\\/\-\s](\d{1,4}$)?/, O = /^(\d{4})-(\d{2})-(\d{2})$/;
2
- class _ {
1
+ const h = 7, o = 4, D = 4, c = 12, g = 24, l = /(0?[1-9]|[12][0-9]|3[01])[.,\\/\-\s](0?[1-9]|1[0-2])[.,\\/\-\s]([0-9]{1,4}$)?/, u = /^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-3][0-9])$/;
2
+ class O {
3
3
  /**
4
4
  * Attempts to deserialize a value to a valid date object. This is different from parsing in that
5
5
  * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
@@ -19,23 +19,23 @@ class _ {
19
19
  format(t, e) {
20
20
  if (!this.isValid(t))
21
21
  return "";
22
- const r = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"), s = new Intl.DateTimeFormat("de-CH", {
22
+ const s = /* @__PURE__ */ new Date(this.toIso8601(t) + "T00:00:00"), i = new Intl.DateTimeFormat("de-CH", {
23
23
  day: "2-digit",
24
24
  month: "2-digit",
25
25
  year: "numeric"
26
26
  });
27
- if ((e == null ? void 0 : e.weekdayStyle) === "none")
28
- return s.format(r);
29
- const a = (e == null ? void 0 : e.weekdayStyle) ?? "short";
30
- let i = this.getDayOfWeekNames(a)[this.getDayOfWeek(t)];
31
- return i = i.charAt(0).toUpperCase() + i.substring(1), a === "short" && (i = i.substring(0, 2)), `${i}, ${s.format(r)}`;
27
+ if (e?.weekdayStyle === "none")
28
+ return i.format(s);
29
+ const a = e?.weekdayStyle ?? "short";
30
+ let r = this.getDayOfWeekNames(a)[this.getDayOfWeek(t)];
31
+ return r = r.charAt(0).toUpperCase() + r.substring(1), a === "short" && (r = r.substring(0, 2)), `${r}, ${i.format(s)}`;
32
32
  }
33
33
  /**
34
34
  * Get the given date as ISO String.
35
35
  * @param date The date to convert to ISO String.
36
36
  */
37
37
  toIso8601(t) {
38
- const e = (r, s = 2) => `${r}`.padStart(s, "0");
38
+ const e = (s, i = 2) => `${s}`.padStart(i, "0");
39
39
  return `${e(this.getYear(t), 4)}-${e(this.getMonth(t))}-${e(this.getDate(t))}`;
40
40
  }
41
41
  /**
@@ -73,8 +73,8 @@ class _ {
73
73
  */
74
74
  sameDate(t, e) {
75
75
  if (t && e) {
76
- const r = this.isValid(t), s = this.isValid(e);
77
- return r && s ? !this.compareDate(t, e) : r == s;
76
+ const s = this.isValid(t), i = this.isValid(e);
77
+ return s && i ? !this.compareDate(t, e) : s == i;
78
78
  }
79
79
  return t == e;
80
80
  }
@@ -86,17 +86,17 @@ class _ {
86
86
  * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,
87
87
  * otherwise `date`.
88
88
  */
89
- clampDate(t, e, r) {
90
- return e && this.compareDate(t, e) < 0 ? e : r && this.compareDate(t, r) > 0 ? r : t;
89
+ clampDate(t, e, s) {
90
+ return e && this.compareDate(t, e) < 0 ? e : s && this.compareDate(t, s) > 0 ? s : t;
91
91
  }
92
92
  }
93
93
  export {
94
- n as DAYS_PER_ROW,
95
- _ as DateAdapter,
96
- u as FORMAT_DATE,
97
- O as ISO8601_FORMAT_DATE,
98
- g as MONTHS_PER_PAGE,
99
- D as MONTHS_PER_ROW,
100
- l as YEARS_PER_PAGE,
101
- c as YEARS_PER_ROW
94
+ h as DAYS_PER_ROW,
95
+ O as DateAdapter,
96
+ l as FORMAT_DATE,
97
+ u as ISO8601_FORMAT_DATE,
98
+ c as MONTHS_PER_PAGE,
99
+ o as MONTHS_PER_ROW,
100
+ g as YEARS_PER_PAGE,
101
+ D as YEARS_PER_ROW
102
102
  };
@@ -56,7 +56,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
56
56
  /** Creates a Date from a valid input (Date or ISO string). */
57
57
  deserialize(date: Date | string | null | undefined): Date | null;
58
58
  /** Returns the right format for the `valueAsDate` property. */
59
- parse(value: string | null | undefined, now?: Date): Date | null;
59
+ parse(value: string | null | undefined): Date | null;
60
60
  invalid(): Date;
61
61
  /**
62
62
  * 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":"AAEA,OAAO,EAAE,WAAW,EAAoC,MAAM,mBAAmB,CAAC;AAUlF,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAExB,gBAAgB,GAAE,MAAW;IAKhD,uCAAuC;IAChC,OAAO,CAAC,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ateAdapter as l, ISO8601_FORMAT_DATE as h, FORMAT_DATE as c } from "./date-adapter.js";
3
- const D = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
4
- class f extends l {
2
+ import { DateAdapter as u, ISO8601_FORMAT_DATE as l, FORMAT_DATE as h } from "./date-adapter.js";
3
+ const c = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
4
+ class D extends u {
5
5
  constructor(t = 15) {
6
6
  super(), this._cutoffYearOffset = t;
7
7
  }
@@ -71,10 +71,10 @@ class f extends l {
71
71
  throw Error(`Invalid month index "${e}". Month index has to be between 1 and 12.`);
72
72
  if (r < 1)
73
73
  throw Error(`Invalid date "${r}". Date has to be greater than 0.`);
74
- const n = this._createDateWithOverflow(t, e - 1, r);
75
- if (n.getMonth() + 1 !== e)
74
+ const a = this._createDateWithOverflow(t, e - 1, r);
75
+ if (a.getMonth() + 1 !== e)
76
76
  throw Error(`Invalid date "${r}" for month with index "${e}".`);
77
- return n;
77
+ return a;
78
78
  }
79
79
  /** Checks whether the given `obj` is a Date. */
80
80
  isDateInstance(t) {
@@ -102,8 +102,8 @@ class f extends l {
102
102
  * E.g., with `date` = new Date(2022, 0, 31) and `months` = 1, it returns new Date(2022, 1, 28).
103
103
  */
104
104
  addCalendarMonths(t, e) {
105
- const r = t.getMonth() + e, n = new Date(t.getFullYear(), r, 1, 0, 0, 0, 0), s = this.getNumDaysInMonth(n);
106
- return new Date(this.clone(t).setMonth(r, Math.min(s, t.getDate())));
105
+ const r = t.getMonth() + e, a = new Date(t.getFullYear(), r, 1, 0, 0, 0, 0), n = this.getNumDaysInMonth(a);
106
+ return new Date(this.clone(t).setMonth(r, Math.min(n, t.getDate())));
107
107
  }
108
108
  /** Creates a new date by adding the number of provided `days` to the provided `date`. */
109
109
  addCalendarDays(t, e) {
@@ -114,32 +114,32 @@ class f extends l {
114
114
  deserialize(t) {
115
115
  if (typeof t == "string")
116
116
  if (t) {
117
- if (D.test(t))
117
+ if (c.test(t))
118
118
  return this.getValidDateOrNull(new Date(t.includes("T") ? t : t + "T00:00:00"));
119
119
  } else return null;
120
120
  return super.deserialize(t);
121
121
  }
122
122
  /** Returns the right format for the `valueAsDate` property. */
123
- parse(t, e = this.today()) {
123
+ parse(t) {
124
124
  if (!t)
125
125
  return null;
126
- let r = null;
127
- const n = t.match(h);
126
+ let e = null;
127
+ const r = t.match(l);
128
128
  try {
129
- r = n ? this.createDate(+n[1], +n[2], +n[3]) : null;
129
+ e = r ? this.createDate(+r[1], +r[2], +r[3]) : null;
130
130
  } catch {
131
131
  }
132
- if (this.isValid(r))
133
- return r;
134
- const s = t.replace(/\D/g, " ").trim(), a = s == null ? void 0 : s.match(c);
135
- if (!a || a.index !== 0 || a.length <= 2 || a.some((u) => u === void 0) || !this.isValid(this.createDate(+a[3], +a[2], +a[1])))
132
+ if (this.isValid(e))
133
+ return e;
134
+ const n = t.replace(/\D/g, " ").trim()?.match(h);
135
+ if (!n || n.index !== 0 || n.length <= 2 || n.some((o) => o === void 0) || !this.isValid(this.createDate(+n[3], +n[2], +n[1])))
136
136
  return null;
137
- let o = +a[3];
138
- if (typeof o == "number" && o < 100 && o >= 0) {
139
- const u = e.getFullYear() - 2e3 + this._cutoffYearOffset;
140
- o = o <= u ? 2e3 + o : 1900 + o;
137
+ let s = +n[3];
138
+ if (typeof s == "number" && s < 100 && s >= 0) {
139
+ const o = this.today().getFullYear() - 2e3 + this._cutoffYearOffset;
140
+ s = s <= o ? 2e3 + s : 1900 + s;
141
141
  }
142
- return new Date(o, +a[2] - 1, +a[1]);
142
+ return new Date(s, +n[2] - 1, +n[1]);
143
143
  }
144
144
  invalid() {
145
145
  return /* @__PURE__ */ new Date(NaN);
@@ -150,16 +150,16 @@ class f extends l {
150
150
  * @param valueFunction The function of array's index used to fill the array.
151
151
  */
152
152
  _range(t, e) {
153
- return Array.from({ length: t }).map((r, n) => e(n));
153
+ return Array.from({ length: t }).map((r, a) => e(a));
154
154
  }
155
155
  /** Creates a date but allows the month and date to overflow. */
156
156
  _createDateWithOverflow(t, e, r) {
157
- const n = new Date(t, e, r);
158
- return t >= 0 && t < 100 && n.setFullYear(this.getYear(n) - 1900), n;
157
+ const a = new Date(t, e, r);
158
+ return t >= 0 && t < 100 && a.setFullYear(this.getYear(a) - 1900), a;
159
159
  }
160
160
  }
161
- const w = new f();
161
+ const m = new D();
162
162
  export {
163
- f as NativeDateAdapter,
164
- w as defaultDateAdapter
163
+ D as NativeDateAdapter,
164
+ m as defaultDateAdapter
165
165
  };
@@ -1,7 +1,6 @@
1
- const p = (e) => (i, a) => {
2
- var l, s;
3
- const { kind: r, metadata: n, name: o } = a, u = ((s = (l = globalThis.litPropertyMetadata.get(n)) == null ? void 0 : l.get(o)) == null ? void 0 : s.type) ?? String;
4
- if (e ?? (e = u), e === String ? e = (t) => t == null ? "" : String(t) : e === Number && (e = (t) => t == null ? NaN : Number(t)), r === "accessor")
1
+ const o = (e) => (i, l) => {
2
+ const { kind: r, metadata: s, name: a } = l, n = globalThis.litPropertyMetadata.get(s)?.get(a)?.type ?? String;
3
+ if (e ??= n, e === String ? e = (t) => t == null ? "" : String(t) : e === Number && (e = (t) => t == null ? NaN : Number(t)), r === "accessor")
5
4
  return {
6
5
  set(t) {
7
6
  i.set.call(this, e(t));
@@ -14,5 +13,5 @@ const p = (e) => (i, a) => {
14
13
  throw new Error(`Unsupported decorator location: ${r}`);
15
14
  };
16
15
  export {
17
- p as forceType
16
+ o as forceType
18
17
  };
@@ -1,79 +1,76 @@
1
- import { isServer as m } from "lit";
2
- const h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), A = () => (p, d) => {
3
- var u, b;
4
- const { kind: a, metadata: y, name: f } = d;
5
- if (a === "accessor") {
6
- if (m)
1
+ import { isServer as b } from "lit";
2
+ const c = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), y = () => (g, n) => {
3
+ const { kind: l, metadata: N, name: a } = n;
4
+ if (l === "accessor") {
5
+ if (b)
7
6
  return {};
8
- const g = (b = (u = globalThis.litPropertyMetadata.get(y)) == null ? void 0 : u.get(f)) == null ? void 0 : b.attribute, n = typeof g == "string" ? g : f;
9
- return d.addInitializer(function() {
7
+ const f = globalThis.litPropertyMetadata.get(N)?.get(a)?.attribute, s = typeof f == "string" ? f : a;
8
+ return n.addInitializer(function() {
10
9
  this.addController({
11
10
  host: this,
12
11
  rootNode: null,
13
12
  checkIdReference(t) {
14
- var e, r;
15
- const s = this.host.getAttribute(n) ?? l.get(this.host);
16
- if (s && typeof s == "string" && (!t || t.has(s))) {
17
- const o = ((r = (e = this.rootNode) == null ? void 0 : e.getElementById) == null ? void 0 : r.call(e, s)) ?? null;
18
- d.access.get(this.host) !== o && d.access.set(this.host, o);
13
+ const e = this.host.getAttribute(s) ?? h.get(this.host);
14
+ if (e && typeof e == "string" && (!t || t.has(e))) {
15
+ const i = this.rootNode?.getElementById?.(e) ?? null;
16
+ n.access.get(this.host) !== i && n.access.set(this.host, i);
19
17
  }
20
18
  },
21
19
  hostConnected() {
22
20
  this.rootNode = this.host.getRootNode(), this.checkIdReference();
23
- const t = h.get(this.rootNode);
21
+ const t = c.get(this.rootNode);
24
22
  if (t)
25
23
  t.controllers.add(this);
26
24
  else {
27
- const s = /* @__PURE__ */ new Set([this]), e = new MutationObserver((r) => {
28
- const o = /* @__PURE__ */ new Set();
29
- for (const i of r)
30
- if (i.type === "attributes")
31
- i.oldValue && o.add(i.oldValue), i.target.id && o.add(i.target.id);
32
- else if (i.type === "childList")
33
- for (const c of [...i.addedNodes, ...i.removedNodes])
34
- c instanceof HTMLElement && (c.id && o.add(c.id), c.querySelectorAll("[id]").forEach((N) => {
35
- N.id && o.add(N.id);
25
+ const e = /* @__PURE__ */ new Set([this]), i = new MutationObserver((m) => {
26
+ const r = /* @__PURE__ */ new Set();
27
+ for (const o of m)
28
+ if (o.type === "attributes")
29
+ o.oldValue && r.add(o.oldValue), o.target.id && r.add(o.target.id);
30
+ else if (o.type === "childList")
31
+ for (const d of [...o.addedNodes, ...o.removedNodes])
32
+ d instanceof HTMLElement && (d.id && r.add(d.id), d.querySelectorAll("[id]").forEach((u) => {
33
+ u.id && r.add(u.id);
36
34
  }));
37
- s.forEach((i) => i.checkIdReference(o));
35
+ e.forEach((o) => o.checkIdReference(r));
38
36
  });
39
- e.observe(this.rootNode, {
37
+ i.observe(this.rootNode, {
40
38
  attributeFilter: ["id"],
41
39
  attributeOldValue: !0,
42
40
  childList: !0,
43
41
  subtree: !0
44
- }), h.set(this.rootNode, { observer: e, controllers: s });
42
+ }), c.set(this.rootNode, { observer: i, controllers: e });
45
43
  }
46
44
  },
47
45
  hostDisconnected() {
48
- if (m || !this.rootNode)
46
+ if (b || !this.rootNode)
49
47
  return;
50
- const t = h.get(this.rootNode);
48
+ const t = c.get(this.rootNode);
51
49
  if (!t) {
52
50
  this.rootNode = null;
53
51
  return;
54
52
  }
55
- t.controllers.delete(this), t.controllers.size === 0 && (t.observer.disconnect(), h.delete(this.rootNode)), this.rootNode = null;
53
+ t.controllers.delete(this), t.controllers.size === 0 && (t.observer.disconnect(), c.delete(this.rootNode)), this.rootNode = null;
56
54
  }
57
55
  });
58
56
  }), {
59
57
  set(t) {
60
- var s, e, r;
61
58
  if (typeof t != "string")
62
- l.delete(this), t instanceof HTMLElement && this.hasAttribute(n) && t.id !== this.getAttribute(n) && this.removeAttribute(n);
59
+ h.delete(this), t instanceof HTMLElement && this.hasAttribute(s) && t.id !== this.getAttribute(s) && this.removeAttribute(s);
63
60
  else {
64
- if (this.hasAttribute(n) && this.getAttribute(n) !== t)
61
+ if (this.hasAttribute(s) && this.getAttribute(s) !== t)
65
62
  return;
66
63
  {
67
- const o = t ? (r = (e = (s = this.getRootNode) == null ? void 0 : s.call(this)) == null ? void 0 : e.getElementById) == null ? void 0 : r.call(e, t) : null;
68
- o ? t = o : t && (l.set(this, t), t = null);
64
+ const e = t ? this.getRootNode?.()?.getElementById?.(t) : null;
65
+ e ? t = e : t && (h.set(this, t), t = null);
69
66
  }
70
67
  }
71
- p.set.call(this, t);
68
+ g.set.call(this, t);
72
69
  }
73
70
  };
74
71
  }
75
- throw new Error(`Unsupported decorator location: ${a}`);
72
+ throw new Error(`Unsupported decorator location: ${l}`);
76
73
  };
77
74
  export {
78
- A as idReference
75
+ y as idReference
79
76
  };
@@ -1,29 +1,26 @@
1
- import { readConfig as n } from "../config.js";
2
- import { defaultDateAdapter as p } from "../datetime.js";
3
- const A = {
4
- toAttribute(r, s) {
5
- var a;
6
- const o = ((a = n().datetime) == null ? void 0 : a.dateAdapter) ?? p;
7
- return o.isValid(r) ? o.toIso8601(r) : null;
1
+ import { readConfig as d } from "../config.js";
2
+ import { defaultDateAdapter as n } from "../datetime.js";
3
+ const p = {
4
+ toAttribute(r, o) {
5
+ const a = d().datetime?.dateAdapter ?? n;
6
+ return a.isValid(r) ? a.toIso8601(r) : null;
8
7
  }
9
- }, m = (r) => (s, o) => {
10
- const { kind: a } = o;
11
- if (a === "accessor")
8
+ }, l = (r) => (o, a) => {
9
+ const { kind: i } = a;
10
+ if (i === "accessor")
12
11
  return {
13
12
  set(t) {
14
- var d;
15
- const e = ((d = n().datetime) == null ? void 0 : d.dateAdapter) ?? p;
16
- t = e.getValidDateOrNull(e.deserialize(t)), t = t ? e.createDate(e.getYear(t), e.getMonth(t), e.getDate(t)) : null, s.set.call(this, t);
13
+ const e = d().datetime?.dateAdapter ?? n;
14
+ t = e.getValidDateOrNull(e.deserialize(t)), t = t ? e.createDate(e.getYear(t), e.getMonth(t), e.getDate(t)) : null, o.set.call(this, t);
17
15
  },
18
16
  get() {
19
- var d, l;
20
- const t = ((d = n().datetime) == null ? void 0 : d.dateAdapter) ?? p, e = s.get.call(this);
21
- return t.isValid(e) ? t.clone(e) : (l = r == null ? void 0 : r.fallback) == null ? void 0 : l.call(r, t);
17
+ const t = d().datetime?.dateAdapter ?? n, e = o.get.call(this);
18
+ return t.isValid(e) ? t.clone(e) : r?.fallback?.(t);
22
19
  }
23
20
  };
24
- throw new Error(`Unsupported decorator location: ${a}`);
21
+ throw new Error(`Unsupported decorator location: ${i}`);
25
22
  };
26
23
  export {
27
- m as plainDate,
28
- A as plainDateConverter
24
+ l as plainDate,
25
+ p as plainDateConverter
29
26
  };
@@ -1,12 +1,12 @@
1
- import { isServer as l } from "lit";
2
- const b = ["zero", "micro", "small", "medium", "large", "wide", "ultra"];
3
- function $(e, i, n) {
4
- if (l)
1
+ import { isServer as d } from "lit";
2
+ const s = ["zero", "micro", "small", "medium", "large", "wide", "ultra"];
3
+ function u(n, i, a) {
4
+ if (d)
5
5
  return null;
6
- const m = getComputedStyle(document.documentElement), t = e ? m.getPropertyValue(`--sbb-breakpoint-${e}-min`) : "", a = i ? `${parseFloat(m.getPropertyValue(`--sbb-breakpoint-${i}-${n != null && n.includeMaxBreakpoint ? "max" : "min"}`)) - (n != null && n.includeMaxBreakpoint ? 0 : 0.0625)}rem` : "", o = t && `(min-width: ${t})`, c = a && `(max-width: ${a})`, d = t && a && " and ";
7
- return window.matchMedia(`${o}${d}${c}`).matches;
6
+ const o = getComputedStyle(document.documentElement), t = n ? o.getPropertyValue(`--sbb-breakpoint-${n}-min`) : "", e = i ? `${parseFloat(o.getPropertyValue(`--sbb-breakpoint-${i}-${a?.includeMaxBreakpoint ? "max" : "min"}`)) - (a?.includeMaxBreakpoint ? 0 : 0.0625)}rem` : "", r = t && `(min-width: ${t})`, m = e && `(max-width: ${e})`, c = t && e && " and ";
7
+ return window.matchMedia(`${r}${c}${m}`).matches;
8
8
  }
9
9
  export {
10
- b as breakpoints,
11
- $ as isBreakpoint
10
+ s as breakpoints,
11
+ u as isBreakpoint
12
12
  };