@scania/tegel 1.23.0-value-prop.beta.5 → 1.24.0-dropdown-numer-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 +6 -1
  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 +220 -146
  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 +6 -1
  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 +26 -11
  91. package/dist/collection/components/dropdown/dropdown.js +257 -215
  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-0c3cab16.js → p-2ef329f1.js} +2 -2
  160. package/dist/components/{p-5e1a9abc.js → p-3351035f.js} +1 -1
  161. package/dist/components/{p-0676aa23.js → p-3a7f88ff.js} +3 -3
  162. package/dist/components/{p-09d36119.js → p-4bdaf254.js} +1 -1
  163. package/dist/components/{p-30de8ac4.js → p-707a562e.js} +1 -1
  164. package/dist/components/{p-98a2c82d.js → p-70f3d385.js} +212 -150
  165. package/dist/components/{p-fcec766c.js → p-75437dea.js} +1 -1
  166. package/dist/components/{p-e46088d9.js → p-8f8b0827.js} +1 -1
  167. package/dist/components/{p-cfb1b588.js → p-9d7232d0.js} +2 -2
  168. package/dist/components/{p-e323cd2a.js → p-ad77fb02.js} +1 -1
  169. package/dist/components/{p-dddaa520.js → p-d1ace0be.js} +1 -1
  170. package/dist/components/{p-d921fe75.js → p-eac79032.js} +2 -2
  171. package/dist/components/{p-aea7fa6b.js → p-f0a50868.js} +3 -3
  172. package/dist/components/{p-8a2d7b2f.js → p-f1980746.js} +4 -4
  173. package/dist/components/{p-4030e9bc.js → p-fcf87b68.js} +24 -10
  174. package/dist/components/tds-accordion-item.js +9 -5
  175. package/dist/components/tds-badge.js +6 -1
  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 +6 -1
  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 +220 -146
  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-0286a074.entry.js +1 -0
  330. package/dist/tegel/{p-b4c7099f.entry.js → p-038c22ff.entry.js} +1 -1
  331. package/dist/tegel/{p-57f95a1b.entry.js → p-059a9499.entry.js} +1 -1
  332. package/dist/tegel/{p-9de400f4.entry.js → p-06968bd7.entry.js} +1 -1
  333. package/dist/tegel/{p-ede11de8.entry.js → p-0939b9fb.entry.js} +1 -1
  334. package/dist/tegel/p-0b773208.entry.js +1 -0
  335. package/dist/tegel/{p-7a83cf55.entry.js → p-0cb6c898.entry.js} +1 -1
  336. package/dist/tegel/{p-b9e37cf2.entry.js → p-1703f73a.entry.js} +1 -1
  337. package/dist/tegel/p-170ab61b.entry.js +1 -0
  338. package/dist/tegel/{p-ac46b0a4.entry.js → p-24ff5903.entry.js} +1 -1
  339. package/dist/tegel/{p-9bf7f5cd.entry.js → p-2795009a.entry.js} +1 -1
  340. package/dist/tegel/{p-4ab7461e.entry.js → p-2a38b053.entry.js} +1 -1
  341. package/dist/tegel/{p-6b405a0f.entry.js → p-2a96bd05.entry.js} +1 -1
  342. package/dist/tegel/{p-50fcdc56.entry.js → p-2f32991e.entry.js} +1 -1
  343. package/dist/tegel/p-32b7f431.entry.js +1 -0
  344. package/dist/tegel/p-39373227.entry.js +1 -0
  345. package/dist/tegel/{p-2557b79b.entry.js → p-3a32fe40.entry.js} +1 -1
  346. package/dist/tegel/p-3c22aef7.entry.js +1 -0
  347. package/dist/tegel/{p-bcae4d3a.entry.js → p-3d3ee51f.entry.js} +1 -1
  348. package/dist/tegel/p-3e144a83.entry.js +1 -0
  349. package/dist/tegel/p-3e1b1399.entry.js +1 -0
  350. package/dist/tegel/{p-2e44b4e9.entry.js → p-44c33b20.entry.js} +1 -1
  351. package/dist/tegel/p-48bbc11f.entry.js +1 -0
  352. package/dist/tegel/p-4a282c25.entry.js +1 -0
  353. package/dist/tegel/p-4b231bf9.entry.js +1 -0
  354. package/dist/tegel/{p-1634247e.entry.js → p-4b7c53a6.entry.js} +1 -1
  355. package/dist/tegel/{p-0df92ce7.entry.js → p-4c2f313d.entry.js} +1 -1
  356. package/dist/tegel/{p-ff5cd75f.entry.js → p-54154f09.entry.js} +1 -1
  357. package/dist/tegel/{p-ff7ae8a3.entry.js → p-59293f88.entry.js} +1 -1
  358. package/dist/tegel/p-5eaa23dc.entry.js +1 -0
  359. package/dist/tegel/{p-bb129d43.entry.js → p-5fea857b.entry.js} +1 -1
  360. package/dist/tegel/{p-088bfcd4.entry.js → p-68859ddc.entry.js} +1 -1
  361. package/dist/tegel/p-69b38504.entry.js +1 -0
  362. package/dist/tegel/{p-a5a67770.entry.js → p-6d022f47.entry.js} +1 -1
  363. package/dist/tegel/{p-868435cd.entry.js → p-6eeded00.entry.js} +1 -1
  364. package/dist/tegel/{p-0f38bea7.entry.js → p-708a8bab.entry.js} +1 -1
  365. package/dist/tegel/p-7090a95c.entry.js +1 -0
  366. package/dist/tegel/{p-4e3e2601.entry.js → p-72106a5c.entry.js} +1 -1
  367. package/dist/tegel/{p-ed02ad2b.entry.js → p-7929d22f.entry.js} +1 -1
  368. package/dist/tegel/p-85a9032e.entry.js +1 -0
  369. package/dist/tegel/{p-f9325536.entry.js → p-86b30f71.entry.js} +1 -1
  370. package/dist/tegel/p-88204e0a.entry.js +1 -0
  371. package/dist/tegel/{p-6a52ed63.entry.js → p-9016758e.entry.js} +1 -1
  372. package/dist/tegel/p-92f81cda.entry.js +1 -0
  373. package/dist/tegel/p-93930c03.entry.js +1 -0
  374. package/dist/tegel/{p-aed1c5cf.entry.js → p-96bdf035.entry.js} +1 -1
  375. package/dist/tegel/{p-7097a39a.entry.js → p-99da056d.entry.js} +1 -1
  376. package/dist/tegel/p-9c3f2c12.entry.js +1 -0
  377. package/dist/tegel/{p-9c2dfecc.entry.js → p-9eaaa2c0.entry.js} +1 -1
  378. package/dist/tegel/p-a38dda58.entry.js +1 -0
  379. package/dist/tegel/{p-de540cc0.entry.js → p-a392e6e7.entry.js} +1 -1
  380. package/dist/tegel/p-a86fe122.entry.js +1 -0
  381. package/dist/tegel/{p-220affa9.entry.js → p-b19ce79c.entry.js} +1 -1
  382. package/dist/tegel/{p-987084a5.entry.js → p-b2018a5b.entry.js} +1 -1
  383. package/dist/tegel/{p-c790ef93.entry.js → p-b425b2f4.entry.js} +1 -1
  384. package/dist/tegel/p-b647d20e.entry.js +1 -0
  385. package/dist/tegel/{p-c18b2746.entry.js → p-b96cd80d.entry.js} +1 -1
  386. package/dist/tegel/{p-f1c172a4.entry.js → p-b9b63210.entry.js} +1 -1
  387. package/dist/tegel/p-be88c5ab.entry.js +1 -0
  388. package/dist/tegel/{p-91dcddd5.entry.js → p-c289dfb9.entry.js} +1 -1
  389. package/dist/tegel/p-cc2730d8.entry.js +1 -0
  390. package/dist/tegel/p-d1112915.entry.js +1 -0
  391. package/dist/tegel/{p-e65dba91.entry.js → p-d7f48112.entry.js} +1 -1
  392. package/dist/tegel/p-d926d075.entry.js +1 -0
  393. package/dist/tegel/{p-26ae4a93.entry.js → p-ddd33cce.entry.js} +1 -1
  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/checkbox/checkbox.d.ts +1 -1
  407. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +6 -2
  408. package/dist/types/components/dropdown/dropdown.d.ts +39 -27
  409. package/dist/types/components.d.ts +25 -27
  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-2dd309cb.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
