@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,55 +1,52 @@
1
- var y = (n) => {
2
- throw TypeError(n);
1
+ var A = (s) => {
2
+ throw TypeError(s);
3
3
  };
4
- var I = (n, r, l) => r.has(n) || y("Cannot " + l);
5
- var S = (n, r, l) => (I(n, r, "read from private field"), l ? l.call(n) : r.get(n)), z = (n, r, l) => r.has(n) ? y("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, l), _ = (n, r, l, c) => (I(n, r, "write to private field"), c ? c.call(n, l) : r.set(n, l), l);
6
- import { __esDecorate as m, __runInitializers as h } from "tslib";
7
- import { MutationController as w } from "@lit-labs/observers/mutation-controller.js";
8
- import { ResizeController as E } from "@lit-labs/observers/resize-controller.js";
9
- import { css as k, LitElement as R, html as O } from "lit";
10
- import { customElement as $, property as C } from "lit/decorators.js";
11
- import { ref as D } from "lit/directives/ref.js";
12
- import { isArrowKeyPressed as N, getNextElementIndex as K } from "../../core/a11y.js";
13
- import { forceType as M } from "../../core/decorators.js";
14
- import { isLean as P } from "../../core/dom.js";
15
- import { EventEmitter as j, throttle as H } from "../../core/eventing.js";
16
- import { SbbHydrationMixin as U } from "../../core/mixins.js";
17
- import { SbbTabElement as q } from "../tab.js";
18
- const F = k`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-group-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );display:block}.tab-group{display:flex;flex-wrap:wrap}.tab-content{margin-block-start:var(--sbb-spacing-responsive-m);transition:height var(--sbb-tab-group-animation-duration) var(--sbb-animation-easing)}.tab-content ::slotted(*){visibility:hidden;opacity:0;height:0;overflow:hidden;position:relative}.tab-content ::slotted(*[active]){visibility:visible;opacity:1;height:fit-content;overflow:unset;transition-duration:var(--sbb-tab-group-animation-duration);transition-delay:var(--sbb-tab-group-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:opacity,visibility}.tab-content ::slotted([role=tabpanel]: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)}`, W = {
4
+ var x = (s, a, n) => a.has(s) || A("Cannot " + n);
5
+ var T = (s, a, n) => (x(s, a, "read from private field"), n ? n.call(s) : a.get(s)), y = (s, a, n) => a.has(s) ? A("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(s) : a.set(s, n), u = (s, a, n, r) => (x(s, a, "write to private field"), r ? r.call(s, n) : a.set(s, n), n);
6
+ import { __esDecorate as h, __runInitializers as d } from "tslib";
7
+ import { MutationController as E } from "@lit-labs/observers/mutation-controller.js";
8
+ import { ResizeController as I } from "@lit-labs/observers/resize-controller.js";
9
+ import { css as C, LitElement as G, html as w } from "lit";
10
+ import { customElement as k, property as S } from "lit/decorators.js";
11
+ import { ref as R } from "lit/directives/ref.js";
12
+ import { isArrowKeyPressed as O, getNextElementIndex as $ } from "../../core/a11y.js";
13
+ import { forceType as D } from "../../core/decorators.js";
14
+ import { isLean as N } from "../../core/dom.js";
15
+ import { EventEmitter as K, throttle as M } from "../../core/eventing.js";
16
+ import { SbbHydrationMixin as P } from "../../core/mixins.js";
17
+ import { SbbTabElement as j } from "../tab.js";
18
+ const H = C`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-group-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );display:block}.tab-group{display:flex;flex-wrap:wrap}.tab-content{margin-block-start:var(--sbb-spacing-responsive-m);transition:height var(--sbb-tab-group-animation-duration) var(--sbb-animation-easing)}.tab-content ::slotted(*){visibility:hidden;opacity:0;height:0;overflow:hidden;position:relative}.tab-content ::slotted(*[active]){visibility:visible;opacity:1;height:fit-content;overflow:unset;transition-duration:var(--sbb-tab-group-animation-duration);transition-delay:var(--sbb-tab-group-animation-duration);transition-timing-function:var(--sbb-animation-easing);transition-property:opacity,visibility}.tab-content ::slotted([role=tabpanel]: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)}`, U = {
19
19
  attributeFilter: ["active", "disabled"]
20
20
  };
21
- let B = 0, ot = (() => {
22
- var b, d;
23
- let n = [$("sbb-tab-group")], r, l = [], c, v = U(R), p = [], g, A, x = [], T = [];
24
- var f = (d = class extends v {
21
+ let q = 0, at = (() => {
22
+ var c, o;
23
+ let s = [k("sbb-tab-group")], a, n = [], r, f = P(G), _ = [], m, v, p = [], g = [];
24
+ var b = (o = class extends f {
25
25
  constructor() {
26
- var t;
27
26
  super();
28
- z(this, b);
29
- this._tabs = (h(this, p), []), this._tabAttributeObserver = new w(this, {
27
+ y(this, c);
28
+ this._tabs = (d(this, _), []), this._tabAttributeObserver = new E(this, {
30
29
  target: null,
31
- config: W,
32
- callback: (e) => this._onTabAttributesChange(e)
33
- }), this._tabGroupResizeObserver = new E(this, {
30
+ config: U,
31
+ callback: (t) => this._onTabAttributesChange(t)
32
+ }), this._tabGroupResizeObserver = new I(this, {
34
33
  target: null,
35
34
  skipInitial: !0,
36
- callback: (e) => this._onTabGroupElementResize(e)
37
- }), this._tabContentResizeObserver = new E(this, {
35
+ callback: (t) => this._onTabGroupElementResize(t)
36
+ }), this._tabContentResizeObserver = new I(this, {
38
37
  target: null,
39
38
  skipInitial: !0,
40
- callback: (e) => this._onTabContentElementResize(e)
41
- }), this._size = P() ? "s" : "l", _(this, b, h(this, x, 0)), this._selectedTabChanged = (h(this, T), new j(this, f.events.didChange)), this._onContentSlotChange = () => {
42
- var i, a;
39
+ callback: (t) => this._onTabContentElementResize(t)
40
+ }), this._size = N() ? "s" : "l", u(this, c, d(this, p, 0)), this._selectedTabChanged = (d(this, g), new K(this, b.events.didChange)), this._onContentSlotChange = () => {
43
41
  this._tabContentElement = this.shadowRoot.querySelector("div.tab-content");
44
- const e = this._getTabs().filter((s) => !this._tabs.includes(s));
45
- e.length && (e.forEach((s) => this._configure(s)), this._tabs = this._tabs.concat(e), (a = (i = e.find((s) => s.active)) == null ? void 0 : i.tabGroupActions) == null || a.select());
42
+ const t = this._getTabs().filter((e) => !this._tabs.includes(e));
43
+ t.length && (t.forEach((e) => this._configure(e)), this._tabs = this._tabs.concat(t), t.find((e) => e.active)?.tabGroupActions?.select());
46
44
  }, this._onTabsSlotChange = () => {
47
- const e = this._getTabs();
48
- e.length < this._tabs.length && (this._tabs.filter((a) => !e.includes(a)).forEach((a) => {
49
- var s;
50
- (s = a.tab) == null || s.remove();
51
- }), this._tabs = e), this._tabs.forEach((i) => i.setAttribute("data-size", this.size));
52
- }, (t = this.addEventListener) == null || t.call(this, "keydown", (e) => this._handleKeyDown(e));
45
+ const t = this._getTabs();
46
+ t.length < this._tabs.length && (this._tabs.filter((i) => !t.includes(i)).forEach((i) => {
47
+ i.tab?.remove();
48
+ }), this._tabs = t), this._tabs.forEach((e) => e.setAttribute("data-size", this.size));
49
+ }, this.addEventListener?.("keydown", (t) => this._handleKeyDown(t));
53
50
  }
54
51
  /**
55
52
  * Size variant, either s, l or xl.
@@ -66,10 +63,10 @@ let B = 0, ot = (() => {
66
63
  * the tab group, the first enabled tab will be selected.
67
64
  */
68
65
  get initialSelectedIndex() {
69
- return S(this, b);
66
+ return T(this, c);
70
67
  }
71
68
  set initialSelectedIndex(t) {
72
- _(this, b, t);
69
+ u(this, c, t);
73
70
  }
74
71
  firstUpdated(t) {
75
72
  super.firstUpdated(t), this._tabs = this._getTabs(), this._tabs.forEach((e) => this._configure(e)), this._initSelection(), this._tabGroupResizeObserver.observe(this._tabGroupElement);
@@ -79,24 +76,21 @@ let B = 0, ot = (() => {
79
76
  * @param tabIndex The index of the tab you want to disable.
80
77
  */
81
78
  disableTab(t) {
82
- var e, i;
83
- (i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.disable();
79
+ this._tabs[t]?.tabGroupActions?.disable();
84
80
  }
85
81
  /**
86
82
  * Enables a tab by index.
87
83
  * @param tabIndex The index of the tab you want to enable.
88
84
  */
89
85
  enableTab(t) {
90
- var e, i;
91
- (i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.enable();
86
+ this._tabs[t]?.tabGroupActions?.enable();
92
87
  }
93
88
  /**
94
89
  * Activates a tab by index.
95
90
  * @param tabIndex The index of the tab you want to activate.
96
91
  */
97
92
  activateTab(t) {
98
- var e, i;
99
- (i = (e = this._tabs[t]) == null ? void 0 : e.tabGroupActions) == null || i.select();
93
+ this._tabs[t]?.tabGroupActions?.select();
100
94
  }
101
95
  _getTabs() {
102
96
  return Array.from(this.children ?? []).filter((t) => /^sbb-tab-label$/u.test(t.localName));
@@ -109,26 +103,24 @@ let B = 0, ot = (() => {
109
103
  t.setAttribute("data-size", this.size);
110
104
  }
111
105
  _assignId() {
112
- return `sbb-tab-panel-${++B}`;
106
+ return `sbb-tab-panel-${++q}`;
113
107
  }
114
108
  _initSelection() {
115
- var t, e, i;
116
- this.initialSelectedIndex >= 0 && this.initialSelectedIndex < this._tabs.length && !this._tabs[this.initialSelectedIndex].disabled ? (t = this._tabs[this.initialSelectedIndex].tabGroupActions) == null || t.select() : (i = (e = this._enabledTabs()[0]) == null ? void 0 : e.tabGroupActions) == null || i.select();
109
+ this.initialSelectedIndex >= 0 && this.initialSelectedIndex < this._tabs.length && !this._tabs[this.initialSelectedIndex].disabled ? this._tabs[this.initialSelectedIndex].tabGroupActions?.select() : this._enabledTabs()[0]?.tabGroupActions?.select();
117
110
  }
118
111
  _onTabAttributesChange(t) {
119
- var e, i, a;
120
- for (const s of t) {
121
- if (s.type !== "attributes")
112
+ for (const e of t) {
113
+ if (e.type !== "attributes")
122
114
  return;
123
- const o = s.target;
124
- s.attributeName === "disabled" && (o.hasAttribute("disabled") && o !== this._selectedTab ? (e = o.tabGroupActions) == null || e.disable() : o.disabled && ((i = o.tabGroupActions) == null || i.enable())), s.attributeName === "active" && (o.hasAttribute("active") && !o.disabled ? (a = o.tabGroupActions) == null || a.select() : o === this._selectedTab && o.toggleAttribute("active", !0));
115
+ const i = e.target;
116
+ e.attributeName === "disabled" && (i.hasAttribute("disabled") && i !== this._selectedTab ? i.tabGroupActions?.disable() : i.disabled && i.tabGroupActions?.enable()), e.attributeName === "active" && (i.hasAttribute("active") && !i.disabled ? i.tabGroupActions?.select() : i === this._selectedTab && i.toggleAttribute("active", !0));
125
117
  }
126
118
  }
127
119
  _onTabGroupElementResize(t) {
128
120
  for (const e of t) {
129
121
  const i = e.target.firstElementChild.assignedElements();
130
- for (const a of i)
131
- a.toggleAttribute("data-has-divider", a === i[0] || a.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
122
+ for (const l of i)
123
+ l.toggleAttribute("data-has-divider", l === i[0] || l.offsetLeft === i[0].offsetLeft), this.style.setProperty("--sbb-tab-group-width", `${this._tabGroupElement.clientWidth}px`);
132
124
  }
133
125
  }
134
126
  _onTabContentElementResize(t) {
@@ -139,80 +131,73 @@ let B = 0, ot = (() => {
139
131
  }
140
132
  }
141
133
  _configure(t) {
142
- var e;
143
134
  t.tabGroupActions = {
144
135
  activate: () => {
145
- var i;
146
- t.toggleAttribute("active", !0), t.active = !0, t.tabIndex = 0, t.setAttribute("aria-selected", "true"), (i = t.tab) == null || i.toggleAttribute("active", !0);
136
+ t.toggleAttribute("active", !0), t.active = !0, t.tabIndex = 0, t.setAttribute("aria-selected", "true"), t.tab?.toggleAttribute("active", !0);
147
137
  },
148
138
  deactivate: () => {
149
- var i;
150
- t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active");
139
+ t.removeAttribute("active"), t.active = !1, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), t.tab?.removeAttribute("active");
151
140
  },
152
141
  disable: () => {
153
- var i, a, s;
154
- t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), (i = t.tab) == null || i.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, (s = (a = this._enabledTabs()[0]) == null ? void 0 : a.tabGroupActions) == null || s.select()));
142
+ t.disabled || (t.hasAttribute("disabled") || t.toggleAttribute("disabled", !0), t.disabled = !0, t.tabIndex = -1, t.setAttribute("aria-selected", "false"), t.tab?.removeAttribute("active"), t.active && (t.removeAttribute("active"), t.active = !1, this._enabledTabs()[0]?.tabGroupActions?.select()));
155
143
  },
156
144
  enable: () => {
157
145
  t.disabled && (t.removeAttribute("disabled"), t.disabled = !1);
158
146
  },
159
147
  select: () => {
160
- var i, a;
161
148
  if (t !== this._selectedTab && !t.disabled) {
162
- const s = this._selectedTab;
163
- s && ((i = s.tabGroupActions) == null || i.deactivate(), this._tabContentResizeObserver.unobserve(s.tab)), (a = t.tabGroupActions) == null || a.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
164
- const o = this._tabs;
149
+ const e = this._selectedTab;
150
+ e && (e.tabGroupActions?.deactivate(), this._tabContentResizeObserver.unobserve(e.tab)), t.tabGroupActions?.activate(), this._selectedTab = t, this._tabContentResizeObserver.observe(t.tab);
151
+ const i = this._tabs;
165
152
  this._selectedTabChanged.emit({
166
- activeIndex: o.findIndex((u) => u === t),
153
+ activeIndex: i.findIndex((l) => l === t),
167
154
  activeTabLabel: t,
168
155
  activeTab: t.tab,
169
- previousIndex: o.findIndex((u) => u === s),
170
- previousTabLabel: s,
171
- previousTab: s == null ? void 0 : s.tab
156
+ previousIndex: i.findIndex((l) => l === e),
157
+ previousTabLabel: e,
158
+ previousTab: e?.tab
172
159
  });
173
160
  }
174
161
  }
175
- }, ((e = t.nextElementSibling) == null ? void 0 : e.localName) === "sbb-tab" && (t.tab = t.nextElementSibling, t.tab.id = this._assignId(), t.tab instanceof q && (t.tab.tabIndex = 0, t.tab.configure())), t.tabIndex = -1, t.disabled = t.hasAttribute("disabled"), t.active = t.hasAttribute("active") && !t.disabled, t.setAttribute("role", "tab"), t.setAttribute("aria-selected", String(t.active)), t.addEventListener("click", () => {
176
- var i;
177
- (i = t.tabGroupActions) == null || i.select();
162
+ }, t.nextElementSibling?.localName === "sbb-tab" && (t.tab = t.nextElementSibling, t.tab.id = this._assignId(), t.tab instanceof j && (t.tab.tabIndex = 0, t.tab.configure())), t.tabIndex = -1, t.disabled = t.hasAttribute("disabled"), t.active = t.hasAttribute("active") && !t.disabled, t.setAttribute("role", "tab"), t.setAttribute("aria-selected", String(t.active)), t.addEventListener("click", () => {
163
+ t.tabGroupActions?.select();
178
164
  }), t.tab && (t.setAttribute("aria-controls", t.tab.id), t.tab.setAttribute("role", "tabpanel"), t.tab.toggleAttribute("active", t.active)), this._tabAttributeObserver.observe(t), t.slot = "tab-bar";
179
165
  }
180
166
  _handleKeyDown(t) {
181
- var i, a, s;
182
167
  const e = this._enabledTabs();
183
168
  if (!(!e || // don't trap nested handling
184
- t.target !== this && t.target.parentElement !== this) && N(t)) {
185
- const o = e.findIndex((G) => G.active), u = K(t, o, e.length);
186
- (a = (i = e[u]) == null ? void 0 : i.tabGroupActions) == null || a.select(), (s = e[u]) == null || s.focus(), t.preventDefault();
169
+ t.target !== this && t.target.parentElement !== this) && O(t)) {
170
+ const i = e.findIndex((z) => z.active), l = $(t, i, e.length);
171
+ e[l]?.tabGroupActions?.select(), e[l]?.focus(), t.preventDefault();
187
172
  }
188
173
  }
189
174
  render() {
190
- return O`
175
+ return w`
191
176
  <div
192
177
  class="tab-group"
193
178
  role="tablist"
194
- ${D((t) => this._tabGroupElement = t)}
179
+ ${R((t) => this._tabGroupElement = t)}
195
180
  >
196
181
  <slot name="tab-bar" @slotchange=${this._onTabsSlotChange}></slot>
197
182
  </div>
198
183
 
199
184
  <div class="tab-content">
200
- <slot @slotchange=${H(this._onContentSlotChange, 150)}></slot>
185
+ <slot @slotchange=${M(this._onContentSlotChange, 150)}></slot>
201
186
  </div>
202
187
  `;
203
188
  }
204
- }, b = new WeakMap(), c = d, (() => {
205
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
206
- g = [C()], A = [M(), C({ attribute: "initial-selected-index", type: Number })], m(d, null, g, { kind: "setter", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, set: (e, i) => {
189
+ }, c = new WeakMap(), r = o, (() => {
190
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
191
+ m = [S()], v = [D(), S({ attribute: "initial-selected-index", type: Number })], h(o, null, m, { kind: "setter", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, set: (e, i) => {
207
192
  e.size = i;
208
- } }, metadata: t }, null, p), m(d, null, A, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
193
+ } }, metadata: t }, null, _), h(o, null, v, { kind: "accessor", name: "initialSelectedIndex", static: !1, private: !1, access: { has: (e) => "initialSelectedIndex" in e, get: (e) => e.initialSelectedIndex, set: (e, i) => {
209
194
  e.initialSelectedIndex = i;
210
- } }, metadata: t }, x, T), m(null, r = { value: c }, n, { kind: "class", name: c.name, metadata: t }, null, l), f = c = r.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
211
- })(), d.styles = F, d.events = {
195
+ } }, metadata: t }, p, g), h(null, a = { value: r }, s, { kind: "class", name: r.name, metadata: t }, null, n), b = r = a.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
196
+ })(), o.styles = H, o.events = {
212
197
  didChange: "didChange"
213
- }, h(c, l), d);
214
- return f = c;
198
+ }, d(r, n), o);
199
+ return b = r;
215
200
  })();
216
201
  export {
217
- ot as SbbTabGroupElement
202
+ at as SbbTabGroupElement
218
203
  };
@@ -1,8 +1,8 @@
1
1
  var B = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var I = (t, e, o) => e.has(t) || B("Cannot " + o);
5
- var m = (t, e, o) => (I(t, e, "read from private field"), o ? o.call(t) : e.get(t)), d = (t, e, o) => e.has(t) ? B("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), f = (t, e, o, s) => (I(t, e, "write to private field"), s ? s.call(t, o) : e.set(t, o), o);
4
+ var I = (t, e, s) => e.has(t) || B("Cannot " + s);
5
+ var m = (t, e, s) => (I(t, e, "read from private field"), s ? s.call(t) : e.get(t)), d = (t, e, s) => e.has(t) ? B("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s, o) => (I(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
6
6
  import { __esDecorate as h, __runInitializers as i } from "tslib";
7
7
  import { css as D, LitElement as G } from "lit";
8
8
  import { customElement as M, property as u } from "lit/decorators.js";
@@ -10,14 +10,14 @@ import { unsafeStatic as E, html as N } from "lit/static-html.js";
10
10
  import { slotState as j, forceType as $, omitEmptyConverter as A } from "../../core/decorators.js";
11
11
  import { SbbDisabledMixin as L } from "../../core/mixins.js";
12
12
  import { SbbIconNameMixin as O } from "../../icon.js";
13
- const C = D`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-color: var(--sbb-color-granite);--sbb-tab-label-icon-color: var(--sbb-color-black);--sbb-tab-label-background-color: var(--sbb-color-white);--sbb-tab-label-cursor: pointer;--sbb-tab-label-pointer-events: unset;--sbb-tab-label-inset: 0;--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-marker-transform: scale(0);--sbb-tab-label-text-decoration: none;--sbb-tab-label-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tab-label-animation-easing: var(--sbb-animation-easing);--sbb-tab-label-amount-color: var(--sbb-color-metal);display:inline-block;max-width:100%;pointer-events:var(--sbb-tab-label-pointer-events);-webkit-tap-highlight-color:transparent;outline:none!important}@media (forced-colors: active){:host{--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host([data-size=s]){--sbb-tab-label-height: var(--sbb-size-element-xs);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xxxs)}:host([disabled]){--sbb-tab-label-icon-color: var(--sbb-color-granite);--sbb-tab-label-background-color: var(--sbb-color-milk);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-text-decoration: line-through}@media (forced-colors: active){:host([disabled]){--sbb-tab-label-color: GrayText;--sbb-tab-label-icon-color: GrayText;--sbb-tab-label-amount-color: GrayText}}:host([active]:not([disabled])){--sbb-tab-label-color: var(--sbb-color-charcoal);--sbb-tab-label-icon-color: var(--sbb-tab-label-color);--sbb-tab-label-background-color: var(--sbb-color-black);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-marker-transform: scale(1)}@media (forced-colors: active){:host([active]:not([disabled])){--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}@media (any-hover: hover){:host(:hover:not([disabled])){--sbb-tab-label-marker-transform: scale(1)}}:host(:is([data-active],:active)){--sbb-tab-label-color: var(--sbb-color-charcoal)}.sbb-tab-label__wrapper{position:relative}:host(:focus-visible) .sbb-tab-label__wrapper:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:calc(var(--sbb-border-radius-2x) - var(--sbb-focus-outline-offset))}.sbb-tab-label{position:relative;margin:0;min-height:var(--sbb-tab-label-height);display:flex;align-items:center;padding-inline:var(--sbb-tab-label-inline-padding);gap:var(--sbb-spacing-fixed-2x);-webkit-user-select:none;user-select:none;cursor:var(--sbb-tab-label-cursor);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);color:var(--sbb-tab-label-icon-color)}:host([data-has-divider]) .sbb-tab-label:after{content:"";position:absolute;inset-inline-start:0;inset-block-end:0;width:var(--sbb-tab-group-width);height:var(--sbb-border-width-1x);background-color:var(--sbb-color-cloud)}.sbb-tab-label:before{position:absolute;content:"";inset-inline:0;inset-block-end:0;height:var(--sbb-border-width-3x);background-color:var(--sbb-tab-label-color);transform:var(--sbb-tab-label-marker-transform);transition-duration:var(--sbb-tab-label-animation-duration);transition-timing-function:var(--sbb-tab-label-animation-easing);transition-property:transform,background-color;z-index:1}.sbb-tab-label__icon,.sbb-tab-label__text,.sbb-tab-label__amount{text-decoration:var(--sbb-tab-label-text-decoration)}.sbb-tab-label__icon{display:flex;flex-shrink:0;color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tab-label__icon{display:none}.sbb-tab-label__text{color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;--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);font-weight:700}:host([data-size=s]) .sbb-tab-label__text{--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);font-weight:700}:host([data-size=xl]) .sbb-tab-label__text{--sbb-text-font-size: var(--sbb-font-size-text-xl);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);font-weight:700}:host(:not([data-slot-names~=unnamed])) .sbb-tab-label__text{display:none}.sbb-tab-label__amount{display:flex;color:var(--sbb-tab-label-amount-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);--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)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tab-label__amount{display:none}:host([data-size=s]) .sbb-tab-label__amount{--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)}:host([data-size=xl]) .sbb-tab-label__amount{--sbb-text-font-size: var(--sbb-font-size-text-xl);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)}`;
13
+ const C = D`*,:before,:after{box-sizing:border-box}:host{--sbb-tab-label-height: var(--sbb-size-element-m);--sbb-tab-label-color: var(--sbb-color-granite);--sbb-tab-label-icon-color: var(--sbb-color-black);--sbb-tab-label-background-color: var(--sbb-color-white);--sbb-tab-label-cursor: pointer;--sbb-tab-label-pointer-events: unset;--sbb-tab-label-inset: 0;--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xs);--sbb-tab-label-marker-transform: scale(0);--sbb-tab-label-text-decoration: none;--sbb-tab-label-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tab-label-animation-easing: var(--sbb-animation-easing);--sbb-tab-label-amount-color: var(--sbb-color-metal);display:inline-block;max-width:100%;pointer-events:var(--sbb-tab-label-pointer-events);-webkit-tap-highlight-color:transparent;outline:none!important}@media (forced-colors: active){:host{--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}:host([data-size=s]){--sbb-tab-label-height: var(--sbb-size-element-xs);--sbb-tab-label-inline-padding: var(--sbb-spacing-responsive-xxxs)}:host([disabled]){--sbb-tab-label-icon-color: var(--sbb-color-granite);--sbb-tab-label-background-color: var(--sbb-color-milk);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-text-decoration: line-through}@media (forced-colors: active){:host([disabled]){--sbb-tab-label-color: GrayText;--sbb-tab-label-icon-color: GrayText;--sbb-tab-label-amount-color: GrayText}}:host([active]:not([disabled])){--sbb-tab-label-color: var(--sbb-color-charcoal);--sbb-tab-label-icon-color: var(--sbb-tab-label-color);--sbb-tab-label-background-color: var(--sbb-color-black);--sbb-tab-label-cursor: unset;--sbb-tab-label-pointer-events: none;--sbb-tab-label-marker-transform: scale(1)}@media (forced-colors: active){:host([active]:not([disabled])){--sbb-tab-label-color: ButtonText;--sbb-tab-label-icon-color: ButtonText;--sbb-tab-label-amount-color: ButtonText}}@media (any-hover: hover){:host(:hover:not([disabled])){--sbb-tab-label-marker-transform: scale(1)}}:host(:is([data-active],:active)){--sbb-tab-label-color: var(--sbb-color-charcoal)}.sbb-tab-label__wrapper{position:relative}:host(:focus-visible) .sbb-tab-label__wrapper:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);content:"";position:absolute;display:block;inset:0;z-index:1;border-radius:calc(var(--sbb-border-radius-2x) - var(--sbb-focus-outline-offset))}.sbb-tab-label{position:relative;margin:0;min-height:var(--sbb-tab-label-height);display:flex;align-items:center;padding-inline:var(--sbb-tab-label-inline-padding);gap:var(--sbb-spacing-fixed-2x);-webkit-user-select:none;user-select:none;cursor:var(--sbb-tab-label-cursor);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);color:var(--sbb-tab-label-icon-color)}:host([data-has-divider]) .sbb-tab-label:after{content:"";position:absolute;inset-inline-start:0;inset-block-end:0;width:var(--sbb-tab-group-width);height:var(--sbb-border-width-1x);background-color:var(--sbb-color-cloud)}.sbb-tab-label:before{position:absolute;content:"";inset-inline:0;inset-block-end:0;height:var(--sbb-border-width-3x);background-color:var(--sbb-tab-label-color);transform:var(--sbb-tab-label-marker-transform);transition-duration:var(--sbb-tab-label-animation-duration);transition-timing-function:var(--sbb-tab-label-animation-easing);transition-property:transform,background-color;z-index:1}.sbb-tab-label__icon,.sbb-tab-label__text,.sbb-tab-label__amount{text-decoration:var(--sbb-tab-label-text-decoration)}.sbb-tab-label__icon{display:flex;flex-shrink:0;color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tab-label__icon{display:none}.sbb-tab-label__text{color:var(--sbb-tab-label-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;--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);font-weight:700}:host([data-size=s]) .sbb-tab-label__text{--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);font-weight:700}:host([data-size=xl]) .sbb-tab-label__text{--sbb-text-font-size: var(--sbb-font-size-text-xl);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);font-weight:700}:host(:not([data-slot-names~=unnamed])) .sbb-tab-label__text{display:none}.sbb-tab-label__amount{display:flex;color:var(--sbb-tab-label-amount-color);transition:color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);--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)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tab-label__amount{display:none}:host([data-size=s]) .sbb-tab-label__amount{--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)}:host([data-size=xl]) .sbb-tab-label__amount{--sbb-text-font-size: var(--sbb-font-size-text-xl);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)}`;
14
14
  let V = (() => {
15
15
  var n, r, c, l;
16
- let t = [M("sbb-tab-label"), j()], e, o = [], s, p = L(O(G)), g, x = [], _ = [], y, z = [], w = [], k, T = [], S = [];
16
+ let t = [M("sbb-tab-label"), j()], e, s = [], o, p = L(O(G)), x, g = [], _ = [], y, z = [], w = [], k, T = [], S = [];
17
17
  return l = class extends p {
18
18
  constructor() {
19
19
  super(...arguments);
20
- d(this, n, i(this, x, "1"));
20
+ d(this, n, i(this, g, "1"));
21
21
  d(this, r, (i(this, _), i(this, z, !1)));
22
22
  d(this, c, (i(this, w), i(this, T, "")));
23
23
  i(this, S);
@@ -64,16 +64,16 @@ let V = (() => {
64
64
  </div>
65
65
  `;
66
66
  }
67
- }, n = new WeakMap(), r = new WeakMap(), c = new WeakMap(), s = l, (() => {
67
+ }, n = new WeakMap(), r = new WeakMap(), c = new WeakMap(), o = l, (() => {
68
68
  const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
69
- g = [u()], y = [$(), u({ reflect: !0, type: Boolean })], k = [$(), u({ reflect: !0, converter: A })], h(l, null, g, { kind: "accessor", name: "level", static: !1, private: !1, access: { has: (a) => "level" in a, get: (a) => a.level, set: (a, v) => {
69
+ x = [u()], y = [$(), u({ reflect: !0, type: Boolean })], k = [$(), u({ reflect: !0, converter: A })], h(l, null, x, { kind: "accessor", name: "level", static: !1, private: !1, access: { has: (a) => "level" in a, get: (a) => a.level, set: (a, v) => {
70
70
  a.level = v;
71
- } }, metadata: b }, x, _), h(l, null, y, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (a) => "active" in a, get: (a) => a.active, set: (a, v) => {
71
+ } }, metadata: b }, g, _), h(l, null, y, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (a) => "active" in a, get: (a) => a.active, set: (a, v) => {
72
72
  a.active = v;
73
73
  } }, metadata: b }, z, w), h(l, null, k, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (a) => "amount" in a, get: (a) => a.amount, set: (a, v) => {
74
74
  a.amount = v;
75
- } }, metadata: b }, T, S), h(null, e = { value: s }, t, { kind: "class", name: s.name, metadata: b }, null, o), s = e.value, b && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
76
- })(), l.styles = C, i(s, o), s;
75
+ } }, metadata: b }, T, S), h(null, e = { value: o }, t, { kind: "class", name: o.name, metadata: b }, null, s), o = e.value, b && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
76
+ })(), l.styles = C, i(o, s), o;
77
77
  })();
