@scania/tegel 1.40.0-table-pagination-rowsperpage-reset-bug-beta.0 → 1.40.0-ts-strict-mode-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 (353) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-accordion.cjs.entry.js +2 -2
  3. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-body-cell.cjs.entry.js +4 -3
  5. package/dist/cjs/tds-button_2.cjs.entry.js +7 -5
  6. package/dist/cjs/tds-card.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-checkbox.cjs.entry.js +6 -3
  8. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +9 -5
  9. package/dist/cjs/tds-datetime.cjs.entry.js +8 -5
  10. package/dist/cjs/tds-dropdown_2.cjs.entry.js +49 -31
  11. package/dist/cjs/tds-folder-tabs.cjs.entry.js +10 -3
  12. package/dist/cjs/tds-footer-group.cjs.entry.js +7 -6
  13. package/dist/cjs/tds-footer-item.cjs.entry.js +7 -3
  14. package/dist/cjs/tds-footer.cjs.entry.js +2 -2
  15. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
  16. package/dist/cjs/tds-header-cell.cjs.entry.js +10 -5
  17. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +5 -3
  18. package/dist/cjs/tds-header-dropdown.cjs.entry.js +7 -5
  19. package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -4
  20. package/dist/cjs/tds-header.cjs.entry.js +8 -6
  21. package/dist/cjs/tds-icon.cjs.entry.js +1 -2
  22. package/dist/cjs/tds-inline-tabs.cjs.entry.js +10 -3
  23. package/dist/cjs/tds-message.cjs.entry.js +2 -2
  24. package/dist/cjs/tds-modal.cjs.entry.js +5 -4
  25. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +12 -5
  26. package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
  27. package/dist/cjs/tds-popover-core.cjs.entry.js +10 -8
  28. package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
  29. package/dist/cjs/tds-radio-button.cjs.entry.js +4 -1
  30. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +5 -4
  31. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +13 -9
  32. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
  33. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -4
  34. package/dist/cjs/tds-side-menu-item.cjs.entry.js +15 -9
  35. package/dist/cjs/tds-side-menu.cjs.entry.js +12 -9
  36. package/dist/cjs/tds-slider.cjs.entry.js +26 -16
  37. package/dist/cjs/tds-step.cjs.entry.js +3 -1
  38. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +17 -10
  40. package/dist/cjs/tds-table-body-row.cjs.entry.js +8 -5
  41. package/dist/cjs/tds-table-body.cjs.entry.js +9 -5
  42. package/dist/cjs/tds-table-footer.cjs.entry.js +17 -26
  43. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-table-header.cjs.entry.js +24 -18
  45. package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -4
  46. package/dist/cjs/tds-table.cjs.entry.js +14 -12
  47. package/dist/cjs/tds-text-field.cjs.entry.js +7 -6
  48. package/dist/cjs/tds-textarea.cjs.entry.js +5 -4
  49. package/dist/cjs/tds-toggle.cjs.entry.js +5 -4
  50. package/dist/cjs/tds-tooltip.cjs.entry.js +6 -10
  51. package/dist/cjs/tegel.cjs.js +1 -1
  52. package/dist/collection/components/accordion/accordion.js +4 -4
  53. package/dist/collection/components/block/block.js +3 -3
  54. package/dist/collection/components/button/button.js +9 -7
  55. package/dist/collection/components/card/card.js +4 -4
  56. package/dist/collection/components/checkbox/checkbox.js +7 -4
  57. package/dist/collection/components/chip/chip.js +1 -1
  58. package/dist/collection/components/datetime/datetime.js +10 -7
  59. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +9 -6
  60. package/dist/collection/components/dropdown/dropdown.js +44 -31
  61. package/dist/collection/components/footer/footer-group/footer-group.css +1 -4
  62. package/dist/collection/components/footer/footer-group/footer-group.js +6 -5
  63. package/dist/collection/components/footer/footer-item/footer-item.css +3 -3
  64. package/dist/collection/components/footer/footer-item/footer-item.js +6 -2
  65. package/dist/collection/components/footer/footer.js +4 -4
  66. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
  67. package/dist/collection/components/header/header-dropdown/header-dropdown.js +7 -5
  68. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
  69. package/dist/collection/components/header/header-item/header-item.js +9 -5
  70. package/dist/collection/components/header/header-launcher/header-launcher.js +8 -4
  71. package/dist/collection/components/header/header.js +8 -6
  72. package/dist/collection/components/icon/icon.js +3 -4
  73. package/dist/collection/components/message/message.js +4 -4
  74. package/dist/collection/components/modal/modal.js +8 -7
  75. package/dist/collection/components/popover-canvas/popover-canvas.js +9 -9
  76. package/dist/collection/components/popover-core/popover-core.js +20 -23
  77. package/dist/collection/components/popover-menu/popover-menu.js +9 -9
  78. package/dist/collection/components/radio-button/radio-button.js +4 -1
  79. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +5 -4
  80. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -4
  81. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
  82. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +13 -9
  83. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +15 -9
  84. package/dist/collection/components/side-menu/side-menu.js +12 -9
  85. package/dist/collection/components/slider/slider.js +26 -16
  86. package/dist/collection/components/stepper/step/step.js +3 -1
  87. package/dist/collection/components/table/table/table.js +36 -18
  88. package/dist/collection/components/table/table-body/table-body.js +9 -5
  89. package/dist/collection/components/table/table-body-cell/table-body-cell.js +7 -6
  90. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
  91. package/dist/collection/components/table/table-body-row/table-body-row.js +13 -10
  92. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +23 -16
  93. package/dist/collection/components/table/table-footer/table-footer.js +22 -34
  94. package/dist/collection/components/table/table-header/table-header.js +27 -21
  95. package/dist/collection/components/table/table-header-cell/table-header-cell.js +22 -17
  96. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  97. package/dist/collection/components/table/table-toolbar/table-toolbar.js +8 -6
  98. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +12 -5
  99. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +10 -3
  100. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +12 -5
  101. package/dist/collection/components/text-field/text-field.js +9 -8
  102. package/dist/collection/components/textarea/textarea.js +7 -6
  103. package/dist/collection/components/toggle/toggle.js +5 -4
  104. package/dist/collection/components/tooltip/tooltip.js +9 -13
  105. package/dist/collection/utils/appendHiddenInput.js +6 -4
  106. package/dist/components/{p-d10d21bd.js → p-0d286c19.js} +2 -2
  107. package/dist/components/{p-63552d0e.js → p-415fafb3.js} +5 -5
  108. package/dist/components/{p-3308d5fa.js → p-6fd2b339.js} +10 -8
  109. package/dist/components/{p-c62b61fe.js → p-799470b1.js} +7 -5
  110. package/dist/components/{p-2a2d66fe.js → p-7e02ea3e.js} +41 -26
  111. package/dist/components/{p-6ef207b2.js → p-98d082f9.js} +11 -8
  112. package/dist/components/{p-3a7e4d0d.js → p-a64cbc40.js} +10 -9
  113. package/dist/components/{p-04a014cf.js → p-ad376f70.js} +7 -11
  114. package/dist/components/{p-9336db16.js → p-da11a695.js} +5 -3
  115. package/dist/components/{p-1dafdc8c.js → p-e0ccf8e6.js} +15 -9
  116. package/dist/components/{p-44f5b5e1.js → p-e627f11b.js} +6 -3
  117. package/dist/components/{p-7c3348eb.js → p-ead6727f.js} +9 -5
  118. package/dist/components/{p-f7d94947.js → p-edc838a0.js} +1 -2
  119. package/dist/components/tds-accordion-item.js +1 -1
  120. package/dist/components/tds-accordion.js +2 -2
  121. package/dist/components/tds-banner.js +1 -1
  122. package/dist/components/tds-block.js +1 -1
  123. package/dist/components/tds-body-cell.js +5 -4
  124. package/dist/components/tds-button.js +1 -1
  125. package/dist/components/tds-card.js +4 -4
  126. package/dist/components/tds-checkbox.js +1 -1
  127. package/dist/components/tds-datetime.js +9 -6
  128. package/dist/components/tds-dropdown-option.js +1 -1
  129. package/dist/components/tds-dropdown.js +1 -1
  130. package/dist/components/tds-folder-tabs.js +11 -4
  131. package/dist/components/tds-footer-group.js +8 -7
  132. package/dist/components/tds-footer-item.js +7 -3
  133. package/dist/components/tds-footer.js +2 -2
  134. package/dist/components/tds-header-brand-symbol.js +3 -3
  135. package/dist/components/tds-header-cell.js +11 -6
  136. package/dist/components/tds-header-dropdown-list.js +1 -1
  137. package/dist/components/tds-header-dropdown.js +11 -9
  138. package/dist/components/tds-header-hamburger.js +2 -2
  139. package/dist/components/tds-header-item.js +1 -1
  140. package/dist/components/tds-header-launcher-button.js +1 -1
  141. package/dist/components/tds-header-launcher-list.js +1 -1
  142. package/dist/components/tds-header-launcher.js +13 -9
  143. package/dist/components/tds-header.js +8 -6
  144. package/dist/components/tds-icon.js +1 -1
  145. package/dist/components/tds-inline-tabs.js +11 -4
  146. package/dist/components/tds-message.js +3 -3
  147. package/dist/components/tds-modal.js +6 -5
  148. package/dist/components/tds-navigation-tabs.js +13 -6
  149. package/dist/components/tds-popover-canvas.js +1 -1
  150. package/dist/components/tds-popover-core.js +1 -1
  151. package/dist/components/tds-popover-menu.js +5 -5
  152. package/dist/components/tds-radio-button.js +4 -1
  153. package/dist/components/tds-side-menu-close-button.js +1 -1
  154. package/dist/components/tds-side-menu-collapse-button.js +6 -5
  155. package/dist/components/tds-side-menu-dropdown-list-item.js +13 -9
  156. package/dist/components/tds-side-menu-dropdown-list.js +3 -3
  157. package/dist/components/tds-side-menu-dropdown.js +7 -6
  158. package/dist/components/tds-side-menu-item.js +1 -1
  159. package/dist/components/tds-side-menu.js +12 -9
  160. package/dist/components/tds-slider.js +30 -20
  161. package/dist/components/tds-step.js +4 -2
  162. package/dist/components/tds-table-body-input-wrapper.js +2 -2
  163. package/dist/components/tds-table-body-row-expandable.js +17 -10
  164. package/dist/components/tds-table-body-row.js +9 -6
  165. package/dist/components/tds-table-body.js +9 -5
  166. package/dist/components/tds-table-footer.js +22 -33
  167. package/dist/components/tds-table-header-input-wrapper.js +2 -2
  168. package/dist/components/tds-table-header.js +25 -19
  169. package/dist/components/tds-table-toolbar.js +7 -5
  170. package/dist/components/tds-table.js +14 -12
  171. package/dist/components/tds-text-field.js +1 -1
  172. package/dist/components/tds-textarea.js +8 -7
  173. package/dist/components/tds-toast.js +1 -1
  174. package/dist/components/tds-toggle.js +5 -4
  175. package/dist/components/tds-tooltip.js +1 -1
  176. package/dist/esm/loader.js +1 -1
  177. package/dist/esm/tds-accordion.entry.js +2 -2
  178. package/dist/esm/tds-block.entry.js +1 -1
  179. package/dist/esm/tds-body-cell.entry.js +4 -3
  180. package/dist/esm/tds-button_2.entry.js +7 -5
  181. package/dist/esm/tds-card.entry.js +2 -2
  182. package/dist/esm/tds-checkbox.entry.js +6 -3
  183. package/dist/esm/tds-core-header-item_2.entry.js +9 -5
  184. package/dist/esm/tds-datetime.entry.js +8 -5
  185. package/dist/esm/tds-dropdown_2.entry.js +49 -31
  186. package/dist/esm/tds-folder-tabs.entry.js +10 -3
  187. package/dist/esm/tds-footer-group.entry.js +7 -6
  188. package/dist/esm/tds-footer-item.entry.js +7 -3
  189. package/dist/esm/tds-footer.entry.js +2 -2
  190. package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
  191. package/dist/esm/tds-header-cell.entry.js +10 -5
  192. package/dist/esm/tds-header-dropdown-list.entry.js +5 -3
  193. package/dist/esm/tds-header-dropdown.entry.js +7 -5
  194. package/dist/esm/tds-header-launcher.entry.js +8 -4
  195. package/dist/esm/tds-header.entry.js +8 -6
  196. package/dist/esm/tds-icon.entry.js +1 -2
  197. package/dist/esm/tds-inline-tabs.entry.js +10 -3
  198. package/dist/esm/tds-message.entry.js +2 -2
  199. package/dist/esm/tds-modal.entry.js +5 -4
  200. package/dist/esm/tds-navigation-tabs.entry.js +12 -5
  201. package/dist/esm/tds-popover-canvas.entry.js +4 -4
  202. package/dist/esm/tds-popover-core.entry.js +10 -8
  203. package/dist/esm/tds-popover-menu.entry.js +4 -4
  204. package/dist/esm/tds-radio-button.entry.js +4 -1
  205. package/dist/esm/tds-side-menu-collapse-button.entry.js +5 -4
  206. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +13 -9
  207. package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
  208. package/dist/esm/tds-side-menu-dropdown.entry.js +5 -4
  209. package/dist/esm/tds-side-menu-item.entry.js +15 -9
  210. package/dist/esm/tds-side-menu.entry.js +12 -9
  211. package/dist/esm/tds-slider.entry.js +26 -16
  212. package/dist/esm/tds-step.entry.js +3 -1
  213. package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
  214. package/dist/esm/tds-table-body-row-expandable.entry.js +17 -10
  215. package/dist/esm/tds-table-body-row.entry.js +8 -5
  216. package/dist/esm/tds-table-body.entry.js +9 -5
  217. package/dist/esm/tds-table-footer.entry.js +17 -26
  218. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  219. package/dist/esm/tds-table-header.entry.js +24 -18
  220. package/dist/esm/tds-table-toolbar.entry.js +6 -4
  221. package/dist/esm/tds-table.entry.js +14 -12
  222. package/dist/esm/tds-text-field.entry.js +7 -6
  223. package/dist/esm/tds-textarea.entry.js +5 -4
  224. package/dist/esm/tds-toggle.entry.js +5 -4
  225. package/dist/esm/tds-tooltip.entry.js +6 -10
  226. package/dist/esm/tegel.js +1 -1
  227. package/dist/tegel/p-08c16b2f.entry.js +1 -0
  228. package/dist/tegel/p-0b37e91a.entry.js +1 -0
  229. package/dist/tegel/p-1e1a87c1.entry.js +1 -0
  230. package/dist/tegel/p-2268af7f.entry.js +1 -0
  231. package/dist/tegel/p-252a7d3f.entry.js +1 -0
  232. package/dist/tegel/p-25473962.entry.js +1 -0
  233. package/dist/tegel/{p-650b98bf.entry.js → p-27369d6a.entry.js} +1 -1
  234. package/dist/tegel/p-27d39882.entry.js +1 -0
  235. package/dist/tegel/p-3ef04672.entry.js +1 -0
  236. package/dist/tegel/p-40d99d7d.entry.js +1 -0
  237. package/dist/tegel/{p-28f85555.entry.js → p-40fa0f5b.entry.js} +1 -1
  238. package/dist/tegel/p-48a3e489.entry.js +1 -0
  239. package/dist/tegel/p-4e15f31d.entry.js +1 -0
  240. package/dist/tegel/p-57c08d0d.entry.js +1 -0
  241. package/dist/tegel/p-58ac68f3.entry.js +1 -0
  242. package/dist/tegel/p-6a472310.entry.js +1 -0
  243. package/dist/tegel/p-7104b955.entry.js +1 -0
  244. package/dist/tegel/p-781b2939.entry.js +1 -0
  245. package/dist/tegel/p-894e7e11.entry.js +1 -0
  246. package/dist/tegel/p-942f8c6f.entry.js +1 -0
  247. package/dist/tegel/p-98eff725.entry.js +1 -0
  248. package/dist/tegel/p-9b06bd5f.entry.js +1 -0
  249. package/dist/tegel/p-9c56b031.entry.js +1 -0
  250. package/dist/tegel/p-a20a54ef.entry.js +1 -0
  251. package/dist/tegel/p-a2b2092a.entry.js +1 -0
  252. package/dist/tegel/p-a334b517.entry.js +1 -0
  253. package/dist/tegel/p-a4e4c450.entry.js +1 -0
  254. package/dist/tegel/p-a60ed3de.entry.js +1 -0
  255. package/dist/tegel/p-a6dca188.entry.js +1 -0
  256. package/dist/tegel/{p-464469fe.entry.js → p-a912035b.entry.js} +1 -1
  257. package/dist/tegel/p-b218db70.entry.js +1 -0
  258. package/dist/tegel/p-b3b13975.entry.js +1 -0
  259. package/dist/tegel/{p-987f8f0f.entry.js → p-b9afb39e.entry.js} +1 -1
  260. package/dist/tegel/p-bb8c2a36.entry.js +1 -0
  261. package/dist/tegel/p-bee9e9d1.entry.js +1 -0
  262. package/dist/tegel/{p-f31f56fe.entry.js → p-c5694dd6.entry.js} +1 -1
  263. package/dist/tegel/{p-57a28f62.entry.js → p-ca068263.entry.js} +1 -1
  264. package/dist/tegel/p-d501a665.entry.js +1 -0
  265. package/dist/tegel/{p-f2318c88.entry.js → p-da38aa9a.entry.js} +1 -1
  266. package/dist/tegel/p-dda1ac69.entry.js +1 -0
  267. package/dist/tegel/{p-55f9c79a.entry.js → p-e0dc09f9.entry.js} +1 -1
  268. package/dist/tegel/p-e29fa563.entry.js +1 -0
  269. package/dist/tegel/p-ed66ef30.entry.js +1 -0
  270. package/dist/tegel/p-f5ca4fbf.entry.js +1 -0
  271. package/dist/tegel/p-f602b3a1.entry.js +1 -0
  272. package/dist/tegel/p-f922308f.entry.js +1 -0
  273. package/dist/tegel/p-fb300776.entry.js +1 -0
  274. package/dist/tegel/p-fd22d1ca.entry.js +1 -0
  275. package/dist/tegel/{p-c6968db1.entry.js → p-fe4335ca.entry.js} +1 -1
  276. package/dist/tegel/tegel.css +1 -1
  277. package/dist/tegel/tegel.esm.js +1 -1
  278. package/dist/types/components/accordion/accordion.d.ts +1 -1
  279. package/dist/types/components/block/block.d.ts +1 -1
  280. package/dist/types/components/button/button.d.ts +1 -1
  281. package/dist/types/components/card/card.d.ts +1 -1
  282. package/dist/types/components/datetime/datetime.d.ts +2 -2
  283. package/dist/types/components/dropdown/dropdown.d.ts +5 -5
  284. package/dist/types/components/footer/footer.d.ts +1 -1
  285. package/dist/types/components/icon/icon.d.ts +1 -1
  286. package/dist/types/components/message/message.d.ts +1 -1
  287. package/dist/types/components/modal/modal.d.ts +1 -1
  288. package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
  289. package/dist/types/components/popover-core/popover-core.d.ts +4 -4
  290. package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
  291. package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
  292. package/dist/types/components/table/table/table.d.ts +6 -3
  293. package/dist/types/components/table/table-body/table-body.d.ts +3 -3
  294. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +8 -5
  295. package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
  296. package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
  297. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
  298. package/dist/types/components/table/table-footer/table-footer.d.ts +4 -5
  299. package/dist/types/components/table/table-header/table-header.d.ts +5 -5
  300. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
  301. package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
  302. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
  303. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
  304. package/dist/types/components/text-field/text-field.d.ts +1 -1
  305. package/dist/types/components/textarea/textarea.d.ts +2 -2
  306. package/dist/types/components/tooltip/tooltip.d.ts +1 -1
  307. package/dist/types/components.d.ts +81 -81
  308. package/dist/types/types/Attributes.d.ts +1 -1
  309. package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
  310. package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
  311. package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
  312. package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
  313. package/package.json +1 -1
  314. package/dist/tegel/p-08ad6a21.entry.js +0 -1
  315. package/dist/tegel/p-08f63e5d.entry.js +0 -1
  316. package/dist/tegel/p-09cd056c.entry.js +0 -1
  317. package/dist/tegel/p-0c9a51d9.entry.js +0 -1
  318. package/dist/tegel/p-0cfe8671.entry.js +0 -1
  319. package/dist/tegel/p-0e772ad7.entry.js +0 -1
  320. package/dist/tegel/p-17bc1e49.entry.js +0 -1
  321. package/dist/tegel/p-1859156f.entry.js +0 -1
  322. package/dist/tegel/p-1f4267a8.entry.js +0 -1
  323. package/dist/tegel/p-24a76927.entry.js +0 -1
  324. package/dist/tegel/p-3450dd6c.entry.js +0 -1
  325. package/dist/tegel/p-3462a7cc.entry.js +0 -1
  326. package/dist/tegel/p-354d3986.entry.js +0 -1
  327. package/dist/tegel/p-3c97cb45.entry.js +0 -1
  328. package/dist/tegel/p-3e6d65ee.entry.js +0 -1
  329. package/dist/tegel/p-445fa788.entry.js +0 -1
  330. package/dist/tegel/p-51a17707.entry.js +0 -1
  331. package/dist/tegel/p-52689019.entry.js +0 -1
  332. package/dist/tegel/p-6b340718.entry.js +0 -1
  333. package/dist/tegel/p-72006dd7.entry.js +0 -1
  334. package/dist/tegel/p-743d4f07.entry.js +0 -1
  335. package/dist/tegel/p-77cfb0ef.entry.js +0 -1
  336. package/dist/tegel/p-7887bdbb.entry.js +0 -1
  337. package/dist/tegel/p-7b598e60.entry.js +0 -1
  338. package/dist/tegel/p-7ef50e7f.entry.js +0 -1
  339. package/dist/tegel/p-8c2695af.entry.js +0 -1
  340. package/dist/tegel/p-9f187848.entry.js +0 -1
  341. package/dist/tegel/p-9fdc8fa5.entry.js +0 -1
  342. package/dist/tegel/p-a090bd2f.entry.js +0 -1
  343. package/dist/tegel/p-a472f649.entry.js +0 -1
  344. package/dist/tegel/p-a4cbb541.entry.js +0 -1
  345. package/dist/tegel/p-a56436c8.entry.js +0 -1
  346. package/dist/tegel/p-a8abc8d9.entry.js +0 -1
  347. package/dist/tegel/p-b210d23c.entry.js +0 -1
  348. package/dist/tegel/p-c0cbc9f5.entry.js +0 -1
  349. package/dist/tegel/p-cf717912.entry.js +0 -1
  350. package/dist/tegel/p-d1d45942.entry.js +0 -1
  351. package/dist/tegel/p-d7cdbc4e.entry.js +0 -1
  352. package/dist/tegel/p-f3c32d4d.entry.js +0 -1
  353. package/dist/tegel/p-fd15ced7.entry.js +0 -1
