@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
package/alert/alert.js CHANGED
@@ -1,57 +1,54 @@
1
- var bt = (r) => {
2
- throw TypeError(r);
1
+ var q = (i) => {
2
+ throw TypeError(i);
3
3
  };
4
- var ct = (r, l, o) => l.has(r) || bt("Cannot " + o);
5
- var b = (r, l, o) => (ct(r, l, "read from private field"), o ? o.call(r) : l.get(r)), c = (r, l, o) => l.has(r) ? bt("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(r) : l.set(r, o), i = (r, l, o, h) => (ct(r, l, "write to private field"), h ? h.call(r, o) : l.set(r, o), o);
6
- import { __runInitializers as s, __esDecorate as d } from "tslib";
7
- import { css as dt, html as $, nothing as L } from "lit";
8
- import { customElement as mt, property as m } from "lit/decorators.js";
9
- import { SbbOpenCloseBaseElement as ht } from "../core/base-elements.js";
10
- import { SbbLanguageController as _t } from "../core/controllers.js";
11
- import { forceType as _ } from "../core/decorators.js";
12
- import { EventEmitter as pt } from "../core/eventing.js";
13
- import { i18nFindOutMore as gt, i18nCloseAlert as ut } from "../core/i18n.js";
14
- import { SbbIconNameMixin as ft } from "../icon.js";
4
+ var M = (i, a, n) => a.has(i) || q("Cannot " + n);
5
+ var c = (i, a, n) => (M(i, a, "read from private field"), n ? n.call(i) : a.get(i)), d = (i, a, n) => a.has(i) ? q("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, n), r = (i, a, n, b) => (M(i, a, "write to private field"), b ? b.call(i, n) : a.set(i, n), n);
6
+ import { __runInitializers as o, __esDecorate as m } from "tslib";
7
+ import { css as F, html as P, nothing as G } from "lit";
8
+ import { customElement as H, property as f } from "lit/decorators.js";
9
+ import { SbbOpenCloseBaseElement as J } from "../core/base-elements.js";
10
+ import { SbbLanguageController as K } from "../core/controllers.js";
11
+ import { forceType as y } from "../core/decorators.js";
12
+ import { isLean as Q, isZeroAnimationDuration as R } from "../core/dom.js";
13
+ import { i18nCloseAlert as V } from "../core/i18n.js";
14
+ import { SbbIconNameMixin as W } from "../icon.js";
15
15
  import "../button/transparent-button.js";
16
16
  import "../divider.js";
17
- import "../link.js";
18
17
  import "../title.js";
19
- const vt = dt`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-alert-background-color: var(--sbb-color-midnight);--sbb-alert-border-radius: var(--sbb-border-radius-4x);--sbb-alert-color: var(--sbb-color-aluminium);--sbb-alert-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xs);--sbb-alert-icon-size: 1.25rem;--sbb-alert-close-icon-size: var(--sbb-size-icon-ui-small);--sbb-alert-close-icon-margin: var(--sbb-spacing-responsive-xxs);--sbb-alert-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-responsive-xs);--sbb-alert-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-6x) );--sbb-alert-timing-function: ease-in}@media (min-width: 52.5rem){:host{--sbb-alert-icon-size: 1.75rem}}@media (forced-colors: active){:host{outline:var(--sbb-border-width-1x) solid CanvasText;border-radius:var(--sbb-alert-border-radius)}}:host([data-state=opening]:not([animation=open],[animation=all])){--sbb-disable-animation-time: .1ms;--sbb-disable-animation-zero-time: 0s}:host([data-state=closing]:not([animation=close],[animation=all])){--sbb-disable-animation-time: .1ms;--sbb-disable-animation-zero-time: 0s}:host([size=s]){--sbb-alert-gap: var(--sbb-spacing-fixed-1x) var(--sbb-spacing-responsive-xxs);--sbb-alert-close-icon-margin: var(--sbb-spacing-responsive-xxxs)}:host([size=l]){--sbb-alert-icon-size: var(--sbb-size-icon-ui-small)}@media (min-width: 52.5rem){:host([size=l]){--sbb-alert-icon-size: 2.125rem}}.sbb-alert__transition-wrapper{display:grid;grid-template-rows:0fr;opacity:0}:host(:is([data-state=opened],[data-state=closing])) .sbb-alert__transition-wrapper{grid-template-rows:1fr;opacity:1}:host([data-state=opening]) .sbb-alert__transition-wrapper{animation-name:open,open-opacity;animation-fill-mode:forwards;animation-duration:var(--sbb-alert-animation-duration);animation-timing-function:var(--sbb-alert-timing-function);animation-delay:0s,var(--sbb-alert-animation-duration)}:host([data-state=closing]) .sbb-alert__transition-wrapper{animation-name:close-opacity,close;animation-fill-mode:forwards;animation-duration:var(--sbb-alert-animation-duration);animation-timing-function:var(--sbb-alert-timing-function);animation-delay:0s,var(--sbb-disable-animation-zero-time, var(--sbb-animation-duration-2x))}.sbb-alert__transition-sub-wrapper{overflow:hidden}.sbb-alert{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--sbb-alert-gap);min-width:fit-content;padding:var(--sbb-alert-padding);overflow:hidden;color:var(--sbb-alert-color);background-color:var(--sbb-alert-background-color);border-radius:var(--sbb-alert-border-radius)}@media (min-width: 37.5rem){.sbb-alert{grid-template-columns:auto 1fr auto;align-items:flex-start}}.sbb-alert__icon{display:flex;align-items:start;padding-block:var(--sbb-spacing-fixed-1x);min-width:var(--sbb-alert-icon-size);--sbb-icon-svg-width: var(--sbb-alert-icon-size);--sbb-icon-svg-height: var(--sbb-alert-icon-size)}.sbb-alert__content{order:3;grid-column:1/3}@media (min-width: 37.5rem){.sbb-alert__content{order:initial;grid-column-start:initial;grid-column-end:initial}}.sbb-alert__content-slot{display:inline;margin:0;padding:0}.sbb-alert__title{margin:0}.sbb-alert__close-button-wrapper{display:flex;justify-content:flex-end;align-items:center;height:100%}@media (min-width: 37.5rem){.sbb-alert__close-button{margin-inline-start:var(--sbb-alert-close-icon-margin)}}.sbb-alert__close-button-divider{display:none}@media (min-width: 37.5rem){.sbb-alert__close-button-divider{display:block;height:calc(100% - var(--sbb-spacing-fixed-1x) * 2)}}@keyframes open{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}@keyframes open-opacity{0%{opacity:0}to{opacity:1}}@keyframes close{0%{grid-template-rows:1fr}to{grid-template-rows:0fr}}@keyframes close-opacity{0%{opacity:1}to{opacity:0}}`;
20
- let Dt = (() => {
21
- var p, g, u, f, v, y, z, x, w, k, C, n;
22
- let r = [mt("sbb-alert")], l, o = [], h, N = ft(ht), O, S = [], E = [], q, A = [], D = [], R, T = [], j = [], B, M = [], U = [], F, P = [], G = [], H, J = [], K = [], Q, V = [], W = [], X, Y = [], Z = [], tt, et = [], it = [], st, at = [], nt = [], rt, lt = [], ot = [];
23
- var I = (n = class extends N {
18
+ const X = F`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-alert-background-color: var(--sbb-color-midnight);--sbb-alert-border-radius: var(--sbb-border-radius-4x);--sbb-alert-color: var(--sbb-color-aluminium);--sbb-alert-padding: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xs);--sbb-alert-icon-size: 1.25rem;--sbb-alert-close-icon-size: var(--sbb-size-icon-ui-small);--sbb-alert-close-icon-margin: var(--sbb-spacing-responsive-xxs);--sbb-alert-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-responsive-xs);--sbb-alert-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-alert-timing-function: ease-in}@media (min-width: 52.5rem){:host{--sbb-alert-icon-size: 1.75rem}}@media (forced-colors: active){:host{outline:var(--sbb-border-width-1x) solid CanvasText;border-radius:var(--sbb-alert-border-radius)}}:host([data-state=opening]:not([animation=open],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-state=closing]:not([animation=close],[animation=all])){--sbb-disable-animation-duration: 0s}:host([size=s]){--sbb-alert-gap: var(--sbb-spacing-fixed-1x) var(--sbb-spacing-responsive-xxs);--sbb-alert-close-icon-margin: var(--sbb-spacing-responsive-xxxs)}:host([size=l]){--sbb-alert-icon-size: var(--sbb-size-icon-ui-small)}@media (min-width: 52.5rem){:host([size=l]){--sbb-alert-icon-size: 2.125rem}}.sbb-alert__transition-wrapper{display:grid;grid-template-rows:0fr;opacity:0}:host(:is([data-state=opened],[data-state=closing])) .sbb-alert__transition-wrapper{grid-template-rows:1fr;opacity:1}:host([data-state=opening]) .sbb-alert__transition-wrapper{animation-name:open,open-opacity;animation-fill-mode:forwards;animation-duration:var(--sbb-alert-animation-duration);animation-timing-function:var(--sbb-alert-timing-function);animation-delay:0s,var(--sbb-alert-animation-duration)}:host([data-state=closing]) .sbb-alert__transition-wrapper{animation-name:close-opacity,close;animation-fill-mode:forwards;animation-duration:var(--sbb-alert-animation-duration);animation-timing-function:var(--sbb-alert-timing-function);animation-delay:0s,var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x))}.sbb-alert__transition-sub-wrapper{overflow:hidden}.sbb-alert{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--sbb-alert-gap);min-width:fit-content;padding:var(--sbb-alert-padding);overflow:hidden;color:var(--sbb-alert-color);background-color:var(--sbb-alert-background-color);border-radius:var(--sbb-alert-border-radius)}@media (min-width: 37.5rem){.sbb-alert{grid-template-columns:auto 1fr auto;align-items:flex-start}}.sbb-alert__icon{display:flex;align-items:start;padding-block:var(--sbb-spacing-fixed-1x);min-width:var(--sbb-alert-icon-size);--sbb-icon-svg-width: var(--sbb-alert-icon-size);--sbb-icon-svg-height: var(--sbb-alert-icon-size)}.sbb-alert__content{order:3;grid-column:1/3}@media (min-width: 37.5rem){.sbb-alert__content{order:initial;grid-column-start:initial;grid-column-end:initial}}.sbb-alert__content-slot{display:inline;margin:0;padding:0}.sbb-alert__title{margin:0}.sbb-alert__close-button-wrapper{display:flex;justify-content:flex-end;align-items:center;height:100%}@media (min-width: 37.5rem){.sbb-alert__close-button{margin-inline-start:var(--sbb-alert-close-icon-margin)}}.sbb-alert__close-button-divider{display:none}@media (min-width: 37.5rem){.sbb-alert__close-button-divider{display:block;height:calc(100% - var(--sbb-spacing-fixed-1x) * 2)}}@keyframes open{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}@keyframes open-opacity{0%{opacity:0}to{opacity:1}}@keyframes close{0%{grid-template-rows:1fr}to{grid-template-rows:0fr}}@keyframes close-opacity{0%{opacity:1}to{opacity:0}}`;
19
+ let pt = (() => {
20
+ var p, h, _, g, u, v, s;
21
+ let i = [H("sbb-alert")], a, n = [], b, z = W(J), x, w = [], C = [], k, L = [], N = [], O, A = [], S = [], I, $ = [], D = [], E, T = [], Z = [], j, B = [], U = [];
22
+ return s = class extends z {
24
23
  constructor() {
25
24
  super(...arguments);
26
- c(this, p);
27
- c(this, g);
28
- c(this, u);
29
- c(this, f);
30
- c(this, v);
31
- c(this, y);
32
- c(this, z);
33
- c(this, x);
34
- c(this, w);
35
- c(this, k);
36
- c(this, C);
37
- i(this, p, s(this, S, !1)), i(this, g, (s(this, E), s(this, A, "m"))), i(this, u, (s(this, D), s(this, T, "info"))), i(this, f, (s(this, j), s(this, M, ""))), i(this, v, (s(this, U), s(this, P, "3"))), i(this, y, (s(this, G), s(this, J, ""))), i(this, z, (s(this, K), s(this, V, ""))), i(this, x, (s(this, W), s(this, Y, ""))), i(this, w, (s(this, Z), s(this, et, ""))), i(this, k, (s(this, it), s(this, at, ""))), i(this, C, (s(this, nt), s(this, lt, "all"))), this._dismissalRequested = (s(this, ot), new pt(this, I.events.dismissalRequested)), this._language = new _t(this);
25
+ d(this, p);
26
+ d(this, h);
27
+ d(this, _);
28
+ d(this, g);
29
+ d(this, u);
30
+ d(this, v);
31
+ r(this, p, o(this, w, !1)), r(this, h, (o(this, C), o(this, L, Q() ? "s" : "m"))), r(this, _, (o(this, N), o(this, A, "info"))), r(this, g, (o(this, S), o(this, $, ""))), r(this, u, (o(this, D), o(this, T, "3"))), r(this, v, (o(this, Z), o(this, B, "all"))), this._language = (o(this, U), new K(this));
38
32
  }
39
33
  /**
40
34
  * Whether the alert is readonly.
41
35
  * In readonly mode, there is no dismiss button offered to the user.
42
36
  */
43
37
  get readonly() {
44
- return b(this, p);
38
+ return c(this, p);
45
39
  }
46
40
  set readonly(e) {
47
- i(this, p, e);
41
+ r(this, p, e);
48
42
  }
49
- /** You can choose between `s`, `m` or `l` size. */
43
+ /**
44
+ * You can choose between `s`, `m` or `l` size.
45
+ * @default 'm' / 's' (lean)
46
+ */
50
47
  get size() {
51
- return b(this, g);
48
+ return c(this, h);
52
49
  }
53
50
  set size(e) {
54
- i(this, g, e);
51
+ r(this, h, e);
55
52
  }
56
53
  /**
57
54
  * Name of the icon which will be forward to the nested `sbb-icon`.
@@ -59,84 +56,46 @@ let Dt = (() => {
59
56
  * Styling is optimized for icons of type HIM-CUS.
60
57
  */
61
58
  get iconName() {
62
- return b(this, u);
59
+ return c(this, _);
63
60
  }
64
61
  set iconName(e) {
65
- i(this, u, e);
62
+ r(this, _, e);
66
63
  }
67
64
  /** Content of title. */
68
65
  get titleContent() {
69
- return b(this, f);
66
+ return c(this, g);
70
67
  }
71
68
  set titleContent(e) {
72
- i(this, f, e);
69
+ r(this, g, e);
73
70
  }
74
71
  /** Level of title, will be rendered as heading tag (e.g. h3). Defaults to level 3. */
75
72
  get titleLevel() {
76
- return b(this, v);
73
+ return c(this, u);
77
74
  }
78
75
  set titleLevel(e) {
79
- i(this, v, e);
80
- }
81
- /** Content of the link. */
82
- get linkContent() {
83
- return b(this, y);
84
- }
85
- set linkContent(e) {
86
- i(this, y, e);
87
- }
88
- /** The href value you want to link to. */
89
- get href() {
90
- return b(this, z);
91
- }
92
- set href(e) {
93
- i(this, z, e);
94
- }
95
- /** Where to display the linked URL. */
96
- get target() {
97
- return b(this, x);
98
- }
99
- set target(e) {
100
- i(this, x, e);
101
- }
102
- /** The relationship of the linked URL as space-separated link types. */
103
- get rel() {
104
- return b(this, w);
105
- }
106
- set rel(e) {
107
- i(this, w, e);
108
- }
109
- /** This will be forwarded as aria-label to the relevant nested element. */
110
- get accessibilityLabel() {
111
- return b(this, k);
112
- }
113
- set accessibilityLabel(e) {
114
- i(this, k, e);
76
+ r(this, u, e);
115
77
  }
116
78
  /** The enabled animations. */
117
79
  get animation() {
118
- return b(this, C);
80
+ return c(this, v);
119
81
  }
120
82
  set animation(e) {
121
- i(this, C, e);
122
- }
123
- /** Requests dismissal of the alert.
124
- * @deprecated in favour of 'willClose' and 'didClose' events
125
- */
126
- requestDismissal() {
127
- this._dismissalRequested.emit();
83
+ r(this, v, e);
128
84
  }
129
85
  /** Open the alert. */
130
86
  open() {
131
- this.willOpen.emit(), this.state = "opening";
87
+ this.state = "opening", this.willOpen.emit(), this._isZeroAnimationDuration() && this._handleOpening();
132
88
  }
133
89
  /** Close the alert. */
134
90
  close() {
135
- this.willClose.emit() && (this.state = "closing");
91
+ this.state === "opened" && this.willClose.emit() && (this.state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
136
92
  }
137
93
  async firstUpdated(e) {
138
94
  super.firstUpdated(e), this.open();
139
95
  }
96
+ _isZeroAnimationDuration() {
97
+ return R(this, "--sbb-alert-animation-duration");
98
+ }
140
99
  _onAnimationEnd(e) {
141
100
  this.state === "opening" && e.animationName === "open-opacity" ? this._handleOpening() : this.state === "closing" && e.animationName === "close" && this._handleClosing();
142
101
  }
@@ -146,8 +105,12 @@ let Dt = (() => {
146
105
  _handleClosing() {
147
106
  this.state = "closed", this.didClose.emit(), setTimeout(() => this.remove());
148
107
  }
108
+ _syncLinks() {
109
+ var e;
110
+ Array.from(((e = this.querySelectorAll) == null ? void 0 : e.call(this, "sbb-link")) ?? []).forEach((t) => t.toggleAttribute("negative", !0));
111
+ }
149
112
  render() {
150
- return $`
113
+ return P`
151
114
  <div class="sbb-alert__transition-wrapper" @animationend=${this._onAnimationEnd}>
152
115
  <!-- sub wrapper needed to properly support fade in animation -->
153
116
  <div class="sbb-alert__transition-sub-wrapper">
@@ -163,19 +126,10 @@ let Dt = (() => {
163
126
  <slot name="title">${this.titleContent}</slot>
164
127
  </sbb-title>
165
128
  <p class="sbb-alert__content-slot">
166
- <slot></slot>
129
+ <slot @slotchange=${this._syncLinks}></slot>
167
130
  </p>
168
- ${this.href ? $` <sbb-link
169
- accessibility-label=${this.accessibilityLabel ?? L}
170
- href=${this.href ?? L}
171
- target=${this.target ?? L}
172
- rel=${this.rel ?? L}
173
- negative
174
- >
175
- ${this.linkContent ? this.linkContent : gt[this._language.current]}
176
- </sbb-link>` : L}
177
131
  </span>
178
- ${this.readonly ? L : $`<span class="sbb-alert__close-button-wrapper">
132
+ ${this.readonly ? G : P`<span class="sbb-alert__close-button-wrapper">
179
133
  <sbb-divider
180
134
  orientation="vertical"
181
135
  negative
@@ -185,8 +139,8 @@ let Dt = (() => {
185
139
  negative
186
140
  size=${this.size === "l" ? "m" : this.size}
187
141
  icon-name="cross-small"
188
- @click=${() => this.requestDismissal()}
189
- aria-label=${ut[this._language.current]}
142
+ @click=${() => this.close()}
143
+ aria-label=${V[this._language.current]}
190
144
  class="sbb-alert__close-button"
191
145
  ></sbb-transparent-button>
192
146
  </span>`}
@@ -195,40 +149,28 @@ let Dt = (() => {
195
149
  </div>
196
150
  `;
197
151
  }
198
- }, p = new WeakMap(), g = new WeakMap(), u = new WeakMap(), f = new WeakMap(), v = new WeakMap(), y = new WeakMap(), z = new WeakMap(), x = new WeakMap(), w = new WeakMap(), k = new WeakMap(), C = new WeakMap(), h = n, (() => {
199
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(N[Symbol.metadata] ?? null) : void 0;
200
- O = [_(), m({ reflect: !0, type: Boolean })], q = [m({ reflect: !0 })], R = [_(), m({ attribute: "icon-name" })], B = [_(), m({ attribute: "title-content" })], F = [m({ attribute: "title-level" })], H = [_(), m({ attribute: "link-content" })], Q = [_(), m()], X = [_(), m()], tt = [_(), m()], st = [_(), m({ attribute: "accessibility-label" })], rt = [m({ reflect: !0 })], d(n, null, O, { kind: "accessor", name: "readonly", static: !1, private: !1, access: { has: (t) => "readonly" in t, get: (t) => t.readonly, set: (t, a) => {
201
- t.readonly = a;
202
- } }, metadata: e }, S, E), d(n, null, q, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, a) => {
203
- t.size = a;
204
- } }, metadata: e }, A, D), d(n, null, R, { kind: "accessor", name: "iconName", static: !1, private: !1, access: { has: (t) => "iconName" in t, get: (t) => t.iconName, set: (t, a) => {
205
- t.iconName = a;
206
- } }, metadata: e }, T, j), d(n, null, B, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (t) => "titleContent" in t, get: (t) => t.titleContent, set: (t, a) => {
207
- t.titleContent = a;
208
- } }, metadata: e }, M, U), d(n, null, F, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (t) => "titleLevel" in t, get: (t) => t.titleLevel, set: (t, a) => {
209
- t.titleLevel = a;
210
- } }, metadata: e }, P, G), d(n, null, H, { kind: "accessor", name: "linkContent", static: !1, private: !1, access: { has: (t) => "linkContent" in t, get: (t) => t.linkContent, set: (t, a) => {
211
- t.linkContent = a;
212
- } }, metadata: e }, J, K), d(n, null, Q, { kind: "accessor", name: "href", static: !1, private: !1, access: { has: (t) => "href" in t, get: (t) => t.href, set: (t, a) => {
213
- t.href = a;
214
- } }, metadata: e }, V, W), d(n, null, X, { kind: "accessor", name: "target", static: !1, private: !1, access: { has: (t) => "target" in t, get: (t) => t.target, set: (t, a) => {
215
- t.target = a;
216
- } }, metadata: e }, Y, Z), d(n, null, tt, { kind: "accessor", name: "rel", static: !1, private: !1, access: { has: (t) => "rel" in t, get: (t) => t.rel, set: (t, a) => {
217
- t.rel = a;
218
- } }, metadata: e }, et, it), d(n, null, st, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (t) => "accessibilityLabel" in t, get: (t) => t.accessibilityLabel, set: (t, a) => {
219
- t.accessibilityLabel = a;
220
- } }, metadata: e }, at, nt), d(n, null, rt, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, a) => {
221
- t.animation = a;
222
- } }, metadata: e }, lt, ot), d(null, l = { value: h }, r, { kind: "class", name: h.name, metadata: e }, null, o), I = h = l.value, e && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
223
- })(), n.styles = vt, n.events = {
152
+ }, p = new WeakMap(), h = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), u = new WeakMap(), v = new WeakMap(), b = s, (() => {
153
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
154
+ x = [y(), f({ reflect: !0, type: Boolean })], k = [f({ reflect: !0 })], O = [y(), f({ attribute: "icon-name" })], I = [y(), f({ attribute: "title-content" })], E = [f({ attribute: "title-level" })], j = [f({ reflect: !0 })], m(s, null, x, { kind: "accessor", name: "readonly", static: !1, private: !1, access: { has: (t) => "readonly" in t, get: (t) => t.readonly, set: (t, l) => {
155
+ t.readonly = l;
156
+ } }, metadata: e }, w, C), m(s, null, k, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, l) => {
157
+ t.size = l;
158
+ } }, metadata: e }, L, N), m(s, null, O, { kind: "accessor", name: "iconName", static: !1, private: !1, access: { has: (t) => "iconName" in t, get: (t) => t.iconName, set: (t, l) => {
159
+ t.iconName = l;
160
+ } }, metadata: e }, A, S), m(s, null, I, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (t) => "titleContent" in t, get: (t) => t.titleContent, set: (t, l) => {
161
+ t.titleContent = l;
162
+ } }, metadata: e }, $, D), m(s, null, E, { kind: "accessor", name: "titleLevel", static: !1, private: !1, access: { has: (t) => "titleLevel" in t, get: (t) => t.titleLevel, set: (t, l) => {
163
+ t.titleLevel = l;
164
+ } }, metadata: e }, T, Z), m(s, null, j, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, l) => {
165
+ t.animation = l;
166
+ } }, metadata: e }, B, U), m(null, a = { value: b }, i, { kind: "class", name: b.name, metadata: e }, null, n), b = a.value, e && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
167
+ })(), s.styles = X, s.events = {
224
168
  willOpen: "willOpen",
225
169
  didOpen: "didOpen",
226
170
  willClose: "willClose",
227
- didClose: "didClose",
228
- dismissalRequested: "dismissalRequested"
229
- }, s(h, o), n);
230
- return I = h;
171
+ didClose: "didClose"
172
+ }, o(b, n), b;
231
173
  })();