@@ -56,11 +56,11 @@ const TdsCheckbox = class {
56
56
  }
57
57
  }
58
58
  render() {
59
- return (h("div", { key: '068b73081ab2b1b24d58fd2afd70f2b0e4308745', class: "tds-checkbox" }, h("input", { key: '97bd225b10dea56b8166ce3d5c2e4569a7dc76f9',
59
+ return (h("div", { key: '1d0a8257cd1710277e076b4a277dff2c0c89b3d8', class: "tds-checkbox" }, h("input", { key: '689144e40c0be61db6b82aa6eaeb7ff3d09d7d72',
60
60
  // eslint-disable-next-line no-return-assign
61
61
  ref: (inputElement) => (this.inputElement = inputElement), indeterminate: this.indeterminate, "aria-checked": this.checked, "aria-required": this.required, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), required: this.required, type: "checkbox", name: this.name, value: this.value, id: this.checkboxId, checked: this.checked, disabled: this.disabled, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), onChange: () => {
62
62
  this.handleChange();
63
- } }), h("label", { key: '9cfe0411c9b26d12229de7fdb9421b333da0199c', htmlFor: this.checkboxId }, h("slot", { key: '17d2e45ddf05aa409926f3df82caab7a4f110b72', name: "label" }))));
63
+ } }), h("label", { key: '534eed7aa114861c528be0b776879484a35348bf', htmlFor: this.checkboxId }, h("slot", { key: 'db59bcc78f7f2be94037651b880a5ef149b90747', name: "label" }))));
64
64
  }
