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

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 (420) hide show
  1. package/accordion/accordion.component.js +10 -10
  2. package/alert/alert/alert.component.d.ts +4 -8
  3. package/alert/alert/alert.component.d.ts.map +1 -1
  4. package/alert/alert/alert.component.js +33 -33
  5. package/alert/alert-group/alert-group.component.d.ts +0 -3
  6. package/alert/alert-group/alert-group.component.d.ts.map +1 -1
  7. package/alert/alert-group/alert-group.component.js +44 -45
  8. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  9. package/autocomplete/autocomplete-base-element.js +9 -9
  10. package/autocomplete/autocomplete.component.d.ts +0 -4
  11. package/autocomplete/autocomplete.component.d.ts.map +1 -1
  12. package/autocomplete/autocomplete.component.js +1 -1
  13. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +0 -4
  14. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  15. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +11 -11
  16. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +0 -10
  17. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  18. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +14 -18
  19. package/button/accent-button/accent-button.component.d.ts +0 -1
  20. package/button/accent-button/accent-button.component.d.ts.map +1 -1
  21. package/button/button/button.component.d.ts +0 -1
  22. package/button/button/button.component.d.ts.map +1 -1
  23. package/button/mini-button/mini-button.component.d.ts +0 -1
  24. package/button/mini-button/mini-button.component.d.ts.map +1 -1
  25. package/button/secondary-button/secondary-button.component.d.ts +0 -1
  26. package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  27. package/button/transparent-button/transparent-button.component.d.ts +0 -1
  28. package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  29. package/calendar/calendar.component.d.ts +1 -5
  30. package/calendar/calendar.component.d.ts.map +1 -1
  31. package/calendar/calendar.component.js +68 -66
  32. package/card/card-button/card-button.component.d.ts +0 -1
  33. package/card/card-button/card-button.component.d.ts.map +1 -1
  34. package/checkbox/checkbox/checkbox.component.d.ts +2 -2
  35. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -13
  36. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  37. package/checkbox/checkbox-panel/checkbox-panel.component.js +37 -39
  38. package/chip/chip/chip.component.d.ts +2 -3
  39. package/chip/chip/chip.component.d.ts.map +1 -1
  40. package/chip/chip/chip.component.js +31 -30
  41. package/chip/chip-group/chip-group.component.d.ts +4 -12
  42. package/chip/chip-group/chip-group.component.d.ts.map +1 -1
  43. package/chip/chip-group/chip-group.component.js +52 -46
  44. package/container/sticky-bar/sticky-bar.component.d.ts +6 -12
  45. package/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
  46. package/container/sticky-bar/sticky-bar.component.js +49 -49
  47. package/core/base-elements/open-close-base-element.d.ts +12 -22
  48. package/core/base-elements/open-close-base-element.d.ts.map +1 -1
  49. package/core/base-elements/open-close-base-element.js +23 -17
  50. package/core/eventing.d.ts +0 -1
  51. package/core/eventing.d.ts.map +1 -1
  52. package/core/eventing.js +10 -12
  53. package/core/interfaces/types.d.ts +0 -5
  54. package/core/interfaces/types.d.ts.map +1 -1
  55. package/core/interfaces.d.ts +0 -1
  56. package/core/interfaces.d.ts.map +1 -1
  57. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  58. package/core/mixins/disabled-mixin.js +43 -40
  59. package/core/mixins/panel-mixin.d.ts.map +1 -1
  60. package/core/mixins/panel-mixin.js +35 -38
  61. package/core/mixins/readonly-mixin.d.ts.map +1 -1
  62. package/core/mixins/readonly-mixin.js +25 -19
  63. package/custom-elements.json +17450 -16552
  64. package/date-input/date-input.component.d.ts +0 -1
  65. package/date-input/date-input.component.d.ts.map +1 -1
  66. package/datepicker/datepicker/datepicker.component.d.ts +0 -6
  67. package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  68. package/datepicker/datepicker/datepicker.component.js +9 -9
  69. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +0 -1
  70. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  71. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +0 -1
  72. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  73. package/development/accordion/accordion.component.js +3 -3
  74. package/development/alert/alert/alert.component.d.ts +4 -8
  75. package/development/alert/alert/alert.component.d.ts.map +1 -1
  76. package/development/alert/alert/alert.component.js +11 -9
  77. package/development/alert/alert-group/alert-group.component.d.ts +0 -3
  78. package/development/alert/alert-group/alert-group.component.d.ts.map +1 -1
  79. package/development/alert/alert-group/alert-group.component.js +14 -18
  80. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  81. package/development/autocomplete/autocomplete-base-element.js +5 -8
  82. package/development/autocomplete/autocomplete.component.d.ts +0 -4
  83. package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
  84. package/development/autocomplete/autocomplete.component.js +2 -2
  85. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +0 -4
  86. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  87. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
  88. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +0 -10
  89. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  90. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +5 -9
  91. package/development/button/accent-button/accent-button.component.d.ts +0 -1
  92. package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
  93. package/development/button/accent-button/accent-button.component.js +1 -1
  94. package/development/button/button/button.component.d.ts +0 -1
  95. package/development/button/button/button.component.d.ts.map +1 -1
  96. package/development/button/button/button.component.js +1 -1
  97. package/development/button/mini-button/mini-button.component.d.ts +0 -1
  98. package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
  99. package/development/button/mini-button/mini-button.component.js +1 -1
  100. package/development/button/secondary-button/secondary-button.component.d.ts +0 -1
  101. package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  102. package/development/button/secondary-button/secondary-button.component.js +1 -1
  103. package/development/button/transparent-button/transparent-button.component.d.ts +0 -1
  104. package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  105. package/development/button/transparent-button/transparent-button.component.js +1 -1
  106. package/development/calendar/calendar.component.d.ts +1 -5
  107. package/development/calendar/calendar.component.d.ts.map +1 -1
  108. package/development/calendar/calendar.component.js +11 -9
  109. package/development/card/card-button/card-button.component.d.ts +0 -1
  110. package/development/card/card-button/card-button.component.d.ts.map +1 -1
  111. package/development/card/card-button/card-button.component.js +1 -1
  112. package/development/checkbox/checkbox/checkbox.component.d.ts +2 -2
  113. package/development/checkbox/checkbox/checkbox.component.js +1 -1
  114. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -13
  115. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  116. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +14 -17
  117. package/development/chip/chip/chip.component.d.ts +2 -3
  118. package/development/chip/chip/chip.component.d.ts.map +1 -1
  119. package/development/chip/chip/chip.component.js +11 -10
  120. package/development/chip/chip-group/chip-group.component.d.ts +4 -12
  121. package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
  122. package/development/chip/chip-group/chip-group.component.js +20 -16
  123. package/development/container/sticky-bar/sticky-bar.component.d.ts +6 -12
  124. package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
  125. package/development/container/sticky-bar/sticky-bar.component.js +20 -22
  126. package/development/core/base-elements/open-close-base-element.d.ts +12 -22
  127. package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
  128. package/development/core/base-elements/open-close-base-element.js +17 -15
  129. package/development/core/eventing.d.ts +0 -1
  130. package/development/core/eventing.d.ts.map +1 -1
  131. package/development/core/eventing.js +1 -3
  132. package/development/core/interfaces/types.d.ts +0 -5
  133. package/development/core/interfaces/types.d.ts.map +1 -1
  134. package/development/core/interfaces.d.ts +0 -1
  135. package/development/core/interfaces.d.ts.map +1 -1
  136. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  137. package/development/core/mixins/disabled-mixin.js +20 -17
  138. package/development/core/mixins/panel-mixin.d.ts.map +1 -1
  139. package/development/core/mixins/panel-mixin.js +8 -14
  140. package/development/core/mixins/readonly-mixin.d.ts.map +1 -1
  141. package/development/core/mixins/readonly-mixin.js +17 -9
  142. package/development/date-input/date-input.component.d.ts +0 -1
  143. package/development/date-input/date-input.component.d.ts.map +1 -1
  144. package/development/date-input/date-input.component.js +1 -1
  145. package/development/datepicker/datepicker/datepicker.component.d.ts +0 -6
  146. package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  147. package/development/datepicker/datepicker/datepicker.component.js +3 -3
  148. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +0 -1
  149. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  150. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
  151. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +0 -1
  152. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  153. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
  154. package/development/dialog/dialog/dialog.component.d.ts +0 -4
  155. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  156. package/development/dialog/dialog/dialog.component.js +3 -3
  157. package/development/dialog/dialog-title/dialog-title.component.js +1 -1
  158. package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -16
  159. package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
  160. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +15 -20
  161. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -5
  162. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
  163. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +7 -11
  164. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  165. package/development/file-selector/common/file-selector-common.js +16 -7
  166. package/development/file-selector/file-selector/file-selector.component.d.ts +1 -5
  167. package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  168. package/development/file-selector/file-selector/file-selector.component.js +2 -2
  169. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -5
  170. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  171. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -2
  172. package/development/flip-card/flip-card/flip-card.component.d.ts +0 -4
  173. package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
  174. package/development/flip-card/flip-card/flip-card.component.js +7 -9
  175. package/development/form-field/form-field/form-field.component.js +2 -2
  176. package/development/form-field/form-field-clear/form-field-clear.component.d.ts +0 -1
  177. package/development/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  178. package/development/form-field/form-field-clear/form-field-clear.component.js +1 -1
  179. package/development/header/header-button/header-button.component.d.ts +0 -1
  180. package/development/header/header-button/header-button.component.d.ts.map +1 -1
  181. package/development/header/header-button/header-button.component.js +1 -1
  182. package/development/image/image.component.d.ts +0 -2
  183. package/development/image/image.component.d.ts.map +1 -1
  184. package/development/image/image.component.js +4 -2
  185. package/development/journey-header/journey-header.component.js +1 -1
  186. package/development/link/block-link-button/block-link-button.component.d.ts +0 -1
  187. package/development/link/block-link-button/block-link-button.component.d.ts.map +1 -1
  188. package/development/link/block-link-button/block-link-button.component.js +1 -1
  189. package/development/link/link-button/link-button.component.d.ts +0 -1
  190. package/development/link/link-button/link-button.component.d.ts.map +1 -1
  191. package/development/link/link-button/link-button.component.js +1 -1
  192. package/development/menu/menu/menu.component.d.ts +0 -4
  193. package/development/menu/menu/menu.component.d.ts.map +1 -1
  194. package/development/menu/menu/menu.component.js +5 -8
  195. package/development/menu/menu-button/menu-button.component.d.ts +0 -1
  196. package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
  197. package/development/menu/menu-button/menu-button.component.js +1 -1
  198. package/development/navigation/navigation/navigation.component.d.ts +0 -4
  199. package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
  200. package/development/navigation/navigation/navigation.component.js +5 -8
  201. package/development/navigation/navigation-button/navigation-button.component.d.ts +0 -1
  202. package/development/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
  203. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  204. package/development/notification/notification.component.d.ts +5 -16
  205. package/development/notification/notification.component.d.ts.map +1 -1
  206. package/development/notification/notification.component.js +16 -18
  207. package/development/option/option/option-base-element.d.ts +8 -3
  208. package/development/option/option/option-base-element.d.ts.map +1 -1
  209. package/development/option/option/option-base-element.js +5 -4
  210. package/development/option/option/option.component.d.ts +3 -11
  211. package/development/option/option/option.component.d.ts.map +1 -1
  212. package/development/option/option/option.component.js +8 -11
  213. package/development/overlay/overlay-base-element.d.ts +2 -3
  214. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  215. package/development/overlay/overlay-base-element.js +10 -5
  216. package/development/overlay/overlay.component.d.ts +4 -8
  217. package/development/overlay/overlay.component.d.ts.map +1 -1
  218. package/development/overlay/overlay.component.js +7 -7
  219. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  220. package/development/paginator/common/paginator-common.js +12 -10
  221. package/development/paginator/compact-paginator/compact-paginator.component.d.ts +0 -2
  222. package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  223. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  224. package/development/paginator/paginator/paginator.component.d.ts +0 -2
  225. package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
  226. package/development/paginator/paginator/paginator.component.js +1 -1
  227. package/development/popover/popover/popover.component.d.ts +6 -14
  228. package/development/popover/popover/popover.component.d.ts.map +1 -1
  229. package/development/popover/popover/popover.component.js +16 -8
  230. package/development/popover/popover-trigger/popover-trigger.component.d.ts +0 -1
  231. package/development/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
  232. package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
  233. package/development/radio-button/radio-button/radio-button.component.d.ts +3 -3
  234. package/development/radio-button/radio-button/radio-button.component.js +2 -2
  235. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -6
  236. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  237. package/development/radio-button/radio-button-group/radio-button-group.component.js +7 -8
  238. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +3 -10
  239. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  240. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +11 -12
  241. package/development/select/select.component.d.ts +6 -19
  242. package/development/select/select.component.d.ts.map +1 -1
  243. package/development/select/select.component.js +31 -44
  244. package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +6 -13
  245. package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
  246. package/development/selection-expansion-panel/selection-expansion-panel.component.js +16 -21
  247. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +0 -1
  248. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
  249. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  250. package/development/sidebar/sidebar/sidebar.component.d.ts +0 -4
  251. package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
  252. package/development/sidebar/sidebar/sidebar.component.js +5 -5
  253. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
  254. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  255. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  256. package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  257. package/development/slider/slider.component.d.ts +2 -7
  258. package/development/slider/slider.component.d.ts.map +1 -1
  259. package/development/slider/slider.component.js +10 -14
  260. package/development/stepper/step/step.component.d.ts +2 -10
  261. package/development/stepper/step/step.component.d.ts.map +1 -1
  262. package/development/stepper/step/step.component.js +13 -11
  263. package/development/stepper/step-label/step-label.component.d.ts +0 -1
  264. package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
  265. package/development/stepper/step-label/step-label.component.js +1 -1
  266. package/development/stepper/stepper/stepper.component.js +2 -2
  267. package/development/tabs/tab-group/tab-group.component.d.ts +1 -4
  268. package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
  269. package/development/tabs/tab-group/tab-group.component.js +21 -18
  270. package/development/tag/tag/tag.component.d.ts +0 -9
  271. package/development/tag/tag/tag.component.d.ts.map +1 -1
  272. package/development/tag/tag/tag.component.js +11 -19
  273. package/development/time-input/time-input.component.d.ts +0 -1
  274. package/development/time-input/time-input.component.d.ts.map +1 -1
  275. package/development/time-input/time-input.component.js +1 -1
  276. package/development/toast/toast.component.d.ts +0 -4
  277. package/development/toast/toast.component.d.ts.map +1 -1
  278. package/development/toast/toast.component.js +5 -5
  279. package/development/toggle/toggle/toggle.component.d.ts +0 -3
  280. package/development/toggle/toggle/toggle.component.d.ts.map +1 -1
  281. package/development/toggle/toggle/toggle.component.js +6 -11
  282. package/development/toggle-check/toggle-check.component.d.ts +2 -2
  283. package/development/toggle-check/toggle-check.component.js +1 -1
  284. package/development/train/train/train.component.d.ts +1 -6
  285. package/development/train/train/train.component.d.ts.map +1 -1
  286. package/development/train/train/train.component.js +7 -12
  287. package/development/train/train-formation/train-formation.component.js +3 -3
  288. package/development/train/train-wagon/train-wagon.component.d.ts +1 -6
  289. package/development/train/train-wagon/train-wagon.component.d.ts.map +1 -1
  290. package/development/train/train-wagon/train-wagon.component.js +7 -12
  291. package/dialog/dialog/dialog.component.d.ts +0 -4
  292. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  293. package/dialog/dialog/dialog.component.js +2 -2
  294. package/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -16
  295. package/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
  296. package/expansion-panel/expansion-panel/expansion-panel.component.js +48 -50
  297. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -5
  298. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
  299. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +26 -30
  300. package/file-selector/common/file-selector-common.d.ts.map +1 -1
  301. package/file-selector/common/file-selector-common.js +47 -37
  302. package/file-selector/file-selector/file-selector.component.d.ts +1 -5
  303. package/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  304. package/file-selector/file-selector/file-selector.component.js +3 -3
  305. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -5
  306. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  307. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +5 -5
  308. package/flip-card/flip-card/flip-card.component.d.ts +0 -4
  309. package/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
  310. package/flip-card/flip-card/flip-card.component.js +35 -37
  311. package/form-field/form-field/form-field.component.js +1 -1
  312. package/form-field/form-field-clear/form-field-clear.component.d.ts +0 -1
  313. package/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  314. package/header/header-button/header-button.component.d.ts +0 -1
  315. package/header/header-button/header-button.component.d.ts.map +1 -1
  316. package/image/image.component.d.ts +0 -2
  317. package/image/image.component.d.ts.map +1 -1
  318. package/link/block-link-button/block-link-button.component.d.ts +0 -1
  319. package/link/block-link-button/block-link-button.component.d.ts.map +1 -1
  320. package/link/link-button/link-button.component.d.ts +0 -1
  321. package/link/link-button/link-button.component.d.ts.map +1 -1
  322. package/menu/menu/menu.component.d.ts +0 -4
  323. package/menu/menu/menu.component.d.ts.map +1 -1
  324. package/menu/menu/menu.component.js +8 -8
  325. package/menu/menu-button/menu-button.component.d.ts +0 -1
  326. package/menu/menu-button/menu-button.component.d.ts.map +1 -1
  327. package/navigation/navigation/navigation.component.d.ts +0 -4
  328. package/navigation/navigation/navigation.component.d.ts.map +1 -1
  329. package/navigation/navigation/navigation.component.js +17 -17
  330. package/navigation/navigation-button/navigation-button.component.d.ts +0 -1
  331. package/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
  332. package/notification/notification.component.d.ts +5 -16
  333. package/notification/notification.component.d.ts.map +1 -1
  334. package/notification/notification.component.js +54 -53
  335. package/option/option/option-base-element.d.ts +8 -3
  336. package/option/option/option-base-element.d.ts.map +1 -1
  337. package/option/option/option-base-element.js +22 -20
  338. package/option/option/option.component.d.ts +3 -11
  339. package/option/option/option.component.d.ts.map +1 -1
  340. package/option/option/option.component.js +23 -25
  341. package/overlay/overlay-base-element.d.ts +2 -3
  342. package/overlay/overlay-base-element.d.ts.map +1 -1
  343. package/overlay/overlay-base-element.js +42 -37
  344. package/overlay/overlay.component.d.ts +4 -8
  345. package/overlay/overlay.component.d.ts.map +1 -1
  346. package/overlay/overlay.component.js +11 -11
  347. package/package.json +1 -1
  348. package/paginator/common/paginator-common.d.ts.map +1 -1
  349. package/paginator/common/paginator-common.js +37 -34
  350. package/paginator/compact-paginator/compact-paginator.component.d.ts +0 -2
  351. package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  352. package/paginator/paginator/paginator.component.d.ts +0 -2
  353. package/paginator/paginator/paginator.component.d.ts.map +1 -1
  354. package/popover/popover/popover.component.d.ts +6 -14
  355. package/popover/popover/popover.component.d.ts.map +1 -1
  356. package/popover/popover/popover.component.js +76 -67
  357. package/popover/popover-trigger/popover-trigger.component.d.ts +0 -1
  358. package/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
  359. package/radio-button/radio-button/radio-button.component.d.ts +3 -3
  360. package/radio-button/radio-button/radio-button.component.js +10 -10
  361. package/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -6
  362. package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  363. package/radio-button/radio-button-group/radio-button-group.component.js +24 -26
  364. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +3 -10
  365. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  366. package/radio-button/radio-button-panel/radio-button-panel.component.js +39 -40
  367. package/select/select.component.d.ts +6 -19
  368. package/select/select.component.d.ts.map +1 -1
  369. package/select/select.component.js +99 -101
  370. package/selection-expansion-panel/selection-expansion-panel.component.d.ts +6 -13
  371. package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
  372. package/selection-expansion-panel/selection-expansion-panel.component.js +49 -51
  373. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +0 -1
  374. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
  375. package/sidebar/sidebar/sidebar.component.d.ts +0 -4
  376. package/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
  377. package/sidebar/sidebar/sidebar.component.js +28 -28
  378. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
  379. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  380. package/slider/slider.component.d.ts +2 -7
  381. package/slider/slider.component.d.ts.map +1 -1
  382. package/slider/slider.component.js +38 -43
  383. package/stepper/step/step.component.d.ts +2 -10
  384. package/stepper/step/step.component.d.ts.map +1 -1
  385. package/stepper/step/step.component.js +26 -23
  386. package/stepper/step-label/step-label.component.d.ts +0 -1
  387. package/stepper/step-label/step-label.component.d.ts.map +1 -1
  388. package/stepper/stepper/stepper.component.js +6 -6
  389. package/tabs/tab-group/tab-group.component.d.ts +1 -4
  390. package/tabs/tab-group/tab-group.component.d.ts.map +1 -1
  391. package/tabs/tab-group/tab-group.component.js +55 -52
  392. package/tag/tag/tag.component.d.ts +0 -9
  393. package/tag/tag/tag.component.d.ts.map +1 -1
  394. package/tag/tag/tag.component.js +34 -40
  395. package/time-input/time-input.component.d.ts +0 -1
  396. package/time-input/time-input.component.d.ts.map +1 -1
  397. package/toast/toast.component.d.ts +0 -4
  398. package/toast/toast.component.d.ts.map +1 -1
  399. package/toast/toast.component.js +19 -19
  400. package/toggle/toggle/toggle.component.d.ts +0 -3
  401. package/toggle/toggle/toggle.component.d.ts.map +1 -1
  402. package/toggle/toggle/toggle.component.js +35 -40
  403. package/toggle-check/toggle-check.component.d.ts +2 -2
  404. package/train/train/train.component.d.ts +1 -6
  405. package/train/train/train.component.d.ts.map +1 -1
  406. package/train/train/train.component.js +33 -38
  407. package/train/train-formation/train-formation.component.js +1 -1
  408. package/train/train-wagon/train-wagon.component.d.ts +1 -6
  409. package/train/train-wagon/train-wagon.component.d.ts.map +1 -1
  410. package/train/train-wagon/train-wagon.component.js +48 -53
  411. package/core/eventing/event-emitter.d.ts +0 -23
  412. package/core/eventing/event-emitter.d.ts.map +0 -1
  413. package/core/eventing/event-emitter.js +0 -22
  414. package/core/interfaces/validation-change.d.ts +0 -4
  415. package/core/interfaces/validation-change.d.ts.map +0 -1
  416. package/development/core/eventing/event-emitter.d.ts +0 -23
  417. package/development/core/eventing/event-emitter.d.ts.map +0 -1
  418. package/development/core/eventing/event-emitter.js +0 -25
  419. package/development/core/interfaces/validation-change.d.ts +0 -4
  420. package/development/core/interfaces/validation-change.d.ts.map +0 -1
