@sbb-esta/lyne-elements 4.0.0-next → 4.0.0-next.2

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 (309) hide show
  1. package/alert/alert/alert.component.js +5 -5
  2. package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +6 -6
  3. package/badge.css +3 -3
  4. package/breadcrumb/breadcrumb/breadcrumb.component.js +4 -4
  5. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  6. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  7. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -5
  8. package/button/common.js +1 -1
  9. package/button/mini-button/mini-button.component.js +1 -1
  10. package/button.js +1 -1
  11. package/calendar/calendar.component.d.ts +1 -0
  12. package/calendar/calendar.component.d.ts.map +1 -1
  13. package/calendar/calendar.component.js +2 -2
  14. package/card/card-badge/card-badge.component.js +7 -7
  15. package/card/card-button/card-button.component.d.ts +1 -1
  16. package/card/card-link/card-link.component.d.ts +1 -1
  17. package/card/common/card-action-common.d.ts.map +1 -1
  18. package/card/common/card-action-common.js +5 -10
  19. package/carousel/carousel/carousel.component.d.ts +2 -1
  20. package/carousel/carousel/carousel.component.d.ts.map +1 -1
  21. package/carousel/carousel/carousel.component.js +33 -28
  22. package/carousel/carousel-list/carousel-list.component.d.ts +1 -1
  23. package/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
  24. package/carousel/carousel-list/carousel-list.component.js +17 -22
  25. package/checkbox/checkbox/checkbox.component.d.ts +1 -1
  26. package/checkbox/common.js +1 -1
  27. package/checkbox-common-CrwfdL9V.js +5 -0
  28. package/checkbox.js +1 -1
  29. package/chip/chip/chip.component.js +3 -3
  30. package/chip-label/chip-label.component.js +8 -8
  31. package/core/a11y/interactivity-checker.js +0 -7
  32. package/core/a11y/live-announcer.js +0 -7
  33. package/core/config/config.d.ts +5 -0
  34. package/core/config/config.d.ts.map +1 -1
  35. package/core/controllers/media-matchers-controller.d.ts.map +1 -1
  36. package/core/controllers/media-matchers-controller.js +27 -27
  37. package/core/datetime/native-date-adapter.d.ts +1 -0
  38. package/core/datetime/native-date-adapter.d.ts.map +1 -1
  39. package/core/datetime/native-date-adapter.js +1 -1
  40. package/core/dom/breakpoint.d.ts +1 -0
  41. package/core/dom/breakpoint.d.ts.map +1 -1
  42. package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  43. package/core/styles/core.scss +67 -69
  44. package/core/styles/mixins/chip.scss +4 -4
  45. package/core/styles/mixins/lists.scss +3 -3
  46. package/core/styles/mixins/panel.scss +2 -2
  47. package/core/styles/mixins/typo.scss +42 -40
  48. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables-as-css.scss +166 -38
  49. package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +4 -4
  50. package/core/styles/typography.scss +6 -6
  51. package/core.css +92 -100
  52. package/custom-elements.json +1565 -1739
  53. package/date-input/date-input.component.d.ts +1 -0
  54. package/date-input/date-input.component.d.ts.map +1 -1
  55. package/date-input/date-input.component.js +1 -0
  56. package/development/alert/alert/alert.component.js +7 -5
  57. package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +3 -3
  58. package/development/breadcrumb/breadcrumb/breadcrumb.component.js +3 -3
  59. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +1 -0
  60. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
  61. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -5
  62. package/development/button/common.js +1 -1
  63. package/development/button/mini-button/mini-button.component.js +2 -2
  64. package/development/button.js +1 -1
  65. package/development/calendar/calendar.component.d.ts +1 -0
  66. package/development/calendar/calendar.component.d.ts.map +1 -1
  67. package/development/calendar/calendar.component.js +17 -17
  68. package/development/card/card-badge/card-badge.component.js +3 -3
  69. package/development/card/card-button/card-button.component.d.ts +1 -1
  70. package/development/card/card-link/card-link.component.d.ts +1 -1
  71. package/development/card/common/card-action-common.d.ts.map +1 -1
  72. package/development/card/common/card-action-common.js +14 -7
  73. package/development/carousel/carousel/carousel.component.d.ts +2 -1
  74. package/development/carousel/carousel/carousel.component.d.ts.map +1 -1
  75. package/development/carousel/carousel/carousel.component.js +19 -8
  76. package/development/carousel/carousel-list/carousel-list.component.d.ts +1 -1
  77. package/development/carousel/carousel-list/carousel-list.component.d.ts.map +1 -1
  78. package/development/carousel/carousel-list/carousel-list.component.js +7 -14
  79. package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
  80. package/development/checkbox/common.js +1 -1
  81. package/development/{checkbox-common-BZFJgZd7.js → checkbox-common-BKjxH3Rp.js} +12 -12
  82. package/development/checkbox.js +1 -1
  83. package/development/chip/chip/chip.component.js +3 -3
  84. package/development/chip-label/chip-label.component.js +6 -6
  85. package/development/core/a11y/interactivity-checker.js +1 -8
  86. package/development/core/a11y/live-announcer.js +1 -8
  87. package/development/core/config/config.d.ts +5 -0
  88. package/development/core/config/config.d.ts.map +1 -1
  89. package/development/core/config/config.js +1 -1
  90. package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
  91. package/development/core/controllers/media-matchers-controller.js +5 -6
  92. package/development/core/datetime/native-date-adapter.d.ts +1 -0
  93. package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
  94. package/development/core/datetime/native-date-adapter.js +2 -2
  95. package/development/core/dom/breakpoint.d.ts +1 -0
  96. package/development/core/dom/breakpoint.d.ts.map +1 -1
  97. package/development/core/dom/breakpoint.js +1 -1
  98. package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
  99. package/development/core/mixins/form-associated-input-mixin.js +1 -1
  100. package/development/date-input/date-input.component.d.ts +1 -0
  101. package/development/date-input/date-input.component.d.ts.map +1 -1
  102. package/development/date-input/date-input.component.js +2 -1
  103. package/development/dialog/dialog/dialog.component.d.ts +3 -4
  104. package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
  105. package/development/dialog/dialog/dialog.component.js +47 -112
  106. package/development/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
  107. package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  108. package/development/dialog/dialog-actions/dialog-actions.component.js +3 -7
  109. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
  110. package/development/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
  111. package/development/dialog/dialog-close-button/dialog-close-button.component.js +5 -5
  112. package/development/dialog/dialog-content/dialog-content.component.d.ts +1 -0
  113. package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  114. package/development/dialog/dialog-content/dialog-content.component.js +14 -2
  115. package/development/dialog/dialog-title/dialog-title.component.d.ts +0 -1
  116. package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  117. package/development/dialog/dialog-title/dialog-title.component.js +14 -7
  118. package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +3 -3
  119. package/development/file-selector/common.js +1 -1
  120. package/development/file-selector/file-selector/file-selector.component.d.ts +1 -1
  121. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
  122. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +8 -8
  123. package/development/{file-selector-common-CsFa5XJ-.js → file-selector-common-B-9Eiig3.js} +4 -4
  124. package/development/file-selector.js +1 -1
  125. package/development/footer/footer.component.js +3 -3
  126. package/development/form-error/form-error.component.js +5 -5
  127. package/development/form-field/form-field/form-field.component.js +14 -14
  128. package/development/header/common/header-action-common.js +3 -3
  129. package/development/header/header-button/header-button.component.d.ts +1 -1
  130. package/development/header/header-environment/header-environment.component.js +3 -3
  131. package/development/header/header-link/header-link.component.d.ts +1 -1
  132. package/development/image/image.component.d.ts +0 -1
  133. package/development/image/image.component.d.ts.map +1 -1
  134. package/development/image/image.component.js +11 -16
  135. package/development/link/common/block-link-common.js +10 -10
  136. package/development/menu/common/menu-action-common.js +3 -3
  137. package/development/message/message.component.js +6 -6
  138. package/development/{mini-button-common-Di32bSJj.js → mini-button-common-D1dU4MgN.js} +4 -4
  139. package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +3 -3
  140. package/development/navigation/common/navigation-action-common.js +11 -11
  141. package/development/navigation/navigation-button/navigation-button.component.d.ts +1 -1
  142. package/development/navigation/navigation-link/navigation-link.component.d.ts +1 -1
  143. package/development/navigation/navigation-list/navigation-list.component.js +3 -3
  144. package/development/navigation/navigation-marker/navigation-marker.component.js +9 -9
  145. package/development/navigation/navigation-section/navigation-section.component.js +5 -5
  146. package/development/notification/notification.component.js +7 -7
  147. package/development/option/optgroup/optgroup-base-element.js +3 -3
  148. package/development/option/option/option-base-element.d.ts.map +1 -1
  149. package/development/option/option/option-base-element.js +14 -4
  150. package/development/option/option/option.component.d.ts.map +1 -1
  151. package/development/option/option/option.component.js +8 -5
  152. package/development/option/option-hint/option-hint.component.js +3 -3
  153. package/development/paginator/common/paginator-common.d.ts.map +1 -1
  154. package/development/paginator/common/paginator-common.js +7 -24
  155. package/development/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
  156. package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  157. package/development/paginator/compact-paginator/compact-paginator.component.js +5 -6
  158. package/development/paginator/paginator/paginator.component.d.ts +1 -7
  159. package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
  160. package/development/paginator/paginator/paginator.component.js +16 -31
  161. package/development/popover/popover/popover.component.d.ts.map +1 -1
  162. package/development/popover/popover/popover.component.js +63 -13
  163. package/development/radio-button/common.js +1 -1
  164. package/development/radio-button/radio-button/radio-button.component.d.ts +1 -1
  165. package/development/{radio-button-common-5uawgCpB.js → radio-button-common-BPrInmpg.js} +11 -11
  166. package/development/radio-button.js +1 -1
  167. package/development/sbb-tokens-DZrHvErO.js +19 -0
  168. package/development/select/select.component.d.ts +1 -1
  169. package/development/select/select.component.d.ts.map +1 -1
  170. package/development/select/select.component.js +8 -5
  171. package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
  172. package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
  173. package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
  174. package/development/status/status.component.js +4 -4
  175. package/development/stepper/step/step.component.js +3 -3
  176. package/development/stepper/step-label/step-label.component.js +15 -15
  177. package/development/tabs/tab-label/tab-label.component.js +18 -18
  178. package/development/tag/tag/tag.component.js +7 -7
  179. package/development/teaser/teaser.component.js +3 -3
  180. package/development/teaser-hero/teaser-hero.component.js +2 -2
  181. package/development/teaser-product/common.js +1 -1
  182. package/development/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
  183. package/development/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
  184. package/development/{teaser-product-common-B1KK4iNu.js → teaser-product-common-v3BvyFdH.js} +5 -5
  185. package/development/teaser-product.js +1 -1
  186. package/development/timetable-occupancy/timetable-occupancy.component.js +3 -3
  187. package/development/title/title-base.js +10 -10
  188. package/development/title/title.component.d.ts +1 -2
  189. package/development/title/title.component.d.ts.map +1 -1
  190. package/development/title/title.component.js +25 -13
  191. package/development/toast/toast.component.js +5 -5
  192. package/development/toggle/toggle/toggle.component.js +3 -3
  193. package/development/toggle/toggle-option/toggle-option.component.js +3 -3
  194. package/development/toggle-check/toggle-check.component.js +11 -11
  195. package/development/tooltip/tooltip.component.js +3 -3
  196. package/development/train/train/train.component.js +4 -4
  197. package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  198. package/development/train/train-formation/train-formation.component.js +3 -3
  199. package/development/train/train-wagon/train-wagon.component.js +9 -9
  200. package/dialog/dialog/dialog.component.d.ts +3 -4
  201. package/dialog/dialog/dialog.component.d.ts.map +1 -1
  202. package/dialog/dialog/dialog.component.js +61 -58
  203. package/dialog/dialog-actions/dialog-actions.component.d.ts +0 -1
  204. package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
  205. package/dialog/dialog-actions/dialog-actions.component.js +4 -7
  206. package/dialog/dialog-close-button/dialog-close-button.component.d.ts +0 -1
  207. package/dialog/dialog-close-button/dialog-close-button.component.d.ts.map +1 -1
  208. package/dialog/dialog-close-button/dialog-close-button.component.js +16 -19
  209. package/dialog/dialog-content/dialog-content.component.d.ts +1 -0
  210. package/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
  211. package/dialog/dialog-content/dialog-content.component.js +14 -11
  212. package/dialog/dialog-title/dialog-title.component.d.ts +0 -1
  213. package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
  214. package/dialog/dialog-title/dialog-title.component.js +11 -14
  215. package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +1 -1
  216. package/file-selector/common.js +1 -1
  217. package/file-selector/file-selector/file-selector.component.d.ts +1 -1
  218. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -1
  219. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +9 -9
  220. package/{file-selector-common-CUp299VH.js → file-selector-common-DbYkpr-x.js} +1 -1
  221. package/file-selector.js +1 -1
  222. package/footer/footer.component.js +1 -1
  223. package/form-error/form-error.component.js +1 -1
  224. package/form-field/form-field/form-field.component.js +1 -1
  225. package/header/common/header-action-common.js +1 -1
  226. package/header/header-button/header-button.component.d.ts +1 -1
  227. package/header/header-environment/header-environment.component.js +4 -4
  228. package/header/header-link/header-link.component.d.ts +1 -1
  229. package/image/image.component.d.ts +0 -1
  230. package/image/image.component.d.ts.map +1 -1
  231. package/image/image.component.js +93 -97
  232. package/link/common/block-link-common.js +14 -14
  233. package/lists.css +9 -9
  234. package/menu/common/menu-action-common.js +1 -1
  235. package/message/message.component.js +6 -6
  236. package/mini-button-common-DSGLaplg.js +10 -0
  237. package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +1 -1
  238. package/navigation/common/navigation-action-common.js +17 -17
  239. package/navigation/navigation-button/navigation-button.component.d.ts +1 -1
  240. package/navigation/navigation-link/navigation-link.component.d.ts +1 -1
  241. package/navigation/navigation-list/navigation-list.component.js +3 -3
  242. package/navigation/navigation-marker/navigation-marker.component.js +12 -12
  243. package/navigation/navigation-section/navigation-section.component.js +5 -5
  244. package/notification/notification.component.js +1 -1
  245. package/off-brand-theme.css +145 -153
  246. package/option/optgroup/optgroup-base-element.js +1 -1
  247. package/option/option/option-base-element.d.ts.map +1 -1
  248. package/option/option/option-base-element.js +30 -20
  249. package/option/option/option.component.d.ts.map +1 -1
  250. package/option/option/option.component.js +8 -8
  251. package/option/option-hint/option-hint.component.js +10 -10
  252. package/package.json +1 -1
  253. package/paginator/common/paginator-common.d.ts.map +1 -1
  254. package/paginator/common/paginator-common.js +30 -46
  255. package/paginator/compact-paginator/compact-paginator.component.d.ts +1 -1
  256. package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
  257. package/paginator/compact-paginator/compact-paginator.component.js +2 -3
  258. package/paginator/paginator/paginator.component.d.ts +1 -7
  259. package/paginator/paginator/paginator.component.d.ts.map +1 -1
  260. package/paginator/paginator/paginator.component.js +42 -54
  261. package/popover/popover/popover.component.d.ts.map +1 -1
  262. package/popover/popover/popover.component.js +70 -72
  263. package/radio-button/common.js +1 -1
  264. package/radio-button/radio-button/radio-button.component.d.ts +1 -1
  265. package/radio-button-common-chJrmIBn.js +5 -0
  266. package/radio-button.js +1 -1
  267. package/safety-theme.css +149 -157
  268. package/sbb-tokens-BNWpZrLn.js +11 -0
  269. package/select/select.component.d.ts +1 -1
  270. package/select/select.component.d.ts.map +1 -1
  271. package/select/select.component.js +22 -20
  272. package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +1 -1
  273. package/sidebar/icon-sidebar-link/icon-sidebar-link.component.d.ts +1 -1
  274. package/sidebar/sidebar-title/sidebar-title.component.js +5 -5
  275. package/standard-theme.css +145 -153
  276. package/status/status.component.js +4 -4
  277. package/stepper/step/step.component.js +3 -3
  278. package/stepper/step-label/step-label.component.js +1 -1
  279. package/table.css +27 -27
  280. package/tabs/tab-label/tab-label.component.js +10 -10
  281. package/tag/tag/tag.component.js +1 -1
  282. package/teaser/teaser.component.js +1 -1
  283. package/teaser-hero/teaser-hero.component.js +1 -1
  284. package/teaser-product/common.js +1 -1
  285. package/teaser-product/teaser-product/teaser-product.component.d.ts +1 -1
  286. package/teaser-product/teaser-product-static/teaser-product-static.component.d.ts +1 -1
  287. package/teaser-product-common-a4NenpSA.js +5 -0
  288. package/teaser-product.js +1 -1
  289. package/timetable-occupancy/timetable-occupancy.component.js +1 -1
  290. package/title/title-base.js +19 -19
  291. package/title/title.component.d.ts +1 -2
  292. package/title/title.component.d.ts.map +1 -1
  293. package/title/title.component.js +17 -17
  294. package/toast/toast.component.js +1 -1
  295. package/toggle/toggle/toggle.component.js +1 -1
  296. package/toggle/toggle-option/toggle-option.component.js +7 -7
  297. package/toggle-check/toggle-check.component.js +15 -15
  298. package/tooltip/tooltip.component.js +5 -5
  299. package/train/train/train.component.js +1 -1
  300. package/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
  301. package/train/train-formation/train-formation.component.js +1 -1
  302. package/train/train-wagon/train-wagon.component.js +1 -1
  303. package/typography.css +11 -11
  304. package/checkbox-common-BGA_q9nc.js +0 -5
  305. package/development/sbb-tokens-DXgmy_b-.js +0 -21
  306. package/mini-button-common-DBnJfrBZ.js +0 -10
  307. package/radio-button-common-BT3VkZLM.js +0 -5
  308. package/sbb-tokens-CB1Hgctn.js +0 -12
  309. package/teaser-product-common-BwqWqRrK.js +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog/dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO1E,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAItE,OAAO,6BAA6B,CAAC;AAIrC;;;;;;;;;GASG;AACH,qBAEM,gBAAiB,SAAQ,qBAAqB;IAClD,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE,6BAA6B;IAC7B,SAA4D,cAAc,EAAE,OAAO,GAAG,MAAM,CAClF;IAEV,wBAAwB;IACxB,SAAoE,QAAQ,EACxE,QAAQ,GACR,aAAa,CAAY;IAM7B,OAAO,CAAC,4BAA4B,CAIjC;IAEH,OAAO,CAAC,qBAAqB,CAAC,CAAc;IAC5C,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,2BAA2B,CAAkB;IACrD,SAAS,CAAC,cAAc,EAAE,MAAM,CAAsB;IACtD,UAAmB,QAAQ,EAAE,MAAM,CAA6B;;IAShD,iBAAiB,IAAI,IAAI;IAKzC,2EAA2E;IACpE,aAAa,IAAI,IAAI;IAM5B,SAAS,CAAC,uBAAuB,IAAI,OAAO;IAI5C,SAAS,CAAC,aAAa,IAAI,IAAI;IA2B/B,SAAS,CAAC,aAAa,IAAI,IAAI;cAeZ,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAM3D,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,kBAAkB;IAa1B,wEAAwE;IACxE,OAAO,CAAC,oBAAoB,CAO1B;IAEF,sCAAsC;IACtC,OAAO,CAAC,qBAAqB,CAS3B;IAEF,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,oBAAoB;cAKT,MAAM,IAAI,cAAc;CA8B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
