@sbb-esta/lyne-elements 1.16.0 → 2.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 (677) hide show
  1. package/accordion/accordion.d.ts +4 -1
  2. package/accordion/accordion.d.ts.map +1 -1
  3. package/accordion.js +31 -22
  4. package/action-group/action-group.d.ts +6 -4
  5. package/action-group/action-group.d.ts.map +1 -1
  6. package/action-group.js +20 -17
  7. package/alert/alert/alert.d.ts +7 -23
  8. package/alert/alert/alert.d.ts.map +1 -1
  9. package/alert/alert-group/alert-group.d.ts +0 -4
  10. package/alert/alert-group/alert-group.d.ts.map +1 -1
  11. package/alert/alert-group.js +46 -47
  12. package/alert/alert.js +74 -132
  13. package/animation.css +4 -8
  14. package/autocomplete/autocomplete-base-element.d.ts +7 -6
  15. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  16. package/autocomplete/autocomplete.d.ts +0 -1
  17. package/autocomplete/autocomplete.d.ts.map +1 -1
  18. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
  19. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  20. package/autocomplete-grid/autocomplete-grid-button.js +11 -11
  21. package/autocomplete-grid/autocomplete-grid.js +0 -3
  22. package/autocomplete.js +68 -67
  23. package/button/accent-button/accent-button.d.ts +19 -0
  24. package/button/accent-button/accent-button.d.ts.map +1 -0
  25. package/button/accent-button-link/accent-button-link.d.ts +19 -0
  26. package/button/accent-button-link/accent-button-link.d.ts.map +1 -0
  27. package/button/accent-button-link.d.ts +2 -0
  28. package/button/accent-button-link.d.ts.map +1 -0
  29. package/button/accent-button-link.js +17 -0
  30. package/button/accent-button-static/accent-button-static.d.ts +19 -0
  31. package/button/accent-button-static/accent-button-static.d.ts.map +1 -0
  32. package/button/accent-button-static.d.ts +2 -0
  33. package/button/accent-button-static.d.ts.map +1 -0
  34. package/button/accent-button-static.js +17 -0
  35. package/button/accent-button.d.ts +2 -0
  36. package/button/accent-button.d.ts.map +1 -0
  37. package/button/accent-button.js +17 -0
  38. package/button/common/button-common.d.ts.map +1 -1
  39. package/button/common.d.ts.map +1 -1
  40. package/button/common.js +20 -16
  41. package/button/mini-button/mini-button.d.ts +4 -3
  42. package/button/mini-button/mini-button.d.ts.map +1 -1
  43. package/button/mini-button-group/mini-button-group.d.ts +4 -1
  44. package/button/mini-button-group/mini-button-group.d.ts.map +1 -1
  45. package/button/mini-button-group.js +12 -8
  46. package/button/mini-button.d.ts +0 -1
  47. package/button/mini-button.d.ts.map +1 -1
  48. package/button/mini-button.js +10 -20
  49. package/button.d.ts +3 -3
  50. package/button.d.ts.map +1 -1
  51. package/button.js +3 -3
  52. package/calendar.js +25 -25
  53. package/card/card/card.d.ts +4 -1
  54. package/card/card/card.d.ts.map +1 -1
  55. package/card/card.js +10 -6
  56. package/checkbox/checkbox/checkbox.d.ts +4 -6
  57. package/checkbox/checkbox/checkbox.d.ts.map +1 -1
  58. package/checkbox/checkbox-group/checkbox-group.d.ts +4 -1
  59. package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  60. package/checkbox/checkbox-group.js +14 -10
  61. package/checkbox/checkbox-panel/checkbox-panel.d.ts +4 -4
  62. package/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
  63. package/checkbox/checkbox-panel.js +21 -18
  64. package/checkbox/checkbox.js +28 -26
  65. package/{chip/chip.d.ts → chip-label/chip-label.d.ts} +4 -4
  66. package/chip-label/chip-label.d.ts.map +1 -0
  67. package/chip-label.d.ts +2 -0
  68. package/chip-label.d.ts.map +1 -0
  69. package/chip-label.js +54 -0
  70. package/clock.js +1 -1
  71. package/container/container.js +21 -21
  72. package/container/sticky-bar/sticky-bar.d.ts +1 -0
  73. package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  74. package/container/sticky-bar.js +20 -12
  75. package/core/base-elements/button-base-element.d.ts +27 -18
  76. package/core/base-elements/button-base-element.d.ts.map +1 -1
  77. package/core/base-elements/open-close-base-element.d.ts.map +1 -1
  78. package/core/base-elements.js +135 -138
  79. package/core/datetime/date-adapter.d.ts +2 -1
  80. package/core/datetime/date-adapter.d.ts.map +1 -1
  81. package/core/datetime/native-date-adapter.d.ts +1 -1
  82. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  83. package/core/datetime.js +29 -28
  84. package/core/dom/animation.d.ts +2 -0
  85. package/core/dom/animation.d.ts.map +1 -0
  86. package/core/dom/lean-context.d.ts +5 -0
  87. package/core/dom/lean-context.d.ts.map +1 -0
  88. package/core/dom.d.ts +2 -2
  89. package/core/dom.d.ts.map +1 -1
  90. package/core/dom.js +50 -55
  91. package/core/eventing/form-element-handlers.d.ts +0 -7
  92. package/core/eventing/form-element-handlers.d.ts.map +1 -1
  93. package/core/eventing.d.ts +0 -1
  94. package/core/eventing.d.ts.map +1 -1
  95. package/core/eventing.js +28 -49
  96. package/core/i18n/i18n.d.ts +4 -2
  97. package/core/i18n/i18n.d.ts.map +1 -1
  98. package/core/i18n.js +147 -140
  99. package/core/mixins/disabled-mixin.d.ts +2 -7
  100. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  101. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  102. package/core/mixins/form-associated-mixin.d.ts +1 -1
  103. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  104. package/core/mixins/form-associated-radio-button-mixin.d.ts +35 -0
  105. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -0
  106. package/core/mixins.d.ts +1 -0
  107. package/core/mixins.d.ts.map +1 -1
  108. package/core/mixins.js +347 -220
  109. package/core/styles/_index.scss +1 -0
  110. package/core/styles/core.scss +148 -0
  111. package/core/styles/image.scss +66 -0
  112. package/core/styles/mixins/animation.scss +2 -4
  113. package/core/styles/mixins/buttons.scss +7 -4
  114. package/core/styles/mixins/card.scss +1 -1
  115. package/core/styles/mixins/chip.scss +35 -35
  116. package/core/styles/mixins/image.scss +34 -0
  117. package/core/styles/mixins/overlay.scss +1 -1
  118. package/core/styles/mixins/panel.scss +1 -1
  119. package/core/styles/standard-theme.scss +1 -0
  120. package/core/styles/table.scss +4 -0
  121. package/core/testing/event-spy.d.ts +2 -1
  122. package/core/testing/event-spy.d.ts.map +1 -1
  123. package/core/testing.d.ts +0 -1
  124. package/core/testing.d.ts.map +1 -1
  125. package/core/testing.js +48 -57
  126. package/core.css +112 -0
  127. package/custom-elements.json +25950 -21681
  128. package/datepicker/common/datepicker-button.d.ts +3 -5
  129. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  130. package/datepicker/common.js +30 -29
  131. package/datepicker/datepicker/datepicker.d.ts +25 -72
  132. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  133. package/datepicker/datepicker-next-day/datepicker-next-day.d.ts +1 -3
  134. package/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
  135. package/datepicker/datepicker-next-day.js +10 -12
  136. package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +1 -3
  137. package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
  138. package/datepicker/datepicker-previous-day.js +11 -13
  139. package/datepicker/datepicker.js +129 -157
  140. package/development/accordion/accordion.d.ts +4 -1
  141. package/development/accordion/accordion.d.ts.map +1 -1
  142. package/development/accordion.js +16 -5
  143. package/development/action-group/action-group.d.ts +6 -4
  144. package/development/action-group/action-group.d.ts.map +1 -1
  145. package/development/action-group.js +10 -7
  146. package/development/alert/alert/alert.d.ts +7 -23
  147. package/development/alert/alert/alert.d.ts.map +1 -1
  148. package/development/alert/alert-group/alert-group.d.ts +0 -4
  149. package/development/alert/alert-group/alert-group.d.ts.map +1 -1
  150. package/development/alert/alert-group.js +10 -12
  151. package/development/alert/alert.js +38 -122
  152. package/development/autocomplete/autocomplete-base-element.d.ts +7 -6
  153. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  154. package/development/autocomplete/autocomplete.d.ts +0 -1
  155. package/development/autocomplete/autocomplete.d.ts.map +1 -1
  156. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts +0 -1
  157. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  158. package/development/autocomplete-grid/autocomplete-grid-button.js +6 -6
  159. package/development/autocomplete-grid/autocomplete-grid.js +1 -7
  160. package/development/autocomplete.js +23 -19
  161. package/development/button/accent-button/accent-button.d.ts +19 -0
  162. package/development/button/accent-button/accent-button.d.ts.map +1 -0
  163. package/development/button/accent-button-link/accent-button-link.d.ts +19 -0
  164. package/development/button/accent-button-link/accent-button-link.d.ts.map +1 -0
  165. package/development/button/accent-button-link.d.ts +2 -0
  166. package/development/button/accent-button-link.d.ts.map +1 -0
  167. package/development/button/accent-button-link.js +25 -0
  168. package/development/button/accent-button-static/accent-button-static.d.ts +19 -0
  169. package/development/button/accent-button-static/accent-button-static.d.ts.map +1 -0
  170. package/development/button/accent-button-static.d.ts +2 -0
  171. package/development/button/accent-button-static.d.ts.map +1 -0
  172. package/development/button/accent-button-static.js +25 -0
  173. package/development/button/accent-button.d.ts +2 -0
  174. package/development/button/accent-button.d.ts.map +1 -0
  175. package/development/button/accent-button.js +25 -0
  176. package/development/button/common/button-common.d.ts.map +1 -1
  177. package/development/button/common.d.ts.map +1 -1
  178. package/development/button/common.js +20 -16
  179. package/development/button/mini-button/mini-button.d.ts +4 -3
  180. package/development/button/mini-button/mini-button.d.ts.map +1 -1
  181. package/development/button/mini-button-group/mini-button-group.d.ts +4 -1
  182. package/development/button/mini-button-group/mini-button-group.d.ts.map +1 -1
  183. package/development/button/mini-button-group.js +7 -3
  184. package/development/button/mini-button.d.ts +0 -1
  185. package/development/button/mini-button.d.ts.map +1 -1
  186. package/development/button/mini-button.js +14 -32
  187. package/development/button.d.ts +3 -3
  188. package/development/button.d.ts.map +1 -1
  189. package/development/button.js +3 -3
  190. package/development/calendar.js +1 -1
  191. package/development/card/card/card.d.ts +4 -1
  192. package/development/card/card/card.d.ts.map +1 -1
  193. package/development/card/card.js +8 -4
  194. package/development/checkbox/checkbox/checkbox.d.ts +4 -6
  195. package/development/checkbox/checkbox/checkbox.d.ts.map +1 -1
  196. package/development/checkbox/checkbox-group/checkbox-group.d.ts +4 -1
  197. package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  198. package/development/checkbox/checkbox-group.js +7 -3
  199. package/development/checkbox/checkbox-panel/checkbox-panel.d.ts +4 -4
  200. package/development/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
  201. package/development/checkbox/checkbox-panel.js +7 -4
  202. package/development/checkbox/checkbox.js +8 -6
  203. package/development/{chip/chip.d.ts → chip-label/chip-label.d.ts} +4 -4
  204. package/development/chip-label/chip-label.d.ts.map +1 -0
  205. package/development/chip-label.d.ts +2 -0
  206. package/development/chip-label.d.ts.map +1 -0
  207. package/development/{chip.js → chip-label.js} +26 -26
  208. package/development/clock.js +1 -1
  209. package/development/container/container.js +8 -12
  210. package/development/container/sticky-bar/sticky-bar.d.ts +1 -0
  211. package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  212. package/development/container/sticky-bar.js +18 -10
  213. package/development/core/base-elements/button-base-element.d.ts +27 -18
  214. package/development/core/base-elements/button-base-element.d.ts.map +1 -1
  215. package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
  216. package/development/core/base-elements.js +66 -74
  217. package/development/core/datetime/date-adapter.d.ts +2 -1
  218. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  219. package/development/core/datetime/native-date-adapter.d.ts +1 -1
  220. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  221. package/development/core/datetime.js +4 -3
  222. package/development/core/dom/animation.d.ts +2 -0
  223. package/development/core/dom/animation.d.ts.map +1 -0
  224. package/development/core/dom/lean-context.d.ts +5 -0
  225. package/development/core/dom/lean-context.d.ts.map +1 -0
  226. package/development/core/dom.d.ts +2 -2
  227. package/development/core/dom.d.ts.map +1 -1
  228. package/development/core/dom.js +13 -21
  229. package/development/core/eventing/form-element-handlers.d.ts +0 -7
  230. package/development/core/eventing/form-element-handlers.d.ts.map +1 -1
  231. package/development/core/eventing.d.ts +0 -1
  232. package/development/core/eventing.d.ts.map +1 -1
  233. package/development/core/eventing.js +1 -25
  234. package/development/core/i18n/i18n.d.ts +4 -2
  235. package/development/core/i18n/i18n.d.ts.map +1 -1
  236. package/development/core/i18n.js +27 -23
  237. package/development/core/mixins/disabled-mixin.d.ts +2 -7
  238. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  239. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  240. package/development/core/mixins/form-associated-mixin.d.ts +1 -1
  241. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  242. package/development/core/mixins/form-associated-radio-button-mixin.d.ts +35 -0
  243. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -0
  244. package/development/core/mixins.d.ts +1 -0
  245. package/development/core/mixins.d.ts.map +1 -1
  246. package/development/core/mixins.js +221 -30
  247. package/development/core/testing/event-spy.d.ts +2 -1
  248. package/development/core/testing/event-spy.d.ts.map +1 -1
  249. package/development/core/testing.d.ts +0 -1
  250. package/development/core/testing.d.ts.map +1 -1
  251. package/development/core/testing.js +4 -15
  252. package/development/datepicker/common/datepicker-button.d.ts +3 -5
  253. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  254. package/development/datepicker/common.js +13 -12
  255. package/development/datepicker/datepicker/datepicker.d.ts +25 -72
  256. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  257. package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts +1 -3
  258. package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
  259. package/development/datepicker/datepicker-next-day.js +9 -15
  260. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts +1 -3
  261. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
  262. package/development/datepicker/datepicker-previous-day.js +9 -15
  263. package/development/datepicker/datepicker.js +74 -115
  264. package/development/dialog/dialog/dialog.d.ts +3 -0
  265. package/development/dialog/dialog/dialog.d.ts.map +1 -1
  266. package/development/dialog/dialog-title.js +2 -1
  267. package/development/dialog/dialog.js +46 -39
  268. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts +7 -1
  269. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  270. package/development/expansion-panel/expansion-panel-header.js +3 -3
  271. package/development/expansion-panel/expansion-panel.js +32 -17
  272. package/development/file-selector/common/file-selector-common.d.ts +23 -0
  273. package/development/file-selector/common/file-selector-common.d.ts.map +1 -0
  274. package/development/file-selector/common.d.ts +2 -0
  275. package/development/file-selector/common.d.ts.map +1 -0
  276. package/development/file-selector/common.js +382 -0
  277. package/development/file-selector/file-selector/file-selector.d.ts +24 -0
  278. package/development/file-selector/file-selector/file-selector.d.ts.map +1 -0
  279. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts +33 -0
  280. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts.map +1 -0
  281. package/development/file-selector/file-selector-dropzone.d.ts +2 -0
  282. package/development/file-selector/file-selector-dropzone.d.ts.map +1 -0
  283. package/development/file-selector/file-selector-dropzone.js +181 -0
  284. package/development/file-selector/file-selector.d.ts +1 -87
  285. package/development/file-selector/file-selector.d.ts.map +1 -1
  286. package/development/file-selector/file-selector.js +52 -0
  287. package/development/file-selector.d.ts +2 -0
  288. package/development/file-selector.d.ts.map +1 -1
  289. package/development/file-selector.js +4 -552
  290. package/development/flip-card/flip-card-details.js +1 -1
  291. package/development/flip-card/flip-card-summary.js +3 -11
  292. package/development/flip-card/flip-card.js +6 -6
  293. package/development/form-field/form-field/form-field.d.ts +5 -10
  294. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  295. package/development/form-field/form-field-clear.js +6 -6
  296. package/development/form-field/form-field.js +32 -40
  297. package/development/header/common.js +2 -2
  298. package/development/header/header/header.d.ts +5 -3
  299. package/development/header/header/header.d.ts.map +1 -1
  300. package/development/header/header.js +15 -20
  301. package/development/image/image.d.ts +0 -30
  302. package/development/image/image.d.ts.map +1 -1
  303. package/development/image.js +62 -273
  304. package/development/journey-header/journey-header.d.ts +4 -1
  305. package/development/journey-header/journey-header.d.ts.map +1 -1
  306. package/development/journey-header.js +7 -3
  307. package/development/lead-container.js +2 -10
  308. package/development/link/common/link-common.d.ts.map +1 -1
  309. package/development/link/common.js +9 -8
  310. package/development/link-list/common/link-list-base.d.ts +1 -0
  311. package/development/link-list/common/link-list-base.d.ts.map +1 -1
  312. package/development/link-list/common.js +4 -2
  313. package/development/link-list/link-list-anchor.js +4 -4
  314. package/development/loading-indicator/loading-indicator.d.ts +1 -3
  315. package/development/loading-indicator/loading-indicator.d.ts.map +1 -1
  316. package/development/loading-indicator-circle/loading-indicator-circle.d.ts +16 -0
  317. package/development/loading-indicator-circle/loading-indicator-circle.d.ts.map +1 -0
  318. package/development/loading-indicator-circle.d.ts +2 -0
  319. package/development/loading-indicator-circle.d.ts.map +1 -0
  320. package/development/loading-indicator-circle.js +146 -0
  321. package/development/loading-indicator.js +81 -182
  322. package/development/map-container/map-container.d.ts.map +1 -1
  323. package/development/map-container.js +5 -5
  324. package/development/menu/common.js +5 -5
  325. package/development/menu/menu/menu.d.ts +3 -0
  326. package/development/menu/menu/menu.d.ts.map +1 -1
  327. package/development/menu/menu.js +39 -24
  328. package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
  329. package/development/navigation/common.js +9 -5
  330. package/development/navigation/navigation/navigation.d.ts +3 -0
  331. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  332. package/development/navigation/navigation-list/navigation-list.d.ts.map +1 -1
  333. package/development/navigation/navigation-list.js +3 -2
  334. package/development/navigation/navigation-marker/navigation-marker.d.ts +2 -1
  335. package/development/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  336. package/development/navigation/navigation-marker.js +6 -4
  337. package/development/navigation/navigation-section/navigation-section.d.ts +3 -0
  338. package/development/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  339. package/development/navigation/navigation-section.js +38 -22
  340. package/development/navigation/navigation.js +42 -27
  341. package/development/notification/notification.d.ts +6 -2
  342. package/development/notification/notification.d.ts.map +1 -1
  343. package/development/notification.js +27 -21
  344. package/development/option/option/option-base-element.d.ts +0 -7
  345. package/development/option/option/option-base-element.d.ts.map +1 -1
  346. package/development/option/option.js +5 -26
  347. package/development/overlay/overlay-base-element.d.ts +2 -0
  348. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  349. package/development/overlay/overlay.d.ts +3 -0
  350. package/development/overlay/overlay.d.ts.map +1 -1
  351. package/development/overlay.js +43 -31
  352. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  353. package/development/paginator/common.js +7 -3
  354. package/development/paginator/paginator.js +1 -1
  355. package/development/popover/popover/popover.d.ts +3 -0
  356. package/development/popover/popover/popover.d.ts.map +1 -1
  357. package/development/popover/popover-trigger.js +9 -9
  358. package/development/popover/popover.js +41 -26
  359. package/development/radio-button/common/radio-button-common.d.ts +3 -10
  360. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  361. package/development/radio-button/common.js +44 -121
  362. package/development/radio-button/radio-button/radio-button.d.ts +9 -1
  363. package/development/radio-button/radio-button/radio-button.d.ts.map +1 -1
  364. package/development/radio-button/radio-button-group/radio-button-group.d.ts +19 -26
  365. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  366. package/development/radio-button/radio-button-group.js +87 -123
  367. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +20 -2
  368. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  369. package/development/radio-button/radio-button-panel.js +35 -15
  370. package/development/radio-button/radio-button.js +11 -15
  371. package/development/select/select.d.ts +3 -9
  372. package/development/select/select.d.ts.map +1 -1
  373. package/development/select.js +27 -25
  374. package/development/selection-expansion-panel/selection-expansion-panel.d.ts +4 -1
  375. package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  376. package/development/selection-expansion-panel.js +28 -16
  377. package/development/skiplink-list/skiplink-list.d.ts.map +1 -1
  378. package/development/skiplink-list.js +3 -2
  379. package/development/slider/slider.d.ts +0 -1
  380. package/development/slider/slider.d.ts.map +1 -1
  381. package/development/slider.js +2 -2
  382. package/development/stepper/step-label/step-label.d.ts +0 -2
  383. package/development/stepper/step-label/step-label.d.ts.map +1 -1
  384. package/development/stepper/step-label.js +10 -11
  385. package/development/stepper/step.js +1 -1
  386. package/development/stepper/stepper/stepper.d.ts +4 -1
  387. package/development/stepper/stepper/stepper.d.ts.map +1 -1
  388. package/development/stepper/stepper.js +9 -7
  389. package/development/tabs/tab-group/tab-group.d.ts +4 -1
  390. package/development/tabs/tab-group/tab-group.d.ts.map +1 -1
  391. package/development/tabs/tab-group.js +8 -4
  392. package/development/tabs/tab-label.js +1 -1
  393. package/development/tag/tag/tag.d.ts +4 -1
  394. package/development/tag/tag/tag.d.ts.map +1 -1
  395. package/development/tag/tag-group/tag-group.d.ts +5 -2
  396. package/development/tag/tag-group/tag-group.d.ts.map +1 -1
  397. package/development/tag/tag-group.js +7 -4
  398. package/development/tag/tag.js +16 -12
  399. package/development/teaser/teaser.d.ts +2 -2
  400. package/development/teaser/teaser.d.ts.map +1 -1
  401. package/development/teaser-hero/teaser-hero.d.ts +2 -6
  402. package/development/teaser-hero/teaser-hero.d.ts.map +1 -1
  403. package/development/teaser-hero.js +9 -60
  404. package/development/teaser-product/common.js +7 -14
  405. package/development/teaser-product/teaser-product.js +1 -21
  406. package/development/teaser.js +12 -31
  407. package/development/time-input/time-input.d.ts +3 -6
  408. package/development/time-input/time-input.d.ts.map +1 -1
  409. package/development/time-input.js +33 -27
  410. package/development/toast/toast.d.ts +3 -0
  411. package/development/toast/toast.d.ts.map +1 -1
  412. package/development/toast.js +27 -13
  413. package/development/toggle/toggle/toggle.d.ts +4 -8
  414. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  415. package/development/toggle/toggle.js +9 -12
  416. package/development/toggle-check/toggle-check.d.ts +4 -6
  417. package/development/toggle-check/toggle-check.d.ts.map +1 -1
  418. package/development/toggle-check.js +9 -7
  419. package/development/train/train/train.d.ts.map +1 -1
  420. package/development/train/train-blocked-passage.js +2 -2
  421. package/development/train/train-formation/train-formation.d.ts +3 -11
  422. package/development/train/train-formation/train-formation.d.ts.map +1 -1
  423. package/development/train/train-formation.js +43 -74
  424. package/development/train/train-wagon/train-wagon.d.ts +11 -8
  425. package/development/train/train-wagon/train-wagon.d.ts.map +1 -1
  426. package/development/train/train-wagon.js +149 -124
  427. package/development/train/train.js +35 -112
  428. package/development/visual-checkbox/visual-checkbox.d.ts +4 -1
  429. package/development/visual-checkbox/visual-checkbox.d.ts.map +1 -1
  430. package/development/visual-checkbox.js +7 -3
  431. package/dialog/dialog/dialog.d.ts +3 -0
  432. package/dialog/dialog/dialog.d.ts.map +1 -1
  433. package/dialog/dialog-title.js +9 -9
  434. package/dialog/dialog.js +56 -51
  435. package/expansion-panel/expansion-panel/expansion-panel.d.ts +7 -1
  436. package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  437. package/expansion-panel/expansion-panel-header.js +1 -1
  438. package/expansion-panel/expansion-panel.js +41 -28
  439. package/file-selector/common/file-selector-common.d.ts +23 -0
  440. package/file-selector/common/file-selector-common.d.ts.map +1 -0
  441. package/file-selector/common.d.ts +2 -0
  442. package/file-selector/common.d.ts.map +1 -0
  443. package/file-selector/common.js +210 -0
  444. package/file-selector/file-selector/file-selector.d.ts +24 -0
  445. package/file-selector/file-selector/file-selector.d.ts.map +1 -0
  446. package/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts +33 -0
  447. package/file-selector/file-selector-dropzone/file-selector-dropzone.d.ts.map +1 -0
  448. package/file-selector/file-selector-dropzone.d.ts +2 -0
  449. package/file-selector/file-selector-dropzone.d.ts.map +1 -0
  450. package/file-selector/file-selector-dropzone.js +97 -0
  451. package/file-selector/file-selector.d.ts +1 -87
  452. package/file-selector/file-selector.d.ts.map +1 -1
  453. package/file-selector/file-selector.js +44 -0
  454. package/file-selector.d.ts +2 -0
  455. package/file-selector.d.ts.map +1 -1
  456. package/file-selector.js +3 -301
  457. package/flip-card/flip-card-details.js +5 -5
  458. package/flip-card/flip-card-summary.js +7 -7
  459. package/flip-card/flip-card.js +9 -9
  460. package/form-field/form-field/form-field.d.ts +5 -10
  461. package/form-field/form-field/form-field.d.ts.map +1 -1
  462. package/form-field/form-field-clear.js +12 -12
  463. package/form-field/form-field.js +143 -141
  464. package/header/common.js +10 -10
  465. package/header/header/header.d.ts +5 -3
  466. package/header/header/header.d.ts.map +1 -1
  467. package/header/header.js +28 -31
  468. package/image/image.d.ts +0 -30
  469. package/image/image.d.ts.map +1 -1
  470. package/image.js +187 -281
  471. package/index.d.ts +13 -9
  472. package/index.js +13 -9
  473. package/journey-header/journey-header.d.ts +4 -1
  474. package/journey-header/journey-header.d.ts.map +1 -1
  475. package/journey-header.js +29 -25
  476. package/lead-container.js +5 -5
  477. package/link/common/link-common.d.ts.map +1 -1
  478. package/link/common.js +18 -16
  479. package/link-list/common/link-list-base.d.ts +1 -0
  480. package/link-list/common/link-list-base.d.ts.map +1 -1
  481. package/link-list/common.js +11 -9
  482. package/link-list/link-list-anchor.js +8 -8
  483. package/loading-indicator/loading-indicator.d.ts +1 -3
  484. package/loading-indicator/loading-indicator.d.ts.map +1 -1
  485. package/loading-indicator-circle/loading-indicator-circle.d.ts +16 -0
  486. package/loading-indicator-circle/loading-indicator-circle.d.ts.map +1 -0
  487. package/loading-indicator-circle.d.ts +2 -0
  488. package/loading-indicator-circle.d.ts.map +1 -0
  489. package/loading-indicator-circle.js +46 -0
  490. package/loading-indicator.js +41 -51
  491. package/map-container/map-container.d.ts.map +1 -1
  492. package/map-container.js +7 -7
  493. package/menu/common.js +8 -8
  494. package/menu/menu/menu.d.ts +3 -0
  495. package/menu/menu/menu.d.ts.map +1 -1
  496. package/menu/menu.js +52 -43
  497. package/navigation/common/navigation-action-common.d.ts.map +1 -1
  498. package/navigation/common.js +10 -6
  499. package/navigation/navigation/navigation.d.ts +3 -0
  500. package/navigation/navigation/navigation.d.ts.map +1 -1
  501. package/navigation/navigation-list/navigation-list.d.ts.map +1 -1
  502. package/navigation/navigation-list.js +17 -16
  503. package/navigation/navigation-marker/navigation-marker.d.ts +2 -1
  504. package/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  505. package/navigation/navigation-marker.js +12 -10
  506. package/navigation/navigation-section/navigation-section.d.ts +3 -0
  507. package/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  508. package/navigation/navigation-section.js +46 -37
  509. package/navigation/navigation.js +30 -21
  510. package/notification/notification.d.ts +6 -2
  511. package/notification/notification.d.ts.map +1 -1
  512. package/notification.js +55 -51
  513. package/option/option/option-base-element.d.ts +0 -7
  514. package/option/option/option-base-element.d.ts.map +1 -1
  515. package/option/option.js +110 -125
  516. package/overlay/overlay-base-element.d.ts +2 -0
  517. package/overlay/overlay-base-element.d.ts.map +1 -1
  518. package/overlay/overlay.d.ts +3 -0
  519. package/overlay/overlay.d.ts.map +1 -1
  520. package/overlay.js +83 -77
  521. package/package.json +40 -25
  522. package/paginator/common/paginator-common.d.ts.map +1 -1
  523. package/paginator/common.js +21 -17
  524. package/paginator/paginator.js +1 -1
  525. package/popover/popover/popover.d.ts +3 -0
  526. package/popover/popover/popover.d.ts.map +1 -1
  527. package/popover/popover-trigger.js +6 -6
  528. package/popover/popover.js +114 -109
  529. package/radio-button/common/radio-button-common.d.ts +3 -10
  530. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  531. package/radio-button/common.js +43 -90
  532. package/radio-button/radio-button/radio-button.d.ts +9 -1
  533. package/radio-button/radio-button/radio-button.d.ts.map +1 -1
  534. package/radio-button/radio-button-group/radio-button-group.d.ts +19 -26
  535. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  536. package/radio-button/radio-button-group.js +112 -131
  537. package/radio-button/radio-button-panel/radio-button-panel.d.ts +20 -2
  538. package/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  539. package/radio-button/radio-button-panel.js +56 -44
  540. package/radio-button/radio-button.js +34 -38
  541. package/select/select.d.ts +3 -9
  542. package/select/select.d.ts.map +1 -1
  543. package/select.js +65 -66
  544. package/selection-expansion-panel/selection-expansion-panel.d.ts +4 -1
  545. package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  546. package/selection-expansion-panel.js +41 -31
  547. package/skiplink-list/skiplink-list.d.ts.map +1 -1
  548. package/skiplink-list.js +14 -13
  549. package/slider/slider.d.ts +0 -1
  550. package/slider/slider.d.ts.map +1 -1
  551. package/slider.js +1 -1
  552. package/standard-theme.css +237 -8
  553. package/stepper/step-label/step-label.d.ts +0 -2
  554. package/stepper/step-label/step-label.d.ts.map +1 -1
  555. package/stepper/step-label.js +6 -6
  556. package/stepper/step.js +4 -4
  557. package/stepper/stepper/stepper.d.ts +4 -1
  558. package/stepper/stepper/stepper.d.ts.map +1 -1
  559. package/stepper/stepper.js +22 -19
  560. package/table.css +15 -0
  561. package/tabs/tab-group/tab-group.d.ts +4 -1
  562. package/tabs/tab-group/tab-group.d.ts.map +1 -1
  563. package/tabs/tab-group.js +24 -20
  564. package/tabs/tab-label.js +1 -1
  565. package/tag/tag/tag.d.ts +4 -1
  566. package/tag/tag/tag.d.ts.map +1 -1
  567. package/tag/tag-group/tag-group.d.ts +5 -2
  568. package/tag/tag-group/tag-group.d.ts.map +1 -1
  569. package/tag/tag-group.js +13 -10
  570. package/tag/tag.js +25 -21
  571. package/teaser/teaser.d.ts +2 -2
  572. package/teaser/teaser.d.ts.map +1 -1
  573. package/teaser-hero/teaser-hero.d.ts +2 -6
  574. package/teaser-hero/teaser-hero.d.ts.map +1 -1
  575. package/teaser-hero.js +32 -57
  576. package/teaser-product/common.js +1 -1
  577. package/teaser-product/teaser-product.js +13 -13
  578. package/teaser.js +28 -28
  579. package/time-input/time-input.d.ts +3 -6
  580. package/time-input/time-input.d.ts.map +1 -1
  581. package/time-input.js +56 -55
  582. package/toast/toast.d.ts +3 -0
  583. package/toast/toast.d.ts.map +1 -1
  584. package/toast.js +51 -42
  585. package/toggle/toggle/toggle.d.ts +4 -8
  586. package/toggle/toggle/toggle.d.ts.map +1 -1
  587. package/toggle/toggle.js +48 -48
  588. package/toggle-check/toggle-check.d.ts +4 -6
  589. package/toggle-check/toggle-check.d.ts.map +1 -1
  590. package/toggle-check.js +23 -21
  591. package/train/train/train.d.ts.map +1 -1
  592. package/train/train-blocked-passage.js +1 -1
  593. package/train/train-formation/train-formation.d.ts +3 -11
  594. package/train/train-formation/train-formation.d.ts.map +1 -1
  595. package/train/train-formation.js +47 -65
  596. package/train/train-wagon/train-wagon.d.ts +11 -8
  597. package/train/train-wagon/train-wagon.d.ts.map +1 -1
  598. package/train/train-wagon.js +123 -134
  599. package/train/train.js +74 -78
  600. package/visual-checkbox/visual-checkbox.d.ts +4 -1
  601. package/visual-checkbox/visual-checkbox.d.ts.map +1 -1
  602. package/visual-checkbox.js +21 -17
  603. package/button/mini-button/mini-button-base-element.d.ts +0 -8
  604. package/button/mini-button/mini-button-base-element.d.ts.map +0 -1
  605. package/button/tertiary-button/tertiary-button.d.ts +0 -19
  606. package/button/tertiary-button/tertiary-button.d.ts.map +0 -1
  607. package/button/tertiary-button-link/tertiary-button-link.d.ts +0 -19
  608. package/button/tertiary-button-link/tertiary-button-link.d.ts.map +0 -1
  609. package/button/tertiary-button-link.d.ts +0 -2
  610. package/button/tertiary-button-link.d.ts.map +0 -1
  611. package/button/tertiary-button-link.js +0 -17
  612. package/button/tertiary-button-static/tertiary-button-static.d.ts +0 -19
  613. package/button/tertiary-button-static/tertiary-button-static.d.ts.map +0 -1
  614. package/button/tertiary-button-static.d.ts +0 -2
  615. package/button/tertiary-button-static.d.ts.map +0 -1
  616. package/button/tertiary-button-static.js +0 -17
  617. package/button/tertiary-button.d.ts +0 -2
  618. package/button/tertiary-button.d.ts.map +0 -1
  619. package/button/tertiary-button.js +0 -17
  620. package/chip/chip.d.ts.map +0 -1
  621. package/chip.d.ts +0 -2
  622. package/chip.d.ts.map +0 -1
  623. package/chip.js +0 -54
  624. package/core/dom/get-document-writing-mode.d.ts +0 -5
  625. package/core/dom/get-document-writing-mode.d.ts.map +0 -1
  626. package/core/dom/ssr.d.ts +0 -13
  627. package/core/dom/ssr.d.ts.map +0 -1
  628. package/core/eventing/handler-repository.d.ts +0 -28
  629. package/core/eventing/handler-repository.d.ts.map +0 -1
  630. package/core/observers/intersection-observer.d.ts +0 -20
  631. package/core/observers/intersection-observer.d.ts.map +0 -1
  632. package/core/observers/mutation-observer.d.ts +0 -13
  633. package/core/observers/mutation-observer.d.ts.map +0 -1
  634. package/core/observers/resize-observer.d.ts +0 -16
  635. package/core/observers/resize-observer.d.ts.map +0 -1
  636. package/core/observers.d.ts +0 -4
  637. package/core/observers.d.ts.map +0 -1
  638. package/core/observers.js +0 -38
  639. package/core/testing/wait-for-event.d.ts +0 -2
  640. package/core/testing/wait-for-event.d.ts.map +0 -1
  641. package/development/button/mini-button/mini-button-base-element.d.ts +0 -8
  642. package/development/button/mini-button/mini-button-base-element.d.ts.map +0 -1
  643. package/development/button/tertiary-button/tertiary-button.d.ts +0 -19
  644. package/development/button/tertiary-button/tertiary-button.d.ts.map +0 -1
  645. package/development/button/tertiary-button-link/tertiary-button-link.d.ts +0 -19
  646. package/development/button/tertiary-button-link/tertiary-button-link.d.ts.map +0 -1
  647. package/development/button/tertiary-button-link.d.ts +0 -2
  648. package/development/button/tertiary-button-link.d.ts.map +0 -1
  649. package/development/button/tertiary-button-link.js +0 -25
  650. package/development/button/tertiary-button-static/tertiary-button-static.d.ts +0 -19
  651. package/development/button/tertiary-button-static/tertiary-button-static.d.ts.map +0 -1
  652. package/development/button/tertiary-button-static.d.ts +0 -2
  653. package/development/button/tertiary-button-static.d.ts.map +0 -1
  654. package/development/button/tertiary-button-static.js +0 -25
  655. package/development/button/tertiary-button.d.ts +0 -2
  656. package/development/button/tertiary-button.d.ts.map +0 -1
  657. package/development/button/tertiary-button.js +0 -25
  658. package/development/chip/chip.d.ts.map +0 -1
  659. package/development/chip.d.ts +0 -2
  660. package/development/chip.d.ts.map +0 -1
  661. package/development/core/dom/get-document-writing-mode.d.ts +0 -5
  662. package/development/core/dom/get-document-writing-mode.d.ts.map +0 -1
  663. package/development/core/dom/ssr.d.ts +0 -13
  664. package/development/core/dom/ssr.d.ts.map +0 -1
  665. package/development/core/eventing/handler-repository.d.ts +0 -28
  666. package/development/core/eventing/handler-repository.d.ts.map +0 -1
  667. package/development/core/observers/intersection-observer.d.ts +0 -20
  668. package/development/core/observers/intersection-observer.d.ts.map +0 -1
  669. package/development/core/observers/mutation-observer.d.ts +0 -13
  670. package/development/core/observers/mutation-observer.d.ts.map +0 -1
  671. package/development/core/observers/resize-observer.d.ts +0 -16
  672. package/development/core/observers/resize-observer.d.ts.map +0 -1
  673. package/development/core/observers.d.ts +0 -4
  674. package/development/core/observers.d.ts.map +0 -1
  675. package/development/core/observers.js +0 -39
  676. package/development/core/testing/wait-for-event.d.ts +0 -2
  677. package/development/core/testing/wait-for-event.d.ts.map +0 -1
