@sbb-esta/lyne-elements-dev 5.0.0-next.3-dev.1779261724 → 5.0.0-next.3-dev.1779268556

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 (652) hide show
  1. package/_index.scss +6 -2
  2. package/autocomplete/autocomplete-base-element.js +1 -1
  3. package/autocomplete/autocomplete.component.js +1 -1
  4. package/{autocomplete-base-element-6leI6UF4.js → autocomplete-base-element-jaXVQcA7.js} +11 -9
  5. package/autocomplete.js +1 -1
  6. package/autocomplete.pure.js +1 -1
  7. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  8. package/{breadcrumb-group.component-XPdnV6-a.js → breadcrumb-group.component-a49dItu9.js} +23 -19
  9. package/breadcrumb.js +1 -1
  10. package/breadcrumb.pure.js +1 -1
  11. package/button/mini-button-group/mini-button-group.component.js +1 -1
  12. package/button.js +1 -1
  13. package/button.pure.js +1 -1
  14. package/calendar/calendar/calendar.component.js +1 -1
  15. package/{calendar.component-BK4w5GWV.js → calendar.component-DKgkIocz.js} +72 -61
  16. package/calendar.js +1 -1
  17. package/calendar.pure.js +1 -1
  18. package/container/sticky-bar/sticky-bar.component.js +1 -1
  19. package/container.js +1 -1
  20. package/container.pure.js +1 -1
  21. package/core/mixins/named-slot-list-mixin.js +14 -14
  22. package/core/styles/_index.scss +1 -12
  23. package/core/styles/_theme.scss +16 -0
  24. package/core/styles/core/functions.scss +0 -8
  25. package/core/styles/{a11y.scss → features/a11y.scss} +2 -2
  26. package/core/styles/{animation.scss → features/animation.scss} +1 -1
  27. package/core/styles/features/color-scheme.scss +11 -0
  28. package/core/styles/{core.scss → features/core.scss} +138 -171
  29. package/core/styles/{image.scss → features/image.scss} +29 -7
  30. package/core/styles/{layout.private.scss → features/layout.private.scss} +5 -4
  31. package/core/styles/{layout.scss → features/layout.scss} +1 -1
  32. package/core/styles/{lists.scss → features/lists.scss} +1 -1
  33. package/core/styles/{scrollbar.scss → features/scrollbar.scss} +1 -1
  34. package/core/styles/features/typography.private.scss +9 -0
  35. package/core/styles/{typography.scss → features/typography.scss} +2 -2
  36. package/core/styles/internals/button-reset.scss +5 -0
  37. package/core/styles/{host-scrollbar.scss → internals/host-scrollbar.scss} +1 -1
  38. package/core/styles/internals/list-reset.scss +6 -0
  39. package/core/styles/internals/popover-reset.scss +6 -0
  40. package/core/styles/{screen-reader-only.scss → internals/screen-reader-only.scss} +1 -1
  41. package/core/styles/mixins/{a11y.scss → _a11y.scss} +0 -21
  42. package/core/styles/mixins/{helpers.scss → _helpers.scss} +3 -14
  43. package/core/styles/mixins/{lists.scss → _lists.scss} +8 -12
  44. package/core/styles/mixins/{pearl-chain-bullet.scss → _pearl-chain-bullet.scss} +5 -5
  45. package/core/styles/mixins/_reset.scss +38 -0
  46. package/core/styles/mixins/{typo.scss → _typo.scss} +23 -75
  47. package/core/styles/styles.js +2 -2
  48. package/core.js +2 -2
  49. package/custom-elements.json +141 -80
  50. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  51. package/development/autocomplete/autocomplete-base-element.js +1 -1
  52. package/development/autocomplete/autocomplete.component.js +1 -1
  53. package/development/autocomplete-base-element-JxM7QbC4.js +697 -0
  54. package/development/autocomplete.js +1 -1
  55. package/development/autocomplete.pure.js +1 -1
  56. package/development/block-link-common-DNvRfeay.js +1 -1
  57. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  58. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  59. package/development/breadcrumb-group.component-DvY1hq51.js +197 -0
  60. package/development/breadcrumb.component-D6Cd2FPo.js +1 -1
  61. package/development/breadcrumb.js +1 -1
  62. package/development/breadcrumb.pure.js +1 -1
  63. package/development/button/mini-button-group/mini-button-group.component.js +1 -1
  64. package/development/button-common-C-A7Dulr.js +1 -1
  65. package/development/button.js +1 -1
  66. package/development/button.pure.js +1 -1
  67. package/development/calendar/calendar/calendar.component.d.ts +3 -5
  68. package/development/calendar/calendar/calendar.component.d.ts.map +1 -1
  69. package/development/calendar/calendar/calendar.component.js +1 -1
  70. package/development/calendar-cell-base-element-mWRSDeWc.js +1 -1
  71. package/development/calendar.component-CgEXjBeQ.js +1473 -0
  72. package/development/calendar.js +1 -1
  73. package/development/calendar.pure.js +1 -1
  74. package/development/card.component-CL2gHoyP.js +1 -1
  75. package/development/chip-label.component-DHHNtvTt.js +1 -1
  76. package/development/{compact-paginator.component-BgkpxaaD.js → compact-paginator.component-m8MASSB7.js} +1 -1
  77. package/development/container/sticky-bar/sticky-bar.component.js +1 -1
  78. package/development/container.js +1 -1
  79. package/development/container.pure.js +1 -1
  80. package/development/core/mixins/named-slot-list-mixin.js +3 -3
  81. package/development/core/styles/styles.d.ts +3 -1
  82. package/development/core/styles/styles.d.ts.map +1 -1
  83. package/development/core/styles/styles.js +2 -2
  84. package/development/core.js +2 -2
  85. package/development/date-input.component-HxRyCudr.js +1 -1
  86. package/development/dialog-actions.component-e0ZTTUin.js +1 -1
  87. package/development/dialog.component-D8B2dVck.js +1 -1
  88. package/development/error.component-WCkiwM7_.js +1 -1
  89. package/development/expansion-panel-header.component-gg5A_7Pz.js +1 -1
  90. package/development/expansion-panel.component-DcFrWkIt.js +1 -1
  91. package/development/file-selector/common/file-selector-common.js +1 -1
  92. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  93. package/development/file-selector-common-Dd0S0qE3.js +421 -0
  94. package/development/{file-selector-dropzone.component-B84OL4Xd.js → file-selector-dropzone.component-DWLdqMmI.js} +2 -2
  95. package/development/file-selector.js +2 -2
  96. package/development/file-selector.pure.js +2 -2
  97. package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
  98. package/development/flip-card/flip-card/flip-card.component.js +1 -1
  99. package/development/flip-card.component-MmiS-x-W.js +189 -0
  100. package/development/flip-card.js +1 -1
  101. package/development/flip-card.pure.js +1 -1
  102. package/development/footer.component-K2bWizjw.js +1 -1
  103. package/development/form-field.component-CPWBCHer.js +1 -1
  104. package/development/header/common/header-action-common.js +1 -1
  105. package/development/header-action-common-BYB-HYtn.js +86 -0
  106. package/development/header.component-C4e7CNql.js +1 -1
  107. package/development/header.js +1 -1
  108. package/development/header.pure.js +1 -1
  109. package/development/inline-link-common-BV6oAtAA.js +18 -0
  110. package/development/link/common/inline-link-common.js +1 -1
  111. package/development/link-common-2RGn9Qz_.js +1 -1
  112. package/development/link-list/link-list.component.js +1 -1
  113. package/development/link-list-anchor/link-list-anchor.component.js +1 -1
  114. package/development/{link-list-anchor.component-Csb-FOQL.js → link-list-anchor.component-BMtCbCRD.js} +2 -2
  115. package/development/link-list-anchor.js +1 -1
  116. package/development/link-list-anchor.pure.js +1 -1
  117. package/development/link-list.component-CLxhjWR7.js +97 -0
  118. package/development/link-list.js +1 -1
  119. package/development/link-list.pure.js +1 -1
  120. package/development/link.js +1 -1
  121. package/development/link.pure.js +1 -1
  122. package/development/loading-indicator-circle.component-Cfjw5vyz.js +1 -1
  123. package/development/logo.component-DYKgAgq0.js +1 -1
  124. package/development/menu/common/menu-action-common.js +1 -1
  125. package/development/menu/menu/menu.component.d.ts.map +1 -1
  126. package/development/menu/menu/menu.component.js +1 -1
  127. package/development/menu-action-common-DL4t4_-J.js +32 -0
  128. package/development/menu.component-3qEIFutc.js +369 -0
  129. package/development/menu.js +2 -2
  130. package/development/menu.pure.js +2 -2
  131. package/development/message/message.component.js +1 -1
  132. package/development/{message.component-CdO5GyE2.js → message.component-BJ-84a0B.js} +2 -2
  133. package/development/message.js +1 -1
  134. package/development/message.pure.js +1 -1
  135. package/development/{mini-button-group.component-VYKZf1rq.js → mini-button-group.component-C88pIaaL.js} +2 -2
  136. package/development/mini-button-link.component-kpRsi8I2.js +1 -1
  137. package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
  138. package/development/navigation/navigation/navigation.component.js +1 -1
  139. package/development/navigation/navigation-list/navigation-list.component.js +1 -1
  140. package/development/navigation/navigation-marker/navigation-marker.component.js +1 -1
  141. package/development/navigation-action-common-wrzPCkMT.js +1 -1
  142. package/development/navigation-list.component-CU-SGC8c.js +86 -0
  143. package/development/navigation-marker.component-CTk9U0kA.js +120 -0
  144. package/development/navigation-section.component-iaypc6yQ.js +1 -1
  145. package/development/navigation.component-Bu1wVUNx.js +319 -0
  146. package/development/navigation.js +3 -3
  147. package/development/navigation.pure.js +3 -3
  148. package/development/option/option/option.component.js +1 -1
  149. package/development/option/option-styles.d.ts +2 -0
  150. package/development/option/option-styles.d.ts.map +1 -0
  151. package/development/option/option-styles.js +2 -0
  152. package/development/option-styles-IEQgVpCe.js +8 -0
  153. package/development/option.component-BrTjDq6X.js +131 -0
  154. package/development/option.js +4 -3
  155. package/development/option.pure.d.ts +1 -0
  156. package/development/option.pure.d.ts.map +1 -1
  157. package/development/option.pure.js +3 -2
  158. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  159. package/development/overlay/overlay-base-element.js +3 -3
  160. package/development/overlay/overlay.component.js +1 -1
  161. package/development/{overlay.component-YSCuGeme.js → overlay.component-BH-aue7w.js} +1 -1
  162. package/development/overlay.js +1 -1
  163. package/development/overlay.pure.js +1 -1
  164. package/development/paginator/common/paginator-common.js +1 -1
  165. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  166. package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
  167. package/development/paginator/paginator/paginator.component.js +1 -1
  168. package/development/{paginator-common-B7iba0wQ.js → paginator-common-CRchtcXc.js} +1 -1
  169. package/development/paginator.component-B8y5tVCL.js +265 -0
  170. package/development/paginator.js +3 -3
  171. package/development/paginator.pure.js +3 -3
  172. package/development/panel-mixin-DPybe45K.js +1 -1
  173. package/development/popover/popover.component.d.ts.map +1 -1
  174. package/development/popover/popover.component.js +1 -1
  175. package/development/popover.component-Ds4fNNsq.js +578 -0
  176. package/development/popover.js +1 -1
  177. package/development/popover.pure.js +1 -1
  178. package/development/radio-button/common/radio-button-common.js +1 -1
  179. package/development/radio-button/radio-button.component.js +1 -1
  180. package/development/radio-button-common-Ckz2nMS7.js +129 -0
  181. package/development/{radio-button.component-DnErH-1J.js → radio-button.component-qsLFvciH.js} +2 -2
  182. package/development/radio-button.js +2 -2
  183. package/development/radio-button.pure.js +2 -2
  184. package/development/select/select.component.d.ts.map +1 -1
  185. package/development/select/select.component.js +1 -1
  186. package/development/select.component-BE7ZMrAc.js +809 -0
  187. package/development/select.js +1 -1
  188. package/development/select.pure.js +1 -1
  189. package/development/selection-action-panel/selection-action-panel.component.js +1 -1
  190. package/development/{selection-action-panel.component-BT0HmTja.js → selection-action-panel.component-C3UlmLkJ.js} +1 -1
  191. package/development/selection-action-panel.js +1 -1
  192. package/development/selection-action-panel.pure.js +1 -1
  193. package/development/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
  194. package/development/selection-expansion-panel.component-4Ron8XNy.js +186 -0
  195. package/development/selection-expansion-panel.js +1 -1
  196. package/development/selection-expansion-panel.pure.js +1 -1
  197. package/development/sidebar/common/styles.js +1 -1
  198. package/development/sidebar/sidebar/sidebar.component.js +1 -1
  199. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  200. package/development/sidebar/sidebar-container/sidebar-container.component.js +1 -1
  201. package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  202. package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  203. package/development/{sidebar-close-button.component-CXnf-P5H.js → sidebar-close-button.component-ByQtC65O.js} +1 -1
  204. package/development/sidebar-container.component-BmavabUg.js +100 -0
  205. package/development/{sidebar-content.component-DbcREBUa.js → sidebar-content.component-DcsIIWpz.js} +1 -1
  206. package/development/{sidebar-title.component-BW04otyD.js → sidebar-title.component-DgJdkoiE.js} +1 -1
  207. package/development/{sidebar.component-mfXnE6WQ.js → sidebar.component-BszwyJQa.js} +1 -1
  208. package/development/sidebar.js +5 -5
  209. package/development/sidebar.pure.js +5 -5
  210. package/development/signet/signet.component.js +1 -1
  211. package/development/{signet.component-k14RJ8FA.js → signet.component-DXLTVjJS.js} +1 -1
  212. package/development/signet.js +1 -1
  213. package/development/signet.pure.js +1 -1
  214. package/development/skiplink-list/skiplink-list.component.js +1 -1
  215. package/development/skiplink-list.component-BC8rpyf9.js +129 -0
  216. package/development/skiplink-list.js +1 -1
  217. package/development/skiplink-list.pure.js +1 -1
  218. package/development/slider/slider.component.js +1 -1
  219. package/development/slider.component-BLptxiZ4.js +346 -0
  220. package/development/slider.js +1 -1
  221. package/development/slider.pure.js +1 -1
  222. package/development/status/status.component.js +1 -1
  223. package/development/{status.component-B9en2l26.js → status.component-thSGiOrl.js} +1 -1
  224. package/development/status.js +1 -1
  225. package/development/status.pure.js +1 -1
  226. package/development/step-label.component-CpdXVv32.js +127 -0
  227. package/development/{step.component-B_YHm1tz.js → step.component-DpSJEkrK.js} +1 -1
  228. package/development/stepper/step/step.component.js +1 -1
  229. package/development/stepper/step-label/step-label.component.js +1 -1
  230. package/development/stepper/stepper/stepper.component.js +1 -1
  231. package/development/stepper.component-Bv6LCFU0.js +443 -0
  232. package/development/stepper.js +3 -3
  233. package/development/stepper.pure.js +3 -3
  234. package/development/{sticky-bar.component-BJLtRvcd.js → sticky-bar.component-DZpy1gBU.js} +2 -2
  235. package/development/{styles-WppEBrlW.js → styles-BmvNZZle.js} +1 -1
  236. package/development/styles-D8h0fqb5.js +30 -0
  237. package/development/{tab-group.component-CGMBihsQ.js → tab-group.component-DhcfjVxe.js} +1 -1
  238. package/development/{tab-label.component-CQOLO2t7.js → tab-label.component-B7YEhR1C.js} +1 -1
  239. package/development/tab-nav-bar.component-DrZ1U7lM.js +109 -0
  240. package/development/{tab.component-BVhYPy5Y.js → tab.component-COn1G0XA.js} +1 -1
  241. package/development/table/table-wrapper/table-wrapper.component.js +1 -1
  242. package/development/{table-wrapper.component-By59zmcU.js → table-wrapper.component-9Lst6dT2.js} +1 -1
  243. package/development/table.js +1 -1
  244. package/development/table.pure.js +1 -1
  245. package/development/tabs/common/styles.js +1 -1
  246. package/development/tabs/tab/tab.component.js +1 -1
  247. package/development/tabs/tab-group/tab-group.component.js +1 -1
  248. package/development/tabs/tab-label/tab-label.component.js +1 -1
  249. package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
  250. package/development/tabs.js +5 -5
  251. package/development/tabs.pure.js +5 -5
  252. package/development/tag/tag/tag.component.js +1 -1
  253. package/development/tag/tag-group/tag-group.component.js +1 -1
  254. package/development/tag-group.component-OQ3sxhZI.js +194 -0
  255. package/development/tag.component-DWOPDWwe.js +238 -0
  256. package/development/tag.js +2 -2
  257. package/development/tag.pure.js +2 -2
  258. package/development/teaser/teaser.component.js +1 -1
  259. package/development/teaser-hero/teaser-hero.component.js +1 -1
  260. package/development/{teaser-hero.component-BHMcPmdh.js → teaser-hero.component-Cp42iJGt.js} +1 -1
  261. package/development/teaser-hero.js +1 -1
  262. package/development/teaser-hero.pure.js +1 -1
  263. package/development/teaser-panel/teaser-panel.component.js +1 -1
  264. package/development/{teaser-panel.component-BRfbvmkb.js → teaser-panel.component-ptDalUEe.js} +1 -1
  265. package/development/teaser-panel.js +1 -1
  266. package/development/teaser-panel.pure.js +1 -1
  267. package/development/teaser-product/common/teaser-product-common.js +1 -1
  268. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  269. package/development/{teaser-product-common-DOyLdTks.js → teaser-product-common-DxBw-__I.js} +1 -1
  270. package/development/teaser-product.component-CPj4vJ2V.js +37 -0
  271. package/development/teaser-product.js +2 -2
  272. package/development/teaser-product.pure.js +2 -2
  273. package/development/teaser.component-Dgrc2jh8.js +116 -0
  274. package/development/teaser.js +1 -1
  275. package/development/teaser.pure.js +1 -1
  276. package/development/time-input/time-input.component.js +1 -1
  277. package/development/time-input.component-BFjDAfbv.js +187 -0
  278. package/development/time-input.js +1 -1
  279. package/development/time-input.pure.js +1 -1
  280. package/development/timetable-form/timetable-form/timetable-form.component.js +1 -1
  281. package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
  282. package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
  283. package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
  284. package/development/{timetable-form-details.component-BeuAZUQe.js → timetable-form-details.component-BFmuJ8-6.js} +1 -1
  285. package/development/{timetable-form-field.component-DC2z1Cwf.js → timetable-form-field.component-DD04XyA0.js} +1 -1
  286. package/development/{timetable-form-swap-button.component-CnbVc8Ok.js → timetable-form-swap-button.component-DphGegO6.js} +1 -1
  287. package/development/{timetable-form.component-C8DfPePn.js → timetable-form.component-EIr4B4mA.js} +1 -1
  288. package/development/timetable-form.js +4 -4
  289. package/development/timetable-form.pure.js +4 -4
  290. package/development/timetable-occupancy/timetable-occupancy.component.d.ts.map +1 -1
  291. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  292. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
  293. package/development/timetable-occupancy-icon.component-vsXoAiKz.js +95 -0
  294. package/development/timetable-occupancy-icon.js +1 -1
  295. package/development/timetable-occupancy-icon.pure.js +1 -1
  296. package/development/timetable-occupancy.component-B0zY0RnI.js +126 -0
  297. package/development/timetable-occupancy.js +1 -1
  298. package/development/timetable-occupancy.pure.js +1 -1
  299. package/development/title/title-base.js +1 -1
  300. package/development/title/title.component.d.ts +0 -2
  301. package/development/title/title.component.d.ts.map +1 -1
  302. package/development/title/title.component.js +1 -1
  303. package/development/title-base-CPAVrsQ9.js +102 -0
  304. package/development/title.component-DCg9U2CK.js +69 -0
  305. package/development/title.js +2 -2
  306. package/development/title.pure.js +2 -2
  307. package/development/toast/toast.component.d.ts.map +1 -1
  308. package/development/toast/toast.component.js +1 -1
  309. package/development/{toast.component-DonS3uQm.js → toast.component-TvSfu5nl.js} +3 -3
  310. package/development/toast.js +1 -1
  311. package/development/toast.pure.js +1 -1
  312. package/development/toggle/toggle/toggle.component.js +1 -1
  313. package/development/toggle/toggle-option/toggle-option.component.js +1 -1
  314. package/development/toggle-check/toggle-check.component.js +1 -1
  315. package/development/{toggle-check.component-BIV7jFIc.js → toggle-check.component-CbGa5-8I.js} +1 -1
  316. package/development/toggle-check.js +1 -1
  317. package/development/toggle-check.pure.js +1 -1
  318. package/development/{toggle-option.component-DRxwLSKU.js → toggle-option.component-BxGnhJFH.js} +1 -1
  319. package/development/toggle.component-Q68IDQWX.js +243 -0
  320. package/development/toggle.js +2 -2
  321. package/development/toggle.pure.js +2 -2
  322. package/development/tooltip/tooltip.component.d.ts.map +1 -1
  323. package/development/tooltip/tooltip.component.js +1 -1
  324. package/development/tooltip.component-Baoh6M8V.js +369 -0
  325. package/development/tooltip.js +1 -1
  326. package/development/tooltip.pure.js +1 -1
  327. package/development/train/train/train.component.js +1 -1
  328. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  329. package/development/train/train-formation/train-formation.component.js +1 -1
  330. package/development/train/train-wagon-common.js +1 -1
  331. package/development/{train-blocked-passage.component-Cxd7dBDC.js → train-blocked-passage.component-C7ve-a1E.js} +1 -1
  332. package/development/{train-formation.component-BEg6OPib.js → train-formation.component-DQ_hLKNv.js} +2 -2
  333. package/development/train-wagon-common-CdckItEt.js +441 -0
  334. package/development/train.component-Bi74L6C7.js +239 -0
  335. package/development/train.js +4 -4
  336. package/development/train.pure.js +4 -4
  337. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  338. package/development/{visual-checkbox.component-Dm8DNhH2.js → visual-checkbox.component-B4_iHcsX.js} +1 -1
  339. package/development/visual-checkbox.js +1 -1
  340. package/development/visual-checkbox.pure.js +1 -1
  341. package/file-selector/common/file-selector-common.js +1 -1
  342. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  343. package/{file-selector-common-VNwWFEmM.js → file-selector-common-BNGnjK__.js} +1 -1
  344. package/{file-selector-dropzone.component-CGo6odhC.js → file-selector-dropzone.component-sE_fofSq.js} +1 -1
  345. package/file-selector.js +2 -2
  346. package/file-selector.pure.js +2 -2
  347. package/flip-card/flip-card/flip-card.component.js +1 -1
  348. package/{flip-card.component-CZ0v44Ym.js → flip-card.component-ZsA_kDPS.js} +22 -18
  349. package/flip-card.js +1 -1
  350. package/flip-card.pure.js +1 -1
  351. package/header/common/header-action-common.js +1 -1
  352. package/header-action-common-B-eRBjSz.js +64 -0
  353. package/header.js +1 -1
  354. package/header.pure.js +1 -1
  355. package/inline-link-common-O650N_pm.js +13 -0
  356. package/lean-off-brand-theme.css +415 -503
  357. package/lean-safety-theme.css +415 -503
  358. package/lean-theme.css +415 -503
  359. package/link/common/inline-link-common.js +1 -1
  360. package/link-list/link-list.component.js +1 -1
  361. package/link-list-anchor/link-list-anchor.component.js +1 -1
  362. package/{link-list-anchor.component-DG_HCtHH.js → link-list-anchor.component-Bjz_EKvE.js} +1 -1
  363. package/link-list-anchor.js +1 -1
  364. package/link-list-anchor.pure.js +1 -1
  365. package/{link-list.component-BNVd0a8U.js → link-list.component-Dg-7TBPC.js} +1 -1
  366. package/link-list.js +1 -1
  367. package/link-list.pure.js +1 -1
  368. package/link.js +1 -1
  369. package/link.pure.js +1 -1
  370. package/menu/common/menu-action-common.js +1 -1
  371. package/menu/menu/menu.component.js +1 -1
  372. package/{menu-action-common-Wy36tk18.js → menu-action-common-DakEXPg7.js} +1 -1
  373. package/{menu.component-DrrKSRmJ.js → menu.component-CqXsI5Cg.js} +25 -21
  374. package/menu.js +2 -2
  375. package/menu.pure.js +2 -2
  376. package/message/message.component.js +1 -1
  377. package/{message.component-CdfsCpnE.js → message.component-CORYX4KP.js} +1 -1
  378. package/message.js +1 -1
  379. package/message.pure.js +1 -1
  380. package/{mini-button-group.component-DQBU0BDm.js → mini-button-group.component-DWayyUpK.js} +1 -1
  381. package/navigation/navigation/navigation.component.js +1 -1
  382. package/navigation/navigation-list/navigation-list.component.js +1 -1
  383. package/navigation/navigation-marker/navigation-marker.component.js +1 -1
  384. package/{navigation-list.component-Cezo1tC-.js → navigation-list.component-C5y3ohH0.js} +1 -1
  385. package/{navigation-marker.component-CNsMaqpH.js → navigation-marker.component-VbvKu1TR.js} +1 -1
  386. package/{navigation.component-DLgmWh_c.js → navigation.component-DKJujMqj.js} +23 -19
  387. package/navigation.js +3 -3
  388. package/navigation.pure.js +3 -3
  389. package/off-brand-theme.css +415 -503
  390. package/option/option/option.component.js +1 -1
  391. package/option/option-styles.js +2 -0
  392. package/option-styles-DcD5grSB.js +6 -0
  393. package/option.js +5 -4
  394. package/option.pure.js +4 -3
  395. package/overlay/overlay-base-element.js +21 -21
  396. package/overlay/overlay.component.js +1 -1
  397. package/overlay.js +1 -1
  398. package/overlay.pure.js +1 -1
  399. package/package.json +5 -49
  400. package/paginator/common/paginator-common.js +1 -1
  401. package/paginator/compact-paginator/compact-paginator.component.js +1 -1
  402. package/paginator/paginator/paginator.component.js +1 -1
  403. package/paginator.component-Dk1xDHgW.js +212 -0
  404. package/paginator.js +3 -3
  405. package/paginator.pure.js +3 -3
  406. package/popover/popover.component.js +1 -1
  407. package/{popover.component-Dm_86bPY.js → popover.component-Bm-bx-Hs.js} +32 -32
  408. package/popover.js +1 -1
  409. package/popover.pure.js +1 -1
  410. package/radio-button/common/radio-button-common.js +1 -1
  411. package/radio-button/radio-button.component.js +1 -1
  412. package/{radio-button.component-CZ273yAb.js → radio-button.component-CGeTCfMq.js} +1 -1
  413. package/radio-button.js +2 -2
  414. package/radio-button.pure.js +2 -2
  415. package/safety-theme.css +415 -503
  416. package/select/select.component.js +1 -1
  417. package/{select.component-CLPLpFDz.js → select.component-UcWSndDu.js} +41 -39
  418. package/select.js +1 -1
  419. package/select.pure.js +1 -1
  420. package/selection-action-panel/selection-action-panel.component.js +1 -1
  421. package/selection-action-panel.js +1 -1
  422. package/selection-action-panel.pure.js +1 -1
  423. package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
  424. package/selection-expansion-panel.js +1 -1
  425. package/selection-expansion-panel.pure.js +1 -1
  426. package/sidebar/sidebar/sidebar.component.js +1 -1
  427. package/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  428. package/sidebar/sidebar-container/sidebar-container.component.js +1 -1
  429. package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  430. package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  431. package/sidebar.js +5 -5
  432. package/sidebar.pure.js +5 -5
  433. package/signet/signet.component.js +1 -1
  434. package/signet.js +1 -1
  435. package/signet.pure.js +1 -1
  436. package/skiplink-list/skiplink-list.component.js +1 -1
  437. package/{skiplink-list.component-BXaqYpsI.js → skiplink-list.component-ClGb1J_H.js} +1 -1
  438. package/skiplink-list.js +1 -1
  439. package/skiplink-list.pure.js +1 -1
  440. package/slider/slider.component.js +1 -1
  441. package/slider.js +1 -1
  442. package/slider.pure.js +1 -1
  443. package/standard-theme.css +415 -503
  444. package/status/status.component.js +1 -1
  445. package/status.js +1 -1
  446. package/status.pure.js +1 -1
  447. package/stepper/step/step.component.js +1 -1
  448. package/stepper/step-label/step-label.component.js +1 -1
  449. package/stepper/stepper/stepper.component.js +1 -1
  450. package/stepper.js +3 -3
  451. package/stepper.pure.js +3 -3
  452. package/{sticky-bar.component-dmlGAZLW.js → sticky-bar.component-DtXeRUqi.js} +1 -1
  453. package/styles-DV41ClRb.js +5 -0
  454. package/{tab-nav-bar.component-FT2W0urU.js → tab-nav-bar.component-CRC6xnaX.js} +1 -1
  455. package/table/table-wrapper/table-wrapper.component.js +1 -1
  456. package/table.js +1 -1
  457. package/table.pure.js +1 -1
  458. package/tabs/common/styles.js +1 -1
  459. package/tabs/tab/tab.component.js +1 -1
  460. package/tabs/tab-group/tab-group.component.js +1 -1
  461. package/tabs/tab-label/tab-label.component.js +1 -1
  462. package/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
  463. package/tabs.js +5 -5
  464. package/tabs.pure.js +5 -5
  465. package/tag/tag/tag.component.js +1 -1
  466. package/tag/tag-group/tag-group.component.js +1 -1
  467. package/{tag-group.component-9UfHHJ79.js → tag-group.component-wnzXwLPf.js} +1 -1
  468. package/tag.js +2 -2
  469. package/tag.pure.js +2 -2
  470. package/teaser/teaser.component.js +1 -1
  471. package/teaser-hero/teaser-hero.component.js +1 -1
  472. package/teaser-hero.js +1 -1
  473. package/teaser-hero.pure.js +1 -1
  474. package/teaser-panel/teaser-panel.component.js +1 -1
  475. package/teaser-panel.js +1 -1
  476. package/teaser-panel.pure.js +1 -1
  477. package/teaser-product/common/teaser-product-common.js +1 -1
  478. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  479. package/teaser-product.js +2 -2
  480. package/teaser-product.pure.js +2 -2
  481. package/teaser.js +1 -1
  482. package/teaser.pure.js +1 -1
  483. package/time-input/time-input.component.js +1 -1
  484. package/time-input.js +1 -1
  485. package/time-input.pure.js +1 -1
  486. package/timetable-form/timetable-form/timetable-form.component.js +1 -1
  487. package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
  488. package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
  489. package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
  490. package/timetable-form.js +4 -4
  491. package/timetable-form.pure.js +4 -4
  492. package/timetable-occupancy/timetable-occupancy.component.js +1 -1
  493. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
  494. package/timetable-occupancy-icon.js +1 -1
  495. package/timetable-occupancy-icon.pure.js +1 -1
  496. package/{timetable-occupancy.component-DGQ20zH1.js → timetable-occupancy.component-CIkq1cT7.js} +17 -13
  497. package/timetable-occupancy.js +1 -1
  498. package/timetable-occupancy.pure.js +1 -1
  499. package/title/title-base.js +1 -1
  500. package/title/title.component.js +1 -1
  501. package/{title-base-JBhKD3ur.js → title-base-B1xzk7Zb.js} +1 -1
  502. package/{title.component-VnTeqomb.js → title.component-DTnG8op9.js} +2 -2
  503. package/title.js +2 -2
  504. package/title.pure.js +2 -2
  505. package/toast/toast.component.js +1 -1
  506. package/{toast.component-BMN90Ouu.js → toast.component-Ew5vuGXf.js} +19 -19
  507. package/toast.js +1 -1
  508. package/toast.pure.js +1 -1
  509. package/toggle/toggle/toggle.component.js +1 -1
  510. package/toggle/toggle-option/toggle-option.component.js +1 -1
  511. package/toggle-check/toggle-check.component.js +1 -1
  512. package/toggle-check.js +1 -1
  513. package/toggle-check.pure.js +1 -1
  514. package/toggle.js +2 -2
  515. package/toggle.pure.js +2 -2
  516. package/tooltip/tooltip.component.js +1 -1
  517. package/{tooltip.component-NfyDxfw7.js → tooltip.component-ihyNBI7f.js} +25 -25
  518. package/tooltip.js +1 -1
  519. package/tooltip.pure.js +1 -1
  520. package/train/train/train.component.js +1 -1
  521. package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  522. package/train/train-formation/train-formation.component.js +1 -1
  523. package/train/train-wagon-common.js +1 -1
  524. package/{train-formation.component-DVxNBPIB.js → train-formation.component-CYqdWnkL.js} +1 -1
  525. package/{train-wagon-common-CDCsWVgi.js → train-wagon-common-C1Py1D01.js} +1 -1
  526. package/{train.component-DxadS7O8.js → train.component-DRLUjuXY.js} +1 -1
  527. package/train.js +4 -4
  528. package/train.pure.js +4 -4
  529. package/visual-checkbox/visual-checkbox.component.js +1 -1
  530. package/visual-checkbox.js +1 -1
  531. package/visual-checkbox.pure.js +1 -1
  532. package/a11y.css +0 -20
  533. package/animation.css +0 -14
  534. package/badge.css +0 -32
  535. package/core/styles/badge.scss +0 -3
  536. package/core/styles/mixins/badge.scss +0 -42
  537. package/core/styles/mixins/buttons.scss +0 -12
  538. package/core/styles/mixins/card.scss +0 -205
  539. package/core/styles/mixins/dev_and_debug.scss +0 -8
  540. package/core/styles/mixins/image.scss +0 -43
  541. package/core/styles/mixins/inputs.scss +0 -11
  542. package/core/styles/mixins/link.scss +0 -125
  543. package/core/styles/mixins/panel.scss +0 -80
  544. package/core/styles/mixins/popover.scss +0 -14
  545. package/core/styles/mixins/table.scss +0 -185
  546. package/core/styles/mixins/timetable-form.scss +0 -63
  547. package/core/styles/option-panel-common.global.scss +0 -11
  548. package/core/styles/option-panel-common.scss +0 -157
  549. package/core/styles/theme.scss +0 -20
  550. package/core/styles/timetable-form.scss +0 -27
  551. package/core/styles/typography.private.scss +0 -9
  552. package/core.css +0 -2713
  553. package/development/autocomplete-base-element-qnPoRLvM.js +0 -695
  554. package/development/breadcrumb-group.component-BUBfl6LV.js +0 -193
  555. package/development/calendar.component-BKWvdgzO.js +0 -1461
  556. package/development/file-selector-common-mZ5UYxOF.js +0 -421
  557. package/development/flip-card.component-DujrPKzU.js +0 -185
  558. package/development/header-action-common-Be0XQge2.js +0 -86
  559. package/development/inline-link-common-gmt6yz3v.js +0 -18
  560. package/development/link-list.component-B90qHOUD.js +0 -97
  561. package/development/menu-action-common-DRXQc85Y.js +0 -32
  562. package/development/menu.component-Cv9wRj4H.js +0 -365
  563. package/development/navigation-list.component-Dvv-bZ2V.js +0 -86
  564. package/development/navigation-marker.component-DMqe-VlY.js +0 -120
  565. package/development/navigation.component-CqNkBvEs.js +0 -315
  566. package/development/option.component-CV6cZnJe.js +0 -131
  567. package/development/paginator.component-BwLUSpDj.js +0 -261
  568. package/development/popover.component-CKUZbWbV.js +0 -578
  569. package/development/radio-button-common-G0jLFo41.js +0 -129
  570. package/development/select.component-CUjF11sq.js +0 -807
  571. package/development/selection-expansion-panel.component-BT78Qhbf.js +0 -186
  572. package/development/sidebar-container.component-CxwDKxv9.js +0 -100
  573. package/development/skiplink-list.component-m7xm-pns.js +0 -129
  574. package/development/slider.component-D_nLTlRF.js +0 -346
  575. package/development/step-label.component-Bo7Z0w7N.js +0 -127
  576. package/development/stepper.component-BeqeUIRN.js +0 -443
  577. package/development/styles-Cctez2BS.js +0 -22
  578. package/development/tab-nav-bar.component-B_mi8GGR.js +0 -109
  579. package/development/tag-group.component-Db8prSBL.js +0 -194
  580. package/development/tag.component-DG1uxD28.js +0 -238
  581. package/development/teaser-product.component-DMyuB-cH.js +0 -37
  582. package/development/teaser.component-CF_NUbwJ.js +0 -116
  583. package/development/time-input.component-XxzRoupm.js +0 -187
  584. package/development/timetable-occupancy-icon.component-UBmyZsTO.js +0 -95
  585. package/development/timetable-occupancy.component-DMm242Fr.js +0 -122
  586. package/development/title-base-D_Rjyk_j.js +0 -102
  587. package/development/title.component-CMxYhTfw.js +0 -71
  588. package/development/toggle.component-B03k5qc1.js +0 -243
  589. package/development/tooltip.component-D8zik3p4.js +0 -369
  590. package/development/train-wagon-common-Dg-BjUtC.js +0 -441
  591. package/development/train.component-dECIGw2x.js +0 -239
  592. package/header-action-common-DuPx0U2o.js +0 -64
  593. package/inline-link-common-BqqH1ExY.js +0 -13
  594. package/layout.css +0 -30
  595. package/lists.css +0 -194
  596. package/normalize.css +0 -95
  597. package/paginator.component-DB8l-B6J.js +0 -208
  598. package/scrollbar.css +0 -124
  599. package/styles-DAMaYe4p.js +0 -5
  600. package/table.css +0 -261
  601. package/timetable-form.css +0 -73
  602. package/typography.css +0 -67
  603. /package/{compact-paginator.component-BAuShgQE.js → compact-paginator.component-B-8gf_qD.js} +0 -0
  604. /package/core/styles/{disable-animation.scss → disable-animation-extension.scss} +0 -0
  605. /package/core/styles/{node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss → features/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss} +0 -0
  606. /package/core/styles/{node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss → features/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss} +0 -0
  607. /package/core/styles/{normalize.scss → features/normalize.scss} +0 -0
  608. /package/core/styles/{scrollbar.private.scss → features/scrollbar.private.scss} +0 -0
  609. /package/core/styles/mixins/{animation.scss → _animation.scss} +0 -0
  610. /package/core/styles/mixins/{font-face.scss → _font-face.scss} +0 -0
  611. /package/core/styles/mixins/{layout.scss → _layout.scss} +0 -0
  612. /package/core/styles/mixins/{scrollbar.scss → _scrollbar.scss} +0 -0
  613. /package/{disable-animation.css → disable-animation-extension.css} +0 -0
  614. /package/{option.component-BeorlZT0.js → option.component-DiH8AMlV.js} +0 -0
  615. /package/{overlay.component-myJflfLY.js → overlay.component-D7Z_vx1A.js} +0 -0
  616. /package/{paginator-common-BWewgXga.js → paginator-common-C0Kn9ibe.js} +0 -0
  617. /package/{radio-button-common-CrIRn10q.js → radio-button-common-BDNSqXg-.js} +0 -0
  618. /package/{selection-action-panel.component-DCGJQ3Mx.js → selection-action-panel.component-Ba7N1Hgt.js} +0 -0
  619. /package/{selection-expansion-panel.component-Cu1egfTY.js → selection-expansion-panel.component-BL1FPfPM.js} +0 -0
  620. /package/{sidebar-close-button.component-8owwjvk3.js → sidebar-close-button.component-CLjOpBM2.js} +0 -0
  621. /package/{sidebar-container.component-Dcke-Uhr.js → sidebar-container.component-8filIF5E.js} +0 -0
  622. /package/{sidebar-content.component-CYupfsq_.js → sidebar-content.component-DMdjHDdq.js} +0 -0
  623. /package/{sidebar-title.component-Cf64lCJx.js → sidebar-title.component-DaIkBNY9.js} +0 -0
  624. /package/{sidebar.component-LaqQzMo2.js → sidebar.component-D_HLDNnq.js} +0 -0
  625. /package/{signet.component-3Xfke8uk.js → signet.component-6q3GxORI.js} +0 -0
  626. /package/{slider.component-BlUWAWJU.js → slider.component-C8LKcM11.js} +0 -0
  627. /package/{status.component-mel7wA1j.js → status.component-DMfZTgzz.js} +0 -0
  628. /package/{step-label.component-BGSaHafq.js → step-label.component-CjNZYk5b.js} +0 -0
  629. /package/{step.component-tJh-Pb_E.js → step.component-BCkwsZdk.js} +0 -0
  630. /package/{stepper.component-BCl77LVa.js → stepper.component-mq66fR06.js} +0 -0
  631. /package/{styles-DisU4TWi.js → styles-DWm_OYpV.js} +0 -0
  632. /package/{tab-group.component-CDhggNpe.js → tab-group.component-MEm2W7QR.js} +0 -0
  633. /package/{tab-label.component-BuF2qt1T.js → tab-label.component-BqznCfW8.js} +0 -0
  634. /package/{tab.component-D6hfhlZw.js → tab.component-DPwbvqp4.js} +0 -0
  635. /package/{table-wrapper.component-C83EYuZP.js → table-wrapper.component-LzYuAVPb.js} +0 -0
  636. /package/{tag.component-BKuxfdDi.js → tag.component-zGPaopTo.js} +0 -0
  637. /package/{teaser-hero.component-mv6HL4vm.js → teaser-hero.component-BlhffYux.js} +0 -0
  638. /package/{teaser-panel.component-qRmy2lbz.js → teaser-panel.component-BCbKgXVt.js} +0 -0
  639. /package/{teaser-product-common-J1KZ2Hlw.js → teaser-product-common-C_lgMbyC.js} +0 -0
  640. /package/{teaser-product.component-BcleFVcu.js → teaser-product.component-CQIXu7sq.js} +0 -0
  641. /package/{teaser.component-BOqCERR7.js → teaser.component-D9z78Eny.js} +0 -0
  642. /package/{time-input.component-Dw8pPYDK.js → time-input.component-CLHEoWze.js} +0 -0
  643. /package/{timetable-form-details.component-0c6h6shd.js → timetable-form-details.component-DJ3oPkQP.js} +0 -0
  644. /package/{timetable-form-field.component-Cya8n2Ms.js → timetable-form-field.component-6s8_sz9h.js} +0 -0
  645. /package/{timetable-form-swap-button.component-rI_0UYJw.js → timetable-form-swap-button.component-BY2m2_k9.js} +0 -0
  646. /package/{timetable-form.component-DVps6baq.js → timetable-form.component-Swe8BX7g.js} +0 -0
  647. /package/{timetable-occupancy-icon.component-ABh1bz-X.js → timetable-occupancy-icon.component-C44eSFOM.js} +0 -0
  648. /package/{toggle-check.component-BcQ5ht0O.js → toggle-check.component-Ce-klZJB.js} +0 -0
  649. /package/{toggle-option.component-DQcPDXyl.js → toggle-option.component-BdMfGuA-.js} +0 -0
  650. /package/{toggle.component-DARkqJol.js → toggle.component-ySmrXvjA.js} +0 -0
  651. /package/{train-blocked-passage.component-B601YYJl.js → train-blocked-passage.component-UnNCmspZ.js} +0 -0
  652. /package/{visual-checkbox.component-YhX5Qk3j.js → visual-checkbox.component-JmGORoDU.js} +0 -0