232
174
  export {
233
- Dt as SbbAlertElement
175
+ pt as SbbAlertElement
234
176
  };
package/animation.css CHANGED
@@ -1,18 +1,14 @@
1
1
  .sbb-disable-animation {
2
- --sbb-disable-animation-time: 0.1ms;
3
- --sbb-disable-animation-zero-time: 0s;
2
+ --sbb-disable-animation-duration: 0s;
4
3
  }
5
4
 
6
5
  .sbb-disable-animation-locally {
7
- --sbb-disable-animation-time: 0.1ms;
8
- --sbb-disable-animation-zero-time: 0s;
6
+ --sbb-disable-animation-duration: 0s;
9
7
  }
10
8
  .sbb-disable-animation-locally > * {
11
- --sbb-disable-animation-time: initial;
12
- --sbb-disable-animation-zero-time: initial;
9
+ --sbb-disable-animation-duration: initial;
13
10
  }
14
11
 
15
12
  .sbb-enable-animation {
16
- --sbb-disable-animation-time: initial;
17
- --sbb-disable-animation-zero-time: initial;
13
+ --sbb-disable-animation-duration: initial;
18
14
  }
@@ -40,11 +40,11 @@ export declare abstract class SbbAutocompleteBaseElement extends SbbAutocomplete
40
40
  protected abstract selectByKeyboard(event: KeyboardEvent): void;
