@scania/tegel 1.47.2 → 1.48.0-beta.0-tabbing-test

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 (587) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/index-DGsdvbvx.js +2521 -0
  3. package/dist/cjs/{inheritAriaAttributes-dedbbc57.js → inheritAriaAttributes-D_xFGssc.js} +1 -1
  4. package/dist/cjs/{isHeadingElement-4f06b688.js → isHeadingElement-DihKNeqS.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +3 -6
  6. package/dist/cjs/tds-accordion-item.cjs.entry.js +10 -7
  7. package/dist/cjs/tds-accordion.cjs.entry.js +5 -6
  8. package/dist/cjs/tds-badge.cjs.entry.js +13 -8
  9. package/dist/cjs/tds-banner.cjs.entry.js +19 -15
  10. package/dist/cjs/tds-block.cjs.entry.js +5 -6
  11. package/dist/cjs/tds-body-cell.cjs.entry.js +6 -11
  12. package/dist/cjs/tds-breadcrumb.cjs.entry.js +4 -6
  13. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +3 -7
  14. package/dist/cjs/tds-button_2.cjs.entry.js +16 -15
  15. package/dist/cjs/tds-card.cjs.entry.js +29 -20
  16. package/dist/cjs/tds-checkbox.cjs.entry.js +17 -17
  17. package/dist/cjs/tds-chip.cjs.entry.js +20 -17
  18. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +12 -13
  19. package/dist/cjs/tds-datetime.cjs.entry.js +33 -27
  20. package/dist/cjs/tds-dropdown_2.cjs.entry.js +72 -67
  21. package/dist/cjs/tds-folder-tab.cjs.entry.js +6 -9
  22. package/dist/cjs/tds-folder-tabs.cjs.entry.js +40 -38
  23. package/dist/cjs/tds-footer-group.cjs.entry.js +11 -14
  24. package/dist/cjs/tds-footer-item.cjs.entry.js +4 -7
  25. package/dist/cjs/tds-footer.cjs.entry.js +8 -10
  26. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +4 -7
  27. package/dist/cjs/tds-header-cell.cjs.entry.js +23 -26
  28. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +7 -8
  29. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -11
  30. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +7 -10
  31. package/dist/cjs/tds-header-dropdown.cjs.entry.js +12 -16
  32. package/dist/cjs/tds-header-hamburger.cjs.entry.js +6 -10
  33. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +8 -10
  34. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +4 -7
  35. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +5 -8
  36. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +6 -10
  37. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -7
  38. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +5 -8
  39. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -5
  40. package/dist/cjs/tds-header-launcher.cjs.entry.js +9 -14
  41. package/dist/cjs/tds-header-title.cjs.entry.js +4 -7
  42. package/dist/cjs/tds-header.cjs.entry.js +6 -9
  43. package/dist/cjs/tds-icon.cjs.entry.js +15 -18
  44. package/dist/cjs/tds-inline-tab.cjs.entry.js +6 -8
  45. package/dist/cjs/tds-inline-tabs.cjs.entry.js +43 -46
  46. package/dist/cjs/tds-link.cjs.entry.js +8 -8
  47. package/dist/cjs/tds-message.cjs.entry.js +16 -16
  48. package/dist/cjs/tds-modal.cjs.entry.js +93 -47
  49. package/dist/cjs/tds-navigation-tab.cjs.entry.js +6 -8
  50. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +43 -40
  51. package/dist/cjs/tds-popover-canvas.cjs.entry.js +20 -14
  52. package/dist/cjs/tds-popover-core.cjs.entry.js +54 -41
  53. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +6 -8
  54. package/dist/cjs/tds-popover-menu.cjs.entry.js +19 -14
  55. package/dist/cjs/tds-radio-button.cjs.entry.js +14 -17
  56. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +6 -9
  57. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +7 -10
  58. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +6 -8
  59. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -8
  60. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +9 -10
  61. package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -9
  62. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +4 -7
  63. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +7 -15
  64. package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -11
  65. package/dist/cjs/tds-side-menu.cjs.entry.js +42 -25
  66. package/dist/cjs/tds-slider.cjs.entry.js +51 -34
  67. package/dist/cjs/tds-spinner.cjs.entry.js +6 -7
  68. package/dist/cjs/tds-step.cjs.entry.js +5 -13
  69. package/dist/cjs/tds-stepper.cjs.entry.js +26 -11
  70. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
  71. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +48 -17
  72. package/dist/cjs/tds-table-body-row.cjs.entry.js +8 -8
  73. package/dist/cjs/tds-table-body.cjs.entry.js +10 -13
  74. package/dist/cjs/tds-table-footer.cjs.entry.js +79 -24
  75. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +5 -7
  76. package/dist/cjs/tds-table-header.cjs.entry.js +8 -9
  77. package/dist/cjs/tds-table-toolbar.cjs.entry.js +8 -8
  78. package/dist/cjs/tds-table.cjs.entry.js +54 -21
  79. package/dist/cjs/tds-tag.cjs.entry.js +8 -10
  80. package/dist/cjs/tds-text-field.cjs.entry.js +29 -20
  81. package/dist/cjs/tds-textarea.cjs.entry.js +21 -16
  82. package/dist/cjs/tds-toast.cjs.entry.js +20 -20
  83. package/dist/cjs/tds-toggle.cjs.entry.js +17 -18
  84. package/dist/cjs/tds-tooltip.cjs.entry.js +22 -20
  85. package/dist/cjs/tegel.cjs.js +7 -8
  86. package/dist/collection/assets/icons/scania/microphone.svg +4 -0
  87. package/dist/collection/assets/icons/scania/microphone_inactive.svg +7 -0
  88. package/dist/collection/assets/icons/scania/notification_snooze.svg +6 -0
  89. package/dist/collection/assets/icons/scania/paperclip.svg +3 -0
  90. package/dist/collection/collection-manifest.json +2 -2
  91. package/dist/collection/components/accordion/accordion-item/accordion-item.js +24 -6
  92. package/dist/collection/components/accordion/accordion.js +8 -2
  93. package/dist/collection/components/badge/badge.js +16 -4
  94. package/dist/collection/components/banner/banner.js +41 -19
  95. package/dist/collection/components/block/block.js +8 -2
  96. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -1
  97. package/dist/collection/components/breadcrumbs/breadcrumbs.js +4 -5
  98. package/dist/collection/components/button/button.js +44 -19
  99. package/dist/collection/components/card/card.js +64 -28
  100. package/dist/collection/components/checkbox/checkbox.js +41 -22
  101. package/dist/collection/components/chip/chip.css +24 -19
  102. package/dist/collection/components/chip/chip.js +42 -20
  103. package/dist/collection/components/datetime/datetime.js +81 -40
  104. package/dist/collection/components/divider/divider.js +9 -3
  105. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +31 -25
  106. package/dist/collection/components/dropdown/dropdown.js +95 -55
  107. package/dist/collection/components/footer/footer-group/footer-group.js +15 -11
  108. package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
  109. package/dist/collection/components/footer/footer.js +7 -4
  110. package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
  111. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
  112. package/dist/collection/components/header/header-dropdown/header-dropdown.js +22 -15
  113. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
  114. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +10 -4
  115. package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +17 -15
  116. package/dist/collection/components/header/header-hamburger/header-hamburger.js +5 -6
  117. package/dist/collection/components/header/header-item/header-item.js +11 -4
  118. package/dist/collection/components/header/header-launcher/header-launcher.js +7 -7
  119. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +10 -5
  120. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -4
  121. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
  122. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
  123. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
  124. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +1 -1
  125. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
  126. package/dist/collection/components/header/header-title/header-title.css +1 -0
  127. package/dist/collection/components/header/header-title/header-title.js +1 -1
  128. package/dist/collection/components/header/header.js +1 -1
  129. package/dist/collection/components/icon/icon.js +30 -17
  130. package/dist/collection/components/icon/scaniaIconsArray.js +2 -252
  131. package/dist/collection/components/icon/tratonIconsArray.js +2 -32
  132. package/dist/collection/components/link/link.js +14 -5
  133. package/dist/collection/components/message/message.css +6 -6
  134. package/dist/collection/components/message/message.js +35 -18
  135. package/dist/collection/components/modal/modal.js +119 -51
  136. package/dist/collection/components/popover-canvas/popover-canvas.js +51 -19
  137. package/dist/collection/components/popover-core/popover-core.js +64 -31
  138. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +6 -3
  139. package/dist/collection/components/popover-menu/popover-menu.js +48 -19
  140. package/dist/collection/components/radio-button/radio-button.css +14 -14
  141. package/dist/collection/components/radio-button/radio-button.js +38 -22
  142. package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
  143. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +8 -6
  144. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +19 -9
  145. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
  146. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -3
  147. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +11 -4
  148. package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
  149. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +17 -15
  150. package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +9 -9
  151. package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +9 -9
  152. package/dist/collection/components/side-menu/side-menu.js +43 -20
  153. package/dist/collection/components/slider/slider.js +98 -44
  154. package/dist/collection/components/spinner/spinner.js +9 -3
  155. package/dist/collection/components/stepper/step/step.css +65 -16
  156. package/dist/collection/components/stepper/step/step.js +13 -12
  157. package/dist/collection/components/stepper/stepper.js +28 -6
  158. package/dist/collection/components/table/table/table.js +61 -17
  159. package/dist/collection/components/table/table-body/table-body.js +7 -7
  160. package/dist/collection/components/table/table-body-cell/table-body-cell.css +11 -8
  161. package/dist/collection/components/table/table-body-cell/table-body-cell.js +58 -13
  162. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -1
  163. package/dist/collection/components/table/table-body-row/table-body-row.js +14 -5
  164. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +26 -1
  165. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +116 -17
  166. package/dist/collection/components/table/table-footer/table-footer.js +96 -23
  167. package/dist/collection/components/table/table-header/table-header.css +0 -3
  168. package/dist/collection/components/table/table-header/table-header.js +18 -8
  169. package/dist/collection/components/table/table-header-cell/table-header-cell.css +34 -27
  170. package/dist/collection/components/table/table-header-cell/table-header-cell.js +84 -31
  171. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +8 -3
  172. package/dist/collection/components/table/table-toolbar/table-toolbar.js +14 -5
  173. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +6 -4
  174. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +50 -37
  175. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +6 -3
  176. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +3 -1
  177. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +56 -46
  178. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +6 -3
  179. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +56 -40
  180. package/dist/collection/components/tag/tag.js +16 -9
  181. package/dist/collection/components/text-field/text-field.js +99 -41
  182. package/dist/collection/components/textarea/textarea.js +72 -30
  183. package/dist/collection/components/toast/toast.js +45 -24
  184. package/dist/collection/components/toggle/toggle.js +40 -22
  185. package/dist/collection/components/tooltip/tooltip.js +55 -27
  186. package/dist/components/index.d.ts +2 -0
  187. package/dist/components/index.js +1 -1
  188. package/dist/components/p-BLhZliIO.js +1 -0
  189. package/dist/components/p-BMeMtNu0.js +1 -0
  190. package/dist/components/p-BYl_hs2I.js +1 -0
  191. package/dist/components/p-BonnqD8w.js +1 -0
  192. package/dist/components/p-Bp11uQum.js +1 -0
  193. package/dist/components/p-C4MTsi5W.js +1 -0
  194. package/dist/components/p-C9VPZFHA.js +1 -0
  195. package/dist/components/p-CBZ6wC3m.js +1 -0
  196. package/dist/components/p-CKbZVUR2.js +1 -0
  197. package/dist/components/p-CuBmZ6sl.js +1 -0
  198. package/dist/components/p-CuIyaNyT.js +1 -0
  199. package/dist/components/p-CwklLnIa.js +1 -0
  200. package/dist/components/p-CzyhBRHW.js +1 -0
  201. package/dist/components/p-D0Aaqu_c.js +1 -0
  202. package/dist/components/p-DGE6WcOB.js +1 -0
  203. package/dist/components/p-DdOzmmZe.js +1 -0
  204. package/dist/components/p-DjZ0RkWr.js +1 -0
  205. package/dist/components/p-DlkBTA_R.js +1 -0
  206. package/dist/{tegel/p-0bd4c19c.js → components/p-Q3W78DlP.js} +1 -1
  207. package/dist/components/p-Zx1hN-_O.js +1 -0
  208. package/dist/components/p-hVetZOGH.js +1 -0
  209. package/dist/components/tds-accordion-item.js +1 -98
  210. package/dist/components/tds-accordion.js +1 -44
  211. package/dist/components/tds-badge.js +1 -76
  212. package/dist/components/tds-banner.js +1 -93
  213. package/dist/components/tds-block.js +1 -63
  214. package/dist/components/tds-body-cell.js +1 -131
  215. package/dist/components/tds-breadcrumb.js +1 -38
  216. package/dist/components/tds-breadcrumbs.js +1 -41
  217. package/dist/components/tds-button.js +1 -6
  218. package/dist/components/tds-card.js +1 -112
  219. package/dist/components/tds-checkbox.js +1 -6
  220. package/dist/components/tds-chip.js +1 -120
  221. package/dist/components/tds-core-header-item.js +1 -6
  222. package/dist/components/tds-datetime.js +1 -198
  223. package/dist/components/tds-divider.js +1 -6
  224. package/dist/components/tds-dropdown-option.js +1 -6
  225. package/dist/components/tds-dropdown.js +1 -6
  226. package/dist/components/tds-folder-tab.js +1 -74
  227. package/dist/components/tds-folder-tabs.js +1 -228
  228. package/dist/components/tds-footer-group.js +1 -87
  229. package/dist/components/tds-footer-item.js +1 -44
  230. package/dist/components/tds-footer.js +1 -47
  231. package/dist/components/tds-header-brand-symbol.js +1 -52
  232. package/dist/components/tds-header-cell.js +1 -187
  233. package/dist/components/tds-header-dropdown-list-item.js +1 -6
  234. package/dist/components/tds-header-dropdown-list-user.js +1 -45
  235. package/dist/components/tds-header-dropdown-list.js +1 -6
  236. package/dist/components/tds-header-dropdown.js +1 -127
  237. package/dist/components/tds-header-hamburger.js +1 -59
  238. package/dist/components/tds-header-item.js +1 -6
  239. package/dist/components/tds-header-launcher-button.js +1 -6
  240. package/dist/components/tds-header-launcher-grid-item.js +1 -35
  241. package/dist/components/tds-header-launcher-grid-title.js +1 -36
  242. package/dist/components/tds-header-launcher-grid.js +1 -58
  243. package/dist/components/tds-header-launcher-list-item.js +1 -41
  244. package/dist/components/tds-header-launcher-list-title.js +1 -37
  245. package/dist/components/tds-header-launcher-list.js +1 -38
  246. package/dist/components/tds-header-launcher.js +1 -134
  247. package/dist/components/tds-header-title.js +1 -35
  248. package/dist/components/tds-header.js +1 -74
  249. package/dist/components/tds-icon.js +1 -6
  250. package/dist/components/tds-inline-tab.js +1 -68
  251. package/dist/components/tds-inline-tabs.js +1 -234
  252. package/dist/components/tds-link.js +1 -64
  253. package/dist/components/tds-message.js +1 -84
  254. package/dist/components/tds-modal.js +1 -262
  255. package/dist/components/tds-navigation-tab.js +1 -65
  256. package/dist/components/tds-navigation-tabs.js +1 -240
  257. package/dist/components/tds-popover-canvas.js +1 -6
  258. package/dist/components/tds-popover-core.js +1 -6
  259. package/dist/components/tds-popover-menu-item.js +1 -41
  260. package/dist/components/tds-popover-menu.js +1 -84
  261. package/dist/components/tds-radio-button.js +1 -70
  262. package/dist/components/tds-side-menu-close-button.js +1 -53
  263. package/dist/components/tds-side-menu-collapse-button.js +1 -74
  264. package/dist/components/tds-side-menu-dropdown-list-item.js +1 -78
  265. package/dist/components/tds-side-menu-dropdown-list.js +1 -49
  266. package/dist/components/tds-side-menu-dropdown.js +1 -113
  267. package/dist/components/tds-side-menu-item.js +1 -6
  268. package/dist/components/tds-side-menu-overlay.js +1 -35
  269. package/dist/components/tds-side-menu-user-image.js +1 -6
  270. package/dist/components/tds-side-menu-user-label.js +1 -6
  271. package/dist/components/tds-side-menu-user.js +1 -56
  272. package/dist/components/tds-side-menu.js +1 -193
  273. package/dist/components/tds-slider.js +1 -545
  274. package/dist/components/tds-spinner.js +1 -39
  275. package/dist/components/tds-step.js +1 -86
  276. package/dist/components/tds-stepper.js +1 -95
  277. package/dist/components/tds-table-body-input-wrapper.js +1 -130
  278. package/dist/components/tds-table-body-row-expandable.js +1 -175
  279. package/dist/components/tds-table-body-row.js +1 -125
  280. package/dist/components/tds-table-body.js +1 -108
  281. package/dist/components/tds-table-footer.js +1 -210
  282. package/dist/components/tds-table-header-input-wrapper.js +1 -112
  283. package/dist/components/tds-table-header.js +1 -144
  284. package/dist/components/tds-table-toolbar.js +1 -119
  285. package/dist/components/tds-table.js +1 -168
  286. package/dist/components/tds-tag.js +1 -48
  287. package/dist/components/tds-text-field.js +1 -6
  288. package/dist/components/tds-textarea.js +1 -156
  289. package/dist/components/tds-toast.js +1 -117
  290. package/dist/components/tds-toggle.js +1 -86
  291. package/dist/components/tds-tooltip.js +1 -6
  292. package/dist/esm/index-9xxNGlso.js +2492 -0
  293. package/dist/{components/p-0bd4c19c.js → esm/inheritAriaAttributes-DyLhgCIg.js} +1 -1
  294. package/dist/esm/{isHeadingElement-8efea284.js → isHeadingElement-BQco7VNg.js} +1 -1
  295. package/dist/esm/loader.js +3 -4
  296. package/dist/esm/tds-accordion-item.entry.js +10 -5
  297. package/dist/esm/tds-accordion.entry.js +5 -4
  298. package/dist/esm/tds-badge.entry.js +13 -6
  299. package/dist/esm/tds-banner.entry.js +19 -13
  300. package/dist/esm/tds-block.entry.js +5 -4
  301. package/dist/esm/tds-body-cell.entry.js +6 -9
  302. package/dist/esm/tds-breadcrumb.entry.js +4 -4
  303. package/dist/esm/tds-breadcrumbs.entry.js +3 -5
  304. package/dist/esm/tds-button_2.entry.js +16 -13
  305. package/dist/esm/tds-card.entry.js +29 -18
  306. package/dist/esm/tds-checkbox.entry.js +17 -15
  307. package/dist/esm/tds-chip.entry.js +20 -15
  308. package/dist/esm/tds-core-header-item_2.entry.js +12 -11
  309. package/dist/esm/tds-datetime.entry.js +33 -25
  310. package/dist/esm/tds-dropdown_2.entry.js +72 -65
  311. package/dist/esm/tds-folder-tab.entry.js +6 -7
  312. package/dist/esm/tds-folder-tabs.entry.js +40 -36
  313. package/dist/esm/tds-footer-group.entry.js +11 -12
  314. package/dist/esm/tds-footer-item.entry.js +4 -5
  315. package/dist/esm/tds-footer.entry.js +8 -8
  316. package/dist/esm/tds-header-brand-symbol.entry.js +4 -5
  317. package/dist/esm/tds-header-cell.entry.js +23 -24
  318. package/dist/esm/tds-header-dropdown-list-item.entry.js +7 -6
  319. package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -9
  320. package/dist/esm/tds-header-dropdown-list.entry.js +7 -8
  321. package/dist/esm/tds-header-dropdown.entry.js +12 -14
  322. package/dist/esm/tds-header-hamburger.entry.js +6 -8
  323. package/dist/esm/tds-header-launcher-button.entry.js +8 -8
  324. package/dist/esm/tds-header-launcher-grid-item.entry.js +4 -5
  325. package/dist/esm/tds-header-launcher-grid-title.entry.js +5 -6
  326. package/dist/esm/tds-header-launcher-grid.entry.js +6 -8
  327. package/dist/esm/tds-header-launcher-list-item.entry.js +4 -5
  328. package/dist/esm/tds-header-launcher-list-title.entry.js +5 -6
  329. package/dist/esm/tds-header-launcher-list.entry.js +3 -3
  330. package/dist/esm/tds-header-launcher.entry.js +9 -12
  331. package/dist/esm/tds-header-title.entry.js +4 -5
  332. package/dist/esm/tds-header.entry.js +6 -7
  333. package/dist/esm/tds-icon.entry.js +15 -16
  334. package/dist/esm/tds-inline-tab.entry.js +6 -6
  335. package/dist/esm/tds-inline-tabs.entry.js +43 -44
  336. package/dist/esm/tds-link.entry.js +8 -6
  337. package/dist/esm/tds-message.entry.js +16 -14
  338. package/dist/esm/tds-modal.entry.js +93 -45
  339. package/dist/esm/tds-navigation-tab.entry.js +6 -6
  340. package/dist/esm/tds-navigation-tabs.entry.js +43 -38
  341. package/dist/esm/tds-popover-canvas.entry.js +20 -12
  342. package/dist/esm/tds-popover-core.entry.js +54 -39
  343. package/dist/esm/tds-popover-menu-item.entry.js +6 -6
  344. package/dist/esm/tds-popover-menu.entry.js +19 -12
  345. package/dist/esm/tds-radio-button.entry.js +14 -15
  346. package/dist/esm/tds-side-menu-close-button.entry.js +6 -7
  347. package/dist/esm/tds-side-menu-collapse-button.entry.js +7 -8
  348. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +6 -6
  349. package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -6
  350. package/dist/esm/tds-side-menu-dropdown.entry.js +9 -8
  351. package/dist/esm/tds-side-menu-item.entry.js +9 -7
  352. package/dist/esm/tds-side-menu-overlay.entry.js +4 -5
  353. package/dist/esm/tds-side-menu-user-image_2.entry.js +7 -13
  354. package/dist/esm/tds-side-menu-user.entry.js +4 -9
  355. package/dist/esm/tds-side-menu.entry.js +42 -23
  356. package/dist/esm/tds-slider.entry.js +51 -32
  357. package/dist/esm/tds-spinner.entry.js +6 -5
  358. package/dist/esm/tds-step.entry.js +5 -11
  359. package/dist/esm/tds-stepper.entry.js +26 -9
  360. package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
  361. package/dist/esm/tds-table-body-row-expandable.entry.js +48 -15
  362. package/dist/esm/tds-table-body-row.entry.js +8 -6
  363. package/dist/esm/tds-table-body.entry.js +10 -11
  364. package/dist/esm/tds-table-footer.entry.js +79 -22
  365. package/dist/esm/tds-table-header-input-wrapper.entry.js +5 -5
  366. package/dist/esm/tds-table-header.entry.js +8 -7
  367. package/dist/esm/tds-table-toolbar.entry.js +8 -6
  368. package/dist/esm/tds-table.entry.js +54 -19
  369. package/dist/esm/tds-tag.entry.js +8 -8
  370. package/dist/esm/tds-text-field.entry.js +29 -18
  371. package/dist/esm/tds-textarea.entry.js +21 -14
  372. package/dist/esm/tds-toast.entry.js +20 -18
  373. package/dist/esm/tds-toggle.entry.js +17 -16
  374. package/dist/esm/tds-tooltip.entry.js +22 -18
  375. package/dist/esm/tegel.js +5 -5
  376. package/dist/tegel/assets/icons/scania/microphone.svg +4 -0
  377. package/dist/tegel/assets/icons/scania/microphone_inactive.svg +7 -0
  378. package/dist/tegel/assets/icons/scania/notification_snooze.svg +6 -0
  379. package/dist/tegel/assets/icons/scania/paperclip.svg +3 -0
  380. package/dist/tegel/p-0056a170.entry.js +1 -0
  381. package/dist/tegel/p-01f5774a.entry.js +1 -0
  382. package/dist/tegel/{p-17893043.entry.js → p-0426cbc9.entry.js} +1 -1
  383. package/dist/tegel/{p-8e930da5.entry.js → p-117b6fd9.entry.js} +1 -1
  384. package/dist/tegel/p-11f23ac6.entry.js +1 -0
  385. package/dist/tegel/p-121afb33.entry.js +1 -0
  386. package/dist/tegel/{p-133351b5.entry.js → p-12d791e7.entry.js} +1 -1
  387. package/dist/tegel/{p-79fb0088.entry.js → p-158fd791.entry.js} +1 -1
  388. package/dist/tegel/{p-a00ad341.entry.js → p-15bc881b.entry.js} +1 -1
  389. package/dist/tegel/p-182669b3.entry.js +1 -0
  390. package/dist/tegel/p-1f7bf292.entry.js +1 -0
  391. package/dist/tegel/p-1ff8bbed.entry.js +1 -0
  392. package/dist/tegel/p-2818d320.entry.js +1 -0
  393. package/dist/tegel/{p-f1d58cbf.entry.js → p-2b1c9edf.entry.js} +1 -1
  394. package/dist/tegel/{p-f097adce.entry.js → p-2eaf9959.entry.js} +1 -1
  395. package/dist/tegel/p-2fa10d10.entry.js +1 -0
  396. package/dist/tegel/p-3d11fc11.entry.js +1 -0
  397. package/dist/tegel/{p-26408506.entry.js → p-408ccb20.entry.js} +1 -1
  398. package/dist/tegel/p-44cbb1d0.entry.js +1 -0
  399. package/dist/tegel/{p-08c993f3.entry.js → p-45f611ce.entry.js} +1 -1
  400. package/dist/tegel/p-4df49756.entry.js +1 -0
  401. package/dist/tegel/p-4ff91349.entry.js +1 -0
  402. package/dist/tegel/{p-300af79f.entry.js → p-50593c6d.entry.js} +1 -1
  403. package/dist/tegel/p-5492f7b1.entry.js +1 -0
  404. package/dist/tegel/p-5af70803.entry.js +1 -0
  405. package/dist/tegel/p-5b66a01d.entry.js +1 -0
  406. package/dist/tegel/{p-15ae9443.entry.js → p-60c4deaf.entry.js} +1 -1
  407. package/dist/tegel/p-62e7169c.entry.js +1 -0
  408. package/dist/tegel/p-630d0a10.entry.js +1 -0
  409. package/dist/tegel/p-6410c845.entry.js +1 -0
  410. package/dist/tegel/p-6c3e8059.entry.js +1 -0
  411. package/dist/tegel/{p-4a10393b.entry.js → p-6c61a2f0.entry.js} +1 -1
  412. package/dist/tegel/{p-ab067071.entry.js → p-6e8da39b.entry.js} +1 -1
  413. package/dist/tegel/p-72f04cd1.entry.js +1 -0
  414. package/dist/tegel/p-7492a041.entry.js +1 -0
  415. package/dist/tegel/{p-2766b46f.entry.js → p-7ba5eadf.entry.js} +1 -1
  416. package/dist/tegel/{p-3ba2e575.entry.js → p-826bfbff.entry.js} +1 -1
  417. package/dist/tegel/{p-dc93c6e5.entry.js → p-8354ed21.entry.js} +1 -1
  418. package/dist/tegel/p-873dd581.entry.js +1 -0
  419. package/dist/tegel/p-8817bb70.entry.js +1 -0
  420. package/dist/tegel/p-88761a57.entry.js +1 -0
  421. package/dist/tegel/p-88deac25.entry.js +1 -0
  422. package/dist/tegel/p-8b3e1cd0.entry.js +1 -0
  423. package/dist/tegel/p-8e0402a1.entry.js +1 -0
  424. package/dist/tegel/{p-576a60ff.entry.js → p-8f89e6d1.entry.js} +1 -1
  425. package/dist/tegel/p-92ee76ea.entry.js +1 -0
  426. package/dist/tegel/p-9802c999.entry.js +1 -0
  427. package/dist/tegel/p-9a9ac3b2.entry.js +1 -0
  428. package/dist/tegel/p-9dd59846.entry.js +1 -0
  429. package/dist/tegel/p-9xxNGlso.js +2 -0
  430. package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
  431. package/dist/tegel/p-CF8bH08v.js +1 -0
  432. package/dist/tegel/p-CLF3diNe.js +1 -0
  433. package/dist/tegel/p-Cn4f8w1e.js +1 -0
  434. package/dist/tegel/p-DDX6uFcm.js +1 -0
  435. package/dist/tegel/p-Q3W78DlP.js +1 -0
  436. package/dist/tegel/p-a10af11f.entry.js +1 -0
  437. package/dist/tegel/{p-27369d6a.entry.js → p-a6415b2c.entry.js} +1 -1
  438. package/dist/tegel/p-a96da238.entry.js +1 -0
  439. package/dist/tegel/{p-106dd3e9.entry.js → p-a9a60c38.entry.js} +1 -1
  440. package/dist/tegel/p-ac5abaa4.entry.js +1 -0
  441. package/dist/tegel/p-ae5bc89a.entry.js +1 -0
  442. package/dist/tegel/p-b881093c.entry.js +1 -0
  443. package/dist/tegel/p-b9096df7.entry.js +1 -0
  444. package/dist/tegel/p-be4b4dfd.entry.js +1 -0
  445. package/dist/tegel/p-bf85e0e7.entry.js +1 -0
  446. package/dist/tegel/p-c1bafa58.entry.js +1 -0
  447. package/dist/tegel/{p-fc26fb72.entry.js → p-c51b97da.entry.js} +1 -1
  448. package/dist/tegel/p-c612b88f.entry.js +1 -0
  449. package/dist/tegel/p-c74d8810.entry.js +1 -0
  450. package/dist/tegel/p-c7a7d0c3.entry.js +1 -0
  451. package/dist/tegel/p-cc133aa7.entry.js +1 -0
  452. package/dist/tegel/p-ce117e66.entry.js +1 -0
  453. package/dist/tegel/p-d477128f.entry.js +1 -0
  454. package/dist/tegel/p-dc425994.entry.js +1 -0
  455. package/dist/tegel/p-de5fa736.entry.js +1 -0
  456. package/dist/tegel/{p-608997fa.entry.js → p-dfa11d82.entry.js} +1 -1
  457. package/dist/tegel/p-dfbbe349.entry.js +1 -0
  458. package/dist/tegel/p-e82bf5c9.entry.js +1 -0
  459. package/dist/tegel/p-e9d550f5.entry.js +1 -0
  460. package/dist/tegel/{p-c66b99a8.entry.js → p-ed40e3b0.entry.js} +1 -1
  461. package/dist/tegel/{p-25c4e6f6.entry.js → p-f019e894.entry.js} +1 -1
  462. package/dist/tegel/{p-4a7c213f.entry.js → p-f0b836d4.entry.js} +1 -1
  463. package/dist/tegel/p-f844ce31.entry.js +1 -0
  464. package/dist/tegel/{p-2faeb483.entry.js → p-f84ce63c.entry.js} +1 -1
  465. package/dist/tegel/p-fc26b649.entry.js +1 -0
  466. package/dist/tegel/p-wEP_nEaO.js +1 -0
  467. package/dist/tegel/tegel.css +2 -2
  468. package/dist/tegel/tegel.esm.js +1 -1
  469. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +1 -1
  470. package/dist/types/components/modal/modal.d.ts +7 -0
  471. package/dist/types/components/side-menu/side-menu.d.ts +1 -0
  472. package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
  473. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +4 -0
  474. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +12 -0
  475. package/dist/types/components/table/table-footer/table-footer.d.ts +4 -0
  476. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +5 -1
  477. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +2 -2
  478. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +2 -3
  479. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +2 -2
  480. package/dist/types/components/tag/tag.d.ts +1 -1
  481. package/dist/types/components.d.ts +1314 -154
  482. package/dist/types/stencil-public-runtime.d.ts +196 -8
  483. package/dist/types/types/ScaniaIcons.d.ts +1 -1
  484. package/package.json +9 -4
  485. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  486. package/dist/cjs/index-ca8040ad.js +0 -2039
  487. package/dist/components/p-0f9ce30b.js +0 -37
  488. package/dist/components/p-28ef5186.js +0 -1507
  489. package/dist/components/p-32351d04.js +0 -37
  490. package/dist/components/p-381677ec.js +0 -46
  491. package/dist/components/p-49b20476.js +0 -82
  492. package/dist/components/p-4c0aa33f.js +0 -117
  493. package/dist/components/p-4f672d4f.js +0 -112
  494. package/dist/components/p-542226b2.js +0 -110
  495. package/dist/components/p-5725d7a2.js +0 -113
  496. package/dist/components/p-5bb5f233.js +0 -220
  497. package/dist/components/p-859e3ebf.js +0 -68
  498. package/dist/components/p-871223b7.js +0 -719
  499. package/dist/components/p-a1181b1f.js +0 -16
  500. package/dist/components/p-ae4ca8c3.js +0 -165
  501. package/dist/components/p-d5461a3c.js +0 -59
  502. package/dist/components/p-e0997ae2.js +0 -41
  503. package/dist/components/p-e1622f4a.js +0 -32
  504. package/dist/components/p-e62ed985.js +0 -2100
  505. package/dist/components/p-f086ba26.js +0 -84
  506. package/dist/components/p-f6685f1b.js +0 -93
  507. package/dist/components/p-f8db4031.js +0 -103
  508. package/dist/esm/app-globals-0f993ce5.js +0 -3
  509. package/dist/esm/dfs-1e574d5f.js +0 -27
  510. package/dist/esm/generateUniqueId-7934d315.js +0 -26
  511. package/dist/esm/getAriaInvalid-a9944cb9.js +0 -23
  512. package/dist/esm/hasSlot-d52114d0.js +0 -9
  513. package/dist/esm/index-51d04e39.js +0 -2009
  514. package/dist/esm/inheritAriaAttributes-04f2f252.js +0 -76
  515. package/dist/esm/inheritAttributes-d21e267b.js +0 -25
  516. package/dist/tegel/p-066e9613.entry.js +0 -1
  517. package/dist/tegel/p-0684b6d3.entry.js +0 -1
  518. package/dist/tegel/p-078217d1.entry.js +0 -1
  519. package/dist/tegel/p-07d16763.entry.js +0 -1
  520. package/dist/tegel/p-0e3fcc9f.entry.js +0 -1
  521. package/dist/tegel/p-10340b85.entry.js +0 -1
  522. package/dist/tegel/p-1073fb33.entry.js +0 -1
  523. package/dist/tegel/p-123e6e54.entry.js +0 -1
  524. package/dist/tegel/p-15b9a73b.entry.js +0 -1
  525. package/dist/tegel/p-2049fab2.js +0 -2
  526. package/dist/tegel/p-225c73b6.entry.js +0 -1
  527. package/dist/tegel/p-304f5a5c.entry.js +0 -1
  528. package/dist/tegel/p-38725623.entry.js +0 -1
  529. package/dist/tegel/p-3c348fcb.entry.js +0 -1
  530. package/dist/tegel/p-419212b5.entry.js +0 -1
  531. package/dist/tegel/p-4abe96b6.entry.js +0 -1
  532. package/dist/tegel/p-508a55c0.entry.js +0 -1
  533. package/dist/tegel/p-51118061.entry.js +0 -1
  534. package/dist/tegel/p-57a2d4de.entry.js +0 -1
  535. package/dist/tegel/p-5b80467f.entry.js +0 -1
  536. package/dist/tegel/p-5bab691f.entry.js +0 -1
  537. package/dist/tegel/p-63f77d7c.entry.js +0 -1
  538. package/dist/tegel/p-6bb6425c.entry.js +0 -1
  539. package/dist/tegel/p-739068bf.entry.js +0 -1
  540. package/dist/tegel/p-87219f00.entry.js +0 -1
  541. package/dist/tegel/p-8a4837ae.entry.js +0 -1
  542. package/dist/tegel/p-91af9dc5.entry.js +0 -1
  543. package/dist/tegel/p-947ec2b0.entry.js +0 -1
  544. package/dist/tegel/p-9772750e.entry.js +0 -1
  545. package/dist/tegel/p-9f154997.entry.js +0 -1
  546. package/dist/tegel/p-a15280db.entry.js +0 -1
  547. package/dist/tegel/p-a2aaf61c.entry.js +0 -1
  548. package/dist/tegel/p-aa795666.entry.js +0 -1
  549. package/dist/tegel/p-b7e0917f.entry.js +0 -1
  550. package/dist/tegel/p-bc697ea7.entry.js +0 -1
  551. package/dist/tegel/p-bf40233e.entry.js +0 -1
  552. package/dist/tegel/p-c05f61d6.entry.js +0 -1
  553. package/dist/tegel/p-c163d44f.entry.js +0 -1
  554. package/dist/tegel/p-c2ab817d.entry.js +0 -1
  555. package/dist/tegel/p-c4719b10.entry.js +0 -1
  556. package/dist/tegel/p-c7be09fc.entry.js +0 -1
  557. package/dist/tegel/p-c8fd6b3b.entry.js +0 -1
  558. package/dist/tegel/p-caadaf33.entry.js +0 -1
  559. package/dist/tegel/p-ce6faf0e.entry.js +0 -1
  560. package/dist/tegel/p-d031a7ca.entry.js +0 -1
  561. package/dist/tegel/p-da72f897.entry.js +0 -1
  562. package/dist/tegel/p-ded1191e.entry.js +0 -1
  563. package/dist/tegel/p-e1255160.js +0 -1
  564. package/dist/tegel/p-e2a6c30c.entry.js +0 -1
  565. package/dist/tegel/p-e2db17a5.entry.js +0 -1
  566. package/dist/tegel/p-e40d454d.entry.js +0 -1
  567. package/dist/tegel/p-e53da1e5.entry.js +0 -1
  568. package/dist/tegel/p-e64c36a3.entry.js +0 -1
  569. package/dist/tegel/p-ebf13d81.entry.js +0 -1
  570. package/dist/tegel/p-ede87410.entry.js +0 -1
  571. package/dist/tegel/p-f3cf4eba.entry.js +0 -1
  572. package/loader/package.json +0 -11
  573. /package/dist/cjs/{dfs-84f7f63e.js → dfs-Clg9RCmq.js} +0 -0
  574. /package/dist/cjs/{generateUniqueId-e3fc9863.js → generateUniqueId-ComXTAM_.js} +0 -0
  575. /package/dist/cjs/{getAriaInvalid-66a2eade.js → getAriaInvalid-Bdg4qUb_.js} +0 -0
  576. /package/dist/cjs/{hasSlot-1c90e9ba.js → hasSlot-D-DVNhGg.js} +0 -0
  577. /package/dist/cjs/{inheritAttributes-ff9ad737.js → inheritAttributes-CGw91JfB.js} +0 -0
  578. /package/dist/{tegel/p-3fe9cbbf.js → components/p-CF8bH08v.js} +0 -0
  579. /package/dist/{tegel/p-52bf0fdf.js → components/p-CLF3diNe.js} +0 -0
  580. /package/dist/{tegel/p-11648030.js → components/p-Cn4f8w1e.js} +0 -0
  581. /package/dist/{tegel/p-ae110fc2.js → components/p-DDX6uFcm.js} +0 -0
  582. /package/dist/{tegel/p-bbf9492a.js → components/p-wEP_nEaO.js} +0 -0
  583. /package/dist/{components/p-52bf0fdf.js → esm/dfs-CLF3diNe.js} +0 -0
  584. /package/dist/{components/p-11648030.js → esm/generateUniqueId-Cn4f8w1e.js} +0 -0
  585. /package/dist/{components/p-bbf9492a.js → esm/getAriaInvalid-wEP_nEaO.js} +0 -0
  586. /package/dist/{components/p-ae110fc2.js → esm/hasSlot-DDX6uFcm.js} +0 -0
  587. /package/dist/{components/p-3fe9cbbf.js → esm/inheritAttributes-CF8bH08v.js} +0 -0
@@ -1,15 +1,13 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
4
 
5
- const index = require('./index-ca8040ad.js');
6
-
7
- const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-inline-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 0}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:3px;bottom:3px;outline:2px solid var(--tds-blue-400);outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover ::slotted(*){color:var(--tds-inline-tabs-tab-color-hover)}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled ::slotted(*){color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed;color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
8
- const TdsInlineTabStyle0 = inlineTabCss;
5
+ const inlineTabCss = () => `:host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-inline-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 0}:host ::slotted(*:focus-visible)::before{content:"";position:absolute;left:0;right:0;top:3px;bottom:3px;outline:2px solid var(--tds-blue-400);outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover ::slotted(*){color:var(--tds-inline-tabs-tab-color-hover)}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:" ";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled ::slotted(*){color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed;color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}`;
9
6
 
10
7
  const TdsInlineTab = class {
11
8
  constructor(hostRef) {
12
9
  index.registerInstance(this, hostRef);
10
+ /** Disables the Tab. */
13
11
  this.disabled = false;
14
12
  this.selected = false;
15
13
  }
@@ -36,14 +34,14 @@ const TdsInlineTab = class {
36
34
  }
37
35
  }
38
36
  render() {
39
- return (index.h(index.Host, { key: '9e15778f89e70701ea058a8aa8377b18bc693d2b', "aria-selected": this.selected }, index.h("div", { key: '963dfa3c27aa7395919ac976851d173f4bc483fe', class: {
37
+ return (index.h(index.Host, { key: '7d62fa3a70a8834c4eb623a7cca8922a230ec171', "aria-selected": this.selected }, index.h("div", { key: 'b911f1ca34a763f5a80dc5a9ea2b24e3c905dc13', class: {
40
38
  'inline-tab-item': true,
41
39
  'selected': this.selected,
42
40
  'disabled': this.disabled,
43
- } }, index.h("slot", { key: 'dcadb0ee891fa9a3a7ad94a2af33d82a674d2ecf' }))));
41
+ } }, index.h("slot", { key: '6048d4febed88ec7630bedd7e5215339a716047b' }))));
44
42
  }
45
43
  get host() { return index.getElement(this); }
46
44
  };
