@sbb-esta/lyne-elements 1.13.0 → 1.14.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 (887) hide show
  1. package/accordion/accordion.d.ts +4 -8
  2. package/accordion/accordion.d.ts.map +1 -1
  3. package/accordion.js +90 -81
  4. package/action-group/action-group.d.ts +5 -5
  5. package/action-group/action-group.d.ts.map +1 -1
  6. package/action-group.js +100 -50
  7. package/alert/alert/alert.d.ts +11 -11
  8. package/alert/alert/alert.d.ts.map +1 -1
  9. package/alert/alert-group/alert-group.d.ts +4 -4
  10. package/alert/alert-group/alert-group.d.ts.map +1 -1
  11. package/alert/alert-group.js +101 -69
  12. package/alert/alert.js +191 -104
  13. package/autocomplete/autocomplete-base-element.d.ts +3 -7
  14. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  15. package/autocomplete/autocomplete.d.ts.map +1 -1
  16. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  17. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +1 -0
  18. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
  19. package/autocomplete-grid/autocomplete-grid-button.js +53 -60
  20. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.d.ts.map +1 -1
  21. package/autocomplete-grid/autocomplete-grid-cell.js +20 -22
  22. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts.map +1 -1
  23. package/autocomplete-grid/autocomplete-grid-optgroup.js +31 -35
  24. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
  25. package/autocomplete-grid/autocomplete-grid-option.js +45 -63
  26. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.d.ts.map +1 -1
  27. package/autocomplete-grid/autocomplete-grid-row.js +23 -25
  28. package/autocomplete-grid/autocomplete-grid.js +112 -133
  29. package/autocomplete.js +283 -295
  30. package/breadcrumb/breadcrumb/breadcrumb.d.ts +1 -1
  31. package/breadcrumb/breadcrumb/breadcrumb.d.ts.map +1 -1
  32. package/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts.map +1 -1
  33. package/breadcrumb/breadcrumb-group.js +107 -114
  34. package/breadcrumb/breadcrumb.js +44 -35
  35. package/button/button/button.d.ts.map +1 -1
  36. package/button/button-link/button-link.d.ts.map +1 -1
  37. package/button/button-link.js +15 -18
  38. package/button/button-static/button-static.d.ts.map +1 -1
  39. package/button/button-static.js +15 -18
  40. package/button/button.js +15 -18
  41. package/button/common/button-common.d.ts +4 -4
  42. package/button/common/button-common.d.ts.map +1 -1
  43. package/button/common.js +41 -30
  44. package/button/mini-button/mini-button-base-element.d.ts.map +1 -1
  45. package/button/mini-button/mini-button.d.ts.map +1 -1
  46. package/button/mini-button-group/mini-button-group.d.ts +2 -2
  47. package/button/mini-button-group/mini-button-group.d.ts.map +1 -1
  48. package/button/mini-button-group.js +55 -43
  49. package/button/mini-button.js +30 -34
  50. package/button/secondary-button/secondary-button.d.ts.map +1 -1
  51. package/button/secondary-button-link/secondary-button-link.d.ts.map +1 -1
  52. package/button/secondary-button-link.js +15 -18
  53. package/button/secondary-button-static/secondary-button-static.d.ts.map +1 -1
  54. package/button/secondary-button-static.js +15 -18
  55. package/button/secondary-button.js +15 -18
  56. package/button/tertiary-button/tertiary-button.d.ts.map +1 -1
  57. package/button/tertiary-button-link/tertiary-button-link.d.ts.map +1 -1
  58. package/button/tertiary-button-link.js +15 -18
  59. package/button/tertiary-button-static/tertiary-button-static.d.ts.map +1 -1
  60. package/button/tertiary-button-static.js +15 -18
  61. package/button/tertiary-button.js +15 -18
  62. package/button/transparent-button/transparent-button.d.ts.map +1 -1
  63. package/button/transparent-button-link/transparent-button-link.d.ts.map +1 -1
  64. package/button/transparent-button-link.js +15 -18
  65. package/button/transparent-button-static/transparent-button-static.d.ts.map +1 -1
  66. package/button/transparent-button-static.js +15 -18
  67. package/button/transparent-button.js +15 -18
  68. package/calendar/calendar.d.ts +7 -7
  69. package/calendar/calendar.d.ts.map +1 -1
  70. package/calendar.js +638 -692
  71. package/card/card/card.d.ts +2 -2
  72. package/card/card/card.d.ts.map +1 -1
  73. package/card/card-badge/card-badge.d.ts +1 -1
  74. package/card/card-badge/card-badge.d.ts.map +1 -1
  75. package/card/card-badge.js +45 -34
  76. package/card/card-button/card-button.d.ts.map +1 -1
  77. package/card/card-button.js +16 -16
  78. package/card/card-link/card-link.d.ts.map +1 -1
  79. package/card/card-link.js +17 -17
  80. package/card/card.js +55 -36
  81. package/card/common/card-action-common.d.ts +1 -1
  82. package/card/common/card-action-common.d.ts.map +1 -1
  83. package/card/common.js +27 -33
  84. package/checkbox/checkbox/checkbox.d.ts +3 -4
  85. package/checkbox/checkbox/checkbox.d.ts.map +1 -1
  86. package/checkbox/checkbox-group/checkbox-group.d.ts +4 -4
  87. package/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  88. package/checkbox/checkbox-group.js +99 -76
  89. package/checkbox/checkbox-panel/checkbox-panel.d.ts +2 -3
  90. package/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
  91. package/checkbox/checkbox-panel.js +51 -50
  92. package/checkbox/checkbox.js +54 -43
  93. package/checkbox/common/checkbox-common.d.ts +1 -1
  94. package/checkbox/common/checkbox-common.d.ts.map +1 -1
  95. package/checkbox/common.js +39 -24
  96. package/chip/chip.d.ts +2 -2
  97. package/chip/chip.d.ts.map +1 -1
  98. package/chip.js +45 -26
  99. package/clock/clock.d.ts +1 -1
  100. package/clock/clock.d.ts.map +1 -1
  101. package/clock.js +136 -144
  102. package/container/container/container.d.ts +3 -3
  103. package/container/container/container.d.ts.map +1 -1
  104. package/container/container.js +60 -35
  105. package/container/sticky-bar/sticky-bar.d.ts +1 -1
  106. package/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  107. package/container/sticky-bar.js +55 -47
  108. package/core/a11y.js +29 -51
  109. package/core/base-elements/action-base-element.d.ts.map +1 -1
  110. package/core/base-elements/button-base-element.d.ts +2 -2
  111. package/core/base-elements/button-base-element.d.ts.map +1 -1
  112. package/core/base-elements/link-base-element.d.ts +5 -5
  113. package/core/base-elements/link-base-element.d.ts.map +1 -1
  114. package/core/base-elements.js +243 -196
  115. package/core/controllers.js +8 -13
  116. package/core/decorators/base.d.ts +14 -0
  117. package/core/decorators/base.d.ts.map +1 -0
  118. package/core/decorators/force-type.d.ts +8 -0
  119. package/core/decorators/force-type.d.ts.map +1 -0
  120. package/core/decorators/get-override.d.ts +7 -0
  121. package/core/decorators/get-override.d.ts.map +1 -0
  122. package/core/decorators/handle-distinct-change.d.ts +8 -0
  123. package/core/decorators/handle-distinct-change.d.ts.map +1 -0
  124. package/core/decorators/omit-empty-converter.d.ts +8 -0
  125. package/core/decorators/omit-empty-converter.d.ts.map +1 -0
  126. package/core/decorators.d.ts +4 -0
  127. package/core/decorators.d.ts.map +1 -1
  128. package/core/decorators.js +59 -15
  129. package/core/dom.js +1 -5
  130. package/core/eventing.js +1 -4
  131. package/core/interfaces/paginator-page.d.ts +7 -0
  132. package/core/interfaces/paginator-page.d.ts.map +1 -0
  133. package/core/interfaces.d.ts +1 -0
  134. package/core/interfaces.d.ts.map +1 -1
  135. package/core/mixins/disabled-mixin.d.ts +2 -3
  136. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  137. package/core/mixins/named-slot-list-mixin.d.ts +1 -1
  138. package/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  139. package/core/mixins/negative-mixin.d.ts +1 -1
  140. package/core/mixins/negative-mixin.d.ts.map +1 -1
  141. package/core/mixins/panel-mixin.d.ts +3 -3
  142. package/core/mixins/panel-mixin.d.ts.map +1 -1
  143. package/core/mixins/required-mixin.d.ts +1 -2
  144. package/core/mixins/required-mixin.d.ts.map +1 -1
  145. package/core/mixins.js +290 -237
  146. package/core/testing/private.d.ts +1 -0
  147. package/core/testing/private.d.ts.map +1 -1
  148. package/core/testing.js +7 -13
  149. package/custom-elements.json +26385 -25594
  150. package/datepicker/common/datepicker-button.d.ts +2 -2
  151. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  152. package/datepicker/common.js +110 -116
  153. package/datepicker/datepicker/datepicker.d.ts +6 -6
  154. package/datepicker/datepicker/datepicker.d.ts.map +1 -1
  155. package/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
  156. package/datepicker/datepicker-next-day.js +24 -26
  157. package/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
  158. package/datepicker/datepicker-previous-day.js +25 -27
  159. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts +6 -6
  160. package/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  161. package/datepicker/datepicker-toggle.js +154 -136
  162. package/datepicker/datepicker.js +248 -213
  163. package/development/accordion/accordion.d.ts +4 -8
  164. package/development/accordion/accordion.d.ts.map +1 -1
  165. package/development/accordion.js +118 -93
  166. package/development/action-group/action-group.d.ts +5 -5
  167. package/development/action-group/action-group.d.ts.map +1 -1
  168. package/development/action-group.js +138 -64
  169. package/development/alert/alert/alert.d.ts +11 -11
  170. package/development/alert/alert/alert.d.ts.map +1 -1
  171. package/development/alert/alert-group/alert-group.d.ts +4 -4
  172. package/development/alert/alert-group/alert-group.d.ts.map +1 -1
  173. package/development/alert/alert-group.js +135 -79
  174. package/development/alert/alert.js +259 -109
  175. package/development/autocomplete/autocomplete-base-element.d.ts +3 -7
  176. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  177. package/development/autocomplete/autocomplete.d.ts.map +1 -1
  178. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.d.ts.map +1 -1
  179. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts +1 -0
  180. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.d.ts.map +1 -1
  181. package/development/autocomplete-grid/autocomplete-grid-button.js +74 -75
  182. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.d.ts.map +1 -1
  183. package/development/autocomplete-grid/autocomplete-grid-cell.js +24 -24
  184. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.d.ts.map +1 -1
  185. package/development/autocomplete-grid/autocomplete-grid-optgroup.js +38 -39
  186. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.d.ts.map +1 -1
  187. package/development/autocomplete-grid/autocomplete-grid-option.js +57 -73
  188. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.d.ts.map +1 -1
  189. package/development/autocomplete-grid/autocomplete-grid-row.js +28 -28
  190. package/development/autocomplete-grid/autocomplete-grid.js +142 -160
  191. package/development/autocomplete.js +394 -393
  192. package/development/breadcrumb/breadcrumb/breadcrumb.d.ts +1 -1
  193. package/development/breadcrumb/breadcrumb/breadcrumb.d.ts.map +1 -1
  194. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.d.ts.map +1 -1
  195. package/development/breadcrumb/breadcrumb-group.js +130 -130
  196. package/development/breadcrumb/breadcrumb.js +53 -36
  197. package/development/button/button/button.d.ts.map +1 -1
  198. package/development/button/button-link/button-link.d.ts.map +1 -1
  199. package/development/button/button-link.js +18 -19
  200. package/development/button/button-static/button-static.d.ts.map +1 -1
  201. package/development/button/button-static.js +18 -19
  202. package/development/button/button.js +18 -19
  203. package/development/button/common/button-common.d.ts +4 -4
  204. package/development/button/common/button-common.d.ts.map +1 -1
  205. package/development/button/common.js +50 -29
  206. package/development/button/mini-button/mini-button-base-element.d.ts.map +1 -1
  207. package/development/button/mini-button/mini-button.d.ts.map +1 -1
  208. package/development/button/mini-button-group/mini-button-group.d.ts +2 -2
  209. package/development/button/mini-button-group/mini-button-group.d.ts.map +1 -1
  210. package/development/button/mini-button-group.js +77 -50
  211. package/development/button/mini-button.js +38 -37
  212. package/development/button/secondary-button/secondary-button.d.ts.map +1 -1
  213. package/development/button/secondary-button-link/secondary-button-link.d.ts.map +1 -1
  214. package/development/button/secondary-button-link.js +18 -19
  215. package/development/button/secondary-button-static/secondary-button-static.d.ts.map +1 -1
  216. package/development/button/secondary-button-static.js +18 -19
  217. package/development/button/secondary-button.js +18 -19
  218. package/development/button/tertiary-button/tertiary-button.d.ts.map +1 -1
  219. package/development/button/tertiary-button-link/tertiary-button-link.d.ts.map +1 -1
  220. package/development/button/tertiary-button-link.js +18 -19
  221. package/development/button/tertiary-button-static/tertiary-button-static.d.ts.map +1 -1
  222. package/development/button/tertiary-button-static.js +18 -19
  223. package/development/button/tertiary-button.js +18 -19
  224. package/development/button/transparent-button/transparent-button.d.ts.map +1 -1
  225. package/development/button/transparent-button-link/transparent-button-link.d.ts.map +1 -1
  226. package/development/button/transparent-button-link.js +18 -19
  227. package/development/button/transparent-button-static/transparent-button-static.d.ts.map +1 -1
  228. package/development/button/transparent-button-static.js +18 -19
  229. package/development/button/transparent-button.js +18 -19
  230. package/development/calendar/calendar.d.ts +7 -7
  231. package/development/calendar/calendar.d.ts.map +1 -1
  232. package/development/calendar.js +768 -766
  233. package/development/card/card/card.d.ts +2 -2
  234. package/development/card/card/card.d.ts.map +1 -1
  235. package/development/card/card-badge/card-badge.d.ts +1 -1
  236. package/development/card/card-badge/card-badge.d.ts.map +1 -1
  237. package/development/card/card-badge.js +65 -45
  238. package/development/card/card-button/card-button.d.ts.map +1 -1
  239. package/development/card/card-button.js +23 -20
  240. package/development/card/card-link/card-link.d.ts.map +1 -1
  241. package/development/card/card-link.js +23 -20
  242. package/development/card/card.js +72 -41
  243. package/development/card/common/card-action-common.d.ts +1 -1
  244. package/development/card/common/card-action-common.d.ts.map +1 -1
  245. package/development/card/common.js +74 -73
  246. package/development/checkbox/checkbox/checkbox.d.ts +3 -4
  247. package/development/checkbox/checkbox/checkbox.d.ts.map +1 -1
  248. package/development/checkbox/checkbox-group/checkbox-group.d.ts +4 -4
  249. package/development/checkbox/checkbox-group/checkbox-group.d.ts.map +1 -1
  250. package/development/checkbox/checkbox-group.js +139 -92
  251. package/development/checkbox/checkbox-panel/checkbox-panel.d.ts +2 -3
  252. package/development/checkbox/checkbox-panel/checkbox-panel.d.ts.map +1 -1
  253. package/development/checkbox/checkbox-panel.js +68 -60
  254. package/development/checkbox/checkbox.js +69 -46
  255. package/development/checkbox/common/checkbox-common.d.ts +1 -1
  256. package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
  257. package/development/checkbox/common.js +65 -46
  258. package/development/chip/chip.d.ts +2 -2
  259. package/development/chip/chip.d.ts.map +1 -1
  260. package/development/chip.js +64 -33
  261. package/development/clock/clock.d.ts +1 -1
  262. package/development/clock/clock.d.ts.map +1 -1
  263. package/development/clock.js +203 -201
  264. package/development/container/container/container.d.ts +3 -3
  265. package/development/container/container/container.d.ts.map +1 -1
  266. package/development/container/container.js +86 -45
  267. package/development/container/sticky-bar/sticky-bar.d.ts +1 -1
  268. package/development/container/sticky-bar/sticky-bar.d.ts.map +1 -1
  269. package/development/container/sticky-bar.js +76 -58
  270. package/development/core/a11y.js +40 -62
  271. package/development/core/base-elements/action-base-element.d.ts.map +1 -1
  272. package/development/core/base-elements/button-base-element.d.ts +2 -2
  273. package/development/core/base-elements/button-base-element.d.ts.map +1 -1
  274. package/development/core/base-elements/link-base-element.d.ts +5 -5
  275. package/development/core/base-elements/link-base-element.d.ts.map +1 -1
  276. package/development/core/base-elements.js +329 -226
  277. package/development/core/config.js +1 -1
  278. package/development/core/controllers.js +13 -21
  279. package/development/core/datetime.js +1 -1
  280. package/development/core/decorators/base.d.ts +14 -0
  281. package/development/core/decorators/base.d.ts.map +1 -0
  282. package/development/core/decorators/force-type.d.ts +8 -0
  283. package/development/core/decorators/force-type.d.ts.map +1 -0
  284. package/development/core/decorators/get-override.d.ts +7 -0
  285. package/development/core/decorators/get-override.d.ts.map +1 -0
  286. package/development/core/decorators/handle-distinct-change.d.ts +8 -0
  287. package/development/core/decorators/handle-distinct-change.d.ts.map +1 -0
  288. package/development/core/decorators/omit-empty-converter.d.ts +8 -0
  289. package/development/core/decorators/omit-empty-converter.d.ts.map +1 -0
  290. package/development/core/decorators.d.ts +4 -0
  291. package/development/core/decorators.d.ts.map +1 -1
  292. package/development/core/decorators.js +69 -5
  293. package/development/core/dom.js +2 -6
  294. package/development/core/eventing.js +2 -5
  295. package/development/core/i18n.js +1 -1
  296. package/development/core/interfaces/paginator-page.d.ts +7 -0
  297. package/development/core/interfaces/paginator-page.d.ts.map +1 -0
  298. package/development/core/interfaces.d.ts +1 -0
  299. package/development/core/interfaces.d.ts.map +1 -1
  300. package/development/core/mixins/disabled-mixin.d.ts +2 -3
  301. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  302. package/development/core/mixins/named-slot-list-mixin.d.ts +1 -1
  303. package/development/core/mixins/named-slot-list-mixin.d.ts.map +1 -1
  304. package/development/core/mixins/negative-mixin.d.ts +1 -1
  305. package/development/core/mixins/negative-mixin.d.ts.map +1 -1
  306. package/development/core/mixins/panel-mixin.d.ts +3 -3
  307. package/development/core/mixins/panel-mixin.d.ts.map +1 -1
  308. package/development/core/mixins/required-mixin.d.ts +1 -2
  309. package/development/core/mixins/required-mixin.d.ts.map +1 -1
  310. package/development/core/mixins.js +573 -475
  311. package/development/core/observers.js +1 -1
  312. package/development/core/overlay.js +1 -1
  313. package/development/core/testing/private.d.ts +1 -0
  314. package/development/core/testing/private.d.ts.map +1 -1
  315. package/development/core/testing.js +16 -22
  316. package/development/datepicker/common/datepicker-button.d.ts +2 -2
  317. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  318. package/development/datepicker/common.js +144 -142
  319. package/development/datepicker/datepicker/datepicker.d.ts +6 -6
  320. package/development/datepicker/datepicker/datepicker.d.ts.map +1 -1
  321. package/development/datepicker/datepicker-next-day/datepicker-next-day.d.ts.map +1 -1
  322. package/development/datepicker/datepicker-next-day.js +32 -32
  323. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.d.ts.map +1 -1
  324. package/development/datepicker/datepicker-previous-day.js +32 -32
  325. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts +6 -6
  326. package/development/datepicker/datepicker-toggle/datepicker-toggle.d.ts.map +1 -1
  327. package/development/datepicker/datepicker-toggle.js +227 -174
  328. package/development/datepicker/datepicker.js +327 -249
  329. package/development/dialog/dialog/dialog.d.ts +1 -1
  330. package/development/dialog/dialog/dialog.d.ts.map +1 -1
  331. package/development/dialog/dialog-actions/dialog-actions.d.ts.map +1 -1
  332. package/development/dialog/dialog-actions.js +21 -20
  333. package/development/dialog/dialog-content/dialog-content.d.ts.map +1 -1
  334. package/development/dialog/dialog-content.js +22 -21
  335. package/development/dialog/dialog-title/dialog-title.d.ts +3 -3
  336. package/development/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  337. package/development/dialog/dialog-title.js +121 -66
  338. package/development/dialog/dialog.js +205 -191
  339. package/development/divider/divider.d.ts +1 -1
  340. package/development/divider/divider.d.ts.map +1 -1
  341. package/development/divider.js +55 -36
  342. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts +4 -4
  343. package/development/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  344. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.d.ts.map +1 -1
  345. package/development/expansion-panel/expansion-panel-content.js +25 -25
  346. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts.map +1 -1
  347. package/development/expansion-panel/expansion-panel-header.js +56 -63
  348. package/development/expansion-panel/expansion-panel.js +227 -182
  349. package/development/file-selector/file-selector.d.ts +8 -7
  350. package/development/file-selector/file-selector.d.ts.map +1 -1
  351. package/development/file-selector.js +295 -198
  352. package/development/flip-card/flip-card/flip-card.d.ts +2 -2
  353. package/development/flip-card/flip-card/flip-card.d.ts.map +1 -1
  354. package/development/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  355. package/development/flip-card/flip-card-details.js +39 -39
  356. package/development/flip-card/flip-card-summary/flip-card-summary.d.ts +1 -1
  357. package/development/flip-card/flip-card-summary/flip-card-summary.d.ts.map +1 -1
  358. package/development/flip-card/flip-card-summary.js +57 -38
  359. package/development/flip-card/flip-card.js +110 -78
  360. package/development/footer/footer.d.ts +4 -4
  361. package/development/footer/footer.d.ts.map +1 -1
  362. package/development/footer.js +103 -41
  363. package/development/form-error/form-error.d.ts.map +1 -1
  364. package/development/form-error.js +29 -28
  365. package/development/form-field/form-field/form-field.d.ts +10 -10
  366. package/development/form-field/form-field/form-field.d.ts.map +1 -1
  367. package/development/form-field/form-field-clear/form-field-clear.d.ts.map +1 -1
  368. package/development/form-field/form-field-clear.js +50 -50
  369. package/development/form-field/form-field.js +439 -328
  370. package/development/header/common/header-action-common.d.ts +2 -2
  371. package/development/header/common/header-action-common.d.ts.map +1 -1
  372. package/development/header/common.js +44 -24
  373. package/development/header/header/header.d.ts +4 -4
  374. package/development/header/header/header.d.ts.map +1 -1
  375. package/development/header/header-button/header-button.d.ts.map +1 -1
  376. package/development/header/header-button.js +19 -18
  377. package/development/header/header-link/header-link.d.ts.map +1 -1
  378. package/development/header/header-link.js +19 -16
  379. package/development/header/header.js +198 -140
  380. package/development/icon/icon-base.d.ts +3 -4
  381. package/development/icon/icon-base.d.ts.map +1 -1
  382. package/development/icon/icon-name-mixin.d.ts +1 -1
  383. package/development/icon/icon-name-mixin.d.ts.map +1 -1
  384. package/development/icon/icon.d.ts +2 -2
  385. package/development/icon/icon.d.ts.map +1 -1
  386. package/development/icon.js +258 -157
  387. package/development/image/image.d.ts +17 -17
  388. package/development/image/image.d.ts.map +1 -1
  389. package/development/image.js +584 -216
  390. package/development/journey-header/journey-header.d.ts +5 -5
  391. package/development/journey-header/journey-header.d.ts.map +1 -1
  392. package/development/journey-header.js +115 -43
  393. package/development/lead-container/lead-container.d.ts.map +1 -1
  394. package/development/lead-container.js +22 -21
  395. package/development/link/block-link/block-link.d.ts.map +1 -1
  396. package/development/link/block-link-button/block-link-button.d.ts.map +1 -1
  397. package/development/link/block-link-button.js +19 -18
  398. package/development/link/block-link-static/block-link-static.d.ts.map +1 -1
  399. package/development/link/block-link-static.js +19 -18
  400. package/development/link/block-link.js +19 -18
  401. package/development/link/common/block-link-common.d.ts +4 -3
  402. package/development/link/common/block-link-common.d.ts.map +1 -1
  403. package/development/link/common/link-common.d.ts +1 -1
  404. package/development/link/common/link-common.d.ts.map +1 -1
  405. package/development/link/common.js +81 -51
  406. package/development/link/link/link.d.ts.map +1 -1
  407. package/development/link/link-button/link-button.d.ts.map +1 -1
  408. package/development/link/link-button.js +19 -18
  409. package/development/link/link-static/link-static.d.ts.map +1 -1
  410. package/development/link/link-static.js +19 -18
  411. package/development/link/link.js +19 -18
  412. package/development/link-list/common/link-list-base.d.ts +3 -3
  413. package/development/link-list/common/link-list-base.d.ts.map +1 -1
  414. package/development/link-list/common.js +97 -48
  415. package/development/link-list/link-list/link-list.d.ts +2 -2
  416. package/development/link-list/link-list/link-list.d.ts.map +1 -1
  417. package/development/link-list/link-list-anchor/link-list-anchor.d.ts.map +1 -1
  418. package/development/link-list/link-list-anchor.js +18 -17
  419. package/development/link-list/link-list.js +60 -28
  420. package/development/loading-indicator/loading-indicator.d.ts +3 -3
  421. package/development/loading-indicator/loading-indicator.d.ts.map +1 -1
  422. package/development/loading-indicator.js +82 -40
  423. package/development/logo/logo.d.ts +2 -2
  424. package/development/logo/logo.d.ts.map +1 -1
  425. package/development/logo.js +64 -32
  426. package/development/map-container/map-container.d.ts +2 -2
  427. package/development/map-container/map-container.d.ts.map +1 -1
  428. package/development/map-container.js +107 -75
  429. package/development/menu/common/menu-action-common.d.ts +2 -2
  430. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  431. package/development/menu/common.js +41 -20
  432. package/development/menu/menu/menu.d.ts +1 -1
  433. package/development/menu/menu/menu.d.ts.map +1 -1
  434. package/development/menu/menu-button/menu-button.d.ts.map +1 -1
  435. package/development/menu/menu-button.js +19 -18
  436. package/development/menu/menu-link/menu-link.d.ts.map +1 -1
  437. package/development/menu/menu-link.js +19 -18
  438. package/development/menu/menu.js +261 -241
  439. package/development/message/message.d.ts +2 -2
  440. package/development/message/message.d.ts.map +1 -1
  441. package/development/message.js +65 -32
  442. package/development/navigation/common/navigation-action-common.d.ts +1 -1
  443. package/development/navigation/common/navigation-action-common.d.ts.map +1 -1
  444. package/development/navigation/common.js +63 -52
  445. package/development/navigation/navigation/navigation.d.ts +2 -2
  446. package/development/navigation/navigation/navigation.d.ts.map +1 -1
  447. package/development/navigation/navigation-button/navigation-button.d.ts.map +1 -1
  448. package/development/navigation/navigation-button.js +19 -18
  449. package/development/navigation/navigation-link/navigation-link.d.ts.map +1 -1
  450. package/development/navigation/navigation-link.js +19 -18
  451. package/development/navigation/navigation-list/navigation-list.d.ts +1 -1
  452. package/development/navigation/navigation-list/navigation-list.d.ts.map +1 -1
  453. package/development/navigation/navigation-list.js +64 -41
  454. package/development/navigation/navigation-marker/navigation-marker.d.ts +1 -1
  455. package/development/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  456. package/development/navigation/navigation-marker.js +108 -91
  457. package/development/navigation/navigation-section/navigation-section.d.ts +3 -3
  458. package/development/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  459. package/development/navigation/navigation-section.js +282 -236
  460. package/development/navigation/navigation.js +278 -254
  461. package/development/notification/notification.d.ts +6 -6
  462. package/development/notification/notification.d.ts.map +1 -1
  463. package/development/notification.js +212 -146
  464. package/development/option/optgroup/optgroup-base-element.d.ts +3 -3
  465. package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  466. package/development/option/optgroup/optgroup.d.ts.map +1 -1
  467. package/development/option/optgroup.js +187 -142
  468. package/development/option/option/option-base-element.d.ts +7 -7
  469. package/development/option/option/option-base-element.d.ts.map +1 -1
  470. package/development/option/option/option.d.ts.map +1 -1
  471. package/development/option/option.js +392 -296
  472. package/development/overlay/overlay-base-element.d.ts +1 -1
  473. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  474. package/development/overlay/overlay.d.ts +4 -4
  475. package/development/overlay/overlay.d.ts.map +1 -1
  476. package/development/overlay.js +260 -207
  477. package/development/paginator/common/paginator-common.d.ts +26 -0
  478. package/development/paginator/common/paginator-common.d.ts.map +1 -0
  479. package/development/paginator/common.d.ts +2 -0
  480. package/development/paginator/common.d.ts.map +1 -0
  481. package/development/paginator/common.js +189 -0
  482. package/development/paginator/compact-paginator/compact-paginator.d.ts +20 -0
  483. package/development/paginator/compact-paginator/compact-paginator.d.ts.map +1 -0
  484. package/development/paginator/compact-paginator.d.ts +2 -0
  485. package/development/paginator/compact-paginator.d.ts.map +1 -0
  486. package/development/paginator/compact-paginator.js +96 -0
  487. package/development/paginator/paginator/paginator.d.ts +51 -0
  488. package/development/paginator/paginator/paginator.d.ts.map +1 -0
  489. package/development/paginator/paginator.d.ts +1 -90
  490. package/development/paginator/paginator.d.ts.map +1 -1
  491. package/development/paginator/paginator.js +449 -0
  492. package/development/paginator.d.ts +2 -0
  493. package/development/paginator.d.ts.map +1 -1
  494. package/development/paginator.js +4 -541
  495. package/development/popover/popover/popover.d.ts +6 -7
  496. package/development/popover/popover/popover.d.ts.map +1 -1
  497. package/development/popover/popover-trigger/popover-trigger.d.ts.map +1 -1
  498. package/development/popover/popover-trigger.js +28 -29
  499. package/development/popover/popover.js +358 -303
  500. package/development/radio-button/common/radio-button-common.d.ts +1 -1
  501. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  502. package/development/radio-button/common.js +170 -127
  503. package/development/radio-button/radio-button/radio-button.d.ts +2 -6
  504. package/development/radio-button/radio-button/radio-button.d.ts.map +1 -1
  505. package/development/radio-button/radio-button-group/radio-button-group.d.ts +6 -6
  506. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  507. package/development/radio-button/radio-button-group.js +269 -199
  508. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts +2 -6
  509. package/development/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  510. package/development/radio-button/radio-button-panel.js +60 -48
  511. package/development/radio-button/radio-button.js +54 -40
  512. package/development/screen-reader-only/screen-reader-only.d.ts.map +1 -1
  513. package/development/screen-reader-only.js +22 -21
  514. package/development/select/select.d.ts +5 -4
  515. package/development/select/select.d.ts.map +1 -1
  516. package/development/select.js +555 -555
  517. package/development/selection-expansion-panel/selection-expansion-panel.d.ts +3 -3
  518. package/development/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  519. package/development/selection-expansion-panel.js +223 -193
  520. package/development/signet/signet.d.ts +2 -2
  521. package/development/signet/signet.d.ts.map +1 -1
  522. package/development/signet.js +65 -33
  523. package/development/skiplink-list/skiplink-list.d.ts +2 -2
  524. package/development/skiplink-list/skiplink-list.d.ts.map +1 -1
  525. package/development/skiplink-list.js +74 -41
  526. package/development/slider/slider.d.ts +5 -4
  527. package/development/slider/slider.d.ts.map +1 -1
  528. package/development/slider.js +260 -184
  529. package/development/status/status.d.ts +3 -3
  530. package/development/status/status.d.ts.map +1 -1
  531. package/development/status.js +96 -51
  532. package/development/stepper/step/step.d.ts.map +1 -1
  533. package/development/stepper/step-label/step-label.d.ts.map +1 -1
  534. package/development/stepper/step-label.js +86 -90
  535. package/development/stepper/step.js +122 -126
  536. package/development/stepper/stepper/stepper.d.ts +3 -3
  537. package/development/stepper/stepper/stepper.d.ts.map +1 -1
  538. package/development/stepper/stepper.js +291 -241
  539. package/development/table/table-wrapper/table-wrapper.d.ts.map +1 -1
  540. package/development/table/table-wrapper.js +37 -39
  541. package/development/tabs/tab/tab.d.ts.map +1 -1
  542. package/development/tabs/tab-group/tab-group.d.ts +2 -2
  543. package/development/tabs/tab-group/tab-group.d.ts.map +1 -1
  544. package/development/tabs/tab-group.js +296 -279
  545. package/development/tabs/tab-label/tab-label.d.ts +3 -3
  546. package/development/tabs/tab-label/tab-label.d.ts.map +1 -1
  547. package/development/tabs/tab-label.js +83 -37
  548. package/development/tabs/tab.js +40 -39
  549. package/development/tag/tag/tag.d.ts +3 -5
  550. package/development/tag/tag/tag.d.ts.map +1 -1
  551. package/development/tag/tag-group/tag-group.d.ts +3 -3
  552. package/development/tag/tag-group/tag-group.d.ts.map +1 -1
  553. package/development/tag/tag-group.js +143 -88
  554. package/development/tag/tag.js +126 -89
  555. package/development/teaser/teaser.d.ts +4 -4
  556. package/development/teaser/teaser.d.ts.map +1 -1
  557. package/development/teaser-hero/teaser-hero.d.ts +3 -3
  558. package/development/teaser-hero/teaser-hero.d.ts.map +1 -1
  559. package/development/teaser-hero.js +83 -36
  560. package/development/teaser-product/common/teaser-product-common.d.ts +1 -1
  561. package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  562. package/development/teaser-product/common.js +51 -26
  563. package/development/teaser-product/teaser-product/teaser-product.d.ts.map +1 -1
  564. package/development/teaser-product/teaser-product-static/teaser-product-static.d.ts.map +1 -1
  565. package/development/teaser-product/teaser-product-static.js +18 -19
  566. package/development/teaser-product/teaser-product.js +18 -19
  567. package/development/teaser.js +94 -40
  568. package/development/time-input/time-input.d.ts +1 -1
  569. package/development/time-input/time-input.d.ts.map +1 -1
  570. package/development/time-input.js +225 -219
  571. package/development/timetable-occupancy/timetable-occupancy.d.ts +2 -2
  572. package/development/timetable-occupancy/timetable-occupancy.d.ts.map +1 -1
  573. package/development/timetable-occupancy-icon/timetable-occupancy-icon.d.ts +1 -1
  574. package/development/timetable-occupancy-icon/timetable-occupancy-icon.d.ts.map +1 -1
  575. package/development/timetable-occupancy-icon.js +78 -57
  576. package/development/timetable-occupancy.js +67 -35
  577. package/development/title/title-base.d.ts +3 -3
  578. package/development/title/title-base.d.ts.map +1 -1
  579. package/development/title/title.d.ts.map +1 -1
  580. package/development/title.js +106 -58
  581. package/development/toast/toast.d.ts +4 -4
  582. package/development/toast/toast.d.ts.map +1 -1
  583. package/development/toast.js +204 -146
  584. package/development/toggle/toggle/toggle.d.ts +3 -5
  585. package/development/toggle/toggle/toggle.d.ts.map +1 -1
  586. package/development/toggle/toggle-option/toggle-option.d.ts +2 -2
  587. package/development/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  588. package/development/toggle/toggle-option.js +127 -93
  589. package/development/toggle/toggle.js +200 -163
  590. package/development/toggle-check/toggle-check.d.ts +4 -3
  591. package/development/toggle-check/toggle-check.d.ts.map +1 -1
  592. package/development/toggle-check.js +87 -49
  593. package/development/train/train/train.d.ts +5 -5
  594. package/development/train/train/train.d.ts.map +1 -1
  595. package/development/train/train-blocked-passage/train-blocked-passage.d.ts.map +1 -1
  596. package/development/train/train-blocked-passage.js +22 -21
  597. package/development/train/train-formation/train-formation.d.ts +2 -2
  598. package/development/train/train-formation/train-formation.d.ts.map +1 -1
  599. package/development/train/train-formation.js +113 -90
  600. package/development/train/train-wagon/train-wagon.d.ts +7 -9
  601. package/development/train/train-wagon/train-wagon.d.ts.map +1 -1
  602. package/development/train/train-wagon.js +166 -87
  603. package/development/train/train.js +142 -75
  604. package/development/visual-checkbox/visual-checkbox.d.ts +3 -3
  605. package/development/visual-checkbox/visual-checkbox.d.ts.map +1 -1
  606. package/development/visual-checkbox.js +79 -36
  607. package/dialog/dialog/dialog.d.ts +1 -1
  608. package/dialog/dialog/dialog.d.ts.map +1 -1
  609. package/dialog/dialog-actions/dialog-actions.d.ts.map +1 -1
  610. package/dialog/dialog-actions.js +18 -19
  611. package/dialog/dialog-content/dialog-content.d.ts.map +1 -1
  612. package/dialog/dialog-content.js +17 -18
  613. package/dialog/dialog-title/dialog-title.d.ts +3 -3
  614. package/dialog/dialog-title/dialog-title.d.ts.map +1 -1
  615. package/dialog/dialog-title.js +98 -66
  616. package/dialog/dialog.js +120 -114
  617. package/divider/divider.d.ts +1 -1
  618. package/divider/divider.d.ts.map +1 -1
  619. package/divider.js +41 -30
  620. package/expansion-panel/expansion-panel/expansion-panel.d.ts +4 -4
  621. package/expansion-panel/expansion-panel/expansion-panel.d.ts.map +1 -1
  622. package/expansion-panel/expansion-panel-content/expansion-panel-content.d.ts.map +1 -1
  623. package/expansion-panel/expansion-panel-content.js +20 -22
  624. package/expansion-panel/expansion-panel-header/expansion-panel-header.d.ts.map +1 -1
  625. package/expansion-panel/expansion-panel-header.js +53 -61
  626. package/expansion-panel/expansion-panel.js +145 -130
  627. package/file-selector/file-selector.d.ts +8 -7
  628. package/file-selector/file-selector.d.ts.map +1 -1
  629. package/file-selector.js +224 -174
  630. package/flip-card/flip-card/flip-card.d.ts +2 -2
  631. package/flip-card/flip-card/flip-card.d.ts.map +1 -1
  632. package/flip-card/flip-card-details/flip-card-details.d.ts.map +1 -1
  633. package/flip-card/flip-card-details.js +36 -38
  634. package/flip-card/flip-card-summary/flip-card-summary.d.ts +1 -1
  635. package/flip-card/flip-card-summary/flip-card-summary.d.ts.map +1 -1
  636. package/flip-card/flip-card-summary.js +42 -31
  637. package/flip-card/flip-card.js +88 -69
  638. package/footer/footer.d.ts +4 -4
  639. package/footer/footer.d.ts.map +1 -1
  640. package/footer.js +78 -37
  641. package/form-error/form-error.d.ts.map +1 -1
  642. package/form-error.js +24 -25
  643. package/form-field/form-field/form-field.d.ts +10 -10
  644. package/form-field/form-field/form-field.d.ts.map +1 -1
  645. package/form-field/form-field-clear/form-field-clear.d.ts.map +1 -1
  646. package/form-field/form-field-clear.js +39 -41
  647. package/form-field/form-field.js +295 -239
  648. package/header/common/header-action-common.d.ts +2 -2
  649. package/header/common/header-action-common.d.ts.map +1 -1
  650. package/header/common.js +36 -21
  651. package/header/header/header.d.ts +4 -4
  652. package/header/header/header.d.ts.map +1 -1
  653. package/header/header-button/header-button.d.ts.map +1 -1
  654. package/header/header-button.js +14 -16
  655. package/header/header-link/header-link.d.ts.map +1 -1
  656. package/header/header-link.js +14 -14
  657. package/header/header.js +138 -109
  658. package/icon/icon-base.d.ts +3 -4
  659. package/icon/icon-base.d.ts.map +1 -1
  660. package/icon/icon-name-mixin.d.ts +1 -1
  661. package/icon/icon-name-mixin.d.ts.map +1 -1
  662. package/icon/icon.d.ts +2 -2
  663. package/icon/icon.d.ts.map +1 -1
  664. package/icon.js +230 -165
  665. package/image/image.d.ts +17 -17
  666. package/image/image.d.ts.map +1 -1
  667. package/image.js +465 -195
  668. package/index.d.ts +3 -1
  669. package/index.js +3 -1
  670. package/journey-header/journey-header.d.ts +5 -5
  671. package/journey-header/journey-header.d.ts.map +1 -1
  672. package/journey-header.js +89 -49
  673. package/lead-container/lead-container.d.ts.map +1 -1
  674. package/lead-container.js +17 -18
  675. package/link/block-link/block-link.d.ts.map +1 -1
  676. package/link/block-link-button/block-link-button.d.ts.map +1 -1
  677. package/link/block-link-button.js +15 -17
  678. package/link/block-link-static/block-link-static.d.ts.map +1 -1
  679. package/link/block-link-static.js +14 -16
  680. package/link/block-link.js +15 -17
  681. package/link/common/block-link-common.d.ts +4 -3
  682. package/link/common/block-link-common.d.ts.map +1 -1
  683. package/link/common/link-common.d.ts +1 -1
  684. package/link/common/link-common.d.ts.map +1 -1
  685. package/link/common.js +64 -46
  686. package/link/link/link.d.ts.map +1 -1
  687. package/link/link-button/link-button.d.ts.map +1 -1
  688. package/link/link-button.js +15 -17
  689. package/link/link-static/link-static.d.ts.map +1 -1
  690. package/link/link-static.js +15 -17
  691. package/link/link.js +15 -17
  692. package/link-list/common/link-list-base.d.ts +3 -3
  693. package/link-list/common/link-list-base.d.ts.map +1 -1
  694. package/link-list/common.js +72 -44
  695. package/link-list/link-list/link-list.d.ts +2 -2
  696. package/link-list/link-list/link-list.d.ts.map +1 -1
  697. package/link-list/link-list-anchor/link-list-anchor.d.ts.map +1 -1
  698. package/link-list/link-list-anchor.js +15 -16
  699. package/link-list/link-list.js +43 -24
  700. package/loading-indicator/loading-indicator.d.ts +3 -3
  701. package/loading-indicator/loading-indicator.d.ts.map +1 -1
  702. package/loading-indicator.js +61 -36
  703. package/logo/logo.d.ts +2 -2
  704. package/logo/logo.d.ts.map +1 -1
  705. package/logo.js +47 -27
  706. package/map-container/map-container.d.ts +2 -2
  707. package/map-container/map-container.d.ts.map +1 -1
  708. package/map-container.js +84 -65
  709. package/menu/common/menu-action-common.d.ts +2 -2
  710. package/menu/common/menu-action-common.d.ts.map +1 -1
  711. package/menu/common.js +37 -22
  712. package/menu/menu/menu.d.ts +1 -1
  713. package/menu/menu/menu.d.ts.map +1 -1
  714. package/menu/menu-button/menu-button.d.ts.map +1 -1
  715. package/menu/menu-button.js +14 -16
  716. package/menu/menu-link/menu-link.d.ts.map +1 -1
  717. package/menu/menu-link.js +15 -17
  718. package/menu/menu.js +175 -170
  719. package/message/message.d.ts +2 -2
  720. package/message/message.d.ts.map +1 -1
  721. package/message.js +47 -27
  722. package/navigation/common/navigation-action-common.d.ts +1 -1
  723. package/navigation/common/navigation-action-common.d.ts.map +1 -1
  724. package/navigation/common.js +38 -33
  725. package/navigation/navigation/navigation.d.ts +2 -2
  726. package/navigation/navigation/navigation.d.ts.map +1 -1
  727. package/navigation/navigation-button/navigation-button.d.ts.map +1 -1
  728. package/navigation/navigation-button.js +14 -16
  729. package/navigation/navigation-link/navigation-link.d.ts.map +1 -1
  730. package/navigation/navigation-link.js +14 -16
  731. package/navigation/navigation-list/navigation-list.d.ts +1 -1
  732. package/navigation/navigation-list/navigation-list.d.ts.map +1 -1
  733. package/navigation/navigation-list.js +48 -35
  734. package/navigation/navigation-marker/navigation-marker.d.ts +1 -1
  735. package/navigation/navigation-marker/navigation-marker.d.ts.map +1 -1
  736. package/navigation/navigation-marker.js +77 -69
  737. package/navigation/navigation-section/navigation-section.d.ts +3 -3
  738. package/navigation/navigation-section/navigation-section.d.ts.map +1 -1
  739. package/navigation/navigation-section.js +192 -171
  740. package/navigation/navigation.js +185 -181
  741. package/notification/notification.d.ts +6 -6
  742. package/notification/notification.d.ts.map +1 -1
  743. package/notification.js +147 -116
  744. package/option/optgroup/optgroup-base-element.d.ts +3 -3
  745. package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  746. package/option/optgroup/optgroup.d.ts.map +1 -1
  747. package/option/optgroup.js +131 -112
  748. package/option/option/option-base-element.d.ts +7 -7
  749. package/option/option/option-base-element.d.ts.map +1 -1
  750. package/option/option/option.d.ts.map +1 -1
  751. package/option/option.js +295 -252
  752. package/overlay/overlay-base-element.d.ts +1 -1
  753. package/overlay/overlay-base-element.d.ts.map +1 -1
  754. package/overlay/overlay.d.ts +4 -4
  755. package/overlay/overlay.d.ts.map +1 -1
  756. package/overlay.js +194 -165
  757. package/package.json +18 -2
  758. package/paginator/common/paginator-common.d.ts +26 -0
  759. package/paginator/common/paginator-common.d.ts.map +1 -0
  760. package/paginator/common.d.ts +2 -0
  761. package/paginator/common.d.ts.map +1 -0
  762. package/paginator/common.js +145 -0
  763. package/paginator/compact-paginator/compact-paginator.d.ts +20 -0
  764. package/paginator/compact-paginator/compact-paginator.d.ts.map +1 -0
  765. package/paginator/compact-paginator.d.ts +2 -0
  766. package/paginator/compact-paginator.d.ts.map +1 -0
  767. package/paginator/compact-paginator.js +40 -0
  768. package/paginator/paginator/paginator.d.ts +51 -0
  769. package/paginator/paginator/paginator.d.ts.map +1 -0
  770. package/paginator/paginator.d.ts +1 -90
  771. package/paginator/paginator.d.ts.map +1 -1
  772. package/paginator/paginator.js +171 -0
  773. package/paginator.d.ts +2 -0
  774. package/paginator.d.ts.map +1 -1
  775. package/paginator.js +3 -265
  776. package/popover/popover/popover.d.ts +6 -7
  777. package/popover/popover/popover.d.ts.map +1 -1
  778. package/popover/popover-trigger/popover-trigger.d.ts.map +1 -1
  779. package/popover/popover-trigger.js +26 -29
  780. package/popover/popover.js +230 -208
  781. package/radio-button/common/radio-button-common.d.ts +1 -1
  782. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  783. package/radio-button/common.js +67 -43
  784. package/radio-button/radio-button/radio-button.d.ts +2 -6
  785. package/radio-button/radio-button/radio-button.d.ts.map +1 -1
  786. package/radio-button/radio-button-group/radio-button-group.d.ts +6 -6
  787. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  788. package/radio-button/radio-button-group.js +192 -156
  789. package/radio-button/radio-button-panel/radio-button-panel.d.ts +2 -6
  790. package/radio-button/radio-button-panel/radio-button-panel.d.ts.map +1 -1
  791. package/radio-button/radio-button-panel.js +49 -45
  792. package/radio-button/radio-button.js +43 -37
  793. package/screen-reader-only/screen-reader-only.d.ts.map +1 -1
  794. package/screen-reader-only.js +17 -18
  795. package/select/select.d.ts +5 -4
  796. package/select/select.d.ts.map +1 -1
  797. package/select.js +377 -401
  798. package/selection-expansion-panel/selection-expansion-panel.d.ts +3 -3
  799. package/selection-expansion-panel/selection-expansion-panel.d.ts.map +1 -1
  800. package/selection-expansion-panel.js +157 -148
  801. package/signet/signet.d.ts +2 -2
  802. package/signet/signet.d.ts.map +1 -1
  803. package/signet.js +48 -28
  804. package/skiplink-list/skiplink-list.d.ts +2 -2
  805. package/skiplink-list/skiplink-list.d.ts.map +1 -1
  806. package/skiplink-list.js +54 -36
  807. package/slider/slider.d.ts +5 -4
  808. package/slider/slider.d.ts.map +1 -1
  809. package/slider.js +197 -158
  810. package/status/status.d.ts +3 -3
  811. package/status/status.d.ts.map +1 -1
  812. package/status.js +71 -46
  813. package/stepper/step/step.d.ts.map +1 -1
  814. package/stepper/step-label/step-label.d.ts.map +1 -1
  815. package/stepper/step-label.js +69 -75
  816. package/stepper/step.js +99 -104
  817. package/stepper/stepper/stepper.d.ts +3 -3
  818. package/stepper/stepper/stepper.d.ts.map +1 -1
  819. package/stepper/stepper.js +208 -188
  820. package/table/table-wrapper/table-wrapper.d.ts.map +1 -1
  821. package/table/table-wrapper.js +32 -36
  822. package/tabs/tab/tab.d.ts.map +1 -1
  823. package/tabs/tab-group/tab-group.d.ts +2 -2
  824. package/tabs/tab-group/tab-group.d.ts.map +1 -1
  825. package/tabs/tab-group.js +200 -193
  826. package/tabs/tab-label/tab-label.d.ts +3 -3
  827. package/tabs/tab-label/tab-label.d.ts.map +1 -1
  828. package/tabs/tab-label.js +65 -37
  829. package/tabs/tab.js +34 -35
  830. package/tag/tag/tag.d.ts +3 -5
  831. package/tag/tag/tag.d.ts.map +1 -1
  832. package/tag/tag-group/tag-group.d.ts +3 -3
  833. package/tag/tag-group/tag-group.d.ts.map +1 -1
  834. package/tag/tag-group.js +107 -75
  835. package/tag/tag.js +92 -73
  836. package/teaser/teaser.d.ts +4 -4
  837. package/teaser/teaser.d.ts.map +1 -1
  838. package/teaser-hero/teaser-hero.d.ts +3 -3
  839. package/teaser-hero/teaser-hero.d.ts.map +1 -1
  840. package/teaser-hero.js +66 -38
  841. package/teaser-product/common/teaser-product-common.d.ts +1 -1
  842. package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  843. package/teaser-product/common.js +36 -21
  844. package/teaser-product/teaser-product/teaser-product.d.ts.map +1 -1
  845. package/teaser-product/teaser-product-static/teaser-product-static.d.ts.map +1 -1
  846. package/teaser-product/teaser-product-static.js +14 -17
  847. package/teaser-product/teaser-product.js +14 -17
  848. package/teaser.js +69 -37
  849. package/time-input/time-input.d.ts +1 -1
  850. package/time-input/time-input.d.ts.map +1 -1
  851. package/time-input.js +160 -166
  852. package/timetable-occupancy/timetable-occupancy.d.ts +2 -2
  853. package/timetable-occupancy/timetable-occupancy.d.ts.map +1 -1
  854. package/timetable-occupancy-icon/timetable-occupancy-icon.d.ts +1 -1
  855. package/timetable-occupancy-icon/timetable-occupancy-icon.d.ts.map +1 -1
  856. package/timetable-occupancy-icon.js +60 -48
  857. package/timetable-occupancy.js +55 -38
  858. package/title/title-base.d.ts +3 -3
  859. package/title/title-base.d.ts.map +1 -1
  860. package/title/title.d.ts.map +1 -1
  861. package/title.js +81 -53
  862. package/toast/toast.d.ts +4 -4
  863. package/toast/toast.d.ts.map +1 -1
  864. package/toast.js +156 -123
  865. package/toggle/toggle/toggle.d.ts +3 -5
  866. package/toggle/toggle/toggle.d.ts.map +1 -1
  867. package/toggle/toggle-option/toggle-option.d.ts +2 -2
  868. package/toggle/toggle-option/toggle-option.d.ts.map +1 -1
  869. package/toggle/toggle-option.js +89 -72
  870. package/toggle/toggle.js +139 -122
  871. package/toggle-check/toggle-check.d.ts +4 -3
  872. package/toggle-check/toggle-check.d.ts.map +1 -1
  873. package/toggle-check.js +63 -41
  874. package/train/train/train.d.ts +5 -5
  875. package/train/train/train.d.ts.map +1 -1
  876. package/train/train-blocked-passage/train-blocked-passage.d.ts.map +1 -1
  877. package/train/train-blocked-passage.js +17 -18
  878. package/train/train-formation/train-formation.d.ts +2 -2
  879. package/train/train-formation/train-formation.d.ts.map +1 -1
  880. package/train/train-formation.js +96 -87
  881. package/train/train-wagon/train-wagon.d.ts +7 -9
  882. package/train/train-wagon/train-wagon.d.ts.map +1 -1
  883. package/train/train-wagon.js +150 -110
  884. package/train/train.js +108 -71
  885. package/visual-checkbox/visual-checkbox.d.ts +3 -3
  886. package/visual-checkbox/visual-checkbox.d.ts.map +1 -1
  887. package/visual-checkbox.js +59 -32
