@sbb-esta/lyne-elements 2.11.1 → 2.11.2

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 (374) hide show
  1. package/accordion/accordion.component.js +19 -22
  2. package/action-group/action-group.component.js +3 -5
  3. package/alert/alert/alert.component.js +1 -2
  4. package/alert/alert-group/alert-group.component.js +2 -3
  5. package/autocomplete/autocomplete-base-element.js +71 -82
  6. package/autocomplete/autocomplete.component.js +31 -36
  7. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +44 -52
  8. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
  9. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
  10. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +23 -26
  11. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +9 -9
  12. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +29 -33
  13. package/button/mini-button/mini-button.component.js +1 -1
  14. package/button/mini-button-group/mini-button-group.component.js +1 -2
  15. package/calendar/calendar.component.js +8 -13
  16. package/card/card/card.component.js +12 -12
  17. package/card/card-badge/card-badge.component.js +16 -16
  18. package/card/common/card-action-common.js +23 -25
  19. package/checkbox/checkbox/checkbox.component.js +17 -20
  20. package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
  21. package/checkbox/checkbox-panel/checkbox-panel.component.js +22 -25
  22. package/checkbox/common/checkbox-common.js +13 -15
  23. package/chip/chip-group/chip-group.component.js +59 -70
  24. package/clock/clock.component.js +50 -60
  25. package/container/container/container.component.js +28 -29
  26. package/container/sticky-bar/sticky-bar.component.js +26 -27
  27. package/core/a11y/focus-trap-controller.js +11 -14
  28. package/core/a11y/focus.js +27 -29
  29. package/core/a11y/input-modality-detector.js +18 -19
  30. package/core/a11y/interactivity-checker.js +10 -10
  31. package/core/base-elements/button-base-element.js +13 -18
  32. package/core/base-elements/link-base-element.js +3 -6
  33. package/core/base-elements/open-close-base-element.js +1 -1
  34. package/core/controllers/connected-abort-controller.js +2 -4
  35. package/core/controllers/escapable-overlay-controller.js +10 -12
  36. package/core/controllers/id-reference-controller.js +13 -14
  37. package/core/controllers/inert-controller.js +8 -10
  38. package/core/controllers/slot-state-controller.js +16 -26
  39. package/core/datetime/date-adapter.d.ts.map +1 -1
  40. package/core/datetime/date-adapter.js +21 -21
  41. package/core/datetime/native-date-adapter.js +11 -11
  42. package/core/decorators/date-converter.js +10 -12
  43. package/core/decorators/date-only-type.js +5 -6
  44. package/core/decorators/force-type.js +4 -5
  45. package/core/dom/breakpoint.js +8 -8
  46. package/core/dom/input-element.js +4 -9
  47. package/core/eventing/event-emitter.js +4 -5
  48. package/core/mixins/form-associated-checkbox-mixin.js +32 -37
  49. package/core/mixins/form-associated-input-mixin.js +58 -64
  50. package/core/mixins/form-associated-mixin.js +42 -44
  51. package/core/mixins/form-associated-radio-button-mixin.js +3 -5
  52. package/core/mixins/hydration-mixin.js +12 -13
  53. package/core/mixins/named-slot-list-mixin.js +32 -37
  54. package/core/mixins/panel-mixin.js +26 -27
  55. package/core/mixins.js +1 -1
  56. package/core/overlay/position.js +23 -23
  57. package/core/styles/core/mediaqueries.scss +1 -1
  58. package/core/styles/core.scss +27 -28
  59. package/core/styles/mixins/table.scss +1 -24
  60. package/core/testing/event-spy.js +2 -4
  61. package/core/testing/wait-for-image-ready.js +8 -9
  62. package/core/testing/wait-for-render.js +8 -9
  63. package/custom-elements.json +2 -2
  64. package/date-input/date-input.component.js +2 -4
  65. package/datepicker/common/datepicker-association-controllers.js +21 -24
  66. package/datepicker/common/datepicker-button.js +53 -57
  67. package/datepicker/datepicker/datepicker.component.js +82 -95
  68. package/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  69. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  70. package/datepicker/datepicker-toggle/datepicker-toggle.component.js +74 -81
  71. package/development/accordion/accordion.component.js +4 -7
  72. package/development/action-group/action-group.component.js +3 -5
  73. package/development/alert/alert/alert.component.js +2 -3
  74. package/development/alert/alert-group/alert-group.component.js +2 -3
  75. package/development/autocomplete/autocomplete-base-element.js +19 -30
  76. package/development/autocomplete/autocomplete.component.js +7 -12
  77. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
  78. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
  79. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  80. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
  81. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
  82. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
  83. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
  84. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
  85. package/development/button/accent-button/accent-button.component.js +1 -1
  86. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  87. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  88. package/development/button/button/button.component.js +1 -1
  89. package/development/button/button-link/button-link.component.js +1 -1
  90. package/development/button/button-static/button-static.component.js +1 -1
  91. package/development/button/common/button-common.js +1 -1
  92. package/development/button/mini-button/mini-button.component.js +1 -1
  93. package/development/button/mini-button-group/mini-button-group.component.js +2 -3
  94. package/development/button/secondary-button/secondary-button.component.js +1 -1
  95. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  96. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  97. package/development/button/transparent-button/transparent-button.component.js +1 -1
  98. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  99. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  100. package/development/calendar/calendar.component.js +9 -14
  101. package/development/card/card/card.component.js +1 -1
  102. package/development/card/card-badge/card-badge.component.js +1 -1
  103. package/development/card/card-button/card-button.component.js +1 -1
  104. package/development/card/card-link/card-link.component.js +1 -1
  105. package/development/card/common/card-action-common.js +3 -5
  106. package/development/checkbox/checkbox/checkbox.component.js +2 -5
  107. package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
  108. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
  109. package/development/checkbox/common/checkbox-common.js +3 -5
  110. package/development/chip/chip/chip.component.js +1 -1
  111. package/development/chip/chip-group/chip-group.component.js +15 -26
  112. package/development/chip-label/chip-label.component.js +1 -1
  113. package/development/clock/clock.component.js +23 -33
  114. package/development/container/container/container.component.js +2 -3
  115. package/development/container/sticky-bar/sticky-bar.component.js +2 -3
  116. package/development/core/a11y/arrow-navigation.js +1 -1
  117. package/development/core/a11y/fake-event-detection.js +1 -1
  118. package/development/core/a11y/focus-trap-controller.js +6 -9
  119. package/development/core/a11y/focus-visible-within-controller.js +1 -1
  120. package/development/core/a11y/focus.js +8 -10
  121. package/development/core/a11y/input-modality-detector.js +2 -3
  122. package/development/core/a11y/interactivity-checker.js +2 -2
  123. package/development/core/base-elements/action-base-element.js +2 -3
  124. package/development/core/base-elements/button-base-element.js +6 -11
  125. package/development/core/base-elements/link-base-element.js +4 -7
  126. package/development/core/base-elements/open-close-base-element.js +2 -2
  127. package/development/core/config/config.js +1 -1
  128. package/development/core/controllers/connected-abort-controller.js +3 -5
  129. package/development/core/controllers/escapable-overlay-controller.js +3 -5
  130. package/development/core/controllers/id-reference-controller.js +2 -3
  131. package/development/core/controllers/inert-controller.js +4 -6
  132. package/development/core/controllers/language-controller.js +1 -1
  133. package/development/core/controllers/media-matchers-controller.js +1 -1
  134. package/development/core/controllers/slot-state-controller.js +8 -18
  135. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  136. package/development/core/datetime/date-adapter.js +5 -5
  137. package/development/core/datetime/native-date-adapter.js +2 -2
  138. package/development/core/decorators/date-converter.js +3 -5
  139. package/development/core/decorators/date-only-type.js +2 -3
  140. package/development/core/decorators/force-type.js +3 -4
  141. package/development/core/decorators/get-override.js +1 -1
  142. package/development/core/decorators/handle-distinct-change.js +1 -1
  143. package/development/core/decorators/host-attributes.js +1 -1
  144. package/development/core/decorators/slot-state.js +1 -1
  145. package/development/core/dom/animation.js +1 -1
  146. package/development/core/dom/breakpoint.js +2 -2
  147. package/development/core/dom/find-referenced-element.js +1 -1
  148. package/development/core/dom/host-context.js +1 -1
  149. package/development/core/dom/input-element.js +3 -4
  150. package/development/core/dom/platform.js +1 -1
  151. package/development/core/dom/scroll.js +1 -1
  152. package/development/core/dom/set-or-remove-attribute.js +1 -1
  153. package/development/core/eventing/composed-path-has-attribute.js +1 -1
  154. package/development/core/eventing/event-emitter.js +2 -3
  155. package/development/core/eventing/form-element-handlers.js +1 -1
  156. package/development/core/eventing/forward-event.js +1 -1
  157. package/development/core/eventing/throttle.js +1 -1
  158. package/development/core/i18n/i18n.js +1 -1
  159. package/development/core/mixins/animation-complete-mixin.js +1 -1
  160. package/development/core/mixins/disabled-mixin.js +1 -1
  161. package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
  162. package/development/core/mixins/form-associated-input-mixin.js +14 -20
  163. package/development/core/mixins/form-associated-mixin.js +5 -7
  164. package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
  165. package/development/core/mixins/hydration-mixin.js +3 -4
  166. package/development/core/mixins/named-slot-list-mixin.js +4 -7
  167. package/development/core/mixins/negative-mixin.js +1 -1
  168. package/development/core/mixins/panel-mixin.js +2 -3
  169. package/development/core/mixins/required-mixin.js +1 -1
  170. package/development/core/mixins/update-scheduler-mixin.js +1 -1
  171. package/development/core/overlay/overlay-option-panel.js +1 -1
  172. package/development/core/overlay/overlay-trigger-attributes.js +1 -1
  173. package/development/core/overlay/overlay.js +1 -1
  174. package/development/core/overlay/position.js +5 -5
  175. package/development/core/testing/event-spy.js +3 -5
  176. package/development/core/testing/mocha-extensions.js +1 -1
  177. package/development/core/testing/wait-for-condition.js +1 -1
  178. package/development/core/testing/wait-for-image-ready.js +2 -3
  179. package/development/core/testing/wait-for-render.js +2 -3
  180. package/development/date-input/date-input.component.js +4 -6
  181. package/development/datepicker/common/datepicker-association-controllers.js +6 -9
  182. package/development/datepicker/common/datepicker-button.js +7 -11
  183. package/development/datepicker/datepicker/datepicker.component.js +22 -35
  184. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  185. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  186. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +13 -20
  187. package/development/dialog/dialog/dialog.component.js +16 -27
  188. package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
  189. package/development/dialog/dialog-content/dialog-content.component.js +1 -1
  190. package/development/dialog/dialog-title/dialog-title.component.js +1 -1
  191. package/development/divider/divider.component.js +1 -1
  192. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
  193. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
  194. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +4 -5
  195. package/development/file-selector/common/file-selector-common.js +2 -3
  196. package/development/file-selector/file-selector/file-selector.component.js +1 -1
  197. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  198. package/development/flip-card/flip-card/flip-card.component.js +7 -13
  199. package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -3
  200. package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -3
  201. package/development/footer/footer.component.js +1 -1
  202. package/development/form-error/form-error.component.js +3 -4
  203. package/development/form-field/form-field/form-field.component.js +19 -30
  204. package/development/form-field/form-field-clear/form-field-clear.component.js +4 -6
  205. package/development/header/common/header-action-common.js +1 -1
  206. package/development/header/header/header.component.js +5 -8
  207. package/development/header/header-button/header-button.component.js +1 -1
  208. package/development/header/header-link/header-link.component.js +1 -1
  209. package/development/icon/icon-base.js +1 -1
  210. package/development/icon/icon-name-mixin.js +1 -1
  211. package/development/icon/icon-request.js +2 -3
  212. package/development/icon/icon-validate.js +1 -1
  213. package/development/icon/icon.component.js +1 -1
  214. package/development/image/image.component.js +7 -9
  215. package/development/journey-header/journey-header.component.js +1 -1
  216. package/development/lead-container/lead-container.component.js +1 -1
  217. package/development/link/block-link/block-link.component.js +1 -1
  218. package/development/link/block-link-button/block-link-button.component.js +1 -1
  219. package/development/link/block-link-static/block-link-static.component.js +1 -1
  220. package/development/link/common/block-link-common.js +1 -1
  221. package/development/link/common/inline-link-common.js +1 -1
  222. package/development/link/link/link.component.js +1 -1
  223. package/development/link/link-button/link-button.component.js +1 -1
  224. package/development/link/link-static/link-static.component.js +1 -1
  225. package/development/link-common-CJEWffDZ.js +1 -1
  226. package/development/link-list/common/link-list-base.js +1 -1
  227. package/development/link-list/link-list/link-list.component.js +1 -1
  228. package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
  229. package/development/loading-indicator/loading-indicator.component.js +1 -1
  230. package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
  231. package/development/logo/logo.component.js +1 -1
  232. package/development/map-container/map-container.component.js +2 -3
  233. package/development/menu/common/menu-action-common.js +1 -1
  234. package/development/menu/menu/menu.component.js +17 -25
  235. package/development/menu/menu-button/menu-button.component.js +1 -1
  236. package/development/menu/menu-link/menu-link.component.js +1 -1
  237. package/development/message/message.component.js +1 -1
  238. package/development/navigation/common/navigation-action-common.js +3 -5
  239. package/development/navigation/navigation/navigation.component.js +19 -35
  240. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  241. package/development/navigation/navigation-link/navigation-link.component.js +1 -1
  242. package/development/navigation/navigation-list/navigation-list.component.js +1 -1
  243. package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
  244. package/development/navigation/navigation-section/navigation-section.component.js +22 -32
  245. package/development/notification/notification.component.js +22 -24
  246. package/development/option/optgroup/optgroup-base-element.js +4 -6
  247. package/development/option/optgroup/optgroup.component.js +6 -10
  248. package/development/option/option/option-base-element.js +3 -4
  249. package/development/option/option/option.component.js +7 -10
  250. package/development/overlay/overlay-base-element.js +4 -6
  251. package/development/overlay/overlay.component.js +7 -9
  252. package/development/paginator/common/paginator-common.js +1 -1
  253. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  254. package/development/paginator/paginator/paginator.component.js +2 -3
  255. package/development/popover/popover/popover.component.js +12 -17
  256. package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
  257. package/development/radio-button/common/radio-button-common.js +6 -10
  258. package/development/radio-button/radio-button/radio-button.component.js +2 -5
  259. package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
  260. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
  261. package/development/screen-reader-only/screen-reader-only.component.js +1 -1
  262. package/development/select/select.component.js +26 -48
  263. package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
  264. package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
  265. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  266. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
  267. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
  268. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
  269. package/development/sidebar/sidebar/sidebar.component.js +8 -15
  270. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  271. package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
  272. package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  273. package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -2
  274. package/development/signet/signet.component.js +1 -1
  275. package/development/skiplink-list/skiplink-list.component.js +1 -1
  276. package/development/slider/slider.component.js +3 -4
  277. package/development/status/status.component.js +1 -1
  278. package/development/stepper/step/step.component.js +5 -7
  279. package/development/stepper/step-label/step-label.component.js +3 -4
  280. package/development/stepper/stepper/stepper.component.js +16 -29
  281. package/development/table/table-wrapper/table-wrapper.component.js +2 -7
  282. package/development/tabs/tab/tab.component.js +1 -1
  283. package/development/tabs/tab-group/tab-group.component.js +23 -38
  284. package/development/tabs/tab-label/tab-label.component.js +1 -1
  285. package/development/tag/tag/tag.component.js +6 -12
  286. package/development/tag/tag-group/tag-group.component.js +5 -13
  287. package/development/teaser/teaser.component.js +1 -1
  288. package/development/teaser-hero/teaser-hero.component.js +1 -1
  289. package/development/teaser-product/common/teaser-product-common.js +1 -1
  290. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  291. package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
  292. package/development/time-input/time-input.component.js +8 -12
  293. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  294. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -3
  295. package/development/title/title-base.js +1 -1
  296. package/development/title/title.component.js +1 -1
  297. package/development/toast/toast.component.js +4 -7
  298. package/development/toggle/toggle/toggle.component.js +8 -12
  299. package/development/toggle/toggle-option/toggle-option.component.js +9 -16
  300. package/development/toggle-check/toggle-check.component.js +1 -1
  301. package/development/train/train/train.component.js +1 -1
  302. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  303. package/development/train/train-formation/train-formation.component.js +5 -7
  304. package/development/train/train-wagon/train-wagon.component.js +1 -1
  305. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  306. package/dialog/dialog/dialog.component.js +59 -70
  307. package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
  308. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +31 -32
  309. package/file-selector/common/file-selector-common.js +1 -2
  310. package/flip-card/flip-card/flip-card.component.js +48 -54
  311. package/flip-card/flip-card-details/flip-card-details.component.js +16 -17
  312. package/flip-card/flip-card-summary/flip-card-summary.component.js +18 -19
  313. package/form-error/form-error.component.js +13 -14
  314. package/form-field/form-field/form-field.component.js +128 -139
  315. package/form-field/form-field-clear/form-field-clear.component.js +20 -22
  316. package/header/header/header.component.js +25 -28
  317. package/icon/icon-request.js +10 -11
  318. package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
  319. package/image/image.component.js +4 -6
  320. package/map-container/map-container.component.js +1 -2
  321. package/menu/menu/menu.component.js +48 -56
  322. package/navigation/common/navigation-action-common.js +19 -21
  323. package/navigation/navigation/navigation.component.js +74 -93
  324. package/navigation/navigation-marker/navigation-marker.component.js +26 -28
  325. package/navigation/navigation-section/navigation-section.component.js +79 -89
  326. package/notification/notification.component.js +18 -20
  327. package/option/optgroup/optgroup-base-element.js +40 -42
  328. package/option/optgroup/optgroup.component.js +16 -20
  329. package/option/option/option-base-element.js +3 -4
  330. package/option/option/option.component.js +28 -31
  331. package/overlay/overlay-base-element.js +25 -27
  332. package/overlay/overlay.component.js +38 -40
  333. package/package.json +1 -1
  334. package/paginator/paginator/paginator.component.js +3 -4
  335. package/popover/popover/popover.component.js +82 -91
  336. package/popover/popover-trigger/popover-trigger.component.js +1 -1
  337. package/radio-button/common/radio-button-common.js +11 -15
  338. package/radio-button/radio-button/radio-button.component.js +20 -23
  339. package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
  340. package/radio-button/radio-button-panel/radio-button-panel.component.js +31 -35
  341. package/select/select.component.js +89 -111
  342. package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
  343. package/sidebar/common.js +1 -1
  344. package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
  345. package/sidebar/sidebar/sidebar.component.js +61 -68
  346. package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
  347. package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  348. package/sidebar.js +1 -1
  349. package/slider/slider.component.js +3 -4
  350. package/standard-theme.css +0 -25
  351. package/stepper/step/step.component.js +22 -24
  352. package/stepper/step-label/step-label.component.js +2 -3
  353. package/stepper/stepper/stepper.component.js +72 -86
  354. package/table/table-wrapper/table-wrapper.component.js +13 -14
  355. package/table.css +0 -25
  356. package/tabs/tab-group/tab-group.component.js +77 -92
  357. package/tabs/tab-label/tab-label.component.js +10 -10
  358. package/tag/tag/tag.component.js +55 -61
  359. package/tag/tag-group/tag-group.component.js +21 -29
  360. package/teaser/teaser.component.js +1 -1
  361. package/teaser-product/common.js +1 -1
  362. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  363. package/teaser-product-common-C8oSkIxy.js +5 -0
  364. package/teaser-product.js +1 -1
  365. package/time-input/time-input.component.js +62 -66
  366. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +9 -10
  367. package/toast/toast.component.js +4 -7
  368. package/toggle/toggle/toggle.component.js +38 -42
  369. package/toggle/toggle-option/toggle-option.component.js +47 -54
  370. package/train/train-formation/train-formation.component.js +41 -43
  371. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
  372. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
  373. package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
  374. package/teaser-product-common-CpMAlYEp.js +0 -5