@@ -4,8 +4,8 @@ var C = (i) => {
4
4
  var A = (i, s, r) => s.has(i) || C("Cannot " + r);
5
5
  var u = (i, s, r) => (A(i, s, "read from private field"), r ? r.call(i) : s.get(i)), g = (i, s, r) => s.has(i) ? C("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), d = (i, s, r, n) => (A(i, s, "write to private field"), n ? n.call(i, r) : s.set(i, r), r);
6
6
  import { __esDecorate as p, __runInitializers as m } from "tslib";
7
- import { css as T, isServer as N, html as L } from "lit";
8
- import { customElement as B, property as S } from "lit/decorators.js";
7
+ import { css as T, isServer as B, html as L } from "lit";
8
+ import { customElement as N, property as S } from "lit/decorators.js";
9
9
  import { ref as I } from "lit/directives/ref.js";
10
10
  import { SbbFocusTrapController as P, isArrowKeyOrPageKeysPressed as M, interactivityChecker as D, getNextElementIndex as U } from "../../core/a11y.js";
11
11
  import { SbbOpenCloseBaseElement as z } from "../../core/base-elements.js";
@@ -27,7 +27,7 @@ const G = T`*,:before,:after{box-sizing:border-box}:host{display:contents;--sbb-
27
27
  ];
28
28
  let ee = 0, ge = (() => {
29
29
  var l, b, o;
30
- let i = [B("sbb-menu")], s, r = [], n, v = j(z), f, w = [], y = [], k, x = [], E = [];
30
+ let i = [N("sbb-menu")], s, r = [], n, v = j(z), f, w = [], y = [], k, x = [], E = [];
31
31
  return o = class extends v {
32
32
  constructor() {
33
33
  super();
@@ -68,25 +68,25 @@ let ee = 0, ge = (() => {
68
68
  * Opens the menu on trigger click.
69
69
  */
70
70
  open() {
71
- this.state === "closing" || !this._menu || this.willOpen.emit() && (this.showPopover?.(), this.state = "opening", this._setMenuPosition(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._mediaMatcher.matches(_) && this._scrollHandler.disableScroll(), this._isZeroAnimationDuration() && this._handleOpening());
71
+ this.state === "closing" || !this._menu || this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._setMenuPosition(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._mediaMatcher.matches(_) && this._scrollHandler.disableScroll(), this._isZeroAnimationDuration() && this._handleOpening());
72
72
  }
73
73
  /**
74
74
  * Closes the menu.
75
75
  */
76
76
  close() {
77
- this.state !== "opening" && this.willClose.emit() && (this.state = "closing", this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
77
+ this.state === "opening" || !this.dispatchBeforeCloseEvent() || (this.state = "closing", this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
78
78
  }
79
79
  _isZeroAnimationDuration() {
80
80
  return Z(this, "--sbb-menu-animation-duration");
81
81
  }
82
82
  _handleOpening() {
83
- this.state = "opened", this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this._attachWindowEvents(), this.didOpen.emit();
83
+ this.state = "opened", this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this._attachWindowEvents(), this.dispatchOpenEvent();
84
84
  }
85
85
  _handleClosing() {
86
86
  this.state = "closed", this.hidePopover?.(), this._menu?.firstElementChild?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus({
87
87
  // When inside the sbb-header, we prevent the scroll to avoid the snapping to the top of the page
88
88
  preventScroll: this._triggerElement.localName === "sbb-header-button" || this._triggerElement.localName === "sbb-header-link"
89
- }), this._escapableOverlayController.disconnect(), this.didClose.emit(), this._windowEventsController?.abort(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll();
89
+ }), this._escapableOverlayController.disconnect(), this.dispatchCloseEvent(), this._windowEventsController?.abort(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll();
90
90
  }
91
91
  /**
92
92
  * Handles click and checks if its target is a sbb-menu-button/sbb-menu-link.
@@ -136,7 +136,7 @@ let ee = 0, ge = (() => {
136
136
  super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._windowEventsController?.abort(), this._scrollHandler.enableScroll();
137
137
  }
138
138
  requestUpdate(e, t, a) {
139
- super.requestUpdate(e, t, a), !N && (!e || e === "trigger") && this.hasUpdated && this._configureTrigger();
139
+ super.requestUpdate(e, t, a), !B && (!e || e === "trigger") && this.hasUpdated && this._configureTrigger();
140
140
  }
141
141
  firstUpdated(e) {
142
142
  super.firstUpdated(e), this._configureTrigger();
@@ -7,7 +7,6 @@ declare const SbbMenuButtonElement_base: import('../../core/mixins.js').Abstract
7
7
  * @slot icon - Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.
8
8
  * @cssprop [--sbb-menu-action-outer-horizontal-padding=var(--sbb-spacing-fixed-3x)] - Can be used
9
9
  * to modify horizontal padding.
10
- * @overrideType value - string
11
10
  */
12
11
  export declare class SbbMenuButtonElement extends SbbMenuButtonElement_base {
13
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"menu-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu-button/menu-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;;;GAQG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
1
+ {"version":3,"file":"menu-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu-button/menu-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;;GAOG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
@@ -6,10 +6,6 @@ declare const SbbNavigationElement_base: import('../../core/mixins.js').Abstract
6
6
  * It displays a navigation menu, wrapping one or more `sbb-navigation-*` components.
7
7
  *
8
8
  * @slot - Use the unnamed slot to add `sbb-navigation-button`/`sbb-navigation-link` elements into the sbb-navigation menu.
9
- * @event {CustomEvent<void>} willOpen - Emits whenever the `sbb-navigation` begins the opening transition. Can be canceled.
10
- * @event {CustomEvent<void>} didOpen - Emits whenever the `sbb-navigation` is opened.
11
- * @event {CustomEvent<void>} willClose - Emits whenever the `sbb-navigation` begins the closing transition. Can be canceled.
12
- * @event {CustomEvent<void>} didClose - Emits whenever the `sbb-navigation` is closed.
13
9
  * @cssprop [--sbb-navigation-z-index=var(--sbb-overlay-default-z-index)] - To specify a custom stack order,
14
10
  * the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the
15
11
  * component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation/navigation.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAiBtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAI5E,OAAO,oCAAoC,CAAC;;AAW5C;;;;;;;;;;;GAWG;AACH,qBAEM,oBAAqB,SAAQ,yBAAgD;IACjF,gBAAgC,IAAI,gBAAgB;IACpD,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,wEAAwE;IACxE,SAEgB,uBAAuB,EAAE,MAAM,CAAM;IAErD,iDAAiD;IACxC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA4C;IAE9F,qDAAqD;IACrD,IAAW,uBAAuB,IAAI,2BAA2B,GAAG,IAAI,CAEvE;IAED,wCAAwC;IACxC,IAAW,WAAW,IAAI,WAAW,GAAG,IAAI,CAE3C;IAED,8CAA8C;IAC9C,IAAW,iBAAiB,IAAI,WAAW,GAAG,IAAI,CAEjD;IAED,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,2BAA2B,CAA2C;IAC9E,OAAO,CAAC,oBAAoB,CAAoC;IAChE,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,+BAA+B,CAAkB;IACzD,OAAO,CAAC,sBAAsB,CAA8C;IAC5E,OAAO,CAAC,yBAAyB,CAG9B;;IAkBH,4BAA4B;IACrB,IAAI,IAAI,IAAI;IAyBnB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAO3B,6BAA6B;IACtB,KAAK,IAAI,IAAI;IAmBpB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,oBAAoB,CAS1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAGF,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,mBAAmB;IAkBX,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAO5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;cAQY,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAK3D,MAAM,IAAI,cAAc;CAkC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,oBAAoB,CAAC;KACxC;CACF"}
1
+ {"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation/navigation.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,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,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,oBAAoB,CAS1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAGF,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,mBAAmB;IAkBX,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAO5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;cAQY,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAK3D,MAAM,IAAI,cAAc;CAkC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,oBAAoB,CAAC;KACxC;CACF"}
@@ -1,16 +1,16 @@
1
- var E = (a) => {
1
+ var A = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var N = (a, n, e) => n.has(a) || E("Cannot " + e);
5
- var d = (a, n, e) => (N(a, n, "read from private field"), e ? e.call(a) : n.get(a)), h = (a, n, e) => n.has(a) ? E("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), b = (a, n, e, r) => (N(a, n, "write to private field"), r ? r.call(a, e) : n.set(a, e), e);
4
+ var N = (a, n, e) => n.has(a) || A("Cannot " + e);
5
+ var d = (a, n, e) => (N(a, n, "read from private field"), e ? e.call(a) : n.get(a)), h = (a, n, e) => n.has(a) ? A("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), b = (a, n, e, r) => (N(a, n, "write to private field"), r ? r.call(a, e) : n.set(a, e), e);
6
6
  import { __esDecorate as p, __runInitializers as l } from "tslib";
7
7
  import { MutationController as T } from "@lit-labs/observers/mutation-controller.js";
8
8
  import { ResizeController as L } from "@lit-labs/observers/resize-controller.js";
9
9
  import { css as I, isServer as D, html as O } from "lit";
10
10
  import { customElement as U, property as z, state as q } from "lit/decorators.js";
11
- import { ref as R } from "lit/directives/ref.js";
12
- import { SbbFocusTrapController as P } from "../../core/a11y.js";
13
- import { SbbOpenCloseBaseElement as B } from "../../core/base-elements.js";
11
+ import { ref as B } from "lit/directives/ref.js";
12
+ import { SbbFocusTrapController as R } from "../../core/a11y.js";
13
+ import { SbbOpenCloseBaseElement as P } from "../../core/base-elements.js";
14
14
  import { SbbLanguageController as H, SbbInertController as M, SbbEscapableOverlayController as X } from "../../core/controllers.js";
15
15
  import { idReference as $, forceType as Z } from "../../core/decorators.js";
16
16
  import { SbbScrollHandler as j, isZeroAnimationDuration as F } from "../../core/dom.js";
@@ -26,14 +26,14 @@ let Y = 0;
26
26
  const tt = 150;
27
27
  let _t = (() => {
28
28
  var c, v, g, o;
29
- let a = [U("sbb-navigation")], n, e = [], r, u = V(B), _, f = [], k = [], w, y = [], C = [], x, S = [], A = [];
29
+ let a = [U("sbb-navigation")], n, e = [], r, u = V(P), _, f = [], k = [], y, w = [], C = [], x, S = [], E = [];
30
30
  return o = class extends u {
31
31
  constructor() {
32
32
  super();
33
33
  h(this, c);
34
34
  h(this, v);
35
35
  h(this, g);
36
- b(this, c, l(this, f, null)), b(this, v, (l(this, k), l(this, y, ""))), b(this, g, (l(this, C), l(this, S, null))), this._navigation = l(this, A), this._triggerElement = null, this._language = new H(this), this._inertController = new M(this), this._escapableOverlayController = new X(this), this._focusTrapController = new P(this), this._scrollHandler = new j(), this._isPointerDownEventOnNavigation = !1, this._resizeObserverTimeout = null, this._navigationResizeObserver = new L(this, {
36
+ b(this, c, l(this, f, null)), b(this, v, (l(this, k), l(this, w, ""))), b(this, g, (l(this, C), l(this, S, null))), this._navigation = l(this, E), this._triggerElement = null, this._language = new H(this), this._inertController = new M(this), this._escapableOverlayController = new X(this), this._focusTrapController = new R(this), this._scrollHandler = new j(), this._isPointerDownEventOnNavigation = !1, this._resizeObserverTimeout = null, this._navigationResizeObserver = new L(this, {
37
37
  skipInitial: !0,
38
38
  callback: () => this._onNavigationResize()
39
39
  }), this._pointerDownListener = (t) => {
@@ -85,7 +85,7 @@ let _t = (() => {
85
85
  }
86
86
  /** Opens the navigation. */
87
87
  open() {
88
- this.state !== "closed" || !this.hasUpdated || this.willOpen.emit() && (this.showPopover?.(), this.state = "opening", this._checkActiveActions(), this._checkActiveSection(), this.startUpdate(), this._scrollHandler.disableScroll(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._isZeroAnimationDuration() && this._handleOpening());
88
+ this.state !== "closed" || !this.hasUpdated || this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._checkActiveActions(), this._checkActiveSection(), this.startUpdate(), this._scrollHandler.disableScroll(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._isZeroAnimationDuration() && this._handleOpening());
89
89
  }
90
90
  _checkActiveSection() {
91
91
  this.querySelector("sbb-navigation-button.sbb-active")?.connectedSection?.open();
@@ -95,16 +95,16 @@ let _t = (() => {
95
95
  }
96
96
  /** Closes the navigation. */
97
97
  close() {
98
- this.state === "opened" && this.willClose.emit() && (this.state = "closing", this.startUpdate(), this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
98
+ this.state !== "opened" || !this.dispatchBeforeCloseEvent() || (this.state = "closing", this.startUpdate(), this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
99
99
  }
100
100
  _isZeroAnimationDuration() {
101
101
  return F(this, "--sbb-navigation-animation-duration");
102
102
  }
103
103
  _handleClosing() {
104
- this.state = "closed", this.hidePopover?.(), this.navigationContent?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus(), this._escapableOverlayController.disconnect(), this.didClose.emit(), this._navigationResizeObserver.unobserve(this), this._resetMarkers(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll(), this.completeUpdate();
104
+ this.state = "closed", this.hidePopover?.(), this.navigationContent?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus(), this._escapableOverlayController.disconnect(), this.dispatchCloseEvent(), this._navigationResizeObserver.unobserve(this), this._resetMarkers(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll(), this.completeUpdate();
105
105
  }
106
106
  _handleOpening() {
107
- this.state = "opened", this._navigationResizeObserver.observe(this), this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this.completeUpdate(), this.didOpen.emit();
107
+ this.state = "opened", this._navigationResizeObserver.observe(this), this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this.completeUpdate(), this.dispatchOpenEvent();
108
108
  }
109
109
  // Removes trigger click listener on trigger change.
110
110
  // Check if the trigger is valid and attach click event listeners.
@@ -167,7 +167,7 @@ let _t = (() => {
167
167
  id="sbb-navigation-overlay"
168
168
  @animationend=${this._onAnimationEnd}
169
169
  class="sbb-navigation"
170
- ${R((i) => this._navigation = i)}
170
+ ${B((i) => this._navigation = i)}
171
171
  >
172
172
  <div class="sbb-navigation__header">${t}</div>
173
173
  <div class="sbb-navigation__wrapper">
@@ -182,13 +182,13 @@ let _t = (() => {
182
182
  }
183
183
  }, c = new WeakMap(), v = new WeakMap(), g = new WeakMap(), r = o, (() => {
184
184
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
185
- _ = [$(), z()], w = [Z(), z({ attribute: "accessibility-close-label" })], x = [q()], p(o, null, _, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (i) => "trigger" in i, get: (i) => i.trigger, set: (i, s) => {
185
+ _ = [$(), z()], y = [Z(), z({ attribute: "accessibility-close-label" })], x = [q()], p(o, null, _, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (i) => "trigger" in i, get: (i) => i.trigger, set: (i, s) => {
186
186
  i.trigger = s;
187
- } }, metadata: t }, f, k), p(o, null, w, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (i) => "accessibilityCloseLabel" in i, get: (i) => i.accessibilityCloseLabel, set: (i, s) => {
187
+ } }, metadata: t }, f, k), p(o, null, y, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (i) => "accessibilityCloseLabel" in i, get: (i) => i.accessibilityCloseLabel, set: (i, s) => {
188
188
  i.accessibilityCloseLabel = s;
189
- } }, metadata: t }, y, C), p(o, null, x, { kind: "accessor", name: "_activeNavigationSection", static: !1, private: !1, access: { has: (i) => "_activeNavigationSection" in i, get: (i) => i._activeNavigationSection, set: (i, s) => {
189
+ } }, metadata: t }, w, C), p(o, null, x, { kind: "accessor", name: "_activeNavigationSection", static: !1, private: !1, access: { has: (i) => "_activeNavigationSection" in i, get: (i) => i._activeNavigationSection, set: (i, s) => {
190
190
  i._activeNavigationSection = s;
191
- } }, metadata: t }, S, A), p(null, n = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, e), r = n.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
191
+ } }, metadata: t }, S, E), p(null, n = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, e), r = n.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
192
192
  })(), o.role = "navigation", o.styles = Q, l(r, e), r;
193
193
  })();
194
194
  export {
@@ -4,7 +4,6 @@ declare const SbbNavigationButtonElement_base: import('../../core/mixins.js').Ab
4
4
  * It displays a button element that can be used in the `sbb-navigation` component.
5
5
  *
6
6
  * @slot - Use the unnamed slot to add content to the `sbb-navigation-button`.
7
- * @overrideType value - string
8
7
  */
9
8
  export declare class SbbNavigationButtonElement extends SbbNavigationButtonElement_base {
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation-button/navigation-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE;;;;;GAKG;AACH,qBAEM,0BAA2B,SAAQ,+BAExC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
1
+ {"version":3,"file":"navigation-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation-button/navigation-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE;;;;GAIG;AACH,qBAEM,0BAA2B,SAAQ,+BAExC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
@@ -5,20 +5,16 @@ declare const SbbNotificationElement_base: import('../core/mixins.js').AbstractC
5
5
  *
6
6
  * @slot - Use the unnamed slot to add content to the `sbb-notification`. Content should consist of an optional `sbb-title` element and text content.
7
7
  * @slot title - Slot for the title. For the standard `sbb-title` element, the slot is automatically assigned when slotted in the unnamed slot.
8
- * @event {CustomEvent<void>} willOpen - Emits when the opening animation starts.
9
- * @event {CustomEvent<void>} didOpen - Emits when the opening animation ends.
10
- * @event {CustomEvent<void>} willClose - Emits when the closing animation starts. Can be canceled.
11
- * @event {CustomEvent<void>} didClose - Emits when the closing animation ends.
12
8
  * @cssprop [--sbb-notification-margin=0] - Can be used to modify the margin in order to get a smoother animation.
13
9
  * See style section for more information.
14
10
  */
15
11
  export declare class SbbNotificationElement extends SbbNotificationElement_base {
16
12
  static styles: CSSResultGroup;
17
13
  static readonly events: {
18
- readonly willOpen: "willOpen";
19
- readonly didOpen: "didOpen";
20
- readonly willClose: "willClose";
21
- readonly didClose: "didClose";
14
+ readonly beforeopen: "beforeopen";
15
+ readonly open: "open";
16
+ readonly beforeclose: "beforeclose";
17
+ readonly close: "close";
22
18
  };
23
19
  /** The type of the notification. */
24
20
  accessor type: 'info' | 'success' | 'warn' | 'error';
@@ -36,17 +32,10 @@ export declare class SbbNotificationElement extends SbbNotificationElement_base
36
32
  private _resizeObserverTimeout;
37
33
  private _language;
38
34
  private _notificationResizeObserver;
39
- /** Emits whenever the `sbb-notification` starts the opening transition. */
40
- private _willOpen;
41
- /** Emits whenever the `sbb-notification` is opened. */
42
- private _didOpen;
43
- /** Emits whenever the `sbb-notification` begins the closing transition. */
44
- private _willClose;
45
- /** Emits whenever the `sbb-notification` is closed. */
46
- private _didClose;
47
35
  protected willUpdate(changedProperties: PropertyValues<this>): void;
48
36
  private _open;
49
37
  close(): void;
38
+ private _dispatchBeforeCloseEvent;
50
39
  connectedCallback(): void;
51
40
  protected firstUpdated(changedProperties: PropertyValues<this>): void;
52
41
  private _isZeroAnimationDuration;
@@ -1 +1 @@
1
- {"version":3,"file":"notification.component.d.ts","sourceRoot":"","sources":["../../../src/elements/notification/notification.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAab,OAAO,+BAA+B,CAAC;AACvC,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;;AAWpB;;;;;;;;;;;GAWG;AACH,qBAEM,sBAAuB,SAAQ,2BAA4B;IAE/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;;;MAKlB;IAEX,oCAAoC;IACpC,SAA6C,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAU;IAElG;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,8BAA8B;IAC9B,SAA6C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAS;IAElG,qCAAqC;IACrC,OAAO,KAAK,MAAM,QAEjB;IACD,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,CAAC,oBAAoB,CAAe;IAC3C,OAAO,CAAC,sBAAsB,CAA8C;IAC5E,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,2BAA2B,CAIhC;IAEH,2EAA2E;IAC3E,OAAO,CAAC,SAAS,CAIf;IAEF,uDAAuD;IACvD,OAAO,CAAC,QAAQ,CAId;IAEF,2EAA2E;IAC3E,OAAO,CAAC,UAAU,CAIhB;IAEF,uDAAuD;IACvD,OAAO,CAAC,SAAS,CAIf;cAEiB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,KAAK;IAaN,KAAK,IAAI,IAAI;IAYJ,iBAAiB,IAAI,IAAI;cAMtB,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc9E,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,2BAA2B;IAUnC,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,eAAe;cAQJ,MAAM,IAAI,cAAc;CA+B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
1
+ {"version":3,"file":"notification.component.d.ts","sourceRoot":"","sources":["../../../src/elements/notification/notification.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAYb,OAAO,+BAA+B,CAAC;AACvC,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;;AAWpB;;;;;;;GA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) => n.has(o) || T("Cannot " + a);
5
- var m = (o, n, a) => (S(o, n, "read from private field"), a ? a.call(o) : n.get(o)), p = (o, n, a) => n.has(o) ? T("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, a), r = (o, n, a, s) => (S(o, n, "write to private field"), s ? s.call(o, a) : n.set(o, a), a);
6
- import { __runInitializers as b, __esDecorate as g } from "tslib";
7
- import { ResizeController as $ } from "@lit-labs/observers/resize-controller.js";
8
- import { css as D, LitElement as R, nothing as I, html as A } from "lit";
9
- import { customElement as H, property as _ } from "lit/decorators.js";
10
- import { SbbLanguageController as U } from "../core/controllers.js";
11
- import { isLean as L, isZeroAnimationDuration as Z } from "../core/dom.js";
12
- import { EventEmitter as v } from "../core/eventing.js";
13
- import { i18nCloseNotification as M } from "../core/i18n.js";
14
- import { SbbReadonlyMixin as j } from "../core/mixins.js";
4
+ var N = (o, n, a) => n.has(o) || T("Cannot " + a);
5
+ var h = (o, n, a) => (N(o, n, "read from private field"), a ? a.call(o) : n.get(o)), p = (o, n, a) => n.has(o) ? T("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, a), r = (o, n, a, s) => (N(o, n, "write to private field"), s ? s.call(o, a) : n.set(o, a), a);
6
+ import { __runInitializers as b, __esDecorate as m } from "tslib";
7
+ import { ResizeController as S } from "@lit-labs/observers/resize-controller.js";
8
+ import { css as A, LitElement as $, nothing as D, html as C } from "lit";
9
+ import { customElement as R, property as g } from "lit/decorators.js";
10
+ import { SbbLanguageController as I } from "../core/controllers.js";
11
+ import { isLean as H, isZeroAnimationDuration as U } from "../core/dom.js";
12
+ import { i18nCloseNotification as L } from "../core/i18n.js";
13
+ import { SbbReadonlyMixin as Z } from "../core/mixins.js";
15
14
  import "../button/secondary-button.js";
16
15
  import "../divider.js";
17
16
  import "../icon.js";
18
- const q = D`*,:before,:after{box-sizing:border-box}:host{--sbb-notification-margin: 0;--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xs);--sbb-notification-color: var(--sbb-color-charcoal);--sbb-notification-icon-color: var(--sbb-notification-type-color);--sbb-notification-icon-margin-block-start: 0;--sbb-notification-border-width: var(--sbb-border-width-1x);--sbb-notification-border: var(--sbb-notification-border-width) solid var(--sbb-notification-type-color);--sbb-notification-base-radius: var(--sbb-border-radius-4x);--sbb-notification-border-radius: calc(var(--sbb-notification-base-radius) / 2) var(--sbb-notification-base-radius) var(--sbb-notification-base-radius) calc(var(--sbb-notification-base-radius) / 2);--sbb-notification-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-notification-timing-function: ease-in;--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xs);--_sbb-notification-icon-authoritative-font-size: 1em;--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-body-text);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:block}:host([data-state=opening]:not([animation=open],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-state=closing]:not([animation=close],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-resize-disable-animation]){--sbb-disable-animation-duration: 0s}:host([type=info]){--sbb-notification-type-color: var(--sbb-color-smoke);--sbb-notification-type-color-sass: rgb(249.3, 249.3, 249.3);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=success]){--sbb-notification-type-color: var(--sbb-color-green);--sbb-notification-type-color-sass: rgb(242.25, 249.15, 244.95)}:host([type=warn]){--sbb-notification-type-color: var(--sbb-color-peach);--sbb-notification-type-color-sass: rgb(254.85, 251.6, 242.25);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=error]){--sbb-notification-type-color: var(--sbb-color-red);--sbb-notification-type-color-sass: rgb(254, 242.25, 242.25)}:host([size=s]){--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs);--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xxs)}@media (min-width: 37.5rem){:host([size=s]){--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs)}}.sbb-notification__wrapper{position:relative;inset-inline-start:calc(var(--sbb-notification-base-radius) - var(--sbb-notification-border-width));width:calc(100% - (var(--sbb-notification-base-radius) - var(--sbb-notification-border-width)));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius);opacity:0;max-height:0;margin:0}.sbb-notification__wrapper:before{content:"";position:absolute;inset:calc(var(--sbb-notification-border-width) * -1) var(--sbb-notification-base-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-radius)}:host(:is([data-state=opened],[data-state=closing])) .sbb-notification__wrapper{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}:host([data-state=opening]) .sbb-notification__wrapper{animation-name:open;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function)}:host([data-state=closing]) .sbb-notification__wrapper{animation-name:close,close-height;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function);animation-delay:0s,var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x))}.sbb-notification{--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);position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;padding-block:var(--sbb-notification-padding-block);padding-inline:var(--sbb-notification-padding-inline);color:var(--sbb-notification-color);border-radius:var(--sbb-notification-border-radius);overflow:hidden;background-color:var(--sbb-notification-type-color-sass)}@supports (background-color: color-mix(in srgb,transparent 5%,white)){.sbb-notification{background-color:color-mix(in srgb,var(--sbb-notification-type-color) 5%,white)}}@media (min-width: 37.5rem){.sbb-notification{grid-template-columns:auto 1fr auto;align-items:flex-start}}:host([size=s]) .sbb-notification{--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)}.sbb-notification__icon{color:var(--sbb-notification-icon-color);--sbb-icon-svg-width: var(--sbb-notification-icon-size)}@media (min-width: 37.5rem){.sbb-notification__icon{margin-block-start:max(0rem,(var(--_sbb-notification-icon-authoritative-font-size) * var(--_sbb-notification-icon-authoritative-line-height) - var(--sbb-size-icon-ui-small)) / 2)}}.sbb-notification__content{order:3;grid-area:2/1/3/3;margin-block-start:var(--sbb-spacing-fixed-2x)}@media (min-width: 37.5rem){.sbb-notification__content{order:initial;grid-area:initial;margin-block-start:0;padding-inline:var(--sbb-notification-content-padding-inline)}}.sbb-notification__text{display:inline;margin:0;padding:0}.sbb-notification__close-wrapper{display:flex;align-items:center;gap:var(--sbb-spacing-responsive-xxs);height:100%}.sbb-notification__divider{--sbb-divider-color: var(--sbb-notification-type-color);display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x);opacity:.2}@media (min-width: 37.5rem){.sbb-notification__divider{display:block;height:calc(100% - var(--sbb-spacing-fixed-1x) * 2)}}@keyframes open{0%{opacity:0;max-height:0;margin:0}to{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}}@keyframes close{0%{opacity:1;margin:var(--sbb-notification-margin, 0)}to{opacity:0;margin:0}}@keyframes close-height{0%{max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2)}to{max-height:0}}::slotted(sbb-title){margin:0}`, B = /* @__PURE__ */ new Map([
17
+ const B = A`*,:before,:after{box-sizing:border-box}:host{--sbb-notification-margin: 0;--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xs);--sbb-notification-color: var(--sbb-color-charcoal);--sbb-notification-icon-color: var(--sbb-notification-type-color);--sbb-notification-icon-margin-block-start: 0;--sbb-notification-border-width: var(--sbb-border-width-1x);--sbb-notification-border: var(--sbb-notification-border-width) solid var(--sbb-notification-type-color);--sbb-notification-base-radius: var(--sbb-border-radius-4x);--sbb-notification-border-radius: calc(var(--sbb-notification-base-radius) / 2) var(--sbb-notification-base-radius) var(--sbb-notification-base-radius) calc(var(--sbb-notification-base-radius) / 2);--sbb-notification-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-notification-timing-function: ease-in;--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xs);--_sbb-notification-icon-authoritative-font-size: 1em;--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-body-text);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:block}:host([data-state=opening]:not([animation=open],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-state=closing]:not([animation=close],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-resize-disable-animation]){--sbb-disable-animation-duration: 0s}:host([type=info]){--sbb-notification-type-color: var(--sbb-color-smoke);--sbb-notification-type-color-sass: rgb(249.3, 249.3, 249.3);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=success]){--sbb-notification-type-color: var(--sbb-color-green);--sbb-notification-type-color-sass: rgb(242.25, 249.15, 244.95)}:host([type=warn]){--sbb-notification-type-color: var(--sbb-color-peach);--sbb-notification-type-color-sass: rgb(254.85, 251.6, 242.25);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=error]){--sbb-notification-type-color: var(--sbb-color-red);--sbb-notification-type-color-sass: rgb(254, 242.25, 242.25)}:host([size=s]){--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs);--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xxs)}@media (min-width: 37.5rem){:host([size=s]){--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs)}}.sbb-notification__wrapper{position:relative;inset-inline-start:calc(var(--sbb-notification-base-radius) - var(--sbb-notification-border-width));width:calc(100% - (var(--sbb-notification-base-radius) - var(--sbb-notification-border-width)));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius);opacity:0;max-height:0;margin:0}.sbb-notification__wrapper:before{content:"";position:absolute;inset:calc(var(--sbb-notification-border-width) * -1) var(--sbb-notification-base-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-radius)}:host(:is([data-state=opened],[data-state=closing])) .sbb-notification__wrapper{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}:host([data-state=opening]) .sbb-notification__wrapper{animation-name:open;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function)}:host([data-state=closing]) .sbb-notification__wrapper{animation-name:close,close-height;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function);animation-delay:0s,var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x))}.sbb-notification{--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);position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;padding-block:var(--sbb-notification-padding-block);padding-inline:var(--sbb-notification-padding-inline);color:var(--sbb-notification-color);border-radius:var(--sbb-notification-border-radius);overflow:hidden;background-color:var(--sbb-notification-type-color-sass)}@supports (background-color: color-mix(in srgb,transparent 5%,white)){.sbb-notification{background-color:color-mix(in srgb,var(--sbb-notification-type-color) 5%,white)}}@media (min-width: 37.5rem){.sbb-notification{grid-template-columns:auto 1fr auto;align-items:flex-start}}:host([size=s]) .sbb-notification{--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)}.sbb-notification__icon{color:var(--sbb-notification-icon-color);--sbb-icon-svg-width: var(--sbb-notification-icon-size)}@media (min-width: 37.5rem){.sbb-notification__icon{margin-block-start:max(0rem,(var(--_sbb-notification-icon-authoritative-font-size) * var(--_sbb-notification-icon-authoritative-line-height) - var(--sbb-size-icon-ui-small)) / 2)}}.sbb-notification__content{order:3;grid-area:2/1/3/3;margin-block-start:var(--sbb-spacing-fixed-2x)}@media (min-width: 37.5rem){.sbb-notification__content{order:initial;grid-area:initial;margin-block-start:0;padding-inline:var(--sbb-notification-content-padding-inline)}}.sbb-notification__text{display:inline;margin:0;padding:0}.sbb-notification__close-wrapper{display:flex;align-items:center;gap:var(--sbb-spacing-responsive-xxs);height:100%}.sbb-notification__divider{--sbb-divider-color: var(--sbb-notification-type-color);display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x);opacity:.2}@media (min-width: 37.5rem){.sbb-notification__divider{display:block;height:calc(100% - var(--sbb-spacing-fixed-1x) * 2)}}@keyframes open{0%{opacity:0;max-height:0;margin:0}to{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}}@keyframes close{0%{opacity:1;margin:var(--sbb-notification-margin, 0)}to{opacity:0;margin:0}}@keyframes close-height{0%{max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2)}to{max-height:0}}::slotted(sbb-title){margin:0}`, M = /* @__PURE__ */ new Map([
19
18
  ["info", "circle-information-small"],
20
19
  ["success", "circle-tick-small"],
21
20
  ["warn", "circle-exclamation-point-small"],
22
21
  ["error", "circle-cross-small"]
23
- ]), P = 150;
24
- let ei = (() => {
25
- var l, d, f, e;
26
- let o = [H("sbb-notification")], n, a = [], s, u = j(R), y, x = [], w = [], z, k = [], O = [], C, E = [], N = [];
27
- var c = (e = class extends u {
22
+ ]), j = 150;
23
+ let oi = (() => {
24
+ var c, l, d, e;
25
+ let o = [R("sbb-notification")], n, a = [], s, v = Z($), _, u = [], y = [], x, z = [], w = [], k, E = [], O = [];
26
+ return e = class extends v {
28
27
  constructor() {
29
28
  super(...arguments);
29
+ p(this, c);
30
30
  p(this, l);
31
31
  p(this, d);
32
- p(this, f);
33
- r(this, l, b(this, x, "info")), r(this, d, (b(this, w), b(this, k, L() ? "s" : "m"))), r(this, f, (b(this, O), b(this, E, "all"))), this._notificationElement = b(this, N), this._resizeObserverTimeout = null, this._language = new U(this), this._notificationResizeObserver = new $(this, {
32
+ r(this, c, b(this, u, "info")), r(this, l, (b(this, y), b(this, z, H() ? "s" : "m"))), r(this, d, (b(this, w), b(this, E, "all"))), this._notificationElement = b(this, O), this._resizeObserverTimeout = null, this._language = new I(this), this._notificationResizeObserver = new S(this, {
34
33
  target: null,
35
34
  skipInitial: !0,
36
35
  callback: () => this._onNotificationResize()
37
- }), this._willOpen = new v(this, c.events.willOpen, { cancelable: !0 }), this._didOpen = new v(this, c.events.didOpen, { cancelable: !0 }), this._willClose = new v(this, c.events.willClose, { cancelable: !0 }), this._didClose = new v(this, c.events.didClose, { cancelable: !0 });
36
+ });
38
37
  }
39
38
  /** The type of the notification. */
40
39
  get type() {
41
- return m(this, l);
40
+ return h(this, c);
42
41
  }
43
42
  set type(i) {
44
- r(this, l, i);
43
+ r(this, c, i);
45
44
  }
46
45
  /**
47
46
  * Size variant, either s or m.
48
47
  * @default 'm' / 's' (lean)
49
48
  */
50
49
  get size() {
51
- return m(this, d);
50
+ return h(this, l);
52
51
  }
53
52
  set size(i) {
54
- r(this, d, i);
53
+ r(this, l, i);
55
54
  }
56
55
  /** The enabled animations. */
57
56
  get animation() {
58
- return m(this, f);
57
+ return h(this, d);
59
58
  }
60
59
  set animation(i) {
61
- r(this, f, i);
60
+ r(this, d, i);
62
61
  }
63
62
  /** The state of the notification. */
64
63
  set _state(i) {
@@ -71,10 +70,13 @@ let ei = (() => {
71
70
  super.willUpdate(i), i.has("size") && this._configureTitle();
72
71
  }
73
72
  _open() {
74
- this._state === "closed" && (this._state = "opening", this._willOpen.emit(), this._isZeroAnimationDuration() && this._handleOpening());
73
+ this._state === "closed" && (this._state = "opening", this.dispatchEvent(new Event("beforeopen")), this._isZeroAnimationDuration() && this._handleOpening());
75
74
  }
76
75
  close() {
77
- this._state === "opened" && this._willClose.emit() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
76
+ this._state === "opened" && this._dispatchBeforeCloseEvent() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
77
+ }
78
+ _dispatchBeforeCloseEvent() {
79
+ return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
78
80
  }
79
81
  connectedCallback() {
80
82
  this._state ||= "closed", super.connectedCallback();
@@ -85,7 +87,7 @@ let ei = (() => {
85
87
  });
86
88
  }
87
89
  _isZeroAnimationDuration() {
88
- return Z(this, "--sbb-notification-animation-duration");
90
+ return U(this, "--sbb-notification-animation-duration");
89
91
  }
90
92
  _setNotificationHeight() {
91
93
  if (!this._notificationElement?.scrollHeight)
@@ -94,16 +96,16 @@ let ei = (() => {
94
96
  this.style.setProperty("--sbb-notification-height", i);
95
97
  }
96
98
  _onNotificationResize() {
97
- this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"), P), setTimeout(() => this._setNotificationHeight()));
99
+ this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"), j), setTimeout(() => this._setNotificationHeight()));
98
100
  }
99
101
  _onNotificationAnimationEnd(i) {
100
102
  this._state === "opening" && i.animationName === "open" && this._handleOpening(), this._state === "closing" && i.animationName === "close-height" && this._handleClosing();
101
103
  }
102
104
  _handleOpening() {
103
- this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this._didOpen.emit();
105
+ this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.dispatchEvent(new Event("open"));
104
106
  }
105
107
  _handleClosing() {
106
- this._state = "closed", this._didClose.emit(), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
108
+ this._state = "closed", this.dispatchEvent(new Event("close")), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
107
109
  }
108
110
  _handleSlotchange() {
109
111
  const i = Array.from(this.children).find((t) => t.localName === "sbb-title");
@@ -114,12 +116,12 @@ let ei = (() => {
114
116
  i && (customElements.upgrade(i), i.visualLevel = this.size === "m" ? "5" : "6");
115
117
  }
116
118
  render() {
117
- return A`
119
+ return C`
118
120
  <div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
119
121
  <div class="sbb-notification">
120
122
  <sbb-icon
121
123
  class="sbb-notification__icon"
122
- name=${B.get(this.type)}
124
+ name=${M.get(this.type)}
123
125
  ></sbb-icon>
124
126
  <span class="sbb-notification__content">
125
127
  <slot name="title" @slotchange=${this._configureTitle}></slot>
@@ -128,13 +130,13 @@ let ei = (() => {
128
130
  </p>
129
131
  </span>
130
132
 
131
- ${this.readOnly ? I : A`<span class="sbb-notification__close-wrapper">
133
+ ${this.readOnly ? D : C`<span class="sbb-notification__close-wrapper">
132
134
  <sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
133
135
  <sbb-secondary-button
134
136
  size=${this.size}
135
137
  icon-name="cross-small"
136
138
  @click=${() => this.close()}
137
- aria-label=${M[this._language.current]}
139
+ aria-label=${L[this._language.current]}
138
140
  class="sbb-notification__close"
139
141
  ></sbb-secondary-button>
140
142
  </span>`}
