@sbb-esta/lyne-elements 4.8.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (605) hide show
  1. package/README.md +2 -2
  2. package/action-group/action-group.component.js +1 -1
  3. package/action-group.component-OZNshH7G.js +158 -0
  4. package/action-group.js +1 -1
  5. package/action-group.pure.js +1 -1
  6. package/alert/alert/alert.component.js +1 -1
  7. package/alert/alert-group/alert-group.component.js +1 -1
  8. package/alert/alert-group.js +1 -1
  9. package/alert/alert.js +1 -1
  10. package/{alert-group.component-RV1M1OKy.js → alert-group.component-DnYg4aPB.js} +1 -1
  11. package/{alert.component-PPR7hfTi.js → alert.component-B94SoaHI.js} +1 -1
  12. package/alert.js +2 -2
  13. package/alert.pure.js +2 -2
  14. package/autocomplete/autocomplete-base-element.js +1 -1
  15. package/autocomplete/autocomplete.component.js +1 -1
  16. package/{autocomplete-base-element-DVFCZ4lt.js → autocomplete-base-element-BQj0oiHC.js} +1 -1
  17. package/autocomplete.js +1 -1
  18. package/autocomplete.pure.js +1 -1
  19. package/block-link-common-ClyAETjl.js +63 -0
  20. package/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
  21. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  22. package/breadcrumb/breadcrumb-group.js +1 -1
  23. package/breadcrumb/breadcrumb.js +1 -1
  24. package/{breadcrumb-group.component-CfUyO1sI.js → breadcrumb-group.component-ioEaxcGE.js} +1 -1
  25. package/breadcrumb.component-CDs1jq2d.js +24 -0
  26. package/breadcrumb.js +2 -2
  27. package/breadcrumb.pure.js +2 -2
  28. package/button/common.js +1 -1
  29. package/button/mini-button-group/mini-button-group.component.js +1 -1
  30. package/button/mini-button-group.js +1 -1
  31. package/button/mini-button-link/mini-button-link.component.js +1 -1
  32. package/button/mini-button-link.js +1 -1
  33. package/button.js +3 -3
  34. package/button.pure.js +3 -3
  35. package/calendar/calendar/calendar.component.js +1 -1
  36. package/calendar/calendar-day/calendar-day.component.js +1 -1
  37. package/calendar/calendar-day.js +1 -1
  38. package/calendar/calendar.js +1 -1
  39. package/calendar/common.js +1 -1
  40. package/{calendar-day.component-Iewo-vBR.js → calendar-day.component-BZxPrp22.js} +1 -1
  41. package/{calendar.component-Cz-OGQu6.js → calendar.component-DtdBj_D-.js} +1 -1
  42. package/calendar.js +2 -2
  43. package/calendar.pure.js +2 -2
  44. package/card/card/card.component.js +1 -1
  45. package/card/card-badge/card-badge.component.js +1 -1
  46. package/card/card-badge.js +1 -1
  47. package/card/card.js +1 -1
  48. package/card/common/card-action-common.js +1 -1
  49. package/card/common.js +1 -1
  50. package/{card-action-common-GpkaNYtV.js → card-action-common-BNe4LRHp.js} +1 -1
  51. package/card-badge.component-CtpSWL9S.js +65 -0
  52. package/card.component-Bd-2-dP3.js +62 -0
  53. package/card.js +3 -3
  54. package/card.pure.js +3 -3
  55. package/carousel/carousel/carousel.component.js +1 -1
  56. package/carousel/carousel-item/carousel-item.component.js +1 -1
  57. package/carousel/carousel-item.js +1 -1
  58. package/carousel/carousel-list/carousel-list.component.js +1 -1
  59. package/carousel/carousel-list.js +1 -1
  60. package/carousel/carousel.js +1 -1
  61. package/{carousel-item.component-kv3rY8B-.js → carousel-item.component-BdW4Fe7j.js} +1 -1
  62. package/{carousel-list.component-DMMk66SP.js → carousel-list.component-CXKdk4dv.js} +1 -1
  63. package/{carousel.component-BA0V2JHI.js → carousel.component-D9By2rDH.js} +1 -1
  64. package/carousel.js +3 -3
  65. package/carousel.pure.js +3 -3
  66. package/checkbox/checkbox.component.js +2 -2
  67. package/checkbox/checkbox.js +2 -2
  68. package/checkbox/common/checkbox-common.js +1 -1
  69. package/checkbox/common.js +1 -1
  70. package/{checkbox-common-J-7Y966k.js → checkbox-common-CPIIGgkG.js} +1 -1
  71. package/{checkbox.component-Bazdxs9R.js → checkbox.component-Cax24yN1.js} +2 -2
  72. package/checkbox.js +2 -2
  73. package/checkbox.pure.js +2 -2
  74. package/chip/chip/chip.component.js +1 -1
  75. package/chip/chip-group/chip-group.component.js +1 -1
  76. package/chip/chip-group.js +1 -1
  77. package/chip/chip.js +1 -1
  78. package/{chip-group.component-CbruCoHR.js → chip-group.component-CpXuOisx.js} +1 -1
  79. package/chip-label/chip-label.component.js +1 -1
  80. package/{chip-label.component-D9AZdMSJ.js → chip-label.component-CFDlJJZv.js} +1 -1
  81. package/chip-label.js +1 -1
  82. package/chip-label.pure.js +1 -1
  83. package/chip.component-vKOg_uFQ.js +94 -0
  84. package/chip.js +2 -2
  85. package/chip.pure.js +2 -2
  86. package/clock/clock.component.js +1 -1
  87. package/{clock.component-gZJy4AU4.js → clock.component-CZq8NuSw.js} +1 -1
  88. package/clock.js +1 -1
  89. package/clock.pure.js +1 -1
  90. package/common-BdjLJuBp.js +5 -0
  91. package/{compact-paginator.component-BK7xj9tc.js → compact-paginator.component-JM9tD9ys.js} +1 -1
  92. package/container/container/container.component.js +1 -1
  93. package/container/container.js +1 -1
  94. package/container/sticky-bar/sticky-bar.component.js +1 -1
  95. package/container/sticky-bar.js +1 -1
  96. package/{container.component-C-jpJN2k.js → container.component-mgU80iW0.js} +1 -1
  97. package/container.js +2 -2
  98. package/container.pure.js +2 -2
  99. package/core/a11y/focus-trap-controller.js +2 -2
  100. package/core/base-elements/selection-group-base-element.js +1 -1
  101. package/core/base-elements.js +1 -1
  102. package/core/mixins.js +1 -1
  103. package/core/styles/core.scss +9 -0
  104. package/core.css +13 -0
  105. package/custom-elements.json +295 -212
  106. package/date-input/date-input.component.js +1 -1
  107. package/{date-input.component-Da-aS3jt.js → date-input.component-lInRTqua.js} +1 -1
  108. package/date-input.js +1 -1
  109. package/date-input.pure.js +1 -1
  110. package/datepicker/common/datepicker-button.js +1 -1
  111. package/datepicker/common.js +1 -1
  112. package/datepicker/datepicker/datepicker.component.js +1 -1
  113. package/datepicker/datepicker.js +1 -1
  114. package/{datepicker-button-Dk2UQkPN.js → datepicker-button--Bz_ztGR.js} +1 -1
  115. package/{datepicker.component-DUVgoAGU.js → datepicker.component-B64-Fip5.js} +1 -1
  116. package/datepicker.js +2 -2
  117. package/datepicker.pure.js +2 -2
  118. package/development/core/a11y/focus-trap-controller.js +3 -3
  119. package/development/core/mixins.js +2 -1
  120. package/development/header/header/header.component.d.ts +7 -0
  121. package/development/header/header/header.component.d.ts.map +1 -1
  122. package/development/header/header/header.component.js +1 -1
  123. package/development/header/header.js +1 -1
  124. package/development/header.component-C9JGj-z6.js +489 -0
  125. package/development/header.js +1 -1
  126. package/development/header.pure.js +1 -1
  127. package/development/popover/popover.component.d.ts.map +1 -1
  128. package/development/popover/popover.component.js +1 -1
  129. package/development/popover.component-dRXm7_Mv.js +736 -0
  130. package/development/popover.js +1 -1
  131. package/development/popover.pure.js +1 -1
  132. package/development/radio-button/common/radio-button-common.d.ts.map +1 -1
  133. package/development/radio-button/common/radio-button-common.js +1 -1
  134. package/development/radio-button/common.js +1 -1
  135. package/development/radio-button/radio-button.component.js +2 -2
  136. package/development/radio-button/radio-button.js +2 -2
  137. package/development/{radio-button-common-CsjMvmAn.js → radio-button-common-CCrvhOPQ.js} +7 -1
  138. package/development/radio-button-group/radio-button-group.component.d.ts.map +1 -1
  139. package/development/radio-button-group/radio-button-group.component.js +2 -1
  140. package/development/{radio-button.component-BTnHGixs.js → radio-button.component-DYD1hVIZ.js} +2 -2
  141. package/development/radio-button.js +2 -2
  142. package/development/radio-button.pure.js +2 -2
  143. package/development/signet/signet.component.d.ts.map +1 -1
  144. package/development/signet/signet.component.js +1 -1
  145. package/development/signet.component-9afq0BQh.js +164 -0
  146. package/development/signet.js +1 -1
  147. package/development/signet.pure.js +1 -1
  148. package/development/skiplink-list/skiplink-list.component.d.ts.map +1 -1
  149. package/development/skiplink-list/skiplink-list.component.js +1 -1
  150. package/development/{skiplink-list.component-BvbnZ24-.js → skiplink-list.component--EzDilpP.js} +12 -22
  151. package/development/skiplink-list.js +1 -1
  152. package/development/skiplink-list.pure.js +1 -1
  153. package/dialog/dialog/dialog.component.js +1 -1
  154. package/dialog/dialog-actions/dialog-actions.component.js +1 -1
  155. package/dialog/dialog-actions.js +1 -1
  156. package/dialog/dialog-close-button/dialog-close-button.component.js +1 -1
  157. package/dialog/dialog-close-button.js +1 -1
  158. package/dialog/dialog-content/dialog-content.component.js +1 -1
  159. package/dialog/dialog-content.js +1 -1
  160. package/dialog/dialog-title/dialog-title.component.js +1 -1
  161. package/dialog/dialog-title.js +1 -1
  162. package/dialog/dialog.js +1 -1
  163. package/dialog-actions.component-C6m1odAP.js +17 -0
  164. package/{dialog-close-button.component-CeZrvBtz.js → dialog-close-button.component-DsNnE7BE.js} +1 -1
  165. package/{dialog-content.component-bHJNAgKn.js → dialog-content.component-DIKknjUX.js} +1 -1
  166. package/dialog-title.component-DSq0esCH.js +17 -0
  167. package/{dialog.component-CIPresmM.js → dialog.component-BuIFpeUd.js} +1 -1
  168. package/dialog.js +5 -5
  169. package/dialog.pure.js +5 -5
  170. package/divider/divider.component.js +1 -1
  171. package/{divider.component-B99DkxCv.js → divider.component-DwDhJGac.js} +1 -1
  172. package/divider.js +1 -1
  173. package/divider.pure.js +1 -1
  174. package/{error.component-DTYppqRY.js → error.component-DpUkVwHl.js} +1 -1
  175. package/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
  176. package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
  177. package/expansion-panel/expansion-panel-content.js +1 -1
  178. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
  179. package/expansion-panel/expansion-panel-header.js +1 -1
  180. package/expansion-panel/expansion-panel.js +1 -1
  181. package/expansion-panel-content.component-2C7bavY5.js +29 -0
  182. package/expansion-panel-header.component-B5ulwstr.js +56 -0
  183. package/{expansion-panel.component-CGss5cPS.js → expansion-panel.component-DxEqf6H1.js} +1 -1
  184. package/expansion-panel.js +3 -3
  185. package/expansion-panel.pure.js +3 -3
  186. package/file-selector/common/file-selector-common.js +1 -1
  187. package/file-selector/common.js +1 -1
  188. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  189. package/file-selector/file-selector-dropzone.js +1 -1
  190. package/{file-selector-common-C--h0Yj2.js → file-selector-common-Bk07ovZm.js} +1 -1
  191. package/{file-selector-dropzone.component-BFlkqlsq.js → file-selector-dropzone.component-DhPsfRQk.js} +1 -1
  192. package/file-selector.js +2 -2
  193. package/file-selector.pure.js +2 -2
  194. package/flip-card/flip-card/flip-card.component.js +1 -1
  195. package/flip-card/flip-card-details/flip-card-details.component.js +1 -1
  196. package/flip-card/flip-card-details.js +1 -1
  197. package/flip-card/flip-card-summary/flip-card-summary.component.js +1 -1
  198. package/flip-card/flip-card-summary.js +1 -1
  199. package/flip-card/flip-card.js +1 -1
  200. package/{flip-card-details.component-BOVK7F1U.js → flip-card-details.component-Dd9w2AaO.js} +1 -1
  201. package/flip-card-summary.component-DN08GsS9.js +65 -0
  202. package/{flip-card.component-5pxuwGAv.js → flip-card.component-CrUlzxck.js} +1 -1
  203. package/flip-card.js +3 -3
  204. package/flip-card.pure.js +3 -3
  205. package/footer/footer.component.js +1 -1
  206. package/footer.component-C8s7qhZs.js +129 -0
  207. package/footer.js +1 -1
  208. package/footer.pure.js +1 -1
  209. package/form-field/error/error.component.js +1 -1
  210. package/form-field/error.js +1 -1
  211. package/form-field/form-field/form-field.component.js +1 -1
  212. package/form-field/form-field.js +1 -1
  213. package/{form-field.component-CWj6jfYZ.js → form-field.component-Dc0CkOvA.js} +1 -1
  214. package/form-field.js +2 -2
  215. package/form-field.pure.js +2 -2
  216. package/header/common/header-action-common.js +1 -1
  217. package/header/common.js +1 -1
  218. package/header/header/header.component.js +1 -1
  219. package/header/header-environment/header-environment.component.js +1 -1
  220. package/header/header-environment.js +1 -1
  221. package/header/header.js +1 -1
  222. package/header-action-common-D9CO0Jax.js +62 -0
  223. package/header-environment.component-DDZ9fcZd.js +36 -0
  224. package/header.component-BPkEKqnQ.js +232 -0
  225. package/header.js +3 -3
  226. package/header.pure.js +3 -3
  227. package/icon/icon-base.js +1 -1
  228. package/icon/icon-name-mixin.js +1 -1
  229. package/icon/icon.component.js +1 -1
  230. package/{icon-base-C2VxpriZ.js → icon-base-BkDvJr2l.js} +1 -1
  231. package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
  232. package/icon-sidebar/icon-sidebar.js +1 -1
  233. package/{icon-sidebar.component-D3vOnYrs.js → icon-sidebar.component-CQ6KLiCN.js} +1 -1
  234. package/icon-sidebar.js +1 -1
  235. package/icon-sidebar.pure.js +1 -1
  236. package/icon.js +1 -1
  237. package/icon.pure.js +1 -1
  238. package/image/image.component.js +1 -1
  239. package/{image.component-BcOwT7-U.js → image.component-BSWcI8r3.js} +1 -1
  240. package/image.js +1 -1
  241. package/image.pure.js +1 -1
  242. package/index.d.ts +0 -2
  243. package/index.js +0 -2
  244. package/inline-link-common-B7MnXE80.js +18 -0
  245. package/journey-header/journey-header.component.js +1 -1
  246. package/{journey-header.component-CjXBxEor.js → journey-header.component-mIbM-KVg.js} +1 -1
  247. package/journey-header.js +1 -1
  248. package/journey-header.pure.js +1 -1
  249. package/lead-container/lead-container.component.js +1 -1
  250. package/lead-container.component-w3zhibLj.js +27 -0
  251. package/lead-container.js +1 -1
  252. package/lead-container.pure.js +1 -1
  253. package/link/common/block-link-common.js +2 -2
  254. package/link/common/inline-link-common.js +2 -2
  255. package/link/common/link-common.js +1 -1
  256. package/link/common.js +3 -3
  257. package/link-common-DqIfaliQ.js +52 -0
  258. package/link-list/common/link-list-base.js +1 -1
  259. package/link-list/common.js +1 -1
  260. package/link-list/link-list-anchor.js +2 -2
  261. package/link-list/link-list.component.js +2 -2
  262. package/link-list/link-list.js +2 -2
  263. package/link-list-anchor/link-list-anchor.component.js +1 -1
  264. package/link-list-anchor.component-CwmljGqM.js +18 -0
  265. package/link-list-anchor.js +1 -1
  266. package/link-list-anchor.pure.js +1 -1
  267. package/{link-list-base-CrpC5D4u.js → link-list-base-DwOmdG3N.js} +1 -1
  268. package/link-list.component-e-UmSwDi.js +78 -0
  269. package/link-list.js +3 -3
  270. package/link-list.pure.js +2 -2
  271. package/link.js +3 -3
  272. package/link.pure.js +3 -3
  273. package/loading-indicator/loading-indicator.component.js +1 -1
  274. package/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
  275. package/loading-indicator-circle.component-5o-TFlzV.js +62 -0
  276. package/loading-indicator-circle.js +1 -1
  277. package/loading-indicator-circle.pure.js +1 -1
  278. package/loading-indicator.component-8XIZYm8V.js +92 -0
  279. package/loading-indicator.js +1 -1
  280. package/loading-indicator.pure.js +1 -1
  281. package/logo/logo.component.js +1 -1
  282. package/{logo.component-CdZe8lrB.js → logo.component-D0-6sm1j.js} +1 -1
  283. package/logo.js +1 -1
  284. package/logo.pure.js +1 -1
  285. package/map-container/map-container.component.js +1 -1
  286. package/map-container.component-CnErYagX.js +128 -0
  287. package/map-container.js +1 -1
  288. package/map-container.pure.js +1 -1
  289. package/menu/common/menu-action-common.js +1 -1
  290. package/menu/common.js +1 -1
  291. package/menu/menu/menu.component.js +1 -1
  292. package/menu/menu.js +1 -1
  293. package/menu-action-common-Br3mThg1.js +29 -0
  294. package/{menu.component-elxRPsQz.js → menu.component-D5u2hL8X.js} +1 -1
  295. package/menu.js +2 -2
  296. package/menu.pure.js +2 -2
  297. package/message/message.component.js +1 -1
  298. package/{message.component-DDMr1IXM.js → message.component-CnIfjJj8.js} +1 -1
  299. package/message.js +1 -1
  300. package/message.pure.js +1 -1
  301. package/{mini-button-group.component-D5Dph1Z7.js → mini-button-group.component-CDXkOnq4.js} +1 -1
  302. package/{mini-button-link.component-BYK_EUud.js → mini-button-link.component-BlPfUvvp.js} +1 -1
  303. package/mini-calendar/mini-calendar/mini-calendar.component.js +1 -1
  304. package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +1 -1
  305. package/mini-calendar/mini-calendar-day.js +1 -1
  306. package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
  307. package/mini-calendar/mini-calendar-month.js +1 -1
  308. package/mini-calendar/mini-calendar.js +1 -1
  309. package/{mini-calendar-day.component-Tj7wlWj7.js → mini-calendar-day.component-CM1dgWp6.js} +1 -1
  310. package/{mini-calendar-month.component-DTod_RRs.js → mini-calendar-month.component-DZ45IgFZ.js} +1 -1
  311. package/{mini-calendar.component-BCDHUUZG.js → mini-calendar.component-CKR-WJWW.js} +1 -1
  312. package/mini-calendar.js +3 -3
  313. package/mini-calendar.pure.js +3 -3
  314. package/navigation/common/navigation-action-common.js +1 -1
  315. package/navigation/common.js +1 -1
  316. package/navigation/navigation/navigation.component.js +1 -1
  317. package/navigation/navigation-list/navigation-list.component.js +1 -1
  318. package/navigation/navigation-list.js +1 -1
  319. package/navigation/navigation-marker/navigation-marker.component.js +1 -1
  320. package/navigation/navigation-marker.js +1 -1
  321. package/navigation/navigation-section/navigation-section.component.js +1 -1
  322. package/navigation/navigation-section.js +1 -1
  323. package/navigation/navigation.js +1 -1
  324. package/navigation-action-common-Cme_2GEs.js +64 -0
  325. package/{navigation-list.component-DnB7FrKG.js → navigation-list.component-DiyAt5hV.js} +1 -1
  326. package/{navigation-marker.component-B7hmb9iS.js → navigation-marker.component-D_U3Nd-_.js} +1 -1
  327. package/{navigation-section.component-C86pkDLG.js → navigation-section.component-DqFRimuS.js} +1 -1
  328. package/{navigation.component-BzgTWUiD.js → navigation.component-BAgxKoOU.js} +1 -1
  329. package/navigation.js +5 -5
  330. package/navigation.pure.js +5 -5
  331. package/notification/notification.component.js +1 -1
  332. package/notification.component-BYm_I7Df.js +197 -0
  333. package/notification.js +1 -1
  334. package/notification.pure.js +1 -1
  335. package/off-brand-theme.css +13 -0
  336. package/{optgroup-base-element-C8LeifgF.js → optgroup-base-element-D0ebmnMV.js} +1 -1
  337. package/option/optgroup/optgroup-base-element.js +1 -1
  338. package/option/optgroup/optgroup.component.js +1 -1
  339. package/option/optgroup.js +1 -1
  340. package/option/option/option.component.js +1 -1
  341. package/option/option-hint/option-hint.component.js +1 -1
  342. package/option/option-hint.js +1 -1
  343. package/option/option.js +1 -1
  344. package/option-hint.component-5KZ_UDB6.js +23 -0
  345. package/option.component-DJO5o_Ig.js +98 -0
  346. package/option.js +3 -3
  347. package/option.pure.js +3 -3
  348. package/overlay/overlay.component.js +1 -1
  349. package/{overlay.component-CAN3BK7B.js → overlay.component-CaBxt4sb.js} +1 -1
  350. package/overlay.js +1 -1
  351. package/overlay.pure.js +1 -1
  352. package/package.json +2 -3
  353. package/paginator/compact-paginator/compact-paginator.component.js +1 -1
  354. package/paginator/compact-paginator.js +1 -1
  355. package/paginator/paginator/paginator.component.js +1 -1
  356. package/paginator/paginator.js +1 -1
  357. package/paginator.component-nXF_Zbze.js +206 -0
  358. package/paginator.js +2 -2
  359. package/paginator.pure.js +2 -2
  360. package/popover/popover.component.js +1 -1
  361. package/{popover.component-eBpmXakQ.js → popover.component-H1g1e1o9.js} +3 -3
  362. package/popover.js +1 -1
  363. package/popover.pure.js +1 -1
  364. package/radio-button/common/radio-button-common.js +1 -1
  365. package/radio-button/common.js +1 -1
  366. package/radio-button/radio-button.component.js +2 -2
  367. package/radio-button/radio-button.js +2 -2
  368. package/radio-button-common-Ch3i83Qb.js +80 -0
  369. package/radio-button-group/radio-button-group.component.js +1 -1
  370. package/{radio-button.component-CVPy3eQi.js → radio-button.component-BGIJJyFd.js} +2 -2
  371. package/radio-button.js +2 -2
  372. package/radio-button.pure.js +2 -2
  373. package/safety-theme.css +13 -0
  374. package/screen-reader-only/screen-reader-only.component.js +1 -1
  375. package/{screen-reader-only.component-DEOirlKo.js → screen-reader-only.component-DxVn8U9m.js} +1 -1
  376. package/screen-reader-only.js +1 -1
  377. package/screen-reader-only.pure.js +1 -1
  378. package/select/select.component.js +1 -1
  379. package/{select.component-CsIiislt.js → select.component-Bo7kkaOF.js} +1 -1
  380. package/select.js +1 -1
  381. package/select.pure.js +1 -1
  382. package/selection-action-panel/selection-action-panel.component.js +1 -1
  383. package/selection-action-panel.component-DsXSIUJY.js +35 -0
  384. package/selection-action-panel.js +1 -1
  385. package/selection-action-panel.pure.js +1 -1
  386. package/selection-expansion-panel/selection-expansion-panel.component.js +1 -1
  387. package/{selection-expansion-panel.component-BQw9icBM.js → selection-expansion-panel.component-DdUCJdYH.js} +1 -1
  388. package/selection-expansion-panel.js +1 -1
  389. package/selection-expansion-panel.pure.js +1 -1
  390. package/{selection-group-base-element-Bd6na8dT.js → selection-group-base-element-CBG8qr2t.js} +1 -1
  391. package/sidebar/common/styles.js +1 -1
  392. package/sidebar/common.js +1 -1
  393. package/sidebar/sidebar/sidebar.component.js +1 -1
  394. package/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
  395. package/sidebar/sidebar-close-button.js +1 -1
  396. package/sidebar/sidebar-container/sidebar-container.component.js +1 -1
  397. package/sidebar/sidebar-container.js +1 -1
  398. package/sidebar/sidebar-content/sidebar-content.component.js +1 -1
  399. package/sidebar/sidebar-content.js +1 -1
  400. package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  401. package/sidebar/sidebar-title.js +1 -1
  402. package/sidebar/sidebar.js +1 -1
  403. package/{sidebar-close-button.component-D0JS2p5L.js → sidebar-close-button.component-BTrt_KtJ.js} +1 -1
  404. package/{sidebar-container.component-BFxFShTF.js → sidebar-container.component-5s-OUp0W.js} +1 -1
  405. package/{sidebar-content.component-M7FGd8SF.js → sidebar-content.component-cZMzji92.js} +1 -1
  406. package/{sidebar-title.component-BfjxBPpH.js → sidebar-title.component-DYd-60nF.js} +1 -1
  407. package/{sidebar.component-zRpWDGKR.js → sidebar.component-BcgVWM8W.js} +1 -1
  408. package/sidebar.js +5 -5
  409. package/sidebar.pure.js +5 -5
  410. package/signet/signet.component.js +1 -1
  411. package/signet.component-CobWzWhG.js +99 -0
  412. package/signet.js +1 -1
  413. package/signet.pure.js +1 -1
  414. package/skiplink-list/skiplink-list.component.js +1 -1
  415. package/{skiplink-list.component-BRJk6HvC.js → skiplink-list.component-DHOXaPS-.js} +8 -10
  416. package/skiplink-list.js +1 -1
  417. package/skiplink-list.pure.js +1 -1
  418. package/slider/slider.component.js +1 -1
  419. package/{slider.component-CLNsu212.js → slider.component-MdvM78XU.js} +1 -1
  420. package/slider.js +1 -1
  421. package/slider.pure.js +1 -1
  422. package/standard-theme.css +13 -0
  423. package/status/status.component.js +1 -1
  424. package/{status.component-CmLdUn37.js → status.component-C3Wx4Gvn.js} +1 -1
  425. package/status.js +1 -1
  426. package/status.pure.js +1 -1
  427. package/step-label.component-zeKJCNqa.js +82 -0
  428. package/{step.component-eKVtXlT4.js → step.component-DluGAXNI.js} +1 -1
  429. package/stepper/step/step.component.js +1 -1
  430. package/stepper/step-label/step-label.component.js +1 -1
  431. package/stepper/step-label.js +1 -1
  432. package/stepper/step.js +1 -1
  433. package/stepper/stepper/stepper.component.js +1 -1
  434. package/stepper/stepper.js +1 -1
  435. package/{stepper.component-yWCQtYWc.js → stepper.component-BIFuIy3T.js} +1 -1
  436. package/stepper.js +3 -3
  437. package/stepper.pure.js +3 -3
  438. package/sticky-bar.component-DnPfDrKx.js +141 -0
  439. package/styles-BhYx61ZB.js +5 -0
  440. package/styles-DjLiBgML.js +5 -0
  441. package/{tab-group.component-DE4H3_H4.js → tab-group.component-BTwC9WKX.js} +1 -1
  442. package/tab-label.component-CsT_0RH7.js +165 -0
  443. package/{tab-nav-bar.component-n5TiTWxE.js → tab-nav-bar.component-UOqFJjhe.js} +1 -1
  444. package/{tab.component-BrIEFDxk.js → tab.component-BpUsS18w.js} +1 -1
  445. package/table/table-wrapper/table-wrapper.component.js +1 -1
  446. package/table/table-wrapper.js +1 -1
  447. package/{table-wrapper.component-CoqozurQ.js → table-wrapper.component-DPUvpfK4.js} +1 -1
  448. package/table.js +1 -1
  449. package/table.pure.js +1 -1
  450. package/tabs/common/styles.js +1 -1
  451. package/tabs/common.js +1 -1
  452. package/tabs/tab/tab.component.js +1 -1
  453. package/tabs/tab-group/tab-group.component.js +1 -1
  454. package/tabs/tab-group.js +1 -1
  455. package/tabs/tab-label/tab-label.component.js +1 -1
  456. package/tabs/tab-label.js +1 -1
  457. package/tabs/tab-nav-bar/tab-nav-bar.component.js +1 -1
  458. package/tabs/tab-nav-bar.js +1 -1
  459. package/tabs/tab.js +1 -1
  460. package/tabs.js +5 -5
  461. package/tabs.pure.js +5 -5
  462. package/tag/tag/tag.component.js +1 -1
  463. package/tag/tag-group/tag-group.component.js +1 -1
  464. package/tag/tag-group.js +1 -1
  465. package/tag/tag.js +1 -1
  466. package/{tag-group.component-DiIp6zS1.js → tag-group.component-CoChkHtw.js} +1 -1
  467. package/tag.component-ClZ-ZKFC.js +170 -0
  468. package/tag.js +2 -2
  469. package/tag.pure.js +2 -2
  470. package/teaser/teaser.component.js +1 -1
  471. package/teaser-hero/teaser-hero.component.js +1 -1
  472. package/teaser-hero.component-dKZsY0fS.js +80 -0
  473. package/teaser-hero.js +1 -1
  474. package/teaser-hero.pure.js +1 -1
  475. package/teaser-product/common/teaser-product-common.js +1 -1
  476. package/teaser-product/common.js +1 -1
  477. package/teaser-product/teaser-product/teaser-product.component.js +1 -1
  478. package/teaser-product/teaser-product.js +1 -1
  479. package/teaser-product-common-CFCb5Rsx.js +62 -0
  480. package/{teaser-product.component-DiOhM_rU.js → teaser-product.component-C3Zi8Pdd.js} +1 -1
  481. package/teaser-product.js +2 -2
  482. package/teaser-product.pure.js +2 -2
  483. package/teaser.component-CUUvAAZ7.js +91 -0
  484. package/teaser.js +1 -1
  485. package/teaser.pure.js +1 -1
  486. package/time-input/time-input.component.js +1 -1
  487. package/{time-input.component-DT1BOC8m.js → time-input.component-BDkxBiPM.js} +1 -1
  488. package/time-input.js +1 -1
  489. package/time-input.pure.js +1 -1
  490. package/timetable-form/timetable-form/timetable-form.component.js +1 -1
  491. package/timetable-form/timetable-form-details/timetable-form-details.component.js +1 -1
  492. package/timetable-form/timetable-form-details.js +1 -1
  493. package/timetable-form/timetable-form-field/timetable-form-field.component.js +1 -1
  494. package/timetable-form/timetable-form-field.js +1 -1
  495. package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +1 -1
  496. package/timetable-form/timetable-form-swap-button.js +1 -1
  497. package/timetable-form/timetable-form.js +1 -1
  498. package/timetable-form-details.component-CfpM_Kse.js +16 -0
  499. package/timetable-form-field.component-DJ9FZ9vI.js +32 -0
  500. package/{timetable-form-swap-button.component-BGP-OsHD.js → timetable-form-swap-button.component-BXQ-ukkk.js} +1 -1
  501. package/{timetable-form.component-BqdKekNM.js → timetable-form.component-BeopwQmE.js} +1 -1
  502. package/timetable-form.js +4 -4
  503. package/timetable-form.pure.js +4 -4
  504. package/timetable-occupancy/timetable-occupancy.component.js +1 -1
  505. package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +1 -1
  506. package/{timetable-occupancy-icon.component-ZrzpXaeV.js → timetable-occupancy-icon.component-LLMT_897.js} +1 -1
  507. package/timetable-occupancy-icon.js +1 -1
  508. package/timetable-occupancy-icon.pure.js +1 -1
  509. package/{timetable-occupancy.component-DMztYVmj.js → timetable-occupancy.component-CuI4uxPK.js} +1 -1
  510. package/timetable-occupancy.js +1 -1
  511. package/timetable-occupancy.pure.js +1 -1
  512. package/title/title-base.js +1 -1
  513. package/title/title.component.js +2 -2
  514. package/{title-base-BDYkc8fG.js → title-base-DRgSZMaU.js} +1 -1
  515. package/{title.component-DafVwymI.js → title.component-1oKmMeCz.js} +2 -2
  516. package/title.js +2 -2
  517. package/title.pure.js +2 -2
  518. package/toast/toast.component.js +1 -1
  519. package/{toast.component-DbILctK5.js → toast.component-BGevO6ad.js} +1 -1
  520. package/toast.js +1 -1
  521. package/toast.pure.js +1 -1
  522. package/toggle/toggle/toggle.component.js +1 -1
  523. package/toggle/toggle-option/toggle-option.component.js +1 -1
  524. package/toggle/toggle-option.js +1 -1
  525. package/toggle/toggle.js +1 -1
  526. package/toggle-check/toggle-check.component.js +1 -1
  527. package/toggle-check.component-C2Ejl7a_.js +119 -0
  528. package/toggle-check.js +1 -1
  529. package/toggle-check.pure.js +1 -1
  530. package/{toggle-option.component-NMfqwd12.js → toggle-option.component-Lm0irQKj.js} +1 -1
  531. package/{toggle.component-D1n5S5ev.js → toggle.component-D8rRkRAo.js} +1 -1
  532. package/toggle.js +2 -2
  533. package/toggle.pure.js +2 -2
  534. package/tooltip/tooltip.component.js +1 -1
  535. package/{tooltip.component-X45T6iQH.js → tooltip.component-Bwp_yTA8.js} +1 -1
  536. package/tooltip.js +1 -1
  537. package/tooltip.pure.js +1 -1
  538. package/train/train/train.component.js +1 -1
  539. package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  540. package/train/train-blocked-passage.js +1 -1
  541. package/train/train-formation/train-formation.component.js +1 -1
  542. package/train/train-formation.js +1 -1
  543. package/train/train-wagon/train-wagon.component.js +1 -1
  544. package/train/train-wagon.js +1 -1
  545. package/train/train.js +1 -1
  546. package/train-blocked-passage.component-D3mbnoQ4.js +23 -0
  547. package/train-formation.component-DoNKUil3.js +121 -0
  548. package/{train-wagon.component-bGA2a-0M.js → train-wagon.component-CLrqgGwH.js} +1 -1
  549. package/{train.component-V6FLqC82.js → train.component-COPys5v7.js} +1 -1
  550. package/train.js +4 -4
  551. package/train.pure.js +4 -4
  552. package/visual-checkbox/visual-checkbox.component.js +1 -1
  553. package/{visual-checkbox.component-eajUDpKu.js → visual-checkbox.component-CiAaB_Yc.js} +1 -1
  554. package/visual-checkbox.js +1 -1
  555. package/visual-checkbox.pure.js +1 -1
  556. package/action-group.component-KWugkMGf.js +0 -158
  557. package/block-link-common-BMTrbSfi.js +0 -63
  558. package/breadcrumb.component-DjkZzGJD.js +0 -24
  559. package/card-badge.component-D_PI9Ega.js +0 -65
  560. package/card.component-Dt2YFmd3.js +0 -62
  561. package/chip.component-DMB36gvC.js +0 -94
  562. package/common-CI_BB6sF.js +0 -5
  563. package/development/header.component-DEw_zC-n.js +0 -446
  564. package/development/popover.component-CLwOes_-.js +0 -746
  565. package/development/signet.component-B9nY5tTL.js +0 -188
  566. package/dialog-actions.component-QvbasYxg.js +0 -17
  567. package/dialog-title.component-BDHYjDn0.js +0 -17
  568. package/expansion-panel-content.component-DCl4nQ8V.js +0 -29
  569. package/expansion-panel-header.component-jc1Ty5jz.js +0 -56
  570. package/flip-card-summary.component-DVa7wF7x.js +0 -65
  571. package/footer.component-C-mSrCud.js +0 -129
  572. package/header-action-common-W_j0KPr-.js +0 -62
  573. package/header-environment.component-DduyZo6W.js +0 -36
  574. package/header.component-DW23EnaO.js +0 -203
  575. package/inline-link-common-DANB-hT-.js +0 -18
  576. package/lead-container.component-D9VzZCQa.js +0 -27
  577. package/link-common-akQv_-UR.js +0 -52
  578. package/link-list-anchor.component-Qm7h2mHK.js +0 -18
  579. package/link-list.component-C8zrqHYc.js +0 -78
  580. package/loading-indicator-circle.component-DfjVqe7n.js +0 -62
  581. package/loading-indicator.component-DkYs30Nf.js +0 -92
  582. package/map-container.component-C_wbi6WL.js +0 -128
  583. package/menu-action-common-vt9j6nkG.js +0 -29
  584. package/navigation-action-common-D_-gGOYm.js +0 -64
  585. package/notification.component-Cor1vQGU.js +0 -197
  586. package/option-hint.component-kPdwK61Z.js +0 -23
  587. package/option.component-DF9ZTj12.js +0 -98
  588. package/paginator.component-CsSs5q4D.js +0 -206
  589. package/radio-button-common-QHPueQrm.js +0 -77
  590. package/selection-action-panel.component-QfR2kPeM.js +0 -35
  591. package/signet.component-Kwdy4Uor.js +0 -101
  592. package/step-label.component-DTkviH8Q.js +0 -82
  593. package/sticky-bar.component-BqZVKHc7.js +0 -141
  594. package/styles-CsBiCI23.js +0 -5
  595. package/styles-DYZWSKeo.js +0 -5
  596. package/tab-label.component-BnxPGws1.js +0 -165
  597. package/tag.component-CfK6JwsO.js +0 -170
  598. package/teaser-hero.component-DjodzcX_.js +0 -80
  599. package/teaser-product-common-DkumwiRA.js +0 -62
  600. package/teaser.component-C7sJLVMk.js +0 -91
  601. package/timetable-form-details.component-DI5Mr8-O.js +0 -16
  602. package/timetable-form-field.component-2kEWygEC.js +0 -32
  603. package/toggle-check.component-CPewUjOg.js +0 -119
  604. package/train-blocked-passage.component-RIMoX91U.js +0 -23
  605. package/train-formation.component-B17tc6cx.js +0 -121