65
65
  get host() { return getElement(this); }
66
66
  static get watchers() { return {
@@ -79,7 +79,7 @@ const TdsChip = class {
79
79
  'suffix': hasSuffixSlot,
80
80
  'disabled': this.disabled,
81
81
  };
82
- return (h(Host, { key: 'de7555f8a452acf90f19908db73000ff2f917378' }, h("div", { key: '148eb930c309f1a6f53f8462a37ed6ee680d6703', class: "component" }, h("div", { key: '8020dd1198564e794fec8ec7dbd9dd7b3a9f188f', class: chipClasses }, h("input", Object.assign({ key: 'fe4a9718565e7dfc85700a026e7263adbc8258fb', type: this.type, id: this.chipId }, inputAttributes)), h("label", { key: 'af5687821c68ccada0d62290fd7f652392bb3fd1', onClick: (event) => event.stopPropagation(), htmlFor: this.chipId }, hasPrefixSlot && h("slot", { key: '55b7bc3855b45a3a2aee08f00bb8223564300ec1', name: "prefix" }), hasLabelSlot && h("slot", { key: '20c2024a51109edeb65503c10d8691449f806a6c', name: "label" }), hasSuffixSlot && h("slot", { key: '3a193b078226bef9f8b8ac45d74b9e82b51dcc52', name: "suffix" }))))));
82
+ return (h(Host, { key: 'f92aed7b75c11da93b841554edf2f07f5c1cccb3' }, h("div", { key: '1999e94f8206769fd8d751abbcfb9a7c40bd8810', class: "component" }, h("div", { key: '1e6a977c4bcd584ba519f1ee0ccd73e467c3abc5', class: chipClasses }, h("input", Object.assign({ key: '454afc046e22139b5e8121edfafa1345676d51bb', type: this.type, id: this.chipId }, inputAttributes)), h("label", { key: '8682130ad1d20966ba072d1a81fe50f683c39143', onClick: (event) => event.stopPropagation(), htmlFor: this.chipId }, hasPrefixSlot && h("slot", { key: 'e0717c5608b870a813b3c0b86c2ce05d821bc7b2', name: "prefix" }), hasLabelSlot && h("slot", { key: 'e0e81a0e95cedbef3d7bc0f695f82a22356b6bee', name: "label" }), hasSuffixSlot && h("slot", { key: '70b48ca42bed4646fe1ce4f8699833aea3d48094', name: "suffix" }))))));
83
83
  }
84
84
  get host() { return getElement(this); }
85
85
  };