1
+ {"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog/dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO1E,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAKtE,OAAO,6BAA6B,CAAC;AAIrC;;;;;;;GAOG;AACH,qBAEM,gBAAiB,SAAQ,qBAAqB;IAClD,OAAuB,MAAM,EAAE,cAAc,CAA4B;IAEzE,6BAA6B;IAC7B,SAA4D,cAAc,EAAE,OAAO,GAAG,MAAM,CAClF;IAEV,wBAAwB;IACxB,SAAoE,QAAQ,EACxE,QAAQ,GACR,aAAa,CAAY;IAM7B,OAAO,CAAC,4BAA4B,CAIjC;IAEH,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,2BAA2B,CAAkB;IACrD,SAAS,CAAC,cAAc,EAAE,MAAM,CAAsB;IACtD,UAAmB,QAAQ,EAAE,MAAM,CAA6B;;IAahD,iBAAiB,IAAI,IAAI;IAKzC,2EAA2E;IACpE,aAAa,IAAI,IAAI;IAM5B,SAAS,CAAC,uBAAuB,IAAI,OAAO;IAI5C,SAAS,CAAC,aAAa,IAAI,IAAI;IA6B/B,SAAS,CAAC,aAAa,IAAI,IAAI;cAiBZ,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAM3D,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,0BAA0B;IASlC,wEAAwE;IACxE,OAAO,CAAC,oBAAoB,CAO1B;IAEF,sCAAsC;IACtC,OAAO,CAAC,qBAAqB,CAS3B;IAEF,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,eAAe;cAIJ,MAAM,IAAI,cAAc;CAmB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,YAAY,EAAE,gBAAgB,CAAC;KAChC;CACF"}
@@ -1,28 +1,28 @@
1
- var C = (a) => {
2
- throw TypeError(a);
1
+ var w = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var E = (a, i, e) => i.has(a) || C("Cannot " + e);
5
- var h = (a, i, e) => (E(a, i, "read from private field"), e ? e.call(a) : i.get(a)), v = (a, i, e) => i.has(a) ? C("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(a) : i.set(a, e), c = (a, i, e, s) => (E(a, i, "write to private field"), s ? s.call(a, e) : i.set(a, e), e);
6
- import { __esDecorate as d, __runInitializers as b } from "tslib";
7
- import { ResizeController as T } from "@lit-labs/observers/resize-controller.js";
8
- import { customElement as z, property as S, eventOptions as A } from "lit/decorators.js";
9
- import { ref as O } from "lit/directives/ref.js";
10
- import { html as D } from "lit/static-html.js";
11
- import { isZeroAnimationDuration as I } from "../../core/dom.js";
12
- import { boxSizingStyles as R } from "../../core/styles.js";
13
- import { SbbOverlayBaseElement as $, overlayRefs as L } from "../../overlay.js";
14
- import { css as P } from "lit";
4
+ var y = (e, a, o) => a.has(e) || w("Cannot " + o);
5
+ var h = (e, a, o) => (y(e, a, "read from private field"), o ? o.call(e) : a.get(e)), g = (e, a, o) => a.has(e) ? w("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), b = (e, a, o, s) => (y(e, a, "write to private field"), s ? s.call(e, o) : a.set(e, o), o);
6
+ import { __esDecorate as p, __runInitializers as d } from "tslib";
7
+ import { ResizeController as C } from "@lit-labs/observers/resize-controller.js";
8
+ import { customElement as O, property as E } from "lit/decorators.js";
9
+ import { ref as S } from "lit/directives/ref.js";
10
+ import { html as T } from "lit/static-html.js";
11
+ import { isZeroAnimationDuration as A } from "../../core/dom.js";
12
+ import { boxSizingStyles as D } from "../../core/styles.js";
13
+ import { SbbOverlayBaseElement as z, overlayRefs as I } from "../../overlay.js";
14
+ import { css as L } from "lit";
15
15
  import "../../screen-reader-only.js";
16
- const q = P`:host{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-scrollbar-color: light-dark( color-mix(in srgb, var(--sbb-color-black) 30%, transparent), color-mix(in srgb, var(--sbb-color-white) 30%, transparent) );--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-black) 60%, transparent);--sbb-scrollbar-color-hover: light-dark( color-mix(in srgb, var(--sbb-color-black) 60%, transparent), color-mix(in srgb, var(--sbb-color-white) 60%, transparent) );--sbb-scrollbar-track-color: transparent;--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-dialog-color: var(--sbb-color-2);--sbb-dialog-background-color: var(--sbb-background-color-1);--sbb-dialog-width: 100%;--sbb-dialog-height: 100%;--sbb-dialog-max-width: 100%;--sbb-dialog-max-width-default: 55.75rem;--sbb-dialog-max-height: 100%;--sbb-dialog-inset: 0 auto auto 0;--sbb-dialog-border-radius: var(--sbb-border-radius-8x);--sbb-dialog-padding-block: var(--sbb-spacing-responsive-xs);--sbb-dialog-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-dialog-shadow-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-dialog-animation-easing: ease;--sbb-dialog-pointer-events: none;--sbb-dialog-backdrop-visibility: hidden;--sbb-dialog-backdrop-pointer-events: none;--sbb-dialog-backdrop-color: transparent;--sbb-dialog-title-gap: var(--sbb-spacing-fixed-2x);--sbb-dialog-close-button-margin: var(--sbb-spacing-fixed-4x);display:none;position:fixed;inset:var(--sbb-dialog-inset);z-index:var(--sbb-dialog-z-index, var(--sbb-overlay-default-z-index))}@media(min-width:37.5rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-12x)}}@media(min-width:64rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);--sbb-dialog-max-width: min( calc(100vw - var(--sbb-spacing-fixed-30x) * 2), var(--sbb-dialog-max-width-default) );--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x))}}:host([data-state]:not([data-state=closed])){display:block}:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-pointer-events: all;--sbb-dialog-backdrop-color: var(--sbb-background-color-3)}@media(min-width:64rem){:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-visibility: visible;--sbb-dialog-backdrop-pointer-events: all}}:host([backdrop=translucent]:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-color: color-mix(in srgb, var(--sbb-color-black) 50%, transparent)}:host([negative]){--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-dialog-color: var(--sbb-color-2-negative);--sbb-dialog-background-color: var(--sbb-background-color-1-negative);--sbb-dialog-backdrop-color: var(--sbb-background-color-3-negative)}:host(:not([data-state=closed])){--sbb-dialog-inset: 0}.sbb-dialog__container{pointer-events:var(--sbb-dialog-pointer-events);display:flex;align-items:center;position:fixed;inset:var(--sbb-dialog-inset)}.sbb-dialog__container:before{content:"";visibility:var(--sbb-dialog-backdrop-visibility);pointer-events:var(--sbb-dialog-backdrop-pointer-events);position:fixed;inset:var(--sbb-dialog-inset);background-color:var(--sbb-dialog-backdrop-color);transition-duration:var(--sbb-dialog-animation-duration);transition-timing-function:var(--sbb-dialog-animation-easing);transition-property:background-color,visibility}.sbb-dialog{display:none;position:absolute;inset-inline:0;margin:auto;padding:0;border:none;width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height);color:var(--sbb-dialog-color);background-color:var(--sbb-dialog-background-color)}:host([data-state]:not([data-state=closed])) .sbb-dialog{display:block;animation-name:open;animation-duration:var(--sbb-dialog-animation-duration);animation-timing-function:ease}:host([data-state][data-state=closing]) .sbb-dialog{pointer-events:none;animation-name:close}@media(forced-colors:active){.sbb-dialog{outline:var(--sbb-border-width-1x) solid CanvasText}}@media(min-width:64rem){.sbb-dialog{border-radius:var(--sbb-dialog-border-radius);overflow:hidden;height:auto}}.sbb-dialog__wrapper{display:flex;flex-direction:column;width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height)}.sbb-dialog-title-section{display:flex;width:100%;gap:var(--sbb-dialog-title-gap);background-color:var(--sbb-dialog-background-color);padding-inline:var(--sbb-dialog-padding);transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:none}:host(:not([negative]):is(:state(scrolled),[state--scrolled])) .sbb-dialog-title-section{box-shadow:var(--sbb-box-shadow-level-5-soft)}:host([negative]:is(:state(scrolled),[state--scrolled])) .sbb-dialog-title-section{box-shadow:var(--sbb-box-shadow-level-5-soft-negative)}.sbb-dialog-content-container{--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-dialog-content-container::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-dialog-content-container::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-dialog-content-container::-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-dialog-content-container::-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-dialog-content-container::-webkit-scrollbar-button,.sbb-dialog-content-container::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-dialog-content-container{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-dialog-content-container{overflow:auto}.sbb-dialog-content-container: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);--sbb-focus-outline-offset: calc(var(--sbb-focus-outline-width) * -1)}@keyframes open{0%{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}to{opacity:1;translate:0}}@keyframes close{0%{opacity:1;translate:0}to{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}}::slotted(sbb-dialog-title){flex-grow:1;margin-block:var(--sbb-dialog-padding-block)}::slotted(sbb-dialog-close-button){order:1;margin-inline-end:var(--sbb-dialog-close-button-margin);margin-block-start:calc(var(--sbb-dialog-padding-block) + .5 * (var(--sbb-typo-line-height-titles) * var(--_sbb-dialog-title-size, var(--sbb-font-size-title-4)) - var(--sbb-size-element-xs)));inset-inline-end:var(--sbb-dialog-close-button-margin)}`;
17
- let B = 0, W = (() => {
18
- var l, n, r;
19
- let a = [z("sbb-dialog")], i, e = [], s, p = $, m = [], u, f = [], k = [], x, _ = [], w = [], y;
20
- return r = class extends p {
16
+ const R = L`:host{--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-5x);--sbb-dialog-color: var(--sbb-color-2);--sbb-dialog-background-color: var(--sbb-background-color-1);--sbb-dialog-width: 100%;--sbb-dialog-height: 100%;--sbb-dialog-max-width: 100%;--sbb-dialog-max-width-default: 55.75rem;--sbb-dialog-max-height: 100%;--sbb-dialog-inset: 0 auto auto 0;--sbb-dialog-border-radius: var(--sbb-border-radius-8x);--sbb-dialog-padding-block: var(--sbb-spacing-responsive-xs);--sbb-dialog-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-dialog-shadow-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-dialog-animation-easing: ease;--sbb-dialog-pointer-events: none;--sbb-dialog-backdrop-visibility: hidden;--sbb-dialog-backdrop-pointer-events: none;--sbb-dialog-backdrop-color: transparent;--sbb-dialog-block-shadow: var(--sbb-box-shadow-level-9-soft);--sbb-dialog-actions-border-color: var(--sbb-background-color-4);display:none;position:fixed;inset:var(--sbb-dialog-inset);z-index:var(--sbb-dialog-z-index, var(--sbb-overlay-default-z-index))}@media(min-width:37.5rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-fixed-12x)}}@media(min-width:64rem){:host{--sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);--sbb-dialog-max-width: min( calc(100vw - var(--sbb-spacing-fixed-30x) * 2), var(--sbb-dialog-max-width-default) );--sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x))}}:host(:is(:state(top-shadow),[state--top-shadow])){--sbb-dialog-block-start-box-shadow: var(--sbb-dialog-block-shadow)}:host(:is(:state(bottom-shadow),[state--bottom-shadow])){--sbb-dialog-block-end-box-shadow: var(--sbb-dialog-block-shadow);--sbb-dialog-actions-border-color: transparent}:host([data-state]:not([data-state=closed])){display:block}:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-pointer-events: all;--sbb-dialog-backdrop-color: var(--sbb-background-color-3)}@media(min-width:64rem){:host(:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-visibility: visible;--sbb-dialog-backdrop-pointer-events: all}}:host([backdrop=translucent]:is([data-state=opening],[data-state=opened])){--sbb-dialog-backdrop-color: color-mix(in srgb, var(--sbb-color-black) 50%, transparent)}:host([negative]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-dialog-color: var(--sbb-color-2-negative);--sbb-dialog-background-color: var(--sbb-background-color-1-negative);--sbb-dialog-backdrop-color: var(--sbb-background-color-3-negative);--sbb-dialog-actions-border-color: var(--sbb-background-color-4-negative);--sbb-dialog-block-shadow: var(--sbb-box-shadow-level-9-soft-negative)}:host(:not([data-state=closed])){--sbb-dialog-inset: 0}.sbb-dialog__container{pointer-events:var(--sbb-dialog-pointer-events);display:flex;align-items:center;position:fixed;inset:var(--sbb-dialog-inset)}.sbb-dialog__container:before{content:"";visibility:var(--sbb-dialog-backdrop-visibility);pointer-events:var(--sbb-dialog-backdrop-pointer-events);position:fixed;inset:var(--sbb-dialog-inset);background-color:var(--sbb-dialog-backdrop-color);transition-duration:var(--sbb-dialog-animation-duration);transition-timing-function:var(--sbb-dialog-animation-easing);transition-property:background-color,visibility}.sbb-dialog{display:none;position:absolute;inset-inline:0;margin:auto;padding:0;border:none;width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height);color:var(--sbb-dialog-color);background-color:var(--sbb-dialog-background-color)}:host([data-state]:not([data-state=closed])) .sbb-dialog{display:block;animation-name:open;animation-duration:var(--sbb-dialog-animation-duration);animation-timing-function:ease}:host([data-state][data-state=closing]) .sbb-dialog{pointer-events:none;animation-name:close}@media(forced-colors:active){.sbb-dialog{outline:var(--sbb-border-width-1x) solid CanvasText}}@media(min-width:64rem){.sbb-dialog{border-radius:var(--sbb-dialog-border-radius);overflow:hidden;height:auto}}:host(:is(:state(has-intermediate-element),[state--has-intermediate-element])) ::slotted(:first-child),.sbb-dialog__wrapper{width:var(--sbb-dialog-width);height:var(--sbb-dialog-height);max-width:var(--sbb-dialog-max-width);max-height:var(--sbb-dialog-max-height)}:host(:is(:state(has-intermediate-element),[state--has-intermediate-element])) ::slotted(:first-child),:host(:not(:is(:state(has-intermediate-element),[state--has-intermediate-element]))) .sbb-dialog__wrapper{display:grid;grid-template:"title close-button" auto "content content" 1fr "actions actions" auto/1fr auto;gap:0}@keyframes open{0%{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}to{opacity:1;translate:0}}@keyframes close{0%{opacity:1;translate:0}to{opacity:0;translate:0 var(--sbb-spacing-fixed-4x)}}`;
17
+ let q = 0, K = (() => {
18
+ var r, l, n;
19
+ let e = [O("sbb-dialog")], a, o = [], s, m = z, v, u = [], k = [], f, _ = [], x = [];
20
+ return n = class extends m {
21
21
  constructor() {
22
22
  super();
23
- v(this, l);
24
- v(this, n);
25
- c(this, l, (b(this, m), b(this, f, "close"))), c(this, n, (b(this, k), b(this, _, "opaque"))), this._dialogContentResizeObserver = (b(this, w), new T(this, {
23
+ g(this, r);
24
+ g(this, l);
25
+ b(this, r, d(this, u, "close")), b(this, l, (d(this, k), d(this, _, "opaque"))), this._dialogContentResizeObserver = (d(this, x), new C(this, {
26
26
  target: null,
27
27
  skipInitial: !0,
28
28
  callback: () => setTimeout(() => this._updateOverflowState())
@@ -30,40 +30,46 @@ let B = 0, W = (() => {
30
30
  this.backdropAction === "close" && (this._isPointerDownEventOnDialog = !!this._dialogElement && t.composedPath().includes(this._dialogElement));
31
31
  }, this._closeOnBackdropClick = (t) => {
32
32
  this.backdropAction === "close" && !this._isPointerDownEventOnDialog && this._dialogElement && !t.composedPath().includes(this._dialogElement) && this.close();
33
- }, this.addEventListener?.("pointerdown", this._pointerDownListener), this.addEventListener?.("pointerup", this._closeOnBackdropClick);
33
+ }, this.addEventListener?.("pointerdown", this._pointerDownListener), this.addEventListener?.("pointerup", this._closeOnBackdropClick), this.addEventListener("scroll", () => this._updateOverflowState(), {
34
+ passive: !0,
35
+ capture: !0
36
+ });
34
37
  }
35
38
  /** Backdrop click action. */
36
39
  get backdropAction() {
37
- return h(this, l);
40
+ return h(this, r);
38
41
  }
39
42
  set backdropAction(t) {
40
- c(this, l, t);
43
+ b(this, r, t);
41
44
  }
42
45
  /** Backdrop density. */
43
46
  get backdrop() {
44
- return h(this, n);
47
+ return h(this, l);
45
48
  }
46
49
  set backdrop(t) {
47
- c(this, n, t);
50
+ b(this, l, t);
48
51
  }
49
52
  connectedCallback() {
50
- this.id ||= `sbb-dialog-${B++}`, super.connectedCallback();
53
+ this.id ||= `sbb-dialog-${q++}`, super.connectedCallback();
51
54
  }
52
55
  /** Announce the accessibility label or dialog title for screen readers. */
53
56
  announceTitle() {
54
57
  this.setAriaLiveRefContent(this.accessibilityLabel || this.querySelector("sbb-dialog-title")?.innerText.trim());
55
58
  }
56
59
  isZeroAnimationDuration() {
57
- return I(this, "--sbb-dialog-animation-duration");
60
+ return A(this, "--sbb-dialog-animation-duration");
58
61
  }
59
62
  handleClosing() {
60
- this._dialogContentElement?.scrollTo(0, 0), this.state = "closed", this.hidePopover?.(), this.inertController.deactivate(), this.skipFocusRestoration || this.lastFocusedElement?.focus(), this.openOverlayController?.abort(), this.focusTrapController.enabled = !1, this._dialogContentElement && this._dialogContentResizeObserver.unobserve(this._dialogContentElement), this.removeInstanceFromGlobalCollection(), L.length || this.scrollHandler.enableScroll(), this.escapableOverlayController.disconnect(), this.dispatchCloseEvent({
63
+ const t = this._contentElement();
64
+ t?.scrollTo(0, 0), this.state = "closed", this.hidePopover?.(), this.inertController.deactivate(), this.skipFocusRestoration || this.lastFocusedElement?.focus(), this.openOverlayController?.abort(), this.focusTrapController.enabled = !1, t && this._dialogContentResizeObserver.hostDisconnected(), this.removeInstanceFromGlobalCollection(), I.length || this.scrollHandler.enableScroll(), this.escapableOverlayController.disconnect(), this.dispatchCloseEvent({
61
65
  returnValue: this.returnValue,
62
66
  closeTarget: this.overlayCloseElement
63
67
  });
64
68
  }
65
69
  handleOpening() {
66
- this.state = "opened", this.inertController.activate(), this.escapableOverlayController.connect(), this.attachOpenOverlayEvents(), this.focusTrapController.focusInitialElement(), setTimeout(() => this.announceTitle()), this.focusTrapController.enabled = !0, this._dialogContentElement && this._dialogContentResizeObserver.observe(this._dialogContentElement), this.dispatchOpenEvent();
70
+ this.state = "opened", this.inertController.activate(), this.escapableOverlayController.connect(), this.attachOpenOverlayEvents(), this.focusTrapController.focusInitialElement(), setTimeout(() => this.announceTitle()), this.focusTrapController.enabled = !0;
71
+ const t = this._contentElement();
72
+ t && this._dialogContentResizeObserver.observe(t), this.dispatchOpenEvent();
67
73
  }
68
74
  firstUpdated(t) {
69
75
  super.firstUpdated(t), this._syncTitleNegative();
@@ -71,55 +77,52 @@ let B = 0, W = (() => {
71
77
  willUpdate(t) {
72
78
  super.willUpdate(t), t.has("negative") && this._syncTitleNegative();
73
79
  }
80
+ _handleSlotChange() {
81
+ this._syncTitleNegative(), this._detectIntermediateElement();
82
+ }
74
83
  _syncTitleNegative() {
75
- const t = this.querySelector?.("sbb-dialog-title"), o = this.querySelector?.("sbb-dialog-close-button");
76
- t && (t.negative = this.negative), o && (o.negative = this.negative);
84
+ const t = this.querySelector?.("sbb-dialog-title"), i = this.querySelector?.("sbb-dialog-close-button");
85
+ t && (t.negative = this.negative), i && (i.negative = this.negative);
86
+ }
87
+ _detectIntermediateElement() {
88
+ const t = this.querySelector(":scope > :is(sbb-dialog-title, sbb-dialog-close-button, sbb-dialog-content, sbb-dialog-actions)") === null;
89
+ this.toggleState("has-intermediate-element", t);
77
90
  }
78
91
  _updateOverflowState() {
79
- this.toggleState("overflows", (this._dialogContentElement?.scrollTop ?? 0) + (this._dialogContentElement?.offsetHeight ?? 0) < (this._dialogContentElement?.scrollHeight ?? 0));
92
+ const t = this._contentElement();
93
+ this.toggleState("top-shadow", (t?.scrollTop ?? 0) > 0), this.toggleState("bottom-shadow", (t?.scrollTop ?? 0) + (t?.offsetHeight ?? 0) < (t?.scrollHeight ?? 0));
80
94
  }
81
- _detectScrolledState() {
82
- this.toggleState("scrolled", (this._dialogContentElement?.scrollTop ?? 0) > 0), this._updateOverflowState();
95
+ _contentElement() {
96
+ return this.querySelector("sbb-dialog-content");
83
97
  }
84
98
  render() {
85
- return D`
99
+ return T`
86
100
  <div class="sbb-dialog__container">
87
101
  <div
88
102
  @animationend=${this.onOverlayAnimationEnd}
89
103
  class="sbb-dialog"
90
- ${O((t) => this._dialogElement = t)}
104
+ ${S((t) => this._dialogElement = t)}
91
105
  >
92
106
  <div
93
107
  @click=${(t) => this.closeOnSbbOverlayCloseClick(t)}
94
108
  class="sbb-dialog__wrapper"
95
109
  >
96
- <div class="sbb-dialog-title-section">
97
- <slot name="title-section" @slotchange=${() => this._syncTitleNegative()}></slot>
98
- </div>
99
- <div
100
- class="sbb-dialog-content-container"
101
- part="scroll-container"
102
- @scroll=${() => this._detectScrolledState()}
103
- ${O((t) => this._dialogContentElement = t)}
104
- >
105
- <slot></slot>
106
- </div>
107
- <slot name="actions"></slot>
110
+ <slot @slotchange=${() => this._handleSlotChange()}></slot>
108
111
  </div>
109
112
  </div>
110
113
  </div>
111
114
  <sbb-screen-reader-only aria-live="polite"></sbb-screen-reader-only>
112
115
  `;
113
116
  }
114
- }, l = new WeakMap(), n = new WeakMap(), s = r, (() => {
115
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
116
- u = [S({ attribute: "backdrop-action" })], x = [S({ attribute: "backdrop", reflect: !0 })], y = [A({ passive: !0 })], d(r, null, u, { kind: "accessor", name: "backdropAction", static: !1, private: !1, access: { has: (o) => "backdropAction" in o, get: (o) => o.backdropAction, set: (o, g) => {
117
- o.backdropAction = g;
118
- } }, metadata: t }, f, k), d(r, null, x, { kind: "accessor", name: "backdrop", static: !1, private: !1, access: { has: (o) => "backdrop" in o, get: (o) => o.backdrop, set: (o, g) => {
119
- o.backdrop = g;
120
- } }, metadata: t }, _, w), d(r, null, y, { kind: "method", name: "_detectScrolledState", static: !1, private: !1, access: { has: (o) => "_detectScrolledState" in o, get: (o) => o._detectScrolledState }, metadata: t }, null, m), d(null, i = { value: s }, a, { kind: "class", name: s.name, metadata: t }, null, e), s = i.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
121
- })(), r.styles = [R, q], b(s, e), s;
117
+ }, r = new WeakMap(), l = new WeakMap(), s = n, (() => {
118
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(m[Symbol.metadata] ?? null) : void 0;
119
+ v = [E({ attribute: "backdrop-action" })], f = [E({ attribute: "backdrop", reflect: !0 })], p(n, null, v, { kind: "accessor", name: "backdropAction", static: !1, private: !1, access: { has: (i) => "backdropAction" in i, get: (i) => i.backdropAction, set: (i, c) => {
120
+ i.backdropAction = c;
121
+ } }, metadata: t }, u, k), p(n, null, f, { kind: "accessor", name: "backdrop", static: !1, private: !1, access: { has: (i) => "backdrop" in i, get: (i) => i.backdrop, set: (i, c) => {
122
+ i.backdrop = c;
123
+ } }, metadata: t }, _, x), p(null, a = { value: s }, e, { kind: "class", name: s.name, metadata: t }, null, o), s = a.value, t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
124
+ })(), n.styles = [D, R], d(s, o), s;
122
125
  })();
123
126
  export {
124
- W as SbbDialogElement
127
+ K as SbbDialogElement
125
128
  };
@@ -8,7 +8,6 @@ import { SbbActionGroupElement } from '../../action-group.js';
8
8
  export declare class SbbDialogActionsElement extends SbbActionGroupElement {
9
9
  static styles: CSSResultGroup;
10
10
  constructor();
11
- connectedCallback(): void;
12
11
  }
13
12
  declare global {
14
13
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-actions.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-actions/dialog-actions.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,qBAAqB;IACzD,OAAuB,MAAM,EAAE,cAAc,CAAyC;;IAWtE,iBAAiB,IAAI,IAAI;CAI1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
1
+ {"version":3,"file":"dialog-actions.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-actions/dialog-actions.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAK9D;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,qBAAqB;IACzD,OAAuB,MAAM,EAAE,cAAc,CAAyC;;CAUvF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
@@ -3,22 +3,19 @@ import { customElement as d } from "lit/decorators.js";
3
3
  import { SbbActionGroupElement as e } from "../../action-group.js";
4
4
  import { isLean as l } from "../../core/dom/lean-context.js";
5
5
  import { css as m } from "lit";
6
- const u = m`:host{--sbb-dialog-actions-border-color: var(--sbb-background-color-4);padding-inline:var(--sbb-dialog-padding-inline);padding-block:var(--sbb-dialog-padding-block);margin-block-start:auto;background-color:var(--sbb-dialog-background-color);transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:none}:host:before{content:"";display:block;position:absolute;border-block-start:var(--sbb-border-width-1x) solid var(--sbb-dialog-actions-border-color);transition:border-color var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);width:100%;margin-block-start:calc(-1 * var(--sbb-dialog-padding-block));margin-inline-start:calc(-1 * var(--sbb-dialog-padding-inline))}@media(forced-colors:active){:host:before{border-color:CanvasText}}`;
7
- let f = (() => {
6
+ const g = m`:host{grid-area:actions;padding-inline:var(--sbb-dialog-padding-inline);padding-block:var(--sbb-dialog-padding-block);margin-block-start:auto;background-color:var(--sbb-dialog-background-color);transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:var(--sbb-dialog-block-end-box-shadow, none)}:host:before{content:"";display:block;position:absolute;border-block-start:var(--sbb-border-width-1x) solid var(--sbb-dialog-actions-border-color);transition:border-color var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);width:100%;margin-block-start:calc(-1 * var(--sbb-dialog-padding-block));margin-inline-start:calc(-1 * var(--sbb-dialog-padding-inline))}@media(forced-colors:active){:host:before{border-color:CanvasText}}`;
7
+ let k = (() => {
8
8
  var o;
9
9
  let n = [d("sbb-dialog-actions")], i, s = [], a, r = e;
10
10
  return o = class extends r {
11
11
  constructor() {
12
12
  super(), this.buttonSize = l() ? "s" : "m", this.linkSize = l() ? "xs" : "s";
13
13
  }
14
- connectedCallback() {
15
- super.connectedCallback(), this.slot ||= "actions";
16
- }
17
14
  }, a = o, (() => {
18
15
  const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
19
16
  b(null, i = { value: a }, n, { kind: "class", name: a.name, metadata: t }, null, s), a = i.value, t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
20
- })(), o.styles = [e.styles, u], c(a, s), a;
17
+ })(), o.styles = [e.styles, g], c(a, s), a;
21
18
  })();
22
19
  export {
23
- f as SbbDialogActionsElement
20
+ k as SbbDialogActionsElement
24
21
  };
@@ -10,7 +10,6 @@ export declare class SbbDialogCloseButtonElement extends SbbSecondaryButtonEleme
10
10
  static styles: CSSResultGroup;
11
11
  private _languageController;
12
12
  constructor();
13
- connectedCallback(): void;
14
13
  protected willUpdate(changedProperties: PropertyValues<this>): void;
15
14
  protected renderTemplate(): TemplateResult;
16
15
  protected renderIconName(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-close-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-close-button/dialog-close-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;;;GAKG;AACH,qBAEM,2BAA4B,SAAQ,yBAAyB;IACjE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,mBAAmB,CAAmC;;IAO9C,iBAAiB,IAAI,IAAI;cAKtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAKzD,cAAc,IAAI,cAAc;cAIhC,cAAc,IAAI,MAAM;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,2BAA2B,CAAC;KACxD;CACF"}
1
+ {"version":3,"file":"dialog-close-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-close-button/dialog-close-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;;;GAKG;AACH,qBAEM,2BAA4B,SAAQ,yBAAyB;IACjE,OAAuB,MAAM,EAAE,cAAc,CAA6C;IAE1F,OAAO,CAAC,mBAAmB,CAAmC;;cAO3C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAKzD,cAAc,IAAI,cAAc;cAIhC,cAAc,IAAI,MAAM;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,yBAAyB,EAAE,2BAA2B,CAAC;KACxD;CACF"}
@@ -1,22 +1,19 @@
1
- import { __esDecorate as i, __runInitializers as c } from "tslib";
2
- import { customElement as m } from "lit/decorators.js";
3
- import { SbbSecondaryButtonElement as o } from "../../button/secondary-button.js";
4
- import { SbbLanguageController as u } from "../../core/controllers.js";
5
- import { i18nCloseDialog as b } from "../../core/i18n.js";
1
+ import { __esDecorate as o, __runInitializers as c } from "tslib";
2
+ import { customElement as b } from "lit/decorators.js";
3
+ import { SbbSecondaryButtonElement as i } from "../../button/secondary-button.js";
4
+ import { SbbLanguageController as m } from "../../core/controllers.js";
5
+ import { i18nCloseDialog as u } from "../../core/i18n.js";
6
6
  import { css as d } from "lit";
7
- const p = d`:host{display:block;height:fit-content}`;
8
- let C = (() => {
7
+ const p = d`:host{display:block;height:fit-content;grid-area:close-button;margin-inline:var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x);inset-inline-end:var(--sbb-spacing-fixed-4x);margin-block-start:calc(var(--sbb-dialog-padding-block) + .5 * (var(--sbb-typo-line-height-heading) * var(--_sbb-dialog-title-size, var(--sbb-heading-font-size-4)) - var(--sbb-size-element-xs)))}`;
8
+ let x = (() => {
9
9
  var t;
10
- let n = [m("sbb-dialog-close-button")], a, r = [], e, s = o;
11
- return t = class extends s {
10
+ let n = [b("sbb-dialog-close-button")], r, s = [], e, l = i;
11
+ return t = class extends l {
12
12
  constructor() {
13
- super(), this._languageController = new u(this), this.size = "s";
13
+ super(), this._languageController = new m(this), this.size = "s";
14
14
  }
15
- connectedCallback() {
16
- super.connectedCallback(), this.slot ||= "title-section";
17
- }
18
- willUpdate(l) {
19
- super.willUpdate(l), this.internals.ariaLabel = b[this._languageController.current];
15
+ willUpdate(a) {
16
+ super.willUpdate(a), this.internals.ariaLabel = u[this._languageController.current];
20
17
  }
21
18
  renderTemplate() {
22
19
  return super.renderIconSlot();
@@ -25,10 +22,10 @@ let C = (() => {
25
22
  return super.renderIconName() || "cross-small";
26
23
  }
27
24
  }, e = t, (() => {
28
- const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
29
- i(null, a = { value: e }, n, { kind: "class", name: e.name, metadata: l }, null, r), e = a.value, l && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
30
- })(), t.styles = [o.styles, p], c(e, r), e;
25
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(l[Symbol.metadata] ?? null) : void 0;
26
+ o(null, r = { value: e }, n, { kind: "class", name: e.name, metadata: a }, null, s), e = r.value, a && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
27
+ })(), t.styles = [i.styles, p], c(e, s), e;
31
28
  })();
32
29
  export {
33
- C as SbbDialogCloseButtonElement
30
+ x as SbbDialogCloseButtonElement
34
31
  };
@@ -6,6 +6,7 @@ import { CSSResultGroup, TemplateResult, LitElement } from 'lit';
6
6
  */
7
7
  export declare class SbbDialogContentElement extends LitElement {
8
8
  static styles: CSSResultGroup;
9
+ connectedCallback(): void;
9
10
  protected render(): TemplateResult;
10
11
  }
11
12
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-content.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-content/dialog-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,UAAU;IAC9C,OAAuB,MAAM,EAAE,cAAc,CAAS;cAEnC,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
1
+ {"version":3,"file":"dialog-content.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-content/dialog-content.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,qBAEM,uBAAwB,SAAQ,UAAU;IAC9C,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtC,iBAAiB,IAAI,IAAI;cAStB,MAAM,IAAI,cAAc;CAG5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
@@ -1,19 +1,22 @@
1
- import { __esDecorate as o, __runInitializers as r } from "tslib";
2
- import { css as c, LitElement as m, html as b } from "lit";
1
+ import { __esDecorate as n, __runInitializers as c } from "tslib";
2
+ import { css as r, LitElement as b, html as u } from "lit";
3
3
  import { customElement as d } from "lit/decorators.js";
4
- const u = c`:host{display:block;padding-block:var(--sbb-dialog-padding-block);margin-inline:var(--sbb-dialog-padding-inline)}`;
5
- let y = (() => {
4
+ const m = r`:host{display:block;padding-block:var(--sbb-dialog-padding-block);padding-inline:var(--sbb-dialog-padding-inline);grid-area:content;overflow:auto}:host(: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);--sbb-focus-outline-offset: calc(var(--sbb-focus-outline-width) * -1)}`;
5
+ let g = (() => {
6
6
  var e;
7
- let n = [d("sbb-dialog-content")], l, s = [], t, i = m;
8
- return e = class extends i {
7
+ let i = [d("sbb-dialog-content")], s, a = [], t, o = b;
8
+ return e = class extends o {
9
+ connectedCallback() {
10
+ super.connectedCallback(), this.classList.add("sbb-scrollbar");
11
+ }
9
12
  render() {
10
- return b`<slot></slot>`;
13
+ return u`<slot></slot>`;
11
14
  }
12
15
  }, t = e, (() => {
13
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
14
- o(null, l = { value: t }, n, { kind: "class", name: t.name, metadata: a }, null, s), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
15
- })(), e.styles = u, r(t, s), t;
16
+ const l = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
17
+ n(null, s = { value: t }, i, { kind: "class", name: t.name, metadata: l }, null, a), t = s.value, l && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: l });
18
+ })(), e.styles = m, c(t, a), t;
16
19
  })();
17
20
  export {
18
- y as SbbDialogContentElement
21
+ g as SbbDialogContentElement
19
22
  };
@@ -9,7 +9,6 @@ declare const SbbDialogTitleElement_base: import('../../core/mixins.js').Abstrac
9
9
  export declare class SbbDialogTitleElement extends SbbDialogTitleElement_base {
10
10
  static styles: CSSResultGroup;
11
11
  constructor();
12
- connectedCallback(): void;
13
12
  }
14
13
  declare global {
15
14
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-title.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-title/dialog-title.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAI9C;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,0BAA8B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAgC;;IAQ7D,iBAAiB,IAAI,IAAI;CAI1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
1
+ {"version":3,"file":"dialog-title.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/dialog/dialog-title/dialog-title.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAI9C;;;;GAIG;AACH,qBAEM,qBAAsB,SAAQ,0BAA8B;IAChE,OAAuB,MAAM,EAAE,cAAc,CAAgC;;CAO9E;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,qBAAqB,CAAC;KAC3C;CACF"}
@@ -1,23 +1,20 @@
1
- import { __esDecorate as n, __runInitializers as c } from "tslib";
2
- import { customElement as b } from "lit/decorators.js";
3
- import { SbbNegativeMixin as m } from "../../core/mixins.js";
4
- import { SbbTitleBase as o } from "../../title.js";
5
- import { css as u } from "lit";
6
- const d = u`:host{display:block;margin-block:var(--sbb-dialog-padding-block);margin-inline:var(--sbb-dialog-padding-inline);-webkit-hyphens:auto;hyphens:auto}:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}`;
1
+ import { __esDecorate as n, __runInitializers as b } from "tslib";
2
+ import { customElement as c } from "lit/decorators.js";
3
+ import { SbbNegativeMixin as d } from "../../core/mixins.js";
4
+ import { SbbTitleBase as l } from "../../title.js";
5
+ import { css as m } from "lit";
6
+ const u = m`:host{display:block;padding-block:var(--sbb-dialog-padding-block);padding-inline:var(--sbb-dialog-padding-inline);-webkit-hyphens:auto;hyphens:auto;grid-area:title;position:relative}:host([negative]){--sbb-title-text-color-normal: var(--sbb-color-3-negative)}:host:after{content:"";display:block;position:absolute;inset:0 -10rem 0 0;transition:box-shadow var(--sbb-animation-easing) var(--sbb-dialog-shadow-animation-duration);box-shadow:var(--sbb-dialog-block-start-box-shadow, none)}`;
7
7
  let f = (() => {
8
8
  var e;
9
- let r = [b("sbb-dialog-title")], l, s = [], t, i = m(o);
10
- return e = class extends i {
9
+ let r = [c("sbb-dialog-title")], i, s = [], t, o = d(l);
10
+ return e = class extends o {
11
11
  constructor() {
12
12
  super(), this.level = "2", this.visualLevel = "4";
13
13
  }
14
- connectedCallback() {
15
- super.connectedCallback(), this.slot ||= "title-section";
16
- }
17
14
  }, t = e, (() => {
18
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
19
- n(null, l = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, s), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
20
- })(), e.styles = [o.styles, d], c(t, s), t;
15
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
16
+ n(null, i = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, s), t = i.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
17
+ })(), e.styles = [l.styles, u], b(t, s), t;
21
18
  })();
22
19
  export {
23
20
  f as SbbDialogTitleElement
@@ -6,7 +6,7 @@ import { SbbMediaMatcherController as m, SbbMediaQueryHover as b } from "../../c
6
6
  import { SbbDisabledTabIndexActionMixin as g } from "../../core/mixins.js";
7
7
  import { boxSizingStyles as u } from "../../core/styles.js";
8
8
  import { SbbIconNameMixin as f } from "../../icon.js";
9
- const _ = c`:host{display:block;--sbb-expansion-panel-header-cursor: var(--sbb-cursor-pointer);--sbb-expansion-panel-header-text-color: var(--sbb-color-2);--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-6x);--sbb-expansion-panel-header-justify-content: space-between;--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-responsive-xs);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-6x)}@media(forced-colors:active){:host{--sbb-expansion-panel-header-text-color: ButtonText}}:host([data-size=s]){--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-2x);--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-fixed-3x);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-5x)}:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-cursor: var(--sbb-cursor-default);--sbb-expansion-panel-header-text-color: var(--sbb-color-granite);--sbb-expansion-panel-header-text-color: light-dark( var(--sbb-color-granite), var(--sbb-color-storm) )}@media(forced-colors:active){:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-text-color: GrayText}}:host(: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);outline-offset:var(--sbb-spacing-fixed-1x);border-radius:var(--sbb-expansion-panel-border-radius)}.sbb-expansion-panel-header{--sbb-text-font-size: var(--sbb-font-size-text-l);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;justify-content:var(--sbb-expansion-panel-header-justify-content);align-items:center;gap:var(--sbb-expansion-panel-header-gap);width:100%;padding:var(--sbb-expansion-panel-header-padding-block) var(--sbb-expansion-panel-header-padding-inline);text-align:start;cursor:var(--sbb-expansion-panel-header-cursor);color:var(--sbb-expansion-panel-header-text-color);-webkit-tap-highlight-color:transparent}.sbb-expansion-panel-header__title,.sbb-expansion-panel-header__toggle,.sbb-expansion-panel-header__icon{display:flex}.sbb-expansion-panel-header__icon{width:var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-width: var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-height: var(--sbb-expansion-panel-icon-size)}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-expansion-panel-header__icon{display:none}.sbb-expansion-panel-header__title{align-items:center;gap:var(--sbb-expansion-panel-title-gap);overflow:hidden;min-height:var(--sbb-size-icon-ui-medium)}.sbb-expansion-panel-header__toggle-icon{transition:transform var(--sbb-disable-animation-duration, var(--sbb-animation-duration-4x))}:host([aria-expanded]:not([aria-expanded=false])) .sbb-expansion-panel-header__toggle-icon{transform:rotate(-180deg)}`;
9
+ const _ = c`:host{display:block;--sbb-expansion-panel-header-cursor: var(--sbb-cursor-pointer);--sbb-expansion-panel-header-text-color: var(--sbb-color-2);--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-6x);--sbb-expansion-panel-header-justify-content: space-between;--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-responsive-xs);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-6x)}@media(forced-colors:active){:host{--sbb-expansion-panel-header-text-color: ButtonText}}:host([data-size=s]){--sbb-expansion-panel-header-gap: var(--sbb-spacing-fixed-2x);--sbb-expansion-panel-header-padding-block: var(--sbb-spacing-fixed-3x);--sbb-expansion-panel-header-padding-inline: var(--sbb-spacing-fixed-5x)}:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-cursor: var(--sbb-cursor-default);--sbb-expansion-panel-header-text-color: var(--sbb-color-granite);--sbb-expansion-panel-header-text-color: light-dark( var(--sbb-color-granite), var(--sbb-color-storm) )}@media(forced-colors:active){:host(:is(:disabled,[disabled-interactive])){--sbb-expansion-panel-header-text-color: GrayText}}:host(: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);outline-offset:var(--sbb-spacing-fixed-1x);border-radius:var(--sbb-expansion-panel-border-radius)}.sbb-expansion-panel-header{--sbb-text-font-size: var(--sbb-text-font-size-l);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);display:flex;justify-content:var(--sbb-expansion-panel-header-justify-content);align-items:center;gap:var(--sbb-expansion-panel-header-gap);width:100%;padding:var(--sbb-expansion-panel-header-padding-block) var(--sbb-expansion-panel-header-padding-inline);text-align:start;cursor:var(--sbb-expansion-panel-header-cursor);color:var(--sbb-expansion-panel-header-text-color);-webkit-tap-highlight-color:transparent}.sbb-expansion-panel-header__title,.sbb-expansion-panel-header__toggle,.sbb-expansion-panel-header__icon{display:flex}.sbb-expansion-panel-header__icon{width:var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-width: var(--sbb-expansion-panel-icon-size);--sbb-icon-svg-height: var(--sbb-expansion-panel-icon-size)}:host(:not(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name]))) .sbb-expansion-panel-header__icon{display:none}.sbb-expansion-panel-header__title{align-items:center;gap:var(--sbb-expansion-panel-title-gap);overflow:hidden;min-height:var(--sbb-size-icon-ui-medium)}.sbb-expansion-panel-header__toggle-icon{transition:transform var(--sbb-disable-animation-duration, var(--sbb-animation-duration-4x))}:host([aria-expanded]:not([aria-expanded=false])) .sbb-expansion-panel-header__toggle-icon{transform:rotate(-180deg)}`;
10
10
  let j = (() => {
11
11
  var e;
12
12
  let l = [x("sbb-expansion-panel-header")], n, t = [], s, i = g(f(v));
@@ -1,5 +1,5 @@
1
1
  import { SbbFileSelectorCommonElementMixin as m } from "./common/file-selector-common.js";
2
- import { f as r } from "../file-selector-common-CUp299VH.js";
2
+ import { f as r } from "../file-selector-common-DbYkpr-x.js";
3
3
  export {
4
4
  m as SbbFileSelectorCommonElementMixin,
5
5
  r as fileSelectorCommonStyle
@@ -1,5 +1,5 @@
1
1
  import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
- declare const SbbFileSelectorElement_base: import('../../core/mixins.js').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
2
+ declare const SbbFileSelectorElement_base: import('../../core/mixins.ts').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
3
3
  /**
4
4
  * It allows to select one or more file from storage devices and display them.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { CSSResultGroup, LitElement, TemplateResult } from 'lit';
2
- declare const SbbFileSelectorDropzoneElement_base: import('../../core/mixins.js').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
2
+ declare const SbbFileSelectorDropzoneElement_base: import('../../core/mixins.ts').Constructor<import('../common.js').SbbFileSelectorCommonElementMixinType> & typeof LitElement;
3
3
  /**
4
4
  * It allows to select one or more file from storage devices via button click or drag and drop, and display them.
5
5
  *
@@ -1,10 +1,10 @@
1
- var f = (e) => {
1
+ var m = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var d = (e, t, i) => t.has(e) || f("Cannot " + i);
5
- var u = (e, t, i) => (d(e, t, "read from private field"), i ? i.call(e) : t.get(e)), g = (e, t, i) => t.has(e) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), h = (e, t, i, s) => (d(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
4
+ var d = (e, t, i) => t.has(e) || m("Cannot " + i);
5
+ var u = (e, t, i) => (d(e, t, "read from private field"), i ? i.call(e) : t.get(e)), h = (e, t, i) => t.has(e) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), g = (e, t, i, s) => (d(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
6
6
  import { __esDecorate as _, __runInitializers as n } from "tslib";
7
- import { css as y, LitElement as z } from "lit";
7
+ import { css as z, LitElement as y } from "lit";
8
8
  import { customElement as x, property as S } from "lit/decorators.js";
9
9
  import { ref as C } from "lit/directives/ref.js";
10
10
  import { html as k } from "lit/static-html.js";
@@ -14,14 +14,14 @@ import { boxSizingStyles as w } from "../../core/styles.js";
14
14
  import { SbbFileSelectorCommonElementMixin as F, fileSelectorCommonStyle as L } from "../common.js";
15
15
  import "../../button/secondary-button-static.js";
16
16
  import "../../icon.js";
17
- const I = y`.sbb-file-selector__dropzone-area{display:flex;flex-direction:column;align-items:center;padding:var(--sbb-spacing-responsive-s);background-color:var(--sbb-file-selector-background-color);border:var(--sbb-border-width-1x) dashed var(--sbb-file-selector-border-color);border-radius:var(--sbb-border-radius-4x);transition-duration:var(--sbb-file-selector-transition-duration);transition-timing-function:var(--sbb-file-selector-transition-easing-function);transition-property:background-color,border-color}.sbb-file-selector__dropzone-area--icon{color:var(--sbb-file-selector-color);line-height:0}.sbb-file-selector__dropzone-area--title{--sbb-title-font-size: var(--sbb-title-font-size-level-6);--sbb-title-line-height: var(--sbb-typo-line-height-body-text);margin-block:var(--sbb-title-margin-block-start, 0) var(--sbb-title-margin-block-end, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-titles));letter-spacing:var(--sbb-typo-letter-spacing-titles);font-size:var(--sbb-title-font-size);text-align:center;color:var(--sbb-file-selector-color)}.sbb-file-selector__dropzone-area--subtitle{--sbb-text-font-size: var(--sbb-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);text-align:center;color:var(--sbb-file-selector-subtitle-color);margin-block-end:var(--sbb-spacing-fixed-4x)}`;
17
+ const I = z`.sbb-file-selector__dropzone-area{display:flex;flex-direction:column;align-items:center;padding:var(--sbb-spacing-responsive-s);background-color:var(--sbb-file-selector-background-color);border:var(--sbb-border-width-1x) dashed var(--sbb-file-selector-border-color);border-radius:var(--sbb-border-radius-4x);transition-duration:var(--sbb-file-selector-transition-duration);transition-timing-function:var(--sbb-file-selector-transition-easing-function);transition-property:background-color,border-color}.sbb-file-selector__dropzone-area--icon{color:var(--sbb-file-selector-color);line-height:0}.sbb-file-selector__dropzone-area--title{--sbb-title-font-size: var(--sbb-title-font-size-level-6-lean, var(--sbb-heading-font-size-6));--sbb-title-line-height: var(--sbb-typo-line-height-text);margin-block:var(--sbb-title-margin-block, 0);margin-inline: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);text-align:center;color:var(--sbb-file-selector-color)}.sbb-file-selector__dropzone-area--subtitle{--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);text-align:center;color:var(--sbb-file-selector-subtitle-color);margin-block-end:var(--sbb-spacing-fixed-4x)}`;
18
18
  let Q = (() => {
19
19
  var a, o;
20
- let e = [x("sbb-file-selector-dropzone")], t, i = [], s, b = F(z), c, m = [], p = [];
20
+ let e = [x("sbb-file-selector-dropzone")], t, i = [], s, b = F(y), c, f = [], p = [];
21
21
  return o = class extends b {
22
22
  constructor() {
23
23
  super(...arguments);
24
- g(this, a, n(this, m, ""));
24
+ h(this, a, n(this, f, ""));
25
25
  n(this, p);
26
26
  }
27
27
  /** The title displayed in `dropzone` variant. */
@@ -29,7 +29,7 @@ let Q = (() => {
29
29
  return u(this, a);
30
30
  }
31
31
  set titleContent(r) {
32
- h(this, a, r);
32
+ g(this, a, r);
33
33
  }
34
34
  renderTemplate(r) {
35
35
  return k`