41
41
  protected abstract setNextActiveOption(event: KeyboardEvent): void;
42
42
  protected abstract resetActiveElement(): void;
43
- protected abstract onOptionClick(event: MouseEvent): void;
44
43
  /** Opens the autocomplete. */
45
44
  open(): void;
46
45
  /** Closes the autocomplete. */
47
46
  close(): void;
47
+ private _isZeroAnimationDuration;
48
48
  connectedCallback(): void;
49
49
  protected willUpdate(changedProperties: PropertyValues<this>): void;
50
50
  protected firstUpdated(changedProperties: PropertyValues<this>): void;
@@ -68,13 +68,14 @@ export declare abstract class SbbAutocompleteBaseElement extends SbbAutocomplete
68
68
  private _bindTo;
69
69
  private _setupTriggerEvents;
70
70
  private _setOverlayPosition;
71
- /** On open/close animation end.
72
- * In rare cases it can be that the animationEnd event is triggered twice.
73
- * To avoid entering a corrupt state, exit when state is not expected.
71
+ /**
72
+ * On open/close animation end.
73
+ * In rare cases it can be that the animationEnd event is triggered twice.
74
+ * To avoid entering a corrupt state, exit when state is not expected.
74
75
  */
75
76
  private _onAnimationEnd;
76
- private _onOpenAnimationEnd;
77
- private _onCloseAnimationEnd;
77
+ private _handleOpening;
78
+ private _handleClosing;
78
79
  private _attachOpenPanelEvents;
