@scania/tegel 1.12.1 → 1.13.0-card-stretch-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/dist/cjs/{index-e35387f4.js → index-ca8040ad.js} +9 -4
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-banner.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-body-cell.cjs.entry.js +3 -3
  9. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-button.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-card.cjs.entry.js +6 -5
  13. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-divider.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-dropdown.cjs.entry.js +22 -18
  20. package/dist/cjs/tds-folder-tab.cjs.entry.js +3 -3
  21. package/dist/cjs/tds-folder-tabs.cjs.entry.js +61 -54
  22. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  25. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
  31. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
  40. package/dist/cjs/tds-header-title.cjs.entry.js +3 -3
  41. package/dist/cjs/tds-header.cjs.entry.js +2 -2
  42. package/dist/cjs/tds-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/tds-inline-tab.cjs.entry.js +3 -3
  44. package/dist/cjs/tds-inline-tabs.cjs.entry.js +61 -38
  45. package/dist/cjs/tds-link.cjs.entry.js +3 -3
  46. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  47. package/dist/cjs/tds-modal.cjs.entry.js +2 -2
  48. package/dist/cjs/tds-navigation-tab.cjs.entry.js +3 -3
  49. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +65 -38
  50. package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -3
  51. package/dist/cjs/tds-popover-core.cjs.entry.js +2 -2
  52. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
  53. package/dist/cjs/tds-popover-menu.cjs.entry.js +3 -3
  54. package/dist/cjs/tds-radio-button.cjs.entry.js +2 -2
  55. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +2 -2
  56. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +5 -5
  57. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +3 -3
  58. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
  59. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +4 -4
  60. package/dist/cjs/tds-side-menu-item.cjs.entry.js +3 -3
  61. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +2 -2
  62. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +3 -3
  63. package/dist/cjs/tds-side-menu-user.cjs.entry.js +2 -2
  64. package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
  65. package/dist/cjs/tds-slider.cjs.entry.js +17 -10
  66. package/dist/cjs/tds-spinner.cjs.entry.js +2 -2
  67. package/dist/cjs/tds-step.cjs.entry.js +2 -2
  68. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  69. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +85 -0
  70. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +6 -6
  71. package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
  72. package/dist/cjs/tds-table-body.cjs.entry.js +2 -2
  73. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  74. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +85 -0
  75. package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
  76. package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
  77. package/dist/cjs/tds-table.cjs.entry.js +2 -2
  78. package/dist/cjs/tds-text-field.cjs.entry.js +7 -7
  79. package/dist/cjs/tds-textarea.cjs.entry.js +5 -5
  80. package/dist/cjs/tds-toast.cjs.entry.js +4 -4
  81. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  82. package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
  83. package/dist/cjs/tegel.cjs.js +2 -2
  84. package/dist/collection/collection-manifest.json +2 -0
  85. package/dist/collection/components/banner/banner.css +2 -1
  86. package/dist/collection/components/button/button.css +1 -1
  87. package/dist/collection/components/card/card.css +25 -0
  88. package/dist/collection/components/card/card.js +22 -3
  89. package/dist/collection/components/dropdown/dropdown.css +1 -1
  90. package/dist/collection/components/dropdown/dropdown.js +20 -16
  91. package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -1
  92. package/dist/collection/components/header/header-launcher/header-launcher.css +1 -1
  93. package/dist/collection/components/header/header-title/header-title.css +2 -5
  94. package/dist/collection/components/header/header-title/header-title.js +2 -2
  95. package/dist/collection/components/header/header.css +1 -1
  96. package/dist/collection/components/icon/icon.js +1 -1
  97. package/dist/collection/components/link/link.js +2 -2
  98. package/dist/collection/components/message/message.js +2 -2
  99. package/dist/collection/components/modal/modal.js +1 -1
  100. package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
  101. package/dist/collection/components/popover-core/popover-core.js +1 -1
  102. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
  103. package/dist/collection/components/popover-menu/popover-menu.js +2 -2
  104. package/dist/collection/components/radio-button/radio-button.js +1 -1
  105. package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
  106. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
  107. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +3 -3
  108. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
  109. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +2 -2
  110. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
  111. package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
  112. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +1 -1
  113. package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
  114. package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
  115. package/dist/collection/components/side-menu/side-menu.css +1 -1
  116. package/dist/collection/components/side-menu/side-menu.js +3 -3
  117. package/dist/collection/components/slider/slider.js +16 -9
  118. package/dist/collection/components/spinner/spinner.js +1 -1
  119. package/dist/collection/components/stepper/step/step.js +1 -1
  120. package/dist/collection/components/stepper/stepper.js +1 -1
  121. package/dist/collection/components/table/table/table.css +1 -1
  122. package/dist/collection/components/table/table/table.js +1 -1
  123. package/dist/collection/components/table/table-body/table-body.js +1 -2
  124. package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -2
  125. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +62 -0
  126. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +124 -0
  127. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -0
  128. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -4
  129. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +53 -0
  130. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +141 -0
  131. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  132. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  133. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +77 -53
  134. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  135. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +86 -39
  136. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  137. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +81 -37
  138. package/dist/collection/components/text-field/text-field.js +6 -6
  139. package/dist/collection/components/textarea/textarea.js +4 -4
  140. package/dist/collection/components/toast/toast.js +3 -3
  141. package/dist/collection/components/toggle/toggle.js +1 -1
  142. package/dist/collection/components/tooltip/tooltip.js +2 -2
  143. package/dist/components/index.js +1 -1
  144. package/dist/components/{p-d9cf3eaa.js → p-0676aa23.js} +2 -2
  145. package/dist/components/{p-e5207615.js → p-09d36119.js} +2 -2
  146. package/dist/components/{p-5f5420e5.js → p-0c3cab16.js} +3 -3
  147. package/dist/components/{p-35fa6479.js → p-28ef5186.js} +1 -4
  148. package/dist/components/{p-ead7cac2.js → p-30de8ac4.js} +1 -1
  149. package/dist/components/{p-31ae0be9.js → p-3e74be57.js} +2 -2
  150. package/dist/components/{p-b205ce2c.js → p-82e02472.js} +4 -4
  151. package/dist/components/{p-b114a29a.js → p-8e74bb22.js} +4 -4
  152. package/dist/components/{p-8bc5892d.js → p-cfb1b588.js} +1 -1
  153. package/dist/components/{p-b7b6d3b1.js → p-dddaa520.js} +2 -2
  154. package/dist/components/{p-9994dba8.js → p-e46088d9.js} +1 -1
  155. package/dist/components/{p-555d76b0.js → p-e4d7c655.js} +1 -1
  156. package/dist/components/{p-b84363b3.js → p-f0240c00.js} +2 -2
  157. package/dist/components/{p-aa4f86ab.js → p-fcec766c.js} +1 -1
  158. package/dist/components/tds-accordion-item.js +2 -2
  159. package/dist/components/tds-accordion.js +1 -1
  160. package/dist/components/tds-badge.js +1 -1
  161. package/dist/components/tds-banner.js +3 -3
  162. package/dist/components/tds-block.js +1 -1
  163. package/dist/components/tds-body-cell.js +3 -3
  164. package/dist/components/tds-breadcrumb.js +1 -1
  165. package/dist/components/tds-breadcrumbs.js +1 -1
  166. package/dist/components/tds-button.js +2 -2
  167. package/dist/components/tds-card.js +8 -6
  168. package/dist/components/tds-checkbox.js +1 -1
  169. package/dist/components/tds-chip.js +1 -1
  170. package/dist/components/tds-core-header-item.js +1 -1
  171. package/dist/components/tds-datetime.js +2 -2
  172. package/dist/components/tds-divider.js +1 -1
  173. package/dist/components/tds-dropdown-option.js +3 -3
  174. package/dist/components/tds-dropdown.js +23 -19
  175. package/dist/components/tds-folder-tab.js +3 -3
  176. package/dist/components/tds-folder-tabs.js +64 -56
  177. package/dist/components/tds-footer-group.js +2 -2
  178. package/dist/components/tds-footer-item.js +1 -1
  179. package/dist/components/tds-footer.js +1 -1
  180. package/dist/components/tds-header-brand-symbol.js +3 -3
  181. package/dist/components/tds-header-cell.js +2 -2
  182. package/dist/components/tds-header-dropdown-list-item.js +1 -1
  183. package/dist/components/tds-header-dropdown-list-user.js +1 -1
  184. package/dist/components/tds-header-dropdown-list.js +1 -1
  185. package/dist/components/tds-header-dropdown.js +7 -7
  186. package/dist/components/tds-header-hamburger.js +4 -4
  187. package/dist/components/tds-header-item.js +1 -1
  188. package/dist/components/tds-header-launcher-button.js +1 -1
  189. package/dist/components/tds-header-launcher-grid-item.js +1 -1
  190. package/dist/components/tds-header-launcher-grid-title.js +1 -1
  191. package/dist/components/tds-header-launcher-grid.js +1 -1
  192. package/dist/components/tds-header-launcher-list-item.js +2 -2
  193. package/dist/components/tds-header-launcher-list-title.js +1 -1
  194. package/dist/components/tds-header-launcher-list.js +2 -2
  195. package/dist/components/tds-header-launcher.js +8 -8
  196. package/dist/components/tds-header-title.js +3 -3
  197. package/dist/components/tds-header.js +2 -2
  198. package/dist/components/tds-icon.js +1 -1
  199. package/dist/components/tds-inline-tab.js +3 -3
  200. package/dist/components/tds-inline-tabs.js +64 -41
  201. package/dist/components/tds-link.js +3 -3
  202. package/dist/components/tds-message.js +4 -4
  203. package/dist/components/tds-modal.js +3 -3
  204. package/dist/components/tds-navigation-tab.js +3 -3
  205. package/dist/components/tds-navigation-tabs.js +68 -40
  206. package/dist/components/tds-popover-canvas.js +1 -1
  207. package/dist/components/tds-popover-core.js +1 -1
  208. package/dist/components/tds-popover-menu-item.js +3 -3
  209. package/dist/components/tds-popover-menu.js +4 -4
  210. package/dist/components/tds-radio-button.js +2 -2
  211. package/dist/components/tds-side-menu-close-button.js +3 -3
  212. package/dist/components/tds-side-menu-collapse-button.js +6 -6
  213. package/dist/components/tds-side-menu-dropdown-list-item.js +3 -3
  214. package/dist/components/tds-side-menu-dropdown-list.js +3 -3
  215. package/dist/components/tds-side-menu-dropdown.js +6 -6
  216. package/dist/components/tds-side-menu-item.js +1 -1
  217. package/dist/components/tds-side-menu-overlay.js +2 -2
  218. package/dist/components/tds-side-menu-user-image.js +1 -1
  219. package/dist/components/tds-side-menu-user-label.js +1 -1
  220. package/dist/components/tds-side-menu-user.js +4 -4
  221. package/dist/components/tds-side-menu.js +2 -2
  222. package/dist/components/tds-slider.js +18 -11
  223. package/dist/components/tds-spinner.js +2 -2
  224. package/dist/components/tds-step.js +3 -3
  225. package/dist/components/tds-stepper.js +1 -1
  226. package/dist/components/tds-table-body-input-wrapper.d.ts +11 -0
  227. package/dist/components/tds-table-body-input-wrapper.js +112 -0
  228. package/dist/components/tds-table-body-row-expandable.js +6 -6
  229. package/dist/components/tds-table-body-row.js +2 -2
  230. package/dist/components/tds-table-body.js +2 -2
  231. package/dist/components/tds-table-footer.js +2 -2
  232. package/dist/components/tds-table-header-input-wrapper.d.ts +11 -0
  233. package/dist/components/tds-table-header-input-wrapper.js +112 -0
  234. package/dist/components/tds-table-header.js +2 -2
  235. package/dist/components/tds-table-toolbar.js +4 -4
  236. package/dist/components/tds-table.js +2 -2
  237. package/dist/components/tds-text-field.js +8 -8
  238. package/dist/components/tds-textarea.js +6 -6
  239. package/dist/components/tds-toast.js +5 -5
  240. package/dist/components/tds-toggle.js +2 -2
  241. package/dist/components/tds-tooltip.js +4 -4
  242. package/dist/esm/{index-e7907201.js → index-51d04e39.js} +9 -4
  243. package/dist/esm/loader.js +3 -3
  244. package/dist/esm/tds-accordion-item.entry.js +1 -1
  245. package/dist/esm/tds-accordion.entry.js +1 -1
  246. package/dist/esm/tds-badge.entry.js +1 -1
  247. package/dist/esm/tds-banner.entry.js +2 -2
  248. package/dist/esm/tds-block.entry.js +1 -1
  249. package/dist/esm/tds-body-cell.entry.js +3 -3
  250. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  251. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  252. package/dist/esm/tds-button.entry.js +2 -2
  253. package/dist/esm/tds-card.entry.js +6 -5
  254. package/dist/esm/tds-checkbox.entry.js +1 -1
  255. package/dist/esm/tds-chip.entry.js +1 -1
  256. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  257. package/dist/esm/tds-datetime.entry.js +1 -1
  258. package/dist/esm/tds-divider.entry.js +1 -1
  259. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  260. package/dist/esm/tds-dropdown.entry.js +22 -18
  261. package/dist/esm/tds-folder-tab.entry.js +3 -3
  262. package/dist/esm/tds-folder-tabs.entry.js +61 -54
  263. package/dist/esm/tds-footer-group.entry.js +1 -1
  264. package/dist/esm/tds-footer-item.entry.js +1 -1
  265. package/dist/esm/tds-footer.entry.js +1 -1
  266. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  267. package/dist/esm/tds-header-cell.entry.js +1 -1
  268. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  269. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  270. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  271. package/dist/esm/tds-header-dropdown.entry.js +2 -2
  272. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  273. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  274. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  275. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  276. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  277. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  278. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  279. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  280. package/dist/esm/tds-header-launcher.entry.js +2 -2
  281. package/dist/esm/tds-header-title.entry.js +3 -3
  282. package/dist/esm/tds-header.entry.js +2 -2
  283. package/dist/esm/tds-icon.entry.js +2 -2
  284. package/dist/esm/tds-inline-tab.entry.js +3 -3
  285. package/dist/esm/tds-inline-tabs.entry.js +61 -38
  286. package/dist/esm/tds-link.entry.js +3 -3
  287. package/dist/esm/tds-message.entry.js +3 -3
  288. package/dist/esm/tds-modal.entry.js +2 -2
  289. package/dist/esm/tds-navigation-tab.entry.js +3 -3
  290. package/dist/esm/tds-navigation-tabs.entry.js +65 -38
  291. package/dist/esm/tds-popover-canvas.entry.js +3 -3
  292. package/dist/esm/tds-popover-core.entry.js +2 -2
  293. package/dist/esm/tds-popover-menu-item.entry.js +3 -3
  294. package/dist/esm/tds-popover-menu.entry.js +3 -3
  295. package/dist/esm/tds-radio-button.entry.js +2 -2
  296. package/dist/esm/tds-side-menu-close-button.entry.js +2 -2
  297. package/dist/esm/tds-side-menu-collapse-button.entry.js +5 -5
  298. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +3 -3
  299. package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
  300. package/dist/esm/tds-side-menu-dropdown.entry.js +4 -4
  301. package/dist/esm/tds-side-menu-item.entry.js +3 -3
  302. package/dist/esm/tds-side-menu-overlay.entry.js +2 -2
  303. package/dist/esm/tds-side-menu-user-image_2.entry.js +3 -3
  304. package/dist/esm/tds-side-menu-user.entry.js +2 -2
  305. package/dist/esm/tds-side-menu.entry.js +2 -2
  306. package/dist/esm/tds-slider.entry.js +17 -10
  307. package/dist/esm/tds-spinner.entry.js +2 -2
  308. package/dist/esm/tds-step.entry.js +2 -2
  309. package/dist/esm/tds-stepper.entry.js +1 -1
  310. package/dist/esm/tds-table-body-input-wrapper.entry.js +81 -0
  311. package/dist/esm/tds-table-body-row-expandable.entry.js +6 -6
  312. package/dist/esm/tds-table-body-row.entry.js +1 -1
  313. package/dist/esm/tds-table-body.entry.js +2 -2
  314. package/dist/esm/tds-table-footer.entry.js +1 -1
  315. package/dist/esm/tds-table-header-input-wrapper.entry.js +81 -0
  316. package/dist/esm/tds-table-header.entry.js +1 -1
  317. package/dist/esm/tds-table-toolbar.entry.js +3 -3
  318. package/dist/esm/tds-table.entry.js +2 -2
  319. package/dist/esm/tds-text-field.entry.js +7 -7
  320. package/dist/esm/tds-textarea.entry.js +5 -5
  321. package/dist/esm/tds-toast.entry.js +4 -4
  322. package/dist/esm/tds-toggle.entry.js +2 -2
  323. package/dist/esm/tds-tooltip.entry.js +3 -3
  324. package/dist/esm/tegel.js +3 -3
  325. package/dist/tegel/p-06d2fa56.entry.js +1 -0
  326. package/dist/tegel/p-0a4fe3db.entry.js +1 -0
  327. package/dist/tegel/{p-d052194d.entry.js → p-0f38bea7.entry.js} +1 -1
  328. package/dist/tegel/{p-65f6dda4.entry.js → p-137929b7.entry.js} +1 -1
  329. package/dist/tegel/{p-e1051e82.entry.js → p-1a2f3852.entry.js} +1 -1
  330. package/dist/tegel/{p-c345b310.entry.js → p-1ba22b41.entry.js} +1 -1
  331. package/dist/tegel/{p-bbb6845d.entry.js → p-1bc2c73c.entry.js} +1 -1
  332. package/dist/tegel/{p-c9df3ab0.entry.js → p-1ce239bf.entry.js} +1 -1
  333. package/dist/tegel/{p-679d6abd.js → p-2049fab2.js} +2 -2
  334. package/dist/tegel/p-2b030cef.entry.js +1 -0
  335. package/dist/tegel/{p-020bdfc8.entry.js → p-2da2c193.entry.js} +1 -1
  336. package/dist/tegel/{p-f297779a.entry.js → p-2e44b4e9.entry.js} +1 -1
  337. package/dist/tegel/{p-8e5c5c59.entry.js → p-3534e1a7.entry.js} +1 -1
  338. package/dist/tegel/{p-db57d021.entry.js → p-36e88ce8.entry.js} +1 -1
  339. package/dist/tegel/p-3e859e33.entry.js +1 -0
  340. package/dist/tegel/{p-6ed47430.entry.js → p-47bf836e.entry.js} +1 -1
  341. package/dist/tegel/{p-f9d061c4.entry.js → p-480c6c28.entry.js} +1 -1
  342. package/dist/tegel/{p-f5f4b866.entry.js → p-4a7a977b.entry.js} +1 -1
  343. package/dist/tegel/{p-256739c3.entry.js → p-4ab7461e.entry.js} +1 -1
  344. package/dist/tegel/{p-92c323b9.entry.js → p-50fcdc56.entry.js} +1 -1
  345. package/dist/tegel/{p-b44a09ea.entry.js → p-54a105a4.entry.js} +1 -1
  346. package/dist/tegel/{p-33ddfd31.entry.js → p-56dfd78a.entry.js} +1 -1
  347. package/dist/tegel/p-578f6d73.entry.js +1 -0
  348. package/dist/tegel/{p-b0a0193a.entry.js → p-57f95a1b.entry.js} +1 -1
  349. package/dist/tegel/{p-49b6ca33.entry.js → p-588a05aa.entry.js} +1 -1
  350. package/dist/tegel/{p-7011cf2c.entry.js → p-5a891dd2.entry.js} +1 -1
  351. package/dist/tegel/{p-8a702e4f.entry.js → p-5c0bb8e1.entry.js} +1 -1
  352. package/dist/tegel/p-5d0e8f1e.entry.js +1 -0
  353. package/dist/tegel/{p-2d7fdfc5.entry.js → p-5db5c8f4.entry.js} +1 -1
  354. package/dist/tegel/{p-6638de62.entry.js → p-6938329a.entry.js} +1 -1
  355. package/dist/tegel/p-6aabf7e1.entry.js +1 -0
  356. package/dist/tegel/{p-ab4c51be.entry.js → p-6b405a0f.entry.js} +1 -1
  357. package/dist/tegel/{p-7a1f6e88.entry.js → p-6c26e66f.entry.js} +1 -1
  358. package/dist/tegel/{p-6a7b1318.entry.js → p-7cb43ebe.entry.js} +1 -1
  359. package/dist/tegel/p-7d83ba98.entry.js +1 -0
  360. package/dist/tegel/{p-c0ecda3d.entry.js → p-80edba0f.entry.js} +1 -1
  361. package/dist/tegel/{p-ceb993dd.entry.js → p-8ae952b6.entry.js} +1 -1
  362. package/dist/tegel/{p-4ff6e472.entry.js → p-91225c7a.entry.js} +1 -1
  363. package/dist/tegel/{p-46845a5c.entry.js → p-930e767e.entry.js} +1 -1
  364. package/dist/tegel/{p-fcbcec06.entry.js → p-957c8b27.entry.js} +1 -1
  365. package/dist/tegel/p-959a6780.entry.js +1 -0
  366. package/dist/tegel/p-98f5b520.entry.js +1 -0
  367. package/dist/tegel/{p-c6637944.entry.js → p-9bf7f5cd.entry.js} +1 -1
  368. package/dist/tegel/p-9de400f4.entry.js +1 -0
  369. package/dist/tegel/{p-af385656.entry.js → p-a2548553.entry.js} +1 -1
  370. package/dist/tegel/{p-83255ba3.entry.js → p-a464920f.entry.js} +1 -1
  371. package/dist/tegel/{p-15f87007.entry.js → p-a593cae3.entry.js} +1 -1
  372. package/dist/tegel/{p-8e5b6da7.entry.js → p-a5a67770.entry.js} +1 -1
  373. package/dist/tegel/{p-500b062e.entry.js → p-a9654cd4.entry.js} +1 -1
  374. package/dist/tegel/{p-0042d57c.entry.js → p-a97dd06a.entry.js} +1 -1
  375. package/dist/tegel/p-ac09f8d4.entry.js +1 -0
  376. package/dist/tegel/{p-fe818c12.entry.js → p-ada411aa.entry.js} +1 -1
  377. package/dist/tegel/{p-5e404c89.entry.js → p-b21eb276.entry.js} +1 -1
  378. package/dist/tegel/{p-16d82ff5.entry.js → p-b34cf70d.entry.js} +1 -1
  379. package/dist/tegel/{p-69a4b584.entry.js → p-b4c7099f.entry.js} +1 -1
  380. package/dist/tegel/{p-013d5d11.entry.js → p-b8593b29.entry.js} +1 -1
  381. package/dist/tegel/{p-11498ada.entry.js → p-b9ac3122.entry.js} +1 -1
  382. package/dist/tegel/{p-e2665f9d.entry.js → p-b9e37cf2.entry.js} +1 -1
  383. package/dist/tegel/{p-6c826e8f.entry.js → p-ba079890.entry.js} +1 -1
  384. package/dist/tegel/{p-7db7cdbd.entry.js → p-bda3d846.entry.js} +1 -1
  385. package/dist/tegel/{p-af6540c5.entry.js → p-c12eaac3.entry.js} +1 -1
  386. package/dist/tegel/{p-49a2ae8d.entry.js → p-c18b2746.entry.js} +1 -1
  387. package/dist/tegel/{p-c96b81e5.entry.js → p-c22c761c.entry.js} +1 -1
  388. package/dist/tegel/{p-223998c5.entry.js → p-c3513f1f.entry.js} +1 -1
  389. package/dist/tegel/{p-461dbefd.entry.js → p-c917d8be.entry.js} +1 -1
  390. package/dist/tegel/{p-2247d9ae.entry.js → p-cd5219ac.entry.js} +1 -1
  391. package/dist/tegel/p-d1cbe5be.entry.js +1 -0
  392. package/dist/tegel/{p-046a6a9c.entry.js → p-db00f607.entry.js} +1 -1
  393. package/dist/tegel/{p-a00b6607.entry.js → p-db7244a0.entry.js} +1 -1
  394. package/dist/tegel/p-dcbd977f.entry.js +1 -0
  395. package/dist/tegel/{p-1c705c6b.entry.js → p-de540cc0.entry.js} +1 -1
  396. package/dist/tegel/{p-f2c844de.entry.js → p-e237cdcc.entry.js} +1 -1
  397. package/dist/tegel/{p-539a8a98.entry.js → p-e65dba91.entry.js} +1 -1
  398. package/dist/tegel/p-e6a5dda4.entry.js +1 -0
  399. package/dist/tegel/{p-c04e8a54.entry.js → p-e7108828.entry.js} +1 -1
  400. package/dist/tegel/{p-9a66445f.entry.js → p-ed02ad2b.entry.js} +1 -1
  401. package/dist/tegel/{p-2e9b7793.entry.js → p-ede11de8.entry.js} +1 -1
  402. package/dist/tegel/{p-01cf5bee.entry.js → p-f823777e.entry.js} +1 -1
  403. package/dist/tegel/p-f841f094.entry.js +1 -0
  404. package/dist/tegel/{p-95c17631.entry.js → p-f9325536.entry.js} +1 -1
  405. package/dist/tegel/{p-5d27536b.entry.js → p-fe9b385f.entry.js} +1 -1
  406. package/dist/tegel/tegel.css +3 -3
  407. package/dist/tegel/tegel.esm.js +1 -1
  408. package/dist/types/components/card/card.d.ts +1 -0
  409. package/dist/types/components/table/table-body/table-body.d.ts +0 -1
  410. package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +16 -0
  411. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +3 -0
  412. package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +16 -0
  413. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +14 -7
  414. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +14 -6
  415. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +19 -10
  416. package/dist/types/components.d.ts +58 -0
  417. package/package.json +31 -29
  418. package/dist/tegel/p-1bc3fc5e.entry.js +0 -1
  419. package/dist/tegel/p-20af56e4.entry.js +0 -1
  420. package/dist/tegel/p-35f939eb.entry.js +0 -1
  421. package/dist/tegel/p-37af53cd.entry.js +0 -1
  422. package/dist/tegel/p-7edfd01e.entry.js +0 -1
  423. package/dist/tegel/p-85552da0.entry.js +0 -1
  424. package/dist/tegel/p-98c91f5a.entry.js +0 -1
  425. package/dist/tegel/p-af331ddd.entry.js +0 -1
  426. package/dist/tegel/p-b0d58491.entry.js +0 -1
  427. package/dist/tegel/p-cdb2dd5e.entry.js +0 -1
  428. package/dist/tegel/p-d6729285.entry.js +0 -1
  429. package/dist/tegel/p-e7b98ace.entry.js +0 -1
  430. package/dist/tegel/p-ee72b4b8.entry.js +0 -1
  431. package/dist/tegel/p-fba62542.entry.js +0 -1