@@ -64,7 +64,7 @@ let Q = (() => {
64
64
  const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
65
65
  c = [$(), S({ attribute: "title-content" })], _(o, null, c, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (l) => "titleContent" in l, get: (l) => l.titleContent, set: (l, v) => {
66
66
  l.titleContent = v;
67
- } }, metadata: r }, m, p), _(null, t = { value: s }, e, { kind: "class", name: s.name, metadata: r }, null, i), s = t.value, r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
67
+ } }, metadata: r }, f, p), _(null, t = { value: s }, e, { kind: "class", name: s.name, metadata: r }, null, i), s = t.value, r && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
68
68
  })(), o.styles = [w, L, I], o.events = {
69
69
  filechanged: "filechanged"
70
70
  }, n(s, i), s;
@@ -1,5 +1,5 @@
1
1
  import { css as e } from "lit";
2
- const r = e`:host{--sbb-file-selector-color: var(--sbb-color-2);--sbb-file-selector-subtitle-color: var(--sbb-color-granite);--sbb-file-selector-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-file-selector-background-color: var(--sbb-background-color-1);--sbb-file-selector-border-color: var(--sbb-border-color-4-inverted);--sbb-file-selector-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-file-selector-transition-easing-function: var(--sbb-animation-easing);display:block;width:20rem}@media(forced-colors:active){:host(:disabled){--sbb-file-selector-color: GrayText;--sbb-file-selector-subtitle-color: GrayText;--sbb-file-selector-border-color: GrayText}}:host(:is(:state(active),[state--active])){--sbb-file-selector-background-color: var(--sbb-background-color-3);--sbb-file-selector-border-color: var(--sbb-color-storm);--sbb-file-selector-border-color: light-dark(var(--sbb-color-storm), var(--sbb-color-anthracite))}@media(forced-colors:active){:host(:is(:state(active),[state--active])){--sbb-file-selector-border-color: Highlight}}.sbb-file-selector__input-container{-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}.sbb-file-selector__visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-file-selector__file-list{display:flex;flex-direction:column;row-gap:var(--sbb-spacing-fixed-3x);margin-block:0;padding-inline:0;padding-block:var(--sbb-spacing-fixed-6x) var(--sbb-spacing-fixed-1x)}.sbb-file-selector__file{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;gap:var(--sbb-spacing-fixed-4x);align-items:center;justify-content:space-between}.sbb-file-selector__file-details{display:flex;flex:1;justify-content:space-between;gap:var(--sbb-spacing-fixed-4x);overflow:auto}.sbb-file-selector__file-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-file-selector__file-size{white-space:nowrap;color:var(--sbb-color-metal);color:light-dark(var(--sbb-color-metal),var(--sbb-color-smoke))}:host(:not(:is(:state(slotted-error),[state--slotted-error]))) .sbb-file-selector__error{display:none}`;
2
+ const r = e`:host{--sbb-file-selector-color: var(--sbb-color-2);--sbb-file-selector-subtitle-color: var(--sbb-color-granite);--sbb-file-selector-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-file-selector-background-color: var(--sbb-background-color-1);--sbb-file-selector-border-color: var(--sbb-border-color-4-inverted);--sbb-file-selector-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-file-selector-transition-easing-function: var(--sbb-animation-easing);display:block;width:20rem}@media(forced-colors:active){:host(:disabled){--sbb-file-selector-color: GrayText;--sbb-file-selector-subtitle-color: GrayText;--sbb-file-selector-border-color: GrayText}}:host(:is(:state(active),[state--active])){--sbb-file-selector-background-color: var(--sbb-background-color-3);--sbb-file-selector-border-color: var(--sbb-color-storm);--sbb-file-selector-border-color: light-dark(var(--sbb-color-storm), var(--sbb-color-anthracite))}@media(forced-colors:active){:host(:is(:state(active),[state--active])){--sbb-file-selector-border-color: Highlight}}.sbb-file-selector__input-container{-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}.sbb-file-selector__visually-hidden{border:0;clip-path:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-file-selector__file-list{display:flex;flex-direction:column;row-gap:var(--sbb-spacing-fixed-3x);margin-block:0;padding-inline:0;padding-block:var(--sbb-spacing-fixed-6x) var(--sbb-spacing-fixed-1x)}.sbb-file-selector__file{--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);display:flex;gap:var(--sbb-spacing-fixed-4x);align-items:center;justify-content:space-between}.sbb-file-selector__file-details{display:flex;flex:1;justify-content:space-between;gap:var(--sbb-spacing-fixed-4x);overflow:auto}.sbb-file-selector__file-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sbb-file-selector__file-size{white-space:nowrap;color:var(--sbb-color-metal);color:light-dark(var(--sbb-color-metal),var(--sbb-color-smoke))}:host(:not(:is(:state(slotted-error),[state--slotted-error]))) .sbb-file-selector__error{display:none}`;
3
3
  export {
4
4
  r as f
5
5
  };
package/file-selector.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SbbFileSelectorCommonElementMixin as r } from "./file-selector/common/file-selector-common.js";
2
- import { f as t } from "./file-selector-common-CUp299VH.js";
2
+ import { f as t } from "./file-selector-common-DbYkpr-x.js";
3
3
  import { SbbFileSelectorDropzoneElement as S } from "./file-selector/file-selector-dropzone/file-selector-dropzone.component.js";
4
4
  import { SbbFileSelectorElement as b } from "./file-selector/file-selector/file-selector.component.js";
5
5
  export {