@sbb-esta/lyne-elements 2.11.0 → 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 (379) 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/styles/mixins/typo.scss +0 -1
  61. package/core/testing/event-spy.js +2 -4
  62. package/core/testing/wait-for-image-ready.js +8 -9
  63. package/core/testing/wait-for-render.js +8 -9
  64. package/custom-elements.json +2 -2
  65. package/date-input/date-input.component.js +2 -4
  66. package/datepicker/common/datepicker-association-controllers.js +21 -24
  67. package/datepicker/common/datepicker-button.js +53 -57
  68. package/datepicker/datepicker/datepicker.component.js +82 -95
  69. package/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  70. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  71. package/datepicker/datepicker-toggle/datepicker-toggle.component.js +74 -81
  72. package/development/accordion/accordion.component.js +4 -7
  73. package/development/action-group/action-group.component.js +3 -5
  74. package/development/alert/alert/alert.component.js +2 -3
  75. package/development/alert/alert-group/alert-group.component.js +2 -3
  76. package/development/autocomplete/autocomplete-base-element.js +19 -30
  77. package/development/autocomplete/autocomplete.component.js +7 -12
  78. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
  79. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
  80. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
  81. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
  82. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
  83. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
  84. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
  85. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
  86. package/development/button/accent-button/accent-button.component.js +1 -1
  87. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  88. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  89. package/development/button/button/button.component.js +1 -1
  90. package/development/button/button-link/button-link.component.js +1 -1
  91. package/development/button/button-static/button-static.component.js +1 -1
  92. package/development/button/common/button-common.js +1 -1
  93. package/development/button/mini-button/mini-button.component.js +1 -1
  94. package/development/button/mini-button-group/mini-button-group.component.js +2 -3
  95. package/development/button/secondary-button/secondary-button.component.js +1 -1
  96. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  97. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  98. package/development/button/transparent-button/transparent-button.component.js +1 -1
  99. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  100. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  101. package/development/calendar/calendar.component.js +9 -14
  102. package/development/card/card/card.component.js +1 -1
  103. package/development/card/card-badge/card-badge.component.js +1 -1
  104. package/development/card/card-button/card-button.component.js +1 -1
  105. package/development/card/card-link/card-link.component.js +1 -1
  106. package/development/card/common/card-action-common.js +3 -5
  107. package/development/checkbox/checkbox/checkbox.component.js +2 -5
  108. package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
  109. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
  110. package/development/checkbox/common/checkbox-common.js +3 -5
  111. package/development/chip/chip/chip.component.js +1 -1
  112. package/development/chip/chip-group/chip-group.component.js +15 -26
  113. package/development/chip-label/chip-label.component.js +1 -1
  114. package/development/clock/clock.component.js +23 -33
  115. package/development/container/container/container.component.js +2 -3
  116. package/development/container/sticky-bar/sticky-bar.component.js +2 -3
  117. package/development/core/a11y/arrow-navigation.js +1 -1
  118. package/development/core/a11y/fake-event-detection.js +1 -1
  119. package/development/core/a11y/focus-trap-controller.js +6 -9
  120. package/development/core/a11y/focus-visible-within-controller.js +1 -1
  121. package/development/core/a11y/focus.js +8 -10
  122. package/development/core/a11y/input-modality-detector.js +2 -3
  123. package/development/core/a11y/interactivity-checker.js +2 -2
  124. package/development/core/base-elements/action-base-element.js +2 -3
  125. package/development/core/base-elements/button-base-element.js +6 -11
  126. package/development/core/base-elements/link-base-element.js +4 -7
  127. package/development/core/base-elements/open-close-base-element.js +2 -2
  128. package/development/core/config/config.js +1 -1
  129. package/development/core/controllers/connected-abort-controller.js +3 -5
  130. package/development/core/controllers/escapable-overlay-controller.js +3 -5
  131. package/development/core/controllers/id-reference-controller.js +2 -3
  132. package/development/core/controllers/inert-controller.js +4 -6
  133. package/development/core/controllers/language-controller.js +1 -1
  134. package/development/core/controllers/media-matchers-controller.js +1 -1
  135. package/development/core/controllers/slot-state-controller.js +8 -18
  136. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  137. package/development/core/datetime/date-adapter.js +5 -5
  138. package/development/core/datetime/native-date-adapter.js +2 -2
  139. package/development/core/decorators/date-converter.js +3 -5
  140. package/development/core/decorators/date-only-type.js +2 -3
  141. package/development/core/decorators/force-type.js +3 -4
  142. package/development/core/decorators/get-override.js +1 -1
  143. package/development/core/decorators/handle-distinct-change.js +1 -1
  144. package/development/core/decorators/host-attributes.js +1 -1
  145. package/development/core/decorators/slot-state.js +1 -1
  146. package/development/core/dom/animation.js +1 -1
  147. package/development/core/dom/breakpoint.js +2 -2
  148. package/development/core/dom/find-referenced-element.js +1 -1
  149. package/development/core/dom/host-context.js +1 -1
  150. package/development/core/dom/input-element.js +3 -4
  151. package/development/core/dom/platform.js +1 -1
  152. package/development/core/dom/scroll.js +1 -1
  153. package/development/core/dom/set-or-remove-attribute.js +1 -1
  154. package/development/core/eventing/composed-path-has-attribute.js +1 -1
  155. package/development/core/eventing/event-emitter.js +2 -3
  156. package/development/core/eventing/form-element-handlers.js +1 -1
  157. package/development/core/eventing/forward-event.js +1 -1
  158. package/development/core/eventing/throttle.js +1 -1
  159. package/development/core/i18n/i18n.js +1 -1
  160. package/development/core/mixins/animation-complete-mixin.js +1 -1
  161. package/development/core/mixins/disabled-mixin.js +1 -1
  162. package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
  163. package/development/core/mixins/form-associated-input-mixin.js +14 -20
  164. package/development/core/mixins/form-associated-mixin.js +5 -7
  165. package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
  166. package/development/core/mixins/hydration-mixin.js +3 -4
  167. package/development/core/mixins/named-slot-list-mixin.js +4 -7
  168. package/development/core/mixins/negative-mixin.js +1 -1
  169. package/development/core/mixins/panel-mixin.js +2 -3
  170. package/development/core/mixins/required-mixin.js +1 -1
  171. package/development/core/mixins/update-scheduler-mixin.js +1 -1
  172. package/development/core/overlay/overlay-option-panel.js +1 -1
  173. package/development/core/overlay/overlay-trigger-attributes.js +1 -1
  174. package/development/core/overlay/overlay.js +1 -1
  175. package/development/core/overlay/position.js +5 -5
  176. package/development/core/testing/event-spy.js +3 -5
  177. package/development/core/testing/mocha-extensions.js +1 -1
  178. package/development/core/testing/wait-for-condition.js +1 -1
  179. package/development/core/testing/wait-for-image-ready.js +2 -3
  180. package/development/core/testing/wait-for-render.js +2 -3
  181. package/development/date-input/date-input.component.js +4 -6
  182. package/development/datepicker/common/datepicker-association-controllers.js +6 -9
  183. package/development/datepicker/common/datepicker-button.js +7 -11
  184. package/development/datepicker/datepicker/datepicker.component.js +22 -35
  185. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  186. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  187. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +13 -20
  188. package/development/dialog/dialog/dialog.component.js +16 -27
  189. package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
  190. package/development/dialog/dialog-content/dialog-content.component.js +1 -1
  191. package/development/dialog/dialog-title/dialog-title.component.js +1 -1
  192. package/development/divider/divider.component.js +1 -1
  193. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
  194. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
  195. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +4 -5
  196. package/development/file-selector/common/file-selector-common.js +2 -3
  197. package/development/file-selector/file-selector/file-selector.component.js +1 -1
  198. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  199. package/development/flip-card/flip-card/flip-card.component.js +7 -13
  200. package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -3
  201. package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -3
  202. package/development/footer/footer.component.js +1 -1
  203. package/development/form-error/form-error.component.js +3 -4
  204. package/development/form-field/form-field/form-field.component.js +19 -30
  205. package/development/form-field/form-field-clear/form-field-clear.component.js +4 -6
  206. package/development/header/common/header-action-common.js +1 -1
  207. package/development/header/header/header.component.js +5 -8
  208. package/development/header/header-button/header-button.component.js +1 -1
  209. package/development/header/header-link/header-link.component.js +1 -1
  210. package/development/icon/icon-base.js +1 -1
  211. package/development/icon/icon-name-mixin.js +1 -1
  212. package/development/icon/icon-request.js +2 -3
  213. package/development/icon/icon-validate.js +1 -1
  214. package/development/icon/icon.component.js +1 -1
  215. package/development/image/image.component.js +7 -9
  216. package/development/journey-header/journey-header.component.js +1 -1
  217. package/development/lead-container/lead-container.component.js +1 -1
  218. package/development/link/block-link/block-link.component.js +1 -1
  219. package/development/link/block-link-button/block-link-button.component.js +1 -1
  220. package/development/link/block-link-static/block-link-static.component.js +1 -1
  221. package/development/link/common/block-link-common.js +1 -1
  222. package/development/link/common/inline-link-common.js +1 -1
  223. package/development/link/link/link.component.js +1 -1
  224. package/development/link/link-button/link-button.component.js +1 -1
  225. package/development/link/link-static/link-static.component.js +1 -1
  226. package/development/link-common-CJEWffDZ.js +1 -1
  227. package/development/link-list/common/link-list-base.js +1 -1
  228. package/development/link-list/link-list/link-list.component.js +1 -1
  229. package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
  230. package/development/loading-indicator/loading-indicator.component.js +1 -1
  231. package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
  232. package/development/logo/logo.component.js +1 -1
  233. package/development/map-container/map-container.component.js +2 -3
  234. package/development/menu/common/menu-action-common.js +1 -1
  235. package/development/menu/menu/menu.component.js +17 -25
  236. package/development/menu/menu-button/menu-button.component.js +1 -1
  237. package/development/menu/menu-link/menu-link.component.js +1 -1
  238. package/development/message/message.component.js +1 -1
  239. package/development/navigation/common/navigation-action-common.js +3 -5
  240. package/development/navigation/navigation/navigation.component.js +19 -35
  241. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  242. package/development/navigation/navigation-link/navigation-link.component.js +1 -1
  243. package/development/navigation/navigation-list/navigation-list.component.js +1 -1
  244. package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
  245. package/development/navigation/navigation-section/navigation-section.component.js +22 -32
  246. package/development/notification/notification.component.js +22 -24
  247. package/development/option/optgroup/optgroup-base-element.js +4 -6
  248. package/development/option/optgroup/optgroup.component.js +6 -10
  249. package/development/option/option/option-base-element.js +3 -4
  250. package/development/option/option/option.component.js +7 -10
  251. package/development/overlay/overlay-base-element.js +4 -6
  252. package/development/overlay/overlay.component.js +7 -9
  253. package/development/paginator/common/paginator-common.js +1 -1
  254. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  255. package/development/paginator/paginator/paginator.component.js +2 -3
  256. package/development/popover/popover/popover.component.d.ts.map +1 -1
  257. package/development/popover/popover/popover.component.js +17 -19
  258. package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
  259. package/development/radio-button/common/radio-button-common.js +6 -10
  260. package/development/radio-button/radio-button/radio-button.component.js +2 -5
  261. package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
  262. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
  263. package/development/screen-reader-only/screen-reader-only.component.js +1 -1
  264. package/development/select/select.component.js +26 -48
  265. package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
  266. package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
  267. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  268. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
  269. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
  270. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
  271. package/development/sidebar/sidebar/sidebar.component.js +8 -15
  272. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  273. package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
  274. package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  275. package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -2
  276. package/development/signet/signet.component.js +1 -1
  277. package/development/skiplink-list/skiplink-list.component.js +1 -1
  278. package/development/slider/slider.component.js +3 -4
  279. package/development/status/status.component.js +3 -2
  280. package/development/stepper/step/step.component.js +5 -7
  281. package/development/stepper/step-label/step-label.component.js +3 -4
  282. package/development/stepper/stepper/stepper.component.js +16 -29
  283. package/development/table/table-wrapper/table-wrapper.component.js +2 -7
  284. package/development/tabs/tab/tab.component.js +1 -1
  285. package/development/tabs/tab-group/tab-group.component.js +23 -38
  286. package/development/tabs/tab-label/tab-label.component.js +1 -1
  287. package/development/tag/tag/tag.component.js +6 -12
  288. package/development/tag/tag-group/tag-group.component.js +5 -13
  289. package/development/teaser/teaser.component.js +1 -1
  290. package/development/teaser-hero/teaser-hero.component.js +1 -1
  291. package/development/teaser-product/common/teaser-product-common.js +1 -1
  292. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  293. package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
  294. package/development/time-input/time-input.component.js +8 -12
  295. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  296. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -3
  297. package/development/title/title-base.js +1 -2
  298. package/development/title/title.component.js +1 -1
  299. package/development/toast/toast.component.js +4 -7
  300. package/development/toggle/toggle/toggle.component.js +8 -12
  301. package/development/toggle/toggle-option/toggle-option.component.js +9 -16
  302. package/development/toggle-check/toggle-check.component.js +1 -1
  303. package/development/train/train/train.component.js +1 -1
  304. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  305. package/development/train/train-formation/train-formation.component.js +5 -7
  306. package/development/train/train-wagon/train-wagon.component.js +1 -1
  307. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  308. package/dialog/dialog/dialog.component.js +59 -70
  309. package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
  310. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +31 -32
  311. package/file-selector/common/file-selector-common.js +1 -2
  312. package/flip-card/flip-card/flip-card.component.js +48 -54
  313. package/flip-card/flip-card-details/flip-card-details.component.js +16 -17
  314. package/flip-card/flip-card-summary/flip-card-summary.component.js +18 -19
  315. package/form-error/form-error.component.js +13 -14
  316. package/form-field/form-field/form-field.component.js +128 -139
  317. package/form-field/form-field-clear/form-field-clear.component.js +20 -22
  318. package/header/header/header.component.js +25 -28
  319. package/icon/icon-request.js +10 -11
  320. package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
  321. package/image/image.component.js +4 -6
  322. package/map-container/map-container.component.js +1 -2
  323. package/menu/menu/menu.component.js +48 -56
  324. package/navigation/common/navigation-action-common.js +19 -21
  325. package/navigation/navigation/navigation.component.js +74 -93
  326. package/navigation/navigation-marker/navigation-marker.component.js +26 -28
  327. package/navigation/navigation-section/navigation-section.component.js +79 -89
  328. package/notification/notification.component.js +18 -20
  329. package/option/optgroup/optgroup-base-element.js +40 -42
  330. package/option/optgroup/optgroup.component.js +16 -20
  331. package/option/option/option-base-element.js +3 -4
  332. package/option/option/option.component.js +28 -31
  333. package/overlay/overlay-base-element.js +25 -27
  334. package/overlay/overlay.component.js +38 -40
  335. package/package.json +1 -1
  336. package/paginator/paginator/paginator.component.js +3 -4
  337. package/popover/popover/popover.component.d.ts.map +1 -1
  338. package/popover/popover/popover.component.js +65 -72
  339. package/popover/popover-trigger/popover-trigger.component.js +1 -1
  340. package/radio-button/common/radio-button-common.js +11 -15
  341. package/radio-button/radio-button/radio-button.component.js +20 -23
  342. package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
  343. package/radio-button/radio-button-panel/radio-button-panel.component.js +31 -35
  344. package/select/select.component.js +89 -111
  345. package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
  346. package/sidebar/common.js +1 -1
  347. package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
  348. package/sidebar/sidebar/sidebar.component.js +61 -68
  349. package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
  350. package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  351. package/sidebar.js +1 -1
  352. package/slider/slider.component.js +3 -4
  353. package/standard-theme.css +0 -25
  354. package/status/status.component.js +17 -17
  355. package/stepper/step/step.component.js +22 -24
  356. package/stepper/step-label/step-label.component.js +2 -3
  357. package/stepper/stepper/stepper.component.js +72 -86
  358. package/table/table-wrapper/table-wrapper.component.js +13 -14
  359. package/table.css +0 -25
  360. package/tabs/tab-group/tab-group.component.js +77 -92
  361. package/tabs/tab-label/tab-label.component.js +10 -10
  362. package/tag/tag/tag.component.js +55 -61
  363. package/tag/tag-group/tag-group.component.js +21 -29
  364. package/teaser/teaser.component.js +1 -1
  365. package/teaser-product/common.js +1 -1
  366. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  367. package/teaser-product-common-C8oSkIxy.js +5 -0
  368. package/teaser-product.js +1 -1
  369. package/time-input/time-input.component.js +62 -66
  370. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +9 -10
  371. package/title/title-base.js +1 -1
  372. package/toast/toast.component.js +4 -7
  373. package/toggle/toggle/toggle.component.js +38 -42
  374. package/toggle/toggle-option/toggle-option.component.js +47 -54
  375. package/train/train-formation/train-formation.component.js +41 -43
  376. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
  377. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
  378. package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
  379. package/teaser-product-common-CpMAlYEp.js +0 -5