@@ -8,6 +8,7 @@ export class TdsInlineTabs {
8
8
  this.componentWidth = 0; // visible width of this component
9
9
  this.buttonsWidth = 0; // total width of all nav items combined
10
10
  this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
11
+ this.clickHandlers = new WeakMap();
11
12
  this.addResizeObserver = () => {
12
13
  const resizeObserver = new ResizeObserver((entries) => {
13
14
  entries.forEach((entry) => {
@@ -22,20 +23,15 @@ export class TdsInlineTabs {
22
23
  this.componentWidth = componentWidth;
23
24
  this.buttonsWidth = buttonsWidth;
24
25
  this.scrollWidth = buttonsWidth - componentWidth;
25
- if (this.buttonsWidth > this.componentWidth) {
26
- this.evaluateScrollButtons();
27
- }
28
- else {
29
- this.showLeftScroll = false;
30
- this.showRightScroll = false;
31
- }
26
+ this.updateScrollButtons();
32
27
  });
33
28
  });
34
29
  resizeObserver.observe(this.navWrapperElement);
35
30
  };
36
31
  this.addEventListenerToTabs = () => {
37
- this.children = this.children.map((item, index) => {
38
- item.addEventListener('click', () => {
32
+ this.children = Array.from(this.host.children);
33
+ this.children.map((item, index) => {
34
+ const clickHandler = () => {
39
35
  if (!item.disabled) {
40
36
  const tdsChangeEvent = this.tdsChange.emit({
41
37
  selectedTabIndex: this.children.indexOf(item),
@@ -46,19 +42,33 @@ export class TdsInlineTabs {
46
42
  this.selectedIndex = index;
47
43
  }
48
44
  }
49
- });
45
+ };
46
+ item.addEventListener('click', clickHandler);
47
+ this.clickHandlers.set(item, clickHandler); // Store the handler in WeakMap
50
48
  return item;
51
49
  });
52
50
  };
51
+ this.removeEventListenerFromTabs = () => {
52
+ this.children.forEach((item) => {
53
+ const clickHandler = this.clickHandlers.get(item);
54
+ if (clickHandler) {
55
+ item.removeEventListener('click', clickHandler);
56
+ this.clickHandlers.delete(item);
57
+ }
58
+ });
59
+ };
53
60
  this.modeVariant = 'primary';
54
61
  this.defaultSelectedIndex = 0;
55
62
  this.selectedIndex = undefined;
56
63
  this.showLeftScroll = false;
57
64
  this.showRightScroll = false;
58
- this.buttonWidth = 0;
59
65
  }
60
66
  /** Selects a Tab based on tabindex, will not select a disabled Tab. */
61
67
  async selectTab(tabIndex) {
68
+ if (tabIndex < 0 || tabIndex >= this.children.length) {
69
+ throw new Error('Tab index out of bounds');
70
+ }
71
+ this.children = Array.from(this.host.children);
62
72
  if (!this.children[tabIndex].disabled) {
63
73
  this.children.forEach((element) => element.setSelected(false));
64
74
  this.children = this.children.map((element, index) => {
@@ -69,9 +79,11 @@ export class TdsInlineTabs {
69
79
  return element;
70
80
  });
71
81
  }
72
- return {
73
- selectedTabIndex: this.selectedIndex,
74
- };
82
+ return { selectedTabIndex: this.selectedIndex };
83
+ }
84
+ /** Reinitializes the component. */
85
+ async reinitialize() {
86
+ this.handleSlotChange();
75
87
  }
76
88
  handleSelectedIndexUpdate() {
77
89
  this.children = Array.from(this.host.children).map((tabElement) => {
@@ -92,41 +104,33 @@ export class TdsInlineTabs {
92
104
  }
93
105
  evaluateScrollButtons() {
94
106
  const scroll = this.navWrapperElement.scrollLeft;
95
- if (scroll >= this.scrollWidth) {
96
- this.showRightScroll = false;
97
- }
98
- else {
99
- this.showRightScroll = true;
100
- }
101
- if (scroll <= 0) {
102
- this.showLeftScroll = false;
103
- }
104
- else {
105
- this.showLeftScroll = true;
106
- }
107
+ this.showRightScroll = scroll <= this.scrollWidth;
108
+ this.showLeftScroll = scroll > 0;
107
109
  }
108
- connectedCallback() {
110
+ initializeTabs() {
109
111
  this.children = Array.from(this.host.children);
112
+ // remove first and last class from other tabs in case of initialization
113
+ this.children.forEach((child) => {
114
+ child.classList.remove('last');
115
+ child.classList.remove('first');
116
+ });
110
117
  this.children[0].classList.add('first');
111
118
  this.children[this.children.length - 1].classList.add('last');
112
119
  }
113
- componentDidLoad() {
120
+ initializeSelectedTab() {
114
121
  if (this.selectedIndex === undefined) {
115
122
  this.addEventListenerToTabs();
116
123
  this.children[this.defaultSelectedIndex].setSelected(true);
117
124
  this.selectedIndex = this.defaultSelectedIndex;
118
- this.tdsChange.emit({
119
- selectedTabIndex: this.selectedIndex,
120
- });
121
125
  }
122
126
  else {
123
127
  this.children[this.selectedIndex].setSelected(true);
124
- this.tdsChange.emit({
125
- selectedTabIndex: this.selectedIndex,
126
- });
127
128
  }
129
+ this.tdsChange.emit({
130
+ selectedTabIndex: this.selectedIndex,
131
+ });
128
132
  }
129
- componentDidRender() {
133
+ updateScrollButtons() {
130
134
  if (this.buttonsWidth > this.componentWidth) {
131
135
  this.evaluateScrollButtons();
132
136
  }
@@ -134,12 +138,31 @@ export class TdsInlineTabs {
134
138
  this.showLeftScroll = false;
135
139
  this.showRightScroll = false;
136
140
  }
141
+ }
142
+ handleSlotChange() {
143
+ this.initializeTabs();
144
+ this.addEventListenerToTabs();
145
+ this.initializeSelectedTab();
146
+ this.updateScrollButtons();
137
147
  this.addResizeObserver();
138
148
  }
149
+ connectedCallback() {
150
+ this.initializeTabs();
151
+ }
152
+ componentDidLoad() {
153
+ this.initializeSelectedTab();
154
+ }
155
+ componentDidRender() {
156
+ this.updateScrollButtons();
157
+ this.addResizeObserver();
158
+ }
159
+ disconnectedCallback() {
160
+ this.removeEventListenerFromTabs();
161
+ }
139
162
  render() {
140
- return (h(Host, { key: '13f5f4fb4d32501c1a8f9cec78e92e941373eb13', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '67bddb0d4884a0940ed464c9fac72f696d4cb8dd', class: "wrapper", ref: (el) => {
163
+ return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
141
164
  this.navWrapperElement = el;
142
- } }, h("button", { key: 'c9fe10cd497f28588aafec197ce09469ed4a4d6f', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'e4693c5008ea111f4c7469ee19cd7747ef6a03ba', name: "chevron_left", size: "20px" })), h("slot", { key: '5e781cb1c9e0f4fb05471391779d05641d753fae' }), h("button", { key: 'b37bd9651c1f64eafcfacbac47ab774d10f2378f', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '8ecf69c6e068803bed69710328763ec91ccdaa3b', name: "chevron_right", size: "20px" })))));
165
+ } }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
143
166
  }
144
167
  static get is() { return "tds-inline-tabs"; }
145
168
  static get encapsulation() { return "shadow"; }
@@ -213,8 +236,7 @@ export class TdsInlineTabs {
213
236
  static get states() {
214
237
  return {
215
238
  "showLeftScroll": {},
216
- "showRightScroll": {},
217
- "buttonWidth": {}
239
+ "showRightScroll": {}
218
240
  };
219
241
  }
220
242
  static get events() {
@@ -249,6 +271,14 @@ export class TdsInlineTabs {
249
271
  "Promise": {
250
272
  "location": "global",
251
273
  "id": "global::Promise"
274
+ },
275
+ "Array": {
276
+ "location": "global",
277
+ "id": "global::Array"
278
+ },
279
+ "HTMLTdsInlineTabElement": {
280
+ "location": "global",
281
+ "id": "global::HTMLTdsInlineTabElement"
252
282
  }
253
283
  },
254
284
  "return": "Promise<{ selectedTabIndex: number; }>"
@@ -257,6 +287,23 @@ export class TdsInlineTabs {
257
287
  "text": "Selects a Tab based on tabindex, will not select a disabled Tab.",
258
288
  "tags": []
259
289
  }
290
+ },
291
+ "reinitialize": {
292
+ "complexType": {
293
+ "signature": "() => Promise<void>",
294
+ "parameters": [],
295
+ "references": {
296
+ "Promise": {
297
+ "location": "global",
298
+ "id": "global::Promise"
299
+ }
300
+ },
301
+ "return": "Promise<void>"
302
+ },
303
+ "docs": {
304
+ "text": "Reinitializes the component.",
305
+ "tags": []
306
+ }
260
307
  }
261
308
  };
262
309
  }
@@ -12,8 +12,8 @@ export class TdsNavigationTab {
12
12
  this.selected = selected;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: 'fc0173c2c7600a3c97991e297167289a7d6ce1be', role: "listitem" }, h("div", { key: 'bfcfbb30f0087cf2e3c3df16653f60b69ea641d4', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
16
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '3c8eeb97e1ea4f9afe04eb55b7b6c099c26169f0' }))));
15
+ return (h(Host, { key: 'f8daf87eb0fce9c5229c6223a4188875000b4003', role: "listitem" }, h("div", { key: '692831fb82b1822550b6d715977970b327cb3448', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
16
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'afe5caebb5389f4386aa6c6ab57f9a81d2482a61' }))));
17
17
  }
18
18
  static get is() { return "tds-navigation-tab"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -8,6 +8,7 @@ export class TdsNavigationTabs {
8
8
  this.componentWidth = 0; // visible width of this component
9
9
  this.buttonsWidth = 0; // total width of all nav items combined
10
10
  this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
11
+ this.clickHandlers = new WeakMap();
11
12
  this.addResizeObserver = () => {
12
13
  const resizeObserver = new ResizeObserver((entries) => {
13
14
  entries.forEach((entry) => {
@@ -18,26 +19,19 @@ export class TdsNavigationTabs {
18
19
  const style = window.getComputedStyle(navButton);
19
20
  buttonsWidth +=
20
21
  navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
21
- navButton.classList.add('tds-navigation-tabs-tab');
22
22
  });
23
23
  this.componentWidth = componentWidth;
24
24
  this.buttonsWidth = buttonsWidth;
25
25
  this.scrollWidth = buttonsWidth - componentWidth;
26
- if (this.buttonsWidth > this.componentWidth) {
27
- this.evaluateScrollButtons();
28
- }
29
- else {
30
- this.showLeftScroll = false;
31
- this.showRightScroll = false;
32
- }
26
+ this.updateScrollButtons();
33
27
  });
34
28
  });
35
29
  resizeObserver.observe(this.navWrapperElement);
36
30
  };
37
31
  this.addEventListenerToTabs = () => {
38
32
  this.children = Array.from(this.host.children);
39
- this.children = this.children.map((item, index) => {
40
- item.addEventListener('click', () => {
33
+ this.children.map((item, index) => {
34
+ const clickHandler = () => {
41
35
  if (!item.disabled) {
42
36
  const tdsChangeEvent = this.tdsChange.emit({
43
37
  selectedTabIndex: this.children.indexOf(item),
@@ -48,25 +42,20 @@ export class TdsNavigationTabs {
48
42
  this.selectedIndex = index;
49
43
  }
50
44
  }
51
- });
45
+ };
46
+ item.addEventListener('click', clickHandler);
47
+ this.clickHandlers.set(item, clickHandler); // Store the handler in WeakMap
52
48
  return item;
53
49
  });
54
50
  };
55
- this.componentDidLoad = () => {
56
- if (this.selectedIndex === undefined) {
57
- this.addEventListenerToTabs();
58
- this.children[this.defaultSelectedIndex].setSelected(true);
59
- this.selectedIndex = this.defaultSelectedIndex;
60
- this.tdsChange.emit({
61
- selectedTabIndex: this.selectedIndex,
62
- });
63
- }
64
- else {
65
- this.children[this.selectedIndex].setSelected(true);
66
- this.tdsChange.emit({
67
- selectedTabIndex: this.selectedIndex,
68
- });
69
- }
51
+ this.removeEventListenerFromTabs = () => {
52
+ this.children.forEach((item) => {
53
+ const clickHandler = this.clickHandlers.get(item);
54
+ if (clickHandler) {
55
+ item.removeEventListener('click', clickHandler);
56
+ this.clickHandlers.delete(item);
57
+ }
58
+ });
70
59
  };
71
60
  this.modeVariant = 'primary';
72
61
  this.defaultSelectedIndex = 0;
@@ -90,6 +79,10 @@ export class TdsNavigationTabs {
90
79
  selectedTabIndex: this.selectedIndex,
91
80
  };
92
81
  }
82
+ /** Reinitializes the component. */
83
+ async reinitialize() {
84
+ this.handleSlotChange();
85
+ }
93
86
  handleSelectedIndexUpdate() {
94
87
  this.children = Array.from(this.host.children).map((tabElement) => {
95
88
  tabElement.setSelected(false);
@@ -109,31 +102,65 @@ export class TdsNavigationTabs {
109
102
  }
110
103
  evaluateScrollButtons() {
111
104
  const scroll = this.navWrapperElement.scrollLeft;
112
- if (scroll >= this.scrollWidth) {
113
- this.showRightScroll = false;
105
+ this.showRightScroll = scroll <= this.scrollWidth;
106
+ this.showLeftScroll = scroll > 0;
107
+ }
108
+ initializeTabs() {
109
+ this.children = Array.from(this.host.children);
110
+ // remove first and last class from other tabs in case of initialization
111
+ this.children.forEach((child) => {
112
+ child.classList.remove('last');
113
+ child.classList.remove('first');
114
+ });
115
+ this.children[0].classList.add('first');
116
+ this.children[this.children.length - 1].classList.add('last');
117
+ }
118
+ initializeSelectedTab() {
119
+ if (this.selectedIndex === undefined) {
120
+ this.addEventListenerToTabs();
121
+ this.children[this.defaultSelectedIndex].setSelected(true);
122
+ this.selectedIndex = this.defaultSelectedIndex;
114
123
  }
115
124
  else {
116
- this.showRightScroll = true;
125
+ this.children[this.selectedIndex].setSelected(true);
117
126
  }
118
- if (scroll <= 0) {
119
- this.showLeftScroll = false;
127
+ this.tdsChange.emit({
128
+ selectedTabIndex: this.selectedIndex,
129
+ });
130
+ }
131
+ updateScrollButtons() {
132
+ if (this.buttonsWidth > this.componentWidth) {
133
+ this.evaluateScrollButtons();
120
134
  }
121
135
  else {
122
- this.showLeftScroll = true;
136
+ this.showLeftScroll = false;
137
+ this.showRightScroll = false;
123
138
  }
124
139
  }
140
+ handleSlotChange() {
141
+ this.initializeTabs();
142
+ this.addEventListenerToTabs();
143
+ this.initializeSelectedTab();
144
+ this.updateScrollButtons();
145
+ this.addResizeObserver();
146
+ }
125
147
  connectedCallback() {
126
- this.children = Array.from(this.host.children);
127
- this.children[0].classList.add('first');
128
- this.children[this.children.length - 1].classList.add('last');
148
+ this.initializeTabs();
149
+ }
150
+ componentDidLoad() {
151
+ this.initializeSelectedTab();
129
152
  }
130
153
  componentDidRender() {
154
+ this.updateScrollButtons();
131
155
  this.addResizeObserver();
132
156
  }
157
+ disconnectedCallback() {
158
+ this.removeEventListenerFromTabs();
159
+ }
133
160
  render() {
134
- return (h(Host, { key: '86a8c02e34256be7677e0dffe354a2d96f28dee9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4f2ac824013bc4a946de48df262dedf25c0fb861', class: "wrapper", ref: (el) => {
161
+ return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
135
162
  this.navWrapperElement = el;
136
- } }, h("button", { key: 'ab9bcd36a950c8155e1d52400c80a355d6a35692', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '1720b09524520516fa4364fcd51ac8d9821544f0', name: "chevron_left", size: "20px" })), h("slot", { key: '97a4d6d8593f550366aa665dddcb64c5c4118fa2' }), h("button", { key: 'd94a7b0f8c5b0d612105bfb9b834431bced085ad', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '9d9e229f0983ea16814264df1fa30ff19a3e4aed', name: "chevron_right", size: "20px" })))));
163
+ } }, h("button", { key: 'fa71abb901a1c6ab70dde90d759d9aa537a72ec2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '0aff4668869fa761e03e8c81ed054561787beb49', name: "chevron_left", size: "20px" })), h("slot", { key: '169f8b9eb18a33fb4fc739863eaf4a730e066c83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '9c9757d3c818191ce5aec5bbd64699c04dfc07db', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'e38ac8674d9e3e4aeaa67bd888cd411002353634', name: "chevron_right", size: "20px" })))));
137
164
  }
138
165
  static get is() { return "tds-navigation-tabs"; }
139
166
  static get encapsulation() { return "shadow"; }
@@ -250,6 +277,23 @@ export class TdsNavigationTabs {
250
277
  "text": "Sets the passed tabindex as the selected Tab.",
251
278
  "tags": []
252
279
  }
280
+ },
281
+ "reinitialize": {
282
+ "complexType": {
283
+ "signature": "() => Promise<void>",
284
+ "parameters": [],
285
+ "references": {
286
+ "Promise": {
287
+ "location": "global",
288
+ "id": "global::Promise"
289
+ }
290
+ },
291
+ "return": "Promise<void>"
292
+ },
293
+ "docs": {
294
+ "text": "Reinitializes the component.",
295
+ "tags": []
296
+ }
253
297
  }
254
298
  };