@@ -1,128 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { css as n, html as r, nothing as i } from "lit";
3
- import { property as a, state as o } from "lit/decorators.js";
4
- import { SbbElement as s } from "./core/base-elements.js";
5
- import { forceType as c } from "./core/decorators.js";
6
- import { forwardEvent as l } from "./core/eventing.js";
7
- import { boxSizingStyles as u } from "./core/styles.js";
8
- import { SbbLanguageController as d } from "./core/controllers.js";
9
- import { i18nMapContainerButtonLabel as f } from "./core/i18n.js";
10
- import { IntersectionController as p } from "@lit-labs/observers/intersection-controller.js";
11
- import "./button/accent-button.js";
12
- //#region src/elements/map-container/map-container.scss?lit&inline
13
- var m = n`:host{--sbb-map-container-animation-duration:var(--sbb-disable-animation-duration,var(--sbb-animation-duration-4x));--_sbb-map-container-map-height:calc(var(--sbb-map-container-map-height-zero) + var(--sbb-map-container-border-radius));grid-template-rows:auto auto;display:grid}@media (width>=37.5rem){:host{--_sbb-map-container-map-height:calc(var(--sbb-map-container-map-height-small) + var(--sbb-map-container-border-radius))}}@media (width>=64rem){:host{grid-template-columns:max(var(--sbb-map-container-sidebar-width)) calc(100% - var(--sbb-map-container-sidebar-width));inset:var(--sbb-map-container-margin-start,var(--sbb-header-height)) 0 0 0;position:fixed}}.sbb-map-container__sidebar-button{left:50%;visibility:hidden;opacity:0;transform:translateX(-50%) translateY(calc(100% + var(--sbb-spacing-fixed-5x)));transition:opacity var(--sbb-map-container-animation-duration) var(--sbb-animation-easing), visibility var(--sbb-map-container-animation-duration) var(--sbb-animation-easing) var(--sbb-map-container-animation-duration), transform var(--sbb-map-container-animation-duration) var(--sbb-animation-easing);position:fixed;inset-block-end:var(--sbb-spacing-fixed-5x)}:host(:is(:state(scroll-up-button-visible),[state--scroll-up-button-visible])) .sbb-map-container__sidebar-button{transition:visibility var(--sbb-map-container-animation-duration) var(--sbb-animation-easing), opacity var(--sbb-map-container-animation-duration) var(--sbb-animation-easing), transform var(--sbb-map-container-animation-duration) ease-out;visibility:visible;opacity:1;transform:translate(-50%)translateY(0)}@media (width>=64rem){.sbb-map-container__sidebar-button{display:none}}.sbb-map-container__sidebar{--sbb-scrollbar-thumb-width:.5rem;--sbb-scrollbar-thumb-width-hover:var(--sbb-scrollbar-thumb-width);--sbb-scrollbar-width-firefox:auto;--sbb-scrollbar-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-black) 30%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-white) 30%, transparent));--sbb-scrollbar-color-hover:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-black) 60%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-white) 60%, transparent));--sbb-scrollbar-track-color:var(--sbb-background-color-4);--sbb-scrollbar-width:var(--sbb-spacing-fixed-3x)}.sbb-map-container__sidebar::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color,transparent)}.sbb-map-container__sidebar::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color,transparent)}.sbb-map-container__sidebar::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color,currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-map-container__sidebar::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover,currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-map-container__sidebar::-webkit-scrollbar-button{display:none}.sbb-map-container__sidebar::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-map-container__sidebar{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color,currentcolor) var(--sbb-scrollbar-track-color,transparent)}}.sbb-map-container__sidebar{width:100%;background-color:var(--sbb-map-container-sidebar-background-color);border-start-start-radius:var(--sbb-map-container-border-radius);border-start-end-radius:var(--sbb-map-container-border-radius);grid-area:2/1/3/3;margin-block-start:calc(var(--sbb-map-container-border-radius) * -1);position:relative;overflow:hidden auto}@media (width>=64rem){.sbb-map-container__sidebar{border-block-start:var(--sbb-border-width-1x) solid var(--sbb-border-color-4-inverted);border-radius:0;grid-area:1/1/3/2;margin-block-start:0}}.sbb-map-container__map{grid-area:1/1/2/3;position:sticky;inset-block-start:0;inset-inline:0}@media (width<=63.9375rem){.sbb-map-container__map{height:var(--_sbb-map-container-map-height);inset-block-start:var(--sbb-map-container-mobile-sticky-block-start,0)}}@media (width>=64rem){.sbb-map-container__map{grid-area:1/2/3/3;position:relative}}`, h = (() => {
14
- let n = s, h, g = [], _ = [], v, y = [], b = [];
15
- return class extends n {
16
- constructor() {
17
- super(...arguments), this.#e = t(this, g, !1), this.#t = (t(this, _), t(this, y, !1)), this._language = (t(this, b), new d(this)), this._observer = new p(this, {
18
- target: null,
19
- callback: (e) => this._toggleButtonVisibilityOnIntersect(e)
20
- });
21
- }
22
- static {
23
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
24
- h = [c(), a({
25
- attribute: "hide-scroll-up-button",
26
- reflect: !0,
27
- type: Boolean
28
- })], v = [o()], e(this, null, h, {
29
- kind: "accessor",
30
- name: "hideScrollUpButton",
31
- static: !1,
32
- private: !1,
33
- access: {
34
- has: (e) => "hideScrollUpButton" in e,
35
- get: (e) => e.hideScrollUpButton,
36
- set: (e, t) => {
37
- e.hideScrollUpButton = t;
38
- }
39
- },
40
- metadata: t
41
- }, g, _), e(this, null, v, {
42
- kind: "accessor",
43
- name: "_scrollUpButtonVisible",
44
- static: !1,
45
- private: !1,
46
- access: {
47
- has: (e) => "_scrollUpButtonVisible" in e,
48
- get: (e) => e._scrollUpButtonVisible,
49
- set: (e, t) => {
50
- e._scrollUpButtonVisible = t;
51
- }
52
- },
53
- metadata: t
54
- }, y, b), t && Object.defineProperty(this, Symbol.metadata, {
55
- enumerable: !0,
56
- configurable: !0,
57
- writable: !0,
58
- value: t
59
- });
60
- }
61
- static {
62
- this.elementName = "sbb-map-container";
63
- }
64
- static {
65
- this.styles = [u, m];
66
- }
67
- #e;
68
- get hideScrollUpButton() {
69
- return this.#e;
70
- }
71
- set hideScrollUpButton(e) {
72
- this.#e = e;
73
- }
74
- #t;
75
- get _scrollUpButtonVisible() {
76
- return this.#t;
77
- }
78
- set _scrollUpButtonVisible(e) {
79
- this.#t = e;
80
- }
81
- willUpdate(e) {
82
- if (super.willUpdate(e), e.has("hideScrollUpButton")) {
83
- let e = this._intersector();
84
- !this.hideScrollUpButton && e ? this._observer.observe(e) : e && this._observer.unobserve(e);
85
- }
86
- }
87
- firstUpdated(e) {
88
- super.firstUpdated(e), this.hideScrollUpButton || this._observer.observe(this._intersector());
89
- }
90
- _intersector() {
91
- return this.shadowRoot?.querySelector("#intersector") ?? null;
92
- }
93
- _onScrollButtonClick() {
94
- this.scrollIntoView({ behavior: "smooth" });
95
- }
96
- _toggleButtonVisibilityOnIntersect(e) {
97
- e.forEach((e) => {
98
- let t = !e.isIntersecting;
99
- this.toggleState("scroll-up-button-visible", t), this._scrollUpButtonVisible = t;
100
- });
101
- }
102
- render() {
103
- return r`
104
- <div class="sbb-map-container__map">
105
- <slot name="map"></slot>
106
- </div>
107
- <div class="sbb-map-container__sidebar" @scroll=${(e) => l(e, document)}>
108
- <span id="intersector"></span>
109
-
110
- <slot></slot>
111
-
112
- ${this.hideScrollUpButton ? i : r`<sbb-accent-button
113
- class="sbb-map-container__sidebar-button"
114
- size="l"
115
- icon-name="location-pin-map-small"
116
- type="button"
117
- @click=${() => this._onScrollButtonClick()}
118
- ?inert=${!this._scrollUpButtonVisible}
119
- >
120
- ${f[this._language.current]}
121
- </sbb-accent-button>`}
122
- </div>
123
- `;
124
- }
125
- };
126
- })();
127
- //#endregion
128
- export { h as t };
@@ -1,29 +0,0 @@
1
- import { css as e } from "lit";
2
- import { SbbDisabledMixin as t } from "./core/mixins.js";
3
- import { boxSizingStyles as n } from "./core/styles.js";
4
- import { html as r } from "lit/static-html.js";
5
- import { SbbIconNameMixin as i } from "./icon.js";
6
- //#region src/elements/menu/common/menu-action.scss?lit&inline
7
- var a = e`:host{--sbb-menu-action-cursor:var(--sbb-cursor-pointer);display:block;outline:none!important}@media (any-hover:hover){:host(:is(:hover:not([disabled],:disabled,[disabled-interactive]),[aria-expanded=true])){--sbb-menu-background-color:var(--lightningcss-light,var(--sbb-color-iron))var(--lightningcss-dark,var(--sbb-color-milk));--sbb-menu-action-forced-color-border-color:Highlight}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-cursor:var(--sbb-cursor-default);--sbb-menu-action-color:var(--lightningcss-light,var(--sbb-color-graphite))var(--lightningcss-dark,var(--sbb-color-granite));--sbb-menu-action-forced-color-border-color:GrayText;pointer-events:none;cursor:var(--sbb-cursor-default)}@media (forced-colors:active){:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-menu-action-color:GrayText}}:host(:is(:state(sbb-menu-trigger),[state--sbb-menu-trigger])){--sbb-menu-action-cursor:var(--sbb-cursor-default)}@media (forced-colors:active){:host(:is(:state(button),[state--button])){--sbb-menu-action-color:ButtonText}}:host([sbb-badge]:not(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{translate:50% -50%;inset:50% calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - .5 * var(--sbb-size-icon-ui-small)) auto auto!important}:host([sbb-badge]:is(:is(:state(has-icon-name),[state--has-icon-name]),:is(:state(slotted-icon),[state--slotted-icon]))):after{inset:calc(var(--sbb-menu-action-outer-vertical-padding) + var(--sbb-menu-action-content-padding-block) + var(--sbb-badge-position-offset)) calc(100% - var(--sbb-menu-action-outer-horizontal-padding) - var(--sbb-menu-action-content-padding-inline) - var(--sbb-size-icon-ui-small) + var(--sbb-badge-position-offset)) auto auto!important}:host([aria-controls*=sbb-menu]){--sbb-menu-action-submenu-icon-display:flex}:is(.sbb-menu-button,.sbb-menu-link){width:100%;color:var(--sbb-menu-action-color);padding:var(--sbb-menu-action-outer-vertical-padding) var(--sbb-menu-action-outer-horizontal-padding);cursor:var(--sbb-menu-action-cursor);outline:none;text-decoration:none;display:block}.sbb-menu-action__content{--sbb-text-font-size:var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);align-items:center;gap:var(--sbb-menu-action-gap);padding:var(--sbb-menu-action-content-padding-block) var(--sbb-menu-action-content-padding-inline);border-radius:var(--sbb-menu-action-border-radius);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background-color:var(--sbb-menu-background-color);display:flex}:host(:focus-visible) .sbb-menu-action__content,:focus-visible .sbb-menu-action__content{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style,solid) var(--sbb-focus-outline-width)}@media (forced-colors:active){.sbb-menu-action__content{border:var(--sbb-border-width-2x) solid var(--sbb-menu-action-forced-color-border-color)}}.sbb-menu-action__icon,.sbb-menu-submenu__icon{min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small);display:flex}.sbb-menu-submenu__icon{display:var(--sbb-menu-action-submenu-icon-display,none);margin-inline-start:auto}.sbb-menu-action__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host(:is([disabled],:disabled,[disabled-interactive])) .sbb-menu-action__label{text-decoration:line-through}`, o = (e) => {
8
- class o extends i(t(e)) {
9
- static {
10
- this.styles = [n, a];
11
- }
12
- renderTemplate() {
13
- return r`
14
- <span class="sbb-menu-action__content">
15
- <span class="sbb-menu-action__icon"> ${super.renderIconSlot()} </span>
16
- <span class="sbb-menu-action__label">
17
- <slot></slot>
18
- </span>
19
- <span class="sbb-menu-submenu__icon">
20
- <sbb-icon name="chevron-small-right-small"></sbb-icon>
21
- </span>
22
- </span>
23
- `;
24
- }
25
- }
26
- return o;
27
- };
28
- //#endregion
29
- export { o as t };
@@ -1,64 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { css as n } from "lit";
3
- import { property as r } from "lit/decorators.js";
4
- import { isLean as i } from "./core/dom.js";
5
- import { boxSizingStyles as a } from "./core/styles.js";
6
- import { html as o } from "lit/static-html.js";
7
- import "./icon.js";
8
- //#region src/elements/navigation/common/navigation-action.scss?lit&inline
9
- var s = n`:host{--sbb-navigation-action-color:var(--sbb-color-4-negative);--sbb-navigation-action-icon-display:none;display:block;outline:none!important}:host(:is(:state(section-action),[state--section-action]):is(:state(action-active),[state--action-active]).sbb-active){--sbb-navigation-action-icon-display:block}:host(:is(:state(action-active),[state--action-active])){--sbb-navigation-action-color:var(--sbb-color-5)}@media (forced-colors:active){:host(:is(:state(action-active),[state--action-active])){--sbb-navigation-action-color:Highlight}}sbb-icon{display:var(--sbb-navigation-action-icon-display);position:absolute;inset-block-start:calc(1em * var(--sbb-typo-line-height-text) / 2);inset-inline-start:calc((var(--sbb-size-icon-ui-small) + var(--sbb-spacing-fixed-1x)) * -1);translate:0 -50%}@media (any-hover:hover){:host(:hover){--sbb-navigation-action-color:var(--sbb-color-5)}}@media (forced-colors:active){:host(:is(:state(button),[state--button])){--sbb-navigation-action-color:ButtonText}}:is(.sbb-navigation-button,.sbb-navigation-link){--sbb-title-font-size:var(--sbb-title-font-size-level-4-lean,var(--sbb-heading-font-size-4));margin-block:var(--sbb-title-margin-block,0);font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height,var(--sbb-typo-line-height-heading));letter-spacing:var(--sbb-typo-letter-spacing-heading);font-size:var(--sbb-title-font-size);cursor:var(--sbb-cursor-pointer);-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:color var(--sbb-disable-animation-duration,var(--sbb-animation-duration-3x)) ease;-webkit-hyphens:auto;hyphens:auto;text-align:left;color:var(--sbb-navigation-action-color);outline:none;margin-inline:0;text-decoration:none;display:flex;position:relative}@media (forced-colors:active){:is(.sbb-navigation-button,.sbb-navigation-link){transition:none}}:host([size=m]) :is(.sbb-navigation-button,.sbb-navigation-link){--sbb-text-font-size:var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700}:host([size=s]) :is(.sbb-navigation-button,.sbb-navigation-link){--sbb-text-font-size:var(--sbb-text-font-size-xxs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700}:host(:focus-visible) :is(.sbb-navigation-button,.sbb-navigation-link),:is(.sbb-navigation-button,.sbb-navigation-link):focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style,solid) var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}`, c = (n) => (() => {
10
- let c = n, l, u = [], d = [];
11
- return class extends c {
12
- static {
13
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(c[Symbol.metadata] ?? null) : void 0;
14
- l = [r({ reflect: !0 })], e(this, null, l, {
15
- kind: "accessor",
16
- name: "size",
17
- static: !1,
18
- private: !1,
19
- access: {
20
- has: (e) => "size" in e,
21
- get: (e) => e.size,
22
- set: (e, t) => {
23
- e.size = t;
24
- }
25
- },
26
- metadata: t
27
- }, u, d), t && Object.defineProperty(this, Symbol.metadata, {
28
- enumerable: !0,
29
- configurable: !0,
30
- writable: !0,
31
- value: t
32
- });
33
- }
34
- static {
35
- this.styles = [a, s];
36
- }
37
- #e;
38
- get size() {
39
- return this.#e;
40
- }
41
- set size(e) {
42
- this.#e = e;
43
- }
44
- get marker() {
45
- return this._navigationMarker;
46
- }
47
- get section() {
48
- return this._navigationSection;
49
- }
50
- constructor(...e) {
51
- super(...e), this.#e = t(this, u, i() ? "s" : "l"), this.connectedSection = t(this, d), this._navigationMarker = null, this._navigationSection = null, this.addEventListener?.("click", () => {
52
- !this.matches(":is(:state(action-active),[state--action-active])") && this._navigationMarker && !this.connectedSection && this.marker?.select(this);
53
- });
54
- }
55
- connectedCallback() {
56
- super.connectedCallback(), this._navigationMarker = this.closest("sbb-navigation-marker"), this._navigationSection = this.closest("sbb-navigation-section"), this.toggleState("section-action", !!this._navigationSection);
57
- }
58
- renderTemplate() {
59
- return o`<sbb-icon name="dash-small"></sbb-icon> <slot></slot>`;
60
- }
61
- };
62
- })();
63
- //#endregion
64
- export { c as t };
@@ -1,197 +0,0 @@
1
- import { __esDecorate as e, __runInitializers as t } from "tslib";
2
- import { css as n, html as r, nothing as i } from "lit";
3
- import { property as a } from "lit/decorators.js";
4
- import { SbbElement as o } from "./core/base-elements.js";
5
- import { isLean as s, isZeroAnimationDuration as c } from "./core/dom.js";
6
- import { SbbReadonlyMixin as l } from "./core/mixins.js";
7
- import { boxSizingStyles as u } from "./core/styles.js";
8
- import { SbbLanguageController as d } from "./core/controllers.js";
9
- import { i18nCloseNotification as f } from "./core/i18n.js";
10
- import { SbbIconNameMixin as p } from "./icon.js";
11
- import "./divider.js";
12
- import { ResizeController as m } from "@lit-labs/observers/resize-controller.js";
13
- import "./button/secondary-button.js";
14
- //#region src/elements/notification/notification.scss?lit&inline
15
- var h = n`:host{--sbb-notification-border:var(--sbb-notification-border-width) solid var(--sbb-notification-type-color);--sbb-notification-background-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-notification-type-color) 5%, white))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-notification-type-color) 35%, white));--sbb-notification-icon-color:var(--sbb-notification-type-color);--sbb-notification-border-radius-start:calc(var(--sbb-notification-base-border-radius) / 2);--sbb-notification-animation-duration:var(--sbb-disable-animation-duration,var(--sbb-animation-duration-4x));--_sbb-notification-icon-authoritative-font-size:1em;--_sbb-notification-icon-authoritative-line-height:var(--sbb-typo-line-height-text);--_sbb-notification-inset-inline-start:calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width));--sbb-focus-outline-color:var(--sbb-focus-outline-color-default);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-notification-font-size);display:block}:host(:is(:state(state-opening),[state--state-opening]):not([animation=open],[animation=all])),:host(:is(:state(state-closing),[state--state-closing]):not([animation=close],[animation=all])),:host(:is(:state(resize-disable-animation),[state--resize-disable-animation])){--sbb-disable-animation-duration:0s}:host(:is(:state(slotted-title),[state--slotted-title])){--_sbb-notification-icon-authoritative-font-size:var(--sbb-heading-font-size-5);--_sbb-notification-icon-authoritative-line-height:var(--sbb-typo-line-height-heading)}:host(:is(:state(slotted-title),[state--slotted-title])[size=s]){--_sbb-notification-icon-authoritative-font-size:var(--sbb-heading-font-size-6);--_sbb-notification-icon-authoritative-line-height:var(--sbb-typo-line-height-text)}:host([size=m]){--sbb-notification-font-size:var(--sbb-text-font-size-s);--sbb-notification-padding-block:var(--sbb-spacing-responsive-xxs);--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xs);--sbb-notification-content-padding-inline:var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xs)}:host([size=s]){--sbb-notification-font-size:var(--sbb-text-font-size-xs);--sbb-notification-padding-block:var(--sbb-spacing-responsive-xxxs);--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs);--sbb-notification-content-padding-inline:var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xxs)}@media (width>=37.5rem){:host([size=s]){--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xxs)}}:host(:is(:not([type]),[type=info])){--sbb-notification-type-color:var(--sbb-color-smoke);--sbb-notification-icon-color:var(--sbb-notification-color);--sbb-notification-divider-opacity-light:20%;--sbb-notification-divider-opacity-dark:20%}:host([type=note]){--sbb-notification-type-color:var(--sbb-color-sky);--sbb-notification-divider-opacity-light:20%;--sbb-notification-divider-opacity-dark:20%}:host([type=success]){--sbb-notification-type-color:var(--sbb-color-success);--sbb-notification-divider-opacity-light:15%;--sbb-notification-divider-opacity-dark:30%}:host([type=warn]){--sbb-notification-type-color:var(--sbb-color-warning);--sbb-notification-icon-color:var(--sbb-notification-color);--sbb-notification-divider-opacity-light:25%;--sbb-notification-divider-opacity-dark:40%}:host([type=error]){--sbb-notification-type-color:var(--sbb-color-error);--sbb-notification-divider-opacity-light:10%;--sbb-notification-divider-opacity-dark:25%}.sbb-notification__wrapper{width:calc(100% - var(--_sbb-notification-inset-inline-start));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius-start) var(--sbb-notification-base-border-radius) var(--sbb-notification-base-border-radius) var(--sbb-notification-border-radius-start);opacity:0;max-height:0;margin:0;position:relative;inset-inline-start:var(--_sbb-notification-inset-inline-start)}.sbb-notification__wrapper:before{content:"";inset:calc(var(--sbb-notification-border-width) * -1) var(--sbb-notification-base-border-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-border-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-border-radius);position:absolute}:host(:is(:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-notification__wrapper{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin,0)}:host(:is(:state(state-opening),[state--state-opening])) .sbb-notification__wrapper{animation-name:open;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-notification__wrapper{animation-name:close,close-height;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function);animation-delay:0s, var(--sbb-disable-animation-duration,var(--sbb-animation-duration-2x))}.sbb-notification{padding-block:var(--sbb-notification-padding-block);padding-inline:var(--sbb-notification-padding-inline);color:var(--sbb-notification-color);border-radius:var(--sbb-notification-border-radius-start) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) var(--sbb-notification-border-radius-start);background-color:var(--sbb-notification-background-color);grid-template-columns:1fr auto;align-items:center;display:grid;position:relative;overflow:hidden}@media (width>=37.5rem){.sbb-notification{grid-template-columns:auto 1fr auto auto}}.sbb-notification__icon,::slotted(sbb-icon){color:var(--sbb-notification-icon-color);align-self:var(--sbb-notification-icon-align-self);--sbb-icon-svg-width:var(--sbb-notification-icon-size)}@media (width>=37.5rem){.sbb-notification__icon,::slotted(sbb-icon){margin-block-start:max(0rem, (var(--_sbb-notification-icon-authoritative-font-size) * var(--_sbb-notification-icon-authoritative-line-height) - var(--sbb-size-icon-ui-small)) / 2)}}.sbb-notification__content{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;order:3;grid-area:2/1/3/3;margin-block-start:var(--sbb-notification-content-margin-block-start)}@media (width>=37.5rem){.sbb-notification__content{order:initial;grid-area:initial;padding-inline:var(--sbb-notification-content-padding-inline);margin-block-start:0}}.sbb-notification__text{margin:0;padding:0;display:inline}.sbb-notification__divider{--sbb-divider-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-light), var(--sbb-notification-background-color)))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-dark), var(--sbb-notification-background-color)));display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x)}@media (width>=37.5rem){.sbb-notification__divider{height:calc(100% - var(--sbb-spacing-fixed-1x) * 2);margin-inline-end:var(--sbb-notification-close-wrapper-gap);display:block}}@keyframes open{0%{opacity:0;max-height:0;margin:0}to{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin,0)}}@keyframes close{0%{opacity:1;margin:var(--sbb-notification-margin,0)}to{opacity:0;margin:0}}@keyframes close-height{0%{max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2)}to{max-height:0}}::slotted(sbb-title){margin:0}`, g = new Map([
16
- ["info", "circle-information-small"],
17
- ["note", "circle-information-small"],
18
- ["success", "circle-tick-small"],
19
- ["warn", "circle-exclamation-point-small"],
20
- ["error", "circle-cross-small"]
21
- ]), _ = 150, v = (() => {
22
- let n = p(l(o)), v, y = [], b = [], x, S = [], C = [], w, T = [], E = [];
23
- return class extends n {
24
- static {
25
- let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
26
- v = [a({ reflect: !0 })], x = [a({ reflect: !0 })], w = [a({ reflect: !0 })], e(this, null, v, {
27
- kind: "accessor",
28
- name: "type",
29
- static: !1,
30
- private: !1,
31
- access: {
32
- has: (e) => "type" in e,
33
- get: (e) => e.type,
34
- set: (e, t) => {
35
- e.type = t;
36
- }
37
- },
38
- metadata: t
39
- }, y, b), e(this, null, x, {
40
- kind: "accessor",
41
- name: "size",
42
- static: !1,
43
- private: !1,
44
- access: {
45
- has: (e) => "size" in e,
46
- get: (e) => e.size,
47
- set: (e, t) => {
48
- e.size = t;
49
- }
50
- },
51
- metadata: t
52
- }, S, C), e(this, null, w, {
53
- kind: "accessor",
54
- name: "animation",
55
- static: !1,
56
- private: !1,
57
- access: {
58
- has: (e) => "animation" in e,
59
- get: (e) => e.animation,
60
- set: (e, t) => {
61
- e.animation = t;
62
- }
63
- },
64
- metadata: t
65
- }, T, E), t && Object.defineProperty(this, Symbol.metadata, {
66
- enumerable: !0,
67
- configurable: !0,
68
- writable: !0,
69
- value: t
70
- });
71
- }
72
- static {
73
- this.elementName = "sbb-notification";
74
- }
75
- static {
76
- this.styles = [u, h];
77
- }
78
- static {
79
- this.events = {
80
- beforeopen: "beforeopen",
81
- open: "open",
82
- beforeclose: "beforeclose",
83
- close: "close"
84
- };
85
- }
86
- #e;
87
- get type() {
88
- return this.#e;
89
- }
90
- set type(e) {
91
- this.#e = e;
92
- }
93
- #t;
94
- get size() {
95
- return this.#t;
96
- }
97
- set size(e) {
98
- this.#t = e;
99
- }
100
- #n;
101
- get animation() {
102
- return this.#n;
103
- }
104
- set animation(e) {
105
- this.#n = e;
106
- }
107
- set _state(e) {
108
- this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = e, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
109
- }
110
- get _state() {
111
- return this._stateInternal;
112
- }
113
- constructor() {
114
- super(), this.#e = t(this, y, "info"), this.#t = (t(this, b), t(this, S, s() ? "s" : "m")), this.#n = (t(this, C), t(this, T, "all")), this._stateInternal = t(this, E), this._resizeObserverTimeout = null, this._language = new d(this), this._notificationResizeObserver = new m(this, {
115
- target: null,
116
- skipInitial: !0,
117
- callback: () => this._onNotificationResize()
118
- }), this._state = "closed";
119
- }
120
- willUpdate(e) {
121
- super.willUpdate(e), e.has("size") && this._configureTitle();
122
- }
123
- _open() {
124
- this._state === "closed" && (this._state = "opening", this.dispatchEvent(new Event("beforeopen")), this._isZeroAnimationDuration() && this._handleOpening());
125
- }
126
- close() {
127
- this._state === "opened" && this._dispatchBeforeCloseEvent() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
128
- }
129
- _dispatchBeforeCloseEvent() {
130
- return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
131
- }
132
- firstUpdated(e) {
133
- super.firstUpdated(e), this._notificationElement = this.shadowRoot?.querySelector(".sbb-notification__wrapper"), this.updateComplete.then(() => {
134
- this._setNotificationHeight(), this._open();
135
- });
136
- }
137
- _isZeroAnimationDuration() {
138
- return c(this, "--sbb-notification-animation-duration");
139
- }
140
- _setNotificationHeight() {
141
- if (!this._notificationElement?.scrollHeight) return;
142
- let e = `${this._notificationElement.scrollHeight}px`;
143
- this.style.setProperty("--sbb-notification-height", e);
144
- }
145
- _onNotificationResize() {
146
- this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.internals.states.add("resize-disable-animation"), this._resizeObserverTimeout = setTimeout(() => this.internals.states.delete("resize-disable-animation"), _), setTimeout(() => this._setNotificationHeight()));
147
- }
148
- _onNotificationAnimationEnd(e) {
149
- this._state === "opening" && e.animationName === "open" && this._handleOpening(), this._state === "closing" && e.animationName === "close-height" && this._handleClosing();
150
- }
151
- _handleOpening() {
152
- this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.dispatchEvent(new Event("open"));
153
- }
154
- _handleClosing() {
155
- this._state = "closed", this.dispatchEvent(new Event("close")), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
156
- }
157
- _handleSlotchange() {
158
- let e = Array.from(this.children).find((e) => e.localName === "sbb-title");
159
- e && (e.slot = "title");
160
- }
161
- _configureTitle() {
162
- let e = this.querySelector?.("sbb-title");
163
- e && (customElements.upgrade(e), e.visualLevel = this.size === "m" ? "5" : "6");
164
- }
165
- renderIconName() {
166
- return super.renderIconName() || g.get(this.type);
167
- }
168
- render() {
169
- return r`
170
- <div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
171
- <div class="sbb-notification">
172
- ${this.renderIconSlot("sbb-notification__icon")}
173
- <span class="sbb-notification__content">
174
- <slot name="title" @slotchange=${this._configureTitle}></slot>
175
- <p class="sbb-notification__text">
176
- <slot @slotchange=${this._handleSlotchange}></slot>
177
- </p>
178
- </span>
179
-
180
- ${this.readOnly ? i : r`
181
- <sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
182
- <sbb-secondary-button
183
- size=${this.size}
184
- icon-name="cross-small"
185
- @click=${() => this.close()}
186
- aria-label=${f[this._language.current]}
187
- class="sbb-notification__close"
188
- ></sbb-secondary-button>
189
- `}
190
- </div>
191
- </div>
192
- `;
193
- }
194
- };
195
- })();
196
- //#endregion
197
- export { v as t };
@@ -1,23 +0,0 @@
1
- import { css as e, html as t } from "lit";
2
- import { SbbElement as n } from "./core/base-elements.js";
3
- import { SbbNegativeMixin as r } from "./core/mixins.js";
4
- import { boxSizingStyles as i } from "./core/styles.js";
5
- //#region src/elements/option/option-hint/option-hint.scss?lit&inline
6
- var a = e`:host{column-gap:var(--sbb-option-hint-column-gap);padding-inline:var(--sbb-option-hint-padding-inline);font-size:var(--sbb-option-hint-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);padding-block-end:var(--sbb-option-hint-padding-block-end);display:flex}:host([negative]){--sbb-option-hint-color:var(--sbb-color-5)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display,none);min-width:var(--sbb-size-icon-ui-small)}.sbb-option-hint{color:var(--sbb-option-hint-color);-webkit-text-fill-color:var(--sbb-option-hint-color);flex-grow:1}`, o = class extends r(n) {
7
- static {
8
- this.elementName = "sbb-option-hint";
9
- }
10
- static {
11
- this.styles = [i, a];
12
- }
13
- render() {
14
- return t`
15
- <div class="sbb-optgroup__icon-space"></div>
16
- <span class="sbb-option-hint">
17
- <slot></slot>
18
- </span>
19
- `;
20
- }
21
- };
22
- //#endregion
23
- export { o as t };
@@ -1,98 +0,0 @@
1
- import { SbbOptionBaseElement as e } from "./option/option/option-base-element.js";
2
- import { css as t, html as n, nothing as r } from "lit";
3
- import { boxSizingStyles as i } from "./core/styles.js";
4
- import { SbbPropertyWatcherController as a } from "./core/controllers.js";
5
- import "./visual-checkbox.js";
6
- //#region src/elements/option/option/option.scss?lit&inline
7
- var o = t`:host{background-color:var(--sbb-option-background-color);font-size:var(--sbb-option-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);display:block}:host(:is(:state(negative),[state--negative])){--sbb-option-color:var(--sbb-color-3-negative);--sbb-option-icon-color:var(--sbb-color-5);--sbb-option-background-color-hover:var(--sbb-background-color-3-negative);--sbb-option-background-color-active:var(--sbb-background-color-4-negative);--sbb-option-disabled-border-color:var(--sbb-border-color-5);--sbb-option-disabled-background-color:var(--sbb-background-color-3-negative);--sbb-focus-outline-color:var(--sbb-focus-outline-color-dark)}@media (any-hover:hover){:host(:hover:not(:is(:state(disabled),[state--disabled]))){--sbb-option-background-color:var(--sbb-option-background-color-hover)}}:host(:active:not(:is(:state(disabled),[state--disabled]))){--sbb-option-background-color:var(--sbb-option-background-color-active)}:host(:not(:is(:state(disable-highlight),[state--disable-highlight]))) .sbb-option__label slot{display:none}:host(:is(:state(disabled),[state--disabled])){--sbb-option-cursor:var(--sbb-cursor-default)}@media (forced-colors:active){:host(:is(:state(disabled),[state--disabled])){--sbb-option-color:GrayText}}:host(:is(:state(variant-select),[state--variant-select])){--sbb-option-column-gap:var(--sbb-spacing-fixed-2x);--sbb-option-justify-content:space-between}:host(:is(:state(variant-select),[state--variant-select]):is(:state(multiple),[state--multiple])){--sbb-option-justify-content:start}:host(:is(:state(active),[state--active])){--sbb-option-focus-outline-color:var(--sbb-focus-outline-color)}:host(:not(:is(:state(disabled),[state--disabled]))) .sbb-option__label--highlight{font-weight:700}@media (forced-colors:active){:host(:not(:is(:state(disabled),[state--disabled]))) .sbb-option__label--highlight{color:highlight}}.sbb-option{min-height:var(--sbb-option-min-height);align-items:center;column-gap:var(--sbb-option-column-gap);padding-inline:var(--sbb-option-padding-inline);justify-content:var(--sbb-option-justify-content);color:var(--sbb-option-color);cursor:var(--sbb-option-cursor);-webkit-tap-highlight-color:transparent;-webkit-text-fill-color:var(--sbb-option-color);display:flex;position:relative}.sbb-option:after{content:"";inset:var(--sbb-option-focus-outline-inset);pointer-events:none;border:var(--sbb-focus-outline-width) solid var(--sbb-option-focus-outline-color);border-radius:var(--sbb-option-border-radius);display:block;position:absolute}:host(:is(:state(disabled),[state--disabled]):not(:is(:state(multiple),[state--multiple]))) .sbb-option{z-index:0;position:relative}:host(:is(:state(disabled),[state--disabled]):not(:is(:state(multiple),[state--multiple]))) .sbb-option:before{content:"";border:var(--sbb-border-width-1x) dashed var(--sbb-option-disabled-border-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-option-disabled-background-color);z-index:-1;display:block;position:absolute;inset:.375rem}@media (forced-colors:active){:host(:is(:state(disabled),[state--disabled]):not(:is(:state(multiple),[state--multiple]))) .sbb-option:before{border-color:graytext}}.sbb-option__icon{min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small);color:var(--sbb-option-icon-color);display:flex}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-option__icon{display:var(--sbb-option-icon-container-display,none)}.sbb-option__label{text-overflow:var(--sbb-option-text-overflow);overflow:var(--sbb-option-overflow);white-space:var(--sbb-option-white-space,initial)}`, s = class extends e {
8
- static {
9
- this.elementName = "sbb-option";
10
- }
11
- static {
12
- this.role = "option";
13
- }
14
- static {
15
- this.styles = [i, o];
16
- }
17
- static {
18
- this.events = {
19
- optionselectionchange: "optionselectionchange",
20
- optionselected: "optionselected"
21
- };
22
- }
23
- set _variant(e) {
24
- this._variantInternal && this.internals.states.delete(`variant-${this._variantInternal}`), this._variantInternal = e, this._variantInternal && this.internals.states.add(`variant-${this._variantInternal}`);
25
- }
26
- get _variant() {
27
- return this._variantInternal ?? null;
28
- }
29
- constructor() {
30
- super(), this.optionId = "sbb-option", this.addController(new a(this, () => this.closest("sbb-optgroup"), {
31
- disabled: (e) => this.disabledFromGroup = e.disabled,
32
- label: (e) => this.groupLabel = e.label
33
- })), this.addController(new a(this, () => this.closest("sbb-autocomplete"), { negative: (e) => this._handleNegativeChange(e) })), this.addController(new a(this, () => this.closest("sbb-select"), {
34
- multiple: (e) => {
35
- this.toggleState("multiple", e.multiple), this.requestUpdate();
36
- },
37
- negative: (e) => this._handleNegativeChange(e)
38
- }));
39
- }
40
- _isMultiple() {
41
- return !this.hydrationRequired && this.internals.states.has("multiple");
42
- }
43
- _handleNegativeChange(e) {
44
- this.toggleState("negative", e.negative), this.requestUpdate();
45
- }
46
- connectedCallback() {
47
- super.connectedCallback(), this.hydrationRequired ? this.hydrationComplete.then(() => this._init()) : this._init();
48
- }
49
- _init() {
50
- this._setVariantByContext(), this.handleHighlightState();
51
- }
52
- selectByClick(e) {
53
- if (this.disabled || this.disabledFromGroup) {
54
- e.stopPropagation();
55
- return;
56
- }
57
- this._isMultiple() ? (e.stopPropagation(), this.selectViaUserInteraction(!this.selected)) : this.selectViaUserInteraction(!0);
58
- }
59
- selectViaUserInteraction(e) {
60
- super.selectViaUserInteraction(e), this.dispatchEvent(new Event("optionselectionchange", {
61
- bubbles: !0,
62
- composed: !0
63
- }));
64
- }
65
- _setVariantByContext() {
66
- this.closest?.("sbb-autocomplete") ? this._variant = "autocomplete" : this.closest?.("sbb-select") && (this._variant = "select");
67
- }
68
- handleHighlightState() {
69
- if (this._variant !== "autocomplete") {
70
- this.updateDisableHighlight(!0);
71
- return;
72
- }
73
- super.handleHighlightState();
74
- }
75
- renderIcon() {
76
- return n`
77
- <!-- Icon -->
78
- ${this._isMultiple() ? r : n` <span class="sbb-option__icon"> ${this.renderIconSlot()} </span>`}
79
-
80
- <!-- Checkbox -->
81
- ${this._isMultiple() ? n`
82
- <sbb-visual-checkbox
83
- ?checked=${this.selected}
84
- ?disabled=${this.disabled || this.disabledFromGroup}
85
- ?negative=${this.matches?.(":is(:state(negative),[state--negative])")}
86
- ></sbb-visual-checkbox>
87
- ` : r}
88
- `;
89
- }
90
- renderLabel() {
91
- return this._variant === "autocomplete" ? super.renderLabel() : r;
92
- }
93
- renderTick() {
94
- return this._variant === "select" && !this._isMultiple() && this.selected ? n`<sbb-icon name="tick-small"></sbb-icon>` : r;
95
- }
96
- };
97
- //#endregion
98
- export { s as t };