@@ -1,27 +1,27 @@
1
- var S = (a) => {
2
- throw TypeError(a);
1
+ var S = (i) => {
2
+ throw TypeError(i);
3
3
  };
4
- var T = (a, s, r) => s.has(a) || S("Cannot " + r);
5
- var c = (a, s, r) => (T(a, s, "read from private field"), r ? r.call(a) : s.get(a)), g = (a, s, r) => s.has(a) ? S("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, r), u = (a, s, r, o) => (T(a, s, "write to private field"), o ? o.call(a, r) : s.set(a, r), r);
6
- import { __esDecorate as h, __runInitializers as b } from "tslib";
7
- import { MutationController as D } from "@lit-labs/observers/mutation-controller.js";
8
- import { css as E, LitElement as I, html as L } from "lit";
9
- import { property as U, state as w } from "lit/decorators.js";
10
- import { hostAttributes as q, forceType as M } from "../../core/decorators.js";
11
- import { isSafari as $, setOrRemoveAttribute as j } from "../../core/dom.js";
12
- import { SbbDisabledMixin as F, SbbHydrationMixin as N } from "../../core/mixins.js";
4
+ var T = (i, a, s) => a.has(i) || S("Cannot " + s);
5
+ var c = (i, a, s) => (T(i, a, "read from private field"), s ? s.call(i) : a.get(i)), g = (i, a, s) => a.has(i) ? S("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, s), u = (i, a, s, r) => (T(i, a, "write to private field"), r ? r.call(i, s) : a.set(i, s), s);
6
+ import { __esDecorate as h, __runInitializers as n } from "tslib";
7
+ import { MutationController as C } from "@lit-labs/observers/mutation-controller.js";
8
+ import { css as D, LitElement as E, html as I } from "lit";
9
+ import { property as L, state as w } from "lit/decorators.js";
10
+ import { hostAttributes as U, forceType as q } from "../../core/decorators.js";
11
+ import { isSafari as M, setOrRemoveAttribute as $ } from "../../core/dom.js";
12
+ import { SbbDisabledMixin as j, SbbHydrationMixin as F } from "../../core/mixins.js";
13
13
  import "../../divider.js";
14
- const R = E`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-divider-spacing: 0;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-2x)}:host([data-variant=select]){--sbb-optgroup-divider-spacing: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-padding-start: 0;--sbb-optgroup-label-font-size: inherit}:host([data-variant=select]:first-child){--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x)}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);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);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block:var(--sbb-optgroup-label-padding-start) var(--sbb-spacing-fixed-2x)}:host([data-variant=select][data-multiple]) .sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xs);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);padding-inline-start:calc(var(--sbb-spacing-responsive-xxxs) + var(--sbb-spacing-fixed-8x))}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-optgroup-divider-spacing)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}`, v = $;
15
- let Z = (() => {
16
- var n, p, d, l;
17
- let a = [q({ role: v ? null : "group" })], s, r = [], o, f = F(N(I)), _, x = [], m = [], y, A = [], z = [], G, k = [], O = [];
18
- return l = class extends f {
14
+ const N = D`*,:before,:after{box-sizing:border-box}:host{--sbb-optgroup-divider-display: block;--sbb-optgroup-divider-spacing: 0;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-font-size: var(--sbb-typo-scale-0-75x);--sbb-optgroup-label-color: var(--sbb-color-metal);display:block}:host(:first-child){--sbb-optgroup-divider-display: none;--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-2x)}:host([data-variant=select]){--sbb-optgroup-divider-spacing: var(--sbb-spacing-fixed-4x);--sbb-optgroup-label-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-optgroup-label-padding-start: 0;--sbb-optgroup-label-font-size: inherit}:host([data-variant=select]:first-child){--sbb-optgroup-label-padding-start: var(--sbb-spacing-fixed-4x)}:host([data-negative]){--sbb-optgroup-label-color: var(--sbb-color-smoke)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xxs);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);display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block:var(--sbb-optgroup-label-padding-start) var(--sbb-spacing-fixed-2x)}:host([data-variant=select][data-multiple]) .sbb-optgroup__label{--sbb-text-font-size: var(--sbb-font-size-text-xs);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);padding-inline-start:calc(var(--sbb-spacing-responsive-xxxs) + var(--sbb-spacing-fixed-8x))}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display);padding-block:var(--sbb-optgroup-divider-spacing)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}`, v = M;
15
+ let Y = (() => {
16
+ var b, p, d, o;
17
+ let i = [U({ role: v ? null : "group" })], a, s = [], r, f = j(F(E)), _, x = [], m = [], y, A = [], z = [], G, k = [], O = [];
18
+ return o = class extends f {
19
19
  constructor() {
20
20
  super();
21
- g(this, n, b(this, x, ""));
22
- g(this, p, (b(this, m), b(this, A, !1)));
23
- g(this, d, (b(this, z), b(this, k, !1)));
24
- b(this, O), this.addController(new D(this, {
21
+ g(this, b, n(this, x, ""));
22
+ g(this, p, (n(this, m), n(this, A, !1)));
23
+ g(this, d, (n(this, z), n(this, k, !1)));
24
+ n(this, O), this.addController(new C(this, {
25
25
  config: {
26
26
  attributes: !0,
27
27
  attributeFilter: ["data-negative"]
@@ -31,10 +31,10 @@ let Z = (() => {
31
31
  }
32
32
  /** Option group label. */
33
33
  get label() {
34
- return c(this, n);
34
+ return c(this, b);
35
35
  }
36
36
  set label(t) {
37
- u(this, n, t);
37
+ u(this, b, t);
38
38
  }
39
39
  get negative() {
40
40
  return c(this, p);
@@ -58,17 +58,16 @@ let Z = (() => {
58
58
  this.proxyDisabledToOptions(), this._proxyGroupLabelToOptions(), this._highlightOptions();
59
59
  }
60
60
  _proxyGroupLabelToOptions() {
61
- var t, e;
62
61
  if (this._inertAriaGroups)
63
62
  if (this.label) {
64
63
  this.removeAttribute("aria-label");
65
- for (const i of this.options)
66
- i.setAttribute("data-group-label", this.label), (t = i.requestUpdate) == null || t.call(i);
64
+ for (const t of this.options)
65
+ t.setAttribute("data-group-label", this.label), t.requestUpdate?.();
67
66
  } else
68
- for (const i of this.options)
69
- i.removeAttribute("data-group-label"), (e = i.requestUpdate) == null || e.call(i);
67
+ for (const t of this.options)
68
+ t.removeAttribute("data-group-label"), t.requestUpdate?.();
70
69
  else {
71
- j(this, "aria-label", this.label);
70
+ $(this, "aria-label", this.label);
72
71
  return;
73
72
  }
74
73
  }
@@ -77,18 +76,17 @@ let Z = (() => {
77
76
  t.toggleAttribute("data-group-disabled", this.disabled);
78
77
  }
79
78
  _highlightOptions() {
80
- var i;
81
79
  const t = this.getAutocompleteParent();
82
80
  if (!t)
83
81
  return;
84
- const e = (i = t.triggerElement) == null ? void 0 : i.value;
85
- e && this.options.forEach((C) => C.highlight(e));
82
+ const e = t.triggerElement?.value;
83
+ e && this.options.forEach((l) => l.highlight(e));
86
84
  }
87
85
  _onNegativeChange() {
88
86
  this.negative = this.hasAttribute("data-negative");
89
87
  }
90
88
  render() {
91
- return L`
89
+ return I`
92
90
  <div class="sbb-optgroup__divider">
93
91
  <sbb-divider ?negative=${this.negative}></sbb-divider>
94
92
  </div>
@@ -99,17 +97,17 @@ let Z = (() => {
99
97
  <slot @slotchange=${this._handleSlotchange}></slot>
100
98
  `;
101
99
  }
102
- }, n = new WeakMap(), p = new WeakMap(), d = new WeakMap(), o = l, (() => {
100
+ }, b = new WeakMap(), p = new WeakMap(), d = new WeakMap(), r = o, (() => {
103
101
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
104
- _ = [M(), U()], y = [w()], G = [w()], h(l, null, _, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, i) => {
105
- e.label = i;
106
- } }, metadata: t }, x, m), h(l, null, y, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, i) => {
107
- e.negative = i;
108
- } }, metadata: t }, A, z), h(l, null, G, { kind: "accessor", name: "_inertAriaGroups", static: !1, private: !1, access: { has: (e) => "_inertAriaGroups" in e, get: (e) => e._inertAriaGroups, set: (e, i) => {
109
- e._inertAriaGroups = i;
110
- } }, metadata: t }, k, O), h(null, s = { value: o }, a, { kind: "class", name: o.name, metadata: t }, null, r), o = s.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
111
- })(), l.styles = R, b(o, r), o;
102
+ _ = [q(), L()], y = [w()], G = [w()], h(o, null, _, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, l) => {
103
+ e.label = l;
104
+ } }, metadata: t }, x, m), h(o, null, y, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, l) => {
105
+ e.negative = l;
106
+ } }, metadata: t }, A, z), h(o, null, G, { kind: "accessor", name: "_inertAriaGroups", static: !1, private: !1, access: { has: (e) => "_inertAriaGroups" in e, get: (e) => e._inertAriaGroups, set: (e, l) => {
107
+ e._inertAriaGroups = l;
108
+ } }, metadata: t }, k, O), h(null, a = { value: r }, i, { kind: "class", name: r.name, metadata: t }, null, s), r = a.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
109
+ })(), o.styles = N, n(r, s), r;
112
110
  })();
113
111
  export {
114
- Z as SbbOptgroupBaseElement
112
+ Y as SbbOptgroupBaseElement
115
113
  };
@@ -1,34 +1,30 @@
1
- import { __esDecorate as n, __runInitializers as c } from "tslib";
2
- import { customElement as b } from "lit/decorators.js";
3
- import { SbbOptgroupBaseElement as u } from "./optgroup-base-element.js";
4
- let h = (() => {
5
- var s;
6
- let r = [b("sbb-optgroup")], a, l = [], e, i = u;
7
- return s = class extends i {
1
+ import { __esDecorate as r, __runInitializers as n } from "tslib";
2
+ import { customElement as c } from "lit/decorators.js";
3
+ import { SbbOptgroupBaseElement as b } from "./optgroup-base-element.js";
4
+ let d = (() => {
5
+ var e;
6
+ let o = [c("sbb-optgroup")], a, l = [], t, i = b;
7
+ return e = class extends i {
8
8
  get options() {
9
- var t;
10
- return Array.from(((t = this.querySelectorAll) == null ? void 0 : t.call(this, "sbb-option")) ?? []);
9
+ return Array.from(this.querySelectorAll?.("sbb-option") ?? []);
11
10
  }
12
11
  getAutocompleteParent() {
13
- var t;
14
- return ((t = this.closest) == null ? void 0 : t.call(this, "sbb-autocomplete")) || null;
12
+ return this.closest?.("sbb-autocomplete") || null;
15
13
  }
16
14
  setAttributeFromParent() {
17
- var t;
18
- this.negative = !!((t = this.closest) != null && t.call(this, ":is(sbb-autocomplete, sbb-select, sbb-form-field)[negative]")), this.toggleAttribute("data-negative", this.negative);
15
+ this.negative = !!this.closest?.(":is(sbb-autocomplete, sbb-select, sbb-form-field)[negative]"), this.toggleAttribute("data-negative", this.negative);
19
16
  }
20
17
  connectedCallback() {
21
18
  super.connectedCallback(), this.toggleAttribute("data-multiple", !!this.closest("sbb-select[multiple]")), this._setVariantByContext();
22
19
  }
23
20
  _setVariantByContext() {
24
- var t, o;
25
- (t = this.closest) != null && t.call(this, "sbb-autocomplete") ? this.setAttribute("data-variant", "autocomplete") : (o = this.closest) != null && o.call(this, "sbb-select") && this.setAttribute("data-variant", "select");
21
+ this.closest?.("sbb-autocomplete") ? this.setAttribute("data-variant", "autocomplete") : this.closest?.("sbb-select") && this.setAttribute("data-variant", "select");
26
22
  }
27
- }, e = s, (() => {
28
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
29
- n(null, a = { value: e }, r, { kind: "class", name: e.name, metadata: t }, null, l), e = a.value, t && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t }), c(e, l);
30
- })(), e;
23
+ }, t = e, (() => {
24
+ const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
25
+ r(null, a = { value: t }, o, { kind: "class", name: t.name, metadata: s }, null, l), t = a.value, s && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s }), n(t, l);
26
+ })(), t;
31
27
  })();
32
28
  export {
33
- h as SbbOptGroupElement
29
+ d as SbbOptGroupElement
34
30
  };
@@ -25,7 +25,6 @@ let mt = (() => {
25
25
  let a = [W()], s, n = [], h, L = et(at(it(Q))), S = [], C, H, y, k = [], I = [], $, z = [], E = [], F, D = [], N = [], O, T = [], w = [], M, U = [], j = [], B, R = [], q = [];
26
26
  return l = class extends L {
27
27
  constructor() {
28
- var t;
29
28
  super();
30
29
  g(this, _, (r(this, S), r(this, k, !1)));
31
30
  g(this, p, (r(this, I), r(this, z, !1)));
@@ -33,11 +32,11 @@ let mt = (() => {
33
32
  g(this, f, (r(this, N), r(this, T, !1)));
34
33
  g(this, v, (r(this, w), r(this, U, null)));
35
34
  g(this, A, (r(this, j), r(this, R, !1)));
36
- r(this, q), (t = this.addEventListener) == null || t.call(this, "click", (e) => this.selectByClick(e), {
35
+ r(this, q), this.addEventListener?.("click", (t) => this.selectByClick(t), {
37
36
  passive: !0
38
37
  }), this.addController(new K(this, {
39
38
  config: lt,
40
- callback: (e) => this.onOptionAttributesChange(e)
39
+ callback: (t) => this.onOptionAttributesChange(t)
41
40
  })), x && (this.hydrationRequired ? this.hydrationComplete.then(() => this._inertAriaGroups = x) : this._inertAriaGroups = x);
42
41
  }
43
42
  /**
@@ -117,7 +116,7 @@ let mt = (() => {
117
116
  this.selected = t, this.selectionChange.emit(), this.selected && this.optionSelected.emit();
118
117
  }
119
118
  connectedCallback() {
120
- super.connectedCallback(), this.id || (this.id = `${this.optionId}-${st++}`), this.hydrationRequired ? this.hydrationComplete.then(() => this.init()) : this.init();
119
+ super.connectedCallback(), this.id ||= `${this.optionId}-${st++}`, this.hydrationRequired ? this.hydrationComplete.then(() => this.init()) : this.init();
121
120
  }
122
121
  willUpdate(t) {
123
122
  super.willUpdate(t), t.has("disabled") && (Z(this, "tabindex", tt && !this.disabled && 0), this.updateAriaDisabled());
@@ -1,19 +1,19 @@
1
- import { __esDecorate as h, __runInitializers as u } from "tslib";
2
- import { css as g, nothing as b, html as r } from "lit";
3
- import { customElement as v } from "lit/decorators.js";
4
- import { hostAttributes as m } from "../../core/decorators.js";
5
- import { EventEmitter as d } from "../../core/eventing.js";
6
- import { SbbOptionBaseElement as f } from "./option-base-element.js";
1
+ import { __esDecorate as d, __runInitializers as p } from "tslib";
2
+ import { css as u, nothing as s, html as a } from "lit";
3
+ import { customElement as h } from "lit/decorators.js";
4
+ import { hostAttributes as g } from "../../core/decorators.js";
5
+ import { EventEmitter as n } from "../../core/eventing.js";
6
+ import { SbbOptionBaseElement as v } from "./option-base-element.js";
7
7
  import "../../visual-checkbox.js";
8
- const _ = g`*,:before,:after{box-sizing:border-box}:host{--sbb-option-color: var(--sbb-color-charcoal);--sbb-option-background-color: inherit;--sbb-option-background-color-hover: var(--sbb-color-milk);--sbb-option-background-color-active: var(--sbb-color-cloud);--sbb-option-disabled-border-color: var(--sbb-color-graphite);--sbb-option-disabled-background-color: var(--sbb-color-milk);--sbb-option-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-option-padding-block: calc(var(--sbb-spacing-fixed-2x) + var(--sbb-border-width-2x));--sbb-option-column-gap: var(--sbb-spacing-responsive-xxxs);--sbb-option-justify-content: start;--sbb-option-cursor: pointer;--sbb-option-border-radius: var(--sbb-border-radius-4x);--sbb-option-icon-color: var(--sbb-color-metal);display:block}:host([data-negative]){--sbb-option-color: var(--sbb-color-milk);--sbb-option-icon-color: var(--sbb-color-smoke);--sbb-option-background-color-hover: var(--sbb-color-charcoal);--sbb-option-background-color-active: var(--sbb-color-iron);--sbb-option-disabled-border-color: var(--sbb-color-smoke);--sbb-option-disabled-background-color: var(--sbb-color-charcoal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([data-active]){--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x))}@media (any-hover: hover){:host(:hover:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-hover)}}:host(:active:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-active)}:host(:not([data-disable-highlight])) .sbb-option__label slot{display:none}:host(:is([data-group-disabled],[disabled])){--sbb-option-cursor: default}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled])){--sbb-option-color: GrayText}}:host([data-variant=select]){--sbb-option-column-gap: var(--sbb-spacing-fixed-2x);--sbb-option-justify-content: space-between}:host([data-variant=select][data-multiple]){--sbb-option-justify-content: start}:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{font-weight:700}@media (forced-colors: active){:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{color:Highlight}}.sbb-option__container{background-color:var(--sbb-option-background-color)}.sbb-option{--sbb-text-font-size: var(--sbb-font-size-text-s);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);display:flex;align-items:center;column-gap:var(--sbb-option-column-gap);padding-inline:var(--sbb-option-padding-inline);padding-block:var(--sbb-option-padding-block);justify-content:var(--sbb-option-justify-content);color:var(--sbb-option-color);background-color:var(--sbb-option-background-color);cursor:var(--sbb-option-cursor);-webkit-tap-highlight-color:transparent;-webkit-text-fill-color:var(--sbb-option-color)}:host([data-active]) .sbb-option{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial;border-radius:var(--sbb-option-border-radius)}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option{position:relative;z-index:0}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{content:"";display:block;position:absolute;top:.375rem;right:.375rem;bottom:.375rem;left:.375rem;border:var(--sbb-border-width-1x) dashed var(--sbb-option-disabled-border-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-option-disabled-background-color);z-index:-1}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{border-color:GrayText}}.sbb-option__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small);color:var(--sbb-option-icon-color)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-option__icon{display:var(--sbb-option-icon-container-display, none)}.sbb-option__label{white-space:initial}`;
9
- let A = (() => {
8
+ const m = u`*,:before,:after{box-sizing:border-box}:host{--sbb-option-color: var(--sbb-color-charcoal);--sbb-option-background-color: inherit;--sbb-option-background-color-hover: var(--sbb-color-milk);--sbb-option-background-color-active: var(--sbb-color-cloud);--sbb-option-disabled-border-color: var(--sbb-color-graphite);--sbb-option-disabled-background-color: var(--sbb-color-milk);--sbb-option-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-option-padding-block: calc(var(--sbb-spacing-fixed-2x) + var(--sbb-border-width-2x));--sbb-option-column-gap: var(--sbb-spacing-responsive-xxxs);--sbb-option-justify-content: start;--sbb-option-cursor: pointer;--sbb-option-border-radius: var(--sbb-border-radius-4x);--sbb-option-icon-color: var(--sbb-color-metal);display:block}:host([data-negative]){--sbb-option-color: var(--sbb-color-milk);--sbb-option-icon-color: var(--sbb-color-smoke);--sbb-option-background-color-hover: var(--sbb-color-charcoal);--sbb-option-background-color-active: var(--sbb-color-iron);--sbb-option-disabled-border-color: var(--sbb-color-smoke);--sbb-option-disabled-background-color: var(--sbb-color-charcoal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}:host([data-active]){--sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x))}@media (any-hover: hover){:host(:hover:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-hover)}}:host(:active:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-active)}:host(:not([data-disable-highlight])) .sbb-option__label slot{display:none}:host(:is([data-group-disabled],[disabled])){--sbb-option-cursor: default}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled])){--sbb-option-color: GrayText}}:host([data-variant=select]){--sbb-option-column-gap: var(--sbb-spacing-fixed-2x);--sbb-option-justify-content: space-between}:host([data-variant=select][data-multiple]){--sbb-option-justify-content: start}:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{font-weight:700}@media (forced-colors: active){:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{color:Highlight}}.sbb-option__container{background-color:var(--sbb-option-background-color)}.sbb-option{--sbb-text-font-size: var(--sbb-font-size-text-s);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);display:flex;align-items:center;column-gap:var(--sbb-option-column-gap);padding-inline:var(--sbb-option-padding-inline);padding-block:var(--sbb-option-padding-block);justify-content:var(--sbb-option-justify-content);color:var(--sbb-option-color);background-color:var(--sbb-option-background-color);cursor:var(--sbb-option-cursor);-webkit-tap-highlight-color:transparent;-webkit-text-fill-color:var(--sbb-option-color)}:host([data-active]) .sbb-option{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial;border-radius:var(--sbb-option-border-radius)}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option{position:relative;z-index:0}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{content:"";display:block;position:absolute;inset:.375rem;border:var(--sbb-border-width-1x) dashed var(--sbb-option-disabled-border-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-option-disabled-background-color);z-index:-1}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{border-color:GrayText}}.sbb-option__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small);color:var(--sbb-option-icon-color)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-option__icon{display:var(--sbb-option-icon-container-display, none)}.sbb-option__label{white-space:initial}`;
9
+ let z = (() => {
10
10
  var o;
11
- let p = [v("sbb-option"), m({
11
+ let c = [h("sbb-option"), g({
12
12
  role: "option"
13
- })], l, n = [], i, c = f;
14
- var a = (o = class extends c {
13
+ })], b, r = [], i, l = v;
14
+ var e = (o = class extends l {
15
15
  constructor() {
16
- super(...arguments), this.optionId = "sbb-option", this.selectionChange = new d(this, a.events.selectionChange), this.optionSelected = new d(this, a.events.optionSelected);
16
+ super(...arguments), this.optionId = "sbb-option", this.selectionChange = new n(this, e.events.selectionChange), this.optionSelected = new n(this, e.events.optionSelected);
17
17
  }
18
18
  set _variant(t) {
19
19
  t && this.setAttribute("data-variant", t);
@@ -28,13 +28,11 @@ let A = (() => {
28
28
  return !this.hydrationRequired && this.hasAttribute("data-multiple");
29
29
  }
30
30
  setAttributeFromParent() {
31
- var e, s;
32
- const t = (e = this.closest) == null ? void 0 : e.call(this, "sbb-optgroup");
33
- t && (this.disabledFromGroup = t.disabled, this.updateAriaDisabled()), this.negative = !!((s = this.closest) != null && s.call(
34
- this,
31
+ const t = this.closest?.("sbb-optgroup");
32
+ t && (this.disabledFromGroup = t.disabled, this.updateAriaDisabled()), this.negative = !!this.closest?.(
35
33
  // :is() selector not possible due to test environment
36
34
  "sbb-autocomplete[negative],sbb-form-field[negative]"
37
- )), this.toggleAttribute("data-negative", this.negative), this.toggleAttribute("data-multiple", this._isMultiple);
35
+ ), this.toggleAttribute("data-negative", this.negative), this.toggleAttribute("data-multiple", this._isMultiple);
38
36
  }
39
37
  selectByClick(t) {
40
38
  if (this.disabled || this.disabledFromGroup) {
@@ -50,8 +48,7 @@ let A = (() => {
50
48
  super.init(), this._setVariantByContext(), this.handleHighlightState();
51
49
  }
52
50
  _setVariantByContext() {
53
- var t, e, s;
54
- (t = this.closest) != null && t.call(this, "sbb-autocomplete") ? this._variant = "autocomplete" : (e = this.closest) != null && e.call(this, "sbb-select") && (this._variant = "select"), this._isMultiple = !!((s = this.closest) != null && s.call(this, "sbb-select[multiple]"));
51
+ this.closest?.("sbb-autocomplete") ? this._variant = "autocomplete" : this.closest?.("sbb-select") && (this._variant = "select"), this._isMultiple = !!this.closest?.("sbb-select[multiple]");
55
52
  }
56
53
  handleHighlightState() {
57
54
  if (this._variant !== "autocomplete") {
@@ -61,35 +58,35 @@ let A = (() => {
61
58
  super.handleHighlightState();
62
59
  }
63
60
  renderIcon() {
64
- return r`
61
+ return a`
65
62
  <!-- Icon -->
66
- ${this._isMultiple ? b : r` <span class="sbb-option__icon"> ${this.renderIconSlot()} </span>`}
63
+ ${this._isMultiple ? s : a` <span class="sbb-option__icon"> ${this.renderIconSlot()} </span>`}
67
64
 
68
65
  <!-- Checkbox -->
69
- ${this._isMultiple ? r`
66
+ ${this._isMultiple ? a`
70
67
  <sbb-visual-checkbox
71
68
  ?checked=${this.selected}
72
69
  ?disabled=${this.disabled || this.disabledFromGroup}
73
70
  ?negative=${this.negative}
74
71
  ></sbb-visual-checkbox>
75
- ` : b}
72
+ ` : s}
76
73
  `;
77
74
  }
78
75
  renderLabel() {
79
- return this._variant === "autocomplete" && this.label && !this.disableLabelHighlight ? this.getHighlightedLabel() : b;
76
+ return this._variant === "autocomplete" && this.label && !this.disableLabelHighlight ? this.getHighlightedLabel() : s;
80
77
  }
81
78
  renderTick() {
82
- return this._variant === "select" && !this._isMultiple && this.selected ? r`<sbb-icon name="tick-small"></sbb-icon>` : b;
79
+ return this._variant === "select" && !this._isMultiple && this.selected ? a`<sbb-icon name="tick-small"></sbb-icon>` : s;
83
80
  }
84
81
  }, i = o, (() => {
85
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
86
- h(null, l = { value: i }, p, { kind: "class", name: i.name, metadata: t }, null, n), a = i = l.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
87
- })(), o.styles = _, o.events = {
82
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
83
+ d(null, b = { value: i }, c, { kind: "class", name: i.name, metadata: t }, null, r), e = i = b.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
84
+ })(), o.styles = m, o.events = {
88
85
  selectionChange: "optionSelectionChange",
89
86
  optionSelected: "optionSelected"
90
- }, u(i, n), o);
91
- return a = i;
87
+ }, p(i, r), o);
88
+ return e = i;
92
89
  })();