255
299
  }
@@ -30,8 +30,8 @@ export class TdsTextField {
30
30
  }
31
31
  // Data input event in value prop
32
32
  handleInput(event) {
33
- this.tdsInput.emit(event);
34
33
  this.value = event.target.value;
34
+ this.tdsInput.emit(event);
35
35
  }
36
36
  /** Set the input as focus when clicking the whole Text Field with suffix/prefix */
37
37
  handleFocus(event) {
@@ -48,7 +48,7 @@ export class TdsTextField {
48
48
  var _a;
49
49
  const usesPrefixSlot = hasSlot('prefix', this.host);
50
50
  const usesSuffixSlot = hasSlot('suffix', this.host);
51
- return (h("div", { key: 'af93aac8fe99744a466af32645df1159f6517621', class: {
51
+ return (h("div", { key: '1b4348574e1a9e7e315c61a2d555b487b619f22e', class: {
52
52
  'form-text-field-nomin': this.noMinWidth,
53
53
  'form-text-field': !this.focusInput || this.disabled,
54
54
  'text-field-focus': this.focusInput && !this.disabled,
@@ -62,12 +62,12 @@ export class TdsTextField {
62
62
  'form-text-field-sm': this.size === 'sm',
63
63
  'form-text-field-error': this.state === 'error',
64
64
  'form-text-field-success': this.state === 'success',
65
- } }, this.labelPosition === 'outside' && (h("div", { key: 'ceffe4d0d2cbc71f0261b8e3d61e18b24ba22b68', class: "text-field-label-outside" }, h("div", { key: '2084087df1a986ab9c41fb741fd00ff6e22bb572' }, this.label))), h("div", { key: '3077fb9808ee0b09cb28cb69b9f2bb34b7224eb0', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '6e234045ab96c5d29a1119c2a7c16e77205f466e', class: {
65
+ } }, this.labelPosition === 'outside' && (h("div", { key: '7f604df386ece3c8c01e5b60e75ef80de4500e81', class: "text-field-label-outside" }, h("div", { key: 'c13f468f76d9484c016a8218d9cc73b18724458f' }, this.label))), h("div", { key: '992c9076d7b1f9c6bec1847851bcfd989b6b0497', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'dfb616b9083ce42d90c180b5217e2e60ee3784af', class: {
66
66
  'text-field-slot-wrap-prefix': true,
67
67
  'text-field-error': this.state === 'error',
68
68
  'text-field-success': this.state === 'success',
69
69
  'text-field-default': this.state === 'default',
70
- } }, h("slot", { key: '76df42ef5b886284b471cf77552b1d7473857f0c', name: "prefix" }))), h("div", { key: '03b3ee869ba507a9decd9c9b5af1fda9bc47c671', class: "text-field-input-container" }, h("input", { key: '47049115cff82c06d88a77792388f37ffedc5dbc', ref: (inputEl) => (this.textInput = inputEl), class: {
70
+ } }, h("slot", { key: '98ed143615ad68a3cd51aca034999bfc279fce6b', name: "prefix" }))), h("div", { key: '8079b57a7e047255ed45f3f1ba9e28655a16ebed', class: "text-field-input-container" }, h("input", { key: '11782cd5c55f092a02ec741ecd9b20f2b8bfae91', ref: (inputEl) => (this.textInput = inputEl), class: {
71
71
  'text-field-input': true,
72
72
  'text-field-input-sm': this.size === 'sm',
73
73
  'text-field-input-md': this.size === 'md',
@@ -80,13 +80,13 @@ export class TdsTextField {
80
80
  if (!this.readOnly) {
81
81
  this.handleBlur(event);
82
82
  }
83
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '69deb0290018fd1649700266e706b0a55ed66b5e', class: "text-field-label-inside" }, this.label))), h("div", { key: '5cddf711727ef892849e3970a366854ce19fffc1', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'a169798c9699ebced30dd65660678358d8e63ac8', class: {
83
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'f72126827829ec26bafee0b5d0eb29a9b96e8628', class: "text-field-label-inside" }, this.label))), h("div", { key: 'c21c6a8cd0d5c8a4814efa1a8f93a5e99b3e092e', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '9029f584ea0ef6cc081985a087692e066394a01b', class: {
84
84
  'text-field-slot-wrap-suffix': true,
85
85
  'text-field-error': this.state === 'error',
86
86
  'text-field-success': this.state === 'success',
87
87
  'text-field-default': this.state === 'default',
88
88
  'tds-u-display-none': this.readOnly,
89
- } }, h("slot", { key: '4043d0ab130b9a0e7d2c0966300b997537bae53e', name: "suffix" }))), h("span", { key: 'ef9e4d55f310cbc8132e46f1e74f89a9fbc62ca9', class: "text-field-icon__readonly" }, h("tds-icon", { key: 'a968990fc370038a3657c752720ae29905b8b115', name: "edit_inactive", size: "20px" })), h("span", { key: '7518767f23b8a424bdad9d3cc776c179bf745680', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '857ab4650416e7abb96637c4cb7a8bf5a6f7fbe5', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: 'bee202fccd49ba3cbe14a65d9e75b1d2a1e8d7a4', class: "text-field-helper-error-state" }, h("tds-icon", { key: '039457d06cccdf7a3a61b6b65952d2735df6aac3', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: '92aa70e21712e92836ecd92b1d5faa2f31473f82', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '58559bb93ab041e096e6a6b383b6371cc49e40af', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
89
+ } }, h("slot", { key: 'f50d3a85bfd324529516a2b8180129e194202465', name: "suffix" }))), h("span", { key: '6f7f160b3a1b425a7ace18b748b64e50cfd8389f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '82b1d06cfb8a3b08543a77c839ccfcba2e9fae13', name: "edit_inactive", size: "20px" })), h("span", { key: '0c9c2ab0b8f620db172050e1db1dd4324b3ab094', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '84c9baa2bce9159f5ea084ed35051a878cfac1f9', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '888d0185686e5ba16bf7b4a064ea1926e17d5c96', class: "text-field-helper-error-state" }, h("tds-icon", { key: '752d5c6c9dee5a7eff5abae9d60e2eb353ee2e60', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'ead6aba2e4f11010dc4d6c17977abaac0b242e76', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '27e1880b203314c781260116b99fd1474a6a8041', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
90
90
  }
91
91
  static get is() { return "tds-text-field"; }
92
92
  static get encapsulation() { return "scoped"; }
@@ -27,8 +27,8 @@ export class TdsTextarea {
27
27
  }
28
28
  // Data input event in value prop
29
29
  handleInput(event) {
30
- this.tdsInput.emit(event);
31
30
  this.value = event.target.value;
31
+ this.tdsInput.emit(event);
32
32
  }
33
33
  /* Set the input as focus when clicking the whole textarea with suffix/prefix */
34
34
  handleFocus(event) {
@@ -38,7 +38,7 @@ export class TdsTextarea {
38
38
  }
39
39
  render() {
40
40
  var _a;
41
- return (h("div", { key: '755ac00cf894aac2a205af846cb36feb86035754', class: `
41
+ return (h("div", { key: 'f110536792da6122221dc6941b6da71900ea2111', class: `
42
42
  textarea-container
43
43
  ${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
44
44
  ${this.focusInput ? 'textarea-focus' : ''}
@@ -48,7 +48,7 @@ export class TdsTextarea {
48
48
  ${this.value ? 'textarea-data' : ''}
49
49
  ${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
50
50
  ${this.noMinWidth ? 'no-min-width' : ''}
51
- ` }, this.labelPosition !== 'no-label' && h("span", { key: '41953b1cf8951c3c29398adc80db618350944373', class: 'textarea-label' }, this.label), h("div", { key: '8ef9341455620e366f457ec365df44a12b87404a', class: "textarea-wrapper" }, h("textarea", { key: '784dfd2bf892c4452b400bec2e0c51d21a624ba7', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
51
+ ` }, this.labelPosition !== 'no-label' && h("span", { key: '67784499bde176257853f1f4c7a8757ce98b07ee', class: 'textarea-label' }, this.label), h("div", { key: '7ad9c6b9c897995a98af2b9e9babefc3e2ae8831', class: "textarea-wrapper" }, h("textarea", { key: '94d944bb5e9722d89f7b0c98d18199c52f81b458', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
52
52
  if (!this.readOnly) {
53
53
  this.handleFocus(event);
54
54
  }
@@ -56,7 +56,7 @@ export class TdsTextarea {
56
56
  if (!this.readOnly) {
57
57
  this.handleBlur(event);
58
58
  }
59
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: 'd06a243ac05c7504fac95b5fe5f4cba1dce7e9f9', class: "textarea-resizer-icon" }, h("svg", { key: 'fcffd85e4a8ad69e9616dd84d24fd9917e11b6ed', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '291f217768dbc7ae1f3768dca2be75fdfbaa9938', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), h("span", { key: '45d95dbdedead0c5db29449319756751b3bb7866', class: "textarea-icon__readonly" }, h("tds-icon", { key: 'bb634b3a769cf1630e57e8dc64d5d69fe741401e', name: "edit_inactive" })), h("span", { key: 'a9bd4f2739ea611f91187649acb79e483cbff888', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: '0c34d469e1ca4cb19e98b23b074be388e333d33e', class: 'textarea-helper' }, this.state === 'error' && h("tds-icon", { key: '33a21a513d62a5785cf37edc7d595501b0295088', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '9c0c4292fcd652a7b40ee6eebf846c3e8f64e5bb', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '130fd514336bc5bdc910f608314755cc1c5c4789', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
59
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '719da60a6975556fa37b2104d435bf99fb99efa5', class: "textarea-resizer-icon" }, h("svg", { key: '6b6969d6e49824fb8791343ac62bd1a9f5c4e0fa', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '1e4d31007fef3c520cfa32686cf9b888919b314a', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), h("span", { key: '144143c8af4351e0d2370ebeb0c50a0124ab8f9b', class: "textarea-icon__readonly" }, h("tds-icon", { key: 'e2c0ab89e72258d46bc6479b663f4d62466fa8b0', name: "edit_inactive" })), h("span", { key: 'c07af4893c1fd32de8988c1ef6ef3b77c4a63768', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'dd8ae6cbd2cdde4a08392c6905faae07bd7d58e7', class: 'textarea-helper' }, this.state === 'error' && h("tds-icon", { key: 'c282dcee39da4e70d207e41221c557852a06fb43', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '7f05bc68e67825742fe9c8c49853a39fabf1199e', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '32dd0095c4500558fbe9c9d46ba6db3eb67d9034', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
60
60
  }
61
61
  static get is() { return "tds-textarea"; }
62
62
  static get encapsulation() { return "scoped"; }
@@ -58,12 +58,12 @@ export class TdsToast {
58
58
  const usesHeaderSlot = hasSlot('header', this.host);
59
59
  const usesSubheaderSlot = hasSlot('subheader', this.host);
60
60
  const usesActionsSlot = hasSlot('actions', this.host);
61
- return (h(Host, { key: '40896b8e7fa322b37e69592486e7b128a52c2b97', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
61
+ return (h(Host, { key: 'f0ddc729628a45f868868f2b265f31d7df9a0411', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
62
62
  hide: this.hidden,
63
63
  show: !this.hidden,
64
- } }, h("div", { key: '22c9563b7a6fe868455f03ec3d5ee6af735912d3', class: `
64
+ } }, h("div", { key: '73e3f624e617544d84ec2c7306ace9fb990070b9', class: `
65
65
  wrapper
66
- ${this.variant}` }, h("tds-icon", { key: '6c32c80e7994b1758576c934a3dab4fd4320a4d9', name: this.getIconName(), size: "20px" }), h("div", { key: 'eaf31eb3b1b6dae5931885909e8616333e462378', class: `content` }, h("div", { key: '5f93d7e05b6d7d3d5e6f178d1697cc9cf28bdf3c', class: "header-subheader" }, this.header && h("div", { key: '50c71fd695bf0ef5fd04ae9d110b6af8b9c4cf34', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '3ff01f3f1af157f21bd17c086275a33d993c0136', name: "header" }), this.subheader && h("div", { key: 'bacda64f72cd981b21d0efdcb0ea429a6c6cc80e', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'c298d09af3b4f10c9a5cf116f33cc7026d41b858', name: "subheader" })), usesActionsSlot && (h("div", { key: '64f62ad9c487798d02fe14b4cd3cb0cf4ac751bb', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '544c61fdaa8d8d3ffe49fc278e19fef0033e18c8', name: "actions" })))), this.closable && (h("button", { key: 'c62ddb0d20113571fcf4bf0b790b87727ba2a307', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '39f7e267c2ee46156f78235e9225436708d5911a', name: "cross", size: "20px" }))))));
66
+ ${this.variant}` }, h("tds-icon", { key: 'bbeab9085851de6cc3d870421d8ea18c7e15471a', name: this.getIconName(), size: "20px" }), h("div", { key: '45b568761c09added6f0c3815d518fb541ba077a', class: `content` }, h("div", { key: '65aaac22e0b6439b3975e465493bc59e01ac7131', class: "header-subheader" }, this.header && h("div", { key: 'cd856ec5c2c118c52d942010f40cd90499f735b7', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '96157619f2e4fc59cd197bffb948cd4844d997b1', name: "header" }), this.subheader && h("div", { key: '3ba6782ba25b311d1c57b76791c0055db3f92ec2', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'e820491ceaa28771acd2b7661c5ddf7d9574a492', name: "subheader" })), usesActionsSlot && (h("div", { key: '72b25af2d7efbbb54b4f349c038c7efb684086f6', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '8c534d3b51d9f8c30148c0f601613d3395b8930e', name: "actions" })))), this.closable && (h("button", { key: 'a81bc7b2836bbec456260e80a1eb6e9d345ccdcf', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '7988501b679a147d62f6879db443bbfc64211871', name: "cross", size: "20px" }))))));
67
67
  }
68
68
  static get is() { return "tds-toast"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -29,7 +29,7 @@ export class TdsToggle {
29
29
  };
30
30
  }
31
31
  render() {
32
- return (h("div", { key: '4ca12f4ed989129407a0c7c0f41c33b57403783f', class: "tds-toggle" }, this.headline && (h("div", { key: '5b5e05e2405a13bbcfa86018d90bdbbc69782cee', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '81b9730f03c5a7cf702ed77441523320a9229398', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '4ed1d3700b76040f5f225da27bcd5eab5611939d', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: '458f1d0867aa3064d61a0b568fd91be35d1f99f5', name: "label" }))));
32
+ return (h("div", { key: '125bc9f156074abd27fcf74c67f2af2e26998741', class: "tds-toggle" }, this.headline && (h("div", { key: 'a72a46de4f01ebb31961f3c348329aed34b71294', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '3ca94acbcd90d291e1b77ad8680ccd058b242023', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '77cccf34c1737b5a55f6903f20a68bd7f109b2ed', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: 'ad408d7719105369ca6e1b7465564c1126785f18', name: "label" }))));
33
33
  }
34
34
  static get is() { return "tds-toggle"; }
35
35
  static get encapsulation() { return "scoped"; }
@@ -51,7 +51,7 @@ export class TdsTooltip {
51
51
  }
52
52
  render() {
53
53
  var _a;
54
- return (h(Host, { key: '09e3cbcc6df68b45aba5ea2a83a7498b333816d3' }, h("tds-popover-core", Object.assign({ key: '818391a146b316b9830989a772c0ab050203eb71' }, this.inheritedAttributes, { class: {
54
+ return (h(Host, { key: '93961300d93daf9eb0fa1f15e59c6bdfbea5f77b' }, h("tds-popover-core", Object.assign({ key: '1d2c6b17012d5040632df84b221eac247e890696' }, this.inheritedAttributes, { class: {
55
55
  'tds-tooltip': true,
56
56
  [`tds-tooltip-${this.border}`]: true,
57
57
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -60,7 +60,7 @@ export class TdsTooltip {
60
60
  this.show = true;
61
61
  }, onInternalTdsClose: () => {
62
62
  this.show = false;
63
- } }), this.text, h("slot", { key: 'd62923964dd2d9221349e01ef6403e3a83e53932' }))));
63
+ } }), this.text, h("slot", { key: 'd5a4357f2875a0f5f9b958b26adb8cc6f794e900' }))));
64
64
  }
65
65
  static get is() { return "tds-tooltip"; }
66
66
  static get encapsulation() { return "scoped"; }
@@ -1 +1 @@
1
- export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-35fa6479.js';
1
+ export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-28ef5186.js';
@@ -1,6 +1,6 @@
1
- import { p as proxyCustomElement, H, h, c as Host } from './p-35fa6479.js';
1
+ import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { d as dfs } from './p-52bf0fdf.js';
3
- import { d as defineCustomElement$1 } from './p-ead7cac2.js';
3
+ import { d as defineCustomElement$1 } from './p-30de8ac4.js';
4
4
 
5
5
  const headerItemCss = ":host ::slotted(button),:host ::slotted(a){all:unset;box-sizing:border-box;background-color:var(--tds-header-background);border-right:1px solid var(--tds-header--basic-element-border);width:100%;height:100%;cursor:pointer;padding:0 24px;display:flex;align-items:center;gap:8px}:host ::slotted(button) *,:host ::slotted(a) *{box-sizing:border-box}:host ::slotted(button:hover),:host ::slotted(a:hover){background-color:var(--tds-header-item-hover)}:host ::slotted(button:focus-visible),:host ::slotted(a:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .component-active ::slotted(button),:host .component-active ::slotted(a){background-color:var(--tds-header--basic-element-background-open);color:var(--tds-header-nav-item-dropdown-opened-color);border-color:var(--tds-header--basic-element-border-open)}:host .component-selected:not(.component-active) ::slotted(button),:host .component-selected:not(.component-active) ::slotted(a){background-color:var(--tds-header--basic-element-background-selected);padding-top:4px;border-bottom-style:solid;border-bottom-width:4px;border-bottom-color:var(--tds-nav-item-border-color-active)}";
6
6
  const TdsHeaderItemStyle0 = headerItemCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h, c as Host } from './p-35fa6479.js';
1
+ import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
 
3
3
  const sideMenuUserLabelCss = ":host{display:block;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color)}:host .subheading{color:var(--tds-grey-500)}";
4
4
  const TdsSideMenuUserLabelStyle0 = sideMenuUserLabelCss;
@@ -12,7 +12,7 @@ const TdsSideMenuUserLabel = /*@__PURE__*/ proxyCustomElement(class TdsSideMenuU
12
12
  this.subheading = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '361c1868777c78a539e7c36a0acb9963f57fde3c' }, this.heading, this.subheading && h("div", { key: 'a1e15c671dcd77841051c52c3e17ef66bbf7730f', class: "subheading" }, this.subheading)));
15
+ return (h(Host, { key: '5b26493d17e356fa885a7b615ed4bda03e751eb6' }, this.heading, this.subheading && h("div", { key: '2dc511289427ef2ea490fec0308119c42956113c', class: "subheading" }, this.subheading)));
16
16
  }
17
17
  static get style() { return TdsSideMenuUserLabelStyle0; }
18
18
  }, [1, "tds-side-menu-user-label", {