@@ -8,7 +8,10 @@ declare const SbbAccordionElement_base: import('../core/mixins.js').AbstractCons
8
8
  */
9
9
  export declare class SbbAccordionElement extends SbbAccordionElement_base {
10
10
  static styles: CSSResultGroup;
11
- /** Size variant, either l or s; overrides the size on any projected `sbb-expansion-panel`. */
11
+ /**
12
+ * Size variant, either l or s; overrides the size on any projected `sbb-expansion-panel`.
13
+ * @default 'l' / 's' (lean)
14
+ */
12
15
  accessor size: 's' | 'l';
13
16
  /**
14
17
  * The heading level for the sbb-expansion-panel-headers within the component.
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/elements/accordion/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAOvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAIjD;;;;GAIG;AACH,qBAEM,mBAAoB,SAAQ,wBAA6B;IAC7D,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,8FAA8F;IAC9F,SACgB,IAAI,EAAE,GAAG,GAAG,GAAG,CAAO;IAEtC;;;OAGG;IACH,SAEgB,UAAU,EAAE,aAAa,GAAG,IAAI,CAAQ;IAExD,8EAA8E;IAC9E,SAGgB,KAAK,EAAE,OAAO,CAAS;IAEvC,OAAO,CAAC,MAAM,CAAyC;IAEvC,iBAAiB,IAAI,IAAI;IAUzC,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,YAAY;cAUD,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAU5E,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,iBAAiB;cAWN,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,eAAe,EAAE,mBAAmB,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/elements/accordion/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AASvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAIjD;;;;GAIG;AACH,qBAEM,mBAAoB,SAAQ,wBAA6B;IAC7D,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;OAGG;IACH,SACgB,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEvD;;;OAGG;IACH,SAEgB,UAAU,EAAE,aAAa,GAAG,IAAI,CAAQ;IAExD,8EAA8E;IAC9E,SAGgB,KAAK,EAAE,OAAO,CAAS;IAEvC,OAAO,CAAC,MAAM,CAAyC;IAEvC,iBAAiB,IAAI,IAAI;IAiBzC,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,YAAY;cAUD,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAU5E,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,iBAAiB;cAWN,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,eAAe,EAAE,mBAAmB,CAAC;KACtC;CACF"}
package/accordion.js CHANGED
@@ -1,28 +1,32 @@
1
1
  var C = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var A = (s, l, a) => l.has(s) || C("Cannot " + a);
5
- var d = (s, l, a) => (A(s, l, "read from private field"), a ? a.call(s) : l.get(s)), p = (s, l, a) => l.has(s) ? C("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(s) : l.set(s, a), o = (s, l, a, n) => (A(s, l, "write to private field"), n ? n.call(s, a) : l.set(s, a), a);
6
- import { __runInitializers as c, __esDecorate as b } from "tslib";
4
+ var w = (s, l, a) => l.has(s) || C("Cannot " + a);
5
+ var d = (s, l, a) => (w(s, l, "read from private field"), a ? a.call(s) : l.get(s)), p = (s, l, a) => l.has(s) ? C("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(s) : l.set(s, a), o = (s, l, a, r) => (w(s, l, "write to private field"), r ? r.call(s, a) : l.set(s, a), a);
6
+ import { __runInitializers as c, __esDecorate as f } from "tslib";
7
7
  import { css as O, LitElement as D, html as T } from "lit";
8
- import { customElement as j, property as f } from "lit/decorators.js";
8
+ import { customElement as j, property as b } from "lit/decorators.js";
9
9
  import { SbbConnectedAbortController as U } from "./core/controllers.js";
10
- import { handleDistinctChange as w, forceType as q } from "./core/decorators.js";
11
- import { SbbHydrationMixin as B } from "./core/mixins.js";
12
- import { SbbExpansionPanelElement as H } from "./expansion-panel.js";
13
- const M = O`*,:before,:after{box-sizing:border-box}:host{display:block}`;
14
- let W = (() => {
15
- var h, m, _, r;
16
- let s = [j("sbb-accordion")], l, a = [], n, v = B(D), g, z = [], x = [], L, y = [], E = [], P, S = [], k = [];
17
- return r = class extends v {
10
+ import { handleDistinctChange as A, forceType as q } from "./core/decorators.js";
11
+ import { isLean as B } from "./core/dom.js";
12
+ import { isEventPrevented as H } from "./core/eventing.js";
13
+ import { SbbHydrationMixin as M } from "./core/mixins.js";
14
+ const N = O`*,:before,:after{box-sizing:border-box}:host{display:block}`;
15
+ let Y = (() => {
16
+ var h, m, _, n;
17
+ let s = [j("sbb-accordion")], l, a = [], r, v = M(D), g, z = [], x = [], L, y = [], E = [], P, S = [], k = [];
18
+ return n = class extends v {
18
19
  constructor() {
19
20
  super(...arguments);
20
21
  p(this, h);
21
22
  p(this, m);
22
23
  p(this, _);
23
- o(this, h, c(this, z, "l")), o(this, m, (c(this, x), c(this, y, null))), o(this, _, (c(this, E), c(this, S, !1))), this._abort = (c(this, k), new U(this));
24
+ o(this, h, c(this, z, B() ? "s" : "l")), o(this, m, (c(this, x), c(this, y, null))), o(this, _, (c(this, E), c(this, S, !1))), this._abort = (c(this, k), new U(this));
24
25
  }
25
- /** Size variant, either l or s; overrides the size on any projected `sbb-expansion-panel`. */
26
+ /**
27
+ * Size variant, either l or s; overrides the size on any projected `sbb-expansion-panel`.
28
+ * @default 'l' / 's' (lean)
29
+ */
26
30
  get size() {
27
31
  return d(this, h);
28
32
  }
@@ -49,7 +53,12 @@ let W = (() => {
49
53
  connectedCallback() {
50
54
  super.connectedCallback();
51
55
  const t = this._abort.signal;
52
- this.addEventListener(H.events.willOpen, (e) => this._closePanels(e), { signal: t });
56
+ this.addEventListener("willOpen", async (e) => {
57
+ await H(e) || this._closePanels(e);
58
+ }, {
59
+ signal: t,
60
+ capture: !0
61
+ });
53
62
  }
54
63
  _expansionPanels() {
55
64
  var t;
@@ -81,17 +90,17 @@ let W = (() => {
81
90
  </div>
82
91
  `;
83
92
  }
84
- }, h = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), n = r, (() => {
93
+ }, h = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), r = n, (() => {
85
94
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
86
- g = [f({ reflect: !0 })], L = [w((e) => e._setTitleLevelOnChildren()), f({ attribute: "title-level" })], P = [q(), w((e, i, u) => e._resetExpansionPanels(i, !!u)), f({ type: Boolean })], b(r, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, i) => {
95
+ g = [b({ reflect: !0 })], L = [A((e) => e._setTitleLevelOnChildren()), b({ attribute: "title-level" })], P = [q(), A((e, i, u) => e._resetExpansionPanels(i, !!u)), b({ type: Boolean })], f(n, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, i) => {
87
96
  e.size = i;
88
- } }, metadata: t }, z, x), b(r, null, L, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (e) => "titleLevel" in e, get: (e) => e.titleLevel, set: (e, i) => {
97
+ } }, metadata: t }, z, x), f(n, null, L, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (e) => "titleLevel" in e, get: (e) => e.titleLevel, set: (e, i) => {
89
98
  e.titleLevel = i;
90
- } }, metadata: t }, y, E), b(r, null, P, { kind: "accessor", name: "multi", static: !1, private: !1, access: { has: (e) => "multi" in e, get: (e) => e.multi, set: (e, i) => {
99
+ } }, metadata: t }, y, E), f(n, null, P, { kind: "accessor", name: "multi", static: !1, private: !1, access: { has: (e) => "multi" in e, get: (e) => e.multi, set: (e, i) => {
91
100
  e.multi = i;
92
- } }, metadata: t }, S, k), b(null, l = { value: n }, s, { kind: "class", name: n.name, metadata: t }, null, a), n = l.value, t && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
93
- })(), r.styles = M, c(n, a), n;
101
+ } }, metadata: t }, S, k), f(null, l = { value: r }, s, { kind: "class", name: r.name, metadata: t }, null, a), r = l.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
102
+ })(), n.styles = N, c(r, a), r;
94
103
  })();
95
104
  export {
96
- W as SbbAccordionElement
105
+ Y as SbbAccordionElement
97
106
  };
@@ -22,13 +22,15 @@ export declare class SbbActionGroupElement extends LitElement {
22
22
  */
23
23
  accessor orientation: SbbOrientation;
24
24
  /**
25
- * Size of the nested sbb-button instances. This will overwrite the size attribute of nested
26
- * sbb-button instances.
25
+ * Size of the nested sbb-button instances.
26
+ * This will overwrite the size attribute of nested sbb-button instances.
27
+ * @default 'l' / 's' (lean)
27
28
  */
28
29
  accessor buttonSize: SbbButtonSize;
29
30
  /**
30
- * Size of the nested sbb-block-link instances. This will overwrite the size attribute of nested
31
- * sbb-block-link instances.
31
+ * Size of the nested sbb-block-link instances.
32
+ * This will overwrite the size attribute of nested sbb-block-link instances.
33
+ * @default 'm' / 'xs' (lean)
32
34
  */
33
35
  accessor linkSize: SbbLinkSize;
34
36
  protected willUpdate(changedProperties: PropertyValues<this>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"action-group.d.ts","sourceRoot":"","sources":["../../../src/elements/action-group/action-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,KAAK,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,UAAU;IAC5C,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;OAEG;IACH,SACgB,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAW;IAE7E;;OAEG;IACH,SACgB,cAAc,EAAE,iBAAiB,CAAY;IAE7D;;OAEG;IACH,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D;;;OAGG;IACH,SACgB,UAAU,EAAE,aAAa,CAAO;IAEhD;;;OAGG;IACH,SACgB,QAAQ,EAAE,WAAW,CAAO;cAEzB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAW5E,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,UAAU;cAQC,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
1
+ {"version":3,"file":"action-group.d.ts","sourceRoot":"","sources":["../../../src/elements/action-group/action-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,KAAK,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,UAAU;IAC5C,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;OAEG;IACH,SACgB,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAW;IAE7E;;OAEG;IACH,SACgB,cAAc,EAAE,iBAAiB,CAAY;IAE7D;;OAEG;IACH,SACgB,WAAW,EAAE,cAAc,CAAgB;IAE3D;;;;OAIG;IACH,SACgB,UAAU,EAAE,aAAa,CAAwB;IAEjE;;;;OAIG;IACH,SACgB,QAAQ,EAAE,WAAW,CAAyB;cAE3C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAW5E,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,UAAU;cAQC,MAAM,IAAI,cAAc;CAO5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
package/action-group.js CHANGED
@@ -4,20 +4,21 @@ var B = (i) => {
4
4
  var O = (i, n, a) => n.has(i) || B("Cannot " + a);
5
5
  var c = (i, n, a) => (O(i, n, "read from private field"), a ? a.call(i) : n.get(i)), g = (i, n, a) => n.has(i) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(i) : n.set(i, a), l = (i, n, a, s) => (O(i, n, "write to private field"), s ? s.call(i, a) : n.set(i, a), a);
6
6
  import { __esDecorate as u, __runInitializers as e } from "tslib";
7
- import { css as U, html as T, LitElement as C } from "lit";
8
- import { customElement as H, property as x } from "lit/decorators.js";
9
- const J = U`*,:before,:after{box-sizing:border-box}:host{display:block}:host([orientation=horizontal]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=horizontal][align-group=start]){--sbb-action-group-justify-content: flex-start}:host([orientation=horizontal][align-group=center]){--sbb-action-group-justify-content: center}:host([orientation=horizontal][align-group=stretch]){--sbb-action-group-justify-content: space-between}:host([orientation=horizontal][align-group=end]){--sbb-action-group-justify-content: flex-end}:host([orientation=vertical]){--sbb-action-group-orientation: column;--sbb-action-group-gap: var(--sbb-spacing-fixed-2x)}:host([orientation=vertical][align-group=start]){--sbb-action-group-align-items: flex-start}:host([orientation=vertical][align-group=center]){--sbb-action-group-align-items: center}:host([orientation=vertical][align-group=stretch]){--sbb-action-group-align-items: stretch}:host([orientation=vertical][align-group=end]){--sbb-action-group-align-items: flex-end}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}.sbb-action-group{display:flex;flex-direction:var(--sbb-action-group-orientation);gap:var(--sbb-action-group-gap);justify-content:var(--sbb-action-group-justify-content);align-items:var(--sbb-action-group-align-items)}.sbb-action-group ::slotted([align-self=start]){margin-inline-end:auto}.sbb-action-group ::slotted([align-self=center]){margin-inline:auto}.sbb-action-group ::slotted([align-self=end]){margin-inline-start:auto}::slotted(:is(sbb-block-link,sbb-block-link-button,sbb-block-link-static)){white-space:nowrap}`;
10
- let V = (() => {
7
+ import { css as T, html as C, LitElement as H } from "lit";
8
+ import { customElement as J, property as x } from "lit/decorators.js";
9
+ import { isLean as U } from "./core/dom.js";
10
+ const K = T`*,:before,:after{box-sizing:border-box}:host{display:block}:host([orientation=horizontal]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=horizontal][align-group=start]){--sbb-action-group-justify-content: flex-start}:host([orientation=horizontal][align-group=center]){--sbb-action-group-justify-content: center}:host([orientation=horizontal][align-group=stretch]){--sbb-action-group-justify-content: space-between}:host([orientation=horizontal][align-group=end]){--sbb-action-group-justify-content: flex-end}:host([orientation=vertical]){--sbb-action-group-orientation: column;--sbb-action-group-gap: var(--sbb-spacing-fixed-2x)}:host([orientation=vertical][align-group=start]){--sbb-action-group-align-items: flex-start}:host([orientation=vertical][align-group=center]){--sbb-action-group-align-items: center}:host([orientation=vertical][align-group=stretch]){--sbb-action-group-align-items: stretch}:host([orientation=vertical][align-group=end]){--sbb-action-group-align-items: flex-end}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=zero][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=micro][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=small][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=medium][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=large][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=wide][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra][align-group=start]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-start;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=center]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: center;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=stretch]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: space-between;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}:host([orientation=vertical][horizontal-from=ultra][align-group=end]){--sbb-action-group-orientation: row;--sbb-action-group-align-items: center;--sbb-action-group-justify-content: flex-end;--sbb-action-group-gap: var(--sbb-spacing-fixed-4x)}}.sbb-action-group{display:flex;flex-direction:var(--sbb-action-group-orientation);gap:var(--sbb-action-group-gap);justify-content:var(--sbb-action-group-justify-content);align-items:var(--sbb-action-group-align-items)}.sbb-action-group ::slotted([align-self=start]){margin-inline-end:auto}.sbb-action-group ::slotted([align-self=center]){margin-inline:auto}.sbb-action-group ::slotted([align-self=end]){margin-inline-start:auto}::slotted(:is(sbb-block-link,sbb-block-link-button,sbb-block-link-static)){white-space:nowrap}`;
11
+ let X = (() => {
11
12
  var p, m, f, h, d, r;
12
- let i = [H("sbb-action-group")], n, a = [], s, z = C, v, _ = [], w = [], y, j = [], k = [], S, G = [], F = [], I, E = [], A = [], D, L = [], q = [];
13
+ let i = [J("sbb-action-group")], n, a = [], s, z = H, v, _ = [], w = [], y, j = [], k = [], S, G = [], F = [], I, E = [], L = [], A, D = [], q = [];
13
14
  return r = class extends z {
14
15
  constructor() {
15
16
  super(...arguments);
16
17
  g(this, p, e(this, _, "start"));
17
18
  g(this, m, (e(this, w), e(this, j, "medium")));
18
19
  g(this, f, (e(this, k), e(this, G, "horizontal")));
19
- g(this, h, (e(this, F), e(this, E, "l")));
20
- g(this, d, (e(this, A), e(this, L, "m")));
20
+ g(this, h, (e(this, F), e(this, E, U() ? "s" : "l")));
21
+ g(this, d, (e(this, L), e(this, D, U() ? "xs" : "m")));
21
22
  e(this, q);
22
23
  }
23
24
  /**
@@ -48,8 +49,9 @@ let V = (() => {
48
49
  l(this, f, o);
49
50
  }
50
51
  /**
51
- * Size of the nested sbb-button instances. This will overwrite the size attribute of nested
52
- * sbb-button instances.
52
+ * Size of the nested sbb-button instances.
53
+ * This will overwrite the size attribute of nested sbb-button instances.
54
+ * @default 'l' / 's' (lean)
53
55
  */
54
56
  get buttonSize() {
55
57
  return c(this, h);
@@ -58,8 +60,9 @@ let V = (() => {
58
60
  l(this, h, o);
59
61
  }
60
62
  /**
61
- * Size of the nested sbb-block-link instances. This will overwrite the size attribute of nested
62
- * sbb-block-link instances.
63
+ * Size of the nested sbb-block-link instances.
64
+ * This will overwrite the size attribute of nested sbb-block-link instances.
65
+ * @default 'm' / 'xs' (lean)
63
66
  */
64
67
  get linkSize() {
65
68
  return c(this, d);
@@ -81,7 +84,7 @@ let V = (() => {
81
84
  });
82
85
  }
83
86
  render() {
84
- return T`
87
+ return C`
85
88
  <div class="sbb-action-group">
86
89
  <slot></slot>
87
90
  </div>
@@ -89,7 +92,7 @@ let V = (() => {
89
92
  }
90
93
  }, p = new WeakMap(), m = new WeakMap(), f = new WeakMap(), h = new WeakMap(), d = new WeakMap(), s = r, (() => {
91
94
  const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
92
- v = [x({ attribute: "align-group", reflect: !0 })], y = [x({ attribute: "horizontal-from", reflect: !0 })], S = [x({ reflect: !0 })], I = [x({ attribute: "button-size", reflect: !0 })], D = [x({ attribute: "link-size", reflect: !0 })], u(r, null, v, { kind: "accessor", name: "alignGroup", static: !1, private: !1, access: { has: (t) => "alignGroup" in t, get: (t) => t.alignGroup, set: (t, b) => {
95
+ v = [x({ attribute: "align-group", reflect: !0 })], y = [x({ attribute: "horizontal-from", reflect: !0 })], S = [x({ reflect: !0 })], I = [x({ attribute: "button-size", reflect: !0 })], A = [x({ attribute: "link-size", reflect: !0 })], u(r, null, v, { kind: "accessor", name: "alignGroup", static: !1, private: !1, access: { has: (t) => "alignGroup" in t, get: (t) => t.alignGroup, set: (t, b) => {
93
96
  t.alignGroup = b;
94
97
  } }, metadata: o }, _, w), u(r, null, y, { kind: "accessor", name: "horizontalFrom", static: !1, private: !1, access: { has: (t) => "horizontalFrom" in t, get: (t) => t.horizontalFrom, set: (t, b) => {
95
98
  t.horizontalFrom = b;
@@ -97,11 +100,11 @@ let V = (() => {
97
100
  t.orientation = b;
98
101
  } }, metadata: o }, G, F), u(r, null, I, { kind: "accessor", name: "buttonSize", static: !1, private: !1, access: { has: (t) => "buttonSize" in t, get: (t) => t.buttonSize, set: (t, b) => {
99
102
  t.buttonSize = b;
100
- } }, metadata: o }, E, A), u(r, null, D, { kind: "accessor", name: "linkSize", static: !1, private: !1, access: { has: (t) => "linkSize" in t, get: (t) => t.linkSize, set: (t, b) => {
103
+ } }, metadata: o }, E, L), u(r, null, A, { kind: "accessor", name: "linkSize", static: !1, private: !1, access: { has: (t) => "linkSize" in t, get: (t) => t.linkSize, set: (t, b) => {
101
104
  t.linkSize = b;
102
- } }, metadata: o }, L, q), u(null, n = { value: s }, i, { kind: "class", name: s.name, metadata: o }, null, a), s = n.value, o && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
103
- })(), r.styles = J, e(s, a), s;
105
+ } }, metadata: o }, D, q), u(null, n = { value: s }, i, { kind: "class", name: s.name, metadata: o }, null, a), s = n.value, o && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
106
+ })(), r.styles = K, e(s, a), s;
104
107
  })();
105
108
  export {
106
- V as SbbActionGroupElement
109
+ X as SbbActionGroupElement
107
110
  };
@@ -1,5 +1,5 @@
1
1
  import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
2
- import { LinkTargetType, SbbOpenCloseBaseElement } from '../../core/base-elements.js';
2
+ import { SbbOpenCloseBaseElement } from '../../core/base-elements.js';
3
3
  import { SbbTitleLevel } from '../../title.js';
4
4
  declare const SbbAlertElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & typeof SbbOpenCloseBaseElement;
5
5
  /**
@@ -12,7 +12,6 @@ declare const SbbAlertElement_base: import('../../core/mixins.js').AbstractConst
12
12
  * @event {CustomEvent<void>} didOpen - Emits when the opening animation ends.
13
13
  * @event {CustomEvent<void>} willClose - Emits when the closing animation starts. Can be canceled.
14
14
  * @event {CustomEvent<void>} didClose - Emits when the closing animation ends.
15
- * @event {CustomEvent<void>} dismissalRequested - Emits when dismissal of an alert was requested.
16
15
  */
17
16
  export declare class SbbAlertElement extends SbbAlertElement_base {
18
17
  static styles: CSSResultGroup;
@@ -21,14 +20,16 @@ export declare class SbbAlertElement extends SbbAlertElement_base {
21
20
  readonly didOpen: "didOpen";
22
21
  readonly willClose: "willClose";
23
22
  readonly didClose: "didClose";
24
- readonly dismissalRequested: "dismissalRequested";
25
23
  };
26
24
  /**
27
25
  * Whether the alert is readonly.
28
26
  * In readonly mode, there is no dismiss button offered to the user.
29
27
  */
30
28
  accessor readonly: boolean;
31
- /** You can choose between `s`, `m` or `l` size. */
29
+ /**
30
+ * You can choose between `s`, `m` or `l` size.
31
+ * @default 'm' / 's' (lean)
32
+ */
32
33
  accessor size: 's' | 'm' | 'l';
33
34
  /**
34
35
  * Name of the icon which will be forward to the nested `sbb-icon`.
@@ -40,36 +41,19 @@ export declare class SbbAlertElement extends SbbAlertElement_base {
40
41
  accessor titleContent: string;
41
42
  /** Level of title, will be rendered as heading tag (e.g. h3). Defaults to level 3. */
42
43
  accessor titleLevel: SbbTitleLevel;
43
- /** Content of the link. */
44
- accessor linkContent: string;
45
- /** The href value you want to link to. */
46
- accessor href: string;
47
- /** Where to display the linked URL. */
48
- accessor target: LinkTargetType | string;
49
- /** The relationship of the linked URL as space-separated link types. */
50
- accessor rel: string;
51
- /** This will be forwarded as aria-label to the relevant nested element. */
52
- accessor accessibilityLabel: string;
53
44
  /** The enabled animations. */
54
45
  accessor animation: 'open' | 'close' | 'all' | 'none';
55
- /**
56
- * Emits when dismissal of an alert was requested.
57
- * @deprecated
58
- */
59
- private _dismissalRequested;
60
46
  private _language;
61
- /** Requests dismissal of the alert.
62
- * @deprecated in favour of 'willClose' and 'didClose' events
63
- */
64
- requestDismissal(): void;
65
47
  /** Open the alert. */
66
48
  open(): void;
67
49
  /** Close the alert. */
68
50
  close(): void;
69
51
  protected firstUpdated(changedProperties: PropertyValues<this>): Promise<void>;
52
+ private _isZeroAnimationDuration;
70
53
  private _onAnimationEnd;
71
54
  private _handleOpening;
72
55
  private _handleClosing;
56
+ private _syncLinks;
73
57
  protected render(): TemplateResult;
74
58
  }
75
59
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/elements/alert/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGnG,OAAO,EAAE,KAAK,cAAc,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAM3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;;AAExB;;;;;;;;;;;GAWG;AACH,qBAEM,eAAgB,SAAQ,oBAAyC;IACrE,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAgC,MAAM;;;;;;MAM3B;IAEX;;;OAGG;IACH,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,mDAAmD;IACnD,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAO;IAEzE;;;;OAIG;IACH,SAEyB,QAAQ,EAAE,MAAM,CAAU;IAEnD,wBAAwB;IACxB,SAEgB,YAAY,EAAE,MAAM,CAAM;IAE1C,sFAAsF;IACtF,SAAwD,UAAU,EAAE,aAAa,CAAO;IAExF,2BAA2B;IAC3B,SAEgB,WAAW,EAAE,MAAM,CAAM;IAEzC,0CAA0C;IAC1C,SAEgB,IAAI,EAAE,MAAM,CAAM;IAElC,uCAAuC;IACvC,SAEgB,MAAM,EAAE,cAAc,GAAG,MAAM,CAAM;IAErD,wEAAwE;IACxE,SAEgB,GAAG,EAAE,MAAM,CAAM;IAEjC,2EAA2E;IAC3E,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD,8BAA8B;IAC9B,SAA6C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAS;IAElG;;;OAGG;IACH,OAAO,CAAC,mBAAmB,CAGzB;IAEF,OAAO,CAAC,SAAS,CAAmC;IAEpD;;OAEG;IACI,gBAAgB,IAAI,IAAI;IAI/B,sBAAsB;IACf,IAAI,IAAI,IAAI;IAKnB,uBAAuB;IAChB,KAAK,IAAI,IAAI;cAMK,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7F,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,cAAc;cAMH,MAAM,IAAI,cAAc;CAqD5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/elements/alert/alert/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAMtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;;AAExB;;;;;;;;;;GAUG;AACH,qBAEM,eAAgB,SAAQ,oBAAyC;IACrE,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAgC,MAAM;;;;;MAK3B;IAEX;;;OAGG;IACH,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAwB;IAE1F;;;;OAIG;IACH,SAEyB,QAAQ,EAAE,MAAM,CAAU;IAEnD,wBAAwB;IACxB,SAEgB,YAAY,EAAE,MAAM,CAAM;IAE1C,sFAAsF;IACtF,SAAwD,UAAU,EAAE,aAAa,CAAO;IAExF,8BAA8B;IAC9B,SAA6C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAS;IAElG,OAAO,CAAC,SAAS,CAAmC;IAEpD,sBAAsB;IACf,IAAI,IAAI,IAAI;IAWnB,uBAAuB;IAChB,KAAK,IAAI,IAAI;cAYK,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7F,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,UAAU;cAMC,MAAM,IAAI,cAAc;CA0C5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
@@ -6,13 +6,11 @@ declare const SbbAlertGroupElement_base: import('../../core/mixins.js').Abstract
6
6
  *
7
7
  * @slot - Use the unnamed slot to add `sbb-alert` elements to the `sbb-alert-group`.
8
8
  * @slot accessibility-title - title for this `sbb-alert-group` which is only visible for screen reader users.
9
- * @event {CustomEvent<SbbAlertElement>} didDismissAlert - Emits when an alert was removed from DOM.
10
9
  * @event {CustomEvent<void>} empty - Emits when `sbb-alert-group` becomes empty.
11
10
  */
12
11
  export declare class SbbAlertGroupElement extends SbbAlertGroupElement_base {
13
12
  static styles: CSSResultGroup;
14
13
  static readonly events: {
15
- readonly didDismissAlert: "didDismissAlert";
16
14
  readonly empty: "empty";
17
15
  };
18
16
  /**
@@ -28,8 +26,6 @@ export declare class SbbAlertGroupElement extends SbbAlertGroupElement_base {
28
26
  accessor accessibilityTitleLevel: SbbTitleLevel;
29
27
  /** Whether the group currently has any alerts. */
30
28
  private accessor _hasAlerts;
31
- /** Emits when an alert was removed from DOM. */
32
- private _didDismissAlert;
33
29
  /** Emits when `sbb-alert-group` becomes empty. */
34
30
  private _empty;
35
31
  private _abort;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-group.d.ts","sourceRoot":"","sources":["../../../../src/elements/alert/alert-group/alert-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAW,MAAM,KAAK,CAAC;AAQ1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;;AAKpD;;;;;;;GAOG;AACH,qBAEM,oBAAqB,SAAQ,yBAA6B;IAC9D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX;;;;;OAKG;IACH,SACyB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAY;IAEtE,gFAAgF;IAChF,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD,wGAAwG;IACxG,SACgB,uBAAuB,EAAE,aAAa,CAAO;IAE7D,kDAAkD;IACzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAEtD,gDAAgD;IAChD,OAAO,CAAC,gBAAgB,CAGtB;IAEF,kDAAkD;IAClD,OAAO,CAAC,MAAM,CAAiF;IAE/F,OAAO,CAAC,MAAM,CAAyC;IAEvC,iBAAiB,IAAI,IAAI;IAezC,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,YAAY;cAaD,MAAM,IAAI,cAAc;CAe5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
1
+ {"version":3,"file":"alert-group.d.ts","sourceRoot":"","sources":["../../../../src/elements/alert/alert-group/alert-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAW,MAAM,KAAK,CAAC;AAQ1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;;AAKpD;;;;;;GAMG;AACH,qBAEM,oBAAqB,SAAQ,yBAA6B;IAC9D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX;;;;;OAKG;IACH,SACyB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAY;IAEtE,gFAAgF;IAChF,SAEgB,kBAAkB,EAAE,MAAM,CAAM;IAEhD,wGAAwG;IACxG,SACgB,uBAAuB,EAAE,aAAa,CAAO;IAE7D,kDAAkD;IACzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAEtD,kDAAkD;IAClD,OAAO,CAAC,MAAM,CAAiF;IAE/F,OAAO,CAAC,MAAM,CAAyC;IAEvC,iBAAiB,IAAI,IAAI;IAiBzC,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,YAAY;cAaD,MAAM,IAAI,cAAc;CAe5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
@@ -1,29 +1,28 @@
1
- var D = (s) => {
1
+ var $ = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var $ = (s, i, l) => i.has(s) || D("Cannot " + l);
5
- var m = (s, i, l) => ($(s, i, "read from private field"), l ? l.call(s) : i.get(s)), u = (s, i, l) => i.has(s) ? D("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, l), c = (s, i, l, o) => ($(s, i, "write to private field"), o ? o.call(s, l) : i.set(s, l), l);
4
+ var G = (s, i, a) => i.has(s) || $("Cannot " + a);
5
+ var d = (s, i, a) => (G(s, i, "read from private field"), a ? a.call(s) : i.get(s)), m = (s, i, a) => i.has(s) ? $("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, a), c = (s, i, a, o) => (G(s, i, "write to private field"), o ? o.call(s, a) : i.set(s, a), a);
6
6
  import { __runInitializers as n, __esDecorate as p } from "tslib";
7
- import { css as O, LitElement as q, nothing as F } from "lit";
8
- import { customElement as H, property as g, state as P } from "lit/decorators.js";
9
- import { html as G, unsafeStatic as j } from "lit/static-html.js";
10
- import { SbbConnectedAbortController as R } from "../core/controllers.js";
11
- import { forceType as B } from "../core/decorators.js";
12
- import { EventEmitter as M } from "../core/eventing.js";
13
- import { SbbHydrationMixin as J } from "../core/mixins.js";
14
- import { SbbAlertElement as N } from "./alert.js";
15
- const K = O`*,:before,:after{box-sizing:border-box}:host{--sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);--sbb-alert-group-border-radius: var(--sbb-border-radius-4x);display:block}.sbb-alert-group{display:flex;flex-direction:column;gap:var(--sbb-alert-group-gap)}:host(:focus-visible:not([data-empty])){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:var(--sbb-alert-group-border-radius)}.sbb-alert-group__title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
16
- let lt = (() => {
17
- var b, h, d, _, a;
18
- let s = [H("sbb-alert-group")], i, l = [], o, y = J(q), v, A = [], T = [], x, E = [], L = [], z, S = [], w = [], C, I = [], k = [];
19
- var f = (a = class extends y {
7
+ import { css as F, LitElement as M, nothing as N } from "lit";
8
+ import { customElement as O, property as f, state as P } from "lit/decorators.js";
9
+ import { html as D, unsafeStatic as j } from "lit/static-html.js";
10
+ import { SbbConnectedAbortController as H } from "../core/controllers.js";
11
+ import { forceType as q } from "../core/decorators.js";
12
+ import { EventEmitter as B, isEventPrevented as J } from "../core/eventing.js";
13
+ import { SbbHydrationMixin as K } from "../core/mixins.js";
14
+ const Q = F`*,:before,:after{box-sizing:border-box}:host{--sbb-alert-group-gap: var(--sbb-spacing-fixed-3x);--sbb-alert-group-border-radius: var(--sbb-border-radius-4x);display:block}.sbb-alert-group{display:flex;flex-direction:column;gap:var(--sbb-alert-group-gap)}:host(:focus-visible:not([data-empty])){outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:var(--sbb-alert-group-border-radius)}.sbb-alert-group__title{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
15
+ let it = (() => {
16
+ var b, h, u, _, l;
17
+ let s = [O("sbb-alert-group")], i, a = [], o, g = K(M), v, T = [], A = [], x, E = [], L = [], z, I = [], S = [], w, C = [], k = [];
18
+ var y = (l = class extends g {
20
19
  constructor() {
21
20
  super(...arguments);
22
- u(this, b);
23
- u(this, h);
24
- u(this, d);
25
- u(this, _);
26
- c(this, b, n(this, A, "status")), c(this, h, (n(this, T), n(this, E, ""))), c(this, d, (n(this, L), n(this, S, "2"))), c(this, _, (n(this, w), n(this, I, !1))), this._didDismissAlert = (n(this, k), new M(this, f.events.didDismissAlert)), this._empty = new M(this, f.events.empty), this._abort = new R(this);
21
+ m(this, b);
22
+ m(this, h);
23
+ m(this, u);
24
+ m(this, _);
25
+ c(this, b, n(this, T, "status")), c(this, h, (n(this, A), n(this, E, ""))), c(this, u, (n(this, L), n(this, I, "2"))), c(this, _, (n(this, S), n(this, C, !1))), this._empty = (n(this, k), new B(this, y.events.empty)), this._abort = new H(this);
27
26
  }
28
27
  /**
29
28
  * The role attribute defines how to announce alerts to the user.
@@ -32,28 +31,28 @@ let lt = (() => {
32
31
  * 'alert': sets aria-live to assertive and aria-atomic to true.
33
32
  */
34
33
  get role() {
35
- return m(this, b);
34
+ return d(this, b);
36
35
  }
37
36
  set role(e) {
38
37
  c(this, b, e);
39
38
  }
40
39
  /** Title for this alert group which is only visible for screen reader users. */
41
40
  get accessibilityTitle() {
42
- return m(this, h);
41
+ return d(this, h);
43
42
  }
44
43
  set accessibilityTitle(e) {
45
44
  c(this, h, e);
46
45
  }
47
46
  /** Level of the accessibility title, will be rendered as heading tag (e.g. h2). Defaults to level 2. */
48
47
  get accessibilityTitleLevel() {
49
- return m(this, d);
48
+ return d(this, u);
50
49
  }
51
50
  set accessibilityTitleLevel(e) {
52
- c(this, d, e);
51
+ c(this, u, e);
53
52
  }
54
53
  /** Whether the group currently has any alerts. */
55
54
  get _hasAlerts() {
56
- return m(this, _);
55
+ return d(this, _);
57
56
  }
58
57
  set _hasAlerts(e) {
59
58
  c(this, _, e);
@@ -61,15 +60,16 @@ let lt = (() => {
61
60
  connectedCallback() {
62
61
  super.connectedCallback();
63
62
  const e = this._abort.signal;
64
- this.addEventListener(N.events.dismissalRequested, (t) => t.target.close(), {
65
- signal: e
66
- }), this.addEventListener(N.events.didClose, (t) => this._alertClosed(t), {
67
- signal: e
63
+ this.addEventListener("didClose", async (t) => {
64
+ await J(t) || this._alertClosed(t);
65
+ }, {
66
+ signal: e,
67
+ capture: !0
68
68
  });
69
69
  }
70
70
  _alertClosed(e) {
71
- const t = e.target, r = document.activeElement === t;
72
- this._didDismissAlert.emit(t), r && (this.tabIndex = 0, this.focus(), this.addEventListener("blur", () => this.removeAttribute("tabindex"), {
71
+ const t = e.target;
72
+ document.activeElement === t && (this.tabIndex = 0, this.focus(), this.addEventListener("blur", () => this.removeAttribute("tabindex"), {
73
73
  once: !0
74
74
  }));
75
75
  }
@@ -79,32 +79,31 @@ let lt = (() => {
79
79
  }
80
80
  render() {
81
81
  const e = `h${this.accessibilityTitleLevel}`;
82
- return G`
82
+ return D`
83
83
  <div class="sbb-alert-group">
84
- ${this._hasAlerts ? G`<${j(e)} class="sbb-alert-group__title">
84
+ ${this._hasAlerts ? D`<${j(e)} class="sbb-alert-group__title">
85
85
  <slot name="accessibility-title">${this.accessibilityTitle}</slot>
86
- </${j(e)}>` : F}
86
+ </${j(e)}>` : N}
87
87
  <slot @slotchange=${(t) => this._slotChanged(t)}></slot>
88
88
  </div>
89
89
  `;
90
90
  }
91
- }, b = new WeakMap(), h = new WeakMap(), d = new WeakMap(), _ = new WeakMap(), o = a, (() => {
92
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
93
- v = [g({ reflect: !0 })], x = [B(), g({ attribute: "accessibility-title" })], z = [g({ attribute: "accessibility-title-level" })], C = [P()], p(a, null, v, { kind: "accessor", name: "role", static: !1, private: !1, access: { has: (t) => "role" in t, get: (t) => t.role, set: (t, r) => {
91
+ }, b = new WeakMap(), h = new WeakMap(), u = new WeakMap(), _ = new WeakMap(), o = l, (() => {
92
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
93
+ v = [f({ reflect: !0 })], x = [q(), f({ attribute: "accessibility-title" })], z = [f({ attribute: "accessibility-title-level" })], w = [P()], p(l, null, v, { kind: "accessor", name: "role", static: !1, private: !1, access: { has: (t) => "role" in t, get: (t) => t.role, set: (t, r) => {
94
94
  t.role = r;
95
- } }, metadata: e }, A, T), p(a, null, x, { kind: "accessor", name: "accessibilityTitle", static: !1, private: !1, access: { has: (t) => "accessibilityTitle" in t, get: (t) => t.accessibilityTitle, set: (t, r) => {
95
+ } }, metadata: e }, T, A), p(l, null, x, { kind: "accessor", name: "accessibilityTitle", static: !1, private: !1, access: { has: (t) => "accessibilityTitle" in t, get: (t) => t.accessibilityTitle, set: (t, r) => {
96
96
  t.accessibilityTitle = r;
97
- } }, metadata: e }, E, L), p(a, null, z, { kind: "accessor", name: "accessibilityTitleLevel", static: !1, private: !1, access: { has: (t) => "accessibilityTitleLevel" in t, get: (t) => t.accessibilityTitleLevel, set: (t, r) => {
97
+ } }, metadata: e }, E, L), p(l, null, z, { kind: "accessor", name: "accessibilityTitleLevel", static: !1, private: !1, access: { has: (t) => "accessibilityTitleLevel" in t, get: (t) => t.accessibilityTitleLevel, set: (t, r) => {
98
98
  t.accessibilityTitleLevel = r;
99
- } }, metadata: e }, S, w), p(a, null, C, { kind: "accessor", name: "_hasAlerts", static: !1, private: !1, access: { has: (t) => "_hasAlerts" in t, get: (t) => t._hasAlerts, set: (t, r) => {
99
+ } }, metadata: e }, I, S), p(l, null, w, { kind: "accessor", name: "_hasAlerts", static: !1, private: !1, access: { has: (t) => "_hasAlerts" in t, get: (t) => t._hasAlerts, set: (t, r) => {
100
100
  t._hasAlerts = r;
101
- } }, metadata: e }, I, k), p(null, i = { value: o }, s, { kind: "class", name: o.name, metadata: e }, null, l), f = o = i.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
102
- })(), a.styles = K, a.events = {
103
- didDismissAlert: "didDismissAlert",
101
+ } }, metadata: e }, C, k), p(null, i = { value: o }, s, { kind: "class", name: o.name, metadata: e }, null, a), y = o = i.value, e && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
102
+ })(), l.styles = Q, l.events = {
104
103
  empty: "empty"
105
- }, n(o, l), a);
106
- return f = o;
104
+ }, n(o, a), l);
105
+ return y = o;
107
106
  })();
108
107
  export {
109
- lt as SbbAlertGroupElement
108
+ it as SbbAlertGroupElement
110
109
  };