93
90
  export {
94
- A as SbbOptionElement
91
+ z as SbbOptionElement
95
92
  };
@@ -1,8 +1,8 @@
1
- var y = (t) => {
2
- throw TypeError(t);
1
+ var y = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var C = (t, l, r) => l.has(t) || y("Cannot " + r);
5
- var g = (t, l, r) => (C(t, l, "read from private field"), r ? r.call(t) : l.get(t)), L = (t, l, r) => l.has(t) ? y("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, r), m = (t, l, r, a) => (C(t, l, "write to private field"), a ? a.call(t, r) : l.set(t, r), r);
4
+ var C = (e, t, i) => t.has(e) || y("Cannot " + i);
5
+ var g = (e, t, i) => (C(e, t, "read from private field"), i ? i.call(e) : t.get(e)), L = (e, t, i) => t.has(e) ? y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), m = (e, t, i, a) => (C(e, t, "write to private field"), a ? a.call(e, i) : t.set(e, i), i);
6
6
  import { __runInitializers as u, __esDecorate as w } from "tslib";
7
7
  import "lit";
8
8
  import { property as S } from "lit/decorators.js";
@@ -17,9 +17,9 @@ import { SbbNegativeMixin as F } from "../core/mixins.js";
17
17
  const b = [];
18
18
  let J = (() => {
19
19
  var o, s;
20
- let t = [T({
20
+ let e = [T({
21
21
  popover: "manual"
22
- })], l, r = [], a, v = F(O), d, f = [], p = [];
22
+ })], t, i = [], a, v = F(O), d, f = [], p = [];
23
23
  var h = (s = class extends v {
24
24
  constructor() {
25
25
  super(...arguments);
@@ -30,14 +30,14 @@ let J = (() => {
30
30
  get accessibilityLabel() {
31
31
  return g(this, o);
32
32
  }
33
- set accessibilityLabel(e) {
34
- m(this, o, e);
33
+ set accessibilityLabel(l) {
34
+ m(this, o, l);
35
35
  }
36
36
  /** Closes the component. */
37
- close(e, i) {
37
+ close(l, r) {
38
38
  if (this.state !== "opened")
39
39
  return;
40
- this.returnValue = e, this.overlayCloseElement = i;
40
+ this.returnValue = l, this.overlayCloseElement = r;
41
41
  const n = {
42
42
  returnValue: this.returnValue,
43
43
  closeTarget: this.overlayCloseElement
@@ -45,15 +45,13 @@ let J = (() => {
45
45
  this.willClose.emit(n) && (this.state = "closing", this.removeAriaLiveRefContent(), this.isZeroAnimationDuration() && this.handleClosing());
46
46
  }
47
47
  connectedCallback() {
48
- var e;
49
- super.connectedCallback(), (e = this.overlayController) == null || e.abort(), this.overlayController = new AbortController();
48
+ super.connectedCallback(), this.overlayController?.abort(), this.overlayController = new AbortController();
50
49
  }
51
- firstUpdated(e) {
52
- this.ariaLiveRef = this.shadowRoot.querySelector("sbb-screen-reader-only"), super.firstUpdated(e);
50
+ firstUpdated(l) {
51
+ this.ariaLiveRef = this.shadowRoot.querySelector("sbb-screen-reader-only"), super.firstUpdated(l);
53
52
  }
54
53
  disconnectedCallback() {
55
- var e, i;
56
- super.disconnectedCallback(), (e = this.overlayController) == null || e.abort(), (i = this.openOverlayController) == null || i.abort(), this.removeInstanceFromGlobalCollection(), this.scrollHandler.enableScroll();
54
+ super.disconnectedCallback(), this.overlayController?.abort(), this.openOverlayController?.abort(), this.removeInstanceFromGlobalCollection(), this.scrollHandler.enableScroll();
57
55
  }
58
56
  attachOpenOverlayEvents() {
59
57
  this.openOverlayController = new AbortController(), window.addEventListener("keydown", () => {
@@ -68,18 +66,18 @@ let J = (() => {
68
66
  b.splice(b.indexOf(this), 1);
69
67
  }
70
68
  // Close the component on click of any element that has the `closeAttribute` attribute.
71
- closeOnSbbOverlayCloseClick(e) {
72
- const i = e.composedPath().filter((c) => c instanceof window.HTMLElement).find((c) => c.hasAttribute(this.closeAttribute) && !c.hasAttribute("disabled"));
73
- if (!i)
69
+ closeOnSbbOverlayCloseClick(l) {
70
+ const r = l.composedPath().filter((c) => c instanceof window.HTMLElement).find((c) => c.hasAttribute(this.closeAttribute) && !c.hasAttribute("disabled"));
71
+ if (!r)
74
72
  return;
75
- const n = i.getAttribute("type") === "submit" ? i.form ?? null : null;
76
- b[b.length - 1].close(n, i);
73
+ const n = r.getAttribute("type") === "submit" ? r.form ?? null : null;
74
+ b[b.length - 1].close(n, r);
77
75
  }
78
76
  removeAriaLiveRefContent() {
79
77
  this.ariaLiveRef.textContent = "";
80
78
  }
81
- setAriaLiveRefContent(e) {
82
- this.ariaLiveRefToggle = !this.ariaLiveRefToggle, this.ariaLiveRef.textContent = `${D[this.language.current]}${e ? `, ${e}` : ""}${this.ariaLiveRefToggle ? " " : ""}`;
79
+ setAriaLiveRefContent(l) {
80
+ this.ariaLiveRefToggle = !this.ariaLiveRefToggle, this.ariaLiveRef.textContent = `${D[this.language.current]}${l ? `, ${l}` : ""}${this.ariaLiveRefToggle ? " " : ""}`;
83
81
  }
84
82
  /**
85
83
  * Focuses the element marked with sbb-focus-initial or the first focusable element.
@@ -89,10 +87,10 @@ let J = (() => {
89
87
  this.focusTrapController.focusInitialElement();
90
88
  }
91
89
  }, o = new WeakMap(), a = s, (() => {
92
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
93
- d = [k(), S({ attribute: "accessibility-label" })], w(s, null, d, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (i) => "accessibilityLabel" in i, get: (i) => i.accessibilityLabel, set: (i, n) => {
94
- i.accessibilityLabel = n;
95
- } }, metadata: e }, f, p), w(null, l = { value: a }, t, { kind: "class", name: a.name, metadata: e }, null, r), h = a = l.value, e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e }), u(a, r);
90
+ const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
91
+ d = [k(), S({ attribute: "accessibility-label" })], w(s, null, d, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (r) => "accessibilityLabel" in r, get: (r) => r.accessibilityLabel, set: (r, n) => {
92
+ r.accessibilityLabel = n;
93
+ } }, metadata: l }, f, p), w(null, t = { value: a }, e, { kind: "class", name: a.name, metadata: l }, null, i), h = a = t.value, l && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l }), u(a, i);
96
94
  })(), s);
97
95
  return h = a;
98
96
  })();