@@ -1,28 +1,27 @@
1
- import { __esDecorate as c, __runInitializers as m } from "tslib";
2
- import { ResizeController as u } from "@lit-labs/observers/resize-controller.js";
3
- import { css as v, LitElement as g, html as y } from "lit";
4
- import { customElement as f } from "lit/decorators.js";
5
- import { hostAttributes as _ } from "../../core/decorators.js";
6
- import { EventEmitter as d } from "../../core/eventing.js";
7
- const x = v`*,:before,:after{box-sizing:border-box}:host{--sbb-step-position: initial;--sbb-step-inset-block-start: unset;--sbb-step-opacity: 0;--sbb-step-display: none;--sbb-step-height: 0;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-step-animation-delay: 0;--sbb-step-color: var(--sbb-color-iron);display:contents}:host([data-selected]){--sbb-step-opacity: 1;--sbb-step-display: block;--sbb-step-height: fit-content;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-step-animation-delay: var(--sbb-step-animation-duration)}:host([data-orientation=horizontal]){--sbb-step-position: absolute;--sbb-step-inset-block-start: 0}:host([data-orientation=vertical]) .sbb-step--wrapper{margin-inline-start:var(--sbb-spacing-fixed-4x);opacity:0;height:0;transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}:host([data-selected][data-orientation=vertical]) .sbb-step--wrapper{opacity:1;height:var(--sbb-stepper-content-height);transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-stepper-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}.sbb-step{--sbb-text-font-size: var(--sbb-font-size-text-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);position:var(--sbb-step-position);width:100%;inset-block-start:var(--sbb-step-inset-block-start);opacity:var(--sbb-step-opacity);display:var(--sbb-step-display);height:var(--sbb-step-height);color:var(--sbb-step-color);transition-property:display,opacity;transition-duration:var(--sbb-step-animation-duration);transition-delay:var(--sbb-step-animation-delay);transition-timing-function:var(--sbb-animation-easing);transition-behavior:allow-discrete}@starting-style{.sbb-step{--sbb-step-opacity: 0}}`;
8
- let z = 0, L = (() => {
1
+ import { __esDecorate as d, __runInitializers as h } from "tslib";
2
+ import { ResizeController as c } from "@lit-labs/observers/resize-controller.js";
3
+ import { css as m, LitElement as u, html as v } from "lit";
4
+ import { customElement as g } from "lit/decorators.js";
5
+ import { hostAttributes as y } from "../../core/decorators.js";
6
+ import { EventEmitter as l } from "../../core/eventing.js";
7
+ const f = m`*,:before,:after{box-sizing:border-box}:host{--sbb-step-position: initial;--sbb-step-inset-block-start: unset;--sbb-step-opacity: 0;--sbb-step-display: none;--sbb-step-height: 0;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-step-animation-delay: 0;--sbb-step-color: var(--sbb-color-iron);display:contents}:host([data-selected]){--sbb-step-opacity: 1;--sbb-step-display: block;--sbb-step-height: fit-content;--sbb-step-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-step-animation-delay: var(--sbb-step-animation-duration)}:host([data-orientation=horizontal]){--sbb-step-position: absolute;--sbb-step-inset-block-start: 0}:host([data-orientation=vertical]) .sbb-step--wrapper{margin-inline-start:var(--sbb-spacing-fixed-4x);opacity:0;height:0;transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}:host([data-selected][data-orientation=vertical]) .sbb-step--wrapper{opacity:1;height:var(--sbb-stepper-content-height);transition:display var(--sbb-step-animation-duration) var(--sbb-animation-easing),height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing),opacity var(--sbb-step-animation-duration) var(--sbb-stepper-animation-duration) var(--sbb-animation-easing);transition-behavior:allow-discrete}.sbb-step{--sbb-text-font-size: var(--sbb-font-size-text-m);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);position:var(--sbb-step-position);width:100%;inset-block-start:var(--sbb-step-inset-block-start);opacity:var(--sbb-step-opacity);display:var(--sbb-step-display);height:var(--sbb-step-height);color:var(--sbb-step-color);transition-property:display,opacity;transition-duration:var(--sbb-step-animation-duration);transition-delay:var(--sbb-step-animation-delay);transition-timing-function:var(--sbb-animation-easing);transition-behavior:allow-discrete}@starting-style{.sbb-step{--sbb-step-opacity: 0}}`;
8
+ let _ = 0, C = (() => {
9
9
  var e;
10
- let h = [f("sbb-step"), _({
10
+ let p = [g("sbb-step"), y({
11
11
  slot: "step",
12
12
  role: "tabpanel"
13
- })], r, b = [], s, o = g;
14
- var a = (e = class extends o {
13
+ })], n, r = [], s, b = u;
14
+ var a = (e = class extends b {
15
15
  /** The label of the step. */
16
16
  get label() {
17
17
  return this._label;
18
18
  }
19
19
  constructor() {
20
- var t;
21
- super(), this._validate = new d(this, a.events.validate), this._resizeChange = new d(this, a.events.resizeChange, { bubbles: !0 }), this._stepper = null, this._label = null, this._stepResizeObserver = new u(this, {
20
+ super(), this._validate = new l(this, a.events.validate), this._resizeChange = new l(this, a.events.resizeChange, { bubbles: !0 }), this._stepper = null, this._label = null, this._stepResizeObserver = new c(this, {
22
21
  target: null,
23
22
  skipInitial: !0,
24
23
  callback: () => setTimeout(() => this._onStepElementResize())
25
- }), (t = this.addEventListener) == null || t.call(this, "click", (n) => this._handleClick(n));
24
+ }), this.addEventListener?.("click", (t) => this._handleClick(t));
26
25
  }
27
26
  /**
28
27
  * Selects and configures the step.
@@ -54,9 +53,8 @@ let z = 0, L = (() => {
54
53
  }
55
54
  /** Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes. */
56
55
  _handleClick(t) {
57
- var l, p;
58
- const n = t.composedPath().filter((i) => i instanceof window.HTMLElement);
59
- n.some((i) => this._isGoNextElement(i)) ? (l = this._stepper) == null || l.next() : n.some((i) => this._isGoPreviousElement(i)) && ((p = this._stepper) == null || p.previous());
56
+ const o = t.composedPath().filter((i) => i instanceof window.HTMLElement);
57
+ o.some((i) => this._isGoNextElement(i)) ? this._stepper?.next() : o.some((i) => this._isGoPreviousElement(i)) && this._stepper?.previous();
60
58
  }
61
59
  _isGoNextElement(t) {
62
60
  return t.hasAttribute("sbb-stepper-next") && !t.hasAttribute("disabled");
@@ -74,7 +72,7 @@ let z = 0, L = (() => {
74
72
  return t;
75
73
  }
76
74
  connectedCallback() {
77
- super.connectedCallback(), this.id || (this.id = `sbb-step-${z++}`), this._stepper = this.closest("sbb-stepper"), this._label = this._getStepLabel();
75
+ super.connectedCallback(), this.id ||= `sbb-step-${_++}`, this._stepper = this.closest("sbb-stepper"), this._label = this._getStepLabel();
78
76
  }
79
77
  firstUpdated(t) {
80
78
  super.firstUpdated(t), this.updateComplete.then(() => {
@@ -82,7 +80,7 @@ let z = 0, L = (() => {
82
80
  });
83
81
  }
84
82
  render() {
85
- return y`
83
+ return v`
86
84
  <div class="sbb-step--wrapper">
87
85
  <div class="sbb-step">
88
86
  <slot></slot>
@@ -91,14 +89,14 @@ let z = 0, L = (() => {
91
89
  `;
92
90
  }
93
91
  }, s = e, (() => {
94
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
95
- c(null, r = { value: s }, h, { kind: "class", name: s.name, metadata: t }, null, b), a = s = r.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
96
- })(), e.styles = x, e.events = {
92
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
93
+ d(null, n = { value: s }, p, { kind: "class", name: s.name, metadata: t }, null, r), a = s = n.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
94
+ })(), e.styles = f, e.events = {
97
95
  validate: "validate",
98
96
  resizeChange: "resizeChange"
99
- }, m(s, b), e);
97
+ }, h(s, r), e);
100
98
  return a = s;
101
99
  })();
102
100
  export {
103
- L as SbbStepElement
101
+ C as SbbStepElement
104
102
  };
@@ -19,8 +19,7 @@ let g = 0, E = (() => {
19
19
  return this._step;
20
20
  }
21
21
  constructor() {
22
- var t;
23
- super(), this._stepper = null, this._step = null, (t = this.addEventListener) == null || t.call(this, "click", () => {
22
+ super(), this._stepper = null, this._step = null, this.addEventListener?.("click", () => {
24
23
  this._stepper && this._step && (this._stepper.selected = this._step);
25
24
  });
26
25
  }
@@ -31,7 +30,7 @@ let g = 0, E = (() => {
31
30
  return t;
32
31
  }
33
32
  connectedCallback() {
34
- super.connectedCallback(), this.id || (this.id = `sbb-step-label-${g++}`), this.internals.ariaSelected = "false", this._stepper = this.closest("sbb-stepper"), this._step = this._getStep(), this.toggleAttribute("data-disabled", this.hasAttribute("disabled"));
33
+ super.connectedCallback(), this.id ||= `sbb-step-label-${g++}`, this.internals.ariaSelected = "false", this._stepper = this.closest("sbb-stepper"), this._step = this._getStep(), this.toggleAttribute("data-disabled", this.hasAttribute("disabled"));
35
34
  }
36
35
  firstUpdated(t) {
37
36
  super.firstUpdated(t), this.step && this.setAttribute("aria-controls", this.step.id);
@@ -1,76 +1,74 @@
1
- var C = (i) => {
2
- throw TypeError(i);
1
+ var T = (s) => {
2
+ throw TypeError(s);
3
3
  };
4
- var H = (i, r, a) => r.has(i) || C("Cannot " + a);
5
- var g = (i, r, a) => (H(i, r, "read from private field"), a ? a.call(i) : r.get(i)), z = (i, r, a) => r.has(i) ? C("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, a), h = (i, r, a, o) => (H(i, r, "write to private field"), o ? o.call(i, a) : r.set(i, a), a);
6
- import { __esDecorate as c, __runInitializers as d } from "tslib";
7
- import { IntersectionController as D } from "@lit-labs/observers/intersection-controller.js";
8
- import { css as U, LitElement as q, html as B } from "lit";
9
- import { customElement as N, property as _ } from "lit/decorators.js";
10
- import { isArrowKeyPressed as $, getNextElementIndex as j } from "../../core/a11y.js";
11
- import { forceType as K } from "../../core/decorators.js";
12
- import { breakpoints as P, isLean as V, isBreakpoint as W } from "../../core/dom.js";
13
- import { SbbHydrationMixin as G } from "../../core/mixins.js";
14
- const J = U`*,:before,:after{box-sizing:border-box}:host{--sbb-stepper-orientation: row;--sbb-stepper-border-width: var(--sbb-border-width-1x);--sbb-stepper-marker-size: 0;--sbb-stepper-marker-width: var(--sbb-border-width-3x);--sbb-stepper-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-stepper-marker-color: var(--sbb-color-charcoal);display:block;position:relative;counter-reset:step-label}@media (forced-colors: active){:host{--sbb-stepper-marker-color: ButtonText}}:host([data-disable-animation]){--sbb-disable-animation-duration: 0s}:host([orientation=vertical]){--sbb-stepper-orientation: column}.sbb-stepper{width:100%}.sbb-stepper__labels{display:flex;flex-direction:var(--sbb-stepper-orientation);position:relative;justify-content:space-between;margin-block-end:var(--sbb-spacing-responsive-m)}.sbb-stepper__labels:before{content:"";position:absolute;inset-inline-start:calc(var(--sbb-stepper-border-width) * -1);background-color:var(--sbb-stepper-marker-color)}:host([orientation=horizontal]) .sbb-stepper__labels{gap:var(--sbb-spacing-fixed-4x);padding-block-end:var(--sbb-spacing-fixed-4x);border-block-end:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=horizontal]) .sbb-stepper__labels:before{inset-block-end:calc(var(--sbb-stepper-border-width) * -1);height:var(--sbb-stepper-marker-width);width:var(--sbb-stepper-marker-size);transition:width var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}:host([orientation=vertical]) .sbb-stepper__labels{padding-inline-start:var(--sbb-spacing-fixed-4x);border-inline-start:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=vertical]) .sbb-stepper__labels:before{inset-block-start:0;width:var(--sbb-stepper-marker-width);height:var(--sbb-stepper-marker-size);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}.sbb-stepper__steps{position:relative}:host([orientation=horizontal]) .sbb-stepper__steps{height:var(--sbb-stepper-content-height);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}::slotted(sbb-step-label):before{content:counter(step-label);counter-increment:step-label}`, R = 150;
15
- let le = (() => {
16
- var b, p, u, l;
17
- let i = [N("sbb-stepper")], r, a = [], o, x = G(q), f = [], v, k = [], S = [], y, I, w = [], E = [], A, F = [], L = [], O, T;
18
- return l = class extends x {
4
+ var M = (s, r, a) => r.has(s) || T("Cannot " + a);
5
+ var f = (s, r, a) => (M(s, r, "read from private field"), a ? a.call(s) : r.get(s)), m = (s, r, a) => r.has(s) ? T("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, a), d = (s, r, a, n) => (M(s, r, "write to private field"), n ? n.call(s, a) : r.set(s, a), a);
6
+ import { __esDecorate as h, __runInitializers as o } from "tslib";
7
+ import { IntersectionController as H } from "@lit-labs/observers/intersection-controller.js";
8
+ import { css as R, LitElement as D, html as U } from "lit";
9
+ import { customElement as q, property as u } from "lit/decorators.js";
10
+ import { isArrowKeyPressed as B, getNextElementIndex as N } from "../../core/a11y.js";
11
+ import { forceType as $ } from "../../core/decorators.js";
12
+ import { breakpoints as j, isLean as K, isBreakpoint as P } from "../../core/dom.js";
13
+ import { SbbHydrationMixin as V } from "../../core/mixins.js";
14
+ const W = R`*,:before,:after{box-sizing:border-box}:host{--sbb-stepper-orientation: row;--sbb-stepper-border-width: var(--sbb-border-width-1x);--sbb-stepper-marker-size: 0;--sbb-stepper-marker-width: var(--sbb-border-width-3x);--sbb-stepper-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-stepper-marker-color: var(--sbb-color-charcoal);display:block;position:relative;counter-reset:step-label}@media (forced-colors: active){:host{--sbb-stepper-marker-color: ButtonText}}:host([data-disable-animation]){--sbb-disable-animation-duration: 0s}:host([orientation=vertical]){--sbb-stepper-orientation: column}.sbb-stepper{width:100%}.sbb-stepper__labels{display:flex;flex-direction:var(--sbb-stepper-orientation);position:relative;justify-content:space-between;margin-block-end:var(--sbb-spacing-responsive-m)}.sbb-stepper__labels:before{content:"";position:absolute;inset-inline-start:calc(var(--sbb-stepper-border-width) * -1);background-color:var(--sbb-stepper-marker-color)}:host([orientation=horizontal]) .sbb-stepper__labels{gap:var(--sbb-spacing-fixed-4x);padding-block-end:var(--sbb-spacing-fixed-4x);border-block-end:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=horizontal]) .sbb-stepper__labels:before{inset-block-end:calc(var(--sbb-stepper-border-width) * -1);height:var(--sbb-stepper-marker-width);width:var(--sbb-stepper-marker-size);transition:width var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}:host([orientation=vertical]) .sbb-stepper__labels{padding-inline-start:var(--sbb-spacing-fixed-4x);border-inline-start:var(--sbb-stepper-border-width) solid var(--sbb-color-cloud)}:host([orientation=vertical]) .sbb-stepper__labels:before{inset-block-start:0;width:var(--sbb-stepper-marker-width);height:var(--sbb-stepper-marker-size);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}.sbb-stepper__steps{position:relative}:host([orientation=horizontal]) .sbb-stepper__steps{height:var(--sbb-stepper-content-height);transition:height var(--sbb-stepper-animation-duration) var(--sbb-animation-easing)}::slotted(sbb-step-label):before{content:counter(step-label);counter-increment:step-label}`, C = 150;
15
+ let re = (() => {
16
+ var c, b, p, l;
17
+ let s = [q("sbb-stepper")], r, a = [], n, z = V(D), _ = [], x, v = [], k = [], S, y, I = [], w = [], E, A = [], F = [], L, O;
18
+ return l = class extends z {
19
19
  constructor() {
20
- var e, t;
21
20
  super();
22
- z(this, b);
23
- z(this, p);
24
- z(this, u);
25
- this._observer = (d(this, f), new D(this, {
21
+ m(this, c);
22
+ m(this, b);
23
+ m(this, p);
24
+ this._observer = (o(this, _), new H(this, {
26
25
  target: null,
27
- callback: (s) => {
28
- s.forEach((n) => {
29
- n.intersectionRatio > 0 && (this._setStepperHeight(this.selected), this._setMarkerSize());
26
+ callback: (e) => {
27
+ e.forEach((t) => {
28
+ t.intersectionRatio > 0 && (this._setStepperHeight(this.selected), this._setMarkerSize());
30
29
  });
31
30
  }
32
- })), h(this, b, d(this, k, !1)), this._horizontalFrom = (d(this, S), null), h(this, p, d(this, w, "horizontal")), h(this, u, (d(this, E), d(this, F, V() ? "s" : "m"))), this._loaded = (d(this, L), !1), this._resizeObserverTimeout = null, this._onStepperResize = () => {
33
- this._checkOrientation(), this._setStepperHeight(this.selected), clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.toggleAttribute("data-disable-animation", !1), R);
34
- }, (e = this.addEventListener) == null || e.call(this, "keydown", (s) => this._handleKeyDown(s)), (t = this.addEventListener) == null || t.call(this, "resizeChange", (s) => this._onSelectedStepResize(s));
31
+ })), d(this, c, o(this, v, !1)), this._horizontalFrom = (o(this, k), null), d(this, b, o(this, I, "horizontal")), d(this, p, (o(this, w), o(this, A, K() ? "s" : "m"))), this._loaded = (o(this, F), !1), this._resizeObserverTimeout = null, this._onStepperResize = () => {
32
+ this._checkOrientation(), this._setStepperHeight(this.selected), clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.toggleAttribute("data-disable-animation", !1), C);
33
+ }, this.addEventListener?.("keydown", (e) => this._handleKeyDown(e)), this.addEventListener?.("resizeChange", (e) => this._onSelectedStepResize(e));
35
34
  }
36
35
  /** If set to true, only the current and previous labels can be clicked and selected. */
37
36
  get linear() {
38
- return g(this, b);
37
+ return f(this, c);
39
38
  }
40
39
  set linear(e) {
41
- h(this, b, e);
40
+ d(this, c, e);
42
41
  }
43
42
  /** Overrides the behaviour of `orientation` property. */
44
43
  set horizontalFrom(e) {
45
- this._horizontalFrom = e && P.includes(e) ? e : null, this._horizontalFrom && this._loaded && this._checkOrientation();
44
+ this._horizontalFrom = e && j.includes(e) ? e : null, this._horizontalFrom && this._loaded && this._checkOrientation();
46
45
  }
47
46
  get horizontalFrom() {
48
47
  return this._horizontalFrom;
49
48
  }
50
49
  /** Steps orientation, either horizontal or vertical. */
51
50
  get orientation() {
52
- return g(this, p);
51
+ return f(this, b);
53
52
  }
54
53
  set orientation(e) {
55
- h(this, p, e);
54
+ d(this, b, e);
56
55
  }
57
56
  /**
58
57
  * Size variant, either s or m.
59
58
  * @default 'm' / 's' (lean)
60
59
  */
61
60
  get size() {
62
- return g(this, u);
61
+ return f(this, p);
63
62
  }
64
63
  set size(e) {
65
- h(this, u, e);
64
+ d(this, p, e);
66
65
  }
67
66
  /** The currently selected step. */
68
67
  set selected(e) {
69
68
  this._loaded && this._select(e);
70
69
  }
71
70
  get selected() {
72
- var e;
73
- return ((e = this.querySelector) == null ? void 0 : e.call(this, "sbb-step[data-selected]")) ?? null;
71
+ return this.querySelector?.("sbb-step[data-selected]") ?? null;
74
72
  }
75
73
  /** The currently selected step index. */
76
74
  set selectedIndex(e) {
@@ -81,14 +79,10 @@ let le = (() => {
81
79
  }
82
80
  /** The steps of the stepper. */
83
81
  get steps() {
84
- var e;
85
- return Array.from(((e = this.querySelectorAll) == null ? void 0 : e.call(this, "sbb-step")) ?? []);
82
+ return Array.from(this.querySelectorAll?.("sbb-step") ?? []);
86
83
  }
87
84
  get _enabledSteps() {
88
- return this.steps.filter((e) => {
89
- var t;
90
- return !((t = e.label) != null && t.hasAttribute("disabled"));
91
- });
85
+ return this.steps.filter((e) => !e.label?.hasAttribute("disabled"));
92
86
  }
93
87
  /** Selects the next step. */
94
88
  next() {
@@ -100,24 +94,21 @@ let le = (() => {
100
94
  }
101
95
  /** Resets the form in which the stepper is nested or every form of each step, if any. */
102
96
  reset() {
103
- var t, s, n;
104
97
  const e = this.closest("form");
105
- e ? e.reset() : this.querySelectorAll("form").forEach((m) => m.reset()), this.selectedIndex = 0, ((t = document.activeElement) == null ? void 0 : t.closest("sbb-stepper")) === this && ((n = (s = this.selected) == null ? void 0 : s.label) == null || n.focus());
98
+ e ? e.reset() : this.querySelectorAll("form").forEach((t) => t.reset()), this.selectedIndex = 0, document.activeElement?.closest("sbb-stepper") === this && this.selected?.label?.focus();
106
99
  }
107
100
  _isValidStep(e) {
108
- var t;
109
- if (!e || !this.linear && ((t = e.label) != null && t.hasAttribute("disabled")))
101
+ if (!e || !this.linear && e.label?.hasAttribute("disabled"))
110
102
  return !1;
111
103
  if (this.linear && !this.selected)
112
104
  return e === this.steps[0];
113
105
  if (this.linear && this.selectedIndex !== null) {
114
- const s = this.steps.indexOf(e);
115
- return s < this.selectedIndex || s === this.selectedIndex + 1;
106
+ const t = this.steps.indexOf(e);
107
+ return t < this.selectedIndex || t === this.selectedIndex + 1;
116
108
  }
117
109
  return !0;
118
110
  }
119
111
  _select(e) {
120
- var n, m, M;
121
112
  if (!this._isValidStep(e))
122
113
  return;
123
114
  const t = {
@@ -128,8 +119,7 @@ let le = (() => {
128
119
  };
129
120
  if (this.selected && !this.selected.validate(t))
130
121
  return;
131
- const s = this.selected;
132
- s == null || s.deselect(), e.select(), this._setMarkerSize(), this._setStepperHeight(e), this._configureLinearMode(), ((n = document.activeElement) == null ? void 0 : n.closest("sbb-stepper")) === this && ((M = (m = this.selected) == null ? void 0 : m.label) == null || M.focus());
122
+ this.selected?.deselect(), e.select(), this._setMarkerSize(), this._setStepperHeight(e), this._configureLinearMode(), document.activeElement?.closest("sbb-stepper") === this && this.selected?.label?.focus();
133
123
  }
134
124
  _setMarkerSize() {
135
125
  if (!this._loaded || !this.selected || this.selectedIndex === void 0 || !this.selected.label)
@@ -141,10 +131,9 @@ let le = (() => {
141
131
  * Sets the stepper height based on the height of the provided step.
142
132
  */
143
133
  _setStepperHeight(e) {
144
- var t;
145
134
  if (e && e.shadowRoot) {
146
- const s = e.shadowRoot.querySelector(".sbb-step");
147
- s && ((t = this.style) == null || t.setProperty("--sbb-stepper-content-height", `${s.offsetHeight}px`));
135
+ const t = e.shadowRoot.querySelector(".sbb-step");
136
+ t && this.style?.setProperty("--sbb-stepper-content-height", `${t.offsetHeight}px`);
148
137
  }
149
138
  }
150
139
  _calculateLabelOffsetTop() {
@@ -163,23 +152,21 @@ let le = (() => {
163
152
  }
164
153
  _configure() {
165
154
  const e = this.steps;
166
- e.forEach((t) => t.configure(this._loaded)), e.filter((t) => t.label).map((t) => t.label).forEach((t, s, n) => {
167
- t.configure(s + 1, n.length, this._loaded);
155
+ e.forEach((t) => t.configure(this._loaded)), e.filter((t) => t.label).map((t) => t.label).forEach((t, i, g) => {
156
+ t.configure(i + 1, g.length, this._loaded);
168
157
  }), this._select(this.selected || this._enabledSteps[0]), this._proxySize();
169
158
  }
170
159
  _updateLabels() {
171
160
  this.steps.forEach((e) => {
172
- var t;
173
- e.slot = this.orientation === "horizontal" ? "step" : "step-label", e.setAttribute("data-orientation", this.orientation), (t = e.label) == null || t.setAttribute("data-orientation", this.orientation);
161
+ e.slot = this.orientation === "horizontal" ? "step" : "step-label", e.setAttribute("data-orientation", this.orientation), e.label?.setAttribute("data-orientation", this.orientation);
174
162
  });
175
163
  }
176
164
  _checkOrientation() {
177
- this.horizontalFrom && (this.orientation = W(this.horizontalFrom) ? "horizontal" : "vertical", this._updateLabels()), setTimeout(() => this._setMarkerSize(), 0);
165
+ this.horizontalFrom && (this.orientation = P(this.horizontalFrom) ? "horizontal" : "vertical", this._updateLabels()), setTimeout(() => this._setMarkerSize(), 0);
178
166
  }
179
167
  _configureLinearMode() {
180
168
  this.steps.forEach((e, t) => {
181
- var s;
182
- (s = e.label) == null || s.toggleAttribute("disabled", this.linear && t > this.selectedIndex || !this.linear && e.label.hasAttribute("data-disabled"));
169
+ e.label?.toggleAttribute("disabled", this.linear && t > this.selectedIndex || !this.linear && e.label.hasAttribute("data-disabled"));
183
170
  });
184
171
  }
185
172
  connectedCallback() {
@@ -191,27 +178,26 @@ let le = (() => {
191
178
  super.disconnectedCallback(), window.removeEventListener("resize", this._onStepperResize);
192
179
  }
193
180
  async firstUpdated(e) {
194
- super.firstUpdated(e), await this.updateComplete, this._loaded = !0, this.selectedIndex = this.linear ? 0 : Number(this.getAttribute("selected-index")) || 0, this._observer.observe(this), this._checkOrientation(), setTimeout(() => this.toggleAttribute("data-disable-animation", !1), R);
181
+ super.firstUpdated(e), await this.updateComplete, this._loaded = !0, this.selectedIndex = this.linear ? 0 : Number(this.getAttribute("selected-index")) || 0, this._observer.observe(this), this._checkOrientation(), setTimeout(() => this.toggleAttribute("data-disable-animation", !1), C);
195
182
  }
196
183
  willUpdate(e) {
197
184
  super.willUpdate(e), e.has("orientation") && !this.horizontalFrom && (this._updateLabels(), this._setMarkerSize()), e.has("linear") && this._loaded && this._configureLinearMode(), e.has("size") && (this._proxySize(), this._setMarkerSize());
198
185
  }
199
186
  _proxySize() {
200
187
  this.steps.forEach((e) => {
201
- var t;
202
- (t = e.label) == null || t.setAttribute("data-size", this.size);
188
+ e.label?.setAttribute("data-size", this.size);
203
189
  });
204
190
  }
205
191
  _handleKeyDown(e) {
206
192
  const t = this._enabledSteps;
207
193
  if (!(!t || // don't trap nested handling
208
- e.target !== this && e.target.parentElement !== this) && $(e)) {
209
- const s = t.indexOf(this.selected), n = j(e, s, t.length);
210
- this._select(t[n]), e.preventDefault();
194
+ e.target !== this && e.target.parentElement !== this) && B(e)) {
195
+ const i = t.indexOf(this.selected), g = N(e, i, t.length);
196
+ this._select(t[g]), e.preventDefault();
211
197
  }
212
198
  }
213
199
  render() {
214
- return B`
200
+ return U`
215
201
  <div class="sbb-stepper">
216
202
  <div class="sbb-stepper__labels" role="tablist">
217
203
  <slot name="step-label" @slotchange=${this._configure}></slot>
@@ -222,23 +208,23 @@ let le = (() => {
222
208
  </div>
223
209
  `;
224
210
  }
225
- }, b = new WeakMap(), p = new WeakMap(), u = new WeakMap(), o = l, (() => {
226
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
227
- v = [K(), _({ type: Boolean })], y = [_({ attribute: "horizontal-from", reflect: !0 })], I = [_({ reflect: !0 })], A = [_({ reflect: !0 })], O = [_({ attribute: !1 })], T = [_({ attribute: "selected-index", type: Number })], c(l, null, v, { kind: "accessor", name: "linear", static: !1, private: !1, access: { has: (t) => "linear" in t, get: (t) => t.linear, set: (t, s) => {
228
- t.linear = s;
229
- } }, metadata: e }, k, S), c(l, null, y, { kind: "setter", name: "horizontalFrom", static: !1, private: !1, access: { has: (t) => "horizontalFrom" in t, set: (t, s) => {
230
- t.horizontalFrom = s;
231
- } }, metadata: e }, null, f), c(l, null, I, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, s) => {
232
- t.orientation = s;
233
- } }, metadata: e }, w, E), c(l, null, A, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, s) => {
234
- t.size = s;
235
- } }, metadata: e }, F, L), c(l, null, O, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, s) => {
236
- t.selected = s;
237
- } }, metadata: e }, null, f), c(l, null, T, { kind: "setter", name: "selectedIndex", static: !1, private: !1, access: { has: (t) => "selectedIndex" in t, set: (t, s) => {
238
- t.selectedIndex = s;
239
- } }, metadata: e }, null, f), c(null, r = { value: o }, i, { kind: "class", name: o.name, metadata: e }, null, a), o = r.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
240
- })(), l.styles = J, d(o, a), o;
211
+ }, c = new WeakMap(), b = new WeakMap(), p = new WeakMap(), n = l, (() => {
212
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
213
+ x = [$(), u({ type: Boolean })], S = [u({ attribute: "horizontal-from", reflect: !0 })], y = [u({ reflect: !0 })], E = [u({ reflect: !0 })], L = [u({ attribute: !1 })], O = [u({ attribute: "selected-index", type: Number })], h(l, null, x, { kind: "accessor", name: "linear", static: !1, private: !1, access: { has: (t) => "linear" in t, get: (t) => t.linear, set: (t, i) => {
214
+ t.linear = i;
215
+ } }, metadata: e }, v, k), h(l, null, S, { kind: "setter", name: "horizontalFrom", static: !1, private: !1, access: { has: (t) => "horizontalFrom" in t, set: (t, i) => {
216
+ t.horizontalFrom = i;
217
+ } }, metadata: e }, null, _), h(l, null, y, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, i) => {
218
+ t.orientation = i;
219
+ } }, metadata: e }, I, w), h(l, null, E, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, i) => {
220
+ t.size = i;
221
+ } }, metadata: e }, A, F), h(l, null, L, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, i) => {
222
+ t.selected = i;
223
+ } }, metadata: e }, null, _), h(l, null, O, { kind: "setter", name: "selectedIndex", static: !1, private: !1, access: { has: (t) => "selectedIndex" in t, set: (t, i) => {
224
+ t.selectedIndex = i;
225
+ } }, metadata: e }, null, _), h(null, r = { value: n }, s, { kind: "class", name: n.name, metadata: e }, null, a), n = r.value, e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
226
+ })(), l.styles = W, o(n, a), n;
241
227
  })();