78
78
  export {
79
79
  V as SbbTabLabelElement
@@ -1,80 +1,77 @@
1
- var B = (a) => {
1
+ var I = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var D = (a, s, i) => s.has(a) || B("Cannot " + i);
5
- var m = (a, s, i) => (D(a, s, "read from private field"), i ? i.call(a) : s.get(a)), v = (a, s, i) => s.has(a) ? B("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, i), n = (a, s, i, r) => (D(a, s, "write to private field"), r ? r.call(a, i) : s.set(a, i), i);
6
- import { __esDecorate as f, __runInitializers as l } from "tslib";
7
- import { css as F, html as V } from "lit";
8
- import { customElement as $, property as p } from "lit/decorators.js";
9
- import { SbbButtonBaseElement as G } from "../../core/base-elements.js";
10
- import { slotState as H, forceType as A, omitEmptyConverter as O, getOverride as j } from "../../core/decorators.js";
11
- import { isLean as L } from "../../core/dom.js";
12
- import { EventEmitter as x } from "../../core/eventing.js";
13
- import { SbbDisabledTabIndexActionMixin as M } from "../../core/mixins.js";
14
- import { SbbIconNameMixin as R } from "../../icon.js";
15
- const U = F`*,:before,:after{box-sizing:border-box}:host{display:inline-block;outline:none!important;max-width:100%;--sbb-tag-border-radius: var(--sbb-border-radius-infinity);--sbb-tag-background-color: var(--sbb-color-white);--sbb-tag-border-color: var(--sbb-color-cloud);--sbb-tag-border-style: solid;--sbb-tag-border-width: var(--sbb-border-width-1x);--sbb-tag-text-color: var(--sbb-color-charcoal);--sbb-tag-amount-color: var(--sbb-color-metal);--sbb-tag-height: var(--sbb-size-element-xs);--sbb-tag-inset: 0;--sbb-tag-cursor: pointer;--sbb-tag-content-shift: translateY(0);--sbb-tag-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tag-animation-easing: var(--sbb-animation-easing);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-tag-gap: var(--sbb-spacing-fixed-2x)}@media (forced-colors: active){:host{--sbb-tag-background-color: Canvas !important;--sbb-tag-text-color: ButtonText;--sbb-tag-amount-color: ButtonText;--sbb-tag-border-color: CanvasText;--sbb-tag-border-width: var(--sbb-border-width-2x)}}:host([data-checked]){--sbb-tag-border-color: var(--sbb-color-charcoal);--sbb-tag-border-width: var(--sbb-border-width-2x)}@media (forced-colors: active){:host([data-checked]){--sbb-tag-border-color: Highlight !important}}:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: var(--sbb-color-granite);--sbb-tag-amount-color: var(--sbb-tag-text-color);--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-cement);--sbb-tag-border-style: dashed;--sbb-tag-cursor: unset;--sbb-tag-pointer-events: none}@media (forced-colors: active){:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: GrayText;--sbb-tag-amount-color: GrayText;--sbb-tag-border-color: GrayText}}:host([data-checked]:is(:disabled,[disabled-interactive])){--sbb-tag-border-color: var(--sbb-color-metal)}@media (any-hover: hover){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-inset: calc(var(--sbb-border-width-2x) * -1);--sbb-tag-content-shift: translateY(calc(var(--sbb-border-width-1x) * -1))}}@media (any-hover: hover) and (forced-colors: active){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-border-color: Highlight}}:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-iron);--sbb-tag-border-width: var(--sbb-border-width-2x);--sbb-tag-text-color: var(--sbb-color-iron)}@media (forced-colors: active){:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-border-color: Highlight;--sbb-tag-text-color: ButtonText}}:host([size=s]){--sbb-tag-height: var(--sbb-size-element-xxxs);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-3x)}.sbb-tag{--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);font-weight:700;position:relative;display:flex;align-items:center;height:var(--sbb-tag-height);max-width:100%;gap:var(--sbb-tag-gap);padding-inline:var(--sbb-tag-padding-inline);cursor:var(--sbb-tag-cursor);border-radius:var(--sbb-tag-border-radius);color:var(--sbb-tag-text-color);transition:color var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;pointer-events:var(--sbb-tag-pointer-events, unset)}.sbb-tag:before{content:"";position:absolute;inset:var(--sbb-tag-inset);background-color:var(--sbb-tag-background-color);border:var(--sbb-tag-border-width) var(--sbb-tag-border-style) var(--sbb-tag-border-color);border-radius:var(--sbb-tag-border-radius);transition-duration:var(--sbb-tag-animation-duration);transition-timing-function:var(--sbb-tag-animation-easing);transition-property:inset,background-color,border-color,box-shadow}:host(:focus-visible) .sbb-tag:before{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-tag__icon{display:flex;align-items:center;height:calc(var(--sbb-typo-line-height-body-text) * 1em);flex-shrink:0}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tag__icon{display:none}.sbb-tag__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-tag__amount{--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);color:var(--sbb-tag-amount-color)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tag__amount{display:none}.sbb-tag--shift{transition:transform var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);transform:var(--sbb-tag-content-shift);will-change:transform}`;
16
- let et = (() => {
4
+ var B = (a, s, i) => s.has(a) || I("Cannot " + i);
5
+ var u = (a, s, i) => (B(a, s, "read from private field"), i ? i.call(a) : s.get(a)), m = (a, s, i) => s.has(a) ? I("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, i), n = (a, s, i, b) => (B(a, s, "write to private field"), b ? b.call(a, i) : s.set(a, i), i);
6
+ import { __esDecorate as v, __runInitializers as l } from "tslib";
7
+ import { css as G, html as A } from "lit";
8
+ import { customElement as F, property as f } from "lit/decorators.js";
9
+ import { SbbButtonBaseElement as V } from "../../core/base-elements.js";
10
+ import { slotState as $, forceType as D, omitEmptyConverter as H, getOverride as O } from "../../core/decorators.js";
11
+ import { isLean as j } from "../../core/dom.js";
12
+ import { EventEmitter as p } from "../../core/eventing.js";
13
+ import { SbbDisabledTabIndexActionMixin as L } from "../../core/mixins.js";
14
+ import { SbbIconNameMixin as M } from "../../icon.js";
15
+ const R = G`*,:before,:after{box-sizing:border-box}:host{display:inline-block;outline:none!important;max-width:100%;--sbb-tag-border-radius: var(--sbb-border-radius-infinity);--sbb-tag-background-color: var(--sbb-color-white);--sbb-tag-border-color: var(--sbb-color-cloud);--sbb-tag-border-style: solid;--sbb-tag-border-width: var(--sbb-border-width-1x);--sbb-tag-text-color: var(--sbb-color-charcoal);--sbb-tag-amount-color: var(--sbb-color-metal);--sbb-tag-height: var(--sbb-size-element-xs);--sbb-tag-inset: 0;--sbb-tag-cursor: pointer;--sbb-tag-content-shift: translateY(0);--sbb-tag-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-tag-animation-easing: var(--sbb-animation-easing);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-tag-gap: var(--sbb-spacing-fixed-2x)}@media (forced-colors: active){:host{--sbb-tag-background-color: Canvas !important;--sbb-tag-text-color: ButtonText;--sbb-tag-amount-color: ButtonText;--sbb-tag-border-color: CanvasText;--sbb-tag-border-width: var(--sbb-border-width-2x)}}:host([data-checked]){--sbb-tag-border-color: var(--sbb-color-charcoal);--sbb-tag-border-width: var(--sbb-border-width-2x)}@media (forced-colors: active){:host([data-checked]){--sbb-tag-border-color: Highlight !important}}:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: var(--sbb-color-granite);--sbb-tag-amount-color: var(--sbb-tag-text-color);--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-cement);--sbb-tag-border-style: dashed;--sbb-tag-cursor: unset;--sbb-tag-pointer-events: none}@media (forced-colors: active){:host(:is(:disabled,[disabled-interactive])){--sbb-tag-text-color: GrayText;--sbb-tag-amount-color: GrayText;--sbb-tag-border-color: GrayText}}:host([data-checked]:is(:disabled,[disabled-interactive])){--sbb-tag-border-color: var(--sbb-color-metal)}@media (any-hover: hover){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-inset: calc(var(--sbb-border-width-2x) * -1);--sbb-tag-content-shift: translateY(calc(var(--sbb-border-width-1x) * -1))}}@media (any-hover: hover) and (forced-colors: active){:host(:hover:not(:disabled,[disabled-interactive],:active,[data-active])){--sbb-tag-border-color: Highlight}}:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-background-color: var(--sbb-color-milk);--sbb-tag-border-color: var(--sbb-color-iron);--sbb-tag-border-width: var(--sbb-border-width-2x);--sbb-tag-text-color: var(--sbb-color-iron)}@media (forced-colors: active){:host(:is(:active,[data-active]):not(:disabled,[disabled-interactive])){--sbb-tag-border-color: Highlight;--sbb-tag-text-color: ButtonText}}:host([size=s]){--sbb-tag-height: var(--sbb-size-element-xxxs);--sbb-tag-padding-inline: var(--sbb-spacing-fixed-3x)}.sbb-tag{--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);font-weight:700;position:relative;display:flex;align-items:center;height:var(--sbb-tag-height);max-width:100%;gap:var(--sbb-tag-gap);padding-inline:var(--sbb-tag-padding-inline);cursor:var(--sbb-tag-cursor);border-radius:var(--sbb-tag-border-radius);color:var(--sbb-tag-text-color);transition:color var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;pointer-events:var(--sbb-tag-pointer-events, unset)}.sbb-tag:before{content:"";position:absolute;inset:var(--sbb-tag-inset);background-color:var(--sbb-tag-background-color);border:var(--sbb-tag-border-width) var(--sbb-tag-border-style) var(--sbb-tag-border-color);border-radius:var(--sbb-tag-border-radius);transition-duration:var(--sbb-tag-animation-duration);transition-timing-function:var(--sbb-tag-animation-easing);transition-property:inset,background-color,border-color,box-shadow}:host(:focus-visible) .sbb-tag:before{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-tag__icon{display:flex;align-items:center;height:calc(var(--sbb-typo-line-height-body-text) * 1em);flex-shrink:0}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-tag__icon{display:none}.sbb-tag__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-tag__amount{--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);color:var(--sbb-tag-amount-color)}:host(:not([data-slot-names~=amount],[amount])) .sbb-tag__amount{display:none}.sbb-tag--shift{transition:transform var(--sbb-tag-animation-duration) var(--sbb-tag-animation-easing);transform:var(--sbb-tag-content-shift);will-change:transform}`;
16
+ let tt = (() => {
17
17
  var c, d, h, o;
18
- let a = [$("sbb-tag"), H()], s, i = [], r, _ = R(M(G)), k, y = [], w = [], z, C = [], S = [], T, E = [], I = [];
19
- var u = (o = class extends _ {
18
+ let a = [F("sbb-tag"), $()], s, i = [], b, x = M(L(V)), _, k = [], y = [], w, z = [], C = [], S, T = [], E = [];
19
+ var g = (o = class extends x {
20
20
  constructor() {
21
- var t;
22
21
  super();
23
- v(this, c);
24
- v(this, d);
25
- v(this, h);
26
- n(this, c, l(this, y, "")), n(this, d, (l(this, w), l(this, C, !1))), n(this, h, (l(this, S), l(this, E, L() ? "s" : "m"))), this._group = (l(this, I), null), this._input = new x(this, u.events.input, {
22
+ m(this, c);
23
+ m(this, d);
24
+ m(this, h);
25
+ n(this, c, l(this, k, "")), n(this, d, (l(this, y), l(this, z, !1))), n(this, h, (l(this, C), l(this, T, j() ? "s" : "m"))), this._group = (l(this, E), null), this._input = new p(this, g.events.input, {
27
26
  bubbles: !0,
28
27
  composed: !0
29
- }), this._didChange = new x(this, u.events.didChange, {
28
+ }), this._didChange = new p(this, g.events.didChange, {
30
29
  bubbles: !0
31
- }), this._change = new x(this, u.events.change, {
30
+ }), this._change = new p(this, g.events.change, {
32
31
  bubbles: !0
33
- }), (t = this.addEventListener) == null || t.call(this, "click", () => this._handleClick());
32
+ }), this.addEventListener?.("click", () => this._handleClick());
34
33
  }
35
34
  /** Amount displayed inside the tag. */
36
35
  get amount() {
37
- return m(this, c);
36
+ return u(this, c);
38
37
  }
39
- set amount(t) {
40
- n(this, c, t);
38
+ set amount(e) {
39
+ n(this, c, e);
41
40
  }
42
41
  /** Whether the tag is checked. */
43
42
  get checked() {
44
- return m(this, d);
43
+ return u(this, d);
45
44
  }
46
- set checked(t) {
47
- n(this, d, t);
45
+ set checked(e) {
46
+ n(this, d, e);
48
47
  }
49
48
  /**
50
49
  * Tag size, either s or m.
51
50
  * @default 'm' / 's' (lean)
52
51
  */
53
52
  get size() {
54
- return m(this, h);
53
+ return u(this, h);
55
54
  }
56
- set size(t) {
57
- n(this, h, t);
55
+ set size(e) {
56
+ n(this, h, e);
58
57
  }
59
58
  connectedCallback() {
60
59
  super.connectedCallback(), this._group = this.closest("sbb-tag-group");
61
60
  }
62
61
  isDisabledExternally() {
63
- var t;
64
- return ((t = this._group) == null ? void 0 : t.disabled) ?? !1;
62
+ return this._group?.disabled ?? !1;
65
63
  }
66
64
  /** Method triggered on button click. Inverts the checked value and emits events. */
67
65
  _handleClick() {
68
66
  if (this.disabled)
69
67
  return;
70
- const t = this.closest("sbb-tag-group");
71
- t && !t.multiple && this.checked || (this.checked = !this.checked, this._input.emit(), this._change.emit(), this._didChange.emit());
68
+ const e = this.closest("sbb-tag-group");
69
+ e && !e.multiple && this.checked || (this.checked = !this.checked, this._input.emit(), this._change.emit(), this._didChange.emit());
72
70
  }
73
- willUpdate(t) {
74
- var b;
75
- super.willUpdate(t), t.has("checked") && (this.setAttribute("aria-pressed", `${this.checked}`), this.toggleAttribute("data-checked", this.checked), this.updateFormValue());
76
- const e = (b = this.closest) == null ? void 0 : b.call(this, "sbb-tag-group");
77
- e && !e.multiple && t.has("checked") && this.checked && (e == null || e.tags.filter((g) => g !== this).forEach((g) => g.checked = !1));
71
+ willUpdate(e) {
72
+ super.willUpdate(e), e.has("checked") && (this.setAttribute("aria-pressed", `${this.checked}`), this.toggleAttribute("data-checked", this.checked), this.updateFormValue());
73
+ const t = this.closest?.("sbb-tag-group");
74
+ t && !t.multiple && e.has("checked") && this.checked && t?.tags.filter((r) => r !== this).forEach((r) => r.checked = !1);
78
75
  }
79
76
  /**
80
77
  * @internal
@@ -85,14 +82,14 @@ let et = (() => {
85
82
  /**
86
83
  * @internal
87
84
  */
88
- formStateRestoreCallback(t, e) {
89
- t && (this.checked = t === "true");
85
+ formStateRestoreCallback(e, t) {
86
+ e && (this.checked = e === "true");
90
87
  }
91
88
  updateFormValue() {
92
89
  this.checked ? this.internals.setFormValue(this.value, `${this.checked}`) : this.internals.setFormValue(null);
93
90
  }
94
91
  renderTemplate() {
95
- return V`
92
+ return A`
96
93
  <span class="sbb-tag__icon sbb-tag--shift"> ${this.renderIconSlot()} </span>
97
94
  <span class="sbb-tag__text sbb-tag--shift">
98
95
  <slot></slot>
@@ -102,25 +99,22 @@ let et = (() => {
102
99
  </span>
103
100
  `;
104
101
  }
105
- }, c = new WeakMap(), d = new WeakMap(), h = new WeakMap(), r = o, (() => {
106
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
107
- k = [A(), p({ reflect: !0, converter: O })], z = [A(), p({ reflect: !1, type: Boolean })], T = [p({ reflect: !0 }), j((e, b) => {
108
- var g;
109
- return ((g = e._group) == null ? void 0 : g.size) ?? b;
110
- })], f(o, null, k, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (e) => "amount" in e, get: (e) => e.amount, set: (e, b) => {
111
- e.amount = b;
112
- } }, metadata: t }, y, w), f(o, null, z, { kind: "accessor", name: "checked", static: !1, private: !1, access: { has: (e) => "checked" in e, get: (e) => e.checked, set: (e, b) => {
113
- e.checked = b;
114
- } }, metadata: t }, C, S), f(o, null, T, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, b) => {
115
- e.size = b;
116
- } }, metadata: t }, E, I), f(null, s = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, i), u = r = s.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
117
- })(), o.styles = U, o.events = {
102
+ }, c = new WeakMap(), d = new WeakMap(), h = new WeakMap(), b = o, (() => {
103
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(x[Symbol.metadata] ?? null) : void 0;
104
+ _ = [D(), f({ reflect: !0, converter: H })], w = [D(), f({ reflect: !1, type: Boolean })], S = [f({ reflect: !0 }), O((t, r) => t._group?.size ?? r)], v(o, null, _, { kind: "accessor", name: "amount", static: !1, private: !1, access: { has: (t) => "amount" in t, get: (t) => t.amount, set: (t, r) => {
105
+ t.amount = r;
106
+ } }, metadata: e }, k, y), v(o, null, w, { kind: "accessor", name: "checked", static: !1, private: !1, access: { has: (t) => "checked" in t, get: (t) => t.checked, set: (t, r) => {
107
+ t.checked = r;
108
+ } }, metadata: e }, z, C), v(o, null, S, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, r) => {
109
+ t.size = r;
110
+ } }, metadata: e }, T, E), v(null, s = { value: b }, a, { kind: "class", name: b.name, metadata: e }, null, i), g = b = s.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
111
+ })(), o.styles = R, o.events = {
118
112
  input: "input",
119
113
  didChange: "didChange",
120
114
  change: "change"
121
- }, l(r, i), o);
122
- return u = r;
115
+ }, l(b, i), o);
116
+ return g = b;
123
117
  })();
124
118
  export {
125
- et as SbbTagElement
119
+ tt as SbbTagElement
126
120
  };