@sbb-esta/lyne-elements 2.11.2 → 3.0.0-next.1

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 (956) hide show
  1. package/_index.scss +1 -1
  2. package/accordion/accordion.component.js +22 -19
  3. package/action-group/action-group.component.d.ts.map +1 -1
  4. package/action-group/action-group.component.js +5 -3
  5. package/alert/alert/alert.component.d.ts +2 -7
  6. package/alert/alert/alert.component.d.ts.map +1 -1
  7. package/alert/alert/alert.component.js +57 -68
  8. package/alert/alert-group/alert-group.component.js +3 -2
  9. package/autocomplete/autocomplete-base-element.d.ts +26 -17
  10. package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  11. package/autocomplete/autocomplete-base-element.js +120 -81
  12. package/autocomplete/autocomplete.component.d.ts +3 -2
  13. package/autocomplete/autocomplete.component.d.ts.map +1 -1
  14. package/autocomplete/autocomplete.component.js +31 -29
  15. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +3 -2
  16. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  17. package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +46 -41
  18. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -0
  19. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  20. package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +10 -10
  21. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +4 -1
  22. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
  23. package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +11 -13
  24. package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -17
  25. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +4 -6
  26. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  27. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +22 -23
  28. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +4 -1
  29. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
  30. package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +10 -12
  31. package/autocomplete.js +4 -5
  32. package/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
  33. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  34. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  35. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +29 -28
  36. package/button/accent-button/accent-button.component.d.ts +1 -0
  37. package/button/accent-button/accent-button.component.d.ts.map +1 -1
  38. package/button/button/button.component.d.ts +1 -0
  39. package/button/button/button.component.d.ts.map +1 -1
  40. package/button/common/button-common.d.ts +4 -6
  41. package/button/common/button-common.d.ts.map +1 -1
  42. package/button/mini-button/mini-button.component.d.ts +1 -0
  43. package/button/mini-button/mini-button.component.d.ts.map +1 -1
  44. package/button/mini-button/mini-button.component.js +1 -1
  45. package/button/mini-button-group/mini-button-group.component.js +2 -1
  46. package/button/secondary-button/secondary-button.component.d.ts +1 -0
  47. package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  48. package/button/transparent-button/transparent-button.component.d.ts +1 -0
  49. package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  50. package/calendar/calendar.component.d.ts +16 -14
  51. package/calendar/calendar.component.d.ts.map +1 -1
  52. package/calendar/calendar.component.js +144 -127
  53. package/card/card/card.component.js +12 -12
  54. package/card/card-badge/card-badge.component.d.ts +4 -1
  55. package/card/card-badge/card-badge.component.d.ts.map +1 -1
  56. package/card/card-badge/card-badge.component.js +18 -21
  57. package/card/card-button/card-button.component.d.ts +1 -0
  58. package/card/card-button/card-button.component.d.ts.map +1 -1
  59. package/card/common/card-action-common.d.ts.map +1 -1
  60. package/card/common/card-action-common.js +21 -22
  61. package/checkbox/checkbox/checkbox.component.d.ts +4 -1
  62. package/checkbox/checkbox/checkbox.component.d.ts.map +1 -1
  63. package/checkbox/checkbox/checkbox.component.js +48 -35
  64. package/checkbox/checkbox-group/checkbox-group.component.js +52 -39
  65. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +4 -1
  66. package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  67. package/checkbox/checkbox-panel/checkbox-panel.component.js +46 -33
  68. package/checkbox/common/checkbox-common.d.ts +4 -2
  69. package/checkbox/common/checkbox-common.d.ts.map +1 -1
  70. package/checkbox/common/checkbox-common.js +15 -13
  71. package/chip/chip/chip.component.d.ts +5 -6
  72. package/chip/chip/chip.component.d.ts.map +1 -1
  73. package/chip/chip/chip.component.js +37 -50
  74. package/chip/chip-group/chip-group.component.d.ts +22 -10
  75. package/chip/chip-group/chip-group.component.d.ts.map +1 -1
  76. package/chip/chip-group/chip-group.component.js +134 -108
  77. package/clock/clock.component.d.ts +1 -1
  78. package/clock/clock.component.d.ts.map +1 -1
  79. package/clock/clock.component.js +61 -51
  80. package/container/container/container.component.js +29 -28
  81. package/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
  82. package/container/sticky-bar/sticky-bar.component.js +21 -23
  83. package/core/a11y/focus-trap-controller.js +14 -11
  84. package/core/a11y/focus.d.ts +0 -32
  85. package/core/a11y/focus.d.ts.map +1 -1
  86. package/core/a11y/focus.js +3 -63
  87. package/core/a11y/input-modality-detector.d.ts +0 -5
  88. package/core/a11y/input-modality-detector.d.ts.map +1 -1
  89. package/core/a11y/input-modality-detector.js +17 -27
  90. package/core/a11y/interactivity-checker.d.ts +0 -11
  91. package/core/a11y/interactivity-checker.d.ts.map +1 -1
  92. package/core/a11y/interactivity-checker.js +10 -11
  93. package/core/a11y/live-announcer.d.ts +62 -0
  94. package/core/a11y/live-announcer.d.ts.map +1 -0
  95. package/core/a11y/live-announcer.js +47 -0
  96. package/core/a11y.d.ts +1 -0
  97. package/core/a11y.d.ts.map +1 -1
  98. package/core/a11y.js +19 -21
  99. package/core/base-elements/action-base-element.d.ts +3 -1
  100. package/core/base-elements/action-base-element.d.ts.map +1 -1
  101. package/core/base-elements/action-base-element.js +12 -11
  102. package/core/base-elements/button-base-element.d.ts +25 -18
  103. package/core/base-elements/button-base-element.d.ts.map +1 -1
  104. package/core/base-elements/button-base-element.js +103 -66
  105. package/core/base-elements/link-base-element.js +6 -3
  106. package/core/base-elements/open-close-base-element.d.ts +3 -1
  107. package/core/base-elements/open-close-base-element.d.ts.map +1 -1
  108. package/core/base-elements/open-close-base-element.js +3 -2
  109. package/core/base-elements.js +9 -8
  110. package/core/controllers/escapable-overlay-controller.js +12 -10
  111. package/core/controllers/id-reference-controller.js +14 -13
  112. package/core/controllers/inert-controller.d.ts.map +1 -1
  113. package/core/controllers/inert-controller.js +10 -8
  114. package/core/controllers/slot-state-controller.js +26 -16
  115. package/core/controllers.d.ts +0 -1
  116. package/core/controllers.d.ts.map +1 -1
  117. package/core/controllers.js +17 -19
  118. package/core/datetime/date-adapter.d.ts +2 -2
  119. package/core/datetime/date-adapter.d.ts.map +1 -1
  120. package/core/datetime/date-adapter.js +22 -22
  121. package/core/datetime/native-date-adapter.d.ts +2 -3
  122. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  123. package/core/datetime/native-date-adapter.js +71 -75
  124. package/core/decorators/force-type.js +5 -4
  125. package/core/decorators/id-reference.d.ts +11 -0
  126. package/core/decorators/id-reference.d.ts.map +1 -0
  127. package/core/decorators/id-reference.js +79 -0
  128. package/core/decorators/plain-date.d.ts +23 -0
  129. package/core/decorators/plain-date.d.ts.map +1 -0
  130. package/core/decorators/plain-date.js +29 -0
  131. package/core/decorators.d.ts +2 -2
  132. package/core/decorators.d.ts.map +1 -1
  133. package/core/decorators.js +17 -16
  134. package/core/dom/breakpoint.js +8 -8
  135. package/core/dom.d.ts +0 -2
  136. package/core/dom.d.ts.map +1 -1
  137. package/core/dom.js +22 -26
  138. package/core/eventing/event-emitter.js +5 -4
  139. package/core/eventing/forward-event.d.ts +0 -6
  140. package/core/eventing/forward-event.d.ts.map +1 -1
  141. package/core/eventing/forward-event.js +4 -6
  142. package/core/eventing.js +12 -13
  143. package/core/i18n/i18n.d.ts +4 -1
  144. package/core/i18n/i18n.d.ts.map +1 -1
  145. package/core/i18n/i18n.js +106 -88
  146. package/core/i18n.js +42 -39
  147. package/core/interfaces/types.d.ts +0 -1
  148. package/core/interfaces/types.d.ts.map +1 -1
  149. package/core/mixins/animation-complete-mixin.d.ts +1 -1
  150. package/core/mixins/animation-complete-mixin.d.ts.map +1 -1
  151. package/core/mixins/disabled-mixin.d.ts +2 -2
  152. package/core/mixins/disabled-mixin.d.ts.map +1 -1
  153. package/core/mixins/element-internals-mixin.d.ts +15 -0
  154. package/core/mixins/element-internals-mixin.d.ts.map +1 -0
  155. package/core/mixins/element-internals-mixin.js +41 -0
  156. package/core/mixins/form-associated-checkbox-mixin.d.ts +7 -13
  157. package/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  158. package/core/mixins/form-associated-checkbox-mixin.js +41 -32
  159. package/core/mixins/form-associated-input-mixin.d.ts +15 -9
  160. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  161. package/core/mixins/form-associated-input-mixin.js +89 -67
  162. package/core/mixins/form-associated-mixin.d.ts +8 -7
  163. package/core/mixins/form-associated-mixin.d.ts.map +1 -1
  164. package/core/mixins/form-associated-mixin.js +54 -44
  165. package/core/mixins/form-associated-radio-button-mixin.d.ts +6 -14
  166. package/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  167. package/core/mixins/form-associated-radio-button-mixin.js +36 -25
  168. package/core/mixins/hydration-mixin.js +13 -12
  169. package/core/mixins/named-slot-list-mixin.js +37 -32
  170. package/core/mixins/panel-mixin.js +27 -26
  171. package/core/mixins/readonly-mixin.d.ts +10 -0
  172. package/core/mixins/readonly-mixin.d.ts.map +1 -0
  173. package/core/mixins/readonly-mixin.js +30 -0
  174. package/core/mixins/required-mixin.d.ts +2 -2
  175. package/core/mixins/required-mixin.d.ts.map +1 -1
  176. package/core/mixins.d.ts +2 -0
  177. package/core/mixins.d.ts.map +1 -1
  178. package/core/mixins.js +25 -21
  179. package/core/overlay/position.js +23 -23
  180. package/core/styles/core/mediaqueries.scss +1 -1
  181. package/core/styles/core.scss +65 -42
  182. package/core/styles/mixins/font-face.scss +6 -18
  183. package/core/styles/mixins/link.scss +3 -7
  184. package/core/styles/mixins/lists.scss +0 -63
  185. package/core/styles/mixins/overlay.scss +7 -1
  186. package/core/styles/mixins/table.scss +24 -8
  187. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +530 -0
  188. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +1123 -0
  189. package/core/styles/table.scss +0 -4
  190. package/core/testing/event-spy.js +4 -2
  191. package/core/testing/wait-for-image-ready.js +9 -8
  192. package/core/testing/wait-for-render.js +9 -8
  193. package/core/testing.d.ts +0 -1
  194. package/core/testing.d.ts.map +1 -1
  195. package/core/testing.js +8 -10
  196. package/core.css +41 -18
  197. package/custom-elements.json +19267 -12207
  198. package/date-input/date-input.component.d.ts +12 -14
  199. package/date-input/date-input.component.d.ts.map +1 -1
  200. package/date-input/date-input.component.js +56 -58
  201. package/datepicker/common/datepicker-association-controllers.d.ts.map +1 -1
  202. package/datepicker/common/datepicker-association-controllers.js +28 -25
  203. package/datepicker/common/datepicker-button.d.ts +0 -12
  204. package/datepicker/common/datepicker-button.d.ts.map +1 -1
  205. package/datepicker/common/datepicker-button.js +43 -53
  206. package/datepicker/datepicker/datepicker.component.d.ts +3 -20
  207. package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  208. package/datepicker/datepicker/datepicker.component.js +97 -94
  209. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -0
  210. package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  211. package/datepicker/datepicker-next-day/datepicker-next-day.component.js +12 -12
  212. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -0
  213. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  214. package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +13 -13
  215. package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +0 -8
  216. package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
  217. package/datepicker/datepicker-toggle/datepicker-toggle.component.js +75 -82
  218. package/datepicker/datepicker.js +2 -4
  219. package/datepicker.js +10 -12
  220. package/development/accordion/accordion.component.js +7 -4
  221. package/development/action-group/action-group.component.d.ts.map +1 -1
  222. package/development/action-group/action-group.component.js +5 -3
  223. package/development/alert/alert/alert.component.d.ts +2 -7
  224. package/development/alert/alert/alert.component.d.ts.map +1 -1
  225. package/development/alert/alert/alert.component.js +10 -27
  226. package/development/alert/alert-group/alert-group.component.js +3 -2
  227. package/development/autocomplete/autocomplete-base-element.d.ts +26 -17
  228. package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
  229. package/development/autocomplete/autocomplete-base-element.js +96 -55
  230. package/development/autocomplete/autocomplete.component.d.ts +3 -2
  231. package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
  232. package/development/autocomplete/autocomplete.component.js +15 -14
  233. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +3 -2
  234. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
  235. package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +20 -16
  236. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -0
  237. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
  238. package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +5 -5
  239. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts +4 -1
  240. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.d.ts.map +1 -1
  241. package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +5 -7
  242. package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +7 -4
  243. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +4 -6
  244. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
  245. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +26 -22
  246. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts +4 -1
  247. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.d.ts.map +1 -1
  248. package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +6 -8
  249. package/development/autocomplete.js +2 -3
  250. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
  251. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  252. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  253. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +13 -12
  254. package/development/button/accent-button/accent-button.component.d.ts +1 -0
  255. package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
  256. package/development/button/accent-button/accent-button.component.js +1 -1
  257. package/development/button/accent-button-link/accent-button-link.component.js +1 -1
  258. package/development/button/accent-button-static/accent-button-static.component.js +1 -1
  259. package/development/button/button/button.component.d.ts +1 -0
  260. package/development/button/button/button.component.d.ts.map +1 -1
  261. package/development/button/button/button.component.js +1 -1
  262. package/development/button/button-link/button-link.component.js +1 -1
  263. package/development/button/button-static/button-static.component.js +1 -1
  264. package/development/button/common/button-common.d.ts +4 -6
  265. package/development/button/common/button-common.d.ts.map +1 -1
  266. package/development/button/common/button-common.js +1 -1
  267. package/development/button/mini-button/mini-button.component.d.ts +1 -0
  268. package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
  269. package/development/button/mini-button/mini-button.component.js +1 -1
  270. package/development/button/mini-button-group/mini-button-group.component.js +3 -2
  271. package/development/button/secondary-button/secondary-button.component.d.ts +1 -0
  272. package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
  273. package/development/button/secondary-button/secondary-button.component.js +1 -1
  274. package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
  275. package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
  276. package/development/button/transparent-button/transparent-button.component.d.ts +1 -0
  277. package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
  278. package/development/button/transparent-button/transparent-button.component.js +1 -1
  279. package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
  280. package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
  281. package/development/calendar/calendar.component.d.ts +16 -14
  282. package/development/calendar/calendar.component.d.ts.map +1 -1
  283. package/development/calendar/calendar.component.js +65 -40
  284. package/development/card/card/card.component.js +1 -1
  285. package/development/card/card-badge/card-badge.component.d.ts +4 -1
  286. package/development/card/card-badge/card-badge.component.d.ts.map +1 -1
  287. package/development/card/card-badge/card-badge.component.js +6 -8
  288. package/development/card/card-button/card-button.component.d.ts +1 -0
  289. package/development/card/card-button/card-button.component.d.ts.map +1 -1
  290. package/development/card/card-button/card-button.component.js +1 -1
  291. package/development/card/card-link/card-link.component.js +1 -1
  292. package/development/card/common/card-action-common.d.ts.map +1 -1
  293. package/development/card/common/card-action-common.js +10 -17
  294. package/development/checkbox/checkbox/checkbox.component.d.ts +4 -1
  295. package/development/checkbox/checkbox/checkbox.component.d.ts.map +1 -1
  296. package/development/checkbox/checkbox/checkbox.component.js +23 -5
  297. package/development/checkbox/checkbox-group/checkbox-group.component.js +21 -8
  298. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +4 -1
  299. package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
  300. package/development/checkbox/checkbox-panel/checkbox-panel.component.js +24 -5
  301. package/development/checkbox/common/checkbox-common.d.ts +4 -2
  302. package/development/checkbox/common/checkbox-common.d.ts.map +1 -1
  303. package/development/checkbox/common/checkbox-common.js +5 -3
  304. package/development/chip/chip/chip.component.d.ts +5 -6
  305. package/development/chip/chip/chip.component.d.ts.map +1 -1
  306. package/development/chip/chip/chip.component.js +12 -31
  307. package/development/chip/chip-group/chip-group.component.d.ts +22 -10
  308. package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
  309. package/development/chip/chip-group/chip-group.component.js +76 -40
  310. package/development/chip-label/chip-label.component.js +1 -1
  311. package/development/clock/clock.component.d.ts +1 -1
  312. package/development/clock/clock.component.d.ts.map +1 -1
  313. package/development/clock/clock.component.js +35 -25
  314. package/development/container/container/container.component.js +3 -2
  315. package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
  316. package/development/container/sticky-bar/sticky-bar.component.js +5 -6
  317. package/development/core/a11y/arrow-navigation.js +1 -1
  318. package/development/core/a11y/fake-event-detection.js +1 -1
  319. package/development/core/a11y/focus-trap-controller.js +9 -6
  320. package/development/core/a11y/focus-visible-within-controller.js +1 -1
  321. package/development/core/a11y/focus.d.ts +0 -32
  322. package/development/core/a11y/focus.d.ts.map +1 -1
  323. package/development/core/a11y/focus.js +2 -80
  324. package/development/core/a11y/input-modality-detector.d.ts +0 -5
  325. package/development/core/a11y/input-modality-detector.d.ts.map +1 -1
  326. package/development/core/a11y/input-modality-detector.js +4 -19
  327. package/development/core/a11y/interactivity-checker.d.ts +0 -11
  328. package/development/core/a11y/interactivity-checker.d.ts.map +1 -1
  329. package/development/core/a11y/interactivity-checker.js +2 -3
  330. package/development/core/a11y/live-announcer.d.ts +62 -0
  331. package/development/core/a11y/live-announcer.d.ts.map +1 -0
  332. package/development/core/a11y/live-announcer.js +87 -0
  333. package/development/core/a11y.d.ts +1 -0
  334. package/development/core/a11y.d.ts.map +1 -1
  335. package/development/core/a11y.js +7 -9
  336. package/development/core/base-elements/action-base-element.d.ts +3 -1
  337. package/development/core/base-elements/action-base-element.d.ts.map +1 -1
  338. package/development/core/base-elements/action-base-element.js +5 -3
  339. package/development/core/base-elements/button-base-element.d.ts +25 -18
  340. package/development/core/base-elements/button-base-element.d.ts.map +1 -1
  341. package/development/core/base-elements/button-base-element.js +109 -66
  342. package/development/core/base-elements/link-base-element.js +7 -4
  343. package/development/core/base-elements/open-close-base-element.d.ts +3 -1
  344. package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
  345. package/development/core/base-elements/open-close-base-element.js +4 -3
  346. package/development/core/base-elements.js +2 -1
  347. package/development/core/config/config.js +1 -1
  348. package/development/core/controllers/escapable-overlay-controller.js +5 -3
  349. package/development/core/controllers/id-reference-controller.js +3 -2
  350. package/development/core/controllers/inert-controller.d.ts.map +1 -1
  351. package/development/core/controllers/inert-controller.js +6 -4
  352. package/development/core/controllers/language-controller.js +1 -1
  353. package/development/core/controllers/media-matchers-controller.js +1 -1
  354. package/development/core/controllers/slot-state-controller.js +18 -8
  355. package/development/core/controllers.d.ts +0 -1
  356. package/development/core/controllers.d.ts.map +1 -1
  357. package/development/core/controllers.js +1 -3
  358. package/development/core/datetime/date-adapter.d.ts +2 -2
  359. package/development/core/datetime/date-adapter.d.ts.map +1 -1
  360. package/development/core/datetime/date-adapter.js +6 -6
  361. package/development/core/datetime/native-date-adapter.d.ts +2 -3
  362. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  363. package/development/core/datetime/native-date-adapter.js +3 -7
  364. package/development/core/decorators/force-type.js +4 -3
  365. package/development/core/decorators/get-override.js +1 -1
  366. package/development/core/decorators/handle-distinct-change.js +1 -1
  367. package/development/core/decorators/host-attributes.js +1 -1
  368. package/development/core/decorators/id-reference.d.ts +11 -0
  369. package/development/core/decorators/id-reference.d.ts.map +1 -0
  370. package/development/core/decorators/id-reference.js +123 -0
  371. package/development/core/decorators/plain-date.d.ts +23 -0
  372. package/development/core/decorators/plain-date.d.ts.map +1 -0
  373. package/development/core/decorators/plain-date.js +37 -0
  374. package/development/core/decorators/slot-state.js +1 -1
  375. package/development/core/decorators.d.ts +2 -2
  376. package/development/core/decorators.d.ts.map +1 -1
  377. package/development/core/decorators.js +5 -4
  378. package/development/core/dom/animation.js +1 -1
  379. package/development/core/dom/breakpoint.js +2 -2
  380. package/development/core/dom/host-context.js +1 -1
  381. package/development/core/dom/platform.js +1 -1
  382. package/development/core/dom/scroll.js +1 -1
  383. package/development/core/dom/set-or-remove-attribute.js +1 -1
  384. package/development/core/dom.d.ts +0 -2
  385. package/development/core/dom.d.ts.map +1 -1
  386. package/development/core/dom.js +1 -5
  387. package/development/core/eventing/composed-path-has-attribute.js +1 -1
  388. package/development/core/eventing/event-emitter.js +3 -2
  389. package/development/core/eventing/form-element-handlers.js +1 -1
  390. package/development/core/eventing/forward-event.d.ts +0 -6
  391. package/development/core/eventing/forward-event.d.ts.map +1 -1
  392. package/development/core/eventing/forward-event.js +2 -4
  393. package/development/core/eventing/throttle.js +1 -1
  394. package/development/core/eventing.js +1 -2
  395. package/development/core/i18n/i18n.d.ts +4 -1
  396. package/development/core/i18n/i18n.d.ts.map +1 -1
  397. package/development/core/i18n/i18n.js +43 -22
  398. package/development/core/i18n.js +4 -1
  399. package/development/core/interfaces/types.d.ts +0 -1
  400. package/development/core/interfaces/types.d.ts.map +1 -1
  401. package/development/core/mixins/animation-complete-mixin.d.ts +1 -1
  402. package/development/core/mixins/animation-complete-mixin.d.ts.map +1 -1
  403. package/development/core/mixins/animation-complete-mixin.js +1 -1
  404. package/development/core/mixins/disabled-mixin.d.ts +2 -2
  405. package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
  406. package/development/core/mixins/disabled-mixin.js +1 -1
  407. package/development/core/mixins/element-internals-mixin.d.ts +15 -0
  408. package/development/core/mixins/element-internals-mixin.d.ts.map +1 -0
  409. package/development/core/mixins/element-internals-mixin.js +59 -0
  410. package/development/core/mixins/form-associated-checkbox-mixin.d.ts +7 -13
  411. package/development/core/mixins/form-associated-checkbox-mixin.d.ts.map +1 -1
  412. package/development/core/mixins/form-associated-checkbox-mixin.js +16 -11
  413. package/development/core/mixins/form-associated-input-mixin.d.ts +15 -9
  414. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  415. package/development/core/mixins/form-associated-input-mixin.js +58 -33
  416. package/development/core/mixins/form-associated-mixin.d.ts +8 -7
  417. package/development/core/mixins/form-associated-mixin.d.ts.map +1 -1
  418. package/development/core/mixins/form-associated-mixin.js +37 -21
  419. package/development/core/mixins/form-associated-radio-button-mixin.d.ts +6 -14
  420. package/development/core/mixins/form-associated-radio-button-mixin.d.ts.map +1 -1
  421. package/development/core/mixins/form-associated-radio-button-mixin.js +28 -14
  422. package/development/core/mixins/hydration-mixin.js +4 -3
  423. package/development/core/mixins/named-slot-list-mixin.js +7 -4
  424. package/development/core/mixins/negative-mixin.js +1 -1
  425. package/development/core/mixins/panel-mixin.js +3 -2
  426. package/development/core/mixins/readonly-mixin.d.ts +10 -0
  427. package/development/core/mixins/readonly-mixin.d.ts.map +1 -0
  428. package/development/core/mixins/readonly-mixin.js +40 -0
  429. package/development/core/mixins/required-mixin.d.ts +2 -2
  430. package/development/core/mixins/required-mixin.d.ts.map +1 -1
  431. package/development/core/mixins/required-mixin.js +1 -1
  432. package/development/core/mixins/update-scheduler-mixin.js +1 -1
  433. package/development/core/mixins.d.ts +2 -0
  434. package/development/core/mixins.d.ts.map +1 -1
  435. package/development/core/mixins.js +5 -1
  436. package/development/core/overlay/overlay-option-panel.js +1 -1
  437. package/development/core/overlay/overlay-trigger-attributes.js +1 -1
  438. package/development/core/overlay/overlay.js +1 -1
  439. package/development/core/overlay/position.js +5 -5
  440. package/development/core/testing/event-spy.js +5 -3
  441. package/development/core/testing/mocha-extensions.js +1 -1
  442. package/development/core/testing/wait-for-condition.js +1 -1
  443. package/development/core/testing/wait-for-image-ready.js +3 -2
  444. package/development/core/testing/wait-for-render.js +3 -2
  445. package/development/core/testing.d.ts +0 -1
  446. package/development/core/testing.d.ts.map +1 -1
  447. package/development/core/testing.js +1 -3
  448. package/development/date-input/date-input.component.d.ts +12 -14
  449. package/development/date-input/date-input.component.d.ts.map +1 -1
  450. package/development/date-input/date-input.component.js +22 -25
  451. package/development/datepicker/common/datepicker-association-controllers.d.ts.map +1 -1
  452. package/development/datepicker/common/datepicker-association-controllers.js +11 -8
  453. package/development/datepicker/common/datepicker-button.d.ts +0 -12
  454. package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
  455. package/development/datepicker/common/datepicker-button.js +11 -29
  456. package/development/datepicker/datepicker/datepicker.component.d.ts +3 -20
  457. package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
  458. package/development/datepicker/datepicker/datepicker.component.js +56 -52
  459. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -0
  460. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
  461. package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +7 -6
  462. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -0
  463. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
  464. package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +7 -6
  465. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +0 -8
  466. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
  467. package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +20 -33
  468. package/development/datepicker/datepicker.js +2 -4
  469. package/development/datepicker.js +2 -4
  470. package/development/dialog/dialog/dialog.component.js +27 -16
  471. package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
  472. package/development/dialog/dialog-content/dialog-content.component.js +1 -1
  473. package/development/dialog/dialog-title/dialog-title.component.js +1 -1
  474. package/development/divider/divider.component.d.ts +2 -1
  475. package/development/divider/divider.component.d.ts.map +1 -1
  476. package/development/divider/divider.component.js +5 -8
  477. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +13 -9
  478. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +5 -1
  479. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
  480. package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +9 -8
  481. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +2 -0
  482. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
  483. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +10 -8
  484. package/development/file-selector/common/file-selector-common.d.ts +6 -5
  485. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  486. package/development/file-selector/common/file-selector-common.js +6 -5
  487. package/development/file-selector/file-selector/file-selector.component.d.ts +1 -0
  488. package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  489. package/development/file-selector/file-selector/file-selector.component.js +1 -1
  490. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -0
  491. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  492. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  493. package/development/flip-card/flip-card/flip-card.component.js +13 -7
  494. package/development/flip-card/flip-card-details/flip-card-details.component.d.ts +1 -0
  495. package/development/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
  496. package/development/flip-card/flip-card-details/flip-card-details.component.js +8 -6
  497. package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -0
  498. package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
  499. package/development/flip-card/flip-card-summary/flip-card-summary.component.js +8 -6
  500. package/development/footer/footer.component.js +2 -2
  501. package/development/form-error/form-error.component.js +4 -3
  502. package/development/form-field/form-field/form-field.component.d.ts +9 -10
  503. package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
  504. package/development/form-field/form-field/form-field.component.js +183 -183
  505. package/development/form-field/form-field-clear/form-field-clear.component.d.ts +1 -0
  506. package/development/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  507. package/development/form-field/form-field-clear/form-field-clear.component.js +8 -8
  508. package/development/header/common/header-action-common.d.ts +3 -3
  509. package/development/header/common/header-action-common.d.ts.map +1 -1
  510. package/development/header/common/header-action-common.js +1 -1
  511. package/development/header/header/header.component.d.ts +6 -3
  512. package/development/header/header/header.component.d.ts.map +1 -1
  513. package/development/header/header/header.component.js +17 -13
  514. package/development/header/header-button/header-button.component.d.ts +1 -0
  515. package/development/header/header-button/header-button.component.d.ts.map +1 -1
  516. package/development/header/header-button/header-button.component.js +1 -1
  517. package/development/header/header-link/header-link.component.js +1 -1
  518. package/development/icon/icon-base.js +1 -1
  519. package/development/icon/icon-name-mixin.js +1 -1
  520. package/development/icon/icon-request.js +3 -2
  521. package/development/icon/icon-validate.js +1 -1
  522. package/development/icon/icon.component.js +1 -1
  523. package/development/image/image.component.d.ts +1 -1
  524. package/development/image/image.component.d.ts.map +1 -1
  525. package/development/image/image.component.js +15 -12
  526. package/development/journey-header/journey-header.component.js +1 -1
  527. package/development/lead-container/lead-container.component.js +1 -1
  528. package/development/link/block-link/block-link.component.js +1 -1
  529. package/development/link/block-link-button/block-link-button.component.d.ts +1 -0
  530. package/development/link/block-link-button/block-link-button.component.d.ts.map +1 -1
  531. package/development/link/block-link-button/block-link-button.component.js +1 -1
  532. package/development/link/block-link-static/block-link-static.component.js +1 -1
  533. package/development/link/common/block-link-common.d.ts +3 -4
  534. package/development/link/common/block-link-common.d.ts.map +1 -1
  535. package/development/link/common/block-link-common.js +4 -4
  536. package/development/link/common/inline-link-common.d.ts +3 -2
  537. package/development/link/common/inline-link-common.d.ts.map +1 -1
  538. package/development/link/common/inline-link-common.js +2 -2
  539. package/development/link/common/link-common.d.ts +4 -2
  540. package/development/link/common/link-common.d.ts.map +1 -1
  541. package/development/link/common/link-common.js +1 -1
  542. package/development/link/common.js +1 -1
  543. package/development/link/link/link.component.js +1 -1
  544. package/development/link/link-button/link-button.component.d.ts +1 -0
  545. package/development/link/link-button/link-button.component.d.ts.map +1 -1
  546. package/development/link/link-button/link-button.component.js +1 -1
  547. package/development/link/link-static/link-static.component.js +1 -1
  548. package/development/{link-common-CJEWffDZ.js → link-common-DPLJx5Uo.js} +2 -2
  549. package/development/link-list/common/link-list-base.js +1 -1
  550. package/development/link-list/link-list/link-list.component.js +1 -1
  551. package/development/link-list/link-list-anchor/link-list-anchor.component.js +2 -2
  552. package/development/link.js +1 -1
  553. package/development/loading-indicator/loading-indicator.component.d.ts +5 -1
  554. package/development/loading-indicator/loading-indicator.component.d.ts.map +1 -1
  555. package/development/loading-indicator/loading-indicator.component.js +9 -8
  556. package/development/loading-indicator-circle/loading-indicator-circle.component.d.ts +5 -1
  557. package/development/loading-indicator-circle/loading-indicator-circle.component.d.ts.map +1 -1
  558. package/development/loading-indicator-circle/loading-indicator-circle.component.js +9 -8
  559. package/development/logo/logo.component.js +1 -1
  560. package/development/map-container/map-container.component.js +3 -2
  561. package/development/menu/common/menu-action-common.d.ts +4 -8
  562. package/development/menu/common/menu-action-common.d.ts.map +1 -1
  563. package/development/menu/common/menu-action-common.js +5 -63
  564. package/development/menu/menu/menu.component.d.ts +3 -3
  565. package/development/menu/menu/menu.component.d.ts.map +1 -1
  566. package/development/menu/menu/menu.component.js +34 -28
  567. package/development/menu/menu-button/menu-button.component.d.ts +1 -0
  568. package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
  569. package/development/menu/menu-button/menu-button.component.js +1 -1
  570. package/development/menu/menu-link/menu-link.component.js +1 -1
  571. package/development/message/message.component.js +1 -1
  572. package/development/navigation/common/navigation-action-common.js +5 -3
  573. package/development/navigation/navigation/navigation.component.d.ts +4 -3
  574. package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
  575. package/development/navigation/navigation/navigation.component.js +45 -32
  576. package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -0
  577. package/development/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
  578. package/development/navigation/navigation-button/navigation-button.component.js +1 -1
  579. package/development/navigation/navigation-link/navigation-link.component.js +1 -1
  580. package/development/navigation/navigation-list/navigation-list.component.js +1 -1
  581. package/development/navigation/navigation-marker/navigation-marker.component.js +6 -4
  582. package/development/navigation/navigation-section/navigation-section.component.d.ts +3 -3
  583. package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
  584. package/development/navigation/navigation-section/navigation-section.component.js +41 -33
  585. package/development/notification/notification.component.d.ts +4 -7
  586. package/development/notification/notification.component.d.ts.map +1 -1
  587. package/development/notification/notification.component.js +35 -50
  588. package/development/option/optgroup/optgroup-base-element.d.ts +2 -1
  589. package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  590. package/development/option/optgroup/optgroup-base-element.js +21 -40
  591. package/development/option/optgroup/optgroup.component.js +10 -6
  592. package/development/option/option/option-base-element.d.ts +6 -12
  593. package/development/option/option/option-base-element.d.ts.map +1 -1
  594. package/development/option/option/option-base-element.js +28 -23
  595. package/development/option/option/option.component.d.ts +5 -2
  596. package/development/option/option/option.component.d.ts.map +1 -1
  597. package/development/option/option/option.component.js +33 -27
  598. package/development/overlay/overlay-base-element.d.ts +1 -8
  599. package/development/overlay/overlay-base-element.d.ts.map +1 -1
  600. package/development/overlay/overlay-base-element.js +10 -28
  601. package/development/overlay/overlay.component.js +9 -7
  602. package/development/paginator/common/paginator-common.d.ts +3 -7
  603. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  604. package/development/paginator/common/paginator-common.js +9 -27
  605. package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
  606. package/development/paginator/paginator/paginator.component.js +3 -2
  607. package/development/popover/popover/popover.component.d.ts +3 -3
  608. package/development/popover/popover/popover.component.d.ts.map +1 -1
  609. package/development/popover/popover/popover.component.js +26 -21
  610. package/development/popover/popover-trigger/popover-trigger.component.d.ts +1 -0
  611. package/development/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
  612. package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
  613. package/development/radio-button/common/radio-button-common.d.ts +4 -2
  614. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  615. package/development/radio-button/common/radio-button-common.js +10 -6
  616. package/development/radio-button/radio-button/radio-button.component.d.ts +6 -2
  617. package/development/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
  618. package/development/radio-button/radio-button/radio-button.component.js +25 -5
  619. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +8 -6
  620. package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  621. package/development/radio-button/radio-button-group/radio-button-group.component.js +31 -18
  622. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -2
  623. package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  624. package/development/radio-button/radio-button-panel/radio-button-panel.component.js +28 -6
  625. package/development/screen-reader-only/screen-reader-only.component.js +1 -1
  626. package/development/select/select.component.d.ts +14 -12
  627. package/development/select/select.component.d.ts.map +1 -1
  628. package/development/select/select.component.js +156 -90
  629. package/development/selection-expansion-panel/selection-expansion-panel.component.js +11 -7
  630. package/development/sidebar/icon-sidebar/icon-sidebar.component.d.ts +4 -2
  631. package/development/sidebar/icon-sidebar/icon-sidebar.component.d.ts.map +1 -1
  632. package/development/sidebar/icon-sidebar/icon-sidebar.component.js +5 -6
  633. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -0
  634. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
  635. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
  636. package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +7 -4
  637. package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
  638. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
  639. package/development/sidebar/sidebar/sidebar.component.js +16 -9
  640. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +2 -0
  641. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  642. package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +6 -3
  643. package/development/sidebar/sidebar-container/sidebar-container.component.js +13 -9
  644. package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  645. package/development/sidebar/sidebar-title/sidebar-title.component.d.ts +1 -0
  646. package/development/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
  647. package/development/sidebar/sidebar-title/sidebar-title.component.js +7 -4
  648. package/development/signet/signet.component.js +1 -1
  649. package/development/skiplink-list/skiplink-list.component.js +1 -1
  650. package/development/slider/slider.component.d.ts +6 -15
  651. package/development/slider/slider.component.d.ts.map +1 -1
  652. package/development/slider/slider.component.js +40 -87
  653. package/development/status/status.component.js +1 -1
  654. package/development/stepper/step/step.component.d.ts +4 -1
  655. package/development/stepper/step/step.component.d.ts.map +1 -1
  656. package/development/stepper/step/step.component.js +12 -12
  657. package/development/stepper/step-label/step-label.component.d.ts +2 -0
  658. package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
  659. package/development/stepper/step-label/step-label.component.js +8 -10
  660. package/development/stepper/stepper/stepper.component.d.ts +1 -1
  661. package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
  662. package/development/stepper/stepper/stepper.component.js +37 -23
  663. package/development/table/table-wrapper/table-wrapper.component.d.ts +2 -1
  664. package/development/table/table-wrapper/table-wrapper.component.d.ts.map +1 -1
  665. package/development/table/table-wrapper/table-wrapper.component.js +10 -7
  666. package/development/tabs/tab/tab.component.d.ts +4 -1
  667. package/development/tabs/tab/tab.component.d.ts.map +1 -1
  668. package/development/tabs/tab/tab.component.js +4 -3
  669. package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
  670. package/development/tabs/tab-group/tab-group.component.js +39 -26
  671. package/development/tabs/tab-label/tab-label.component.d.ts +2 -1
  672. package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -1
  673. package/development/tabs/tab-label/tab-label.component.js +4 -4
  674. package/development/tag/tag/tag.component.d.ts +7 -3
  675. package/development/tag/tag/tag.component.d.ts.map +1 -1
  676. package/development/tag/tag/tag.component.js +37 -12
  677. package/development/tag/tag-group/tag-group.component.d.ts +7 -5
  678. package/development/tag/tag-group/tag-group.component.d.ts.map +1 -1
  679. package/development/tag/tag-group/tag-group.component.js +40 -24
  680. package/development/teaser/teaser.component.js +1 -1
  681. package/development/teaser-hero/teaser-hero.component.js +1 -1
  682. package/development/teaser-product/common/teaser-product-common.d.ts +4 -2
  683. package/development/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  684. package/development/teaser-product/common/teaser-product-common.js +1 -1
  685. package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
  686. package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
  687. package/development/time-input/time-input.component.d.ts +29 -42
  688. package/development/time-input/time-input.component.d.ts.map +1 -1
  689. package/development/time-input/time-input.component.js +158 -201
  690. package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
  691. package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +3 -2
  692. package/development/title/title-base.d.ts +4 -1
  693. package/development/title/title-base.d.ts.map +1 -1
  694. package/development/title/title-base.js +9 -17
  695. package/development/title/title.component.js +1 -1
  696. package/development/toast/toast.component.d.ts +3 -4
  697. package/development/toast/toast.component.d.ts.map +1 -1
  698. package/development/toast/toast.component.js +59 -76
  699. package/development/toggle/toggle/toggle.component.d.ts +13 -9
  700. package/development/toggle/toggle/toggle.component.d.ts.map +1 -1
  701. package/development/toggle/toggle/toggle.component.js +59 -53
  702. package/development/toggle/toggle-option/toggle-option.component.d.ts +5 -3
  703. package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
  704. package/development/toggle/toggle-option/toggle-option.component.js +23 -18
  705. package/development/toggle-check/toggle-check.component.d.ts +5 -2
  706. package/development/toggle-check/toggle-check.component.d.ts.map +1 -1
  707. package/development/toggle-check/toggle-check.component.js +19 -4
  708. package/development/train/train/train.component.js +1 -1
  709. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  710. package/development/train/train-formation/train-formation.component.js +7 -5
  711. package/development/train/train-wagon/train-wagon.component.js +1 -1
  712. package/development/visual-checkbox/visual-checkbox.component.js +1 -1
  713. package/dialog/dialog/dialog.component.js +70 -59
  714. package/divider/divider.component.d.ts +2 -1
  715. package/divider/divider.component.d.ts.map +1 -1
  716. package/divider/divider.component.js +26 -29
  717. package/expansion-panel/expansion-panel/expansion-panel.component.js +9 -5
  718. package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +5 -1
  719. package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
  720. package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +14 -14
  721. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +2 -0
  722. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
  723. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +33 -32
  724. package/file-selector/common/file-selector-common.d.ts +6 -5
  725. package/file-selector/common/file-selector-common.d.ts.map +1 -1
  726. package/file-selector/common/file-selector-common.js +37 -36
  727. package/file-selector/file-selector/file-selector.component.d.ts +1 -0
  728. package/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
  729. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -0
  730. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  731. package/flip-card/flip-card/flip-card.component.js +54 -48
  732. package/flip-card/flip-card-details/flip-card-details.component.d.ts +1 -0
  733. package/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
  734. package/flip-card/flip-card-details/flip-card-details.component.js +19 -18
  735. package/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -0
  736. package/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
  737. package/flip-card/flip-card-summary/flip-card-summary.component.js +24 -23
  738. package/font-characters-extension.css +3 -3
  739. package/footer/footer.component.js +1 -1
  740. package/form-error/form-error.component.js +14 -13
  741. package/form-field/form-field/form-field.component.d.ts +9 -10
  742. package/form-field/form-field/form-field.component.d.ts.map +1 -1
  743. package/form-field/form-field/form-field.component.js +171 -175
  744. package/form-field/form-field-clear/form-field-clear.component.d.ts +1 -0
  745. package/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
  746. package/form-field/form-field-clear/form-field-clear.component.js +19 -20
  747. package/header/common/header-action-common.d.ts +3 -3
  748. package/header/common/header-action-common.d.ts.map +1 -1
  749. package/header/header/header.component.d.ts +6 -3
  750. package/header/header/header.component.d.ts.map +1 -1
  751. package/header/header/header.component.js +52 -47
  752. package/header/header-button/header-button.component.d.ts +1 -0
  753. package/header/header-button/header-button.component.d.ts.map +1 -1
  754. package/icon/icon-request.js +11 -10
  755. package/icon-sidebar-button-common-DG8bnrBu.js +7 -0
  756. package/image/image.component.d.ts +1 -1
  757. package/image/image.component.d.ts.map +1 -1
  758. package/image/image.component.js +10 -6
  759. package/link/block-link-button/block-link-button.component.d.ts +1 -0
  760. package/link/block-link-button/block-link-button.component.d.ts.map +1 -1
  761. package/link/common/block-link-common.d.ts +3 -4
  762. package/link/common/block-link-common.d.ts.map +1 -1
  763. package/link/common/block-link-common.js +6 -6
  764. package/link/common/inline-link-common.d.ts +3 -2
  765. package/link/common/inline-link-common.d.ts.map +1 -1
  766. package/link/common/inline-link-common.js +1 -1
  767. package/link/common/link-common.d.ts +4 -2
  768. package/link/common/link-common.d.ts.map +1 -1
  769. package/link/common/link-common.js +1 -1
  770. package/link/common.js +1 -1
  771. package/link/link-button/link-button.component.d.ts +1 -0
  772. package/link/link-button/link-button.component.d.ts.map +1 -1
  773. package/{link-common-DZrQ-32d.js → link-common-BBKGg9HN.js} +1 -1
  774. package/link-list/link-list-anchor/link-list-anchor.component.js +4 -4
  775. package/link.js +1 -1
  776. package/loading-indicator/loading-indicator.component.d.ts +5 -1
  777. package/loading-indicator/loading-indicator.component.d.ts.map +1 -1
  778. package/loading-indicator/loading-indicator.component.js +9 -9
  779. package/loading-indicator-circle/loading-indicator-circle.component.d.ts +5 -1
  780. package/loading-indicator-circle/loading-indicator-circle.component.d.ts.map +1 -1
  781. package/loading-indicator-circle/loading-indicator-circle.component.js +14 -14
  782. package/map-container/map-container.component.js +2 -1
  783. package/menu/common/menu-action-common.d.ts +4 -8
  784. package/menu/common/menu-action-common.d.ts.map +1 -1
  785. package/menu/common/menu-action-common.js +16 -41
  786. package/menu/menu/menu.component.d.ts +3 -3
  787. package/menu/menu/menu.component.d.ts.map +1 -1
  788. package/menu/menu/menu.component.js +76 -70
  789. package/menu/menu-button/menu-button.component.d.ts +1 -0
  790. package/menu/menu-button/menu-button.component.d.ts.map +1 -1
  791. package/navigation/common/navigation-action-common.js +21 -19
  792. package/navigation/navigation/navigation.component.d.ts +4 -3
  793. package/navigation/navigation/navigation.component.d.ts.map +1 -1
  794. package/navigation/navigation/navigation.component.js +94 -78
  795. package/navigation/navigation-button/navigation-button.component.d.ts +1 -0
  796. package/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
  797. package/navigation/navigation-marker/navigation-marker.component.js +28 -26
  798. package/navigation/navigation-section/navigation-section.component.d.ts +3 -3
  799. package/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
  800. package/navigation/navigation-section/navigation-section.component.js +84 -76
  801. package/notification/notification.component.d.ts +4 -7
  802. package/notification/notification.component.d.ts.map +1 -1
  803. package/notification/notification.component.js +67 -75
  804. package/option/optgroup/optgroup-base-element.d.ts +2 -1
  805. package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
  806. package/option/optgroup/optgroup-base-element.js +40 -38
  807. package/option/optgroup/optgroup.component.js +20 -16
  808. package/option/option/option-base-element.d.ts +6 -12
  809. package/option/option/option-base-element.d.ts.map +1 -1
  810. package/option/option/option-base-element.js +58 -64
  811. package/option/option/option.component.d.ts +5 -2
  812. package/option/option/option.component.d.ts.map +1 -1
  813. package/option/option/option.component.js +30 -30
  814. package/overlay/overlay-base-element.d.ts +1 -8
  815. package/overlay/overlay-base-element.d.ts.map +1 -1
  816. package/overlay/overlay-base-element.js +39 -48
  817. package/overlay/overlay.component.js +40 -38
  818. package/package.json +1 -1
  819. package/paginator/common/paginator-common.d.ts +3 -7
  820. package/paginator/common/paginator-common.d.ts.map +1 -1
  821. package/paginator/common/paginator-common.js +43 -55
  822. package/paginator/paginator/paginator.component.js +4 -3
  823. package/popover/popover/popover.component.d.ts +3 -3
  824. package/popover/popover/popover.component.d.ts.map +1 -1
  825. package/popover/popover/popover.component.js +78 -68
  826. package/popover/popover-trigger/popover-trigger.component.d.ts +1 -0
  827. package/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
  828. package/popover/popover-trigger/popover-trigger.component.js +1 -1
  829. package/radio-button/common/radio-button-common.d.ts +4 -2
  830. package/radio-button/common/radio-button-common.d.ts.map +1 -1
  831. package/radio-button/common/radio-button-common.js +15 -11
  832. package/radio-button/radio-button/radio-button.component.d.ts +6 -2
  833. package/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
  834. package/radio-button/radio-button/radio-button.component.js +43 -28
  835. package/radio-button/radio-button-group/radio-button-group.component.d.ts +8 -6
  836. package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  837. package/radio-button/radio-button-group/radio-button-group.component.js +55 -41
  838. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +6 -2
  839. package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
  840. package/radio-button/radio-button-panel/radio-button-panel.component.js +54 -38
  841. package/select/select.component.d.ts +14 -12
  842. package/select/select.component.d.ts.map +1 -1
  843. package/select/select.component.js +168 -129
  844. package/selection-expansion-panel/selection-expansion-panel.component.js +39 -35
  845. package/sidebar/common.js +1 -1
  846. package/sidebar/icon-sidebar/icon-sidebar.component.d.ts +4 -2
  847. package/sidebar/icon-sidebar/icon-sidebar.component.d.ts.map +1 -1
  848. package/sidebar/icon-sidebar/icon-sidebar.component.js +19 -20
  849. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -0
  850. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
  851. package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +13 -10
  852. package/sidebar/sidebar/sidebar.component.js +69 -62
  853. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +2 -0
  854. package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
  855. package/sidebar/sidebar-close-button/sidebar-close-button.component.js +11 -9
  856. package/sidebar/sidebar-container/sidebar-container.component.js +33 -29
  857. package/sidebar/sidebar-title/sidebar-title.component.d.ts +1 -0
  858. package/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
  859. package/sidebar/sidebar-title/sidebar-title.component.js +18 -16
  860. package/sidebar.js +1 -1
  861. package/slider/slider.component.d.ts +6 -15
  862. package/slider/slider.component.d.ts.map +1 -1
  863. package/slider/slider.component.js +73 -99
  864. package/standard-theme.css +66 -18
  865. package/stepper/step/step.component.d.ts +4 -1
  866. package/stepper/step/step.component.d.ts.map +1 -1
  867. package/stepper/step/step.component.js +23 -24
  868. package/stepper/step-label/step-label.component.d.ts +2 -0
  869. package/stepper/step-label/step-label.component.d.ts.map +1 -1
  870. package/stepper/step-label/step-label.component.js +14 -18
  871. package/stepper/stepper/stepper.component.d.ts +1 -1
  872. package/stepper/stepper/stepper.component.d.ts.map +1 -1
  873. package/stepper/stepper/stepper.component.js +89 -73
  874. package/table/table-wrapper/table-wrapper.component.d.ts +2 -1
  875. package/table/table-wrapper/table-wrapper.component.d.ts.map +1 -1
  876. package/table/table-wrapper/table-wrapper.component.js +10 -11
  877. package/table.css +25 -0
  878. package/tabs/tab/tab.component.d.ts +4 -1
  879. package/tabs/tab/tab.component.d.ts.map +1 -1
  880. package/tabs/tab/tab.component.js +10 -9
  881. package/tabs/tab-group/tab-group.component.d.ts.map +1 -1
  882. package/tabs/tab-group/tab-group.component.js +93 -78
  883. package/tabs/tab-label/tab-label.component.d.ts +2 -1
  884. package/tabs/tab-label/tab-label.component.d.ts.map +1 -1
  885. package/tabs/tab-label/tab-label.component.js +17 -17
  886. package/tag/tag/tag.component.d.ts +7 -3
  887. package/tag/tag/tag.component.d.ts.map +1 -1
  888. package/tag/tag/tag.component.js +63 -44
  889. package/tag/tag-group/tag-group.component.d.ts +7 -5
  890. package/tag/tag-group/tag-group.component.d.ts.map +1 -1
  891. package/tag/tag-group/tag-group.component.js +72 -59
  892. package/teaser/teaser.component.js +1 -1
  893. package/teaser-product/common/teaser-product-common.d.ts +4 -2
  894. package/teaser-product/common/teaser-product-common.d.ts.map +1 -1
  895. package/teaser-product/common.js +1 -1
  896. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  897. package/teaser-product-common-CpMAlYEp.js +5 -0
  898. package/teaser-product.js +1 -1
  899. package/time-input/time-input.component.d.ts +29 -42
  900. package/time-input/time-input.component.d.ts.map +1 -1
  901. package/time-input/time-input.component.js +100 -139
  902. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +10 -9
  903. package/title/title-base.d.ts +4 -1
  904. package/title/title-base.d.ts.map +1 -1
  905. package/title/title-base.js +27 -28
  906. package/toast/toast.component.d.ts +3 -4
  907. package/toast/toast.component.d.ts.map +1 -1
  908. package/toast/toast.component.js +69 -72
  909. package/toggle/toggle/toggle.component.d.ts +13 -9
  910. package/toggle/toggle/toggle.component.d.ts.map +1 -1
  911. package/toggle/toggle/toggle.component.js +62 -59
  912. package/toggle/toggle-option/toggle-option.component.d.ts +5 -3
  913. package/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
  914. package/toggle/toggle-option/toggle-option.component.js +51 -46
  915. package/toggle-check/toggle-check.component.d.ts +5 -2
  916. package/toggle-check/toggle-check.component.d.ts.map +1 -1
  917. package/toggle-check/toggle-check.component.js +53 -43
  918. package/train/train-formation/train-formation.component.js +43 -41
  919. package/core/controllers/connected-abort-controller.d.ts +0 -14
  920. package/core/controllers/connected-abort-controller.d.ts.map +0 -1
  921. package/core/controllers/connected-abort-controller.js +0 -17
  922. package/core/decorators/date-converter.d.ts +0 -8
  923. package/core/decorators/date-converter.d.ts.map +0 -1
  924. package/core/decorators/date-converter.js +0 -15
  925. package/core/decorators/date-only-type.d.ts +0 -8
  926. package/core/decorators/date-only-type.d.ts.map +0 -1
  927. package/core/decorators/date-only-type.js +0 -9
  928. package/core/dom/find-referenced-element.d.ts +0 -8
  929. package/core/dom/find-referenced-element.d.ts.map +0 -1
  930. package/core/dom/find-referenced-element.js +0 -7
  931. package/core/dom/input-element.d.ts +0 -12
  932. package/core/dom/input-element.d.ts.map +0 -1
  933. package/core/dom/input-element.js +0 -7
  934. package/core/testing/scroll.d.ts +0 -7
  935. package/core/testing/scroll.d.ts.map +0 -1
  936. package/core/testing/scroll.js +0 -6
  937. package/development/core/controllers/connected-abort-controller.d.ts +0 -14
  938. package/development/core/controllers/connected-abort-controller.d.ts.map +0 -1
  939. package/development/core/controllers/connected-abort-controller.js +0 -23
  940. package/development/core/decorators/date-converter.d.ts +0 -8
  941. package/development/core/decorators/date-converter.d.ts.map +0 -1
  942. package/development/core/decorators/date-converter.js +0 -16
  943. package/development/core/decorators/date-only-type.d.ts +0 -8
  944. package/development/core/decorators/date-only-type.d.ts.map +0 -1
  945. package/development/core/decorators/date-only-type.js +0 -10
  946. package/development/core/dom/find-referenced-element.d.ts +0 -8
  947. package/development/core/dom/find-referenced-element.d.ts.map +0 -1
  948. package/development/core/dom/find-referenced-element.js +0 -15
  949. package/development/core/dom/input-element.d.ts +0 -12
  950. package/development/core/dom/input-element.d.ts.map +0 -1
  951. package/development/core/dom/input-element.js +0 -12
  952. package/development/core/testing/scroll.d.ts +0 -7
  953. package/development/core/testing/scroll.d.ts.map +0 -1
  954. package/development/core/testing/scroll.js +0 -8
  955. package/icon-sidebar-button-common-CM-ueEhH.js +0 -7
  956. package/teaser-product-common-C8oSkIxy.js +0 -5