242
228
  export {
243
- le as SbbStepperElement
229
+ re as SbbStepperElement
244
230
  };
@@ -2,20 +2,19 @@ var h = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
4
  var d = (t, s, l) => s.has(t) || h("Cannot " + l);
5
- var p = (t, s, l) => (d(t, s, "read from private field"), l ? l.call(t) : s.get(t)), m = (t, s, l) => s.has(t) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, l), v = (t, s, l, i) => (d(t, s, "write to private field"), i ? i.call(t, l) : s.set(t, l), l);
5
+ var p = (t, s, l) => (d(t, s, "read from private field"), l ? l.call(t) : s.get(t)), m = (t, s, l) => s.has(t) ? h("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, l), v = (t, s, l, a) => (d(t, s, "write to private field"), a ? a.call(t, l) : s.set(t, l), l);
6
6
  import { __esDecorate as _, __runInitializers as c } from "tslib";
7
7
  import { ResizeController as S } from "@lit-labs/observers/resize-controller.js";
8
8
  import { css as w, LitElement as y, isServer as g, html as x } from "lit";
9
9
  import { customElement as L, property as z } from "lit/decorators.js";
10
10
  import { forceType as C } from "../../core/decorators.js";
11
11
  import { SbbNegativeMixin as O } from "../../core/mixins.js";
12
- const E = w`*,:before,:after{box-sizing:border-box}:host{display:block;overflow:auto}:host(:not(.sbb-table-wrapper-offset-none)){padding-bottom:var(--sbb-spacing-fixed-1x)}:host(: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)}::slotted(.sbb-table){width:100%}`;
12
+ const E = w`*,:before,:after{box-sizing:border-box}:host{display:block;overflow:auto}:host(: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)}::slotted(.sbb-table){width:100%}`;
13
13
  let B = (() => {
14
- var o, r;
15
- let t = [L("sbb-table-wrapper")], s, l = [], i, b = O(y), n, f = [], u = [];
16
- return r = class extends b {
14
+ var o, i;
15
+ let t = [L("sbb-table-wrapper")], s, l = [], a, b = O(y), n, f = [], u = [];
16
+ return i = class extends b {
17
17
  constructor() {
18
- var a;
19
18
  super();
20
19
  m(this, o, c(this, f, !1));
21
20
  c(this, u);
@@ -23,7 +22,7 @@ let B = (() => {
23
22
  e.role = "section", this.addController(new S(this, {
24
23
  skipInitial: !0,
25
24
  callback: () => this._checkHorizontalScrollbarOffset()
26
- })), (a = this.addEventListener) == null || a.call(this, "scroll", () => this._checkHorizontalScrollbarOffset(), {
25
+ })), this.addEventListener?.("scroll", () => this._checkHorizontalScrollbarOffset(), {
27
26
  passive: !0
28
27
  });
29
28
  }
@@ -54,18 +53,18 @@ let B = (() => {
54
53
  _calculateScrollOffset() {
55
54
  if (this.scrollWidth === this.offsetWidth)
56
55
  return "none";
57
- const e = this.scrollLeft === 0, a = this.scrollWidth - this.scrollLeft - this.offsetWidth <= 1;
58
- return e ? a ? "none" : "right" : a ? "left" : "both";
56
+ const e = this.scrollLeft === 0, r = this.scrollWidth - this.scrollLeft - this.offsetWidth <= 1;
57
+ return e ? r ? "none" : "right" : r ? "left" : "both";
59
58
  }
60
59
  render() {
61
60
  return x`<slot></slot>`;
62
61
  }
63
- }, o = new WeakMap(), i = r, (() => {
62
+ }, o = new WeakMap(), a = i, (() => {
64
63
  const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
65
- n = [C(), z({ reflect: !0, type: Boolean })], _(r, null, n, { kind: "accessor", name: "focusable", static: !1, private: !1, access: { has: (a) => "focusable" in a, get: (a) => a.focusable, set: (a, k) => {
66
- a.focusable = k;
67
- } }, metadata: e }, f, u), _(null, s = { value: i }, t, { kind: "class", name: i.name, metadata: e }, null, l), i = s.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
68
- })(), r.styles = E, c(i, l), i;
64
+ n = [C(), z({ reflect: !0, type: Boolean })], _(i, null, n, { kind: "accessor", name: "focusable", static: !1, private: !1, access: { has: (r) => "focusable" in r, get: (r) => r.focusable, set: (r, k) => {
65
+ r.focusable = k;
66
+ } }, metadata: e }, f, u), _(null, s = { value: a }, t, { kind: "class", name: a.name, metadata: e }, null, l), a = s.value, e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
67
+ })(), i.styles = E, c(a, l), a;
69
68
  })();
70
69
  export {
71
70
  B as SbbTableWrapperElement
package/table.css CHANGED
@@ -19,7 +19,6 @@
19
19
  .sbb-table-xs {
20
20
  --sbb-table-border: var(--sbb-border-width-1x) solid var(--sbb-table-border-color);
21
21
  --sbb-table-border-color: var(--sbb-color-cloud);
22
- --sbb-table-border-radius: var(--sbb-border-radius-4x);
23
22
  --sbb-table-background-color: var(--sbb-color-white);
24
23
  --sbb-table-row-striped-color: var(--sbb-color-milk);
25
24
  --sbb-table-color: inherit;
@@ -45,18 +44,6 @@
45
44
  .sbb-table-xs thead > tr:first-of-type > th {
46
45
  border-block-start: var(--sbb-table-border);
47
46
  }
48
- .sbb-table thead > tr:first-of-type > th:first-of-type,
49
- .sbb-table-m thead > tr:first-of-type > th:first-of-type,
50
- .sbb-table-s thead > tr:first-of-type > th:first-of-type,
51
- .sbb-table-xs thead > tr:first-of-type > th:first-of-type {
52
- border-start-start-radius: var(--sbb-table-border-radius);
53
- }
54
- .sbb-table thead > tr:first-of-type > th:last-of-type,
55
- .sbb-table-m thead > tr:first-of-type > th:last-of-type,
56
- .sbb-table-s thead > tr:first-of-type > th:last-of-type,
57
- .sbb-table-xs thead > tr:first-of-type > th:last-of-type {
58
- border-start-end-radius: var(--sbb-table-border-radius);
59
- }
60
47
  .sbb-table thead > tr > th,
61
48
  .sbb-table-m thead > tr > th,
62
49
  .sbb-table-s thead > tr > th,
@@ -102,18 +89,6 @@
102
89
  .sbb-table-xs tbody > tr > td:first-of-type {
103
90
  border-inline-start: var(--sbb-table-border);
104
91
  }
105
- .sbb-table tbody > tr:last-of-type > td:first-of-type,
106
- .sbb-table-m tbody > tr:last-of-type > td:first-of-type,
107
- .sbb-table-s tbody > tr:last-of-type > td:first-of-type,
108
- .sbb-table-xs tbody > tr:last-of-type > td:first-of-type {
109
- border-end-start-radius: var(--sbb-table-border-radius);
110
- }
111
- .sbb-table tbody > tr:last-of-type > td:last-of-type,
112
- .sbb-table-m tbody > tr:last-of-type > td:last-of-type,
113
- .sbb-table-s tbody > tr:last-of-type > td:last-of-type,
114
- .sbb-table-xs tbody > tr:last-of-type > td:last-of-type {
115
- border-end-end-radius: var(--sbb-table-border-radius);
116
- }
117
92
  .sbb-table caption,
118
93
  .sbb-table-m caption,
119
94
  .sbb-table-s caption,