@@ -9,7 +9,7 @@ const TdsCoreHeaderItem = class {
9
9
  registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'ef3825bce10e5d23e01b4be557014a5c90b8e7de' }, h("div", { key: '134696c5345b16dc15dc1940d7d42066597b3a4e', class: "item" }, h("slot", { key: '9e8fbe10a25cb6005d2ff03ce00adc5c6cdad495' }))));
12
+ return (h(Host, { key: 'a97f1ad7ef0398e2414f62374e69a738f8af8e18' }, h("div", { key: '3fd840c4cd4a7bd5bf27c3039c246f2faa085d51', class: "item" }, h("slot", { key: '5d521057588befd7509318ba5f053c6204e7344b' }))));
13
13
  }
14
14
  };
15
15
  TdsCoreHeaderItem.style = TdsCoreHeaderItemStyle0;
@@ -52,10 +52,10 @@ const TdsHeaderItem = class {
52
52
  this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
53
53
  }
54
54
  render() {
55
- return (h(Host, { key: 'd5f256a30d131817e23f428b87a3604e2a299ad6' }, h("tds-core-header-item", { key: 'd2dc6486839af96bbd10938bf9e03ff50123da4f', class: {
55
+ return (h(Host, { key: '7317ab5668685390e2671908dd41855715267b1c' }, h("tds-core-header-item", { key: 'befc861a437912245c22413bbf774617fa84b289', class: {
56
56
  'component-active': this.active,
57
57
  'component-selected': this.selected,
58
- } }, h("slot", { key: 'a89a44221fe947e4075e6889ed3e3cf8478f6e96' }))));
58
+ } }, h("slot", { key: 'f4405b3881dc0d6e4b86f96aa90d0b045c7bf2d8' }))));
59
59
  }
60
60
  get host() { return getElement(this); }
61
61
  };