@@ -1,118 +1,134 @@
1
- var C = (s) => {
2
- throw TypeError(s);
1
+ var T = (a) => {
2
+ throw TypeError(a);
3
3
  };
4
- var w = (s, r, n) => r.has(s) || C("Cannot " + n);
5
- var x = (s, r, n) => (w(s, r, "read from private field"), n ? n.call(s) : r.get(s)), k = (s, r, n) => r.has(s) ? C("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, n), m = (s, r, n, a) => (w(s, r, "write to private field"), a ? a.call(s, n) : r.set(s, n), n);
6
- import { __esDecorate as d, __runInitializers as c } from "tslib";
7
- import { css as D, LitElement as F, isServer as A, html as K } from "lit";
8
- import { customElement as z, property as S } from "lit/decorators.js";
9
- import { inputAutocompleteEvent as O } from "../../autocomplete.js";
10
- import { isArrowKeyPressed as T, getNextElementIndex as V } from "../../core/a11y.js";
11
- import { SbbLanguageController as q } from "../../core/controllers.js";
12
- import { isLean as L } from "../../core/dom.js";
13
- import { EventEmitter as b } from "../../core/eventing.js";
14
- import { i18nSelectionRequired as M, i18nChipGroupInputDescription as R } from "../../core/i18n.js";
15
- import { SbbRequiredMixin as B, SbbDisabledMixin as G, SbbNegativeMixin as N, SbbFormAssociatedMixin as $ } from "../../core/mixins.js";
16
- import { SbbChipElement as j } from "../chip.js";
17
- const U = D`*,:before,:after{box-sizing:border-box}:host{--sbb-chip-group-input-min-width: 9.375rem;max-width:100%}:host([data-size=s]:not([data-empty])){--sbb-chip-group-margin-block: .375rem .3125rem}@media (min-width: 52.5rem){:host([data-size=s]:not([data-empty])){--sbb-chip-group-margin-block: .3125rem .1875rem}}::slotted(input){flex:1 1 var(--sbb-chip-group-input-min-width)}::slotted(sbb-chip){max-width:100%}.sbb-chip-group{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-1x);align-items:center;margin-block:var(--sbb-chip-group-margin-block)}`;
18
- let ne = (() => {
19
- var h, l;
20
- let s = [z("sbb-chip-group")], r, n = [], a, _ = B(G(N($(F)))), f = [], v, g, E = [], y = [];
21
- var p = (l = class extends _ {
4
+ var W = (a, r, l) => r.has(a) || T("Cannot " + l);
5
+ var y = (a, r, l) => (W(a, r, "read from private field"), l ? l.call(a) : r.get(a)), g = (a, r, l) => r.has(a) ? T("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, l), b = (a, r, l, h) => (W(a, r, "write to private field"), h ? h.call(a, l) : r.set(a, l), l);
6
+ import { __esDecorate as f, __runInitializers as d } from "tslib";
7
+ import { css as q, LitElement as L, isServer as E, html as M } from "lit";
8
+ import { customElement as V, property as C } from "lit/decorators.js";
9
+ import { isArrowKeyPressed as R, getNextElementIndex as B } from "../../core/a11y.js";
10
+ import { SbbLanguageController as N } from "../../core/controllers.js";
11
+ import { isLean as G } from "../../core/dom.js";
12
+ import { EventEmitter as x } from "../../core/eventing.js";
13
+ import { i18nSelectionRequired as $, i18nChipGroupInputDescription as j } from "../../core/i18n.js";
14
+ import { SbbRequiredMixin as U, SbbDisabledMixin as J, SbbNegativeMixin as H, SbbFormAssociatedMixin as P, SbbElementInternalsMixin as Q } from "../../core/mixins.js";
15
+ import { SbbChipElement as X } from "../chip.js";
16
+ const Y = q`*,:before,:after{box-sizing:border-box}:host{--sbb-chip-group-input-min-width: 9.375rem;max-width:100%}:host([data-size=s]:not([data-empty])){--sbb-chip-group-margin-block: .375rem .3125rem}@media (min-width: 52.5rem){:host([data-size=s]:not([data-empty])){--sbb-chip-group-margin-block: .3125rem .1875rem}}::slotted(input){flex:1 1 var(--sbb-chip-group-input-min-width)}::slotted(sbb-chip){max-width:100%}.sbb-chip-group{width:100%;display:flex;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-1x);align-items:center;margin-block:var(--sbb-chip-group-margin-block)}`;
17
+ let ut = (() => {
18
+ var u, c, o;
19
+ let a = [V("sbb-chip-group")], r, l = [], h, w = U(J(H(P(Q(L))))), S = [], k, A, I = [], D = [], O, z = [], K = [];
20
+ var m = (o = class extends w {
22
21
  constructor() {
22
+ var t, e;
23
23
  super();
24
- k(this, h);
25
- m(this, h, (c(this, f), c(this, E, ["Enter"]))), this._change = (c(this, y), new b(this, p.events.change)), this._input = new b(this, p.events.input), this._chipInputTokenEnd = new b(this, p.events.chipInputTokenEnd), this._inputAttributeObserver = A ? null : new MutationObserver(() => this._reactToInputChanges()), this._formFieldAttributeObserver = A ? null : new MutationObserver(() => this._inheritSize()), this._language = new q(this), this.internals.role = "listbox", this.addEventListener?.(j.events.requestDelete, (e) => this._deleteChip(e.target)), this.addEventListener?.("keydown", (e) => this._onChipKeyDown(e));
24
+ g(this, u);
25
+ g(this, c);
26
+ b(this, u, (d(this, S), d(this, I, null))), b(this, c, (d(this, D), d(this, z, ["Enter"]))), this._change = (d(this, K), new x(this, m.events.change)), this._input = new x(this, m.events.input), this._chipInputTokenEnd = new x(this, m.events.chipInputTokenEnd), this._inputAttributeObserver = E ? null : new MutationObserver(() => this._reactToInputChanges()), this._formFieldAttributeObserver = E ? null : new MutationObserver(() => this._inheritSize()), this._language = new N(this), (t = this.addEventListener) == null || t.call(this, X.events.requestDelete, (i) => this._deleteChip(i.target)), (e = this.addEventListener) == null || e.call(this, "keydown", (i) => this._onChipKeyDown(i));
26
27
  }
27
28
  /** Value of the form element. */
28
- set value(e) {
29
- e = e ?? [], super.value = e;
30
- const t = this.value, i = [...t];
31
- for (const u of e)
32
- i.includes(u) && i.splice(i.indexOf(u), 1);
33
- i.forEach((u) => this._chipElements().find((I) => I.value === u)?.remove());
34
- const o = [...e];
35
- for (const u of t)
36
- o.includes(u) && o.splice(o.indexOf(u), 1);
37
- o.forEach((u) => this._createChipElement(u));
29
+ set value(t) {
30
+ t = t ?? [];
31
+ const e = this.value, i = [...e];
32
+ for (const n of t)
33
+ i.includes(n) && i.splice(i.indexOf(n), 1);
34
+ i.forEach((n) => {
35
+ var p;
36
+ return (p = this._chipElements().find((_) => _.value === n)) == null ? void 0 : p.remove();
37
+ });
38
+ const s = [...t];
39
+ for (const n of e)
40
+ s.includes(n) && s.splice(s.indexOf(n), 1);
41
+ s.forEach((n) => this._createChipElement(n));
38
42
  }
39
43
  get value() {
40
- return this._chipElements().map((e) => e.value);
44
+ return this._chipElements().map((t) => t.value);
45
+ }
46
+ /** Function that maps a chip's value to its display value. */
47
+ get displayWith() {
48
+ return y(this, u);
49
+ }
50
+ set displayWith(t) {
51
+ b(this, u, t);
41
52
  }
42
53
  /** The array of keys that will trigger a `chipInputTokenEnd` event. Default `['Enter']` */
43
54
  get separatorKeys() {
44
- return x(this, h);
55
+ return y(this, c);
45
56
  }
46
- set separatorKeys(e) {
47
- m(this, h, e);
57
+ set separatorKeys(t) {
58
+ b(this, c, t);
48
59
  }
49
60
  connectedCallback() {
50
61
  super.connectedCallback(), this._setupComponent();
51
62
  }
52
- willUpdate(e) {
53
- super.willUpdate(e), (e.has("disabled") || e.has("formDisabled") || e.has("negative")) && this._proxyStateToChips();
63
+ willUpdate(t) {
64
+ super.willUpdate(t), (t.has("disabled") || t.has("formDisabled") || t.has("negative")) && this._proxyStateToChips();
54
65
  }
55
66
  /** @internal */
56
67
  formResetCallback() {
57
68
  this.value = null;
58
69
  }
59
70
  /** @internal */
60
- formStateRestoreCallback(e, t) {
61
- if (!e) {
71
+ formStateRestoreCallback(t, e) {
72
+ if (!t) {
62
73
  this.value = null;
63
74
  return;
64
75
  }
65
- this.value = e.map((i) => i[1]);
76
+ this._readFormData(t).then((i) => this.value = i);
66
77
  }
67
- updateFormValue() {
68
- const e = new FormData();
69
- this.value.forEach((t) => e.append(this.name, t)), this.internals.setFormValue(e), this.validate(), this._updateInputDescription();
78
+ async _readFormData(t) {
79
+ return Promise.all(t.getAll(this.name).map(async (e) => e instanceof Blob ? JSON.parse(await e.text()) : e));
70
80
  }
71
- shouldValidate(e) {
72
- return super.shouldValidate(e) || e === "required";
81
+ shouldValidate(t) {
82
+ return super.shouldValidate(t) || t === "required" || t === "value";
73
83
  }
74
84
  validate() {
75
- super.validate(), this.required && this.value.length === 0 ? this.setValidityFlag("valueMissing", M[this._language.current]) : this.removeValidityFlag("valueMissing");
85
+ super.validate(), this.required && this.value.length === 0 ? this.setValidityFlag("valueMissing", $[this._language.current]) : this.removeValidityFlag("valueMissing");
76
86
  }
77
87
  /** Return the list of chip elements **/
78
88
  _chipElements() {
79
- return Array.from(this.querySelectorAll?.("sbb-chip") ?? []);
89
+ var t;
90
+ return Array.from(((t = this.querySelectorAll) == null ? void 0 : t.call(this, "sbb-chip")) ?? []);
80
91
  }
81
92
  /** Return the list of enabled chip elements **/
82
93
  _enabledChipElements() {
83
- return Array.from(this.querySelectorAll?.("sbb-chip:not([disabled])") ?? []);
94
+ var t;
95
+ return Array.from(((t = this.querySelectorAll) == null ? void 0 : t.call(this, "sbb-chip:not([disabled])")) ?? []);
84
96
  }
85
97
  _setupComponent() {
86
- const e = this.querySelector("input");
87
- e && e !== this._inputElement && (this._inputAbortController?.abort(), this._inputAttributeObserver?.disconnect(), this._inputElement = e, this._inputAbortController = new AbortController(), this._inputElement.addEventListener("keydown", (i) => this._onInputKeyDown(i), {
98
+ var i, s, n, p, _;
99
+ const t = this.querySelector("input");
100
+ t && t !== this._inputElement && ((i = this._inputAbortController) == null || i.abort(), (s = this._inputAttributeObserver) == null || s.disconnect(), this._inputElement = t, this._inputAbortController = new AbortController(), this._inputElement.addEventListener("keydown", (v) => this._onInputKeyDown(v), {
88
101
  signal: this._inputAbortController.signal
89
- }), this._inputElement.addEventListener(O, () => this._createChipFromInput("autocomplete"), {
102
+ }), this._inputElement.addEventListener("inputAutocomplete", (v) => {
103
+ var F;
104
+ this._createChipFromInput("autocomplete", (F = v.detail) == null ? void 0 : F.option.value);
105
+ }, {
90
106
  signal: this._inputAbortController.signal
91
- }), this._inputAttributeObserver?.observe(this._inputElement, {
107
+ }), (n = this._inputAttributeObserver) == null || n.observe(this._inputElement, {
92
108
  attributes: !0,
93
109
  attributeFilter: ["readonly", "disabled"]
94
- })), this._inheritSize(), this._formFieldAttributeObserver?.disconnect();
95
- const t = this.closest("sbb-form-field");
96
- t && this._formFieldAttributeObserver?.observe(t, {
110
+ })), this._inheritSize(), (p = this._formFieldAttributeObserver) == null || p.disconnect();
111
+ const e = this.closest("sbb-form-field");
112
+ e && ((_ = this._formFieldAttributeObserver) == null || _.observe(e, {
97
113
  attributes: !0,
98
114
  attributeFilter: ["size"]
99
- }), this.toggleAttribute("data-empty", this.value.length === 0), this._reactToInputChanges(), this.updateFormValue();
115
+ })), this.toggleAttribute("data-empty", this.value.length === 0), this._reactToInputChanges(), this._updateInputDescription(), this.updateFormValue();
100
116
  }
101
117
  /**
102
118
  * Listen for keyboard events on the chip elements
103
119
  **/
104
- _onChipKeyDown(e) {
105
- const t = e.target;
106
- if (t.localName === "sbb-chip") {
107
- if (T(e)) {
108
- const i = this._enabledChipElements(), o = V(e, i.indexOf(t), i.length);
109
- i[o].focus();
120
+ _onChipKeyDown(t) {
121
+ const e = t.target;
122
+ if (e.localName === "sbb-chip") {
123
+ if (R(t)) {
124
+ const i = this._enabledChipElements(), s = B(t, i.indexOf(e), i.length);
125
+ i[s].focus();
110
126
  return;
111
127
  }
112
- switch (e.key) {
128
+ switch (t.key) {
113
129
  case "Backspace":
114
130
  case "Delete":
115
- !t.readonly && !t.disabled && (e.preventDefault(), this._deleteChip(t));
131
+ !e.readOnly && !e.disabled && (t.preventDefault(), this._deleteChip(e));
116
132
  break;
117
133
  }
118
134
  }
@@ -120,96 +136,106 @@ let ne = (() => {
120
136
  /**
121
137
  * Listen for keyboard events on the input
122
138
  **/
123
- _onInputKeyDown(e) {
124
- switch (e.key) {
139
+ _onInputKeyDown(t) {
140
+ switch (t.key) {
125
141
  case "Backspace":
126
142
  case "ArrowLeft":
127
143
  this._inputElement.value || this._focusChip();
128
144
  break;
129
145
  case "Enter":
130
- e.preventDefault();
146
+ t.preventDefault();
131
147
  break;
132
148
  }
133
- this.separatorKeys.includes(e.key) && (e.preventDefault(), this._createChipFromInput("input"));
149
+ this.separatorKeys.includes(t.key) && (t.preventDefault(), this._createChipFromInput("input"));
134
150
  }
135
151
  /**
136
152
  * If the input is not empty, create a chip with its value
137
153
  */
138
- _createChipFromInput(e = "input") {
139
- const t = this._inputElement.value.trim();
140
- if (!t)
154
+ _createChipFromInput(t = "input", e) {
155
+ var n;
156
+ const i = e ?? this._inputElement.value.trim();
157
+ if (!i)
141
158
  return;
142
- const i = {
143
- origin: e,
144
- value: t,
145
- label: void 0,
146
- setValue: (o) => i.value = o,
147
- setLabel: (o) => i.label = o
159
+ const s = {
160
+ origin: t,
161
+ value: i,
162
+ label: (e ? (n = this.displayWith) == null ? void 0 : n.call(this, e) : null) ?? void 0,
163
+ setValue: (p) => s.value = p,
164
+ setLabel: (p) => s.label = p
148
165
  };
149
- this._chipInputTokenEnd.emit(i) && (this._createChipElement(i.value, i.label), this._inputElement.value = "", this._emitInputEvents());
166
+ this._chipInputTokenEnd.emit(s) && (this._createChipElement(s.value, s.label), this._inputElement.value = "", this._emitInputEvents());
150
167
  }
151
- _deleteChip(e) {
152
- const t = this._enabledChipElements();
153
- e.remove(), this._emitInputEvents(), this._focusChip(t.indexOf(e));
168
+ _deleteChip(t) {
169
+ const e = this._enabledChipElements();
170
+ t.remove(), this._emitInputEvents(), this._focusChip(e.indexOf(t));
154
171
  }
155
172
  /**
156
173
  * Focus an enabled chip. If none are present, focus the input
157
174
  * @param index The index of the enabled chip. If null, focus the last one.
158
175
  */
159
- _focusChip(e) {
160
- const t = this._enabledChipElements();
161
- if (e !== void 0 && t[e]) {
162
- t[e].focus();
176
+ _focusChip(t) {
177
+ var i;
178
+ const e = this._enabledChipElements();
179
+ if (t !== void 0 && e[t]) {
180
+ e[t].focus();
163
181
  return;
164
182
  }
165
- if (t.length > 0) {
166
- t[t.length - 1].focus();
183
+ if (e.length > 0) {
184
+ e[e.length - 1].focus();
167
185
  return;
168
186
  }
169
- this._inputElement?.focus();
187
+ (i = this._inputElement) == null || i.focus();
170
188
  }
171
189
  _emitInputEvents() {
172
190
  this._input.emit(), this._change.emit();
173
191
  }
174
- _createChipElement(e, t) {
192
+ _createChipElement(t, e) {
193
+ var s;
194
+ if (E)
195
+ return;
175
196
  const i = document.createElement("sbb-chip");
176
- i.setAttribute("value", e), i.innerText = t ?? "", this.insertBefore(i, this._inputElement ?? this.querySelector("input"));
197
+ i.value = t, i.innerText = e ?? (t ? (s = this.displayWith) == null ? void 0 : s.call(this, t) : null) ?? "", this.insertBefore(i, this._inputElement ?? this.querySelector("input"));
177
198
  }
178
199
  _reactToInputChanges() {
179
- this.disabled = this._inputElement?.disabled ?? !1, this._proxyStateToChips();
200
+ var t;
201
+ this.disabled = ((t = this._inputElement) == null ? void 0 : t.disabled) ?? !1, this._proxyStateToChips();
180
202
  }
181
203
  _proxyStateToChips() {
182
- this._chipElements().forEach((e) => {
183
- e.disabled = this.disabled || this.formDisabled, e.readonly = this._inputElement?.hasAttribute("readonly") ?? !1, e.negative = this.negative;
204
+ this._chipElements().forEach((t) => {
205
+ var e;
206
+ t.disabled = this.disabled || this.formDisabled, t.readOnly = ((e = this._inputElement) == null ? void 0 : e.hasAttribute("readonly")) ?? !1, t.negative = this.negative;
184
207
  });
185
208
  }
186
209
  _inheritSize() {
187
- this.setAttribute("data-size", this.closest("sbb-form-field")?.size ?? (L() ? "s" : "m"));
210
+ var t;
211
+ this.setAttribute("data-size", ((t = this.closest("sbb-form-field")) == null ? void 0 : t.size) ?? (G() ? "s" : "m"));
188
212
  }
189
213
  _updateInputDescription() {
190
- this._inputElement && this._inputElement.setAttribute("aria-description", `${R[this._language.current]} ${this.value.length}`);
214
+ this._inputElement && this._inputElement.setAttribute("aria-description", `${j[this._language.current]} ${this.value.length}`);
191
215
  }
192
216
  render() {
193
- return K`
217
+ return M`
194
218
  <div class="sbb-chip-group">
195
219
  <slot @slotchange=${this._setupComponent}></slot>
196
220
  </div>
197
221
  `;
198
222
  }
199
- }, h = new WeakMap(), a = l, (() => {
200
- const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
201
- v = [S({ type: Array })], g = [S({ attribute: "separator-keys", type: Array })], d(l, null, v, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (t) => "value" in t, set: (t, i) => {
202
- t.value = i;
203
- } }, metadata: e }, null, f), d(l, null, g, { kind: "accessor", name: "separatorKeys", static: !1, private: !1, access: { has: (t) => "separatorKeys" in t, get: (t) => t.separatorKeys, set: (t, i) => {
204
- t.separatorKeys = i;
205
- } }, metadata: e }, E, y), d(null, r = { value: a }, s, { kind: "class", name: a.name, metadata: e }, null, n), p = a = r.value, e && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
206
- })(), l.styles = U, l.events = {
223
+ }, u = new WeakMap(), c = new WeakMap(), h = o, (() => {
224
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(w[Symbol.metadata] ?? null) : void 0;
225
+ k = [C({ type: Array })], A = [C({ attribute: !1 })], O = [C({ attribute: "separator-keys", type: Array })], f(o, null, k, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, set: (e, i) => {
226
+ e.value = i;
227
+ } }, metadata: t }, null, S), f(o, null, A, { kind: "accessor", name: "displayWith", static: !1, private: !1, access: { has: (e) => "displayWith" in e, get: (e) => e.displayWith, set: (e, i) => {
228
+ e.displayWith = i;
229
+ } }, metadata: t }, I, D), f(o, null, O, { kind: "accessor", name: "separatorKeys", static: !1, private: !1, access: { has: (e) => "separatorKeys" in e, get: (e) => e.separatorKeys, set: (e, i) => {
230
+ e.separatorKeys = i;
231
+ } }, metadata: t }, z, K), f(null, r = { value: h }, a, { kind: "class", name: h.name, metadata: t }, null, l), m = h = r.value, t && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
232
+ })(), o.role = "listbox", o.styles = Y, o.events = {
207
233
  input: "input",
208
234
  change: "change",
209
235
  chipInputTokenEnd: "chipInputTokenEnd"
210
- }, c(a, n), l);
211
- return p = a;
236
+ }, d(h, l), o);
237
+ return m = h;
212
238
  })();
213
239
  export {
214
- ne as SbbChipGroupElement
240
+ ut as SbbChipGroupElement
215
241
  };
@@ -33,7 +33,7 @@ export declare class SbbClockElement extends LitElement {
33
33
  private _moveMinutesHandFn;
34
34
  connectedCallback(): void;
35
35
  protected willUpdate(changedProperties: PropertyValues<this>): void;
36
- protected firstUpdated(changedProperties: PropertyValues<this>): Promise<void>;
36
+ protected firstUpdated(changedProperties: PropertyValues<this>): void;
37
37
  disconnectedCallback(): void;
38
38
  private _handlePageVisibilityChange;
39
39
  private _startOrConfigureClock;
@@ -1 +1 @@
1
- {"version":3,"file":"clock.component.d.ts","sourceRoot":"","sources":["../../../src/elements/clock/clock.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAkB,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA8CrD;;GAEG;AACH,qBAEM,eAAgB,SAAQ,UAAU;IACtC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;OAGG;IACH,SAA4B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAQ;IAEvD,0CAA0C;IAC1C,OAAO,CAAC,MAAM,CAAkC;IAEhD,kCAAkC;IAClC,OAAO,CAAC,eAAe,CAAe;IAEtC,oCAAoC;IACpC,OAAO,CAAC,iBAAiB,CAAe;IAExC,oCAAoC;IACpC,OAAO,CAAC,iBAAiB,CAAe;IAExC,wCAAwC;IACxC,OAAO,CAAC,MAAM,CAAU;IAExB,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAU;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAU;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,aAAa,CAAC,CAAiC;IAEvD,OAAO,CAAC,gBAAgB,CAAC,CAAiC;IAE1D,wCAAwC;IACxC,OAAO,CAAC,gBAAgB,CAAqC;IAE7D,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB,CAAuC;IAEjD,iBAAiB,IAAI,IAAI;cAMtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQnD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAS7E,oBAAoB,IAAI,IAAI;IAM5C,OAAO,CAAC,2BAA2B,CAUjC;YAEY,sBAAsB;IAUpC,6FAA6F;YAC/E,WAAW;IAuBzB,sDAAsD;YACxC,UAAU;IAexB;;OAEG;YACW,WAAW;IAQzB,uEAAuE;IACvE,OAAO,CAAC,yBAAyB;IA4CjC,yGAAyG;IACzG,OAAO,CAAC,kBAAkB;IAW1B,sDAAsD;IACtD,OAAO,CAAC,eAAe;IAOvB,6CAA6C;IAC7C,OAAO,CAAC,cAAc;IAYtB,+CAA+C;IAC/C,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,sBAAsB;IAK9B;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,6BAA6B;cAOlB,MAAM,IAAI,cAAc;CA4B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
1
+ {"version":3,"file":"clock.component.d.ts","sourceRoot":"","sources":["../../../src/elements/clock/clock.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAkB,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA8CrD;;GAEG;AACH,qBAEM,eAAgB,SAAQ,UAAU;IACtC,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;OAGG;IACH,SAA4B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAQ;IAEvD,0CAA0C;IAC1C,OAAO,CAAC,MAAM,CAAkC;IAEhD,kCAAkC;IAClC,OAAO,CAAC,eAAe,CAAe;IAEtC,oCAAoC;IACpC,OAAO,CAAC,iBAAiB,CAAe;IAExC,oCAAoC;IACpC,OAAO,CAAC,iBAAiB,CAAe;IAExC,wCAAwC;IACxC,OAAO,CAAC,MAAM,CAAU;IAExB,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAU;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAU;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,aAAa,CAAC,CAAiC;IAEvD,OAAO,CAAC,gBAAgB,CAAC,CAAiC;IAE1D,wCAAwC;IACxC,OAAO,CAAC,gBAAgB,CAAqC;IAE7D,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB,CAAuC;IAEjD,iBAAiB,IAAI,IAAI;cAMtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAQzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAS9D,oBAAoB,IAAI,IAAI;IAM5C,OAAO,CAAC,2BAA2B,CAUjC;YAEY,sBAAsB;IAUpC,6FAA6F;YAC/E,WAAW;IAuBzB,sDAAsD;YACxC,UAAU;IAexB;;OAEG;YACW,WAAW;IAQzB,uEAAuE;IACvE,OAAO,CAAC,yBAAyB;IA4CjC,yGAAyG;IACzG,OAAO,CAAC,kBAAkB;IAW1B,sDAAsD;IACtD,OAAO,CAAC,eAAe;IAOvB,6CAA6C;IAC7C,OAAO,CAAC,cAAc;IAYtB,+CAA+C;IAC/C,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,sBAAsB;IAK9B;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,6BAA6B;cAOlB,MAAM,IAAI,cAAc;CA4B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
@@ -1,28 +1,28 @@
1
- var M = (s) => {
2
- throw TypeError(s);
1
+ var z = (n) => {
2
+ throw TypeError(n);
3
3
  };
4
- var p = (s, n, e) => n.has(s) || M("Cannot " + e);
5
- var g = (s, n, e) => (p(s, n, "read from private field"), e ? e.call(s) : n.get(s)), H = (s, n, e) => n.has(s) ? M("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, e), h = (s, n, e, i) => (p(s, n, "write to private field"), i ? i.call(s, e) : n.set(s, e), e);
6
- import { __runInitializers as m, __esDecorate as y } from "tslib";
7
- import { css as E, LitElement as A, isServer as z, html as O } from "lit";
8
- import { customElement as T, property as I } from "lit/decorators.js";
4
+ var S = (n, e, i) => e.has(n) || z("Cannot " + i);
5
+ var w = (n, e, i) => (S(n, e, "read from private field"), i ? i.call(n) : e.get(n)), C = (n, e, i) => e.has(n) ? z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, i), h = (n, e, i, c) => (S(n, e, "write to private field"), c ? c.call(n, i) : e.set(n, i), i);
6
+ import { __runInitializers as m, __esDecorate as L } from "tslib";
7
+ import { css as P, LitElement as F, isServer as E, html as x } from "lit";
8
+ import { customElement as U, property as $ } from "lit/decorators.js";
9
9
  import { ref as _ } from "lit/directives/ref.js";
10
- const N = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><g class="face"><circle fill="#FFF" cx="52.5" cy="52.5" r="52.5"/><path d="M50.75 4h3.5v12h-3.5zM50.75 89h3.5v12h-3.5zM75.233 9.623l3.03 1.75-6 10.392-3.03-1.75zM32.734 83.233l3.03 1.75-6 10.392-3.03-1.75zM93.628 26.732l1.75 3.031-10.392 6-1.75-3.03zM20.017 69.234l1.75 3.031-10.392 6-1.75-3.03zM101 50.75v3.5H89v-3.5zM16 50.75v3.5H4v-3.5zM95.379 75.232l-1.75 3.031-10.392-6 1.75-3.03zM21.766 32.734l-1.75 3.031-10.392-6 1.75-3.03zM78.267 93.63l-3.03 1.75-6-10.393 3.03-1.75zM35.766 20.015l-3.03 1.75-6-10.392 3.03-1.75z"/><g><path d="M56.873 4.19l1.392.147-.366 3.48-1.392-.145zM47.101 97.177l1.393.146-.366 3.481-1.392-.146zM61.896 4.914l1.37.29-.728 3.424-1.37-.29zM42.458 96.366l1.37.29-.728 3.424-1.37-.291zM66.825 6.157l1.332.432-1.082 3.33-1.331-.434zM37.931 95.085l1.332.432-1.082 3.33-1.331-.433zM71.584 7.906l1.28.569-1.424 3.197-1.28-.57zM33.56 93.32l1.278.569-1.423 3.197-1.28-.57zM80.44 12.852l1.133.823-2.058 2.831-1.132-.823zM25.481 88.494l1.133.822-2.057 2.832-1.133-.823zM84.43 15.986l1.04.937-2.342 2.6-1.04-.936zM21.87 85.469l1.04.936-2.341 2.601-1.04-.937zM88.072 19.522l.937 1.04-2.6 2.343-.937-1.04zM18.593 82.088l.937 1.04-2.601 2.342-.937-1.04zM91.328 23.425l.823 1.133-2.832 2.057-.823-1.132zM15.684 78.385l.823 1.132-2.832 2.058-.822-1.133zM96.52 32.128l.57 1.279-3.198 1.423-.57-1.278zM11.109 70.161l.569 1.279-3.197 1.423-.57-1.279zM98.407 36.85l.433 1.332-3.33 1.081-.432-1.331zM9.483 65.74l.432 1.33-3.329 1.082-.432-1.331zM99.795 41.726l.291 1.37-3.423.727-.29-1.37zM8.34 61.17l.292 1.37-3.424.728-.29-1.37zM100.66 46.73l.146 1.393-3.48.366-.147-1.392zM7.674 56.506l.146 1.392-3.48.366-.147-1.392zM100.811 56.873l-.146 1.392-3.48-.365.145-1.393zM7.821 47.101l-.146 1.392-3.48-.365.145-1.393zM100.09 61.895l-.291 1.369-3.424-.728.291-1.369zM8.631 42.46l-.291 1.37-3.423-.728.29-1.37zM98.84 66.827l-.432 1.331-3.329-1.081.433-1.332zM9.918 37.93l-.433 1.331-3.329-1.082.433-1.331zM97.098 71.585l-.569 1.28-3.197-1.424.57-1.28zM11.677 33.558l-.57 1.28-3.197-1.424.57-1.279zM92.149 80.439l-.823 1.133-2.832-2.058.823-1.132zM16.506 25.482l-.823 1.133-2.831-2.057.823-1.133zM89.017 84.431l-.937 1.04-2.6-2.341.936-1.04zM19.528 21.869l-.936 1.04-2.601-2.342.936-1.04zM85.48 88.076l-1.041.936-2.342-2.6 1.04-.937zM22.91 18.59l-1.04.937-2.341-2.601 1.04-.937zM81.574 91.328l-1.133.823-2.057-2.831 1.132-.823zM26.617 15.684l-1.133.823-2.057-2.832 1.132-.823zM72.873 96.524l-1.279.57-1.423-3.198 1.278-.57zM34.838 11.105l-1.279.57-1.423-3.198 1.279-.57zM68.151 98.405l-1.331.432-1.082-3.329 1.332-.432zM39.259 9.485l-1.332.433-1.081-3.33 1.331-.432zM63.272 99.799l-1.369.29-.728-3.422 1.37-.291zM43.83 8.337l-1.369.291-.727-3.423 1.37-.291zM58.27 100.662l-1.393.146-.366-3.48 1.393-.147zM48.494 7.672l-1.392.147-.366-3.481 1.392-.147z"/></g></g></svg>
11
- `, P = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path id="mod_clock_svg_hours" d="M55.7 64.5h-6.4l.6-44h5.2z"/></svg>
12
- `, F = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M55.1,64.5h-5.2l0.8-58h3.6L55.1,64.5z"/></svg>
13
- `, x = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M57.8,21.3c0-2.9-2.4-5.2-5.2-5.2s-5.3,2.3-5.3,5.2c0,2.7,2,4.8,4.5,5.2V69h1.5V26.5C55.8,26.2,57.8,24,57.8,21.3z"/></svg>
14
- `, U = E`*,:before,:after{box-sizing:border-box}:host{--sbb-clock-hours-animation-start-angle: 0deg;--sbb-clock-seconds-animation-start-angle: 0deg;--sbb-clock-hours-animation-duration: 0s;--sbb-clock-seconds-animation-duration: 0s;--sbb-clock-animation-play-state: paused;--sbb-clock-seconds-hand-color: var(--sbb-color-red);display:block}.sbb-clock{position:relative;width:100%;height:100%;aspect-ratio:1/1;overflow:hidden;contain:content}.sbb-clock__face,.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds{position:absolute;inset:0;transform-origin:center center;transform:rotate(0);transform-style:preserve-3d;backface-visibility:hidden}.sbb-clock__hand-minutes{transition:transform var(--sbb-disable-animation-duration, .2s) cubic-bezier(.4,2.08,.55,.44)}@supports not (aspect-ratio: 1/1){.sbb-clock__hand-minutes{transform-origin:50% 49.625%}}.sbb-clock__hand-hours{animation-name:rotate;animation-duration:43200s;animation-iteration-count:infinite;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state)}.sbb-clock__hand-hours--initial-hour{animation-name:hand-hours-animation-initial-hour;animation-duration:var(--sbb-clock-hours-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}.sbb-clock__hand-minutes--no-transition{transition:none}.sbb-clock__hand-seconds{animation-name:hand-seconds-animation;animation-duration:60s;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:infinite;fill:var(--sbb-clock-seconds-hand-color)}.sbb-clock__hand-seconds--initial-minute{animation-name:hand-seconds-animation-initial-minute;animation-duration:var(--sbb-clock-seconds-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}:host(:not([data-initialized])) :is(.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds){display:none}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes hand-hours-animation-initial-hour{0%{transform:rotate(var(--sbb-clock-hours-animation-start-angle))}to{transform:rotate(360deg)}}@keyframes hand-seconds-animation{0%{transform:rotate(0)}97.5%,to{transform:rotate(360deg)}}@keyframes hand-seconds-animation-initial-minute{0%{transform:rotate(var(--sbb-clock-seconds-animation-start-angle))}97.5%,to{transform:rotate(360deg)}}`, $ = 12, D = 60, f = 60, V = 50, S = 360, w = 30, G = 6, R = 360 / 58.5, B = 60, L = 3600, K = L / 2, C = {
10
+ const D = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><g class="face"><circle fill="#FFF" cx="52.5" cy="52.5" r="52.5"/><path d="M50.75 4h3.5v12h-3.5zM50.75 89h3.5v12h-3.5zM75.233 9.623l3.03 1.75-6 10.392-3.03-1.75zM32.734 83.233l3.03 1.75-6 10.392-3.03-1.75zM93.628 26.732l1.75 3.031-10.392 6-1.75-3.03zM20.017 69.234l1.75 3.031-10.392 6-1.75-3.03zM101 50.75v3.5H89v-3.5zM16 50.75v3.5H4v-3.5zM95.379 75.232l-1.75 3.031-10.392-6 1.75-3.03zM21.766 32.734l-1.75 3.031-10.392-6 1.75-3.03zM78.267 93.63l-3.03 1.75-6-10.393 3.03-1.75zM35.766 20.015l-3.03 1.75-6-10.392 3.03-1.75z"/><g><path d="M56.873 4.19l1.392.147-.366 3.48-1.392-.145zM47.101 97.177l1.393.146-.366 3.481-1.392-.146zM61.896 4.914l1.37.29-.728 3.424-1.37-.29zM42.458 96.366l1.37.29-.728 3.424-1.37-.291zM66.825 6.157l1.332.432-1.082 3.33-1.331-.434zM37.931 95.085l1.332.432-1.082 3.33-1.331-.433zM71.584 7.906l1.28.569-1.424 3.197-1.28-.57zM33.56 93.32l1.278.569-1.423 3.197-1.28-.57zM80.44 12.852l1.133.823-2.058 2.831-1.132-.823zM25.481 88.494l1.133.822-2.057 2.832-1.133-.823zM84.43 15.986l1.04.937-2.342 2.6-1.04-.936zM21.87 85.469l1.04.936-2.341 2.601-1.04-.937zM88.072 19.522l.937 1.04-2.6 2.343-.937-1.04zM18.593 82.088l.937 1.04-2.601 2.342-.937-1.04zM91.328 23.425l.823 1.133-2.832 2.057-.823-1.132zM15.684 78.385l.823 1.132-2.832 2.058-.822-1.133zM96.52 32.128l.57 1.279-3.198 1.423-.57-1.278zM11.109 70.161l.569 1.279-3.197 1.423-.57-1.279zM98.407 36.85l.433 1.332-3.33 1.081-.432-1.331zM9.483 65.74l.432 1.33-3.329 1.082-.432-1.331zM99.795 41.726l.291 1.37-3.423.727-.29-1.37zM8.34 61.17l.292 1.37-3.424.728-.29-1.37zM100.66 46.73l.146 1.393-3.48.366-.147-1.392zM7.674 56.506l.146 1.392-3.48.366-.147-1.392zM100.811 56.873l-.146 1.392-3.48-.365.145-1.393zM7.821 47.101l-.146 1.392-3.48-.365.145-1.393zM100.09 61.895l-.291 1.369-3.424-.728.291-1.369zM8.631 42.46l-.291 1.37-3.423-.728.29-1.37zM98.84 66.827l-.432 1.331-3.329-1.081.433-1.332zM9.918 37.93l-.433 1.331-3.329-1.082.433-1.331zM97.098 71.585l-.569 1.28-3.197-1.424.57-1.28zM11.677 33.558l-.57 1.28-3.197-1.424.57-1.279zM92.149 80.439l-.823 1.133-2.832-2.058.823-1.132zM16.506 25.482l-.823 1.133-2.831-2.057.823-1.133zM89.017 84.431l-.937 1.04-2.6-2.341.936-1.04zM19.528 21.869l-.936 1.04-2.601-2.342.936-1.04zM85.48 88.076l-1.041.936-2.342-2.6 1.04-.937zM22.91 18.59l-1.04.937-2.341-2.601 1.04-.937zM81.574 91.328l-1.133.823-2.057-2.831 1.132-.823zM26.617 15.684l-1.133.823-2.057-2.832 1.132-.823zM72.873 96.524l-1.279.57-1.423-3.198 1.278-.57zM34.838 11.105l-1.279.57-1.423-3.198 1.279-.57zM68.151 98.405l-1.331.432-1.082-3.329 1.332-.432zM39.259 9.485l-1.332.433-1.081-3.33 1.331-.432zM63.272 99.799l-1.369.29-.728-3.422 1.37-.291zM43.83 8.337l-1.369.291-.727-3.423 1.37-.291zM58.27 100.662l-1.393.146-.366-3.48 1.393-.147zM48.494 7.672l-1.392.147-.366-3.481 1.392-.147z"/></g></g></svg>
11
+ `, V = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path id="mod_clock_svg_hours" d="M55.7 64.5h-6.4l.6-44h5.2z"/></svg>
12
+ `, G = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M55.1,64.5h-5.2l0.8-58h3.6L55.1,64.5z"/></svg>
13
+ `, R = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M57.8,21.3c0-2.9-2.4-5.2-5.2-5.2s-5.3,2.3-5.3,5.2c0,2.7,2,4.8,4.5,5.2V69h1.5V26.5C55.8,26.2,57.8,24,57.8,21.3z"/></svg>
14
+ `, B = P`*,:before,:after{box-sizing:border-box}:host{--sbb-clock-hours-animation-start-angle: 0deg;--sbb-clock-seconds-animation-start-angle: 0deg;--sbb-clock-hours-animation-duration: 0s;--sbb-clock-seconds-animation-duration: 0s;--sbb-clock-animation-play-state: paused;--sbb-clock-seconds-hand-color: var(--sbb-color-red);display:block}.sbb-clock{position:relative;width:100%;height:100%;aspect-ratio:1/1;overflow:hidden;contain:content}.sbb-clock__face,.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:center center;transform:rotate(0);transform-style:preserve-3d;backface-visibility:hidden}.sbb-clock__hand-minutes{transition:transform var(--sbb-disable-animation-duration, .2s) cubic-bezier(.4,2.08,.55,.44)}@supports not (aspect-ratio: 1/1){.sbb-clock__hand-minutes{transform-origin:50% 49.625%}}.sbb-clock__hand-hours{animation-name:rotate;animation-duration:43200s;animation-iteration-count:infinite;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state)}.sbb-clock__hand-hours--initial-hour{animation-name:hand-hours-animation-initial-hour;animation-duration:var(--sbb-clock-hours-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}.sbb-clock__hand-minutes--no-transition{transition:none}.sbb-clock__hand-seconds{animation-name:hand-seconds-animation;animation-duration:60s;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:infinite;fill:var(--sbb-clock-seconds-hand-color)}.sbb-clock__hand-seconds--initial-minute{animation-name:hand-seconds-animation-initial-minute;animation-duration:var(--sbb-clock-seconds-animation-duration);animation-play-state:var(--sbb-clock-animation-play-state);animation-iteration-count:1}:host(:not([data-initialized])) :is(.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds){display:none}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes hand-hours-animation-initial-hour{0%{transform:rotate(var(--sbb-clock-hours-animation-start-angle))}to{transform:rotate(360deg)}}@keyframes hand-seconds-animation{0%{transform:rotate(0)}97.5%,to{transform:rotate(360deg)}}@keyframes hand-seconds-animation-initial-minute{0%{transform:rotate(var(--sbb-clock-seconds-animation-start-angle))}97.5%,to{transform:rotate(360deg)}}`, K = 12, j = 60, A = 60, Z = 50, O = 360, T = 30, q = 6, J = 360 / 58.5, Q = 60, N = 3600, W = N / 2, I = {
15
15
  once: !0,
16
16
  passive: !0
17
17
  };
18
- let X = (() => {
19
- var c, o;
20
- let s = [T("sbb-clock")], n, e = [], i, u = A, b, k = [], v = [];
21
- return o = class extends u {
18
+ let it = (() => {
19
+ var r, l;
20
+ let n = [U("sbb-clock")], e, i = [], c, u = F, b, k = [], v = [];
21
+ return l = class extends u {
22
22
  constructor() {
23
23
  super(...arguments);
24
- H(this, c);
25
- h(this, c, m(this, k, null)), this._state = (m(this, v), "paused"), this._moveHoursHandFn = () => this._moveHoursHand(), this._moveMinutesHandFn = () => this._moveMinutesHand(), this._handlePageVisibilityChange = async () => {
24
+ C(this, r);
25
+ h(this, r, m(this, k, null)), this._state = (m(this, v), "paused"), this._moveHoursHandFn = () => this._moveHoursHand(), this._moveMinutesHandFn = () => this._moveMinutesHand(), this._handlePageVisibilityChange = async () => {
26
26
  this.now || (document.visibilityState === "hidden" ? await this._stopClock() : await this._startClock());
27
27
  };
28
28
  }
@@ -31,19 +31,19 @@ let X = (() => {
31
31
  * @param value HH:MM:ss
32
32
  */
33
33
  get now() {
34
- return g(this, c);
34
+ return w(this, r);
35
35
  }
36
36
  set now(t) {
37
- h(this, c, t);
37
+ h(this, r, t);
38
38
  }
39
39
  connectedCallback() {
40
- super.connectedCallback(), this._resetIntervalId = setInterval(() => this._resetClock(), K * 1e3);
40
+ super.connectedCallback(), this._resetIntervalId = setInterval(() => this._resetClock(), W * 1e3);
41
41
  }
42
42
  willUpdate(t) {
43
- super.willUpdate(t), !z && t.has("now") && this._startOrConfigureClock();
43
+ super.willUpdate(t), !E && t.has("now") && this._startOrConfigureClock();
44
44
  }
45
- async firstUpdated(t) {
46
- super.firstUpdated(t), z || (document.addEventListener("visibilitychange", this._handlePageVisibilityChange, !1), await this._startOrConfigureClock());
45
+ firstUpdated(t) {
46
+ super.firstUpdated(t), E || (document.addEventListener("visibilitychange", this._handlePageVisibilityChange, !1), this._startOrConfigureClock());
47
47
  }
48
48
  disconnectedCallback() {
49
49
  super.disconnectedCallback(), this._removeEventListeners(), clearInterval(this._resetIntervalId);
@@ -53,13 +53,16 @@ let X = (() => {
53
53
  }
54
54
  /** Starts the clock by defining the hands starting position then starting the animations. */
55
55
  async _startClock() {
56
- this._clockHandHours?.addEventListener("animationend", this._moveHoursHandFn, C), this._clockHandSeconds?.addEventListener("animationend", this._moveMinutesHandFn, C), await new Promise((t) => setTimeout(() => {
57
- this._setHandsStartingPosition(), this.style?.setProperty("--sbb-clock-animation-play-state", "running"), this._state = "running", t();
58
- }, V));
56
+ var t, s;
57
+ (t = this._clockHandHours) == null || t.addEventListener("animationend", this._moveHoursHandFn, I), (s = this._clockHandSeconds) == null || s.addEventListener("animationend", this._moveMinutesHandFn, I), await new Promise((o) => setTimeout(() => {
58
+ var a;
59
+ this._setHandsStartingPosition(), (a = this.style) == null || a.setProperty("--sbb-clock-animation-play-state", "running"), this._state = "running", o();
60
+ }, Z));
59
61
  }
60
62
  /** Stops the clock by removing all the animations. */
61
63
  async _stopClock() {
62
- clearInterval(this._handMovement), this._removeSecondsAnimationStyles(), this._removeHoursAnimationStyles(), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._clockHandMinutes?.classList.add("sbb-clock__hand-minutes--no-transition"), this.style?.setProperty("--sbb-clock-animation-play-state", "paused"), this._state = "paused";
64
+ var t, s, o, a;
65
+ clearInterval(this._handMovement), this._removeSecondsAnimationStyles(), this._removeHoursAnimationStyles(), (t = this._clockHandHours) == null || t.removeEventListener("animationend", this._moveHoursHandFn), (s = this._clockHandSeconds) == null || s.removeEventListener("animationend", this._moveMinutesHandFn), (o = this._clockHandMinutes) == null || o.classList.add("sbb-clock__hand-minutes--no-transition"), (a = this.style) == null || a.setProperty("--sbb-clock-animation-play-state", "paused"), this._state = "paused";
63
66
  }
64
67
  /**
65
68
  * As a fallback measure to prevent de-sync, reset the clock to the system time.
@@ -69,29 +72,33 @@ let X = (() => {
69
72
  }
70
73
  /** Set the starting position for the three hands on the clock face. */
71
74
  _setHandsStartingPosition() {
75
+ var M, p, g, H, y, f;
72
76
  this._assignCurrentTime();
73
- const t = f - this._seconds, a = D - this._minutes, l = $ - this._hours;
74
- let r = 0, d = 0;
75
- t > 0 && (r += t, d = 1), a > 0 && (r += (a - d) * B, d = 1), l > 0 && (r += (l - d) * L), this.style?.setProperty("--sbb-clock-hours-animation-start-angle", `${Math.ceil(this._hours * w + this._minutes / 2)}deg`), this.style?.setProperty("--sbb-clock-hours-animation-duration", `${r}s`), this.style?.setProperty("--sbb-clock-seconds-animation-start-angle", `${Math.ceil(this._seconds * R)}deg`), this.style?.setProperty("--sbb-clock-seconds-animation-duration", `${t}s`), this._setMinutesHand(), this._clockHandSeconds?.classList.add("sbb-clock__hand-seconds--initial-minute"), this._clockHandHours?.classList.add("sbb-clock__hand-hours--initial-hour"), this.toggleAttribute("data-initialized", !0);
77
+ const t = A - this._seconds, s = j - this._minutes, o = K - this._hours;
78
+ let a = 0, d = 0;
79
+ t > 0 && (a += t, d = 1), s > 0 && (a += (s - d) * Q, d = 1), o > 0 && (a += (o - d) * N), (M = this.style) == null || M.setProperty("--sbb-clock-hours-animation-start-angle", `${Math.ceil(this._hours * T + this._minutes / 2)}deg`), (p = this.style) == null || p.setProperty("--sbb-clock-hours-animation-duration", `${a}s`), (g = this.style) == null || g.setProperty("--sbb-clock-seconds-animation-start-angle", `${Math.ceil(this._seconds * J)}deg`), (H = this.style) == null || H.setProperty("--sbb-clock-seconds-animation-duration", `${t}s`), this._setMinutesHand(), (y = this._clockHandSeconds) == null || y.classList.add("sbb-clock__hand-seconds--initial-minute"), (f = this._clockHandHours) == null || f.classList.add("sbb-clock__hand-hours--initial-hour"), this.toggleAttribute("data-initialized", !0);
76
80
  }
77
81
  /** Given the current date, calculates the hh/mm/ss values and the hh/mm/ss left to the next midnight. */
78
82
  _assignCurrentTime() {
79
- const t = this.now ? null : /* @__PURE__ */ new Date(), [a, l, r] = t ? [t.getHours(), t.getMinutes(), t.getSeconds()] : this.now.split(":").map((d) => +d);
80
- this._hours = a % 12, this._minutes = l, this._seconds = r;
83
+ const t = this.now ? null : /* @__PURE__ */ new Date(), [s, o, a] = t ? [t.getHours(), t.getMinutes(), t.getSeconds()] : this.now.split(":").map((d) => +d);
84
+ this._hours = s % 12, this._minutes = o, this._seconds = a;
81
85
  }
82
86
  /** Set the starting position for the minutes hand. */
83
87
  _setMinutesHand() {
84
- this._clockHandMinutes?.style.setProperty("transform", `rotateZ(${Math.ceil(this._minutes * G)}deg)`);
88
+ var t;
89
+ (t = this._clockHandMinutes) == null || t.style.setProperty("transform", `rotateZ(${Math.ceil(this._minutes * q)}deg)`);
85
90
  }
86
91
  /** Move the hours hand to the next value. */
87
92
  _moveHoursHand() {
93
+ var s;
88
94
  this._removeHoursAnimationStyles();
89
- let t = Math.ceil(this._hours * w + this._minutes / 2);
90
- t >= S && (t -= S), this._clockHandHours?.style.setProperty("transform", `rotateZ(${t}deg)`);
95
+ let t = Math.ceil(this._hours * T + this._minutes / 2);
96
+ t >= O && (t -= O), (s = this._clockHandHours) == null || s.style.setProperty("transform", `rotateZ(${t}deg)`);
91
97
  }
92
98
  /** Move the minutes hand to the next value. */
93
99
  _moveMinutesHand() {
94
- this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(), f * 1e3);
100
+ var t;
101
+ (t = this._clockHandSeconds) == null || t.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(), A * 1e3);
95
102
  }
96
103
  _addMinutesAndSetHands() {
97
104
  this._minutes++, this._setMinutesHand();
@@ -105,35 +112,38 @@ let X = (() => {
105
112
  this._clockHandSeconds && (this._clockHandSeconds.style.animation = "", this._clockHandSeconds.offsetHeight, this._clockHandSeconds.style.removeProperty("animation"));
106
113
  }
107
114
  _removeEventListeners() {
108
- document?.removeEventListener("visibilitychange", this._handlePageVisibilityChange), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), clearInterval(this._handMovement);
115
+ var t, s;
116
+ document == null || document.removeEventListener("visibilitychange", this._handlePageVisibilityChange), (t = this._clockHandHours) == null || t.removeEventListener("animationend", this._moveHoursHandFn), (s = this._clockHandSeconds) == null || s.removeEventListener("animationend", this._moveMinutesHandFn), clearInterval(this._handMovement);
109
117
  }
110
118
  _removeHoursAnimationStyles() {
111
- this._clockHandHours?.classList.remove("sbb-clock__hand-hours--initial-hour"), this.style.removeProperty("--sbb-clock-hours-animation-start-angle"), this.style.removeProperty("--sbb-clock-hours-animation-duration");
119
+ var t;
120
+ (t = this._clockHandHours) == null || t.classList.remove("sbb-clock__hand-hours--initial-hour"), this.style.removeProperty("--sbb-clock-hours-animation-start-angle"), this.style.removeProperty("--sbb-clock-hours-animation-duration");
112
121
  }
113
122
  _removeSecondsAnimationStyles() {
114
- this._clockHandSeconds?.classList.remove("sbb-clock__hand-seconds--initial-minute"), this._clockHandMinutes?.classList.remove("sbb-clock__hand-minutes--no-transition"), this.style.removeProperty("--sbb-clock-seconds-animation-start-angle"), this.style.removeProperty("--sbb-clock-seconds-animation-duration");
123
+ var t, s;
124
+ (t = this._clockHandSeconds) == null || t.classList.remove("sbb-clock__hand-seconds--initial-minute"), (s = this._clockHandMinutes) == null || s.classList.remove("sbb-clock__hand-minutes--no-transition"), this.style.removeProperty("--sbb-clock-seconds-animation-start-angle"), this.style.removeProperty("--sbb-clock-seconds-animation-duration");
115
125
  }
116
126
  render() {
117
- return O`
127
+ return x`
118
128
  <div class="sbb-clock">
119
- <span class="sbb-clock__face" .innerHTML=${N}></span>
129
+ <span class="sbb-clock__face" .innerHTML=${D}></span>
120
130
  <span
121
131
  class="sbb-clock__hand-hours"
122
- .innerHTML=${P}
132
+ .innerHTML=${V}
123
133
  ${_((t) => {
124
134
  this._clockHandHours = t;
125
135
  })}
126
136
  ></span>
127
137
  <span
128
138
  class="sbb-clock__hand-minutes sbb-clock__hand-minutes--no-transition"
129
- .innerHTML=${F}
139
+ .innerHTML=${G}
130
140
  ${_((t) => {
131
141
  this._clockHandMinutes = t;
132
142
  })}
133
143
  ></span>
134
144
  <span
135
145
  class="sbb-clock__hand-seconds"
136
- .innerHTML=${x}
146
+ .innerHTML=${R}
137
147
  ${_((t) => {
138
148
  this._clockHandSeconds = t;
139
149
  })}
@@ -141,13 +151,13 @@ let X = (() => {
141
151
  </div>
142
152
  `;
143
153
  }
144
- }, c = new WeakMap(), i = o, (() => {
154
+ }, r = new WeakMap(), c = l, (() => {
145
155
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
146
- b = [I()], y(o, null, b, { kind: "accessor", name: "now", static: !1, private: !1, access: { has: (a) => "now" in a, get: (a) => a.now, set: (a, l) => {
147
- a.now = l;
148
- } }, metadata: t }, k, v), y(null, n = { value: i }, s, { kind: "class", name: i.name, metadata: t }, null, e), i = n.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
149
- })(), o.styles = U, m(i, e), i;
156
+ b = [$()], L(l, null, b, { kind: "accessor", name: "now", static: !1, private: !1, access: { has: (s) => "now" in s, get: (s) => s.now, set: (s, o) => {
157
+ s.now = o;
158
+ } }, metadata: t }, k, v), L(null, e = { value: c }, n, { kind: "class", name: c.name, metadata: t }, null, i), c = e.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
159
+ })(), l.styles = B, m(c, i), c;
150
160
  })();
151
161
  export {
152
- X as SbbClockElement
162
+ it as SbbClockElement
153
163
  };