@scania/tegel 1.23.0-value-prop.beta.5 → 1.24.0-badge-a11y-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 (440) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-accordion-item.cjs.entry.js +7 -4
  3. package/dist/cjs/tds-badge.cjs.entry.js +15 -6
  4. package/dist/cjs/tds-banner.cjs.entry.js +6 -2
  5. package/dist/cjs/tds-block.cjs.entry.js +10 -6
  6. package/dist/cjs/tds-body-cell.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-button.cjs.entry.js +4 -2
  10. package/dist/cjs/tds-card.cjs.entry.js +9 -5
  11. package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +3 -3
  14. package/dist/cjs/tds-datetime.cjs.entry.js +2 -2
  15. package/dist/cjs/tds-divider.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-dropdown_2.cjs.entry.js +189 -137
  17. package/dist/cjs/tds-folder-tab.cjs.entry.js +4 -2
  18. package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
  19. package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
  20. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  21. package/dist/cjs/tds-footer.cjs.entry.js +3 -1
  22. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
  25. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-dropdown.cjs.entry.js +3 -3
  28. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
  37. package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  40. package/dist/cjs/tds-inline-tab.cjs.entry.js +5 -2
  41. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/tds-link.cjs.entry.js +5 -5
  43. package/dist/cjs/tds-message.cjs.entry.js +6 -4
  44. package/dist/cjs/tds-modal.cjs.entry.js +4 -1
  45. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  46. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +8 -2
  47. package/dist/cjs/tds-popover-canvas.cjs.entry.js +2 -2
  48. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  49. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
  50. package/dist/cjs/tds-popover-menu.cjs.entry.js +2 -2
  51. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  52. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  53. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +4 -4
  54. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +2 -2
  55. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +2 -2
  56. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +3 -3
  57. package/dist/cjs/tds-side-menu-item.cjs.entry.js +2 -2
  58. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  59. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +2 -2
  60. package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
  61. package/dist/cjs/tds-slider.cjs.entry.js +8 -8
  62. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  63. package/dist/cjs/tds-step.cjs.entry.js +1 -1
  64. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
  65. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +7 -7
  66. package/dist/cjs/tds-table-body-row.cjs.entry.js +2 -2
  67. package/dist/cjs/tds-table-body.cjs.entry.js +2 -2
  68. package/dist/cjs/tds-table-footer.cjs.entry.js +3 -3
  69. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  70. package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
  71. package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
  72. package/dist/cjs/tds-text-field.cjs.entry.js +8 -6
  73. package/dist/cjs/tds-textarea.cjs.entry.js +14 -12
  74. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  75. package/dist/cjs/tds-toggle.cjs.entry.js +4 -1
  76. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  77. package/dist/cjs/tegel.cjs.js +1 -1
  78. package/dist/collection/components/accordion/accordion-item/accordion-item.js +25 -4
  79. package/dist/collection/components/badge/badge.js +53 -7
  80. package/dist/collection/components/banner/banner.js +6 -2
  81. package/dist/collection/components/block/block.js +10 -6
  82. package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
  83. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  84. package/dist/collection/components/button/button.js +4 -2
  85. package/dist/collection/components/card/card.js +9 -5
  86. package/dist/collection/components/checkbox/checkbox.js +2 -2
  87. package/dist/collection/components/chip/chip.js +1 -1
  88. package/dist/collection/components/datetime/datetime.js +2 -2
  89. package/dist/collection/components/divider/divider.js +1 -1
  90. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
  91. package/dist/collection/components/dropdown/dropdown.js +239 -211
  92. package/dist/collection/components/footer/footer-group/footer-group.js +3 -3
  93. package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
  94. package/dist/collection/components/footer/footer.js +3 -1
  95. package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
  96. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
  97. package/dist/collection/components/header/header-dropdown/header-dropdown.js +3 -3
  98. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +1 -1
  99. package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -2
  100. package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +1 -1
  101. package/dist/collection/components/header/header-hamburger/header-hamburger.js +1 -1
  102. package/dist/collection/components/header/header-item/header-item.js +2 -2
  103. package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
  104. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
  105. package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -1
  106. package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
  107. package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
  108. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
  109. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +1 -1
  110. package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
  111. package/dist/collection/components/header/header-title/header-title.js +1 -1
  112. package/dist/collection/components/header/header.js +1 -1
  113. package/dist/collection/components/icon/icon.js +1 -1
  114. package/dist/collection/components/link/link.js +5 -5
  115. package/dist/collection/components/message/message.js +6 -4
  116. package/dist/collection/components/modal/modal.js +4 -1
  117. package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
  118. package/dist/collection/components/popover-core/popover-core.js +1 -1
  119. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +7 -1
  120. package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
  121. package/dist/collection/components/popover-menu/popover-menu.js +2 -2
  122. package/dist/collection/components/radio-button/radio-button.js +1 -1
  123. package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
  124. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
  125. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +3 -3
  126. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
  127. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +2 -2
  128. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
  129. package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
  130. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +1 -1
  131. package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
  132. package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
  133. package/dist/collection/components/slider/slider.css +13 -0
  134. package/dist/collection/components/slider/slider.js +7 -7
  135. package/dist/collection/components/spinner/spinner.js +1 -1
  136. package/dist/collection/components/stepper/step/step.js +1 -1
  137. package/dist/collection/components/table/table-body/table-body.js +2 -2
  138. package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -2
  139. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
  140. package/dist/collection/components/table/table-body-row/table-body-row.js +2 -2
  141. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -7
  142. package/dist/collection/components/table/table-footer/table-footer.js +3 -3
  143. package/dist/collection/components/table/table-header/table-header.js +2 -2
  144. package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
  145. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  146. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  147. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +4 -2
  148. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  149. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +5 -2
  150. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  151. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  152. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +8 -2
  153. package/dist/collection/components/text-field/text-field.js +9 -7
  154. package/dist/collection/components/textarea/textarea.js +14 -12
  155. package/dist/collection/components/toast/toast.js +3 -3
  156. package/dist/collection/components/toggle/toggle.js +4 -1
  157. package/dist/collection/components/tooltip/tooltip.js +2 -2
  158. package/dist/collection/utils/axeHelpers.js +3 -0
  159. package/dist/components/{p-4030e9bc.js → p-1e110ab8.js} +3 -3
  160. package/dist/components/{p-0c3cab16.js → p-2ef329f1.js} +2 -2
  161. package/dist/components/{p-5e1a9abc.js → p-3351035f.js} +1 -1
  162. package/dist/components/{p-0676aa23.js → p-3a7f88ff.js} +3 -3
  163. package/dist/components/{p-98a2c82d.js → p-47227e8f.js} +194 -145
  164. package/dist/components/{p-09d36119.js → p-4bdaf254.js} +1 -1
  165. package/dist/components/{p-30de8ac4.js → p-707a562e.js} +1 -1
  166. package/dist/components/{p-fcec766c.js → p-75437dea.js} +1 -1
  167. package/dist/components/{p-e46088d9.js → p-8f8b0827.js} +1 -1
  168. package/dist/components/{p-cfb1b588.js → p-9d7232d0.js} +2 -2
  169. package/dist/components/{p-e323cd2a.js → p-ad77fb02.js} +1 -1
  170. package/dist/components/{p-dddaa520.js → p-d1ace0be.js} +1 -1
  171. package/dist/components/{p-d921fe75.js → p-eac79032.js} +2 -2
  172. package/dist/components/{p-aea7fa6b.js → p-f0a50868.js} +3 -3
  173. package/dist/components/{p-8a2d7b2f.js → p-f1980746.js} +4 -4
  174. package/dist/components/tds-accordion-item.js +9 -5
  175. package/dist/components/tds-badge.js +19 -7
  176. package/dist/components/tds-banner.js +7 -3
  177. package/dist/components/tds-block.js +10 -6
  178. package/dist/components/tds-body-cell.js +2 -2
  179. package/dist/components/tds-breadcrumb.js +1 -1
  180. package/dist/components/tds-breadcrumbs.js +1 -1
  181. package/dist/components/tds-button.js +4 -2
  182. package/dist/components/tds-card.js +10 -6
  183. package/dist/components/tds-checkbox.js +1 -1
  184. package/dist/components/tds-chip.js +1 -1
  185. package/dist/components/tds-core-header-item.js +1 -1
  186. package/dist/components/tds-datetime.js +3 -3
  187. package/dist/components/tds-divider.js +1 -1
  188. package/dist/components/tds-dropdown-option.js +1 -1
  189. package/dist/components/tds-dropdown.js +1 -1
  190. package/dist/components/tds-folder-tab.js +4 -2
  191. package/dist/components/tds-folder-tabs.js +3 -3
  192. package/dist/components/tds-footer-group.js +4 -4
  193. package/dist/components/tds-footer-item.js +1 -1
  194. package/dist/components/tds-footer.js +3 -1
  195. package/dist/components/tds-header-brand-symbol.js +3 -3
  196. package/dist/components/tds-header-cell.js +2 -2
  197. package/dist/components/tds-header-dropdown-list-item.js +1 -1
  198. package/dist/components/tds-header-dropdown-list-user.js +1 -1
  199. package/dist/components/tds-header-dropdown-list.js +1 -1
  200. package/dist/components/tds-header-dropdown.js +8 -8
  201. package/dist/components/tds-header-hamburger.js +4 -4
  202. package/dist/components/tds-header-item.js +1 -1
  203. package/dist/components/tds-header-launcher-button.js +1 -1
  204. package/dist/components/tds-header-launcher-grid-item.js +1 -1
  205. package/dist/components/tds-header-launcher-grid-title.js +1 -1
  206. package/dist/components/tds-header-launcher-grid.js +1 -1
  207. package/dist/components/tds-header-launcher-list-item.js +2 -2
  208. package/dist/components/tds-header-launcher-list-title.js +1 -1
  209. package/dist/components/tds-header-launcher-list.js +2 -2
  210. package/dist/components/tds-header-launcher.js +8 -8
  211. package/dist/components/tds-header-title.js +1 -1
  212. package/dist/components/tds-header.js +1 -1
  213. package/dist/components/tds-icon.js +1 -1
  214. package/dist/components/tds-inline-tab.js +5 -2
  215. package/dist/components/tds-inline-tabs.js +3 -3
  216. package/dist/components/tds-link.js +5 -5
  217. package/dist/components/tds-message.js +7 -5
  218. package/dist/components/tds-modal.js +5 -2
  219. package/dist/components/tds-navigation-tab.js +2 -2
  220. package/dist/components/tds-navigation-tabs.js +9 -3
  221. package/dist/components/tds-popover-canvas.js +1 -1
  222. package/dist/components/tds-popover-core.js +1 -1
  223. package/dist/components/tds-popover-menu-item.js +3 -3
  224. package/dist/components/tds-popover-menu.js +3 -3
  225. package/dist/components/tds-radio-button.js +1 -1
  226. package/dist/components/tds-side-menu-close-button.js +2 -2
  227. package/dist/components/tds-side-menu-collapse-button.js +5 -5
  228. package/dist/components/tds-side-menu-dropdown-list-item.js +2 -2
  229. package/dist/components/tds-side-menu-dropdown-list.js +2 -2
  230. package/dist/components/tds-side-menu-dropdown.js +5 -5
  231. package/dist/components/tds-side-menu-item.js +1 -1
  232. package/dist/components/tds-side-menu-overlay.js +1 -1
  233. package/dist/components/tds-side-menu-user-image.js +1 -1
  234. package/dist/components/tds-side-menu-user-label.js +1 -1
  235. package/dist/components/tds-side-menu-user.js +3 -3
  236. package/dist/components/tds-slider.js +9 -9
  237. package/dist/components/tds-spinner.js +1 -1
  238. package/dist/components/tds-step.js +2 -2
  239. package/dist/components/tds-table-body-input-wrapper.js +2 -2
  240. package/dist/components/tds-table-body-row-expandable.js +7 -7
  241. package/dist/components/tds-table-body-row.js +3 -3
  242. package/dist/components/tds-table-body.js +2 -2
  243. package/dist/components/tds-table-footer.js +7 -7
  244. package/dist/components/tds-table-header-input-wrapper.js +2 -2
  245. package/dist/components/tds-table-header.js +3 -3
  246. package/dist/components/tds-table-toolbar.js +3 -3
  247. package/dist/components/tds-text-field.js +9 -7
  248. package/dist/components/tds-textarea.js +15 -13
  249. package/dist/components/tds-toast.js +4 -4
  250. package/dist/components/tds-toggle.js +4 -1
  251. package/dist/components/tds-tooltip.js +3 -3
  252. package/dist/esm/loader.js +1 -1
  253. package/dist/esm/tds-accordion-item.entry.js +7 -4
  254. package/dist/esm/tds-badge.entry.js +15 -6
  255. package/dist/esm/tds-banner.entry.js +6 -2
  256. package/dist/esm/tds-block.entry.js +10 -6
  257. package/dist/esm/tds-body-cell.entry.js +2 -2
  258. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  259. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  260. package/dist/esm/tds-button.entry.js +4 -2
  261. package/dist/esm/tds-card.entry.js +9 -5
  262. package/dist/esm/tds-checkbox.entry.js +2 -2
  263. package/dist/esm/tds-chip.entry.js +1 -1
  264. package/dist/esm/tds-core-header-item_2.entry.js +3 -3
  265. package/dist/esm/tds-datetime.entry.js +2 -2
  266. package/dist/esm/tds-divider.entry.js +1 -1
  267. package/dist/esm/tds-dropdown_2.entry.js +189 -137
  268. package/dist/esm/tds-folder-tab.entry.js +4 -2
  269. package/dist/esm/tds-folder-tabs.entry.js +2 -2
  270. package/dist/esm/tds-footer-group.entry.js +3 -3
  271. package/dist/esm/tds-footer-item.entry.js +1 -1
  272. package/dist/esm/tds-footer.entry.js +3 -1
  273. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  274. package/dist/esm/tds-header-cell.entry.js +1 -1
  275. package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
  276. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  277. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  278. package/dist/esm/tds-header-dropdown.entry.js +3 -3
  279. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  280. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  281. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  282. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  283. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  284. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  285. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  286. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  287. package/dist/esm/tds-header-launcher.entry.js +2 -2
  288. package/dist/esm/tds-header-title.entry.js +1 -1
  289. package/dist/esm/tds-header.entry.js +1 -1
  290. package/dist/esm/tds-icon.entry.js +1 -1
  291. package/dist/esm/tds-inline-tab.entry.js +5 -2
  292. package/dist/esm/tds-inline-tabs.entry.js +2 -2
  293. package/dist/esm/tds-link.entry.js +5 -5
  294. package/dist/esm/tds-message.entry.js +6 -4
  295. package/dist/esm/tds-modal.entry.js +4 -1
  296. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  297. package/dist/esm/tds-navigation-tabs.entry.js +8 -2
  298. package/dist/esm/tds-popover-canvas.entry.js +2 -2
  299. package/dist/esm/tds-popover-core.entry.js +1 -1
  300. package/dist/esm/tds-popover-menu-item.entry.js +3 -3
  301. package/dist/esm/tds-popover-menu.entry.js +2 -2
  302. package/dist/esm/tds-radio-button.entry.js +1 -1
  303. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  304. package/dist/esm/tds-side-menu-collapse-button.entry.js +4 -4
  305. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +2 -2
  306. package/dist/esm/tds-side-menu-dropdown-list.entry.js +2 -2
  307. package/dist/esm/tds-side-menu-dropdown.entry.js +3 -3
  308. package/dist/esm/tds-side-menu-item.entry.js +2 -2
  309. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  310. package/dist/esm/tds-side-menu-user-image_2.entry.js +2 -2
  311. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  312. package/dist/esm/tds-slider.entry.js +8 -8
  313. package/dist/esm/tds-spinner.entry.js +1 -1
  314. package/dist/esm/tds-step.entry.js +1 -1
  315. package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
  316. package/dist/esm/tds-table-body-row-expandable.entry.js +7 -7
  317. package/dist/esm/tds-table-body-row.entry.js +2 -2
  318. package/dist/esm/tds-table-body.entry.js +2 -2
  319. package/dist/esm/tds-table-footer.entry.js +3 -3
  320. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  321. package/dist/esm/tds-table-header.entry.js +2 -2
  322. package/dist/esm/tds-table-toolbar.entry.js +2 -2
  323. package/dist/esm/tds-text-field.entry.js +8 -6
  324. package/dist/esm/tds-textarea.entry.js +14 -12
  325. package/dist/esm/tds-toast.entry.js +3 -3
  326. package/dist/esm/tds-toggle.entry.js +4 -1
  327. package/dist/esm/tds-tooltip.entry.js +2 -2
  328. package/dist/esm/tegel.js +1 -1
  329. package/dist/tegel/{p-b4c7099f.entry.js → p-038c22ff.entry.js} +1 -1
  330. package/dist/tegel/{p-57f95a1b.entry.js → p-059a9499.entry.js} +1 -1
  331. package/dist/tegel/{p-9de400f4.entry.js → p-06968bd7.entry.js} +1 -1
  332. package/dist/tegel/{p-ede11de8.entry.js → p-0939b9fb.entry.js} +1 -1
  333. package/dist/tegel/p-0b773208.entry.js +1 -0
  334. package/dist/tegel/{p-7a83cf55.entry.js → p-0cb6c898.entry.js} +1 -1
  335. package/dist/tegel/{p-b9e37cf2.entry.js → p-1703f73a.entry.js} +1 -1
  336. package/dist/tegel/p-170ab61b.entry.js +1 -0
  337. package/dist/tegel/{p-ac46b0a4.entry.js → p-24ff5903.entry.js} +1 -1
  338. package/dist/tegel/{p-9bf7f5cd.entry.js → p-2795009a.entry.js} +1 -1
  339. package/dist/tegel/{p-4ab7461e.entry.js → p-2a38b053.entry.js} +1 -1
  340. package/dist/tegel/{p-6b405a0f.entry.js → p-2a96bd05.entry.js} +1 -1
  341. package/dist/tegel/{p-50fcdc56.entry.js → p-2f32991e.entry.js} +1 -1
  342. package/dist/tegel/p-32b7f431.entry.js +1 -0
  343. package/dist/tegel/p-39373227.entry.js +1 -0
  344. package/dist/tegel/{p-2557b79b.entry.js → p-3a32fe40.entry.js} +1 -1
  345. package/dist/tegel/p-3c22aef7.entry.js +1 -0
  346. package/dist/tegel/{p-bcae4d3a.entry.js → p-3d3ee51f.entry.js} +1 -1
  347. package/dist/tegel/p-3e144a83.entry.js +1 -0
  348. package/dist/tegel/p-3e1b1399.entry.js +1 -0
  349. package/dist/tegel/{p-2e44b4e9.entry.js → p-44c33b20.entry.js} +1 -1
  350. package/dist/tegel/p-48bbc11f.entry.js +1 -0
  351. package/dist/tegel/p-4a282c25.entry.js +1 -0
  352. package/dist/tegel/p-4b231bf9.entry.js +1 -0
  353. package/dist/tegel/{p-1634247e.entry.js → p-4b7c53a6.entry.js} +1 -1
  354. package/dist/tegel/{p-0df92ce7.entry.js → p-4c2f313d.entry.js} +1 -1
  355. package/dist/tegel/{p-ff5cd75f.entry.js → p-54154f09.entry.js} +1 -1
  356. package/dist/tegel/{p-ff7ae8a3.entry.js → p-59293f88.entry.js} +1 -1
  357. package/dist/tegel/p-5eaa23dc.entry.js +1 -0
  358. package/dist/tegel/{p-bb129d43.entry.js → p-5fea857b.entry.js} +1 -1
  359. package/dist/tegel/{p-088bfcd4.entry.js → p-68859ddc.entry.js} +1 -1
  360. package/dist/tegel/p-69b38504.entry.js +1 -0
  361. package/dist/tegel/{p-a5a67770.entry.js → p-6d022f47.entry.js} +1 -1
  362. package/dist/tegel/{p-868435cd.entry.js → p-6eeded00.entry.js} +1 -1
  363. package/dist/tegel/{p-0f38bea7.entry.js → p-708a8bab.entry.js} +1 -1
  364. package/dist/tegel/p-7090a95c.entry.js +1 -0
  365. package/dist/tegel/{p-4e3e2601.entry.js → p-72106a5c.entry.js} +1 -1
  366. package/dist/tegel/{p-ed02ad2b.entry.js → p-7929d22f.entry.js} +1 -1
  367. package/dist/tegel/p-85a9032e.entry.js +1 -0
  368. package/dist/tegel/{p-f9325536.entry.js → p-86b30f71.entry.js} +1 -1
  369. package/dist/tegel/p-88204e0a.entry.js +1 -0
  370. package/dist/tegel/{p-6a52ed63.entry.js → p-9016758e.entry.js} +1 -1
  371. package/dist/tegel/p-92f81cda.entry.js +1 -0
  372. package/dist/tegel/p-93930c03.entry.js +1 -0
  373. package/dist/tegel/{p-aed1c5cf.entry.js → p-96bdf035.entry.js} +1 -1
  374. package/dist/tegel/{p-7097a39a.entry.js → p-99da056d.entry.js} +1 -1
  375. package/dist/tegel/p-9c3f2c12.entry.js +1 -0
  376. package/dist/tegel/{p-9c2dfecc.entry.js → p-9eaaa2c0.entry.js} +1 -1
  377. package/dist/tegel/p-a38dda58.entry.js +1 -0
  378. package/dist/tegel/{p-de540cc0.entry.js → p-a392e6e7.entry.js} +1 -1
  379. package/dist/tegel/p-a86fe122.entry.js +1 -0
  380. package/dist/tegel/{p-220affa9.entry.js → p-b19ce79c.entry.js} +1 -1
  381. package/dist/tegel/{p-987084a5.entry.js → p-b2018a5b.entry.js} +1 -1
  382. package/dist/tegel/{p-c790ef93.entry.js → p-b425b2f4.entry.js} +1 -1
  383. package/dist/tegel/p-b647d20e.entry.js +1 -0
  384. package/dist/tegel/{p-c18b2746.entry.js → p-b96cd80d.entry.js} +1 -1
  385. package/dist/tegel/{p-f1c172a4.entry.js → p-b9b63210.entry.js} +1 -1
  386. package/dist/tegel/p-be88c5ab.entry.js +1 -0
  387. package/dist/tegel/p-bf38e688.entry.js +1 -0
  388. package/dist/tegel/{p-91dcddd5.entry.js → p-c289dfb9.entry.js} +1 -1
  389. package/dist/tegel/{p-2dd309cb.entry.js → p-c8add958.entry.js} +1 -1
  390. package/dist/tegel/p-cc2730d8.entry.js +1 -0
  391. package/dist/tegel/p-d1112915.entry.js +1 -0
  392. package/dist/tegel/{p-e65dba91.entry.js → p-d7f48112.entry.js} +1 -1
  393. package/dist/tegel/p-d926d075.entry.js +1 -0
  394. package/dist/tegel/{p-c917d8be.entry.js → p-e478953c.entry.js} +1 -1
  395. package/dist/tegel/p-e7300cca.entry.js +1 -0
  396. package/dist/tegel/{p-6c26e66f.entry.js → p-e9ac7a1a.entry.js} +1 -1
  397. package/dist/tegel/{p-dd060c11.entry.js → p-ea4a9a4f.entry.js} +1 -1
  398. package/dist/tegel/p-f050aad8.entry.js +1 -0
  399. package/dist/tegel/{p-e7108828.entry.js → p-f4db0231.entry.js} +1 -1
  400. package/dist/tegel/p-f67b4047.entry.js +1 -0
  401. package/dist/tegel/{p-a642c800.entry.js → p-fd3d56aa.entry.js} +1 -1
  402. package/dist/tegel/{p-06d2fa56.entry.js → p-fd432c54.entry.js} +1 -1
  403. package/dist/tegel/{p-ad434031.entry.js → p-ffd827ef.entry.js} +1 -1
  404. package/dist/tegel/tegel.esm.js +1 -1
  405. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +2 -0
  406. package/dist/types/components/badge/badge.d.ts +5 -0
  407. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  408. package/dist/types/components/dropdown/dropdown.d.ts +36 -26
  409. package/dist/types/components.d.ts +35 -21
  410. package/dist/types/utils/axeHelpers.d.ts +2 -0
  411. package/package.json +5 -5
  412. package/dist/tegel/p-062adc6d.entry.js +0 -1
  413. package/dist/tegel/p-12303135.entry.js +0 -1
  414. package/dist/tegel/p-1a2f3852.entry.js +0 -1
  415. package/dist/tegel/p-1bc2c73c.entry.js +0 -1
  416. package/dist/tegel/p-26ae4a93.entry.js +0 -1
  417. package/dist/tegel/p-54a105a4.entry.js +0 -1
  418. package/dist/tegel/p-5a891dd2.entry.js +0 -1
  419. package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
  420. package/dist/tegel/p-6938329a.entry.js +0 -1
  421. package/dist/tegel/p-6aabf7e1.entry.js +0 -1
  422. package/dist/tegel/p-7d39487c.entry.js +0 -1
  423. package/dist/tegel/p-7d83ba98.entry.js +0 -1
  424. package/dist/tegel/p-845e1fca.entry.js +0 -1
  425. package/dist/tegel/p-930e767e.entry.js +0 -1
  426. package/dist/tegel/p-959a6780.entry.js +0 -1
  427. package/dist/tegel/p-9aefb942.entry.js +0 -1
  428. package/dist/tegel/p-a9654cd4.entry.js +0 -1
  429. package/dist/tegel/p-b00bcf39.entry.js +0 -1
  430. package/dist/tegel/p-b9ac3122.entry.js +0 -1
  431. package/dist/tegel/p-bda3d846.entry.js +0 -1
  432. package/dist/tegel/p-cd5219ac.entry.js +0 -1
  433. package/dist/tegel/p-d1cbe5be.entry.js +0 -1
  434. package/dist/tegel/p-dcbd977f.entry.js +0 -1
  435. package/dist/tegel/p-e13935b6.entry.js +0 -1
  436. package/dist/tegel/p-e86f2d31.entry.js +0 -1
  437. package/dist/tegel/p-e97a2700.entry.js +0 -1
  438. package/dist/tegel/p-f45d905c.entry.js +0 -1
  439. package/dist/tegel/p-f841f094.entry.js +0 -1
  440. package/dist/tegel/p-fc0079d2.entry.js +0 -1