package/time-input.js CHANGED
@@ -1,176 +1,170 @@
1
- import { css as p, LitElement as m, html as _ } from "lit";
2
- import { property as d, state as c, customElement as E } from "lit/decorators.js";
3
- import { ref as g } from "lit/directives/ref.js";
4
- import { SbbLanguageController as b } from "./core/controllers.js";
5
- import { findInput as f } from "./core/dom.js";
6
- import { EventEmitter as o, forwardEventToHost as h } from "./core/eventing.js";
7
- import { i18nTimeInputChange as C } from "./core/i18n.js";
8
- const w = p`:host{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;display:block}`;
9
- var v = Object.defineProperty, A = Object.getOwnPropertyDescriptor, u = (t, e, i, n) => {
10
- for (var s = n > 1 ? void 0 : n ? A(e, i) : e, a = t.length - 1, l; a >= 0; a--)
11
- (l = t[a]) && (s = (n ? l(e, i, s) : l(s)) || s);
12
- return n && s && v(e, i, s), s;
1
+ var C = (i) => {
2
+ throw TypeError(i);
13
3
  };
14
- const V = /[0-9.:,\-;_hH]/, y = /^([0-9]{1,2})([0-9]{2})$/, I = /^([0-9]{1,2})?[.:,\-;_hH]?([0-9]{1,2})?$/;
15
- let r = class extends m {
16
- constructor() {
17
- super(...arguments), this._input = null, this._inputElement = null, this._didChange = new o(this, r.events.didChange, {
18
- bubbles: !0,
19
- cancelable: !0
20
- }), this._validationChange = new o(
21
- this,
22
- r.events.validationChange,
23
- {
4
+ var v = (i, n, s) => n.has(i) || C("Cannot " + s);
5
+ var w = (i, n, s) => (v(i, n, "read from private field"), s ? s.call(i) : n.get(i)), A = (i, n, s) => n.has(i) ? C("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(i) : n.set(i, s), p = (i, n, s, r) => (v(i, n, "write to private field"), r ? r.call(i, s) : n.set(i, s), s);
6
+ import { __runInitializers as m, __esDecorate as _ } from "tslib";
7
+ import { css as D, html as T, LitElement as S } from "lit";
8
+ import { customElement as k, property as x, state as O } from "lit/decorators.js";
9
+ import { ref as H } from "lit/directives/ref.js";
10
+ import { SbbLanguageController as L } from "./core/controllers.js";
11
+ import { findInput as R } from "./core/dom.js";
12
+ import { EventEmitter as y, forwardEventToHost as I } from "./core/eventing.js";
13
+ import { i18nTimeInputChange as $ } from "./core/i18n.js";
14
+ const M = D`:host{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;display:block}`, z = /[0-9.:,\-;_hH]/, G = /^([0-9]{1,2})([0-9]{2})$/, P = /^([0-9]{1,2})?[.:,\-;_hH]?([0-9]{1,2})?$/;
15
+ let Q = (() => {
16
+ var o, l;
17
+ let i = [k("sbb-time-input")], n, s = [], r, c = S, d = [], E, b, g = [], f = [];
18
+ var h = (l = class extends c {
19
+ constructor() {
20
+ super(...arguments);
21
+ A(this, o);
22
+ this._input = (m(this, d), null), p(this, o, m(this, g, null)), this._didChange = (m(this, f), new y(this, h.events.didChange, {
23
+ bubbles: !0,
24
+ cancelable: !0
25
+ })), this._validationChange = new y(this, h.events.validationChange, {
24
26
  bubbles: !0,
25
27
  composed: !1
26
- }
27
- ), this._abortController = new AbortController(), this._language = new b(this);
28
- }
29
- set input(t) {
30
- this._input = t, this._findInputElement();
31
- }
32
- get input() {
33
- return this._input;
34
- }
35
- connectedCallback() {
36
- super.connectedCallback(), this._findInputElement(), this._inputElement && this._updateValue(this._inputElement.value);
37
- }
38
- disconnectedCallback() {
39
- var t;
40
- super.disconnectedCallback(), (t = this._abortController) == null || t.abort();
41
- }
42
- /** Gets the input value with the correct date format. */
43
- // TODO: refactor this to be a get/set
44
- getValueAsDate() {
45
- var t;
46
- return this._formatValueAsDate(this._parseInput((t = this._inputElement) == null ? void 0 : t.value));
47
- }
48
- /** Set the input value to the correctly formatted value. */
49
- setValueAsDate(t) {
50
- if (!t || !this._inputElement)
51
- return;
52
- const e = t instanceof Date ? t : new Date(t);
53
- this._inputElement.value = this._formatValue({
54
- hours: e.getHours(),
55
- minutes: e.getMinutes()
56
- }), this._inputElement.dispatchEvent(new FocusEvent("blur", { composed: !0 }));
57
- }
58
- _findInputElement() {
59
- const t = this._inputElement;
60
- this._inputElement = f(this, this.input), t !== this._inputElement && this._registerInputElement();
61
- }
62
- _registerInputElement() {
63
- var t;
64
- (t = this._abortController) == null || t.abort(), this._inputElement && (this._abortController = new AbortController(), this._inputElement.toggleAttribute("data-sbb-time-input", !0), this._inputElement.type = "text", this._inputElement.inputMode = "numeric", this._inputElement.maxLength = 5, this._inputElement.placeholder || (this._inputElement.placeholder = "HH:MM"), this._inputElement.addEventListener(
65
- "input",
66
- (e) => h(e, this),
67
- { signal: this._abortController.signal }
68
- ), this._inputElement.addEventListener(
69
- "keydown",
70
- (e) => this._preventCharInsert(e),
71
- { signal: this._abortController.signal }
72
- ), this._inputElement.addEventListener(
73
- "change",
74
- (e) => this._updateValueAndEmitChange(e),
75
- {
28
+ }), this._abortController = new AbortController(), this._language = new L(this);
29
+ }
30
+ /** Reference of the native input connected to the datepicker. */
31
+ set input(t) {
32
+ this._input = t, this._findInputElement();
33
+ }
34
+ get input() {
35
+ return this._input;
36
+ }
37
+ get _inputElement() {
38
+ return w(this, o);
39
+ }
40
+ set _inputElement(t) {
41
+ p(this, o, t);
42
+ }
43
+ connectedCallback() {
44
+ super.connectedCallback(), this._findInputElement(), this._inputElement && this._updateValue(this._inputElement.value);
45
+ }
46
+ disconnectedCallback() {
47
+ var t;
48
+ super.disconnectedCallback(), (t = this._abortController) == null || t.abort();
49
+ }
50
+ /** Gets the input value with the correct date format. */
51
+ // TODO: refactor this to be a get/set
52
+ getValueAsDate() {
53
+ var t;
54
+ return this._formatValueAsDate(this._parseInput((t = this._inputElement) == null ? void 0 : t.value));
55
+ }
56
+ /** Set the input value to the correctly formatted value. */
57
+ setValueAsDate(t) {
58
+ if (!t || !this._inputElement)
59
+ return;
60
+ const e = t instanceof Date ? t : new Date(t);
61
+ this._inputElement.value = this._formatValue({
62
+ hours: e.getHours(),
63
+ minutes: e.getMinutes()
64
+ }), this._inputElement.dispatchEvent(new FocusEvent("blur", { composed: !0 }));
65
+ }
66
+ _findInputElement() {
67
+ const t = this._inputElement;
68
+ this._inputElement = R(this, this.input), t !== this._inputElement && this._registerInputElement();
69
+ }
70
+ _registerInputElement() {
71
+ var t;
72
+ (t = this._abortController) == null || t.abort(), this._inputElement && (this._abortController = new AbortController(), this._inputElement.toggleAttribute("data-sbb-time-input", !0), this._inputElement.type = "text", this._inputElement.inputMode = "numeric", this._inputElement.maxLength = 5, this._inputElement.placeholder || (this._inputElement.placeholder = "HH:MM"), this._inputElement.addEventListener("input", (e) => I(e, this), { signal: this._abortController.signal }), this._inputElement.addEventListener("keydown", (e) => this._preventCharInsert(e), { signal: this._abortController.signal }), this._inputElement.addEventListener("change", (e) => this._updateValueAndEmitChange(e), {
76
73
  signal: this._abortController.signal
77
- }
78
- ));
79
- }
80
- /** Applies the correct format to values and triggers event dispatch. */
81
- _updateValueAndEmitChange(t) {
82
- this._updateValue(t.target.value), this._emitChange(t), this._updateAccessibilityMessage();
83
- }
84
- /**
85
- * Updates `value` and `valueAsDate`. The direct update on the `_inputElement` is required
86
- * to force the input change when the typed value is the same of the current one.
87
- */
88
- _updateValue(t) {
89
- if (this._statusContainer && (this._statusContainer.innerText = ""), !this._inputElement)
90
- return;
91
- const e = this._parseInput(t), i = !!e && this._isTimeValid(e), n = !t || t.trim() === "" || i;
92
- n && e && (this._inputElement.value = this._formatValue(e));
93
- const s = !this._inputElement.hasAttribute("data-sbb-invalid");
94
- this._inputElement.toggleAttribute("data-sbb-invalid", !n), s !== n && this._validationChange.emit({ valid: n });
95
- }
96
- /** Emits the change event. */
97
- _emitChange(t) {
98
- h(t, this), this._didChange.emit();
99
- }
100
- /** Returns the right format for the `value` property. */
101
- _formatValue(t) {
102
- const e = String(t.hours).padStart(2, "0"), i = String(t.minutes).padStart(2, "0");
103
- return `${e}:${i}`;
104
- }
105
- /**
106
- * Returns the right format for the `valueAsDate` property:
107
- * sets the start date at 01.01.1970, then adds the typed hours/minutes.
108
- */
109
- _formatValueAsDate(t) {
110
- return !t || !this._isTimeValid(t) ? null : new Date((/* @__PURE__ */ new Date(0)).setHours(t.hours, t.minutes, 0, 0));
111
- }
112
- /** Checks if values of hours and minutes are possible, to avoid non-existent times. */
113
- _isTimeValid(t) {
114
- return t.hours < 24 && t.minutes < 60;
115
- }
116
- /** Validate input against the defined RegExps. */
117
- _parseInput(t) {
118
- const e = t == null ? void 0 : t.trim();
119
- if (!e)
120
- return null;
121
- const i = e.match(y);
122
- if (i)
123
- return { hours: +i[1] || 0, minutes: +i[2] || 0 };
124
- const n = e.match(I);
125
- return n ? { hours: +n[1] || 0, minutes: +n[2] || 0 } : null;
126
- }
127
- /** Only allow typing numbers and separator keys. */
128
- _preventCharInsert(t) {
129
- const e = [
130
- "Backspace",
131
- "Tab",
132
- "Enter",
133
- "ArrowUp",
134
- "ArrowDown",
135
- "ArrowLeft",
136
- "ArrowRight",
137
- "Home",
138
- "End",
139
- "PageUp",
140
- "PageDown",
141
- "Delete"
142
- ];
143
- !t.ctrlKey && !t.altKey && !t.metaKey && !e.includes(t.key) && !V.test(t.key) && t.preventDefault();
144
- }
145
- // We use a programmatic approach to avoid initial setting the message
146
- // and to not immediately change output if language should change (no reason to read out message).
147
- _updateAccessibilityMessage() {
148
- var e;
149
- this._inputElement.hasAttribute("data-sbb-invalid") || (this._statusContainer.innerText = `${C[this._language.current]} ${(e = this._inputElement) == null ? void 0 : e.value}.`);
150
- }
151
- render() {
152
- return _`
74
+ }));
75
+ }
76
+ /** Applies the correct format to values and triggers event dispatch. */
77
+ _updateValueAndEmitChange(t) {
78
+ this._updateValue(t.target.value), this._emitChange(t), this._updateAccessibilityMessage();
79
+ }
80
+ /**
81
+ * Updates `value` and `valueAsDate`. The direct update on the `_inputElement` is required
82
+ * to force the input change when the typed value is the same of the current one.
83
+ */
84
+ _updateValue(t) {
85
+ if (this._statusContainer && (this._statusContainer.innerText = ""), !this._inputElement)
86
+ return;
87
+ const e = this._parseInput(t), a = !!e && this._isTimeValid(e), u = !t || t.trim() === "" || a;
88
+ u && e && (this._inputElement.value = this._formatValue(e));
89
+ const V = !this._inputElement.hasAttribute("data-sbb-invalid");
90
+ this._inputElement.toggleAttribute("data-sbb-invalid", !u), V !== u && this._validationChange.emit({ valid: u });
91
+ }
92
+ /** Emits the change event. */
93
+ _emitChange(t) {
94
+ I(t, this), this._didChange.emit();
95
+ }
96
+ /** Returns the right format for the `value` property. */
97
+ _formatValue(t) {
98
+ const e = String(t.hours).padStart(2, "0"), a = String(t.minutes).padStart(2, "0");
99
+ return `${e}:${a}`;
100
+ }
101
+ /**
102
+ * Returns the right format for the `valueAsDate` property:
103
+ * sets the start date at 01.01.1970, then adds the typed hours/minutes.
104
+ */
105
+ _formatValueAsDate(t) {
106
+ return !t || !this._isTimeValid(t) ? null : new Date((/* @__PURE__ */ new Date(0)).setHours(t.hours, t.minutes, 0, 0));
107
+ }
108
+ /** Checks if values of hours and minutes are possible, to avoid non-existent times. */
109
+ _isTimeValid(t) {
110
+ return t.hours < 24 && t.minutes < 60;
111
+ }
112
+ /** Validate input against the defined RegExps. */
113
+ _parseInput(t) {
114
+ const e = t == null ? void 0 : t.trim();
115
+ if (!e)
116
+ return null;
117
+ const a = e.match(G);
118
+ if (a)
119
+ return { hours: +a[1] || 0, minutes: +a[2] || 0 };
120
+ const u = e.match(P);
121
+ return u ? { hours: +u[1] || 0, minutes: +u[2] || 0 } : null;
122
+ }
123
+ /** Only allow typing numbers and separator keys. */
124
+ _preventCharInsert(t) {
125
+ const e = [
126
+ "Backspace",
127
+ "Tab",
128
+ "Enter",
129
+ "ArrowUp",
130
+ "ArrowDown",
131
+ "ArrowLeft",
132
+ "ArrowRight",
133
+ "Home",
134
+ "End",
135
+ "PageUp",
136
+ "PageDown",
137
+ "Delete"
138
+ ];
139
+ !t.ctrlKey && !t.altKey && !t.metaKey && !e.includes(t.key) && !z.test(t.key) && t.preventDefault();
140
+ }
141
+ // We use a programmatic approach to avoid initial setting the message
142
+ // and to not immediately change output if language should change (no reason to read out message).
143
+ _updateAccessibilityMessage() {
144
+ var e;
145
+ this._inputElement.hasAttribute("data-sbb-invalid") || (this._statusContainer.innerText = `${$[this._language.current]} ${(e = this._inputElement) == null ? void 0 : e.value}.`);
146
+ }
147
+ render() {
148
+ return T`
153
149
  <p
154
150
  role="status"
155
- ${g((t) => this._statusContainer = t)}
151
+ ${H((t) => this._statusContainer = t)}
156
152
  ></p>
157
153
  `;
158
- }
159
- };
160
- r.styles = w;
161
- r.events = {
162
- didChange: "didChange",
163
- validationChange: "validationChange"
164
- };
165
- u([
166
- d()
167
- ], r.prototype, "input", 1);
168
- u([
169
- c()
170
- ], r.prototype, "_inputElement", 2);
171
- r = u([
172
- E("sbb-time-input")
173
- ], r);
154
+ }
155
+ }, o = new WeakMap(), r = l, (() => {
156
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
157
+ E = [x()], b = [O()], _(l, null, E, { kind: "setter", name: "input", static: !1, private: !1, access: { has: (e) => "input" in e, set: (e, a) => {
158
+ e.input = a;
159
+ } }, metadata: t }, null, d), _(l, null, b, { kind: "accessor", name: "_inputElement", static: !1, private: !1, access: { has: (e) => "_inputElement" in e, get: (e) => e._inputElement, set: (e, a) => {
160
+ e._inputElement = a;
161
+ } }, metadata: t }, g, f), _(null, n = { value: r }, i, { kind: "class", name: r.name, metadata: t }, null, s), h = r = n.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
162
+ })(), l.styles = M, l.events = {
163
+ didChange: "didChange",
164
+ validationChange: "validationChange"
165
+ }, m(r, s), l);
166
+ return h = r;
167
+ })();
174
168
  export {
175
- r as SbbTimeInputElement
169
+ Q as SbbTimeInputElement
176
170
  };
@@ -7,9 +7,9 @@ declare const SbbTimetableOccupancyElement_base: import('../core/mixins.js').Abs
7
7
  export declare class SbbTimetableOccupancyElement extends SbbTimetableOccupancyElement_base {
8
8
  static styles: CSSResultGroup;
9
9
  /** Occupancy for first class wagons. */
10
- firstClassOccupancy?: SbbOccupancy;
10
+ accessor firstClassOccupancy: SbbOccupancy | null;
11
11
  /** Occupancy for second class wagons. */
12
- secondClassOccupancy?: SbbOccupancy;
12
+ accessor secondClassOccupancy: SbbOccupancy | null;
13
13
  private _language;
14
14
  protected render(): TemplateResult;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"timetable-occupancy.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy/timetable-occupancy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAK1D,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;;AAExC;;GAEG;AACH,qBACa,4BAA6B,SAAQ,iCAA4B;IAC5E,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,wCAAwC;IACiB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IAE5F,yCAAyC;IACiB,oBAAoB,CAAC,EAAE,YAAY,CAAC;IAE9F,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;CAkC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,4BAA4B,CAAC;KACzD;CACF"}
1
+ {"version":3,"file":"timetable-occupancy.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy/timetable-occupancy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAK1D,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;;AAExC;;GAEG;AACH,qBAEM,4BAA6B,SAAQ,iCAA4B;IACrE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,wCAAwC;IACxC,SACgB,mBAAmB,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEhE,yCAAyC;IACzC,SACgB,oBAAoB,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEjE,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;CAkC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,4BAA4B,CAAC;KACzD;CACF"}
@@ -8,7 +8,7 @@ declare const SbbTimetableOccupancyIconElement_base: import('../core/mixins.js')
8
8
  export declare class SbbTimetableOccupancyIconElement extends SbbTimetableOccupancyIconElement_base {
9
9
  static styles: CSSResultGroup;
10
10
  /** Wagon occupancy. */
11
- occupancy: SbbOccupancy;
11
+ accessor occupancy: SbbOccupancy;
12
12
  private _abort;
13
13
  private _language;
14
14
  private _setNameAndAriaLabel;
@@ -1 +1 @@
1
- {"version":3,"file":"timetable-occupancy-icon.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy-icon/timetable-occupancy-icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAM1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;;AAIzC;;GAEG;AACH,qBACa,gCAAiC,SAAQ,qCAA6B;IACjF,OAAuB,MAAM,EAAE,cAAc,CAA+B;IAE5E,uBAAuB;IACJ,SAAS,EAAG,YAAY,CAAC;IAE5C,OAAO,CAAC,MAAM,CAAyC;IACvD,OAAO,CAAC,SAAS,CAA2E;YAE9E,oBAAoB;cAeT,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKvF,OAAO,CAAC,aAAa;IAOL,iBAAiB,IAAI,IAAI;cAUtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAO7E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,8BAA8B,EAAE,gCAAgC,CAAC;KAClE;CACF"}
1
+ {"version":3,"file":"timetable-occupancy-icon.d.ts","sourceRoot":"","sources":["../../../src/elements/timetable-occupancy-icon/timetable-occupancy-icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAM1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;;AAIzC;;GAEG;AACH,qBAEM,gCAAiC,SAAQ,qCAA6B;IAC1E,OAAuB,MAAM,EAAE,cAAc,CAA+B;IAE5E,uBAAuB;IACvB,SAA4B,SAAS,EAAE,YAAY,CAAU;IAE7D,OAAO,CAAC,MAAM,CAAyC;IACvD,OAAO,CAAC,SAAS,CAA2E;YAE9E,oBAAoB;cAeT,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKvF,OAAO,CAAC,aAAa;IAOL,iBAAiB,IAAI,IAAI;cAUtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;CAO7E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,8BAA8B,EAAE,gCAAgC,CAAC;KAClE;CACF"}
@@ -1,51 +1,63 @@
1
- import { property as b, customElement as h } from "lit/decorators.js";
2
- import { SbbConnectedAbortController as m, SbbLanguageController as p } from "./core/controllers.js";
3
- import { setOrRemoveAttribute as u } from "./core/dom.js";
4
- import { i18nOccupancy as f } from "./core/i18n.js";
5
- import { SbbNegativeMixin as v } from "./core/mixins.js";
6
- import { SbbIconBase as n } from "./icon.js";
7
- import { css as d } from "lit";
8
- const g = d`@media (forced-colors: active) and (prefers-color-scheme: light){:host svg{filter:invert(1)}}`;
9
- var _ = Object.defineProperty, y = Object.getOwnPropertyDescriptor, l = (e, t, c, i) => {
10
- for (var a = i > 1 ? void 0 : i ? y(t, c) : t, s = e.length - 1, o; s >= 0; s--)
11
- (o = e[s]) && (a = (i ? o(t, c, a) : o(a)) || a);
12
- return i && a && _(t, c, a), a;
1
+ var p = (e) => {
2
+ throw TypeError(e);
13
3
  };
14
- let r = class extends v(n) {
15
- constructor() {
16
- super(...arguments), this._abort = new m(this), this._language = new p(this).withHandler(() => this._setAriaLabel());
17
- }
18
- async _setNameAndAriaLabel() {
19
- var t;
20
- if (!this.occupancy)
21
- return;
22
- let e = `utilization-${this.occupancy}`;
23
- (t = globalThis.window) != null && t.matchMedia("(forced-colors: active)").matches ? e += "-high-contrast" : this.negative && (e += "-negative"), await this.loadSvgIcon(e);
24
- }
25
- async fetchSvgIcon(e, t) {
26
- return this._setAriaLabel(), super.fetchSvgIcon(e, t);
27
- }
28
- _setAriaLabel() {
29
- var t;
30
- const e = (t = f[this.occupancy]) == null ? void 0 : t[this._language.current];
31
- u(this, "aria-label", e);
32
- }
33
- connectedCallback() {
34
- super.connectedCallback(), window.matchMedia("(forced-colors: active)").addEventListener("change", () => this._setNameAndAriaLabel(), {
35
- signal: this._abort.signal
36
- }), this._setNameAndAriaLabel();
37
- }
38
- willUpdate(e) {
39
- super.willUpdate(e), (e.has("occupancy") || e.has("negative")) && this._setNameAndAriaLabel();
40
- }
41
- };
42
- r.styles = [n.styles, g];
43
- l([
44
- b()
45
- ], r.prototype, "occupancy", 2);
46
- r = l([
47
- h("sbb-timetable-occupancy-icon")
48
- ], r);
4
+ var d = (e, a, c) => a.has(e) || p("Cannot " + c);
5
+ var y = (e, a, c) => (d(e, a, "read from private field"), c ? c.call(e) : a.get(e)), _ = (e, a, c) => a.has(e) ? p("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, c), r = (e, a, c, i) => (d(e, a, "write to private field"), i ? i.call(e, c) : a.set(e, c), c);
6
+ import { __runInitializers as l, __esDecorate as f } from "tslib";
7
+ import { customElement as A, property as S } from "lit/decorators.js";
8
+ import { SbbConnectedAbortController as w, SbbLanguageController as L } from "./core/controllers.js";
9
+ import { setOrRemoveAttribute as I } from "./core/dom.js";
10
+ import { i18nOccupancy as x } from "./core/i18n.js";
11
+ import { SbbNegativeMixin as z } from "./core/mixins.js";
12
+ import { SbbIconBase as g } from "./icon.js";
13
+ import { css as C } from "lit";
14
+ const N = C`@media (forced-colors: active) and (prefers-color-scheme: light){:host svg{filter:invert(1)}}`;
15
+ let R = (() => {
16
+ var o, n;
17
+ let e = [A("sbb-timetable-occupancy-icon")], a, c = [], i, u = z(g), m, h = [], b = [];
18
+ return n = class extends u {
19
+ constructor() {
20
+ super(...arguments);
21
+ _(this, o);
22
+ r(this, o, l(this, h, "none")), this._abort = (l(this, b), new w(this)), this._language = new L(this).withHandler(() => this._setAriaLabel());
23
+ }
24
+ /** Wagon occupancy. */
25
+ get occupancy() {
26
+ return y(this, o);
27
+ }
28
+ set occupancy(t) {
29
+ r(this, o, t);
30
+ }
31
+ async _setNameAndAriaLabel() {
32
+ var s;
33
+ if (!this.occupancy)
34
+ return;
35
+ let t = `utilization-${this.occupancy}`;
36
+ (s = globalThis.window) != null && s.matchMedia("(forced-colors: active)").matches ? t += "-high-contrast" : this.negative && (t += "-negative"), await this.loadSvgIcon(t);
37
+ }
38
+ async fetchSvgIcon(t, s) {
39
+ return this._setAriaLabel(), super.fetchSvgIcon(t, s);
40
+ }
41
+ _setAriaLabel() {
42
+ var s;
43
+ const t = (s = x[this.occupancy]) == null ? void 0 : s[this._language.current];
44
+ I(this, "aria-label", t);
45
+ }
46
+ connectedCallback() {
47
+ super.connectedCallback(), window.matchMedia("(forced-colors: active)").addEventListener("change", () => this._setNameAndAriaLabel(), {
48
+ signal: this._abort.signal
49
+ }), this._setNameAndAriaLabel();
50
+ }
51
+ willUpdate(t) {
52
+ super.willUpdate(t), (t.has("occupancy") || t.has("negative")) && this._setNameAndAriaLabel();
53
+ }
54
+ }, o = new WeakMap(), i = n, (() => {
55
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
56
+ m = [S()], f(n, null, m, { kind: "accessor", name: "occupancy", static: !1, private: !1, access: { has: (s) => "occupancy" in s, get: (s) => s.occupancy, set: (s, v) => {
57
+ s.occupancy = v;
58
+ } }, metadata: t }, h, b), f(null, a = { value: i }, e, { kind: "class", name: i.name, metadata: t }, null, c), i = a.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
59
+ })(), n.styles = [g.styles, N], l(i, c), i;
60
+ })();
49
61
  export {
50
- r as SbbTimetableOccupancyIconElement
62
+ R as SbbTimetableOccupancyIconElement
51
63
  };
@@ -1,58 +1,75 @@
1
- import { css as p, LitElement as m, html as r, nothing as y } from "lit";
2
- import { property as b, customElement as u } from "lit/decorators.js";
3
- import { SbbLanguageController as f } from "./core/controllers.js";
4
- import { i18nClass as h } from "./core/i18n.js";
5
- import { SbbNegativeMixin as g } from "./core/mixins.js";
1
+ var x = (s) => {
2
+ throw TypeError(s);
3
+ };
4
+ var z = (s, t, a) => t.has(s) || x("Cannot " + a);
5
+ var u = (s, t, a) => (z(s, t, "read from private field"), a ? a.call(s) : t.get(s)), m = (s, t, a) => t.has(s) ? x("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, a), o = (s, t, a, i) => (z(s, t, "write to private field"), i ? i.call(s, a) : t.set(s, a), a);
6
+ import { __runInitializers as b, __esDecorate as y } from "tslib";
7
+ import { css as S, LitElement as $, html as h, nothing as k } from "lit";
8
+ import { customElement as E, property as w } from "lit/decorators.js";
9
+ import { SbbLanguageController as I } from "./core/controllers.js";
10
+ import { i18nClass as D } from "./core/i18n.js";
11
+ import { SbbNegativeMixin as j } from "./core/mixins.js";
6
12
  import "./screen-reader-only.js";
7
13
  import "./timetable-occupancy-icon.js";
8
- const v = p`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-timetable-occupancy-color: var(--sbb-color-charcoal);--sbb-icon-svg-width: .890625rem;--sbb-icon-svg-height: v0.75rem}@media (min-width: 52.5rem){:host{--sbb-icon-svg-width: 1.1875rem;--sbb-icon-svg-height: v1rem}}:host([negative]){--sbb-timetable-occupancy-color: var(--sbb-color-white)}.sbb-timetable-occupancy__list{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-2x)}.sbb-timetable-occupancy__list-item{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-1x)}.sbb-timetable-occupancy__list-item-class{--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);line-height:1;color:var(--sbb-timetable-occupancy-color)}.sbb-timetable-occupancy__list-item-icon{display:flex}`;
9
- var d = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, l = (e, t, a, i) => {
10
- for (var s = i > 1 ? void 0 : i ? _(t, a) : t, n = e.length - 1, o; n >= 0; n--)
11
- (o = e[n]) && (s = (i ? o(t, a, s) : o(s)) || s);
12
- return i && s && d(t, a, s), s;
13
- };
14
- let c = class extends g(m) {
15
- constructor() {
16
- super(...arguments), this._language = new f(this);
17
- }
18
- render() {
19
- return r` ${(this.firstClassOccupancy || this.secondClassOccupancy) && r`
14
+ const L = S`*,:before,:after{box-sizing:border-box}:host{display:inline-block;--sbb-timetable-occupancy-color: var(--sbb-color-charcoal);--sbb-icon-svg-width: .890625rem;--sbb-icon-svg-height: v0.75rem}@media (min-width: 52.5rem){:host{--sbb-icon-svg-width: 1.1875rem;--sbb-icon-svg-height: v1rem}}:host([negative]){--sbb-timetable-occupancy-color: var(--sbb-color-white)}.sbb-timetable-occupancy__list{list-style:none;margin:0;padding:0;font-size:inherit;display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-2x)}.sbb-timetable-occupancy__list-item{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sbb-spacing-fixed-1x)}.sbb-timetable-occupancy__list-item-class{--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);line-height:1;color:var(--sbb-timetable-occupancy-color)}.sbb-timetable-occupancy__list-item-icon{display:flex}`;
15
+ let J = (() => {
16
+ var l, r, n;
17
+ let s = [E("sbb-timetable-occupancy")], t, a = [], i, f = j($), d, _ = [], g = [], O, C = [], v = [];
18
+ return n = class extends f {
19
+ constructor() {
20
+ super(...arguments);
21
+ m(this, l);
22
+ m(this, r);
23
+ o(this, l, b(this, _, null)), o(this, r, (b(this, g), b(this, C, null))), this._language = (b(this, v), new I(this));
24
+ }
25
+ /** Occupancy for first class wagons. */
26
+ get firstClassOccupancy() {
27
+ return u(this, l);
28
+ }
29
+ set firstClassOccupancy(c) {
30
+ o(this, l, c);
31
+ }
32
+ /** Occupancy for second class wagons. */
33
+ get secondClassOccupancy() {
34
+ return u(this, r);
35
+ }
36
+ set secondClassOccupancy(c) {
37
+ o(this, r, c);
38
+ }
39
+ render() {
40
+ return h` ${(this.firstClassOccupancy || this.secondClassOccupancy) && h`
20
41
  <ul
21
42
  class="sbb-timetable-occupancy__list"
22
- role=${!this.firstClassOccupancy || !this.secondClassOccupancy ? "presentation" : y}
43
+ role=${!this.firstClassOccupancy || !this.secondClassOccupancy ? "presentation" : k}
23
44
  >
24
- ${[this.firstClassOccupancy, this.secondClassOccupancy].map(
25
- (e, t) => e && r`
45
+ ${[this.firstClassOccupancy, this.secondClassOccupancy].map((c, e) => c && h`
26
46
  <li class="sbb-timetable-occupancy__list-item">
27
47
  <span class="sbb-timetable-occupancy__list-item-class" aria-hidden="true">
28
- ${this.firstClassOccupancy && t === 0 ? "1" : "2"}.
48
+ ${this.firstClassOccupancy && e === 0 ? "1" : "2"}.
29
49
  </span>
30
50
  <sbb-screen-reader-only>
31
- ${`${h[this.firstClassOccupancy && t === 0 ? "first" : "second"][this._language.current]}.`}
51
+ ${`${D[this.firstClassOccupancy && e === 0 ? "first" : "second"][this._language.current]}.`}
32
52
  </sbb-screen-reader-only>
33
53
  <sbb-timetable-occupancy-icon
34
54
  class="sbb-timetable-occupancy__list-item-icon"
35
55
  ?negative=${this.negative}
36
- .occupancy=${e}
56
+ .occupancy=${c}
37
57
  >
38
58
  </sbb-timetable-occupancy-icon>
39
59
  </li>
40
- `
41
- )}
60
+ `)}
42
61
  </ul>
43
62
  `}`;
44
- }
45
- };
46
- c.styles = v;
47
- l([
48
- b({ attribute: "first-class-occupancy" })
49
- ], c.prototype, "firstClassOccupancy", 2);
50
- l([
51
- b({ attribute: "second-class-occupancy" })
52
- ], c.prototype, "secondClassOccupancy", 2);
53
- c = l([
54
- u("sbb-timetable-occupancy")
55
- ], c);
63
+ }
64
+ }, l = new WeakMap(), r = new WeakMap(), i = n, (() => {
65
+ const c = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
66
+ d = [w({ attribute: "first-class-occupancy" })], O = [w({ attribute: "second-class-occupancy" })], y(n, null, d, { kind: "accessor", name: "firstClassOccupancy", static: !1, private: !1, access: { has: (e) => "firstClassOccupancy" in e, get: (e) => e.firstClassOccupancy, set: (e, p) => {
67
+ e.firstClassOccupancy = p;
68
+ } }, metadata: c }, _, g), y(n, null, O, { kind: "accessor", name: "secondClassOccupancy", static: !1, private: !1, access: { has: (e) => "secondClassOccupancy" in e, get: (e) => e.secondClassOccupancy, set: (e, p) => {
69
+ e.secondClassOccupancy = p;
70
+ } }, metadata: c }, C, v), y(null, t = { value: i }, s, { kind: "class", name: i.name, metadata: c }, null, a), i = t.value, c && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: c });
71
+ })(), n.styles = L, b(i, a), i;
72
+ })();
56
73
  export {
57
- c as SbbTimetableOccupancyElement
74
+ J as SbbTimetableOccupancyElement
58
75
  };