package/_index.scss CHANGED
@@ -1,2 +1,6 @@
1
- @forward './core/styles' hide development-style, link-base, link-focus-visible, link-hover,
2
- link-active, link-consolidation;
1
+ @forward './core/styles';
2
+ @forward './badge/badge.global' as badge-*;
3
+ @forward './card/card.library.global' as card-*;
4
+ @forward './link/link.library.global' as link-*;
5
+ @forward './table/table.global' as table-*;
6
+ @forward './timetable-form/timetable-form/timetable-form.global' as timetable-form-*;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../autocomplete-base-element-6leI6UF4.js";
1
+ import { n as e, t } from "../autocomplete-base-element-jaXVQcA7.js";
2
2
  export { t as SbbAutocompleteBaseElement, e as SbbInputAutocompleteEvent };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../autocomplete-base-element-6leI6UF4.js";
1
+ import { t as e } from "../autocomplete-base-element-jaXVQcA7.js";
2
2
  import { getNextElementIndex as t, isSafari as n, setAriaComboBoxAttributes as r } from "../core.js";
3
3
  //#region src/elements/autocomplete/autocomplete.component.ts
4
4
  var i = 0, a = n, o = class extends e {
@@ -1,9 +1,10 @@
1
1
  import { __esDecorate as e, __runInitializers as t } from "tslib";
2
2
  import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
3
3
  import { property as o } from "lit/decorators.js";
4
- import { SbbEscapableOverlayController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbPropertyWatcherController as u, forceType as d, idReference as f, isEventOnElement as p, isSafari as m, isZeroAnimationDuration as h, optionPanelStyles as g, removeAriaComboBoxAttributes as _, scrollbarStyles as ee, setOverlayPosition as v } from "./core.js";
5
- import { ResizeController as y } from "@lit-labs/observers/resize-controller.js";
6
- import { ref as b } from "lit/directives/ref.js";
4
+ import { SbbEscapableOverlayController as s, SbbNegativeMixin as c, SbbOpenCloseBaseElement as l, SbbPropertyWatcherController as u, forceType as d, idReference as f, isEventOnElement as p, isSafari as m, isZeroAnimationDuration as ee, popoverResetStyles as te, removeAriaComboBoxAttributes as h, scrollbarStyles as g, setOverlayPosition as _ } from "./core.js";
5
+ import { ResizeController as v } from "@lit-labs/observers/resize-controller.js";
6
+ import { ref as y } from "lit/directives/ref.js";
7
+ import { optionPanelStyles as b } from "./option.pure.js";
7
8
  //#region src/elements/autocomplete/autocomplete-base-element.scss?inline
8
9
  var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){display:block}", S = m, C = class extends Event {