@@ -105,7 +105,7 @@ const TdsDatetime = class {
105
105
  if (this.size === 'sm') {
106
106
  className += `${className}-sm`;
107
107
  }
108
- return (h("div", { key: '0b0386d6ca214861e77014eb3c1b1ad5ac5176ea', class: `
108
+ return (h("div", { key: 'c09955258fa6a87c07efe2c4c327c72eb34688d8', class: `
109
109
  ${this.noMinWidth ? 'tds-form-datetime-nomin' : ''}
110
110
  ${this.focusInput ? 'tds-form-datetime tds-datetime-focus' : ' tds-form-datetime'}
111
111
  ${this.value.length > 0 ? 'tds-datetime-data' : ''}
@@ -115,7 +115,7 @@ const TdsDatetime = class {
115
115
  ${this.state === 'error' || this.state === 'success'
116
116
  ? `tds-form-datetime-${this.state}`
117
117
  : ''}
118
- ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && (h("label", { key: '0ec4ae11802d336afb3480d93c6958b065974518', htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { key: '454f2935d7ba7fb0679812fdec1f7a1080eb9722', onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { key: '79dd5d7eb7492290857808202d573b1315f43e50', class: "tds-datetime-input-container" }, h("input", { key: '01002d1f987a863aa9289e47b485a3740f3a5786', ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { key: '62bb064b898118016212f7009b8ff7ae08f9be84', class: "datetime-icon icon-datetime-local" }, h("tds-icon", { key: 'a68bf6f45b79796ea5631225dc487ba27187dd03', size: "20px", name: "calendar" })), h("div", { key: 'd6d2425cae67f297c44f08de7d023013eec27547', class: "datetime-icon icon-time" }, h("tds-icon", { key: '5bdd8c430c232c4b01a612f9260e55d55a9fb44a', size: "20px", name: "clock" }))), h("div", { key: '3bb439913f3054041322de6d0056960a4eb1dd1c', class: "tds-datetime-bar" })), this.helper && (h("div", { key: '3f7245fda7ee2c0d894d5e4fdd90beace078035e', class: "tds-datetime-helper" }, h("div", { key: '82d7b73b3ab1e6dc5d90762416d169d393c69c5d', class: "tds-helper" }, this.state === 'error' && h("tds-icon", { key: '9ccebec9e7cbce668362884e7efeb3c92bec8e82', name: "error", size: "16px" }), this.helper)))));
118
+ ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && (h("label", { key: '42e0f48bc1e5c0fe34c492c9c4a4442dcb4982ec', htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { key: '9a09a448c5c46073b31c7cd6148ed8bf6334780e', onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { key: '78e81a9fbff444f76a2b46013cb9bc02e186ec86', class: "tds-datetime-input-container" }, h("input", { key: '385bb5d6d124951cd14151e6cda72007319f9dba', ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { key: '12e390a5b6fed5c6c2702cccad2f14a5fc20eebe', class: "datetime-icon icon-datetime-local" }, h("tds-icon", { key: '1e8c1a91b23b9bd5f9e44929f6586652d7578df6', size: "20px", name: "calendar" })), h("div", { key: '496f500c9f1b948458d7ab1c5d86a466838e7b6d', class: "datetime-icon icon-time" }, h("tds-icon", { key: 'b5dd412bf9d2286b2443aaf3ed2eb17a9f9045a9', size: "20px", name: "clock" }))), h("div", { key: '666193c97a4aa5435961d25b97d74bd3cc8b07a8', class: "tds-datetime-bar" })), this.helper && (h("div", { key: 'a7860edb4ab20cb633ec8309a991315358b53cd6', class: "tds-datetime-helper" }, h("div", { key: '84efbb36322ace185d66dd4f270a23b69e4bbad7', class: "tds-helper" }, this.state === 'error' && h("tds-icon", { key: 'c304cdd2087c473a39304e9f926fee62286f3359', name: "error", size: "16px" }), this.helper)))));
119
119
  }
120
120
  };
121
121
  TdsDatetime.style = TdsDatetimeStyle0;
@@ -9,7 +9,7 @@ const Divider = class {
9
9
  this.orientation = 'horizontal';
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '52a57f6bab64f6329412bbab154f213864382e98', role: "separator", "aria-orientation": this.orientation === 'vertical' ? 'vertical' : undefined }, h("div", { key: '5ba2a5d20d84748b4b76e7ec24155f29cab69bc5', class: `divider ${this.orientation}` })));
12
+ return (h(Host, { key: 'a6195d6461fc6727d9e83c4152f446179160963f', role: "separator", "aria-orientation": this.orientation === 'vertical' ? 'vertical' : undefined }, h("div", { key: 'f1cf2f97534adfe809f8ddda734cfdbcecd7989a', class: `divider ${this.orientation}` })));
13
13
  }
14
14
  };
15
15
  Divider.style = TdsDividerStyle0;
@@ -68,16 +68,35 @@ const TdsDropdown = class {
68
68
  this.tdsFocus = createEvent(this, "tdsFocus", 6);
69
69
  this.tdsBlur = createEvent(this, "tdsBlur", 6);
70
70
  this.tdsInput = createEvent(this, "tdsInput", 6);
71
- this.tdsValueChange = createEvent(this, "tdsValueChange", 6);
72
71
  this.setDefaultOption = () => {
73
72
  if (this.defaultValue) {
73
+ const children = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
74
+ if (children.length === 0) {
75
+ console.warn('TDS DROPDOWN: No options found. Disregard if loading data asynchronously.');
76
+ return;
77
+ }
74
78
  const defaultValues = this.multiselect
75
79
  ? new Set(this.defaultValue.split(','))
76
80
  : [this.defaultValue];
77
- const normalizedValues = Array.from(defaultValues);
78
- this.updateDropdownState(normalizedValues);
81
+ const childrenMap = new Map(children.map((element) => [element.value, element]));
82
+ const matchedValues = Array.from(defaultValues).filter((value) => {
83
+ const element = childrenMap.get(value);
84
+ if (element) {
85
+ element.setSelected(true);
86
+ return true;
87
+ }
88
+ return false;
89
+ });
90
+ if (matchedValues.length > 0) {
91
+ this.value = [...new Set(this.value ? [...this.value, ...matchedValues] : matchedValues)];
92
+ this.setValueAttribute();
93
+ }
94
+ else {
95
+ console.warn(`TDS DROPDOWN: No matching option found for defaultValue "${this.defaultValue}"`);
96
+ }
79
97
  }
80
98
  };
99
+ /* Returns a list of all children that are tds-dropdown-option elements */
81
100
  this.getChildren = () => {
82
101
  const tdsDropdownOptions = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
83
102
  if (tdsDropdownOptions.length === 0) {
@@ -86,36 +105,6 @@ const TdsDropdown = class {
86
105
  else
87
106
  return tdsDropdownOptions;
88
107
  };
89
- this.getSelectedChildren = () => {
90
- if (this.selectedOptions.length === 0)
91
- return [];
92
- return this.selectedOptions
93
- .map((stringValue) => {
94
- var _a;
95
- const matchingElement = (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.find((element) => element.value === stringValue);
96
- return matchingElement;
97
- })
98
- .filter(Boolean);
99
- };
100
- this.getSelectedChildrenLabels = () => {
101
- var _a;
102
- return (_a = this.getSelectedChildren()) === null || _a === void 0 ? void 0 : _a.map((element) => element.textContent.trim());
103
- };
104
- this.getValue = () => {
105
- const labels = this.getSelectedChildrenLabels();
106
- if (!labels) {
107
- return '';
108
- }
109
- return labels === null || labels === void 0 ? void 0 : labels.join(', ');
110
- };
111
- this.setValueAttribute = () => {
112
- if (this.selectedOptions.length === 0) {
113
- this.host.removeAttribute('value');
114
- }
115
- else {
116
- this.host.setAttribute('value', this.selectedOptions.join(','));
117
- }
118
- };
119
108
  this.getOpenDirection = () => {
120
109
  var _a, _b, _c, _d, _e;
121
110
  if (this.openDirection === 'auto' || !this.openDirection) {
@@ -129,6 +118,7 @@ const TdsDropdown = class {
129
118
  }
130
119
  return this.openDirection;
131
120
  };
121
+ /* Toggles the open state of the Dropdown and sets focus to the input element */
132
122
  this.handleToggleOpen = () => {
133
123
  if (!this.disabled) {
134
124
  this.open = !this.open;
@@ -137,10 +127,38 @@ const TdsDropdown = class {
137
127
  }
138
128
  }
139
129
  };
130
+ /* Focuses the input element in the Dropdown, if the reference is present. */
140
131
  this.focusInputElement = () => {
141
132
  if (this.inputElement)
142
133
  this.inputElement.focus();
143
134
  };
135
+ this.getSelectedChildren = () => {
136
+ var _a;
137
+ return (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((stringValue) => {
138
+ const matchingElement = this.getChildren().find((element) => element.value === stringValue);
139
+ return matchingElement;
140
+ }).filter(Boolean);
141
+ };
142
+ this.getSelectedChildrenLabels = () => {
143
+ var _a;
144
+ return (_a = this.getSelectedChildren()) === null || _a === void 0 ? void 0 : _a.map((element) => element.textContent.trim());
145
+ };
146
+ this.getValue = () => {
147
+ const labels = this.getSelectedChildrenLabels();
148
+ if (!labels) {
149
+ return '';
150
+ }
151
+ return labels === null || labels === void 0 ? void 0 : labels.join(', ');
152
+ };
153
+ this.setValueAttribute = () => {
154
+ var _a;
155
+ if (!this.value || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) === '') {
156
+ this.host.removeAttribute('value');
157
+ }
158
+ else {
159
+ this.host.setAttribute('value', this.value.map((val) => val).toString());
160
+ }
161
+ };
144
162
  this.handleFilter = (event) => {
145
163
  this.tdsInput.emit(event);
146
164
  const query = event.target.value.toLowerCase();
@@ -171,10 +189,8 @@ const TdsDropdown = class {
171
189
  this.handleFilterReset = () => {
172
190
  this.reset();
173
191
  this.inputElement.value = '';
174
- this.handleFilter({ target: { value: '' } });
192
+ this.handleFilter({ target: { value: this.inputElement.value } });
175
193
  this.inputElement.focus();
176
- // Add this line to ensure internal value is cleared
177
- this.internalValue = '';
178
194
  };
179
195
  this.handleFocus = (event) => {
180
196
  this.open = true;
@@ -188,6 +204,13 @@ const TdsDropdown = class {
188
204
  this.handleBlur = (event) => {
189
205
  this.tdsBlur.emit(event);
190
206
  };
207
+ this.handleChange = () => {
208
+ var _a, _b;
209
+ this.tdsChange.emit({
210
+ name: this.name,
211
+ value: (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString()) !== null && _b !== void 0 ? _b : null,
212
+ });
213
+ };
191
214
  this.resetInput = () => {
192
215
  const inputEl = this.host.querySelector('input');
193
216
  if (inputEl) {
@@ -210,99 +233,107 @@ const TdsDropdown = class {
210
233
  this.normalizeText = true;
211
234
  this.noResultText = 'No result';
212
235
  this.defaultValue = undefined;
213
- this.value = null;
214
236
  this.open = false;
215
- this.internalValue = undefined;
237
+ this.value = undefined;
216
238
  this.filterResult = undefined;
217
239
  this.filterFocus = undefined;
218
- this.selectedOptions = [];
219
240
  }
220
- handleValueChange(newValue) {
221
- // Normalize to array
222
- const normalizedValue = this.normalizeValue(newValue);
223
- // Only update if actually changed
224
- if (this.hasValueChanged(normalizedValue, this.selectedOptions)) {
225
- this.updateDropdownState(normalizedValue);
226
- }
227
- }
228
- normalizeValue(value) {
229
- if (!value || value === '')
230
- return []; // Handle both null and empty string
231
- // For multiselect, keep array. For single select, wrap in array
232
- if (this.multiselect) {
233
- return Array.isArray(value) ? value : value.split(',').filter((v) => v !== '');
234
- }
235
- return Array.isArray(value) ? value : [value];
236
- }
237
- hasValueChanged(newValue, currentValue) {
238
- if (newValue.length !== currentValue.length)
239
- return true;
240
- return newValue.some((val) => !currentValue.includes(val));
241
+ /** Method that resets the Dropdown, marks all children as non-selected and resets the value to null. */
242
+ async reset() {
243
+ this.dropdownList.scrollTop = 0;
244
+ this.internalReset();
245
+ this.handleChange();
241
246
  }
242
- updateDropdownState(values) {
243
- // Update internal state
244
- this.selectedOptions = this.validateValues(values);
245
- // Then update the value prop to match
246
- this.value = this.multiselect ? this.selectedOptions : this.selectedOptions[0] || null;
247
- // Update DOM
248
- this.updateOptionElements();
249
- // Update display value
250
- this.updateDisplayValue();
251
- // Emit change event
252
- this.emitChange();
253
- // Update value attribute
254
- this.setValueAttribute();
247
+ /** Method that forces focus on the input element. */
248
+ async focusElement() {
249
+ this.focusInputElement();
250
+ this.handleFocus({});
255
251
  }
256
- validateValues(values) {
257
- return values.filter((val) => {
258
- var _a;
259
- const isValid = (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.some((element) => element.value === val);
260
- if (!isValid) {
261
- console.warn(`Option with value "${val}" does not exist`);
252
+ /** Method for setting the value of the Dropdown.
253
+ *
254
+ * Single selection example:
255
+ *
256
+ * <code>
257
+ * dropdown.setValue('option-1', 'Option 1');
258
+ * </code>
259
+ *
260
+ * Multiselect example:
261
+ *
262
+ * <code>
263
+ * dropdown.setValue(['option-1', 'option-2']);
264
+ * </code>
265
+ */
266
+ // The label is optional here ONLY to not break the API. Should be removed for 2.0.
267
+ // @ts-ignore
268
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
269
+ async setValue(value, label) {
270
+ let nextValue;
271
+ if (typeof value === 'string')
272
+ nextValue = [value];
273
+ else
274
+ nextValue = value;
275
+ if (!this.multiselect && nextValue.length > 1) {
276
+ console.warn('Tried to select multiple items, but multiselect is not enabled.');
277
+ nextValue = [nextValue[0]];
278
+ }
279
+ nextValue = [...new Set(nextValue)];
280
+ this.internalReset();
281
+ for (let i = 0; i < nextValue.length; i++) {
282
+ const optionExist = this.getChildren().some((element) => element.value === nextValue[i]);
283
+ if (!optionExist) {
284
+ nextValue.splice(i, 1);
262
285
  }
263
- return isValid;
264
- });
265
- }
266
- updateOptionElements() {
267
- var _a;
268
- (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
269
- element.setSelected(this.selectedOptions.includes(element.value));
270
- });
271
- }
272
- updateDisplayValue() {
273
- this.internalValue = this.getSelectedChildrenLabels().join(', ');
274
- if (this.filter && this.inputElement) {
275
- this.inputElement.value = this.internalValue;
276
286
  }
277
- }
278
- emitChange() {
279
- const value = this.multiselect
280
- ? this.selectedOptions.join(',')
281
- : this.selectedOptions[0] || null;
282
- this.tdsChange.emit({
283
- name: this.name,
284
- value: value !== null && value !== void 0 ? value : null,
285
- });
286
- }
287
- async setValue(value) {
288
- const normalizedValue = this.normalizeValue(value);
289
- this.updateDropdownState(normalizedValue);
290
- return this.getSelectedChildren().map((element) => ({
287
+ this.value = nextValue;
288
+ this.setValueAttribute();
289
+ this.selectChildrenAsSelectedBasedOnSelectionProp();
290
+ this.handleChange();
291
+ /* This returns an array of object with a value and label pair. This is ONLY to not break the API. Should be removed for 2.0. */
292
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
293
+ const selection = this.getSelectedChildren().map((element) => ({
291
294
  value: element.value,
292
295
  label: element.textContent.trim(),
293
296
  }));
297
+ // Update inputElement value and placeholder text
298
+ if (this.filter) {
299
+ this.inputElement.value = this.getValue();
300
+ }
301
+ return selection;
294
302
  }
295
- async reset() {
296
- this.updateDropdownState([]);
303
+ /**
304
+ * @internal
305
+ */
306
+ async appendValue(value) {
307
+ if (this.multiselect && this.value) {
308
+ this.setValue([...this.value, value]);
309
+ }
310
+ else {
311
+ this.setValue(value);
312
+ }
297
313
  }
314
+ /** Method for removing a selected value in the Dropdown. */
298
315
  async removeValue(oldValue) {
299
- const newValues = this.selectedOptions.filter((v) => v !== oldValue);
300
- this.updateDropdownState(newValues);
301
- }
302
- /** Method that forces focus on the input element. */
303
- async focusElement() {
304
- this.focusInputElement();
305
- this.handleFocus({});
316
+ var _a, _b;
317
+ let label;
318
+ if (this.multiselect) {
319
+ (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
320
+ var _a;
321
+ if (element.value === oldValue) {
322
+ this.value = (_a = this.value) === null || _a === void 0 ? void 0 : _a.filter((value) => value !== element.value);
323
+ label = element.textContent.trim();
324
+ element.setSelected(false);
325
+ }
326
+ return element;
327
+ });
328
+ }
329
+ else {
330
+ this.reset();
331
+ }
332
+ this.handleChange();
333
+ this.setValueAttribute();
334
+ /* This returns an array of object with a value and label pair. This is ONLY to not break the API. Should be removed for 2.0. */
335
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
336
+ return (_b = this.value) === null || _b === void 0 ? void 0 : _b.map((value) => ({ value, label }));
306
337
  }
307
338
  /** Method for closing the Dropdown. */
308
339
  async close() {
@@ -351,15 +382,12 @@ const TdsDropdown = class {
351
382
  handleOpenState() {
352
383
  if (this.filter && this.multiselect) {
353
384
  if (!this.open) {
354
- this.inputElement.value = this.selectedOptions.length ? this.getValue() : '';
385
+ this.inputElement.value = this.getValue();
355
386
  }
356
387
  }
357
388
  }
358
389
  componentWillLoad() {
359
- if (this.defaultValue && !this.value) {
360
- const initialValue = this.multiselect ? this.defaultValue.split(',') : [this.defaultValue];
361
- this.updateDropdownState(initialValue);
362
- }
390
+ this.setDefaultOption();
363
391
  }
364
392
  /** Method to handle slot changes */
365
393
  handleSlotChange() {
@@ -369,13 +397,29 @@ const TdsDropdown = class {
369
397
  normalizeString(text) {
370
398
  return this.normalizeText ? text.normalize('NFD').replace(/\p{Diacritic}/gu, '') : text;
371
399
  }
372
- async appendValue(value) {
373
- if (this.multiselect) {
374
- this.updateDropdownState([...this.selectedOptions, value]);
375
- }
376
- else {
377
- this.updateDropdownState([value]);
378
- }
400
+ /** Method that resets the dropdown without emitting an event. */
401
+ internalReset() {
402
+ this.getChildren().forEach((element) => {
403
+ element.setSelected(false);
404
+ return element;
405
+ });
406
+ this.value = null;
407
+ this.setValueAttribute();
408
+ }
409
+ selectChildrenAsSelectedBasedOnSelectionProp() {
410
+ this.getChildren().forEach((element) => {
411
+ this.value.forEach((selection) => {
412
+ if (element.value !== selection) {
413
+ // If not multiselect, we need to unselect all other options.
414
+ if (!this.multiselect) {
415
+ element.setSelected(false);
416
+ }
417
+ }
418
+ else {
419
+ element.setSelected(true);
420
+ }
421
+ });
422
+ });
379
423
  }
380
424
  componentDidRender() {
381
425
  const form = this.host.closest('form');
@@ -390,8 +434,9 @@ const TdsDropdown = class {
390
434
  }
391
435
  }
392
436
  render() {
393
- appendHiddenInput(this.host, this.name, this.selectedOptions.join(','), this.disabled);
394
- return (h(Host, { key: 'b084be887c56fbce2c51c70c6c5e29d2dbff0555', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'b24fadee61a85c008cff52fe1e47570f7b3db29e', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '01ba50787cfdb187f5fa602ac6d21283a1fcd98b', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
437
+ var _a, _b, _c, _d;
438
+ appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
439
+ return (h(Host, { key: '1060f3acf281ac9d572523710cc02b66104c6f6b', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '1f98616295ccc6677353fc204e2452d8c1ff09c6', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'ffd9d6d7cc255f536df19539b10ec93cee6070c0', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
395
440
  filter: true,
396
441
  focus: this.filterFocus,
397
442
  disabled: this.disabled,
@@ -399,7 +444,7 @@ const TdsDropdown = class {
399
444
  } }, h("div", { class: "value-wrapper" }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
400
445
  label-inside-as-placeholder
401
446
  ${this.size}
402
- ${this.selectedOptions.length ? 'selected' : ''}
447
+ ${((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) ? 'selected' : ''}
403
448
  ` }, this.label)), h("input", {
404
449
  // eslint-disable-next-line no-return-assign
405
450
  ref: (inputEl) => (this.inputElement = inputEl), class: `${this.labelPosition === 'inside' ? 'placeholder' : ''}`, type: "text", placeholder: this.filterFocus ? '' : this.placeholder, value: this.multiselect && this.filterFocus ? '' : this.getValue(), disabled: this.disabled, onInput: (event) => this.handleFilter(event), onBlur: (event) => {
@@ -408,7 +453,15 @@ const TdsDropdown = class {
408
453
  this.inputElement.value = this.getValue();
409
454
  }
410
455
  this.handleBlur(event);
411
- }, onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => {
456
+ }, onFocus: (event) => {
457
+ this.open = true;
458
+ this.filterFocus = true;
459
+ if (this.multiselect) {
460
+ this.inputElement.value = '';
461
+ }
462
+ this.handleFocus(event);
463
+ this.handleFilter({ target: { value: '' } });
464
+ }, onKeyDown: (event) => {
412
465
  if (event.key === 'Escape') {
413
466
  this.open = false;
414
467
  }
@@ -426,14 +479,14 @@ const TdsDropdown = class {
426
479
  this.open = false;
427
480
  }
428
481
  }, class: `
429
- ${this.selectedOptions.length ? 'value' : 'placeholder'}
482
+ ${this.value ? 'value' : 'placeholder'}
430
483
  ${this.open ? 'open' : 'closed'}
431
484
  ${this.error ? 'error' : ''}
432
485
  `, disabled: this.disabled }, h("div", { class: `value-wrapper ${this.size}` }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
433
486
  label-inside-as-placeholder
434
487
  ${this.size}
435
- ${this.selectedOptions.length ? 'selected' : ''}
436
- ` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '849ff954ec4ae3fc46e1de5dd236d409e9796adb', ref: (element) => (this.dropdownList = element), class: {
488
+ ${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
489
+ ` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '620832bb85cbf816f93546837f4b59eaf2d478e8', ref: (element) => (this.dropdownList = element), class: {
437
490
  'dropdown-list': true,
438
491
  [this.size]: true,
439
492
  [this.getOpenDirection()]: true,
@@ -442,11 +495,10 @@ const TdsDropdown = class {
442
495
  'closed': !this.open,
443
496
  [`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
444
497
  [`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
445
- } }, h("slot", { key: 'bae1fc6a37421363f0f104a5b1637dad11b13722', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'b8c57fb7c25949a603734eaff7ccae28aa01b787', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: 'c06e8e79f8ecaf3abc7fa97ea520b0e81ea48b33', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: '7793cdff81b04b20111083c9ad288773339c570d', name: "error", size: "16px" }), this.helper))));
498
+ } }, h("slot", { key: 'bced1a41f3156356d63625f31bfedba594be4b64', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'a618b7b1d6049a928a9d127599ff84ec287a3ec1', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: 'f556737ebbeee18ec424937dda602496683aa889', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: 'bbfcc02245b5c02759199e415411033a29897328', name: "error", size: "16px" }), this.helper))));
446
499
  }
447
500
  get host() { return getElement(this); }
448
501
  static get watchers() { return {
449
- "value": ["handleValueChange"],
450
502
  "open": ["handleOpenState"]
451
503
  }; }
452
504
  };
@@ -519,7 +571,7 @@ const TdsDropdownOption = class {
519
571
  this.selected = selected;
520
572
  }
521
573
  render() {
522
- return (h(Host, { key: '1cb00a19c5dbcc47e1b2bc97d1d5ccc8ac5a532a', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: '5deaf44c7306f4b1856200bf0a5640e99fcb449d', class: `dropdown-option
574
+ return (h(Host, { key: '0dedcd94148bf61ee8b154c00eca73759f366dd4', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: 'da3b6d37132d48502599145f85f05072a996d6dc', class: `dropdown-option
523
575
  ${this.size}
524
576
  ${this.selected ? 'selected' : ''}
525
577
  ${this.disabled ? 'disabled' : ''}
@@ -19,8 +19,10 @@ const TdsFolderTab = class {
19
19
  this.selected = selected;
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '37ae53ec0d9c0bc3674365d14d61c6b1fbafe168', role: "listitem" }, h("div", { key: 'a977243b499569668ef7428829644f3f2ca23033', class: `${this.disabled ? 'disabled' : ''}
23
- ${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '1e8b9cc10f032a64ffef70bb061f57ddc8a4a1a5' }))));
22
+ return (h(Host, { key: '3ebe8719ec0bae1d4de2f698b032d9914f01fc65', role: "listitem" }, h("div", { key: '26e4df6a7c2c3ec3cc9b391004b0ecc2e08886ce', class: {
23
+ selected: this.selected,
24
+ disabled: this.disabled,
25
+ }, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '78549272532f6fa272660fde77c61464dbede36c' }))));
24
26
  }
25
27
  };
26
28
  TdsFolderTab.style = TdsFolderTabStyle0;
@@ -163,9 +163,9 @@ const TdsFolderTabs = class {
163
163
  this.removeEventListenerFromTabs();
164
164
  }
165
165
  render() {
166
- return (h(Host, { key: '3164044436f7029d85c4eed0ff7e0cc2b4e35752', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '59beaa0776ff83a30e84b69c5715a2f0d62ec6d9', class: "wrapper", ref: (el) => {
166
+ return (h(Host, { key: 'ab95c2616920aa0feb451cdc8e05697bfedb12b6', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '5330ac0094013711f2d85befe37e7f02de22d8c9', class: "wrapper", ref: (el) => {
167
167
  this.navWrapperElement = el;
168
- } }, h("button", { key: '0bd461d469592983e08043c23e295c21df04c80f', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'd21448eea9cab4d73087fec72d29270b52bf0999', name: "chevron_left", size: "20px" })), h("slot", { key: 'efe348a98b964486a73d1aac235ce894277c6249', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'ea819f59668994e328410941b5b7455620ecb321', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'c52241bb7c77eabbdb8de5a19bb4400c32aa2062', name: "chevron_right", size: "20px" })))));
168
+ } }, h("button", { key: 'cf1d97ff6db378f1a9d2306dce45ccc24ff00718', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'df3cd8050d37eeb32e957ec22796c551476f003b', name: "chevron_left", size: "20px" })), h("slot", { key: '695ba9188c06a56785b1362e7554cf0bdfa0c635', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'c64fa2e8788ef3ae78dd1c32b6755625abd4a115', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '3d7f40dcc022b37d1d5419ff4b111bf085011698', name: "chevron_right", size: "20px" })))));
169
169
  }
170
170
  get host() { return getElement(this); }
171
171
  static get watchers() { return {
@@ -21,11 +21,11 @@ const TdsFooterGroup = class {
21
21
  }
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: 'b704a9cdc581f94a4680793bccc4da44496fe328' }, this.titleText && this.topPartGroup && (h("div", { key: '630d91ff93d0eeb6c0bc603d9255059bad3b8d33', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: '2a424b0f61fb06b14ae9bb9a611b5264e0854111', onClick: () => {
24
+ return (h(Host, { key: 'ae2797031aeb5ca057aa00b43d927dff915a5f12' }, this.titleText && this.topPartGroup && (h("div", { key: '9ea90a96330835356332d48efdb0e4d8dd7ea645', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: '91b8365113700710108d6207f32968354c660014', onClick: () => {
25
25
  this.open = !this.open;
26
- }, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h("tds-icon", { key: 'ea2d3d26b0c70d6346b71d98753a6e13bf074351', name: "chevron_down", size: "20px" }))), h("div", { key: '400c3cf5f39e59fa60f26cba45df02ad8b5da063', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
26
+ }, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h("tds-icon", { key: '4faa5b64abb3c37659efeaf8a4e9a610ccbce607', name: "chevron_down", size: "20px" }))), h("div", { key: 'b3e3bda445b7b9c244072c2d188a6fe0fcb2e7e0', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
27
27
  ${this.topPartGroup ? 'top-part-child' : ''}
28
- ${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '38241a0f3b5a343f5074b113168ba97465f7c209' }))));
28
+ ${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '99197656b6b371c43da12f1dcf39ef0a0b41fae9' }))));
29
29
  }
30
30
  get host() { return getElement(this); }
31
31
  };
@@ -12,7 +12,7 @@ const TdsFooterItem = class {
12
12
  this.parentIsTopPart = this.host.closest('tds-footer-group').parentElement.slot === 'top';
13
13
  }
14
14
  render() {
15
- return (h("div", { key: '3ec8ab3daa658a8b54735c0b58b6a704da0206b3', role: "listitem", class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: '990ef329bcac600c632e0b7e8eda843e0284c62e' })));
15
+ return (h("div", { key: 'a25461642c0ec629b7c9201a62c0e5c1373e0f68', role: "listitem", class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: '19341c71e073cf8b06a24bef448d2b74486a65b7' })));
16
16
  }
17
17
  get host() { return getElement(this); }
18
18
  };
@@ -15,7 +15,9 @@ const TdsFooter = class {
15
15
  const usesStartSlot = hasSlot('start', this.host);
16
16
  const usesEndSlot = hasSlot('end', this.host);
17
17
  const usesCopyrightSlot = hasSlot('copyright', this.host);
18
- return (h(Host, { key: '454d913eea834fa60400c9714370d14425bc24b6', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '77ee89f78b3df1658a6c9e1f5b73273b447aca6d' }, usesTopSlot && h("slot", { key: '6a3c601f7fcd034d659848c3a568460489f874ca', name: "top" }), h("div", { key: '245560e49f1aa3ac1c0d9234f2b53c6c8be12a32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '2b3220a69f400b8b609fb423f4136b9fb3d1bf96', class: "footer-main-top" }, usesStartSlot && h("slot", { key: '952412fc57aef7abe5a195ac173a14a48a626c95', name: "start" }), usesEndSlot && h("slot", { key: 'a8b8f6d9c625b7da0ecee95e05a1cda4492b964a', name: "end" }))), h("div", { key: 'ca1e76bd613fa3662a5822882fc4ddc0e030c606', class: "footer-main-bottom" }, h("small", { key: '5c5c3803d71c51b8793993240f00912b89377985', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '2ebada35ffde37a7824b100fe34dd947c525741e', class: "brand" }, h("p", { key: 'e6233b2ce0d5f36a54f9069a9feec687388bc795' }, "Scania")))))));
18
+ return (h(Host, { key: '9da56bcf06badf33f3096c4cf980e775090d70d4', class: {
19
+ [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null,
20
+ } }, h("footer", { key: '0bcb1d24d91f26eb8f44fb0faff172c3e140aeff' }, usesTopSlot && h("slot", { key: '4ab849118b1e4822aab9b2779b38569b413595e5', name: "top" }), h("div", { key: 'f84c3c4ac78776da6f127675b24c467dcd7eedca', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: 'a12d5aa87d7b731b16b40d42e78005a7dbd92c07', class: "footer-main-top" }, usesStartSlot && h("slot", { key: '590a118da2562908606173cc562fbf4c1deae6d3', name: "start" }), usesEndSlot && h("slot", { key: 'bd5a1d47df4a4d3089efa7658c62c1c2aed22550', name: "end" }))), h("div", { key: '67254f6335af0686cf12461fe6baf9e4cac20c73', class: "footer-main-bottom" }, h("small", { key: '99735b151f41ed0a376b98d4b6401b7098a1712c', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '59774a132d0af546b2e19ae801fa850ae41bdeeb', class: "brand" }, h("p", { key: '304b381e47c96c93cae26abcf0042c6a0128c7e0' }, "Scania")))))));
19
21
  }
20
22
  get host() { return getElement(this); }
21
23
  };
@@ -8,7 +8,7 @@ const TdsHeaderBrandSymbol = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '9b3b472651a6d410b143316851ca701eab5a82c3' }, h("tds-header-item", { key: '843bc3ce81ae39261a7eb4429ed4d9d76f051cfb' }, h("slot", { key: 'd3a939ac410d229c78532c133e54b868507f7aff' }))));
11
+ return (h(Host, { key: '65232b3c21bfec646f7d3e3cf308135f74674034' }, h("tds-header-item", { key: '83517481088ba021f329834aa2d0f987f3edd9f0' }, h("slot", { key: 'e2bc371fd7f310347b8da5a0bc30a6dfd3dee979' }))));
12
12
  }
13
13
  get host() { return getElement(this); }
14
14
  };
@@ -111,7 +111,7 @@ const TdsTableHeaderCell = class {
111
111
  this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
112
112
  }
113
113
  render() {
114
- return (h(Host, { key: 'c40924cf774a94e3f78d114eb91632fe57388ba2', class: {
114
+ return (h(Host, { key: '967a02c87d37c0eb75219c84c09edbb34b0257df', class: {
115
115
  'tds-table__header-cell': true,
116
116
  'tds-table__header-cell--sortable': this.sortable,
117
117
  'tds-table__header-cell--is-sorted': this.sortedByMyKey,
@@ -10,10 +10,10 @@ const TdsHeaderDropdownListItem = class {
10
10
  this.size = 'md';
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'e884013f09151c5ba323ac69c34c88e8aba9d132' }, h("div", { key: 'e4babaebaac5f661b2ef365a120e9953d6535c73', class: {
13
+ return (h(Host, { key: 'e907df68566401506c20283daeeeabf1ebcaa7c8' }, h("div", { key: '5a784414662a0da44aeada1496801146606852df', class: {
14
14
  'component': true,
15
15
  'component-selected': this.selected,
16
- } }, h("slot", { key: 'b58b6c84093c4edd303ee3ed202703f316cfcaa2' }))));
16
+ } }, h("slot", { key: 'a1027ad30124faea7cadbf48c07d3e5e021426f2' }))));
17
17
  }
18
18
  get host() { return getElement(this); }
19
19
  };
@@ -12,7 +12,7 @@ const TdsHeaderDropdownListLgUser = class {
12
12
  this.subheader = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '120d76ed5000698ced662db148b40a5d888a8d2a', role: "listitem" }, h("div", { key: '3ab963ed3d6dedcd2fab62ddc187f7f2da81221d', class: "user-box" }, this.imgUrl && h("img", { key: 'f542a2fbd18541ff12c05be84299193ce4d7459a', src: this.imgUrl, alt: this.imgAlt }), h("slot", { key: '9aa0949e9f73ba26013aaff907d52ced275f20ce', name: "thumbanil" }), h("div", { key: '4e95bb13416d0a677c8423e67fd30acec004639c', class: "user-content" }, h("div", { key: '6164f3b2be4844cb0f754d265ec99b225a61bce3', class: "header" }, this.header, h("slot", { key: '15842a87e2a0d3d8fb52fa96f11a93f74e3fd263', name: "header" })), h("div", { key: '9b236eaf9ccc12b808dfca4a929b1cfc8d7d2490', class: "subheader" }, this.subheader, h("slot", { key: '8fcb8f4117901a6a5ee53fbe22c307039c598787', name: "subheader" }))))));
15
+ return (h(Host, { key: 'e74d36a9ed0b7ff850d18dad25d2bce4c6f7b097', role: "listitem" }, h("div", { key: 'a4f433ea9996e1fa49951f3d2ba60692456dbeaf', class: "user-box" }, this.imgUrl && h("img", { key: 'c250a2f6742e1d6c9a161a3e792e1e34aae84cdf', src: this.imgUrl, alt: this.imgAlt }), h("slot", { key: '7a3f1f737e6e50288e71401e9a47d066ba19ac42', name: "thumbanil" }), h("div", { key: '2607865f76fd34a9dd3fee48175be7fabb4c8259', class: "user-content" }, h("div", { key: '46faeb8b688ad3b3f5e33739ad43e74ee2e4fccb', class: "header" }, this.header, h("slot", { key: 'f918d94a6194823ebf80f8661074dfc36928be8e', name: "header" })), h("div", { key: '730bc350f801c2cbedc69ff9f4862c8e3dd345db', class: "subheader" }, this.subheader, h("slot", { key: '47d6f4dd6ccd2ad95db1fbc54d32d543c245207a', name: "subheader" }))))));
16
16
  }
17
17
  get host() { return getElement(this); }
18
18
  };