@@ -142,23 +144,22 @@ let ei = (() => {
142
144
  </div>
143
145
  `;
144
146
  }
145
- }, l = new WeakMap(), d = new WeakMap(), f = new WeakMap(), s = e, (() => {
146
- const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
147
- y = [_({ reflect: !0 })], z = [_({ reflect: !0 })], C = [_({ reflect: !0 })], g(e, null, y, { kind: "accessor", name: "type", static: !1, private: !1, access: { has: (t) => "type" in t, get: (t) => t.type, set: (t, h) => {
148
- t.type = h;
149
- } }, metadata: i }, x, w), g(e, null, z, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, h) => {
150
- t.size = h;
151
- } }, metadata: i }, k, O), g(e, null, C, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, h) => {
152
- t.animation = h;
153
- } }, metadata: i }, E, N), g(null, n = { value: s }, o, { kind: "class", name: s.name, metadata: i }, null, a), c = s = n.value, i && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
154
- })(), e.styles = q, e.events = {
155
- willOpen: "willOpen",
156
- didOpen: "didOpen",
157
- willClose: "willClose",
158
- didClose: "didClose"
159
- }, b(s, a), e);
160
- return c = s;
147
+ }, c = new WeakMap(), l = new WeakMap(), d = new WeakMap(), s = e, (() => {
148
+ const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
149
+ _ = [g({ reflect: !0 })], x = [g({ reflect: !0 })], k = [g({ reflect: !0 })], m(e, null, _, { kind: "accessor", name: "type", static: !1, private: !1, access: { has: (t) => "type" in t, get: (t) => t.type, set: (t, f) => {
150
+ t.type = f;
151
+ } }, metadata: i }, u, y), m(e, null, x, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, f) => {
152
+ t.size = f;
153
+ } }, metadata: i }, z, w), m(e, null, k, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, f) => {
154
+ t.animation = f;
155
+ } }, metadata: i }, E, O), m(null, n = { value: s }, o, { kind: "class", name: s.name, metadata: i }, null, a), s = n.value, i && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
156
+ })(), e.styles = B, e.events = {
157
+ beforeopen: "beforeopen",
158
+ open: "open",
159
+ beforeclose: "beforeclose",
160
+ close: "close"
161
+ }, b(s, a), s;
161
162
  })();
162
163
  export {
163
- ei as SbbNotificationElement
164
+ oi as SbbNotificationElement
164
165
  };
@@ -1,7 +1,9 @@
1
1
  import { LitElement, nothing, PropertyValues, TemplateResult } from 'lit';
2
- import { EventEmitter } from '../../core/eventing.js';
3
2
  declare const SbbOptionBaseElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbElementInternalsMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbHydrationMixinType> & typeof LitElement & import('../../core/mixins.js').SbbElementInternalsConstructor;
4
3
  export declare abstract class SbbOptionBaseElement<T = string> extends SbbOptionBaseElement_base {
4
+ static readonly events: {
5
+ readonly optionselected: "optionselected";
6
+ };
5
7
  protected abstract optionId: string;
6
8
  /**
7
9
  * Value of the option.
@@ -15,8 +17,6 @@ export declare abstract class SbbOptionBaseElement<T = string> extends SbbOption
15
17
  /** Whether the option is selected. */
16
18
  set selected(value: boolean);
17
19
  get selected(): boolean;
18
- /** Emits when an option was selected by user. */
19
- protected abstract optionSelected: EventEmitter;
20
20
  /** Whether to apply the negative styling */
21
21
  protected accessor negative: boolean;
22
22
  /** Whether the component must be set disabled due disabled attribute on sbb-optgroup. */
@@ -59,5 +59,10 @@ export declare abstract class SbbOptionBaseElement<T = string> extends SbbOption
59
59
  protected renderTick(): TemplateResult | typeof nothing;
60
60
  protected render(): TemplateResult;
61
61
  }
62
+ declare global {
63
+ interface GlobalEventHandlersEventMap {
64
+ optionselected: CustomEvent<void>;
65
+ }
66
+ }
62
67
  export {};
63
68
  //# sourceMappingURL=option-base-element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"option-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option/option-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAQ3D,OAAO,6BAA6B,CAAC;;AAoBrC,8BAEe,oBAAoB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,yBAEvD;IACC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAEpC;;;;;OAKG;IACH,IACW,KAAK,CAAC,KAAK,EAAE,CAAC,EAOxB;IACD,IAAW,KAAK,IAAI,CAAC,CAEpB;IACD,OAAO,CAAC,MAAM,CAAkB;IAEhC,sCAAsC;IACtC,IACW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAGjC;IACD,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,iDAAiD;IACjD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,YAAY,CAAC;IAEhD,4CAA4C;IACnC,SAAS,CAAC,QAAQ,CAAC,QAAQ,UAAS;IAE7C,yFAAyF;IAChF,SAAS,CAAC,QAAQ,CAAC,iBAAiB,UAAS;IAE7C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IAE3C,0CAA0C;IACjC,SAAS,C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