79
80
  private _pointerDownListener;
80
81
  private _closeOnBackdropClick;
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"autocomplete-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete-base-element.ts"],"names":[],"mappings":"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"}
@@ -17,7 +17,6 @@ export declare class SbbAutocompleteElement extends SbbAutocompleteBaseElement {
17
17
  protected panelRole: string;
18
18
  private _activeItemIndex;
19
19
  protected get options(): SbbOptionElement[];
20
- protected onOptionClick(event: MouseEvent): void;
21
20
  connectedCallback(): void;
22
21
  protected syncNegative(): void;
23
22
  protected openedPanelKeyboardInteraction(event: KeyboardEvent): void;
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAU5E;;;;;;;;;;;GAWG;AACH,qBAKM,sBAAuB,SAAQ,0BAA0B;IAC7D,SAAS,CAAC,SAAS,SAAkC;IACrD,SAAS,CAAC,SAAS,SAAa;IAChC,OAAO,CAAC,gBAAgB,CAAM;IAE9B,SAAS,KAAK,OAAO,IAAI,gBAAgB,EAAE,CAE1C;IAED,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAUhC,iBAAiB,IAAI,IAAI;IAUzC,SAAS,CAAC,YAAY,IAAI,IAAI;IAQ9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAsBpE,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAStD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBzD,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAUpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
1
+ {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/elements/autocomplete/autocomplete.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAU5E;;;;;;;;;;;GAWG;AACH,qBAKM,sBAAuB,SAAQ,0BAA0B;IAC7D,SAAS,CAAC,SAAS,SAAkC;IACrD,SAAS,CAAC,SAAS,SAAa;IAChC,OAAO,CAAC,gBAAgB,CAAM;IAE9B,SAAS,KAAK,OAAO,IAAI,gBAAgB,EAAE,CAE1C;IAEe,iBAAiB,IAAI,IAAI;IAUzC,SAAS,CAAC,YAAY,IAAI,IAAI;IAQ9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAsBpE,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAStD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAqBzD,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAUpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
@@ -19,7 +19,6 @@ export declare class SbbAutocompleteGridElement extends SbbAutocompleteBaseEleme
19
19
  private _activeColumnIndex;
20
20
  protected get options(): SbbAutocompleteGridOptionElement[];
21
21
  private get _row();
22
- protected onOptionClick(event: MouseEvent): void;
23
22
  connectedCallback(): void;
24
23
  protected syncNegative(): void;
25
24
  protected openedPanelKeyboardInteraction(event: KeyboardEvent): void;
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-grid.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAQnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;;;;;GAWG;AACH,qBAKM,0BAA2B,SAAQ,0BAA0B;IACjE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,EAAE,CAE1D;IAED,OAAO,KAAK,IAAI,GAMf;IAED,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAUhC,iBAAiB,IAAI,IAAI;IAUzC,SAAS,CAAC,YAAY,IAAI,IAAI;IAU9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA2BpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IActD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA8BzD,OAAO,CAAC,+BAA+B;IAmCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAkBpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
1
+ {"version":3,"file":"autocomplete-grid.d.ts","sourceRoot":"","sources":["../../../../src/elements/autocomplete-grid/autocomplete-grid/autocomplete-grid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAQnE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAWlF;;;;;;;;;;;GAWG;AACH,qBAKM,0BAA2B,SAAQ,0BAA0B;IACjE,SAAS,CAAC,SAAS,SAAuC;IAC1D,SAAS,CAAC,SAAS,SAAU;IAC7B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,kBAAkB,CAAK;IAE/B,SAAS,KAAK,OAAO,IAAI,gCAAgC,EAAE,CAE1D;IAED,OAAO,KAAK,IAAI,GAMf;IAEe,iBAAiB,IAAI,IAAI;IAUzC,SAAS,CAAC,YAAY,IAAI,IAAI;IAU9B,SAAS,CAAC,8BAA8B,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA2BpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IActD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA8BzD,OAAO,CAAC,+BAA+B;IAmCvC,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAkBpC,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;CAGhE;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
@@ -2,24 +2,24 @@ import { __esDecorate as n, __runInitializers as l } from "tslib";
2
2
  import { MutationController as d } from "@lit-labs/observers/mutation-controller.js";
3
3
  import { css as u, isServer as c } from "lit";
4
4
  import { customElement as m } from "lit/decorators.js";
5
- import { SbbActionBaseElement as p } from "../core/base-elements.js";
6
- import { hostAttributes as v, slotState as h } from "../core/decorators.js";
5
+ import { SbbActionBaseElement as v } from "../core/base-elements.js";
6
+ import { hostAttributes as p, slotState as h } from "../core/decorators.js";
7
7
  import { isEventPrevented as g } from "../core/eventing.js";
8
8
  import { SbbDisabledMixin as f, SbbNegativeMixin as k } from "../core/mixins.js";
9
9
  import { SbbIconNameMixin as x } from "../icon.js";
10
- const y = u`*,:before,:after{box-sizing:border-box}:host{outline:none!important;display:block;--sbb-button-display: flex}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-autocomplete-grid-button{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-autocomplete-grid-button:before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}::slotted(sbb-icon),sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],[data-disabled],[data-group-disabled])) .sbb-autocomplete-grid-button{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],[data-disabled],[data-group-disabled])) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch]))) .sbb-autocomplete-grid-button:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}@media (any-hover: hover){:host(:not([disabled],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-active-background)}`;
10
+ const y = u`*,:before,:after{box-sizing:border-box}:host{outline:none!important;display:block;--sbb-button-display: flex}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-autocomplete-grid-button{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-autocomplete-grid-button:before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}::slotted(sbb-icon),sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-autocomplete-grid-button{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible:not([data-focus-origin=mouse],[data-focus-origin=touch]))) .sbb-autocomplete-grid-button:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width)}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-autocomplete-grid-button:before{background-color:var(--sbb-button-color-active-background)}`;
11
11
  let _ = 0;
12
12
  const S = {
13
13
  attributeFilter: ["data-group-disabled"]
14
14
  };
15
15
  let T = (() => {
16
- var r;
17
- let i = [m("sbb-autocomplete-grid-button"), v({
16
+ var a;
17
+ let i = [m("sbb-autocomplete-grid-button"), p({
18
18
  role: "button",
19
19
  tabindex: null,
20
20
  "data-button": ""
21
- }), h()], b, a = [], o, e = f(k(x(p)));
22
- return r = class extends e {
21
+ }), h()], b, e = [], o, r = f(k(x(v)));
22
+ return a = class extends r {
23
23
  /** Gets the SbbAutocompleteGridOptionElement on the same row of the button. */
24
24
  get option() {
25
25
  var t;
@@ -53,10 +53,10 @@ let T = (() => {
53
53
  _updateAriaDisabled() {
54
54
  this.disabled || this._disabledFromGroup ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
55
55
  }
56
- }, o = r, (() => {
57
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
58
- n(null, b = { value: o }, i, { kind: "class", name: o.name, metadata: t }, null, a), o = b.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
59
- })(), r.styles = y, l(o, a), o;
56
+ }, o = a, (() => {
57
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
58
+ n(null, b = { value: o }, i, { kind: "class", name: o.name, metadata: t }, null, e), o = b.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
59
+ })(), a.styles = y, l(o, e), o;
60
60
  })();
61
61
  export {
62
62
  T as SbbAutocompleteGridButtonElement
@@ -25,9 +25,6 @@ let D = (() => {
25
25
  var t;
26
26
  return Array.from((t = this.querySelectorAll) == null ? void 0 : t.call(this, "sbb-autocomplete-grid-row")).filter((e) => !e.hasAttribute("data-disabled")) ?? [];
27
27
  }
28
- onOptionClick(t) {
29
- t.target.localName !== "sbb-autocomplete-grid-option" || t.target.disabled || this.close();
30
- }
31
28
  connectedCallback() {
32
29
  super.connectedCallback();
33
30
  const t = this.abort.signal;