9
10
  get option() {
@@ -175,8 +176,9 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
175
176
  }
176
177
  static {
177
178
  this.styles = [
178
- ee,
179
+ te,
179
180
  g,
181
+ b,
180
182
  a(x)
181
183
  ];
182
184
  }
@@ -257,7 +259,7 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
257
259
  return this._triggerElement ?? null;
258
260
  }
259
261
  constructor() {
260
- super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, null)), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._resizeObserver = new y(this, {
262
+ super(), this.#e = t(this, T, null), this.#t = (t(this, E), t(this, O, null)), this.#n = (t(this, k), t(this, j, !1)), this.#r = (t(this, M), t(this, P, !1)), this.#i = (t(this, F), t(this, L, null)), this.#a = (t(this, R), t(this, B, null)), this.#o = (t(this, V), t(this, U, !1)), this.#s = (t(this, W), t(this, K, !1)), this.#c = (t(this, q), t(this, Y, !1)), this.#l = (t(this, X), t(this, Q, "auto")), this._triggerElement = t(this, $), this.activeOption = null, this.pendingAutoSelectedOption = null, this._resizeObserver = new v(this, {
261
263
  target: null,
262
264
  skipInitial: !0,
263
265
  callback: (() => {
@@ -293,7 +295,7 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
293
295
  this.state === "closing" || this.state === "closed" || !this.dispatchBeforeCloseEvent() || (this.pendingAutoSelectedOption && (this.pendingAutoSelectedOption.selected = !0, this._setValueAndDispatchEvents(this.pendingAutoSelectedOption, !0)), this.state = "closing", this.triggerElement?.removeAttribute("data-expanded"), this._openPanelEventsController.abort(), this.originElement && this._resizeObserver.unobserve(this.originElement), this._isZeroAnimationDuration() && this._handleClosing());
294
296
  }
295
297
  _isZeroAnimationDuration() {
296
- return h(this, "--sbb-options-panel-animation-duration");
298
+ return ee(this, "--sbb-options-panel-animation-duration");
297
299
  }
298
300
  connectedCallback() {
299
301
  this.popover = "manual", super.connectedCallback(), S && (this.id ||= this.overlayId), this.hasUpdated && this._componentSetup(), this.syncNegative();
@@ -345,7 +347,7 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
345
347
  }
346
348
  _configureTrigger() {
347
349
  let e = this.trigger ?? this.closest?.("sbb-form-field")?.querySelector("input");
348
- if (e === this.triggerElement || (this._triggerAbortController?.abort(), _(this.triggerElement), this.triggerElement?.removeAttribute("data-expanded"), this._triggerElement = e, !this.triggerElement)) return;
350
+ if (e === this.triggerElement || (this._triggerAbortController?.abort(), h(this.triggerElement), this.triggerElement?.removeAttribute("data-expanded"), this._triggerElement = e, !this.triggerElement)) return;
349
351
  let t = this.originElement;
350
352
  this.triggerElement === t && this.isOpen && this._setOverlayPosition(t), this._triggerAttributeObserver?.observe(this.triggerElement, {
351
353
  attributes: !0,
@@ -372,7 +374,7 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
372
374
  });
373
375
  }
374
376
  _setOverlayPosition(e = this.originElement) {
375
- e && v(this._overlay, e, this._overlay, this.shadowRoot.querySelector(".sbb-option-panel__overlay-container"), this, this.position);
377
+ e && _(this._overlay, e, this._overlay, this.shadowRoot.querySelector(".sbb-option-panel__overlay-container"), this, this.position);
376
378
  }
377
379
  _onAnimationEnd(e) {
378
380
  e.animationName === "open" && this.state === "opening" ? this._handleOpening() : e.animationName === "close" && this.state === "closing" && this._handleClosing();
@@ -418,7 +420,7 @@ var x = ":host{display:none}:host(:is(:is(:state(state-opening),[state--state-op
418
420
  id=${S ? i : this.overlayId}
419
421
  tabindex="-1"
420
422
  @animationend=${this._onAnimationEnd}
421
- ${b((e) => this._overlay = e)}
423
+ ${y((e) => this._overlay = e)}
422
424
  >
423
425
  <slot @slotchange=${this._handleSlotchange}></slot>
424
426
  </div>
package/autocomplete.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./autocomplete-base-element-6leI6UF4.js";
1
+ import { n as e, t } from "./autocomplete-base-element-jaXVQcA7.js";
2
2
  import { SbbAutocompleteElement as n } from "./autocomplete/autocomplete.component.js";
3
3
  import "./autocomplete.pure.js";
4
4
  //#region src/elements/autocomplete.ts
@@ -1,3 +1,3 @@
1
- import { n as e, t } from "./autocomplete-base-element-6leI6UF4.js";
1
+ import { n as e, t } from "./autocomplete-base-element-jaXVQcA7.js";
2
2
  import { SbbAutocompleteElement as n } from "./autocomplete/autocomplete.component.js";
3
3
  export { t as SbbAutocompleteBaseElement, n as SbbAutocompleteElement, e as SbbInputAutocompleteEvent };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../breadcrumb-group.component-XPdnV6-a.js";
1
+ import { t as e } from "../../breadcrumb-group.component-a49dItu9.js";
2
2
  export { e as SbbBreadcrumbGroupElement };
@@ -1,16 +1,16 @@
1
1
  import { __esDecorate as e, __runInitializers as t } from "tslib";
2
2
  import { html as n, nothing as r, unsafeCSS as i } from "lit";
3
3
  import { state as a } from "lit/decorators.js";
4
- import { SbbElement as o, SbbLanguageController as s, SbbNamedSlotListMixin as c, getNextElementIndex as l, i18nBreadcrumbEllipsisButtonLabel as u, isArrowKeyPressed as d, sbbInputModalityDetector as f } from "./core.js";
5
- import { SbbIconElement as p } from "./icon.pure.js";
6
- import { ResizeController as m } from "@lit-labs/observers/resize-controller.js";
4
+ import { SbbElement as o, SbbLanguageController as s, SbbNamedSlotListMixin as c, buttonResetStyles as l, getNextElementIndex as u, i18nBreadcrumbEllipsisButtonLabel as d, isArrowKeyPressed as f, listResetStyles as p, sbbInputModalityDetector as m } from "./core.js";
5
+ import { SbbIconElement as h } from "./icon.pure.js";
6
+ import { ResizeController as g } from "@lit-labs/observers/resize-controller.js";
7
7
  //#region src/elements/breadcrumb/breadcrumb-group/breadcrumb-group.scss?inline
8
- var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-text)}:host(:is(:state(loaded),[state--loaded])){--sbb-breadcrumb-group-visibility: visible}:host(:is(:is(:state(state-collapsed),[state--state-collapsed]),:is(:state(state-manually-expanded),[state--state-manually-expanded]))){--sbb-breadcrumb-group-wrap: wrap}.sbb-breadcrumb-group{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;flex-wrap:var(--sbb-breadcrumb-group-wrap);column-gap:var(--sbb-spacing-fixed-1x);visibility:var(--sbb-breadcrumb-group-visibility)}.sbb-breadcrumb-group__item{flex:0 0 auto;display:flex;column-gap:var(--sbb-spacing-fixed-1x)}.sbb-breadcrumb-group__divider-icon{color:var(--sbb-breadcrumb-group-ellipsis-color)}#sbb-breadcrumb-ellipsis{appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;font-family:var(--sbb-typo-font-family);font-weight:400;font-size:var(--sbb-text-font-size-xxs);line-height:0;letter-spacing:.01em;width:var(--sbb-size-icon-ui-small);height:var(--sbb-size-icon-ui-small);border:var(--sbb-breadcrumb-group-ellipsis-border-width) solid var(--sbb-breadcrumb-group-ellipsis-border-color);border-radius:50%;padding-block-end:.5em;cursor:var(--sbb-cursor-pointer);color:var(--sbb-breadcrumb-group-ellipsis-color);background-color:var(--sbb-breadcrumb-group-ellipsis-background-color);overflow:hidden}@media(forced-colors:active){#sbb-breadcrumb-ellipsis{--sbb-breadcrumb-group-ellipsis-border-width: var(--sbb-border-width-2x);--sbb-breadcrumb-group-ellipsis-border-color: CanvasText}}@media(any-hover:hover){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-color: var(--sbb-color-2);--sbb-breadcrumb-group-ellipsis-background-color: var(--sbb-background-color-3)}}@media(any-hover:hover)and (forced-colors:active){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-border-color: Highlight}}#sbb-breadcrumb-ellipsis:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}", g = 3, _ = (() => {
9
- let _ = c(o), v = [], y;
10
- return class extends _ {
8
+ var _ = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-text)}:host(:is(:state(loaded),[state--loaded])){--sbb-breadcrumb-group-visibility: visible}:host(:is(:is(:state(state-collapsed),[state--state-collapsed]),:is(:state(state-manually-expanded),[state--state-manually-expanded]))){--sbb-breadcrumb-group-wrap: wrap}.sbb-breadcrumb-group{display:flex;flex-wrap:var(--sbb-breadcrumb-group-wrap);column-gap:var(--sbb-spacing-fixed-1x);visibility:var(--sbb-breadcrumb-group-visibility)}.sbb-breadcrumb-group__item{flex:0 0 auto;display:flex;column-gap:var(--sbb-spacing-fixed-1x)}.sbb-breadcrumb-group__divider-icon{color:var(--sbb-breadcrumb-group-ellipsis-color)}#sbb-breadcrumb-ellipsis{font-family:var(--sbb-typo-font-family);font-weight:400;font-size:var(--sbb-text-font-size-xxs);line-height:0;letter-spacing:.01em;width:var(--sbb-size-icon-ui-small);height:var(--sbb-size-icon-ui-small);border:var(--sbb-breadcrumb-group-ellipsis-border-width) solid var(--sbb-breadcrumb-group-ellipsis-border-color);border-radius:50%;padding-block-end:.5em;cursor:var(--sbb-cursor-pointer);color:var(--sbb-breadcrumb-group-ellipsis-color);background-color:var(--sbb-breadcrumb-group-ellipsis-background-color);overflow:hidden}@media(forced-colors:active){#sbb-breadcrumb-ellipsis{--sbb-breadcrumb-group-ellipsis-border-width: var(--sbb-border-width-2x);--sbb-breadcrumb-group-ellipsis-border-color: CanvasText}}@media(any-hover:hover){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-color: var(--sbb-color-2);--sbb-breadcrumb-group-ellipsis-background-color: var(--sbb-background-color-3)}}@media(any-hover:hover)and (forced-colors:active){#sbb-breadcrumb-ellipsis:hover{--sbb-breadcrumb-group-ellipsis-border-color: Highlight}}#sbb-breadcrumb-ellipsis:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}", v = 3, y = (() => {
9
+ let y = c(o), b = [], x;
10
+ return class extends y {
11
11
  static {
12
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
13
- y = [a()], e(this, null, y, {
12
+ let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
13
+ x = [a()], e(this, null, x, {
14
14
  kind: "setter",
15
15
  name: "_state",
16
16
  static: !1,
@@ -22,7 +22,7 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
22
22
  }
23
23
  },
24
24
  metadata: t
25
- }, null, v), t && Object.defineProperty(this, Symbol.metadata, {
25
+ }, null, b), t && Object.defineProperty(this, Symbol.metadata, {
26
26
  enumerable: !0,
27
27
  configurable: !0,
28
28
  writable: !0,
@@ -33,13 +33,17 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
33
33
  this.elementName = "sbb-breadcrumb-group";
34
34
  }
35
35
  static {
36
- this.elementDependencies = [p];
36
+ this.elementDependencies = [h];
37
37
  }
38
38
  static {
39
39
  this.role = "navigation";
40
40
  }
41
41
  static {
42
- this.styles = [i(h)];
42
+ this.styles = [
43
+ p,
44
+ l,
45
+ i(_)
46
+ ];
43
47
  }
44
48
  set _state(e) {
45
49
  this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = e, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
@@ -48,14 +52,14 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
48
52
  return this._stateInternal;
49
53
  }
50
54
  constructor() {
51
- super(), this.listChildLocalNames = (t(this, v), ["sbb-breadcrumb"]), this._stateInternal = null, this._resizeObserver = new m(this, {
55
+ super(), this.listChildLocalNames = (t(this, b), ["sbb-breadcrumb"]), this._stateInternal = null, this._resizeObserver = new g(this, {
52
56
  target: null,
53
57
  skipInitial: !0,
54
58
  callback: () => this._evaluateCollapsedState()
55
59
  }), this._language = new s(this), this._markForFocus = !1, this.addEventListener?.("keydown", (e) => this._handleKeyDown(e));
56
60
  }
57
61
  _handleKeyDown(e) {
58
- if (!(!this.listChildren.length || e.target !== this && e.target.parentElement !== this) && d(e)) {
62
+ if (!(!this.listChildren.length || e.target !== this && e.target.parentElement !== this) && f(e)) {
59
63
  if (this._state === "collapsed") return this._focusNextCollapsed(e);
60
64
  this._focusNext(e);
61
65
  }
@@ -67,10 +71,10 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
67
71
  super.willUpdate(e), e.has("listChildren") && this._syncBreadcrumbs();
68
72
  }
69
73
  updated(e) {
70
- super.updated(e), e.has("listChildren") && Promise.resolve().then(() => this._evaluateCollapsedState()), this._markForFocus && f.mostRecentModality === "keyboard" && (this.listChildren[1]?.focus(), this._markForFocus = !1);
74
+ super.updated(e), e.has("listChildren") && Promise.resolve().then(() => this._evaluateCollapsedState()), this._markForFocus && m.mostRecentModality === "keyboard" && (this.listChildren[1]?.focus(), this._markForFocus = !1);
71
75
  }
72
76
  _syncBreadcrumbs() {
73
- this.listChildren.slice(0, -1).filter((e) => e.hasAttribute("accessibility-current")).forEach((e) => e.removeAttribute("accessibility-current")), this.listChildren[this.listChildren.length - 1]?.setAttribute("accessibility-current", "page"), this.listChildren.length < g && (this._state = null);
77
+ this.listChildren.slice(0, -1).filter((e) => e.hasAttribute("accessibility-current")).forEach((e) => e.removeAttribute("accessibility-current")), this.listChildren[this.listChildren.length - 1]?.setAttribute("accessibility-current", "page"), this.listChildren.length < v && (this._state = null);
74
78
  }
75
79
  _focusNextCollapsed(e) {
76
80
  let t = [
@@ -81,13 +85,13 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
81
85
  this._focusNext(e, t);
82
86
  }
83
87
  _focusNext(e, t = this.listChildren) {
84
- t[l(e, t.findIndex((e) => e === document.activeElement || e === this.shadowRoot.activeElement), t.length)]?.focus(), e.preventDefault();
88
+ t[u(e, t.findIndex((e) => e === document.activeElement || e === this.shadowRoot.activeElement), t.length)]?.focus(), e.preventDefault();
85
89
  }
86
90
  _expandBreadcrumbs() {
87
91
  this._state = "manually-expanded", this._markForFocus = !0;
88
92
  }
89
93
  _evaluateCollapsedState() {
90
- !this._state && this.scrollWidth > this.offsetWidth && this.listChildren.length >= g && (this._state = "collapsed", this._resizeObserver.hostDisconnected(), this.removeController(this._resizeObserver));
94
+ !this._state && this.scrollWidth > this.offsetWidth && this.listChildren.length >= v && (this._state = "collapsed", this._resizeObserver.hostDisconnected(), this.removeController(this._resizeObserver));
91
95
  }
92
96
  _renderCollapsed() {
93
97
  return n`
@@ -102,7 +106,7 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
102
106
  <button
103
107
  type="button"
104
108
  id="sbb-breadcrumb-ellipsis"
105
- aria-label=${u[this._language.current]}
109
+ aria-label=${d[this._language.current]}
106
110
  aria-expanded="false"
107
111
  @click=${() => this._expandBreadcrumbs()}
108
112
  >
@@ -140,4 +144,4 @@ var h = ":host{display:block;min-width:0;line-height:var(--sbb-typo-line-height-
140
144
  };
141
145
  })();
142
146
  //#endregion
143
- export { _ as t };
147
+ export { y as t };
package/breadcrumb.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./breadcrumb-group.component-XPdnV6-a.js";
1
+ import { t as e } from "./breadcrumb-group.component-a49dItu9.js";
2
2
  import { t } from "./breadcrumb.component-Kk1U6Iju.js";
3
3
  import "./breadcrumb.pure.js";
4
4
  t.define(), e.define();
@@ -1,3 +1,3 @@
1
- import { t as e } from "./breadcrumb-group.component-XPdnV6-a.js";
1
+ import { t as e } from "./breadcrumb-group.component-a49dItu9.js";
2
2
  import { t } from "./breadcrumb.component-Kk1U6Iju.js";
3
3
  export { t as SbbBreadcrumbElement, e as SbbBreadcrumbGroupElement };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../mini-button-group.component-DQBU0BDm.js";
1
+ import { t as e } from "../../mini-button-group.component-DWayyUpK.js";
2
2
  export { e as SbbMiniButtonGroupElement };
package/button.js CHANGED
@@ -4,7 +4,7 @@ import { SbbAccentButtonElement as n } from "./button/accent-button/accent-butto
4
4
  import { SbbTransparentButtonElement as r } from "./button/transparent-button/transparent-button.component.js";
5
5
  import { SbbMiniButtonElement as i } from "./button/mini-button/mini-button.component.js";
6
6
  import { t as a } from "./mini-button-link.component-B8HmvVCg.js";
7
- import { t as o } from "./mini-button-group.component-DQBU0BDm.js";
7
+ import { t as o } from "./mini-button-group.component-DWayyUpK.js";
8
8
  import { SbbButtonLinkElement as s } from "./button/button-link/button-link.component.js";
9
9
  import { SbbSecondaryButtonLinkElement as c } from "./button/secondary-button-link/secondary-button-link.component.js";
10
10
  import { SbbAccentButtonLinkElement as l } from "./button/accent-button-link/accent-button-link.component.js";
package/button.pure.js CHANGED
@@ -4,7 +4,7 @@ import { SbbAccentButtonElement as n } from "./button/accent-button/accent-butto
4
4
  import { SbbTransparentButtonElement as r } from "./button/transparent-button/transparent-button.component.js";
5
5
  import { SbbMiniButtonElement as i } from "./button/mini-button/mini-button.component.js";
6
6
  import { t as a } from "./mini-button-link.component-B8HmvVCg.js";
7
- import { t as o } from "./mini-button-group.component-DQBU0BDm.js";
7
+ import { t as o } from "./mini-button-group.component-DWayyUpK.js";
8
8
  import { SbbButtonLinkElement as s } from "./button/button-link/button-link.component.js";
9
9
  import { SbbSecondaryButtonLinkElement as c } from "./button/secondary-button-link/secondary-button-link.component.js";
10
10
  import { SbbAccentButtonLinkElement as l } from "./button/accent-button-link/accent-button-link.component.js";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../../calendar.component-BK4w5GWV.js";
1
+ import { n as e, r as t, t as n } from "../../calendar.component-DKgkIocz.js";
2
2
  export { n as SbbCalendarElement, e as SbbDateSelectedEvent, t as SbbMonthChangeEvent };
@@ -1,16 +1,16 @@
1
1
  import { __esDecorate as e, __runInitializers as t } from "tslib";
2
2
  import { html as n, isServer as r, nothing as i, unsafeCSS as a } from "lit";
3
3
  import { property as o, state as s } from "lit/decorators.js";
4
- import { DAYS_PER_ROW as c, MONDAY as l, MONTHS_PER_PAGE as ee, MONTHS_PER_ROW as u, SbbElement as te, SbbLanguageController as ne, SbbMediaMatcherController as re, SbbMediaQueryBreakpointLargeAndAbove as d, THURSDAY as ie, TUESDAY as ae, WEDNESDAY as oe, YEARS_PER_PAGE as f, YEARS_PER_ROW as p, defaultDateAdapter as se, forceType as m, handleDistinctChange as ce, i18nCalendarDateSelection as h, i18nCalendarWeekNumber as g, i18nNextMonth as le, i18nNextYear as ue, i18nNextYearRange as de, i18nPreviousMonth as fe, i18nPreviousYear as pe, i18nPreviousYearRange as me, i18nYearMonthSelection as he, isArrowKeyOrPageKeysPressed as ge, plainDate as _, readConfig as _e, screenReaderOnlyStyles as ve } from "./core.js";
5
- import { SbbSecondaryButtonElement as ye } from "./button.pure.js";
6
- import { SbbIconElement as be } from "./icon.pure.js";
7
- import { SbbCalendarDayElement as xe } from "./calendar/calendar-day/calendar-day.component.js";
8
- import { SbbCalendarMonthElement as Se } from "./calendar/calendar-month/calendar-month.component.js";
9
- import { SbbCalendarWeekdayElement as Ce } from "./calendar/calendar-weekday/calendar-weekday.component.js";
10
- import { SbbCalendarWeeknumberElement as we } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
11
- import { SbbCalendarYearElement as Te } from "./calendar/calendar-year/calendar-year.component.js";
4
+ import { DAYS_PER_ROW as c, MONDAY as l, MONTHS_PER_PAGE as ee, MONTHS_PER_ROW as u, SbbElement as te, SbbLanguageController as ne, SbbMediaMatcherController as re, SbbMediaQueryBreakpointLargeAndAbove as d, THURSDAY as ie, TUESDAY as ae, WEDNESDAY as oe, YEARS_PER_PAGE as f, YEARS_PER_ROW as p, buttonResetStyles as se, defaultDateAdapter as ce, forceType as m, handleDistinctChange as le, i18nCalendarDateSelection as h, i18nCalendarWeekNumber as g, i18nNextMonth as ue, i18nNextYear as de, i18nNextYearRange as fe, i18nPreviousMonth as pe, i18nPreviousYear as me, i18nPreviousYearRange as he, i18nYearMonthSelection as ge, isArrowKeyOrPageKeysPressed as _e, plainDate as _, readConfig as ve, screenReaderOnlyStyles as ye } from "./core.js";
5
+ import { SbbSecondaryButtonElement as be } from "./button.pure.js";
6
+ import { SbbIconElement as xe } from "./icon.pure.js";
7
+ import { SbbCalendarDayElement as Se } from "./calendar/calendar-day/calendar-day.component.js";
8
+ import { SbbCalendarMonthElement as Ce } from "./calendar/calendar-month/calendar-month.component.js";
9
+ import { SbbCalendarWeekdayElement as we } from "./calendar/calendar-weekday/calendar-weekday.component.js";
10
+ import { SbbCalendarWeeknumberElement as Te } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
11
+ import { SbbCalendarYearElement as Ee } from "./calendar/calendar-year/calendar-year.component.js";
12
12
  //#region src/elements/calendar/calendar/calendar.scss?inline
13
- var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-height-text);--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);line-height:var(--sbb-typo-letter-spacing-text);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-calendar-control-view-change-padding-inline);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-cell-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-cell-justify-content: center;--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg)}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}", v = class extends Event {
13
+ var De = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-height-text);--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-cell-border-radius: calc( var(--sbb-border-radius-4x) + var(--sbb-calendar-cell-border-width) );--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) )}@media(min-width:37.5rem){:host{--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-calendar-control-gap);margin-block-end:var(--sbb-calendar-control-margin-block-end)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);font-size:var(--sbb-text-font-size-s);letter-spacing:var(--sbb-typo-letter-spacing-text);line-height:var(--sbb-typo-letter-spacing-text);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-calendar-control-view-change-padding-inline);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-cell-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0;font-size:var(--sbb-text-font-size-xs);font-weight:400;letter-spacing:var(--sbb-typo-letter-spacing-text)}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}:host(:not(:is(:state(enhanced),[state--enhanced]))) sbb-calendar-day{--sbb-calendar-cell-justify-content: center;--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-value-height: unset;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg)}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}", v = class extends Event {
14
14
  get range() {
15
15
  return this._range;
16
16
  }
@@ -31,18 +31,18 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
31
31
  }), this._dateSelected = Object.freeze(e);
32
32
  }
33
33
  }, b = (() => {
34
- let b = te, x = [], S, C = [], w = [], T, De = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L, R = [], z = [], B, V = [], H = [], U, W = [], G = [], K, q = [], J = [], Y, X = [], Z = [], Q, Oe, ke = [], Ae = [], je, Me = [], $ = [];
34
+ let b = te, x = [], S, C = [], w = [], Oe, T = [], E = [], D, O = [], k = [], A, j = [], M = [], N, P = [], F = [], I, L, R = [], z = [], B, V = [], H = [], U, W = [], G = [], K, q = [], J = [], Y, X = [], Z = [], Q, ke, Ae = [], je = [], Me, Ne = [], $ = [];
35
35
  return class extends b {
36
36
  static {
37
37
  let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
38
- S = [m(), o({ type: Boolean })], T = [o()], D = [_(), o()], A = [_(), o()], N = [
38
+ S = [m(), o({ type: Boolean })], Oe = [o()], D = [_(), o()], A = [_(), o()], N = [
39
39
  m(),
40
- ce((e, t) => e._onMultipleChanged(t)),
40
+ le((e, t) => e._onMultipleChanged(t)),
41
41
  o({ type: Boolean })
42
42
  ], I = [o()], L = [s()], B = [o({ attribute: "date-filter" })], U = [o({ reflect: !0 })], K = [m(), o({
43
43
  attribute: "week-numbers",
44
44
  type: Boolean
45
- })], Y = [s()], Q = [s()], Oe = [s()], je = [s()], e(this, null, S, {
45
+ })], Y = [s()], Q = [s()], ke = [s()], Me = [s()], e(this, null, S, {
46
46
  kind: "accessor",
47
47
  name: "wide",
48
48
  static: !1,
@@ -55,7 +55,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
55
55
  }
56
56
  },
57
57
  metadata: t
58
- }, C, w), e(this, null, T, {
58
+ }, C, w), e(this, null, Oe, {
59
59
  kind: "accessor",
60
60
  name: "view",
61
61
  static: !1,
@@ -68,7 +68,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
68
68
  }
69
69
  },
70
70
  metadata: t
71
- }, De, E), e(this, null, D, {
71
+ }, T, E), e(this, null, D, {
72
72
  kind: "accessor",
73
73
  name: "min",
74
74
  static: !1,
@@ -196,7 +196,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
196
196
  }
197
197
  },
198
198
  metadata: t
199
- }, null, x), e(this, null, Oe, {
199
+ }, null, x), e(this, null, ke, {
200
200
  kind: "accessor",
201
201
  name: "_calendarView",
202
202
  static: !1,
@@ -209,7 +209,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
209
209
  }
210
210
  },
211
211
  metadata: t
212
- }, ke, Ae), e(this, null, je, {
212
+ }, Ae, je), e(this, null, Me, {
213
213
  kind: "accessor",
214
214
  name: "_initialized",
215
215
  static: !1,
@@ -222,7 +222,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
222
222
  }
223
223
  },
224
224
  metadata: t
225
- }, Me, $), t && Object.defineProperty(this, Symbol.metadata, {
225
+ }, Ne, $), t && Object.defineProperty(this, Symbol.metadata, {
226
226
  enumerable: !0,
227
227
  configurable: !0,
228
228
  writable: !0,
@@ -234,17 +234,21 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
234
234
  }
235
235
  static {
236
236
  this.elementDependencies = [
237
- xe,
238
237
  Se,
239
238
  Ce,
240
239
  we,
241
240
  Te,
242
- be,
243
- ye
241
+ Ee,
242
+ xe,
243
+ be
244
244
  ];
245
245
  }
246
246
  static {
247
- this.styles = [ve, a(Ee)];
247
+ this.styles = [
248
+ se,
249
+ ye,
250
+ a(De)
251
+ ];
248
252
  }
249
253
  static {
250
254
  this.events = {
@@ -288,7 +292,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
288
292
  this.#i = e;
289
293
  }
290
294
  set selected(e) {
291
- if (Array.isArray(e)) this._selected = e.map((e) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))).filter((e) => e !== null).filter((e) => !this._isDayInRange(this._dateAdapter.toIso8601(e)) || this._dateFilter(e));
295
+ if (Array.isArray(e)) this._selected = e.map((e) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))).filter((e) => e !== null).filter((e) => !this._isDayInRange(this._dateAdapter.toIso8601(e)) || this._dateFilter(e)).sort(this._sortDate);
292
296
  else {
293
297
  let t = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));
294
298
  t && (!this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t)) ? this._selected = t : this._selected = null;
@@ -356,22 +360,25 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
356
360
  this.#d = e;
357
361
  }
358
362
  constructor() {
359
- super(), this.#e = (t(this, x), t(this, C, !1)), this.#t = (t(this, w), t(this, De, "day")), this.#n = (t(this, E), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this.#s = (t(this, H), t(this, W, "horizontal")), this.#c = (t(this, G), t(this, q, !1)), this._dateAdapter = (t(this, J), _e().datetime?.dateAdapter ?? se), this.#l = t(this, X, this._dateAdapter.today()), this._wideInternal = (t(this, Z), !1), this.#u = t(this, ke, "day"), this._nextCalendarView = (t(this, Ae), "day"), this._keyboardNavigationDayViewParameters = {
363
+ super(), this.#e = (t(this, x), t(this, C, !1)), this.#t = (t(this, w), t(this, T, "day")), this.#n = (t(this, E), t(this, O, null)), this.#r = (t(this, k), t(this, j, null)), this.#i = (t(this, M), t(this, P, !1)), this.#a = (t(this, F), t(this, R, null)), this.#o = (t(this, z), t(this, V, null)), this.#s = (t(this, H), t(this, W, "horizontal")), this.#c = (t(this, G), t(this, q, !1)), this._dateAdapter = (t(this, J), ve().datetime?.dateAdapter ?? ce), this.#l = t(this, X, this._dateAdapter.today()), this._wideInternal = (t(this, Z), !1), this.#u = t(this, Ae, "day"), this._nextCalendarView = (t(this, je), "day"), this._keyboardNavigationDayViewParameters = {
360
364
  firstDayInView: null,
361
365
  lastDayInView: null,
362
366
  firstMonthOffset: 0,
363
367
  firstMonthLength: 0,
364
368
  secondMonthOffset: 0
365
- }, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this.#d = t(this, Me, !1), this._language = (t(this, $), new ne(this).withHandler(() => {
369
+ }, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, this._lastSelection = null, this.#d = t(this, Ne, !1), this._language = (t(this, $), new ne(this).withHandler(() => {
366
370
  this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
367
- })), this._mediaMatcher = new re(this, { [d]: () => this._init() }), this._onSlotChange = () => {
371
+ })), this._mediaMatcher = new re(this, { [d]: () => this._init() }), this._sortDate = (e, t) => this._dateAdapter.compareDate(e, t), this._onSlotChange = () => {
368
372
  this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
369
- }, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1), this.addEventListener("click", (e) => {
370
- let t = e.target.closest("sbb-calendar-day");
371
- t && this._selectDate(t.value);
372
- }), this.addEventListener("keydown", (e) => {
373
- e.target.localName === "sbb-calendar-day" && this._handleKeyboardEvent(e, this._mapDateToDay(e.target.value));
374
- });
373
+ }, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1);
374
+ let e = (e) => e.target.closest("sbb-calendar-day") ?? e.composedPath().find((e) => e.localName === "sbb-calendar-day") ?? null;
375
+ this.addEventListener("click", (t) => {
376
+ let n = e(t);
377
+ n && this._selectDate(n.value, t);
378
+ }), this.addEventListener("keydown", (t) => {
379
+ let n = e(t);
380
+ n && this._handleKeyboardEvent(t, n);
381
+ }), this.addEventListener("blur", () => this._lastSelection = null);
375
382
  }
376
383
  _dateFilter(e) {
377
384
  return this.dateFilter?.(e) ?? !0;
@@ -494,18 +501,29 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
494
501
  let t = this._dateAdapter.deserialize(e);
495
502
  return this._dateAdapter.sameDate(t, this._dateAdapter.clampDate(t, this.min, this.max));
496
503
  }
497
- _selectDate(e) {
504
+ _selectDate(e, t) {
498
505
  if (this._chosenMonth = void 0, this._setChosenYear(), this.multiple) {
499
- if (this._selected && this._selected.length > 0) {
500
- let t = this._selected.findIndex((t) => this._dateAdapter.compareDate(t, e) === 0);
501
- t === -1 ? this._selected = [...this._selected, e] : this._selected = this._selected.filter((e, n) => n !== t);
502
- } else this._selected = [e];
503
- this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
506
+ window.getSelection()?.removeAllRanges();
507
+ let n = this._selected ? Array.isArray(this._selected) ? this._selected : [this._selected] : [], r = n.map((e) => this._dateAdapter.toIso8601(e));
508
+ if (t.shiftKey && this._lastSelection && r.includes(this._dateAdapter.toIso8601(this._lastSelection)) && !r.includes(this._dateAdapter.toIso8601(e))) {
509
+ let t = this._dateAdapter.compareDate(this._lastSelection, e) < 0 ? 1 : -1, i = [], a = this._lastSelection;
510
+ for (; !this._dateAdapter.sameDate(a, e);) {
511
+ a = this._dateAdapter.addCalendarDays(a, t);
512
+ let e = this._dateAdapter.toIso8601(a);
513
+ r.includes(e) || i.push(e);
514
+ }
515
+ n = this._mergeDates(i, r);
516
+ } else n = n.some((t) => this._dateAdapter.sameDate(t, e)) ? n.filter((t) => !this._dateAdapter.sameDate(t, e)) : [...n, e].sort(this._sortDate);
517
+ this._lastSelection = e, this._selected = n, this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
504
518
  } else (!this._selected || this._dateAdapter.compareDate(this._selected, e) !== 0) && (this._selected = e, this._emitDateSelectedEvent(this._dateAdapter.deserialize(e)));
505
519
  }
506
520
  _selectMultipleDates(e) {
507
- let t = this._cells.filter((e) => !e.disabled).map((e) => this._mapValueToISODate(e.value)), n = e.map((e) => e.value).filter((e) => t.includes(e)), r = new Set(n), i = new Set(this._selected.map((e) => this._dateAdapter.toIso8601(e))), a = this._updateSelectedWithMultipleDates(n, r, i);
508
- this._selected = a.map((e) => this._dateAdapter.deserialize(e)), this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
521
+ this._selected = this._mergeDates(e.map((e) => e.value)), this._emitDateSelectedEvent(this._selected.map((e) => this._dateAdapter.deserialize(e)));
522
+ }
523
+ _mergeDates(e, t) {
524
+ t ??= this._selected.map((e) => this._dateAdapter.toIso8601(e));
525
+ let n = this._cells.filter((e) => !e.disabled).map((e) => this._mapValueToISODate(e.value)), r = e.filter((e) => n.includes(e));
526
+ return t = r.every((e) => t.includes(e)) ? t.filter((e) => !r.includes(e)) : [...t, ...r].filter((e, t, n) => n.indexOf(e) === t), t.map((e) => this._dateAdapter.deserialize(e)).sort(this._sortDate);
509
527
  }
510
528
  _emitDateSelectedEvent(e) {
511
529
  this.dispatchEvent(new y(e));
@@ -514,9 +532,6 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
514
532
  let e = (this.wide ? [...this._weeks, ...this._nextMonthWeeks] : this._weeks).flat().sort((e, t) => e.value.localeCompare(t.value));
515
533
  this.dispatchEvent(new v(e));
516
534
  }
517
- _updateSelectedWithMultipleDates(e, t, n) {
518
- return e.every((e) => n.has(e)) ? t.forEach((e) => n.delete(e)) : t.forEach((e) => n.add(e)), Array.from(n);
519
- }
520
535
  _setChosenYear() {
521
536
  if (this.view === "month") {
522
537
  let e;
@@ -599,11 +614,11 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
599
614
  }
600
615
  }
601
616
  _handleKeyboardEvent(e, t) {
602
- ge(e) && e.preventDefault();
603
- let n = this._cells, r = n.findIndex((t) => t === e.target), i;
604
- i = t ? this._navigateByKeyboardDayView(e, r, n, t) : this._navigateByKeyboard(e, r, n);
605
- let a = (this._enhancedVariant ? document : this.shadowRoot).activeElement;
606
- i !== a && (i.tabIndex = 0, i?.focus(), a.tabIndex = -1);
617
+ _e(e) && e.preventDefault();
618
+ let n = t ?? e.target, r = this._cells, i = r.indexOf(n), a;
619
+ a = t ? this._navigateByKeyboardDayView(e, i, r, this._mapDateToDay(t.value)) : this._navigateByKeyboard(e, i, r);
620
+ let o = (this._enhancedVariant ? document : this.shadowRoot).activeElement;
621
+ a !== o && (a.tabIndex = 0, a?.focus(), o.tabIndex = -1);
607
622
  }
608
623
  _navigateByKeyboardDayView(e, t, n, r) {
609
624
  let i = this.orientation === "horizontal" ? {
@@ -719,7 +734,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
719
734
  let e = this._wide ? this._dateAdapter.addCalendarMonths(this._activeDate, 1) : void 0;
720
735
  return n`
721
736
  <div class="sbb-calendar__controls">
722
- ${this._getArrow("left", () => this._goToDifferentMonth(-1), fe[this._language.current], this._previousMonthDisabled())}
737
+ ${this._getArrow("left", () => this._goToDifferentMonth(-1), pe[this._language.current], this._previousMonthDisabled())}
723
738
  <div class="sbb-calendar__controls-month">
724
739
  ${this._createLabelForDayView(this._activeDate)}
725
740
  ${this._wide ? this._createLabelForDayView(e) : i}
@@ -727,7 +742,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
727
742
  ${this._createAriaLabelForDayView(this._activeDate, e)}
728
743
  </span>
729
744
  </div>
730
- ${this._getArrow("right", () => this._goToDifferentMonth(1), le[this._language.current], this._nextMonthDisabled())}
745
+ ${this._getArrow("right", () => this._goToDifferentMonth(1), ue[this._language.current], this._nextMonthDisabled())}
731
746
  </div>
732
747
  <div class="sbb-calendar__table-overflow-break">
733
748
  <div class="sbb-calendar__table-container sbb-calendar__table-day-view">
@@ -748,7 +763,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
748
763
  <button
749
764
  type="button"
750
765
  class="sbb-calendar__date-selection sbb-calendar__controls-change-date"
751
- aria-label="${he[this._language.current]} ${t}"
766
+ aria-label="${ge[this._language.current]} ${t}"
752
767
  @click=${() => {
753
768
  this._resetFocus = !0, this._nextCalendarView = "year", this._startTableTransition();
754
769
  }}
@@ -912,11 +927,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
912
927
  return e.map((e) => n`
913
928
  <td class="sbb-calendar__table-data sbb-calendar__day-cell">
914
929
  <slot name=${e.value}>
915
- <sbb-calendar-day
916
- slot=${e.value}
917
- @click=${() => this._selectDate(e.dateValue)}
918
- @keydown=${(t) => this._handleKeyboardEvent(t, e)}
919
- ></sbb-calendar-day>
930
+ <sbb-calendar-day slot=${e.value}></sbb-calendar-day>
920
931
  </slot>
921
932
  </td>
922
933
  `);
@@ -924,9 +935,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
924
935
  _renderMonthView() {
925
936
  return n`
926
937
  <div class="sbb-calendar__controls">
927
- ${this._getArrow("left", () => this._goToDifferentYear(-1), pe[this._language.current], this._previousYearDisabled())}
938
+ ${this._getArrow("left", () => this._goToDifferentYear(-1), me[this._language.current], this._previousYearDisabled())}
928
939
  <div class="sbb-calendar__controls-month">${this._createLabelForMonthView()}</div>
929
- ${this._getArrow("right", () => this._goToDifferentYear(1), ue[this._language.current], this._nextYearDisabled())}
940
+ ${this._getArrow("right", () => this._goToDifferentYear(1), de[this._language.current], this._nextYearDisabled())}
930
941
  </div>
931
942
  <div class="sbb-calendar__table-overflow-break">
932
943
  <div class="sbb-calendar__table-container sbb-calendar__table-month-view">
@@ -937,7 +948,7 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
937
948
  `;
938
949
  }
939
950
  _createLabelForMonthView() {
940
- return n` <button
951
+ return n`<button
941
952
  type="button"
942
953
  id="sbb-calendar__month-selection"
943
954
  class="sbb-calendar__controls-change-date"
@@ -985,9 +996,9 @@ var Ee = ":host{display:block;width:max-content;line-height:var(--sbb-typo-line-
985
996
  _renderYearView() {
986
997
  return n`
987
998
  <div class="sbb-calendar__controls">
988
- ${this._getArrow("left", () => this._goToDifferentYearRange(-f), me(f)[this._language.current], this._previousYearRangeDisabled())}
999
+ ${this._getArrow("left", () => this._goToDifferentYearRange(-f), he(f)[this._language.current], this._previousYearRangeDisabled())}
989
1000
  <div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
990
- ${this._getArrow("right", () => this._goToDifferentYearRange(f), de(f)[this._language.current], this._nextYearRangeDisabled())}
1001
+ ${this._getArrow("right", () => this._goToDifferentYearRange(f), fe(f)[this._language.current], this._nextYearRangeDisabled())}
991
1002
  </div>
992
1003
  <div class="sbb-calendar__table-overflow-break">
993
1004
  <div class="sbb-calendar__table-container sbb-calendar__table-year-view">
package/calendar.js CHANGED
@@ -3,7 +3,7 @@ import { SbbCalendarMonthElement as t } from "./calendar/calendar-month/calendar
3
3
  import { SbbCalendarYearElement as n } from "./calendar/calendar-year/calendar-year.component.js";
4
4
  import { SbbCalendarWeekdayElement as r } from "./calendar/calendar-weekday/calendar-weekday.component.js";
5
5
  import { SbbCalendarWeeknumberElement as i } from "./calendar/calendar-weeknumber/calendar-weeknumber.component.js";
6
- import { n as a, r as o, t as s } from "./calendar.component-BK4w5GWV.js";
6
+ import { n as a, r as o, t as s } from "./calendar.component-DKgkIocz.js";
7
7
  import { t as c } from "./calendar-cell-base-element-CUG1qYFb.js";
8
8
  import "./calendar.pure.js";
9
9
  s.define(), e.define(), t.define(), n.define(), r.define(), i.define();