@@ -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
- if (this.defaultValue) {
72
+ if (this.internalDefaultValue) {
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
- ? new Set(this.defaultValue.split(','))
76
- : [this.defaultValue];
77
- const normalizedValues = Array.from(defaultValues);
78
- this.updateDropdownState(normalizedValues);
79
+ ? new Set(this.internalDefaultValue.split(','))
80
+ : [this.internalDefaultValue];
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.internalDefaultValue}"`);
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,108 @@ 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
- }
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
- }
240
+ this.internalDefaultValue = undefined;
227
241
  }
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));
242
+ /** Method that resets the Dropdown, marks all children as non-selected and resets the value to null. */
243
+ async reset() {
244
+ this.dropdownList.scrollTop = 0;
245
+ this.internalReset();
246
+ this.handleChange();
241
247
  }
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();
248
+ /** Method that forces focus on the input element. */
249
+ async focusElement() {
250
+ this.focusInputElement();
251
+ this.handleFocus({});
255
252
  }
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`);
253
+ /** Method for setting the value of the Dropdown.
254
+ *
255
+ * Single selection example:
256
+ *
257
+ * <code>
258
+ * dropdown.setValue('option-1', 'Option 1');
259
+ * </code>
260
+ *
261
+ * Multiselect example:
262
+ *
263
+ * <code>
264
+ * dropdown.setValue(['option-1', 'option-2']);
265
+ * </code>
266
+ */
267
+ // The label is optional here ONLY to not break the API. Should be removed for 2.0.
268
+ // @ts-ignore
269
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
270
+ async setValue(value, label) {
271
+ let nextValue;
272
+ if (typeof value === 'string')
273
+ nextValue = [value];
274
+ else
275
+ nextValue = value;
276
+ if (!this.multiselect && nextValue.length > 1) {
277
+ console.warn('Tried to select multiple items, but multiselect is not enabled.');
278
+ nextValue = [nextValue[0]];
279
+ }
280
+ nextValue = [...new Set(nextValue)];
281
+ this.internalReset();
282
+ for (let i = 0; i < nextValue.length; i++) {
283
+ const optionExist = this.getChildren().some((element) => element.value === nextValue[i]);
284
+ if (!optionExist) {
285
+ nextValue.splice(i, 1);
262
286
  }
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
287
  }
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) => ({
288
+ this.value = nextValue;
289
+ this.setValueAttribute();
290
+ this.selectChildrenAsSelectedBasedOnSelectionProp();
291
+ this.handleChange();
292
+ /* 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. */
293
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
294
+ const selection = this.getSelectedChildren().map((element) => ({
291
295
  value: element.value,
292
296
  label: element.textContent.trim(),
293
297
  }));
298
+ // Update inputElement value and placeholder text
299
+ if (this.filter) {
300
+ this.inputElement.value = this.getValue();
301
+ }
302
+ return selection;
294
303
  }
295
- async reset() {
296
- this.updateDropdownState([]);
304
+ /**
305
+ * @internal
306
+ */
307
+ async appendValue(value) {
308
+ if (this.multiselect && this.value) {
309
+ this.setValue([...this.value, value]);
310
+ }
311
+ else {
312
+ this.setValue(value);
313
+ }
297
314
  }
315
+ /** Method for removing a selected value in the Dropdown. */
298
316
  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({});
317
+ var _a, _b;
318
+ let label;
319
+ if (this.multiselect) {
320
+ (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
321
+ var _a;
322
+ if (element.value === oldValue) {
323
+ this.value = (_a = this.value) === null || _a === void 0 ? void 0 : _a.filter((value) => value !== element.value);
324
+ label = element.textContent.trim();
325
+ element.setSelected(false);
326
+ }
327
+ return element;
328
+ });
329
+ }
330
+ else {
331
+ this.reset();
332
+ }
333
+ this.handleChange();
334
+ this.setValueAttribute();
335
+ /* 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. */
336
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
337
+ return (_b = this.value) === null || _b === void 0 ? void 0 : _b.map((value) => ({ value, label }));
306
338
  }
307
339
  /** Method for closing the Dropdown. */
308
340
  async close() {
@@ -351,15 +383,21 @@ const TdsDropdown = class {
351
383
  handleOpenState() {
352
384
  if (this.filter && this.multiselect) {
353
385
  if (!this.open) {
354
- this.inputElement.value = this.selectedOptions.length ? this.getValue() : '';
386
+ this.inputElement.value = this.getValue();
355
387
  }
356
388
  }
357
389
  }
390
+ handleDefaultValueChange(newValue) {
391
+ if (newValue !== undefined && newValue !== null) {
392
+ this.internalDefaultValue = newValue.toString();
393
+ this.setDefaultOption();
394
+ }
395
+ }
358
396
  componentWillLoad() {
359
- if (this.defaultValue && !this.value) {
360
- const initialValue = this.multiselect ? this.defaultValue.split(',') : [this.defaultValue];
361
- this.updateDropdownState(initialValue);
397
+ if (this.defaultValue !== undefined && this.defaultValue !== null) {
398
+ this.internalDefaultValue = this.defaultValue.toString();
362
399
  }
400
+ this.setDefaultOption();
363
401
  }
364
402
  /** Method to handle slot changes */
365
403
  handleSlotChange() {
@@ -369,13 +407,29 @@ const TdsDropdown = class {
369
407
  normalizeString(text) {
370
408
  return this.normalizeText ? text.normalize('NFD').replace(/\p{Diacritic}/gu, '') : text;
371
409
  }
372
- async appendValue(value) {
373
- if (this.multiselect) {
374
- this.updateDropdownState([...this.selectedOptions, value]);
375
- }
376
- else {
377
- this.updateDropdownState([value]);
378
- }
410
+ /** Method that resets the dropdown without emitting an event. */
411
+ internalReset() {
412
+ this.getChildren().forEach((element) => {
413
+ element.setSelected(false);
414
+ return element;
415
+ });
416
+ this.value = null;
417
+ this.setValueAttribute();
418
+ }
419
+ selectChildrenAsSelectedBasedOnSelectionProp() {
420
+ this.getChildren().forEach((element) => {
421
+ this.value.forEach((selection) => {
422
+ if (element.value !== selection) {
423
+ // If not multiselect, we need to unselect all other options.
424
+ if (!this.multiselect) {
425
+ element.setSelected(false);
426
+ }
427
+ }
428
+ else {
429
+ element.setSelected(true);
430
+ }
431
+ });
432
+ });
379
433
  }
380
434
  componentDidRender() {
381
435
  const form = this.host.closest('form');
@@ -390,8 +444,9 @@ const TdsDropdown = class {
390
444
  }
391
445
  }
392
446
  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: {
447
+ var _a, _b, _c, _d;
448
+ appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
449
+ return (h(Host, { key: '59198c21800c375dde1f2429ec9ab83caea26a15', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '51ec664e6d72a7dfaaaf4c3420d0ec726d9c165a', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'cfb1b64bc1ec3c09edc7a4157be01159a56a737a', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
395
450
  filter: true,
396
451
  focus: this.filterFocus,
397
452
  disabled: this.disabled,
@@ -399,7 +454,7 @@ const TdsDropdown = class {
399
454
  } }, 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
455
  label-inside-as-placeholder
401
456
  ${this.size}
402
- ${this.selectedOptions.length ? 'selected' : ''}
457
+ ${((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) ? 'selected' : ''}
403
458
  ` }, this.label)), h("input", {
404
459
  // eslint-disable-next-line no-return-assign
405
460
  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 +463,15 @@ const TdsDropdown = class {
408
463
  this.inputElement.value = this.getValue();
409
464
  }
410
465
  this.handleBlur(event);
411
- }, onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => {
466
+ }, onFocus: (event) => {
467
+ this.open = true;
468
+ this.filterFocus = true;
469
+ if (this.multiselect) {
470
+ this.inputElement.value = '';
471
+ }
472
+ this.handleFocus(event);
473
+ this.handleFilter({ target: { value: '' } });
474
+ }, onKeyDown: (event) => {
412
475
  if (event.key === 'Escape') {
413
476
  this.open = false;
414
477
  }
@@ -426,14 +489,14 @@ const TdsDropdown = class {
426
489
  this.open = false;
427
490
  }
428
491
  }, class: `
429
- ${this.selectedOptions.length ? 'value' : 'placeholder'}
492
+ ${this.value ? 'value' : 'placeholder'}
430
493
  ${this.open ? 'open' : 'closed'}
431
494
  ${this.error ? 'error' : ''}
432
495
  `, 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
496
  label-inside-as-placeholder
434
497
  ${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: {
498
+ ${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
499
+ ` }, 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: 'a585073f41bf1cbf6855050fd45506892ac84e7a', ref: (element) => (this.dropdownList = element), class: {
437
500
  'dropdown-list': true,
438
501
  [this.size]: true,
439
502
  [this.getOpenDirection()]: true,
@@ -442,12 +505,12 @@ const TdsDropdown = class {
442
505
  'closed': !this.open,
443
506
  [`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
444
507
  [`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))));
508
+ } }, h("slot", { key: '7047e1daff3ac9a7b5d85bd94885ac108eae2b68', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'c21388cbde54350252c0e6edcb6c16808cfc7a55', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '2ddf6a329c52025a50a0e6519af68b6f67c8d08b', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: '3527c56932fab328ee1d06d403e7931e19fe8b8a', name: "error", size: "16px" }), this.helper))));
446
509
  }
447
510
  get host() { return getElement(this); }
448
511
  static get watchers() { return {
449
- "value": ["handleValueChange"],
450
- "open": ["handleOpenState"]
512
+ "open": ["handleOpenState"],
513
+ "defaultValue": ["handleDefaultValueChange"]
451
514
  }; }
452
515
  };
453
516
  TdsDropdown.style = TdsDropdownStyle0;
@@ -473,10 +536,10 @@ const TdsDropdownOption = class {
473
536
  this.handleSingleSelect = () => {
474
537
  if (!this.disabled) {
475
538
  this.selected = true;
476
- this.parentElement.appendValue(this.value);
539
+ this.parentElement.appendValue(this.internalValue);
477
540
  this.parentElement.close();
478
541
  this.tdsSelect.emit({
479
- value: this.value,
542
+ value: this.internalValue,
480
543
  selected: this.selected,
481
544
  });
482
545
  }
@@ -484,18 +547,18 @@ const TdsDropdownOption = class {
484
547
  this.handleMultiselect = (event) => {
485
548
  if (!this.disabled) {
486
549
  if (event.detail.checked) {
487
- this.parentElement.appendValue(this.value);
550
+ this.parentElement.appendValue(this.internalValue);
488
551
  this.selected = true;
489
552
  this.tdsSelect.emit({
490
- value: this.value,
553
+ value: this.internalValue,
491
554
  selected: this.selected,
492
555
  });
493
556
  }
494
557
  else {
495
- this.parentElement.removeValue(this.value);
558
+ this.parentElement.removeValue(this.internalValue);
496
559
  this.selected = false;
497
560
  this.tdsSelect.emit({
498
- value: this.value,
561
+ value: this.internalValue,
499
562
  selected: this.selected,
500
563
  });
501
564
  }
@@ -509,6 +572,7 @@ const TdsDropdownOption = class {
509
572
  this.tdsBlur.emit(event);
510
573
  };
511
574
  this.value = undefined;
575
+ this.internalValue = undefined;
512
576
  this.disabled = false;
513
577
  this.selected = false;
514
578
  this.multiselect = undefined;
@@ -518,8 +582,15 @@ const TdsDropdownOption = class {
518
582
  async setSelected(selected) {
519
583
  this.selected = selected;
520
584
  }
585
+ valueWatcher(newValue) {
586
+ this.internalValue = String(newValue);
587
+ }
588
+ componentWillLoad() {
589
+ // Initialize the internal value
590
+ this.internalValue = String(this.value);
591
+ }
521
592
  render() {
522
- return (h(Host, { key: '1cb00a19c5dbcc47e1b2bc97d1d5ccc8ac5a532a', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: '5deaf44c7306f4b1856200bf0a5640e99fcb449d', class: `dropdown-option
593
+ return (h(Host, { key: '0c7e35e61a103af25df0a54d4dfd4b6811760de4', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: 'd256dd44efcfba4d13526d3b9f9fc74177e77e75', class: `dropdown-option
523
594
  ${this.size}
524
595
  ${this.selected ? 'selected' : ''}
525
596
  ${this.disabled ? 'disabled' : ''}
@@ -537,6 +608,9 @@ const TdsDropdownOption = class {
537
608
  }
538
609
  static get delegatesFocus() { return true; }
539
610
  get host() { return getElement(this); }
611
+ static get watchers() { return {
612
+ "value": ["valueWatcher"]
613
+ }; }
540
614
  };
541
615
  TdsDropdownOption.style = TdsDropdownOptionStyle0;
542
616
 
@@ -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;