@@ -55,7 +55,8 @@ export class TdsTextField {
55
55
  }
56
56
  /** Set the input as focus when clicking the whole Text Field with suffix/prefix */
57
57
  handleFocus(event) {
58
- this.textInput.focus();
58
+ var _a;
59
+ (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
59
60
  this.focusInput = true;
60
61
  this.tdsFocus.emit(event);
61
62
  }
@@ -74,7 +75,7 @@ export class TdsTextField {
74
75
  var _a;
75
76
  const usesPrefixSlot = hasSlot('prefix', this.host);
76
77
  const usesSuffixSlot = hasSlot('suffix', this.host);
77
- return (h("div", { key: '3a072497874b410339fc3368f49b9048fdcc6641', class: {
78
+ return (h("div", { key: 'bcc403b4abba73fb457719e3205070f56d91c2cd', class: {
78
79
  'form-text-field': true,
79
80
  'form-text-field-nomin': this.noMinWidth,
80
81
  'text-field-focus': this.focusInput && !this.disabled,
@@ -92,12 +93,12 @@ export class TdsTextField {
92
93
  'form-text-field-sm': this.size === 'sm',
93
94
  'form-text-field-error': this.state === 'error',
94
95
  'form-text-field-success': this.state === 'success',
95
- } }, this.labelPosition === 'outside' && (h("div", { key: '190b617811d0993b85b3df6951a41678bc51879e', class: "text-field-label-outside" }, h("label", { key: '6e5099cc43259b790d83d3f127e85463e58c9ac2', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'd5064e04015238d38a70b09c9eba4cbbb1da19cb', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '69af0c24b21e3edda262749538cc9775c501e115', class: {
96
+ } }, this.labelPosition === 'outside' && (h("div", { key: '0133120eb1b74bb2244dd122afe1b2df7d54383b', class: "text-field-label-outside" }, h("label", { key: 'd1805d76b9ba9cd36bddbc546dd2081e4c891905', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '227c0581da20afcb1a55c2c3fc7f1458a0daf06f', onClick: () => { var _a; return (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus(); }, class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '913b945ec6d9898c22e3577ada5ce9782af3ec0a', class: {
96
97
  'text-field-slot-wrap-prefix': true,
97
98
  'text-field-error': this.state === 'error',
98
99
  'text-field-success': this.state === 'success',
99
100
  'text-field-default': this.state === 'default',
100
- } }, h("slot", { key: 'f397647f1458b1d132080cb15b92be60e2942459', name: "prefix" }))), h("div", { key: '33674576cce732cc66e7ca830669b7535aea7f00', class: "text-field-input-container" }, h("input", { key: 'a27eca3e8862b099475fd46c2182f86d7d110533', ref: (inputEl) => {
101
+ } }, h("slot", { key: 'ebaa7a7bb48ef059e013fe48f9aa4ca2677d9021', name: "prefix" }))), h("div", { key: 'f7cca070bf5a514b4bc75fbf14438609bdc1fd2f', class: "text-field-input-container" }, h("input", { key: '23ce48510d1b9516d7fffb7fd1b30b7a18bb5a4f', ref: (inputEl) => {
101
102
  this.textInput = inputEl;
102
103
  }, class: {
103
104
  'text-field-input': true,
@@ -112,13 +113,13 @@ export class TdsTextField {
112
113
  if (!this.readOnly) {
113
114
  this.handleBlur(event);
114
115
  }
115
- }, "aria-invalid": getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '7671a287273c976a1ad73032020838d6c4cedab0', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (h("div", { key: '19a93786e8647aa1d2e5b9a9b80c71c250330d8d', class: {
116
+ }, "aria-invalid": getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'ee49db21967cb8eec227464fe6fbcb7e0e0c2531', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (h("div", { key: '7c59f424bb444e58ec36650dadf56457ea58e12a', class: {
116
117
  'text-field-slot-wrap-suffix': true,
117
118
  'text-field-error': this.state === 'error',
118
119
  'text-field-success': this.state === 'success',
119
120
  'text-field-default': this.state === 'default',
120
121
  'tds-u-display-none': this.readOnly,
121
- } }, h("slot", { key: 'dd76e5bb941bc791caa395206be040319e00a708', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '2ba57774f40412b9a337ef7bf47ce65bcf44a704', class: "text-field-icon__readonly" }, h("tds-tooltip", { key: 'bfb0f704470e77f9ce6e11fe3d01af3dd8569015', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '28ded9080cb2abfe6a06b284af3807584f4dda02', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), h("div", { key: '636205c9e69b3a2602ea0b8817a585e5cd4e16b2', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: '4ece49df31864f53d0fadc3709cd06d34da6830a', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: 'ba1e7f916ebbfa6775b46febed47e4bf55af9fd3', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '45eb885352b32dd3483a1c01f4dbaa49fcfda8ba', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: '9934f078456a0af683b0d1f8a997c5484e58868c', class: {
122
+ } }, h("slot", { key: 'b7e43d945a4b6c5769422635bc43ced38c535f14', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: 'f9981c3d95da264abc0a44d399b6d6686038f82d', class: "text-field-icon__readonly" }, h("tds-tooltip", { key: 'a72d52738bd5ad69025acae3b2adbda71f9131c4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: 'cd407a27027ee56bb8cfa24a83871b63c637867a', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), h("div", { key: '61dc2389d69774e47535a3c6a464353bf1db78b3', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: '1ddabddbcd537b04cd9fec9314ff5ea6ddfcd591', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: 'ce671b297fa5f058162270bc931870df89c22daf', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '875cc35361dec4bb2b9ed33ef454e3ae670b0f62', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'ea47b420f3d3ec1c08bb47c5b615e6727cd7a3ed', class: {
122
123
  'text-field-textcounter-divider': true,
123
124
  'text-field-textcounter-disabled': this.disabled,
124
125
  } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
@@ -354,8 +355,8 @@ export class TdsTextField {
354
355
  "type": "string",
355
356
  "mutable": false,
356
357
  "complexType": {
357
- "original": "'primary' | 'secondary'",
358
- "resolved": "\"primary\" | \"secondary\"",
358
+ "original": "'primary' | 'secondary' | null",
359
+ "resolved": "\"primary\" | \"secondary\" | null",
359
360
  "references": {}
360
361
  },
361
362
  "required": false,
@@ -39,7 +39,8 @@ export class TdsTextarea {
39
39
  }
40
40
  /* Set the input as focus when clicking the whole textarea with suffix/prefix */
41
41
  handleFocus(event) {
42
- this.textEl.focus();
42
+ var _a;
43
+ (_a = this.textEl) === null || _a === void 0 ? void 0 : _a.focus();
43
44
  this.focusInput = true;
44
45
  this.tdsFocus.emit(event);
45
46
  }
@@ -61,7 +62,7 @@ export class TdsTextarea {
61
62
  }
62
63
  render() {
63
64
  var _a;
64
- return (h("div", { key: '0e1e8c392e63be0a7e1724f3351e4859eb6501a7', class: {
65
+ return (h("div", { key: 'ab345d2f34e48367b2040556b9b3a6564add939d', class: {
65
66
  'textarea-container': true,
66
67
  'textarea-label-inside': this.labelPosition === 'inside',
67
68
  'textarea-focus': this.focusInput,
@@ -71,7 +72,7 @@ export class TdsTextarea {
71
72
  'textarea-data': this.value !== '',
72
73
  [`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
73
74
  'no-min-width': this.noMinWidth,
74
- } }, this.labelPosition !== 'no-label' && (h("label", { key: '674206c9897b2e6f8ed4742e4bf4b9db5740a302', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '808b87787dbdb3386bdf528051eb7ab991259e30', class: "textarea-wrapper" }, h("textarea", { key: 'bb9871a2b0f4d88ac150fb8b550c2d5001b9cc2d', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
75
+ } }, this.labelPosition !== 'no-label' && (h("label", { key: 'c8290eb384aff2b8a8d7c2495b69167066e76415', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '43cd7476de0402a1aab5eaf2d930678422aaf40e', class: "textarea-wrapper" }, h("textarea", { key: '265bd91d6cb4ca7009d0bc60f3db15c0e6bb47bc', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
75
76
  this.textEl = inputEl;
76
77
  }, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
77
78
  if (!this.readOnly) {
@@ -81,7 +82,7 @@ export class TdsTextarea {
81
82
  if (!this.readOnly) {
82
83
  this.handleBlur(event);
83
84
  }
84
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'f9fc9c3136ec57b6f0becd8602c6353f0c8848dd', class: "textarea-resizer-icon" }, h("svg", { key: '8b7f6fe75e111c7d4de27a1a6d30c430cd136753', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f5857808dfc21333fc8d95c38c0a8e69823a6229', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: 'df897e9b418dc4b7a2fefc152f0f850278695211', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: 'd350ce47947ccd11fea39f06b5ae6e7cdba84ca9', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '327fd5153c188dcc171d6cbed2727716148157b1', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '5625f2580ce1724b5462e00c8024fb7b9c3f3107', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: '2873a82b45675d1e09a07de357386b0ea83ed054', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '0a54c37e440f4740e373943bfd48001e8f8f39e6', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '53f25f455440e8383bd1dabba20cce266fe78074', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
85
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '682632eb45587ee86e48fa7dd42946d97db7da13', class: "textarea-resizer-icon" }, h("svg", { key: '7631ef268be5ec867452ba449f769e45c099d574', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ba27459f776dc0d6a6d0570420e4610ee08d6b9e', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '34f0c79ee333e2e0b0e27dc63d4be1e93b7fc6e4', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '0aa6ad6c681f5abe6ba19a28f80125d002543fc4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '780fe72cff253212d79820c29a701258c55da508', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '657766f8f89e07aaac65daece6fc1162b925986a', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: 'ce5e472fb172d53cb45e9dab4c317fb38dbd05eb', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '919a5471cfad225cefe6c30e88f782cdfc913b2f', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '338ef9cdac06151d4fd092208764e3812c2d4f01', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
85
86
  }
86
87
  static get is() { return "tds-textarea"; }
87
88
  static get encapsulation() { return "scoped"; }
@@ -331,8 +332,8 @@ export class TdsTextarea {
331
332
  "type": "string",
332
333
  "mutable": false,
333
334
  "complexType": {
334
- "original": "'primary' | 'secondary'",
335
- "resolved": "\"primary\" | \"secondary\"",
335
+ "original": "'primary' | 'secondary' | null",
336
+ "resolved": "\"primary\" | \"secondary\" | null",
336
337
  "references": {}
337
338
  },
338
339
  "required": false,
@@ -39,12 +39,13 @@ export class TdsToggle {
39
39
  this.labelSlot = this.host.querySelector("[slot='label']");
40
40
  }
41
41
  render() {
42
- return (h("div", { key: 'c3317c42904e33fd2936aa01ce064f87d33786e3', class: "tds-toggle" }, this.headline && (h("div", { key: '9c2280058b2fbc09e0663dc5e92d4d3dd413cc83', class: {
42
+ return (h("div", { key: 'ee3157ccfc7cc20e4cc0ea94d18ef18206aad346', class: "tds-toggle" }, this.headline && (h("div", { key: 'bb0b6242312d2b93aedca8b30060dced738ad418', class: {
43
43
  'toggle-headline': true,
44
44
  'disabled': this.disabled,
45
- } }, this.headline)), h("input", { key: 'b5e5cfee5c3115c1039e816bbd6f7751cf6a5f6c', ref: (inputEl) => {
46
- this.inputElement = inputEl;
47
- }, "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: '9eedb6f2c2a0494e2b59f392764c27b143dcecee', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '11346fe1d7f4ea0da665b153ae25af9e084a0602', name: "label" })))));
45
+ } }, this.headline)), h("input", { key: 'ff36441c8064df09ee5f09239472250211182725', ref: (inputEl) => {
46
+ if (inputEl)
47
+ this.inputElement = inputEl;
48
+ }, "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: '67a2179e0c1252fb5d4dc9d9e5ade990bec58cbc', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: 'ec8080b6080cffecbc83fb9080c55031a8d0a1e7', name: "label" })))));
48
49
  }
49
50
  static get is() { return "tds-toggle"; }
50
51
  static get encapsulation() { return "scoped"; }
@@ -29,7 +29,7 @@ export class TdsTooltip {
29
29
  },
30
30
  },
31
31
  ];
32
- this.inheritedAttributes = [];
32
+ this.inheritedAttributes = {};
33
33
  this.text = '';
34
34
  this.selector = undefined;
35
35
  this.referenceEl = undefined;
@@ -58,20 +58,16 @@ export class TdsTooltip {
58
58
  }
59
59
  render() {
60
60
  var _a;
61
- return (h(Host, { key: '69ced518e10ea5d65da8266257d7f7bba5db3f63', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '9511b6fb5dcd5a270de5b6f9b50b40271b4f5030' }, this.inheritedAttributes, { class: {
61
+ return (h(Host, { key: '2b72a1988aa57732d9295a33a43e8baf117e7e17', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '449a74bcead02452d6bd7f443cfbfd8ef29071a1' }, this.inheritedAttributes, { class: {
62
62
  'tds-tooltip': true,
63
63
  [`tds-tooltip-${this.border}`]: true,
64
64
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
65
- 'tds-tooltip-show': this.show,
66
- }, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
67
- // @ts-ignore
68
- onInternalTdsShow: () => {
65
+ 'tds-tooltip-show': !!this.show,
66
+ }, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false, onInternalTdsShow: () => {
69
67
  this.show = true;
70
- },
71
- // @ts-ignore
72
- onInternalTdsClose: () => {
68
+ }, onInternalTdsClose: () => {
73
69
  this.show = false;
74
- }, defaultShow: this.defaultShow }), this.text, h("slot", { key: '8fb6467b2d1fa2ce6a70a171966ff245f8205b55' }))));
70
+ }, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'c232d55352f3e827c16630c69df138ba687486b4' }))));
75
71
  }
76
72
  static get is() { return "tds-tooltip"; }
77
73
  static get encapsulation() { return "scoped"; }
@@ -127,7 +123,7 @@ export class TdsTooltip {
127
123
  "mutable": false,
128
124
  "complexType": {
129
125
  "original": "HTMLElement | null",
130
- "resolved": "HTMLElement",
126
+ "resolved": "HTMLElement | null | undefined",
131
127
  "references": {
132
128
  "HTMLElement": {
133
129
  "location": "global",
@@ -200,8 +196,8 @@ export class TdsTooltip {
200
196
  "type": "boolean",
201
197
  "mutable": true,
202
198
  "complexType": {
203
- "original": "boolean",
204
- "resolved": "boolean",
199
+ "original": "boolean | null",
200
+ "resolved": "boolean | null",
205
201
  "references": {}
206
202
  },
207
203
  "required": false,
@@ -14,12 +14,14 @@ const appendHiddenInput = (element, name, value, disabled, additionalAttributes)
14
14
  input = element.ownerDocument.createElement('input');
15
15
  input.type = 'hidden';
16
16
  if (additionalAttributes) {
17
- additionalAttributes.forEach((attr) => input.setAttribute(attr.key, attr.value));
17
+ additionalAttributes.forEach((attr) => input === null || input === void 0 ? void 0 : input.setAttribute(attr.key, attr.value));
18
18
  }
19
19
  element.appendChild(input);
20
20
  }
21
- input.disabled = disabled;
22
- input.name = name;
23
- input.value = value || '';
21
+ if (input) {
22
+ input.disabled = disabled;
23
+ input.name = name;
24
+ input.value = value || '';
25
+ }
24
26
  };
25
27
  export default appendHiddenInput;
@@ -1,8 +1,8 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAriaAttributes } from './p-0bd4c19c.js';
3
3
  import { d as defineCustomElement$3 } from './p-e1622f4a.js';
4
- import { d as defineCustomElement$2 } from './p-7c3348eb.js';
5
- import { d as defineCustomElement$1 } from './p-f7d94947.js';
4
+ import { d as defineCustomElement$2 } from './p-ead6727f.js';
5
+ import { d as defineCustomElement$1 } from './p-edc838a0.js';
6
6
 
7
7
  const headerLauncherButtonCss = ":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}";
8
8
  const TdsHeaderLauncherButtonStyle0 = headerLauncherButtonCss;
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAttributes } from './p-3fe9cbbf.js';
3
- import { d as defineCustomElement$1 } from './p-3308d5fa.js';
3
+ import { d as defineCustomElement$1 } from './p-6fd2b339.js';
4
4
 
5
5
  const popoverCanvasCss = ".tds-popover-canvas.sc-tds-popover-canvas{box-sizing:border-box;display:inline-block;color:var(--tds-popover-canvas-color);background-color:var(--tds-popover-canvas-background);box-shadow:var(--tds-popover-canvas-box-shadow);border-radius:4px;z-index:900}.tds-popover-canvas.sc-tds-popover-canvas *.sc-tds-popover-canvas{box-sizing:border-box}";
6
6
  const TdsPopoverCanvasStyle0 = popoverCanvasCss;
@@ -9,7 +9,7 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
9
9
  constructor() {
10
10
  super();
11
11
  this.__registerHost();
12
- this.inheritedAttributes = [];
12
+ this.inheritedAttributes = {};
13
13
  this.selector = undefined;
14
14
  this.referenceEl = undefined;
15
15
  this.defaultShow = false;
@@ -33,14 +33,14 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
33
33
  }
34
34
  render() {
35
35
  var _a;
36
- return (h(Host, { key: '8f22b74f8df985de4505b1472cf47b621d5c515e', class: {
36
+ return (h(Host, { key: 'a4203920290fc5778952324bd349b136a2c3dce8', class: {
37
37
  [`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
38
- } }, h("tds-popover-core", Object.assign({ key: 'a7d3fed2b26cd2dc532e9e78413828d52b28b21e', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
38
+ } }, h("tds-popover-core", Object.assign({ key: 'cab065d1bfbd9a952e7662541de050a9a67c90bb', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
39
39
  'tds-popover-canvas': true,
40
40
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
41
41
  }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
42
42
  this.childRef = el;
43
- }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c1fde8225ca64b259798f763b8d2264346c246e' }, h("slot", { key: 'e133b76f8088a4b572c8bb69792bc3fa6d652da9' })))));
43
+ }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: 'cc05cad76faaf82ec2f50c748b93092667aff374' }, h("slot", { key: '36ebe3e4eb4c9f11d885b0a609422f8cc57a5f7d' })))));
44
44
  }
45
45
  get host() { return this; }
46
46
  static get style() { return TdsPopoverCanvasStyle0; }
@@ -1941,6 +1941,7 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1941
1941
  }
1942
1942
  }
1943
1943
  initialize({ referenceEl, trigger, }) {
1944
+ var _a, _b, _c, _d, _e, _f;
1944
1945
  this.cleanUp();
1945
1946
  if (typeof referenceEl !== 'undefined') {
1946
1947
  this.target = referenceEl;
@@ -1967,9 +1968,9 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1967
1968
  console.error(`Could not initialize: reference element not found.`);
1968
1969
  }
1969
1970
  if (trigger === 'click' && this.show === null) {
1970
- this.target.addEventListener('click', this.onClickTarget);
1971
+ (_a = this.target) === null || _a === void 0 ? void 0 : _a.addEventListener('click', this.onClickTarget);
1971
1972
  // Also handle keyboard activation via Enter and Space
1972
- this.target.addEventListener('keydown', (e) => {
1973
+ (_b = this.target) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', (e) => {
1973
1974
  if (e.key === 'Enter' || e.key === ' ') {
1974
1975
  e.preventDefault();
1975
1976
  this.openedByKeyboard = true;
@@ -1979,11 +1980,11 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
1979
1980
  }
1980
1981
  if (trigger === 'hover' || trigger === 'hover-popover') {
1981
1982
  // For tabbing over element
1982
- this.target.addEventListener('focusin', this.handleShow);
1983
- this.target.addEventListener('focusout', this.handleHide);
1983
+ (_c = this.target) === null || _c === void 0 ? void 0 : _c.addEventListener('focusin', this.handleShow);
1984
+ (_d = this.target) === null || _d === void 0 ? void 0 : _d.addEventListener('focusout', this.handleHide);
1984
1985
  // For hovering over element with selector
1985
- this.target.addEventListener('mouseenter', this.handleShow);
1986
- this.target.addEventListener('mouseleave', this.handleHide);
1986
+ (_e = this.target) === null || _e === void 0 ? void 0 : _e.addEventListener('mouseenter', this.handleShow);
1987
+ (_f = this.target) === null || _f === void 0 ? void 0 : _f.addEventListener('mouseleave', this.handleHide);
1987
1988
  // For hovering over Popover itself
1988
1989
  if (trigger === 'hover-popover') {
1989
1990
  this.host.addEventListener('mouseenter', this.handleShow);
@@ -2025,10 +2026,11 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
2025
2026
  }
2026
2027
  }
2027
2028
  componentDidRender() {
2029
+ var _a;
2028
2030
  if (this.isShown && !this.renderedShowValue && !this.disableLogic) {
2029
2031
  // Here we update the popper position since its position is wrong
2030
2032
  // before it is rendered.
2031
- this.popperInstance.update();
2033
+ (_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.update();
2032
2034
  }
2033
2035
  this.renderedShowValue = this.isShown;
2034
2036
  }
@@ -2044,7 +2046,7 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
2044
2046
  'tds-animation-exit-fade': !this.isShown && this.animation === 'fade',
2045
2047
  };
2046
2048
  const classList = generateClassList(classes);
2047
- return (h(Host, { key: '5c557610103827aedbabbd37a79730580d15ca2d', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '487a937b3c9d87b91425f6bd9eb88bc3fa85d7df' })));
2049
+ return (h(Host, { key: '60b658912943cddce1f2614e82f0c7c5ad69ae8b', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '0c4afc0d1a7877645239ccc17a28d50b0eb338e5' })));
2048
2050
  }
2049
2051
  get host() { return this; }
2050
2052
  static get watchers() { return {
@@ -22,13 +22,15 @@ const TdsButton = /*@__PURE__*/ proxyCustomElement(class TdsButton extends H {
22
22
  this.onlyIcon = false;
23
23
  }
24
24
  handleKeyDown(event) {
25
+ var _a;
25
26
  if (event.key === 'Enter' && !this.disabled) {
26
- this.host.querySelector('button').classList.add('active');
27
+ (_a = this.host.querySelector('button')) === null || _a === void 0 ? void 0 : _a.classList.add('active');
27
28
  }
28
29
  }
29
30
  handleKeyUp(event) {
31
+ var _a;
30
32
  if (event.key === 'Enter' && !this.disabled) {
31
- this.host.querySelector('button').classList.remove('active');
33
+ (_a = this.host.querySelector('button')) === null || _a === void 0 ? void 0 : _a.classList.remove('active');
32
34
  }
33
35
  }
34
36
  render() {
@@ -37,11 +39,11 @@ const TdsButton = /*@__PURE__*/ proxyCustomElement(class TdsButton extends H {
37
39
  if (!this.text && !hasLabelSlot) {
38
40
  this.onlyIcon = true;
39
41
  }
40
- return (h(Host, { key: '7358240d76e1b7a6df238b2a1e5f1702f9cd33d7', class: {
42
+ return (h(Host, { key: '21f6dc31ba1b823cb16f9fe305ae25787e19a30b', class: {
41
43
  [`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
42
44
  disabled: Boolean(this.disabled),
43
45
  fullbleed: Boolean(this.fullbleed),
44
- }, disabled: this.disabled }, h("button", Object.assign({ key: '971f814b0b832e9b161c77812fb7668ed34312ab', type: this.type, name: this.name ? this.name : undefined, value: this.value ? this.value : undefined, disabled: this.disabled, class: {
46
+ }, disabled: this.disabled }, h("button", Object.assign({ key: 'bd728c9a035b0625ac1aad1fd6c3b95bff1968ef', type: this.type, name: this.name ? this.name : undefined, value: this.value ? this.value : undefined, disabled: this.disabled, class: {
45
47
  'primary': this.variant === 'primary',
46
48
  'secondary': this.variant === 'secondary',
47
49
  'ghost': this.variant === 'ghost',
@@ -55,7 +57,7 @@ const TdsButton = /*@__PURE__*/ proxyCustomElement(class TdsButton extends H {
55
57
  'icon': hasIconSlot,
56
58
  'only-icon': this.onlyIcon,
57
59
  [`animation-${this.animation}`]: this.animation !== 'none',
58
- } }, (this.onlyIcon && this.tdsAriaLabel && { 'aria-label': this.tdsAriaLabel })), this.text, hasLabelSlot && !this.onlyIcon && h("slot", { key: '2dc9400b032af40765d7ba1add85c09249dea64b', name: "label" }), hasIconSlot && h("slot", { key: '01af3eeaa00abc5dc824f4fa4633b2460fb4fe46', name: "icon" }))));
60
+ } }, (this.onlyIcon && this.tdsAriaLabel && { 'aria-label': this.tdsAriaLabel })), this.text, hasLabelSlot && !this.onlyIcon && h("slot", { key: '91fd005e481049141b0a34f654f1a3f2c7ff8c20', name: "label" }), hasIconSlot && h("slot", { key: '52a6ae5066c89b72f953026bdb49037274005e75', name: "icon" }))));
59
61
  }
60
62
  get host() { return this; }
61
63
  static get style() { return TdsButtonStyle0; }
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
2
2
  import { c as convertToString, a as convertArrayToStrings } from './p-a1181b1f.js';
3
3
  import { g as generateUniqueId } from './p-11648030.js';
4
- import { d as defineCustomElement$1 } from './p-f7d94947.js';
4
+ import { d as defineCustomElement$1 } from './p-edc838a0.js';
5
5
 
6
6
  /**
7
7
  * Find the next focusable element index in a list of focusable elements.
@@ -52,13 +52,15 @@ const appendHiddenInput = (element, name, value, disabled, additionalAttributes)
52
52
  input = element.ownerDocument.createElement('input');
53
53
  input.type = 'hidden';
54
54
  if (additionalAttributes) {
55
- additionalAttributes.forEach((attr) => input.setAttribute(attr.key, attr.value));
55
+ additionalAttributes.forEach((attr) => input === null || input === void 0 ? void 0 : input.setAttribute(attr.key, attr.value));
56
56
  }
57
57
  element.appendChild(input);
58
58
  }
59
- input.disabled = disabled;
60
- input.name = name;
61
- input.value = value || '';
59
+ if (input) {
60
+ input.disabled = disabled;
61
+ input.name = name;
62
+ input.value = value || '';
63
+ }
62
64
  };
63
65
 
64
66
  const dropdownCss = "@charset \"UTF-8\";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:var(--tds-dropdown-border-radius)}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom:0}:host button.error{border-bottom:1px solid var(--tds-dropdown-error)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host button .menu-icon{margin-right:0}:host .dropdown-select:focus-within{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter.disabled .value-wrapper input{color:var(--tds-dropdown-disabled-color)}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .value-wrapper input{color:var(--tds-dropdown-filter-input-color)}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom:0}:host .filter.focus:hover{border-bottom:0}:host .filter.error{border-bottom:1px solid var(--tds-dropdown-error)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{cursor:pointer}:host .filter .menu-icon{margin-right:16px}:host .filter .clear-icon{margin:0 8px;color:var(--tds-dropdown-clear-icon-color);padding-right:8px;border-right:1px solid var(--tds-dropdown-clear-icon-color)}:host .filter .clear-icon:hover{color:var(--tds-dropdown-clear-icon-hover-color)}:host .filter .clear-icon.hide{display:none;visibility:hidden}:host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;border-radius:0}:host .dropdown-select button{transition:border-bottom-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-select button:hover{border-bottom-color:var(--tds-dropdown-border-bottom-hover)}:host .dropdown-select button{border-bottom-color:var(--tds-dropdown-border-bottom)}:host .dropdown-select button.error{border-bottom-color:var(--tds-dropdown-error)}:host .dropdown-select button.error:focus{border-bottom-color:transparent}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select.disabled button{border:none}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside.xs{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--tds-placeholder-margin);}:host .dropdown-select .placeholder.xs{line-height:1}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .dropdown-select.xs{height:29px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-dropdown-error)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;width:100%;transform-origin:top;box-shadow:0 2px 3px 0 rgba(0, 0, 0, 0.1);border-radius:var(--tds-dropdown-list-border-radius-down);overflow-y:auto;transform:scaleY(0);pointer-events:none}:host .dropdown-list:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .dropdown-list::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .dropdown-list::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .dropdown-list{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.xs{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;border-radius:var(--tds-dropdown-list-border-radius-up)}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);pointer-events:none}:host .dropdown-list.open{transform:scaleY(1);visibility:visible;opacity:1;pointer-events:auto}:host .dropdown-list.animation-enter-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-enter)}:host .dropdown-list.animation-exit-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-exit)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host .dropdown-list .no-result.xs{height:40px}:host .menu-icon{color:var(--tds-dropdown-menu-icon-color)}:host tds-icon{transition:transform var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host tds-icon.open{transform:rotateZ(180deg)}";
@@ -108,7 +110,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
108
110
  };
109
111
  this.getSelectedChildrenLabels = () => {
110
112
  var _a;
111
- return (_a = this.getSelectedChildren()) === null || _a === void 0 ? void 0 : _a.map((element) => element.textContent.trim());
113
+ return (_a = this.getSelectedChildren()) === null || _a === void 0 ? void 0 : _a.map((element) => { var _a; return (_a = element.textContent) === null || _a === void 0 ? void 0 : _a.trim(); });
112
114
  };
113
115
  this.getValue = () => {
114
116
  const labels = this.getSelectedChildrenLabels();
@@ -139,6 +141,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
139
141
  return this.openDirection;
140
142
  };
141
143
  this.handleToggleOpen = () => {
144
+ var _a;
142
145
  if (!this.disabled) {
143
146
  this.open = !this.open;
144
147
  if (this.open) {
@@ -146,7 +149,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
146
149
  this.focusInputElement();
147
150
  }
148
151
  else {
149
- const button = this.host.shadowRoot.querySelector('button');
152
+ const button = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button');
150
153
  if (button) {
151
154
  button.focus();
152
155
  }
@@ -174,7 +177,8 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
174
177
  }
175
178
  else {
176
179
  this.filterResult = children.filter((element) => {
177
- if (!this.normalizeString(element.textContent)
180
+ var _a;
181
+ if (!this.normalizeString((_a = element === null || element === void 0 ? void 0 : element.textContent) !== null && _a !== void 0 ? _a : '')
178
182
  .toLowerCase()
179
183
  .includes(this.normalizeString(query).toLowerCase())) {
180
184
  element.setAttribute('hidden', '');
@@ -363,10 +367,13 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
363
367
  normalizedValue = [convertToString(value)];
364
368
  }
365
369
  this.updateDropdownStateFromUser(normalizedValue);
366
- return this.getSelectedChildren().map((element) => ({
367
- value: element.value,
368
- label: element.textContent.trim(),
369
- }));
370
+ return this.getSelectedChildren().map((element) => {
371
+ var _a;
372
+ return ({
373
+ value: element.value,
374
+ label: (_a = element.textContent) === null || _a === void 0 ? void 0 : _a.trim(),
375
+ });
376
+ });
370
377
  }
371
378
  async reset() {
372
379
  this.updateDropdownStateFromUser([]);
@@ -377,13 +384,14 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
377
384
  }
378
385
  /** Method that forces focus on the input element. */
379
386
  async focusElement() {
387
+ var _a;
380
388
  if (this.filter) {
381
389
  // For filter mode, focus the input element
382
390
  this.focusInputElement();
383
391
  }
384
392
  else {
385
393
  // For non-filter mode, focus the button element
386
- const button = this.host.shadowRoot.querySelector('button');
394
+ const button = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button');
387
395
  if (button) {
388
396
  button.focus();
389
397
  }
@@ -431,7 +439,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
431
439
  }
432
440
  }
433
441
  async onKeyDown(event) {
434
- var _a;
442
+ var _a, _b;
435
443
  // Get the active element
436
444
  const { activeElement } = document;
437
445
  if (!activeElement) {
@@ -444,8 +452,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
444
452
  const startingIndex = activeElement.nextElementSibling
445
453
  ? children.findIndex((element) => element === activeElement.nextElementSibling)
446
454
  : 0;
447
- const elementIndex = findNextFocusableElement(children, startingIndex);
448
- children[elementIndex].focus();
455
+ if (children.length > 0) {
456
+ const elementIndex = findNextFocusableElement(children, startingIndex);
457
+ const target = typeof elementIndex === 'number' ? children[elementIndex] : children[0];
458
+ target === null || target === void 0 ? void 0 : target.focus();
459
+ }
449
460
  }
450
461
  else if (event.key === 'ArrowUp') {
451
462
  /* Get the index of the current focus index, if there is no
@@ -453,8 +464,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
453
464
  const startingIndex = activeElement.nextElementSibling
454
465
  ? this.getChildren().findIndex((element) => element === activeElement.previousElementSibling)
455
466
  : 0;
456
- const elementIndex = findPreviousFocusableElement(children, startingIndex);
457
- children[elementIndex].focus();
467
+ if (children.length > 0) {
468
+ const elementIndex = findPreviousFocusableElement(children, startingIndex);
469
+ const target = typeof elementIndex === 'number' ? children[elementIndex] : children[children.length - 1];
470
+ target === null || target === void 0 ? void 0 : target.focus();
471
+ }
458
472
  }
459
473
  else if (event.key === 'Escape') {
460
474
  this.open = false;
@@ -463,7 +477,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
463
477
  (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
464
478
  }
465
479
  else {
466
- const button = this.host.shadowRoot.querySelector('button');
480
+ const button = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
467
481
  button === null || button === void 0 ? void 0 : button.focus();
468
482
  }
469
483
  }
@@ -549,9 +563,9 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
549
563
  // Generate unique IDs for associating labels and helpers with the input/button
550
564
  const labelId = this.label ? `dropdown-label-${this.name || generateUniqueId()}` : undefined;
551
565
  const helperId = this.helper ? `dropdown-helper-${this.name || generateUniqueId()}` : undefined;
552
- return (h(Host, { key: '8145c7b222a850157de5f328974f5c70b126b9e4', class: {
566
+ return (h(Host, { key: '20b2b8e16e86f66e735870c142caae96094e8a67', class: {
553
567
  [`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
554
- } }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'af3ad647c3c5bbb86f12033821020a4ed484d9e1', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '099777e28368c78c9eb05945328899334c674865', class: {
568
+ } }, this.label && this.labelPosition === 'outside' && (h("div", { key: '151a7528da2411eb549ba55b00234609524d21ef', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'b74809f85659d8b59fda7e26cc6ce7d25c1683c9', class: {
555
569
  'dropdown-select': true,
556
570
  [this.size]: true,
557
571
  'disabled': this.disabled,
@@ -595,22 +609,23 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
595
609
  label-inside-as-placeholder
596
610
  ${this.size}
597
611
  ${this.selectedOptions.length ? 'selected' : ''}
598
- ` }, 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: 'f5427c41c1abe1c84164a030e69800fd48911c73', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
599
- this.dropdownList = element;
612
+ ` }, 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: '47278e9797420ea5f5c9c5ea4ef327386b087b53', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
613
+ if (element)
614
+ this.dropdownList = element;
600
615
  }, class: {
601
616
  'dropdown-list': true,
602
617
  [this.size]: true,
603
618
  [this.getOpenDirection()]: true,
604
- 'label-outside': this.label && this.labelPosition === 'outside',
619
+ 'label-outside': !!(this.label && this.labelPosition === 'outside'),
605
620
  'open': this.open,
606
621
  'closed': !this.open,
607
622
  [`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
608
623
  [`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
609
- } }, h("slot", { key: '2e83898eec11f669c3477d5600dce1178b5c4f36', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '0ff59cf47dbe302998ce72758b182e7565ddd210', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '3a60427fe8ca05d6bf4ba42f95bd0bc753f04ebd', id: helperId, class: {
624
+ } }, h("slot", { key: 'b50453420be7803742bde1a3bc5ac3274bf61478', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '979d8b7224f9d845a3aa6364f913fdf22bf5ddf9', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: 'a471701f913ef80a5d7d0875e270c32ebaf236c8', id: helperId, class: {
610
625
  helper: true,
611
626
  error: this.error,
612
627
  disabled: this.disabled,
613
- } }, this.error && h("tds-icon", { key: 'bab7ba6449cb7cd62a149340f6de1fe13cfd49de', name: "error", size: "16px" }), this.helper))));
628
+ } }, this.error && h("tds-icon", { key: '294692745fec61636576c1f8256050abf1f57913', name: "error", size: "16px" }), this.helper))));
614
629
  }
615
630
  get host() { return this; }
616
631
  static get watchers() { return {