47
- TdsInlineTab.style = TdsInlineTabStyle0;
45
+ TdsInlineTab.style = inlineTabCss();
48
46
 
49
47
  exports.tds_inline_tab = TdsInlineTab;
@@ -1,21 +1,30 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
4
 
5
- const index = require('./index-ca8040ad.js');
6
-
7
- const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus-visible::before,:host .scroll-left-button:focus-visible::before{content:\"\";position:absolute;inset:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button:focus-visible,:host .scroll-left-button:focus-visible{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
8
- const TdsInlineTabsStyle0 = inlineTabsCss;
5
+ const inlineTabsCss = () => `:host{box-sizing:border-box;--padding-left:0;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:" ";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px;padding-left:var(--padding-left)}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:calc(0px - var(--padding-left));z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus-visible::before,:host .scroll-left-button:focus-visible::before{content:"";position:absolute;inset:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button:focus-visible,:host .scroll-left-button:focus-visible{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}`;
9
6
 
10
7
  const TdsInlineTabs = class {
11
8
  constructor(hostRef) {
12
9
  index.registerInstance(this, hostRef);
13
10
  this.tdsChange = index.createEvent(this, "tdsChange", 7);
11
+ /** Variant of the Tabs, primary= on white, secondary= on grey50 */
12
+ this.modeVariant = 'primary';
13
+ /** Sets the default selected Tab. */
14
+ this.defaultSelectedIndex = 0;
15
+ /** Defines aria-label on left scroll button */
16
+ this.tdsScrollLeftAriaLabel = 'Scroll left';
17
+ /** Defines aria-label on right scroll button */
18
+ this.tdsScrollRightAriaLabel = 'Scroll right';
19
+ /** Custom left padding value for the wrapper element. */
20
+ this.leftPadding = 32;
21
+ this.showLeftScroll = false;
22
+ this.showRightScroll = false;
14
23
  this.navWrapperElement = null; // reference to container with nav buttons
15
24
  this.componentWidth = 0; // visible width of this component
16
25
  this.buttonsWidth = 0; // total width of all nav items combined
17
- this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
18
- this.children = [];
26
+ this.scrollableWidth = 0; // total amount that is possible to scroll in the nav wrapper
27
+ this.tabElements = [];
19
28
  this.clickHandlers = new WeakMap();
20
29
  this.addResizeObserver = () => {
21
30
  const resizeObserver = new ResizeObserver((entries) => {
@@ -30,7 +39,7 @@ const TdsInlineTabs = class {
30
39
  });
31
40
  this.componentWidth = componentWidth;
32
41
  this.buttonsWidth = buttonsWidth;
33
- this.scrollWidth = buttonsWidth - componentWidth;
42
+ this.scrollableWidth = buttonsWidth - componentWidth;
34
43
  this.updateScrollButtons();
35
44
  });
36
45
  });
@@ -38,15 +47,15 @@ const TdsInlineTabs = class {
38
47
  resizeObserver.observe(this.navWrapperElement);
39
48
  };
40
49
  this.addEventListenerToTabs = () => {
41
- this.children = Array.from(this.host.children);
42
- this.children.map((item, index) => {
50
+ this.tabElements = Array.from(this.host.children);
51
+ this.tabElements.map((item, index) => {
43
52
  const clickHandler = () => {
44
53
  if (!item.disabled) {
45
54
  const tdsChangeEvent = this.tdsChange.emit({
46
- selectedTabIndex: this.children.indexOf(item),
55
+ selectedTabIndex: this.tabElements.indexOf(item),
47
56
  });
48
57
  if (!tdsChangeEvent.defaultPrevented) {
49
- this.children.forEach((element) => element.setSelected(false));
58
+ this.tabElements.forEach((element) => element.setSelected(false));
50
59
  item.setSelected(true);
51
60
  this.selectedIndex = index;
52
61
  }
@@ -58,7 +67,7 @@ const TdsInlineTabs = class {
58
67
  });
59
68
  };
60
69
  this.removeEventListenerFromTabs = () => {
61
- this.children.forEach((item) => {
70
+ this.tabElements.forEach((item) => {
62
71
  const clickHandler = this.clickHandlers.get(item);
63
72
  if (clickHandler) {
64
73
  item.removeEventListener('click', clickHandler);
@@ -66,24 +75,16 @@ const TdsInlineTabs = class {
66
75
  }
67
76
  });
68
77
  };
69
- this.modeVariant = 'primary';
70
- this.defaultSelectedIndex = 0;
71
- this.selectedIndex = undefined;
72
- this.tdsScrollLeftAriaLabel = 'Scroll left';
73
- this.tdsScrollRightAriaLabel = 'Scroll right';
74
- this.leftPadding = 32;
75
- this.showLeftScroll = false;
76
- this.showRightScroll = false;
77
78
  }
78
79
  /** Selects a Tab based on tabindex, will not select a disabled Tab. */
79
80
  async selectTab(tabIndex) {
80
- if (tabIndex < 0 || tabIndex >= this.children.length) {
81
+ if (tabIndex < 0 || tabIndex >= this.tabElements.length) {
81
82
  throw new Error('Tab index out of bounds');
82
83
  }
83
- this.children = Array.from(this.host.children);
84
- if (!this.children[tabIndex].disabled) {
85
- this.children.forEach((element) => element.setSelected(false));
86
- this.children = this.children.map((element, index) => {
84
+ this.tabElements = Array.from(this.host.children);
85
+ if (!this.tabElements[tabIndex].disabled) {
86
+ this.tabElements.forEach((element) => element.setSelected(false));
87
+ this.tabElements = this.tabElements.map((element, index) => {
87
88
  if (index === tabIndex) {
88
89
  element.setSelected(true);
89
90
  this.selectedIndex = tabIndex;
@@ -98,12 +99,12 @@ const TdsInlineTabs = class {
98
99
  this.handleSlotChange();
99
100
  }
100
101
  handleSelectedIndexUpdate() {
101
- this.children = Array.from(this.host.children).map((tabElement) => {
102
+ this.tabElements = Array.from(this.host.children).map((tabElement) => {
102
103
  tabElement.setSelected(false);
103
104
  return tabElement;
104
105
  });
105
- if (this.selectedIndex) {
106
- this.children[this.selectedIndex].setSelected(true);
106
+ if (this.selectedIndex !== undefined) {
107
+ this.tabElements[this.selectedIndex].setSelected(true);
107
108
  }
108
109
  }
109
110
  scrollRight() {
@@ -124,27 +125,27 @@ const TdsInlineTabs = class {
124
125
  if (!this.navWrapperElement)
125
126
  return;
126
127
  const scroll = this.navWrapperElement.scrollLeft;
127
- this.showRightScroll = scroll <= this.scrollWidth;
128
+ this.showRightScroll = scroll <= this.scrollableWidth;
128
129
  this.showLeftScroll = scroll > 0;
129
130
  }
130
131
  initializeTabs() {
131
- this.children = Array.from(this.host.children);
132
+ this.tabElements = Array.from(this.host.children);
132
133
  // remove first and last class from other tabs in case of initialization
133
- this.children.forEach((child) => {
134
+ this.tabElements.forEach((child) => {
134
135
  child.classList.remove('last');
135
136
  child.classList.remove('first');
136
137
  });
137
- this.children[0].classList.add('first');
138
- this.children[this.children.length - 1].classList.add('last');
138
+ this.tabElements[0].classList.add('first');
139
+ this.tabElements[this.tabElements.length - 1].classList.add('last');
139
140
  }
140
141
  initializeSelectedTab() {
141
142
  if (this.selectedIndex === undefined) {
142
143
  this.addEventListenerToTabs();
143
- this.children[this.defaultSelectedIndex].setSelected(true);
144
+ this.tabElements[this.defaultSelectedIndex].setSelected(true);
144
145
  this.selectedIndex = this.defaultSelectedIndex;
145
146
  }
146
147
  else {
147
- this.children[this.selectedIndex].setSelected(true);
148
+ this.tabElements[this.selectedIndex].setSelected(true);
148
149
  }
149
150
  this.tdsChange.emit({
150
151
  selectedTabIndex: this.selectedIndex,
@@ -159,18 +160,12 @@ const TdsInlineTabs = class {
159
160
  this.showRightScroll = false;
160
161
  }
161
162
  }
162
- applyCustomLeftPadding() {
163
- if (this.navWrapperElement) {
164
- this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
165
- }
166
- }
167
163
  handleSlotChange() {
168
164
  this.initializeTabs();
169
165
  this.addEventListenerToTabs();
170
166
  this.initializeSelectedTab();
171
167
  this.updateScrollButtons();
172
168
  this.addResizeObserver();
173
- this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
174
169
  }
175
170
  connectedCallback() {
176
171
  this.initializeTabs();
@@ -186,15 +181,17 @@ const TdsInlineTabs = class {
186
181
  this.removeEventListenerFromTabs();
187
182
  }
188
183
  render() {
189
- return (index.h(index.Host, { key: 'e5c91714cc292fc3b5ba4aea446507b07e3d7928', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, index.h("div", { key: '494199f5f33abb5b5da122caf0124329630ce0e3', class: "wrapper", ref: (el) => {
184
+ return (index.h(index.Host, { key: '1870a40347336fbfd97c47f0866cd78c813ffbdc', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}`, style: { '--padding-left': `${this.leftPadding}px` } }, index.h("div", { key: '54527cb0bf23b8e631c0b6be516a2bb60714efb6', class: "wrapper", ref: (el) => {
190
185
  this.navWrapperElement = el;
191
- }, style: { paddingLeft: `${this.leftPadding}px` } }, index.h("button", { key: '60f7ec503a86d2a2aabb6153a67a804ac297931c', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, index.h("tds-icon", { key: 'ed092e0d1077b9865ce7b62a889c7687c8fe7758', name: "chevron_left", size: "20px" })), index.h("slot", { key: '99f32f72a5f3b8ccb47a59cd910953fdbc898fb1', onSlotchange: () => this.handleSlotChange() }), index.h("button", { key: 'c24a97379767c6e4a1107e957fd7304218231b37', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, index.h("tds-icon", { key: 'cd0f808c268006cb6074e0cf1250e4667b6f1c89', name: "chevron_right", size: "20px" })))));
186
+ } }, index.h("button", { key: '984160ddc5a713a4884fc3806ea10e0497c33470', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, index.h("tds-icon", { key: '5220fce6d90abe341463684f77745581d71d0da8', name: "chevron_left", size: "20px" })), index.h("slot", { key: 'b7d84ba3ab548115e0cabd36133a661ac71572af', onSlotchange: () => this.handleSlotChange() }), index.h("button", { key: 'c3fb6575db477722653a4a947c230db695c25dfb', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, index.h("tds-icon", { key: '23c7c0a8149aff4921cad04cb012d33915f5181e', name: "chevron_right", size: "20px" })))));
192
187
  }
193
188
  get host() { return index.getElement(this); }
194
189
  static get watchers() { return {
195
- "selectedIndex": ["handleSelectedIndexUpdate"]
190
+ "selectedIndex": [{
191
+ "handleSelectedIndexUpdate": 0
192
+ }]
196
193
  }; }
197
194
  };
198
- TdsInlineTabs.style = TdsInlineTabsStyle0;
195
+ TdsInlineTabs.style = inlineTabsCss();
199
196
 
200
197
  exports.tds_inline_tabs = TdsInlineTabs;
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
4
 
5
- const index = require('./index-ca8040ad.js');
6
-
7
- const linkCss = ":host{display:inline}:host ::slotted(*){all:unset;cursor:pointer;outline:none;color:var(--tds-link);text-decoration:underline}:host ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:none}:host .no-underline ::slotted(*){text-decoration:none}:host .no-underline ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:underline;text-decoration-color:var(--tds-link-hover)}:host ::slotted(*:focus-visible){color:var(--tds-link-focus);text-decoration:none;box-shadow:0 0 0 1px var(--tds-white), 0 0 0 3px var(--tds-link-focus)}:host ::slotted(*:active){color:var(--tds-link);text-decoration:underline;text-decoration-color:var(--tds-link)}:host ::slotted(*:visited){color:var(--tds-link-visited);text-decoration-color:var(--tds-link-visited)}.disabled ::slotted(*),.disabled ::slotted(*:visited){color:var(--tds-link-disabled);text-decoration-color:var(--tds-link-disabled);pointer-events:none}.standalone ::slotted(*){font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}";
8
- const TdsLinkStyle0 = linkCss;
5
+ const linkCss = () => `:host{display:inline}:host ::slotted(*){all:unset;cursor:pointer;outline:none;color:var(--tds-link);text-decoration:underline}:host ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:none}:host .no-underline ::slotted(*){text-decoration:none}:host .no-underline ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:underline;text-decoration-color:var(--tds-link-hover)}:host ::slotted(*:focus-visible){color:var(--tds-link-focus);text-decoration:none;box-shadow:0 0 0 1px var(--tds-white), 0 0 0 3px var(--tds-link-focus)}:host ::slotted(*:active){color:var(--tds-link);text-decoration:underline;text-decoration-color:var(--tds-link)}:host ::slotted(*:visited){color:var(--tds-link-visited);text-decoration-color:var(--tds-link-visited)}.disabled ::slotted(*),.disabled ::slotted(*:visited){color:var(--tds-link-disabled);text-decoration-color:var(--tds-link-disabled);pointer-events:none}.standalone ::slotted(*){font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}`;
9
6
 
10
7
  const TdsLink = class {
11
8
  constructor(hostRef) {
12
9
  index.registerInstance(this, hostRef);
10
+ /** Disables the Link */
13
11
  this.disabled = false;
12
+ /** Displays the Link with an underline. */
14
13
  this.underline = true;
14
+ /** Displays the Link as a standalone component. Not part of a paragraph. */
15
15
  this.standalone = false;
16
16
  }
17
17
  connectedCallback() {
@@ -32,14 +32,14 @@ const TdsLink = class {
32
32
  }
33
33
  }
34
34
  render() {
35
- return (index.h("span", { key: '37f0a1d6f793f3b333dd1d36cb4d71c6c0ca68c9', class: {
35
+ return (index.h("span", { key: '5fc21ffc7b7729795b156a9fd6cd9f2cf60be758', class: {
36
36
  'disabled': this.disabled,
37
37
  'no-underline': !this.underline,
38
38
  'standalone': this.standalone,
39
- } }, index.h("slot", { key: 'a2943a35f2ca2daceab8036b5f4a858dbed487c9' })));
39
+ } }, index.h("slot", { key: '40a42ad82cf71553feabec642dae10d8966124fa' })));
40
40
  }
41
41
  get host() { return index.getElement(this); }
42
42
  };
43
- TdsLink.style = TdsLinkStyle0;
43
+ TdsLink.style = linkCss();
44
44
 
45
45
  exports.tds_link = TdsLink;
@@ -1,16 +1,23 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
+ var generateUniqueId = require('./generateUniqueId-ComXTAM_.js');
4
5
 
5
- const index = require('./index-ca8040ad.js');
6
- const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
7
-
8
- const messageCss = ":host .wrapper{display:flex;padding:16px;background-color:var(--tds-message-background);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-message-border-info)}:host .wrapper.information tds-icon{color:var(--tds-message-icon-info)}:host .wrapper.success{background-color:var(--tds-message-background-success);border-left:4px solid var(--tds-message-border-success)}:host .wrapper.success tds-icon{color:var(--tds-message-icon-success)}:host .wrapper.error{background-color:var(--tds-message-background-error);border-left:4px solid var(--tds-message-border-error)}:host .wrapper.error tds-icon{color:var(--tds-message-icon-error)}:host .wrapper.warning{background-color:var(--tds-message-background-warning);border-left:4px solid var(--tds-message-border-warning)}:host .wrapper.warning tds-icon{color:var(--tds-message-icon-warning)}:host .wrapper.minimal{border:none;padding:0;background-color:transparent}:host .wrapper.minimal tds-icon{padding-right:8px}:host .wrapper.minimal .header{font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}:host .wrapper.minimal.error .header{color:var(--tds-message-minimal-header-error)}:host tds-icon{padding-right:16px}:host .content{display:flex;flex-direction:column;gap:4px;color:var(--foreground-text-strong);padding:2px 24px 2px 0;overflow-wrap:anywhere}:host .content .header{font-family:var(--headline-07-font-family);font-size:var(--headline-07-font-size);line-height:var(--headline-07-line-height);font-weight:var(--headline-07-font-weight);letter-spacing:var(--headline-07-letter-spacing);text-transform:var(--headline-07-text-transform)}:host .content .extended-message{color:var(--foreground-text-strong);font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}";
9
- const TdsMessageStyle0 = messageCss;
6
+ const messageCss = () => `:host .wrapper{display:flex;padding:16px;background-color:var(--tds-message-background);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-message-border-info)}:host .wrapper.information tds-icon{color:var(--tds-message-icon-info)}:host .wrapper.success{background-color:var(--tds-message-background-success);border-left:4px solid var(--tds-message-border-success)}:host .wrapper.success tds-icon{color:var(--tds-message-icon-success)}:host .wrapper.error{background-color:var(--tds-message-background-error);border-left:4px solid var(--tds-message-border-error)}:host .wrapper.error tds-icon{color:var(--tds-message-icon-error)}:host .wrapper.warning{background-color:var(--tds-message-background-warning);border-left:4px solid var(--tds-message-border-warning)}:host .wrapper.warning tds-icon{color:var(--tds-message-icon-warning)}:host .wrapper.minimal{border:none;padding:0;background-color:transparent}:host .wrapper.minimal tds-icon{padding-right:8px}:host .wrapper.minimal .header{font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}:host .wrapper.minimal.error .header{color:var(--tds-message-minimal-header-error)}:host tds-icon{padding-right:16px}:host .content{display:flex;flex-direction:column;gap:4px;color:var(--foreground-text-strong);padding:2px 24px 2px 0;overflow-wrap:anywhere}:host .content .header{font-family:var(--headline-07-font-family);font-size:var(--headline-07-font-size);line-height:var(--headline-07-line-height);font-weight:var(--headline-07-font-weight);letter-spacing:var(--headline-07-letter-spacing);text-transform:var(--headline-07-text-transform)}:host .content .extended-message{color:var(--foreground-text-strong);font-family:var(--detail-03-font-family);font-size:var(--detail-03-font-size);line-height:var(--detail-03-line-height);font-weight:var(--detail-03-font-weight);letter-spacing:var(--detail-03-letter-spacing);text-transform:var(--detail-03-text-transform)}`;
10
7
 
11
8
  const TdsMessage = class {
12
9
  constructor(hostRef) {
13
10
  index.registerInstance(this, hostRef);
11
+ /** Variant of the component, based on current mode. */
12
+ this.modeVariant = null;
13
+ /** Variant of Message. */
14
+ this.variant = 'information';
15
+ /** Removes the icon in the Message. */
16
+ this.noIcon = false;
17
+ /** Minimal Message styling. */
18
+ this.minimal = false;
19
+ /** Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages. */
20
+ this.tdsAlertDialog = 'dialog';
14
21
  this.getIconName = () => {
15
22
  switch (this.variant) {
16
23
  case 'information':
@@ -25,13 +32,6 @@ const TdsMessage = class {
25
32
  return 'info';
26
33
  }
27
34
  };
28
- this.header = undefined;
29
- this.modeVariant = null;
30
- this.variant = 'information';
31
- this.noIcon = false;
32
- this.minimal = false;
33
- this.tdsAlertDialog = 'dialog';
34
- this.tdsAriaLabel = undefined;
35
35
  }
36
36
  getAriaLabel() {
37
37
  if (this.header) {
@@ -43,13 +43,13 @@ const TdsMessage = class {
43
43
  render() {
44
44
  const headerId = this.header ? `tds-message-header-${generateUniqueId.generateUniqueId()}` : undefined;
45
45
  const contentId = !this.minimal ? `tds-message-content-${generateUniqueId.generateUniqueId()}` : undefined;
46
- return (index.h(index.Host, { key: 'b093c8aa74d5c52a7cbb6656a854f2b0bda88f9e', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, index.h("div", { key: '9d9bc245bdeb9f8b8868d943f3e39f6fc7ccd170', class: {
46
+ return (index.h(index.Host, { key: '7ce9210aec2766b7ada461f9220cb9c5dce8876c', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, index.h("div", { key: 'a3d71e1d28f49315b0e5bcb9df649fa1d9928086', class: {
47
47
  wrapper: true,
48
48
  [this.variant]: true,
49
49
  minimal: this.minimal,
50
- } }, !this.noIcon && (index.h("tds-icon", { key: '99bd0439c3b09319b02fad1bd730bc4224394c1e', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), index.h("div", { key: 'b225e23bb6230c7ed3ecb322c91ded787f1bb8b8', class: `content` }, this.header && (index.h("div", { key: '2bb19ac506aeb0ec88be8b20f4bf858d17fdb6ee', class: "header", id: headerId }, this.header)), !this.minimal && (index.h("div", { key: '560661fc2b22196461a8409d09b147591de3f02d', class: "extended-message", id: contentId }, index.h("slot", { key: '4647d9dd6eab33a41323e82edc2e12d434e5b84f' })))))));
50
+ } }, !this.noIcon && (index.h("tds-icon", { key: '74cc594b7cb0290466166ca093edc9973ccef35b', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), index.h("div", { key: '0972b6a32b95399dacd05562a8a9667316e65e4e', class: `content` }, this.header && (index.h("div", { key: '8e82bc1bb254a7ae839c97c052f084cf31fb1dee', class: "header", id: headerId }, this.header)), !this.minimal && (index.h("div", { key: 'd29f1ce9bf48e10c6c8a00a8abf7b7df5e2ac3b6', class: "extended-message", id: contentId }, index.h("slot", { key: '6e35f778392867fd78696e8b1292f08206e083ab' })))))));
51
51
  }
52
52
  };
53
- TdsMessage.style = TdsMessageStyle0;
53
+ TdsMessage.style = messageCss();
54
54
 
55
55
  exports.tds_message = TdsMessage;
@@ -1,33 +1,43 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
+ var hasSlot = require('./hasSlot-D-DVNhGg.js');
5
+ var generateUniqueId = require('./generateUniqueId-ComXTAM_.js');
4
6
 
5
- const index = require('./index-ca8040ad.js');
6
- const hasSlot = require('./hasSlot-1c90e9ba.js');
7
- const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
8
-
9
- const modalCss = ":host,:root{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}.tds-modal{box-sizing:border-box;box-shadow:var(--tds-modal-box-shadow);background-color:var(--background-elevation-layer-02);margin:auto;position:relative;border-radius:var(--radius-narrow);max-height:85vh;overflow-y:auto;pointer-events:auto}.tds-modal *{box-sizing:border-box}.tds-modal:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background-clip:padding-box}.tds-modal::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.tds-modal::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.tds-modal::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.tds-modal::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.tds-modal{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal__actions-sticky{overflow:hidden;display:flex;flex-direction:column}.tds-modal__actions-sticky .body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{bottom:-1px;left:0;right:0;background-color:var(--background-elevation-layer-02);padding:24px 16px 16px;display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--background-elevation-layer-02);display:flex;gap:16px;padding:24px 16px 16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding:16px;position:sticky;top:0;background-color:var(--background-elevation-layer-02);z-index:1}.header,slot[name=header]::slotted(*){font-family:var(--headline-05-font-family);font-size:var(--headline-05-font-size);line-height:var(--headline-05-line-height);font-weight:var(--headline-05-font-weight);letter-spacing:var(--headline-05-letter-spacing);text-transform:var(--headline-05-text-transform);color:var(--foreground-text-strong);margin:0;flex:1}.body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);color:var(--foreground-text-strong);overflow-y:visible;padding:0 16px 16px}.body:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background-clip:padding-box}.body::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.body::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.body::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.body::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.body{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--tds-modal-backdrop-background);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--foreground-text-strong);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}@media (min-width: 320px){.tds-modal-close{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close{margin-left:48px}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:48px}}.tds-modal-close-btn svg{fill:var(--foreground-text-strong)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}";
10
- const TdsModalStyle0 = modalCss;
7
+ const modalCss = () => `:host,:root{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}.tds-modal{box-sizing:border-box;box-shadow:var(--tds-modal-box-shadow);background-color:var(--background-elevation-layer-02);margin:auto;position:relative;border-radius:var(--radius-narrow);max-height:85vh;overflow-y:auto;pointer-events:auto}.tds-modal *{box-sizing:border-box}.tds-modal:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background-clip:padding-box}.tds-modal::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.tds-modal::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.tds-modal::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.tds-modal::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.tds-modal{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal__actions-sticky{overflow:hidden;display:flex;flex-direction:column}.tds-modal__actions-sticky .body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{bottom:-1px;left:0;right:0;background-color:var(--background-elevation-layer-02);padding:24px 16px 16px;display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--background-elevation-layer-02);display:flex;gap:16px;padding:24px 16px 16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding:16px;position:sticky;top:0;background-color:var(--background-elevation-layer-02);z-index:1}.header,slot[name=header]::slotted(*){font-family:var(--headline-05-font-family);font-size:var(--headline-05-font-size);line-height:var(--headline-05-line-height);font-weight:var(--headline-05-font-weight);letter-spacing:var(--headline-05-letter-spacing);text-transform:var(--headline-05-text-transform);color:var(--foreground-text-strong);margin:0;flex:1}.body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);color:var(--foreground-text-strong);overflow-y:visible;padding:0 16px 16px}.body:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background-clip:padding-box}.body::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.body::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.body::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.body::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.body{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--tds-modal-backdrop-background);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--foreground-text-strong);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}@media (min-width: 320px){.tds-modal-close{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close{margin-left:48px}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:48px}}.tds-modal-close-btn svg{fill:var(--foreground-text-strong)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}`;
11
8
 
12
9
  const TdsModal = class {
13
10
  constructor(hostRef) {
14
11
  index.registerInstance(this, hostRef);
15
12
  this.tdsClose = index.createEvent(this, "tdsClose", 7);
16
13
  this.tdsOpen = index.createEvent(this, "tdsOpen", 7);
14
+ /** Disables closing Modal on clicking on overlay area. */
15
+ this.prevent = false;
16
+ /** Size of Modal */
17
+ this.size = 'md';
18
+ /** Changes the position behaviour of the actions slot. */
19
+ this.actionsPosition = 'static';
20
+ /** Shows or hides the close [X] button. */
21
+ this.closable = true;
22
+ /** Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages. */
23
+ this.tdsAlertDialog = 'dialog';
24
+ // State that keeps track of show/closed state for the Modal.
25
+ this.isShown = false;
26
+ // Focus state index in focusable Elements
27
+ this.activeElementIndex = 0;
17
28
  this.handleClose = (event) => {
18
29
  const closeEvent = this.tdsClose.emit(event);
19
- this.returnFocusOnClose();
20
- if (closeEvent.defaultPrevented) {
30
+ if (closeEvent.defaultPrevented)
21
31
  return;
22
- }
23
32
  this.isShown = false;
33
+ this.returnFocusOnClose();
24
34
  };
25
35
  this.handleShow = () => {
26
36
  const showEvent = this.tdsOpen.emit();
27
- if (showEvent.defaultPrevented) {
37
+ if (showEvent.defaultPrevented)
28
38
  return;
29
- }
30
39
  this.isShown = true;
40
+ this.onOpen();
31
41
  };
32
42
  /** Checks if click on Modal is on overlay, if so it closes the Modal if prevent is not true. */
33
43
  this.handleOverlayClick = (event) => {
@@ -62,29 +72,11 @@ const TdsModal = class {
62
72
  referenceEl.addEventListener('click', this.handleReferenceElementClick);
63
73
  }
64
74
  };
65
- this.header = undefined;
66
- this.prevent = false;
67
- this.size = 'md';
68
- this.actionsPosition = 'static';
69
- this.selector = undefined;
70
- this.referenceEl = undefined;
71
- this.show = undefined;
72
- this.closable = true;
73
- this.tdsAlertDialog = 'dialog';
74
- this.isShown = false;
75
- this.activeElementIndex = 0;
76
75
  }
77
76
  /** Shows the Modal. */
78
77
  async showModal() {
79
78
  this.isShown = true;
80
- // Set focus on first element when opened
81
- requestAnimationFrame(() => {
82
- const focusableElements = this.getFocusableElements();
83
- if (focusableElements.length > 0) {
84
- focusableElements[0].focus();
85
- this.activeElementIndex = 0;
86
- }
87
- });
79
+ this.onOpen();
88
80
  }
89
81
  /** Closes the Modal. */
90
82
  async closeModal() {
@@ -95,6 +87,18 @@ const TdsModal = class {
95
87
  async isOpen() {
96
88
  return this.isShown;
97
89
  }
90
+ /** Runs whenever the show prop changes. */
91
+ handleShowPropChange(newValue, oldValue) {
92
+ if (newValue === oldValue || newValue === undefined)
93
+ return;
94
+ this.isShown = newValue;
95
+ if (newValue) {
96
+ this.onOpen();
97
+ }
98
+ else {
99
+ this.returnFocusOnClose();
100
+ }
101
+ }
98
102
  connectedCallback() {
99
103
  if (this.closable === undefined) {
100
104
  this.closable = true;
@@ -137,21 +141,17 @@ const TdsModal = class {
137
141
  returnFocusOnClose() {
138
142
  var _a;
139
143
  const referenceElement = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : (this.selector ? document.querySelector(this.selector) : null);
140
- if (!referenceElement) {
141
- return; // no element to return focus to
142
- }
144
+ if (!referenceElement)
145
+ return;
143
146
  const potentialReferenceElements = ['BUTTON', 'A', 'INPUT'];
144
147
  const isNativeFocusable = potentialReferenceElements.includes(referenceElement.tagName);
145
- if (isNativeFocusable) {
146
- referenceElement.focus();
147
- }
148
- else {
149
- // If referenced element is a custom element eg: tds-button we find the interactive element inside:
150
- const interactiveElement = referenceElement.querySelector(potentialReferenceElements.join(','));
151
- if (interactiveElement) {
152
- interactiveElement.focus();
153
- }
154
- }
148
+ const interactiveElement = isNativeFocusable
149
+ ? referenceElement
150
+ : referenceElement.querySelector(potentialReferenceElements.join(','));
151
+ if (!interactiveElement)
152
+ return;
153
+ interactiveElement.classList.remove('active');
154
+ interactiveElement.focus();
155
155
  }
156
156
  getFocusableElements() {
157
157
  var _a, _b;
@@ -168,6 +168,47 @@ const TdsModal = class {
168
168
  /** Focusable elements */
169
169
  return [...focusableInShadowRoot, ...focusableInSlots];
170
170
  }
171
+ /** Resets the scroll position to the top. */
172
+ resetScrollPosition() {
173
+ var _a;
174
+ const root = this.host.shadowRoot;
175
+ const scroller = (_a = root === null || root === void 0 ? void 0 : root.querySelector('.tds-modal__actions-sticky .body')) !== null && _a !== void 0 ? _a : root === null || root === void 0 ? void 0 : root.querySelector('.tds-modal');
176
+ scroller === null || scroller === void 0 ? void 0 : scroller.scrollTo(0, 0);
177
+ }
178
+ focusFirstElement() {
179
+ var _a, _b;
180
+ const focusableSelectors = [
181
+ 'a[href]',
182
+ 'button:not([disabled])',
183
+ 'textarea:not([disabled])',
184
+ 'input:not([disabled])',
185
+ 'select:not([disabled])',
186
+ '[tabindex]:not([tabindex="-1"])',
187
+ ].join(',');
188
+ // Prioritize focusable elements in slotted content (actions/body) over shadow DOM elements (like close button)
189
+ const focusableInSlots = Array.from(this.host.querySelectorAll(focusableSelectors));
190
+ if (focusableInSlots.length > 0) {
191
+ focusableInSlots[0].focus();
192
+ this.activeElementIndex = this.getFocusableElements().indexOf(focusableInSlots[0]);
193
+ }
194
+ else {
195
+ // Fallback to shadow DOM elements if no slotted content is focusable
196
+ const focusableInShadowRoot = Array.from((_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(focusableSelectors)) !== null && _b !== void 0 ? _b : []);
197
+ if (focusableInShadowRoot.length > 0) {
198
+ focusableInShadowRoot[0].focus();
199
+ this.activeElementIndex = 0;
200
+ }
201
+ }
202
+ }
203
+ /** Runs whenever the modal is opened and updates it. */
204
+ onOpen() {
205
+ // Focus immediately to preserve interaction modality for :focus-visible
206
+ this.focusFirstElement();
207
+ // Defer scroll reset to next frame
208
+ requestAnimationFrame(() => {
209
+ this.resetScrollPosition();
210
+ });
211
+ }
171
212
  handleFocusTrap(event) {
172
213
  if (event.key === 'Escape' && this.isShown && !this.prevent) {
173
214
  this.handleClose(event);
@@ -212,13 +253,18 @@ const TdsModal = class {
212
253
  const usesActionsSlot = hasSlot.hasSlot('actions', this.host);
213
254
  const headerId = this.header ? `tds-modal-header-${generateUniqueId.generateUniqueId()}` : undefined;
214
255
  const bodyId = `tds-modal-body-${generateUniqueId.generateUniqueId()}`;
215
- return (index.h(index.Host, { key: '64ec0269ed6369f5a298997f432095abf16cfe8e', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
256
+ return (index.h(index.Host, { key: 'd7064e4caeb1c10e9764c737f2e07fd1e743e31f', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
216
257
  show: this.isShown,
217
258
  hide: !this.isShown,
218
- }, onClick: (event) => this.handleOverlayClick(event) }, index.h("div", { key: 'ff7163da4e0d417f0b9e2d2669b65b4c3d980cb1', class: "tds-modal-backdrop" }), index.h("div", { key: '594ac64c3d54280f0654516429c934919beaeb5f', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, index.h("div", { key: '942924e09b8f95e2891471363fe8391d2488fae3', id: headerId, class: "header" }, this.header && index.h("div", { key: '85864122df840ff8fb2c42bc0cca02180a8e3b2f', class: "header-text" }, this.header), usesHeaderSlot && index.h("slot", { key: '2c4b6bddbf1daf0afa33a5cf2dd34e3be175a1d8', name: "header" }), this.closable && (index.h("button", { key: 'de4e7e2461a10597fabf198a8431fbeb584daa99', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, index.h("tds-icon", { key: '628d4a4c906a7ed62cc52cb406229d8ef338beec', name: "cross", size: "20px" })))), index.h("div", { key: 'efd264c203b4c2a6cb745db03c0a023584521fa2', id: bodyId, class: "body" }, index.h("slot", { key: '83499fa7bf5719b88cdad06f51b7791a9fb2ec22', name: "body" })), usesActionsSlot && index.h("slot", { key: 'ef14e74d647f3c8483abd24205d476b16626d697', name: "actions" }))));
259
+ }, onClick: (event) => this.handleOverlayClick(event) }, index.h("div", { key: '4bf5a9277626288b5df02fbd7946fb894e0da821', class: "tds-modal-backdrop" }), index.h("div", { key: '83dcfed9747c55406a5eb05fdfcc42f1e6951f0c', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}`, tabindex: "-1" }, index.h("div", { key: '73cc76d5e2f17512496567ea1be441cbe78bd652', id: headerId, class: "header" }, this.header && index.h("div", { key: '8a3833f8fa0952674b7bd3e67ad75a317b8b5e00', class: "header-text" }, this.header), usesHeaderSlot && index.h("slot", { key: '44e814197549278f1bc35d1f1378a5c989d87776', name: "header" }), this.closable && (index.h("button", { key: '5821efa68df8a13b18522e0b2d4edf3e0e2ac13d', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, index.h("tds-icon", { key: 'eb369796cce1340068d0dde2e6a9472c3579962b', name: "cross", size: "20px" })))), index.h("div", { key: 'f95670ee17a927b010178e67cff92ba54f7da111', id: bodyId, class: "body" }, index.h("slot", { key: 'ecb3d58a23f6eadd8dd69b0769df5c9c16cc9e9f', name: "body" })), usesActionsSlot && index.h("slot", { key: 'f37037afedc183f45b39d400ce8fef830859a3ee', name: "actions" }))));
219
260
  }
220
261
  get host() { return index.getElement(this); }
262
+ static get watchers() { return {
263
+ "show": [{
264
+ "handleShowPropChange": 0
265
+ }]
266
+ }; }
221
267
  };
222
- TdsModal.style = TdsModalStyle0;
268
+ TdsModal.style = modalCss();
223
269
 
224
270
  exports.tds_modal = TdsModal;
@@ -1,15 +1,13 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-DGsdvbvx.js');
4
4
 
5
- const index = require('./index-ca8040ad.js');
6
-
7
- const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 0}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:3px;bottom:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover ::slotted(*){color:var(--tds-navigation-tabs-tab-color-hover)}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .navigation-tab-item:hover:focus-within::after{bottom:3px}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled ::slotted(*){color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed;color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
8
- const TdsNavigationTabStyle0 = navigationTabCss;
5
+ const navigationTabCss = () => `:host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 0}:host ::slotted(*:focus-visible)::before{content:"";position:absolute;left:0;right:0;top:3px;bottom:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover ::slotted(*){color:var(--tds-navigation-tabs-tab-color-hover)}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:" ";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .navigation-tab-item:hover:focus-within::after{bottom:3px}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled ::slotted(*){color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed;color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}`;
9
6
 
10
7
  const TdsNavigationTab = class {
11
8
  constructor(hostRef) {
12
9
  index.registerInstance(this, hostRef);
10
+ /** Disables the Tab. */
13
11
  this.disabled = false;
14
12
  this.selected = false;
15
13
  }
@@ -36,11 +34,11 @@ const TdsNavigationTab = class {
36
34
  }
37
35
  }
38
36
  render() {
39
- return (index.h(index.Host, { key: 'c0efa8fbffa68b4c81b7f337d260ed3e8023f7bc' }, index.h("div", { key: '759dbcb91ef4b320918bcc0dae18aa9f292f2bf5', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
40
- ${this.disabled ? 'disabled' : ''}` }, index.h("slot", { key: '9eaa20e00dc625bc96723cb937e45aaa58516aa8' }))));
37
+ return (index.h(index.Host, { key: 'd9b169c0eb0cda695a451a4f6af0b28fbabe94fd' }, index.h("div", { key: '3e12809a9b6d50543d50ef5de550a5abac346507', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
38
+ ${this.disabled ? 'disabled' : ''}` }, index.h("slot", { key: 'bd0dd0c7af1abf7c32373a6cc148fa0819f0b299' }))));
41
39
  }
42
40
  get host() { return index.getElement(this); }
43
41
  };
44
- TdsNavigationTab.style = TdsNavigationTabStyle0;
42
+ TdsNavigationTab.style = navigationTabCss();
45
43
 
46
44
  exports.tds_navigation_tab = TdsNavigationTab;