@scania/tegel 1.40.0-ts-strict-mode-beta.0 → 1.41.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 (354) 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 +3 -4
  5. package/dist/cjs/tds-button_2.cjs.entry.js +5 -7
  6. package/dist/cjs/tds-card.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-checkbox.cjs.entry.js +3 -6
  8. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +5 -9
  9. package/dist/cjs/tds-datetime.cjs.entry.js +5 -8
  10. package/dist/cjs/tds-dropdown_2.cjs.entry.js +40 -50
  11. package/dist/cjs/tds-folder-tabs.cjs.entry.js +3 -10
  12. package/dist/cjs/tds-footer-group.cjs.entry.js +5 -6
  13. package/dist/cjs/tds-footer-item.cjs.entry.js +2 -6
  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 +5 -10
  17. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +3 -5
  18. package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -7
  19. package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -8
  20. package/dist/cjs/tds-header.cjs.entry.js +6 -8
  21. package/dist/cjs/tds-icon.cjs.entry.js +2 -1
  22. package/dist/cjs/tds-inline-tabs.cjs.entry.js +3 -10
  23. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  24. package/dist/cjs/tds-modal.cjs.entry.js +5 -6
  25. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -12
  26. package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
  27. package/dist/cjs/tds-popover-core.cjs.entry.js +8 -10
  28. package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
  29. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -4
  30. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +4 -5
  31. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +9 -13
  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 +4 -5
  34. package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -15
  35. package/dist/cjs/tds-side-menu.cjs.entry.js +9 -12
  36. package/dist/cjs/tds-slider.cjs.entry.js +16 -26
  37. package/dist/cjs/tds-step.cjs.entry.js +1 -3
  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 +10 -17
  40. package/dist/cjs/tds-table-body-row.cjs.entry.js +5 -8
  41. package/dist/cjs/tds-table-body.cjs.entry.js +5 -9
  42. package/dist/cjs/tds-table-footer.cjs.entry.js +8 -15
  43. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-table-header.cjs.entry.js +18 -24
  45. package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -6
  46. package/dist/cjs/tds-table.cjs.entry.js +12 -14
  47. package/dist/cjs/tds-text-field.cjs.entry.js +6 -7
  48. package/dist/cjs/tds-textarea.cjs.entry.js +4 -5
  49. package/dist/cjs/tds-toggle.cjs.entry.js +4 -5
  50. package/dist/cjs/tds-tooltip.cjs.entry.js +10 -6
  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 +7 -9
  55. package/dist/collection/components/card/card.js +4 -4
  56. package/dist/collection/components/checkbox/checkbox.js +4 -7
  57. package/dist/collection/components/chip/chip.js +1 -1
  58. package/dist/collection/components/datetime/datetime.js +7 -10
  59. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +6 -9
  60. package/dist/collection/components/dropdown/dropdown.css +1 -0
  61. package/dist/collection/components/dropdown/dropdown.js +53 -44
  62. package/dist/collection/components/footer/footer-group/footer-group.js +5 -6
  63. package/dist/collection/components/footer/footer-item/footer-item.js +2 -6
  64. package/dist/collection/components/footer/footer.js +4 -4
  65. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
  66. package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -7
  67. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +3 -5
  68. package/dist/collection/components/header/header-item/header-item.js +5 -9
  69. package/dist/collection/components/header/header-launcher/header-launcher.js +4 -8
  70. package/dist/collection/components/header/header.js +6 -8
  71. package/dist/collection/components/icon/icon.js +4 -3
  72. package/dist/collection/components/message/message.css +2 -1
  73. package/dist/collection/components/message/message.js +4 -4
  74. package/dist/collection/components/modal/modal.css +54 -10
  75. package/dist/collection/components/modal/modal.js +7 -8
  76. package/dist/collection/components/popover-canvas/popover-canvas.js +9 -9
  77. package/dist/collection/components/popover-core/popover-core.js +23 -20
  78. package/dist/collection/components/popover-menu/popover-menu.js +9 -9
  79. package/dist/collection/components/radio-button/radio-button.js +1 -4
  80. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -5
  81. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +4 -5
  82. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
  83. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +9 -13
  84. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +9 -15
  85. package/dist/collection/components/side-menu/side-menu.js +9 -12
  86. package/dist/collection/components/slider/slider.js +16 -26
  87. package/dist/collection/components/stepper/step/step.js +1 -3
  88. package/dist/collection/components/table/table/table.js +18 -36
  89. package/dist/collection/components/table/table-body/table-body.js +5 -9
  90. package/dist/collection/components/table/table-body-cell/table-body-cell.js +6 -7
  91. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
  92. package/dist/collection/components/table/table-body-row/table-body-row.js +10 -13
  93. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +16 -23
  94. package/dist/collection/components/table/table-footer/table-footer.js +13 -20
  95. package/dist/collection/components/table/table-header/table-header.js +21 -27
  96. package/dist/collection/components/table/table-header-cell/table-header-cell.js +17 -22
  97. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  98. package/dist/collection/components/table/table-toolbar/table-toolbar.js +6 -8
  99. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +5 -12
  100. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -10
  101. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +5 -12
  102. package/dist/collection/components/text-field/text-field.js +8 -9
  103. package/dist/collection/components/textarea/textarea.js +6 -7
  104. package/dist/collection/components/toggle/toggle.js +4 -5
  105. package/dist/collection/components/tooltip/tooltip.js +13 -9
  106. package/dist/collection/utils/appendHiddenInput.js +4 -6
  107. package/dist/components/{p-ad376f70.js → p-04a014cf.js} +11 -7
  108. package/dist/components/{p-e0ccf8e6.js → p-1dafdc8c.js} +9 -15
  109. package/dist/components/{p-6fd2b339.js → p-3308d5fa.js} +8 -10
  110. package/dist/components/{p-a64cbc40.js → p-3a7e4d0d.js} +9 -10
  111. package/dist/components/{p-7e02ea3e.js → p-3f475529.js} +35 -42
  112. package/dist/components/{p-e627f11b.js → p-44f5b5e1.js} +3 -6
  113. package/dist/components/{p-415fafb3.js → p-63552d0e.js} +5 -5
  114. package/dist/components/{p-98d082f9.js → p-6ef207b2.js} +8 -11
  115. package/dist/components/{p-ead6727f.js → p-7c3348eb.js} +5 -9
  116. package/dist/components/{p-da11a695.js → p-9336db16.js} +3 -5
  117. package/dist/components/{p-799470b1.js → p-c62b61fe.js} +5 -7
  118. package/dist/components/{p-0d286c19.js → p-d10d21bd.js} +2 -2
  119. package/dist/components/{p-edc838a0.js → p-f7d94947.js} +2 -1
  120. package/dist/components/tds-accordion-item.js +1 -1
  121. package/dist/components/tds-accordion.js +2 -2
  122. package/dist/components/tds-banner.js +1 -1
  123. package/dist/components/tds-block.js +1 -1
  124. package/dist/components/tds-body-cell.js +4 -5
  125. package/dist/components/tds-button.js +1 -1
  126. package/dist/components/tds-card.js +4 -4
  127. package/dist/components/tds-checkbox.js +1 -1
  128. package/dist/components/tds-datetime.js +6 -9
  129. package/dist/components/tds-dropdown-option.js +1 -1
  130. package/dist/components/tds-dropdown.js +1 -1
  131. package/dist/components/tds-folder-tabs.js +4 -11
  132. package/dist/components/tds-footer-group.js +6 -7
  133. package/dist/components/tds-footer-item.js +2 -6
  134. package/dist/components/tds-footer.js +2 -2
  135. package/dist/components/tds-header-brand-symbol.js +3 -3
  136. package/dist/components/tds-header-cell.js +6 -11
  137. package/dist/components/tds-header-dropdown-list.js +1 -1
  138. package/dist/components/tds-header-dropdown.js +9 -11
  139. package/dist/components/tds-header-hamburger.js +2 -2
  140. package/dist/components/tds-header-item.js +1 -1
  141. package/dist/components/tds-header-launcher-button.js +1 -1
  142. package/dist/components/tds-header-launcher-list.js +1 -1
  143. package/dist/components/tds-header-launcher.js +9 -13
  144. package/dist/components/tds-header.js +6 -8
  145. package/dist/components/tds-icon.js +1 -1
  146. package/dist/components/tds-inline-tabs.js +4 -11
  147. package/dist/components/tds-message.js +4 -4
  148. package/dist/components/tds-modal.js +6 -7
  149. package/dist/components/tds-navigation-tabs.js +6 -13
  150. package/dist/components/tds-popover-canvas.js +1 -1
  151. package/dist/components/tds-popover-core.js +1 -1
  152. package/dist/components/tds-popover-menu.js +5 -5
  153. package/dist/components/tds-radio-button.js +1 -4
  154. package/dist/components/tds-side-menu-close-button.js +1 -1
  155. package/dist/components/tds-side-menu-collapse-button.js +5 -6
  156. package/dist/components/tds-side-menu-dropdown-list-item.js +9 -13
  157. package/dist/components/tds-side-menu-dropdown-list.js +3 -3
  158. package/dist/components/tds-side-menu-dropdown.js +6 -7
  159. package/dist/components/tds-side-menu-item.js +1 -1
  160. package/dist/components/tds-side-menu.js +9 -12
  161. package/dist/components/tds-slider.js +20 -30
  162. package/dist/components/tds-step.js +2 -4
  163. package/dist/components/tds-table-body-input-wrapper.js +2 -2
  164. package/dist/components/tds-table-body-row-expandable.js +10 -17
  165. package/dist/components/tds-table-body-row.js +6 -9
  166. package/dist/components/tds-table-body.js +5 -9
  167. package/dist/components/tds-table-footer.js +12 -19
  168. package/dist/components/tds-table-header-input-wrapper.js +2 -2
  169. package/dist/components/tds-table-header.js +19 -25
  170. package/dist/components/tds-table-toolbar.js +5 -7
  171. package/dist/components/tds-table.js +12 -14
  172. package/dist/components/tds-text-field.js +1 -1
  173. package/dist/components/tds-textarea.js +7 -8
  174. package/dist/components/tds-toast.js +1 -1
  175. package/dist/components/tds-toggle.js +4 -5
  176. package/dist/components/tds-tooltip.js +1 -1
  177. package/dist/esm/loader.js +1 -1
  178. package/dist/esm/tds-accordion.entry.js +2 -2
  179. package/dist/esm/tds-block.entry.js +1 -1
  180. package/dist/esm/tds-body-cell.entry.js +3 -4
  181. package/dist/esm/tds-button_2.entry.js +5 -7
  182. package/dist/esm/tds-card.entry.js +2 -2
  183. package/dist/esm/tds-checkbox.entry.js +3 -6
  184. package/dist/esm/tds-core-header-item_2.entry.js +5 -9
  185. package/dist/esm/tds-datetime.entry.js +5 -8
  186. package/dist/esm/tds-dropdown_2.entry.js +40 -50
  187. package/dist/esm/tds-folder-tabs.entry.js +3 -10
  188. package/dist/esm/tds-footer-group.entry.js +5 -6
  189. package/dist/esm/tds-footer-item.entry.js +2 -6
  190. package/dist/esm/tds-footer.entry.js +2 -2
  191. package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
  192. package/dist/esm/tds-header-cell.entry.js +5 -10
  193. package/dist/esm/tds-header-dropdown-list.entry.js +3 -5
  194. package/dist/esm/tds-header-dropdown.entry.js +5 -7
  195. package/dist/esm/tds-header-launcher.entry.js +4 -8
  196. package/dist/esm/tds-header.entry.js +6 -8
  197. package/dist/esm/tds-icon.entry.js +2 -1
  198. package/dist/esm/tds-inline-tabs.entry.js +3 -10
  199. package/dist/esm/tds-message.entry.js +3 -3
  200. package/dist/esm/tds-modal.entry.js +5 -6
  201. package/dist/esm/tds-navigation-tabs.entry.js +5 -12
  202. package/dist/esm/tds-popover-canvas.entry.js +4 -4
  203. package/dist/esm/tds-popover-core.entry.js +8 -10
  204. package/dist/esm/tds-popover-menu.entry.js +4 -4
  205. package/dist/esm/tds-radio-button.entry.js +1 -4
  206. package/dist/esm/tds-side-menu-collapse-button.entry.js +4 -5
  207. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +9 -13
  208. package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
  209. package/dist/esm/tds-side-menu-dropdown.entry.js +4 -5
  210. package/dist/esm/tds-side-menu-item.entry.js +9 -15
  211. package/dist/esm/tds-side-menu.entry.js +9 -12
  212. package/dist/esm/tds-slider.entry.js +16 -26
  213. package/dist/esm/tds-step.entry.js +1 -3
  214. package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
  215. package/dist/esm/tds-table-body-row-expandable.entry.js +10 -17
  216. package/dist/esm/tds-table-body-row.entry.js +5 -8
  217. package/dist/esm/tds-table-body.entry.js +5 -9
  218. package/dist/esm/tds-table-footer.entry.js +8 -15
  219. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  220. package/dist/esm/tds-table-header.entry.js +18 -24
  221. package/dist/esm/tds-table-toolbar.entry.js +4 -6
  222. package/dist/esm/tds-table.entry.js +12 -14
  223. package/dist/esm/tds-text-field.entry.js +6 -7
  224. package/dist/esm/tds-textarea.entry.js +4 -5
  225. package/dist/esm/tds-toggle.entry.js +4 -5
  226. package/dist/esm/tds-tooltip.entry.js +10 -6
  227. package/dist/esm/tegel.js +1 -1
  228. package/dist/tegel/p-0672ddfc.entry.js +1 -0
  229. package/dist/tegel/p-08ad6a21.entry.js +1 -0
  230. package/dist/tegel/p-08f63e5d.entry.js +1 -0
  231. package/dist/tegel/p-09cd056c.entry.js +1 -0
  232. package/dist/tegel/p-0c9a51d9.entry.js +1 -0
  233. package/dist/tegel/p-0cfe8671.entry.js +1 -0
  234. package/dist/tegel/p-0e772ad7.entry.js +1 -0
  235. package/dist/tegel/p-17bc1e49.entry.js +1 -0
  236. package/dist/tegel/p-1859156f.entry.js +1 -0
  237. package/dist/tegel/p-1f4267a8.entry.js +1 -0
  238. package/dist/tegel/p-24a76927.entry.js +1 -0
  239. package/dist/tegel/{p-40fa0f5b.entry.js → p-28f85555.entry.js} +1 -1
  240. package/dist/tegel/p-354d3986.entry.js +1 -0
  241. package/dist/tegel/p-3c97cb45.entry.js +1 -0
  242. package/dist/tegel/p-3e6d65ee.entry.js +1 -0
  243. package/dist/tegel/p-445fa788.entry.js +1 -0
  244. package/dist/tegel/{p-a912035b.entry.js → p-464469fe.entry.js} +1 -1
  245. package/dist/tegel/p-51a17707.entry.js +1 -0
  246. package/dist/tegel/p-52689019.entry.js +1 -0
  247. package/dist/tegel/{p-ca068263.entry.js → p-57a28f62.entry.js} +1 -1
  248. package/dist/tegel/{p-27369d6a.entry.js → p-650b98bf.entry.js} +1 -1
  249. package/dist/tegel/p-6b340718.entry.js +1 -0
  250. package/dist/tegel/p-72006dd7.entry.js +1 -0
  251. package/dist/tegel/p-743d4f07.entry.js +1 -0
  252. package/dist/tegel/p-77cfb0ef.entry.js +1 -0
  253. package/dist/tegel/p-7887bdbb.entry.js +1 -0
  254. package/dist/tegel/p-7b598e60.entry.js +1 -0
  255. package/dist/tegel/p-7ef50e7f.entry.js +1 -0
  256. package/dist/tegel/p-8c2695af.entry.js +1 -0
  257. package/dist/tegel/p-8eccfe32.entry.js +1 -0
  258. package/dist/tegel/{p-b9afb39e.entry.js → p-987f8f0f.entry.js} +1 -1
  259. package/dist/tegel/p-9b635e01.entry.js +1 -0
  260. package/dist/tegel/p-9f187848.entry.js +1 -0
  261. package/dist/tegel/p-9fdc8fa5.entry.js +1 -0
  262. package/dist/tegel/p-a090bd2f.entry.js +1 -0
  263. package/dist/tegel/p-a56436c8.entry.js +1 -0
  264. package/dist/tegel/p-b210d23c.entry.js +1 -0
  265. package/dist/tegel/p-c0cbc9f5.entry.js +1 -0
  266. package/dist/tegel/{p-fe4335ca.entry.js → p-c6968db1.entry.js} +1 -1
  267. package/dist/tegel/p-cf717912.entry.js +1 -0
  268. package/dist/tegel/p-cfd7ed1a.entry.js +1 -0
  269. package/dist/tegel/p-d1d45942.entry.js +1 -0
  270. package/dist/tegel/p-d7cdbc4e.entry.js +1 -0
  271. package/dist/tegel/p-e5b796e7.entry.js +1 -0
  272. package/dist/tegel/{p-e0dc09f9.entry.js → p-eb91e33b.entry.js} +1 -1
  273. package/dist/tegel/{p-da38aa9a.entry.js → p-f2318c88.entry.js} +1 -1
  274. package/dist/tegel/{p-c5694dd6.entry.js → p-f31f56fe.entry.js} +1 -1
  275. package/dist/tegel/p-f3c32d4d.entry.js +1 -0
  276. package/dist/tegel/p-fd15ced7.entry.js +1 -0
  277. package/dist/tegel/tegel.css +2 -2
  278. package/dist/tegel/tegel.esm.js +1 -1
  279. package/dist/types/components/accordion/accordion.d.ts +1 -1
  280. package/dist/types/components/block/block.d.ts +1 -1
  281. package/dist/types/components/button/button.d.ts +1 -1
  282. package/dist/types/components/card/card.d.ts +1 -1
  283. package/dist/types/components/datetime/datetime.d.ts +2 -2
  284. package/dist/types/components/dropdown/dropdown.d.ts +9 -5
  285. package/dist/types/components/footer/footer.d.ts +1 -1
  286. package/dist/types/components/icon/icon.d.ts +1 -1
  287. package/dist/types/components/message/message.d.ts +1 -1
  288. package/dist/types/components/modal/modal.d.ts +1 -1
  289. package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
  290. package/dist/types/components/popover-core/popover-core.d.ts +4 -4
  291. package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
  292. package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
  293. package/dist/types/components/table/table/table.d.ts +3 -6
  294. package/dist/types/components/table/table-body/table-body.d.ts +3 -3
  295. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +5 -8
  296. package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
  297. package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
  298. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
  299. package/dist/types/components/table/table-footer/table-footer.d.ts +4 -4
  300. package/dist/types/components/table/table-header/table-header.d.ts +5 -5
  301. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
  302. package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
  303. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
  304. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
  305. package/dist/types/components/text-field/text-field.d.ts +1 -1
  306. package/dist/types/components/textarea/textarea.d.ts +2 -2
  307. package/dist/types/components/tooltip/tooltip.d.ts +1 -1
  308. package/dist/types/components.d.ts +86 -81
  309. package/dist/types/types/Attributes.d.ts +1 -1
  310. package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
  311. package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
  312. package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
  313. package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
  314. package/package.json +1 -1
  315. package/dist/tegel/p-08c16b2f.entry.js +0 -1
  316. package/dist/tegel/p-0b37e91a.entry.js +0 -1
  317. package/dist/tegel/p-1e1a87c1.entry.js +0 -1
  318. package/dist/tegel/p-2268af7f.entry.js +0 -1
  319. package/dist/tegel/p-252a7d3f.entry.js +0 -1
  320. package/dist/tegel/p-25473962.entry.js +0 -1
  321. package/dist/tegel/p-27d39882.entry.js +0 -1
  322. package/dist/tegel/p-3ef04672.entry.js +0 -1
  323. package/dist/tegel/p-40d99d7d.entry.js +0 -1
  324. package/dist/tegel/p-48a3e489.entry.js +0 -1
  325. package/dist/tegel/p-4e15f31d.entry.js +0 -1
  326. package/dist/tegel/p-57c08d0d.entry.js +0 -1
  327. package/dist/tegel/p-58ac68f3.entry.js +0 -1
  328. package/dist/tegel/p-6a472310.entry.js +0 -1
  329. package/dist/tegel/p-7104b955.entry.js +0 -1
  330. package/dist/tegel/p-781b2939.entry.js +0 -1
  331. package/dist/tegel/p-894e7e11.entry.js +0 -1
  332. package/dist/tegel/p-942f8c6f.entry.js +0 -1
  333. package/dist/tegel/p-98eff725.entry.js +0 -1
  334. package/dist/tegel/p-9b06bd5f.entry.js +0 -1
  335. package/dist/tegel/p-9c56b031.entry.js +0 -1
  336. package/dist/tegel/p-a20a54ef.entry.js +0 -1
  337. package/dist/tegel/p-a2b2092a.entry.js +0 -1
  338. package/dist/tegel/p-a334b517.entry.js +0 -1
  339. package/dist/tegel/p-a4e4c450.entry.js +0 -1
  340. package/dist/tegel/p-a60ed3de.entry.js +0 -1
  341. package/dist/tegel/p-a6dca188.entry.js +0 -1
  342. package/dist/tegel/p-b218db70.entry.js +0 -1
  343. package/dist/tegel/p-b3b13975.entry.js +0 -1
  344. package/dist/tegel/p-bb8c2a36.entry.js +0 -1
  345. package/dist/tegel/p-bee9e9d1.entry.js +0 -1
  346. package/dist/tegel/p-d501a665.entry.js +0 -1
  347. package/dist/tegel/p-dda1ac69.entry.js +0 -1
  348. package/dist/tegel/p-e29fa563.entry.js +0 -1
  349. package/dist/tegel/p-ed66ef30.entry.js +0 -1
  350. package/dist/tegel/p-f5ca4fbf.entry.js +0 -1
  351. package/dist/tegel/p-f602b3a1.entry.js +0 -1
  352. package/dist/tegel/p-f922308f.entry.js +0 -1
  353. package/dist/tegel/p-fb300776.entry.js +0 -1
  354. package/dist/tegel/p-fd22d1ca.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as o,h as s,H as i,g as e}from"./p-2049fab2.js";import{g as d}from"./p-11648030.js";const r=t=>null==t?"":t.toString(),l=t=>t.map((t=>r(t))),n=class{constructor(s){t(this,s),this.tdsChange=o(this,"tdsChange",6),this.tdsFocus=o(this,"tdsFocus",6),this.tdsBlur=o(this,"tdsBlur",6),this.tdsInput=o(this,"tdsInput",6),this.tdsClear=o(this,"tdsClear",6),this.hasFocus=!1,this.setDefaultOption=()=>{if(this.internalDefaultValue){const t=this.multiselect?this.internalDefaultValue.split(","):[this.internalDefaultValue];this.updateDropdownStateInternal(t)}},this.getChildren=()=>{const t=Array.from(this.host.children).filter((t=>"TDS-DROPDOWN-OPTION"===t.tagName));return 0===t.length&&console.warn("TDS DROPDOWN: No options found. Disregard if loading data asynchronously."),t},this.getSelectedChildren=()=>0===this.selectedOptions.length?[]:this.selectedOptions.map((t=>{var o;return null===(o=this.getChildren())||void 0===o?void 0:o.find((o=>r(o.value)===r(t)))})).filter(Boolean),this.getSelectedChildrenLabels=()=>{var t;return null===(t=this.getSelectedChildren())||void 0===t?void 0:t.map((t=>t.textContent.trim()))},this.getValue=()=>{const t=this.getSelectedChildrenLabels();return t?null==t?void 0:t.join(", "):""},this.setValueAttribute=()=>{0===this.selectedOptions.length?this.host.removeAttribute("value"):this.host.setAttribute("value",this.selectedOptions.join(","))},this.getOpenDirection=()=>{var t,o,s,i,e;if("auto"===this.openDirection||!this.openDirection){const d=null!==(o=null===(t=this.dropdownList)||void 0===t?void 0:t.offsetHeight)&&void 0!==o?o:0;return(null!==(e=null===(i=(s=this.host).getBoundingClientRect)||void 0===i?void 0:i.call(s).top)&&void 0!==e?e:0)+d+57>window.innerHeight?"up":"down"}return this.openDirection},this.handleToggleOpen=()=>{if(!this.disabled&&(this.open=!this.open,this.open))if(this.filter)this.focusInputElement();else{const t=this.host.shadowRoot.querySelector("button");t&&t.focus()}},this.focusInputElement=()=>{this.inputElement&&this.inputElement.focus()},this.handleFilter=t=>{this.tdsInput.emit(t);const o=t.target.value.toLowerCase();this.filterQuery=o;const s=this.getChildren();""===o?(s.forEach((t=>(t.removeAttribute("hidden"),t))),this.filterResult=null):this.filterResult=s.filter((t=>(this.normalizeString(t.textContent).toLowerCase().includes(this.normalizeString(o).toLowerCase())?t.removeAttribute("hidden"):t.setAttribute("hidden",""),!t.hasAttribute("hidden")))).length},this.handleFilterReset=()=>{const t=this.filterQuery;this.filterQuery.length||this.reset(),this.inputElement.value="",this.handleFilter({target:{value:""}}),this.inputElement.focus(),this.internalValue="",this.tdsClear.emit({clearedValue:t})},this.handleFocus=()=>{this.open=!0,this.filterFocus=!0,this.inputElement&&(this.inputElement.value=""),this.filter&&this.handleFilter({target:{value:""}})},this.handleBlur=()=>{this.filterFocus=!1,this.inputElement&&(this.inputElement.value=this.getValue())},this.resetInput=()=>{this.host.querySelector("input")&&this.reset()},this.name=void 0,this.disabled=!1,this.helper=void 0,this.label=void 0,this.labelPosition=void 0,this.modeVariant=null,this.openDirection="auto",this.placeholder=void 0,this.size="lg",this.animation="slide",this.error=!1,this.multiselect=!1,this.filter=!1,this.normalizeText=!0,this.noResultText="No result",this.defaultValue=void 0,this.value=null,this.tdsAriaLabel=void 0,this.open=!1,this.internalValue=void 0,this.filterResult=void 0,this.filterFocus=void 0,this.internalDefaultValue=void 0,this.selectedOptions=[],this.filterQuery=""}handleValueChange(t){const o=this.normalizeValue(t);(function(t,o){return t.length!==o.length||t.some((t=>!o.includes(t)))})(o,this.selectedOptions)&&this.updateDropdownStateFromUser(o)}normalizeValue(t){return null==t||""===t?[]:this.multiselect?Array.isArray(t)?l(t):t.toString().split(",").filter((t=>""!==t)):Array.isArray(t)?[r(t[0])]:[r(t)]}updateDropdownStateInternal(t){this.updateDropdownState(t,!1)}updateDropdownStateFromUser(t){this.updateDropdownState(t,!0)}updateDropdownState(t,o=!0){const s=this.validateValues(t);this.selectedOptions=[...s],this.value=this.multiselect?this.selectedOptions:this.selectedOptions[0]||null,this.internalValue=this.getValue(),this.updateOptionElements(),this.updateDisplayValue(),o&&this.emitChange(),this.setValueAttribute()}validateValues(t){const o=this.getChildren();return o&&0!==o.length?t.filter((t=>{const s=o.some((o=>r(o.value)===r(t)));return s||console.warn(`Option with value "${t}" does not exist`),s})):(console.warn("No dropdown options found"),t)}updateOptionElements(){var t;null===(t=this.getChildren())||void 0===t||t.forEach((t=>{t.setSelected(this.selectedOptions.includes(r(t.value)))}))}updateDisplayValue(){this.internalValue=this.getSelectedChildrenLabels().join(", "),this.filter&&this.inputElement&&(this.inputElement.value=this.internalValue)}emitChange(){const t=this.multiselect?this.selectedOptions.join(","):this.selectedOptions[0]||null;this.tdsChange.emit({name:this.name,value:null!=t?t:null})}async setValue(t,o){let s;return s=Array.isArray(t)?l(t):[r(t)],this.updateDropdownStateFromUser(s),this.getSelectedChildren().map((t=>({value:t.value,label:t.textContent.trim()})))}async reset(){this.updateDropdownStateFromUser([])}async removeValue(t){const o=this.selectedOptions.filter((o=>o!==t));this.updateDropdownStateFromUser(o)}async focusElement(){if(this.filter)this.focusInputElement();else{const t=this.host.shadowRoot.querySelector("button");t&&t.focus()}this.handleFocus()}async close(){this.open=!1}async updateDisplay(){this.updateDisplayValue()}onAnyClick(t){this.open&&!t.composedPath().includes(this.host)&&(this.filter&&this.filterQuery&&this.tdsClear.emit({clearedValue:this.filterQuery}),this.open=!1)}onFocusIn(t){this.host.contains(t.target)&&(this.hasFocus||(this.hasFocus=!0,this.tdsFocus.emit(t)))}onFocusOut(t){const o=t.relatedTarget;!this.hasFocus||o&&this.host.contains(o)||(this.hasFocus=!1,this.handleBlur(),this.tdsBlur.emit(t))}async onKeyDown(t){var o;const{activeElement:s}=document;if(!s)return;const i=this.getChildren();if("ArrowDown"===t.key){const t=s.nextElementSibling?i.findIndex((t=>t===s.nextElementSibling)):0;i[((t,o)=>{if(void 0===t[o])return 0;for(let s=o;s<t.length;s++)if(!t[s].disabled)return s})(i,t)].focus()}else if("ArrowUp"===t.key)i[((t,o)=>{if(void 0===t[o])return t.length-1;for(let s=o;s>=0;s--)if(!t[s].disabled)return s})(i,s.nextElementSibling?this.getChildren().findIndex((t=>t===s.previousElementSibling)):0)].focus();else if("Escape"===t.key)if(this.open=!1,this.filter)null===(o=this.inputElement)||void 0===o||o.focus();else{const t=this.host.shadowRoot.querySelector("button");null==t||t.focus()}}handleOpenState(){this.filter&&this.multiselect&&(this.open||(this.inputElement.value=this.selectedOptions.length?this.getValue():"")),this.updateDropdownListInertState()}handleDefaultValueChange(t){null!=t&&(this.internalDefaultValue=r(t),this.setDefaultOption())}componentWillLoad(){if(null==this.value){if(null!=this.defaultValue){const t=r(this.defaultValue),o=this.multiselect?t.split(",").map(r):[t];this.updateDropdownStateInternal(o)}}else{const t=this.normalizeValue(this.value);this.updateDropdownStateInternal(t)}}handleSlotChange(){this.setDefaultOption()}normalizeString(t){return this.normalizeText?t.normalize("NFD").replace(/\p{Diacritic}/gu,""):t}async appendValue(t){this.updateDropdownStateFromUser(this.multiselect?[...this.selectedOptions,t]:[t])}componentDidRender(){const t=this.host.closest("form");t&&t.addEventListener("reset",this.resetInput),this.updateDropdownListInertState()}disconnectedCallback(){const t=this.host.closest("form");t&&t.removeEventListener("reset",this.resetInput)}updateDropdownListInertState(){this.dropdownList&&(this.open?this.dropdownList.removeAttribute("inert"):this.dropdownList.setAttribute("inert",""))}render(){((t,o,s,i)=>{let e=t.querySelector("input");t.querySelector("input")||(e=t.ownerDocument.createElement("input"),e.type="hidden",t.appendChild(e)),e.disabled=i,e.name=o,e.value=s||""})(this.host,this.name,this.selectedOptions.join(","),this.disabled);const t=this.label?`dropdown-label-${this.name||d()}`:void 0,o=this.helper?`dropdown-helper-${this.name||d()}`:void 0;return s(i,{key:"ebb4008f7e27e9f9de603b1dfeb5100f45f0e600",class:{[`tds-mode-variant-${this.modeVariant}`]:Boolean(this.modeVariant)}},this.label&&"outside"===this.labelPosition&&s("div",{key:"77f30a6ec80264fe89422b8f129e763d2fe2a64c",id:t,class:"label-outside "+(this.disabled?"disabled":"")},this.label),s("div",{key:"3d3d3ca87cae2df4f043feb1f6bdbf4482cc4223",class:{"dropdown-select":!0,[this.size]:!0,disabled:this.disabled}},this.filter?s("div",{class:{filter:!0,focus:this.filterFocus,disabled:this.disabled,error:this.error}},s("div",{class:"value-wrapper"},this.label&&"inside"===this.labelPosition&&this.placeholder&&s("div",{id:t,class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&s("div",{id:t,class:`\n label-inside-as-placeholder\n ${this.size}\n ${this.selectedOptions.length?"selected":""}\n `},this.label),s("input",{"aria-label":this.tdsAriaLabel,"aria-labelledby":t,"aria-describedby":o,"aria-disabled":this.disabled,ref:t=>this.inputElement=t,class:{placeholder:"inside"===this.labelPosition},type:"text",placeholder:this.filterFocus?"":this.placeholder,value:this.multiselect&&this.filterFocus?this.filterQuery:this.getValue(),disabled:this.disabled,onInput:t=>this.handleFilter(t),onFocus:()=>this.handleFocus(),onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)}})),s("tds-icon",{tabIndex:0,role:"button","aria-label":"Clear filter",svgTitle:"Clear filter",onClick:this.handleFilterReset,onKeyDown:t=>{"Enter"===t.key&&this.handleFilterReset()},class:{"clear-icon":!0,hide:!(this.open&&""!==this.inputElement.value)},name:"cross",size:"16px"}),s("tds-icon",{tdsAriaHidden:!0,role:"button","aria-label":"Open/Close dropdown",svgTitle:"Open/Close dropdown",onClick:this.handleToggleOpen,onKeyDown:t=>{"Enter"===t.key&&this.handleToggleOpen()},class:"menu-icon "+(this.open?"open":"closed"),name:"chevron_down",size:"16px"})):s("button",{"aria-label":this.tdsAriaLabel,"aria-labelledby":t,"aria-describedby":o,"aria-disabled":this.disabled,onClick:()=>this.handleToggleOpen(),onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)},class:`\n ${this.selectedOptions.length?"value":"placeholder"}\n ${this.open?"open":"closed"}\n ${this.error?"error":""}\n `,disabled:this.disabled},s("div",{class:`value-wrapper ${this.size}`},this.label&&"inside"===this.labelPosition&&this.placeholder&&s("div",{id:t,class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&s("div",{id:t,class:`\n label-inside-as-placeholder\n ${this.size}\n ${this.selectedOptions.length?"selected":""}\n `},this.label),s("div",{class:`placeholder ${this.size}`},this.selectedOptions.length?this.getValue():this.placeholder),s("tds-icon",{"aria-label":"Open/Close dropdown",svgTitle:"Open/Close dropdown",class:"menu-icon "+(this.open?"open":"closed"),name:"chevron_down",size:"16px"})))),s("div",{key:"48e96d8ecac8918e11c6e2c0e1321802b61dbf7d",role:"listbox","aria-label":this.tdsAriaLabel,inert:!this.open,"aria-orientation":"vertical","aria-multiselectable":this.multiselect,ref:t=>{this.dropdownList=t},class:{"dropdown-list":!0,[this.size]:!0,[this.getOpenDirection()]:!0,"label-outside":this.label&&"outside"===this.labelPosition,open:this.open,closed:!this.open,[`animation-enter-${this.animation}`]:"none"!==this.animation&&this.open,[`animation-exit-${this.animation}`]:"none"!==this.animation&&!this.open}},s("slot",{key:"d49f3a638a9f6b1b08e3489dffad27151c0c554f",onSlotchange:()=>this.handleSlotChange()}),0===this.filterResult&&""!==this.noResultText&&s("div",{key:"b38d308604e30fdb130d72295d2d3f7bf2fb9bd6",class:`no-result ${this.size}`},this.noResultText)),this.helper&&s("div",{key:"1f8160ac1f0ecdc0d4f29faa31c469a0bd04b0d6",id:o,class:{helper:!0,error:this.error,disabled:this.disabled}},this.error&&s("tds-icon",{key:"487fb6deb5bd27347b2cd4f607e5488543185894",name:"error",size:"16px"}),this.helper))}get host(){return e(this)}static get watchers(){return{value:["handleValueChange"],open:["handleOpenState"],defaultValue:["handleDefaultValueChange"]}}};n.style='@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;background-color:var(--tds-dropdown-bg)}: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)}';const h=class{constructor(s){t(this,s),this.tdsSelect=o(this,"tdsSelect",6),this.tdsFocus=o(this,"tdsFocus",6),this.tdsBlur=o(this,"tdsBlur",6),this.parentElement=null,this.label="",this.componentWillRender=()=>{var t,o,s;this.host.parentElement&&(this.parentElement="TDS-DROPDOWN"===(null===(t=this.host.parentElement)||void 0===t?void 0:t.tagName)?this.host.parentElement:this.host.getRootNode().host,this.parentElement&&(this.multiselect=null!==(o=this.parentElement.multiselect)&&void 0!==o&&o,this.size=this.parentElement.size||"lg"),this.label=(null===(s=this.host.textContent)||void 0===s?void 0:s.trim())||"")},this.handleSingleSelect=()=>{this.disabled||(this.selected=!0,this.parentElement.appendValue(this.internalValue),this.parentElement.close(),this.tdsSelect.emit({value:this.internalValue,selected:this.selected}))},this.handleMultiselect=t=>{this.disabled||(t.detail.checked?(this.parentElement.appendValue(this.internalValue),this.selected=!0,this.tdsSelect.emit({value:this.internalValue,selected:this.selected})):(this.parentElement.removeValue(this.internalValue),this.selected=!1,this.tdsSelect.emit({value:this.internalValue,selected:this.selected})),t.stopPropagation())},this.handleFocus=t=>{this.parentElement||this.tdsFocus.emit(t)},this.handleBlur=t=>{this.parentElement||this.tdsBlur.emit(t)},this.value=void 0,this.internalValue=void 0,this.disabled=!1,this.tdsAriaLabel=void 0,this.selected=!1,this.multiselect=!1,this.size="lg"}async setSelected(t){this.selected=t}valueWatcher(t){this.internalValue=r(t)}componentWillLoad(){this.internalValue=r(this.value)}render(){return s(i,{key:"a92f443fccb282309c20c52b9214b6b03b03e7ee"},s("div",{key:"b5dcc6cb5cb846adfb79f1e80e39e84ab85022c5",class:`dropdown-option\n ${this.size}\n ${this.selected?"selected":""}\n ${this.disabled?"disabled":""}\n `},this.multiselect?s("div",{class:"multiselect",onKeyDown:t=>{"Escape"===t.key&&this.parentElement.close()}},s("tds-checkbox",{onTdsChange:t=>{this.handleMultiselect(t)},onTdsBlur:t=>{t.stopPropagation()},disabled:this.disabled,checked:this.selected,tdsAriaLabel:this.tdsAriaLabel,class:{[this.size]:!0}},s("div",{slot:"label"},s("slot",null)))):s("button",{role:"option","aria-disabled":this.disabled,"aria-selected":this.selected,"aria-label":this.tdsAriaLabel,onClick:()=>{this.handleSingleSelect()},onFocus:t=>this.handleFocus(t),onBlur:t=>this.handleBlur(t),disabled:this.disabled,class:this.size},s("div",{class:"single-select"},s("slot",null),this.selected&&s("tds-icon",{name:"tick",size:"16px"})))))}static get delegatesFocus(){return!0}get host(){return e(this)}static get watchers(){return{value:["valueWatcher"]}}};h.style=":host{box-sizing:border-box;display:block;background-color:var(--tds-dropdown-option-background)}:host *{box-sizing:border-box}:host .dropdown-option{color:var(--tds-dropdown-option-color);border-bottom:1px solid var(--tds-dropdown-option-border);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);overflow-wrap:anywhere;transition:background-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-option.selected{background-color:var(--tds-dropdown-option-background-selected)}:host .dropdown-option.disabled{color:var(--tds-dropdown-option-color-disabled)}:host .dropdown-option button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:inset 0 0 0 3px var(--tds-white);outline-offset:-2px}:host .dropdown-option button{all:unset;width:100%}:host .dropdown-option button.lg{padding:19px 0 20px}:host .dropdown-option button.md{padding:15px 0 16px}:host .dropdown-option button.sm{padding:11px 0 12px}:host .dropdown-option button.xs{padding:7px 0 8px}:host .dropdown-option button .single-select{display:flex;align-items:center;justify-content:space-between;padding:0 16px}:host .dropdown-option .multiselect{width:100%;height:100%}:host .dropdown-option .multiselect tds-checkbox{display:flex;height:100%;width:100%}:host .dropdown-option .multiselect tds-checkbox.lg{padding:15px 16px 16px}:host .dropdown-option .multiselect tds-checkbox.md{padding:11px 16px 12px}:host .dropdown-option .multiselect tds-checkbox.sm{padding:7px 16px 8px}:host .dropdown-option .multiselect tds-checkbox.xs{padding:7px 16px 8px}:host .dropdown-option:hover{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:pointer}:host .dropdown-option:hover.disabled{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:not-allowed}:host([hidden]){display:none}";export{n as tds_dropdown,h as tds_dropdown_option}
@@ -1 +1 @@
1
- import{r as t,h as o,H as a,g as e}from"./p-2049fab2.js";import{h as d}from"./p-ae110fc2.js";const s=class{constructor(o){t(this,o),this.copyrightText=`Copyright © ${(new Date).getFullYear()} Scania`,this.modeVariant=null}render(){const t=d("top",this.host),e=d("start",this.host),s=d("end",this.host),i=d("copyright",this.host);return o(a,{key:"1970dca286e8a105a4155f1d72ff8abeee8dda12",class:{[`tds-mode-variant-${this.modeVariant}`]:null!==this.modeVariant}},o("footer",{key:"ba1b73a9e3cda8b856560ee09e84a8f54d432e5f"},t&&o("slot",{key:"d656a404027d1fe57cf89673316d47a80cc0d494",name:"top"}),o("div",{key:"ad0f0e1c7f34c8e2a71916a6f6715d3dc3ad0a07",class:"footer-main"},(e||s)&&o("div",{key:"473888e3515a48364f07a2c7a30b518a4e13ab4f",class:"footer-main-top"},e&&o("slot",{key:"dff42968e4cbfadc88ab70bd753d612b4f172769",name:"start"}),s&&o("slot",{key:"2015c7102206c9023324e3f4b4ac8a86422003e4",name:"end"})),o("div",{key:"0af4fd04d0643dcffc07a4f55d88220691bf72a1",class:"footer-main-bottom"},o("small",{key:"e11f206cc48f54547c62eaf25f7ab1a98e521424",class:"copyright"},i?o("slot",{name:"copyright"}):this.copyrightText),o("div",{key:"a933b570ae2778b2034fc61e8efcfa3f04bcb1e0",class:"brand"},o("p",{key:"cc6d2913da4c97ebc757534b2167d9544c909902"},"Scania"))))))}get host(){return e(this)}};s.style=":host{display:block}:host slot[name=top]::slotted(*){box-sizing:border-box;background-color:var(--tds-footer-top-background);padding:40px;display:grid;grid-template-columns:repeat(4, 1fr);row-gap:40px;width:100%}:host .footer-main{background-color:var(--tds-footer-main-background);padding:0 40px}:host .footer-main-top{padding:40px 0;display:flex;justify-content:space-between}:host slot[name=start],:host slot[name=end]{display:flex}:host slot[name=start]::slotted(*),:host slot[name=end]::slotted(*){display:flex;column-gap:24px}:host slot[name=end]{margin-left:auto}:host .footer-main-bottom{padding:40px 0;display:flex;justify-content:space-between;border-top:1px solid var(--tds-footer-main-divider)}:host .footer-main-bottom small.copyright{margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-footer-main-copyright)}:host .footer-main-bottom .brand{background-image:var(--tds-background-image-scania-wordmark-white-svg-local), var(--tds-background-image-scania-wordmark-white-svg);background-repeat:no-repeat;background-size:117px;background-position:right;width:117px;height:20px}:host .footer-main-bottom .brand p{color:transparent;padding:0;margin:0;height:100%;visibility:hidden}@media all and (max-width: 992px){:host slot[name=top]::slotted(*){display:block;width:100%;padding:0}:host .footer-main{padding:0 24px}:host .footer-main-top{flex-direction:column;row-gap:48px;padding:24px 0}:host slot[name=end]::slotted(*){flex-direction:row;gap:8px}:host slot[name=end]{margin-left:unset}:host .footer-main-bottom{flex-direction:column;padding-bottom:32px}:host .footer-main-bottom p.copyright{padding-bottom:96px}:host .footer-main-bottom .brand{width:100%}}";export{s as tds_footer}
1
+ import{r as t,h as o,H as a,g as e}from"./p-2049fab2.js";import{h as d}from"./p-ae110fc2.js";const s=class{constructor(o){t(this,o),this.copyrightText=`Copyright © ${(new Date).getFullYear()} Scania`,this.modeVariant=null}render(){const t=d("top",this.host),e=d("start",this.host),s=d("end",this.host),i=d("copyright",this.host);return o(a,{key:"e3dee2f5ac2caebf6a9585b81cdbdda442562c2b",class:{[`tds-mode-variant-${this.modeVariant}`]:null!==this.modeVariant}},o("footer",{key:"a243b3b440fa8cffc51bea0def2c0bd07288cf96"},t&&o("slot",{key:"db60db3d12a0c34fdb9db66be986d541633e1d9b",name:"top"}),o("div",{key:"1d2881f8acc0789f8769604d72ebdef99961e380",class:"footer-main"},(e||s)&&o("div",{key:"c8a1cb2639700b51b39355163b0e8b26d1f82855",class:"footer-main-top"},e&&o("slot",{key:"e343837536cc838b2382d946b8703821e627e6d1",name:"start"}),s&&o("slot",{key:"a181a6656e88f36b8d724d8ccdab33804bf51f0d",name:"end"})),o("div",{key:"64178cb80d7e0b38d2d5f8a625c222772fd64741",class:"footer-main-bottom"},o("small",{key:"c9b3c7337d031cf4a18d5fad56938d490a0dac1e",class:"copyright"},i?o("slot",{name:"copyright"}):this.copyrightText),o("div",{key:"926e8672dd9d00ae5d0c951d506dc506ea698ed2",class:"brand"},o("p",{key:"4e110423f7b958b3d427d88016ab18d02c6c8edf"},"Scania"))))))}get host(){return e(this)}};s.style=":host{display:block}:host slot[name=top]::slotted(*){box-sizing:border-box;background-color:var(--tds-footer-top-background);padding:40px;display:grid;grid-template-columns:repeat(4, 1fr);row-gap:40px;width:100%}:host .footer-main{background-color:var(--tds-footer-main-background);padding:0 40px}:host .footer-main-top{padding:40px 0;display:flex;justify-content:space-between}:host slot[name=start],:host slot[name=end]{display:flex}:host slot[name=start]::slotted(*),:host slot[name=end]::slotted(*){display:flex;column-gap:24px}:host slot[name=end]{margin-left:auto}:host .footer-main-bottom{padding:40px 0;display:flex;justify-content:space-between;border-top:1px solid var(--tds-footer-main-divider)}:host .footer-main-bottom small.copyright{margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-footer-main-copyright)}:host .footer-main-bottom .brand{background-image:var(--tds-background-image-scania-wordmark-white-svg-local), var(--tds-background-image-scania-wordmark-white-svg);background-repeat:no-repeat;background-size:117px;background-position:right;width:117px;height:20px}:host .footer-main-bottom .brand p{color:transparent;padding:0;margin:0;height:100%;visibility:hidden}@media all and (max-width: 992px){:host slot[name=top]::slotted(*){display:block;width:100%;padding:0}:host .footer-main{padding:0 24px}:host .footer-main-top{flex-direction:column;row-gap:48px;padding:24px 0}:host slot[name=end]::slotted(*){flex-direction:row;gap:8px}:host slot[name=end]{margin-left:unset}:host .footer-main-bottom{flex-direction:column;padding-bottom:32px}:host .footer-main-bottom p.copyright{padding-bottom:96px}:host .footer-main-bottom .brand{width:100%}}";export{s as tds_footer}
@@ -0,0 +1 @@
1
+ import{r as t,c as o,h as s,H as d,g as a}from"./p-2049fab2.js";import{h as i}from"./p-ae110fc2.js";import{g as e}from"./p-11648030.js";const r=class{constructor(s){t(this,s),this.tdsClose=o(this,"tdsClose",7),this.tdsOpen=o(this,"tdsOpen",7),this.handleClose=t=>{const o=this.tdsClose.emit(t);this.returnFocusOnClose(),o.defaultPrevented||(this.isShown=!1)},this.handleShow=()=>{this.tdsOpen.emit().defaultPrevented||(this.isShown=!0)},this.handleOverlayClick=t=>{const o=t.composedPath()[0];("tds-modal-close"===o.classList[0]||"tds-modal-backdrop"===o.classList[0]&&!1===this.prevent)&&this.handleClose(t)},this.handleReferenceElementClick=t=>{this.isShown?this.handleClose(t):this.handleShow()},this.setShowButton=()=>{var t;if(this.selector||this.referenceEl){const o=null!==(t=this.referenceEl)&&void 0!==t?t:document.querySelector(this.selector);o&&this.initializeReferenceElement(o)}},this.initializeReferenceElement=t=>{t&&t.addEventListener("click",this.handleReferenceElementClick)},this.header=void 0,this.prevent=!1,this.size="md",this.actionsPosition="static",this.selector=void 0,this.referenceEl=void 0,this.show=void 0,this.closable=!0,this.tdsAlertDialog="dialog",this.isShown=!1,this.activeElementIndex=0}async showModal(){this.isShown=!0,requestAnimationFrame((()=>{const t=this.getFocusableElements();t.length>0&&(t[0].focus(),this.activeElementIndex=0)}))}async closeModal(){this.isShown=!1,this.returnFocusOnClose()}async isOpen(){return this.isShown}connectedCallback(){void 0===this.closable&&(this.closable=!0),void 0!==this.show&&(this.isShown=this.show),this.initializeModal(),this.header&&i("header",this.host)&&console.warn("Tegel Modal component: Using both header prop and header slot might break modal's design. Please use just one of them. "),this.selector||this.referenceEl||console.warn('Tegel Modal: Missing focus origin. Please provide either a "referenceEl" or a "selector" to ensure focus returns to the element that opened the modal. If the modal is opened programmatically, this message can be ignored.')}componentWillLoad(){this.initializeModal()}disconnectedCallback(){this.cleanupModal()}async initializeModal(){this.setDismissButtons(),this.setShowButton()}async cleanupModal(){var t;if(this.selector||this.referenceEl){const o=null!==(t=this.referenceEl)&&void 0!==t?t:document.querySelector(this.selector);o&&o.removeEventListener("click",this.handleReferenceElementClick)}this.host.querySelectorAll("[data-dismiss-modal]").forEach((t=>{t.removeEventListener("click",this.handleClose)}))}returnFocusOnClose(){var t;let o=null!==(t=this.referenceEl)&&void 0!==t?t:document.querySelector(this.selector);if(!o)return;const s=["BUTTON","A","INPUT"];if(s.includes(o.tagName))o.focus();else{const t=o.querySelector(s.join(","));t&&t.focus()}}getFocusableElements(){const t=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return[...Array.from(this.host.shadowRoot.querySelectorAll(t)),...Array.from(this.host.querySelectorAll(t))]}handleFocusTrap(t){if("Escape"===t.key&&this.isShown&&!this.prevent)return void this.handleClose(t);if(!this.isShown)return;if("Tab"!==t.key)return;const o=this.getFocusableElements();0!==o.length&&(t.preventDefault(),t.shiftKey&&(this.activeElementIndex-=1,-1===this.activeElementIndex&&(this.activeElementIndex=o.length-1)),t.shiftKey||(this.activeElementIndex+=1,this.activeElementIndex===o.length&&(this.activeElementIndex=0)),o[this.activeElementIndex].focus())}setDismissButtons(){this.host.querySelectorAll("[data-dismiss-modal]").forEach((t=>{t.addEventListener("click",this.handleClose)}))}render(){const t=i("header",this.host),o=i("actions",this.host),a=this.header?`tds-modal-header-${e()}`:void 0,r=`tds-modal-body-${e()}`;return s(d,{key:"4a220f8d1156cd7ef30ba0f77e33f6b368a71c5d",role:this.tdsAlertDialog,"aria-modal":"true","aria-describedby":r,"aria-labelledby":a,class:{show:this.isShown,hide:!this.isShown},onClick:t=>this.handleOverlayClick(t)},s("div",{key:"2129611789e7d9c1e32731f59100f75ff4e58800",class:"tds-modal-backdrop"}),s("div",{key:"cce280887ce68ab5471cd939847c8f23703e6a11",class:`tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}`},s("div",{key:"2629204523dff0d2afefab238514db74b9d1a93b",id:a,class:"header"},this.header&&s("div",{key:"040ddd22c7b782d77e07cc1ff4cd1fdf0d508cbe",class:"header-text"},this.header),t&&s("slot",{key:"7b15247fea7c3ab2986e453b98e7a7f9ccff943f",name:"header"}),this.closable&&s("button",{key:"67e09f9f95ad58e02c1f9adb9883af4a1c16f837",class:"tds-modal-close","aria-label":"close",onClick:t=>this.handleClose(t)},s("tds-icon",{key:"52694db7eb7dc40ca2ea8aeb3e13611f899177a8",name:"cross",size:"20px"}))),s("div",{key:"b7fedc44fae5a964399f6b63fad96acaba9263a1",id:r,class:"body"},s("slot",{key:"d60cbee2a55a487f738aa9a741d8b1e0cb74484e",name:"body"})),o&&s("slot",{key:"c969e1f820a4f4ecfab84fe3349eee0233710f05",name:"actions"})))}get host(){return a(this)}};r.style=":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}.tds-modal{box-sizing:border-box;box-shadow:var(--tds-modal-box-shadow);background-color:var(--background-elevation-layer-02);margin:auto;position:relative;border-radius:var(--radius-narrow);max-height:85vh;overflow-y:auto;pointer-events:auto}.tds-modal *{box-sizing:border-box}.tds-modal:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}.tds-modal::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.tds-modal::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.tds-modal::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.tds-modal::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.tds-modal{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal__actions-sticky{overflow:hidden;display:flex;flex-direction:column}.tds-modal__actions-sticky .body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{bottom:-1px;left:0;right:0;background-color:var(--background-elevation-layer-02);padding:24px 16px 16px;display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--background-elevation-layer-02);display:flex;gap:16px;padding:24px 16px 16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding:16px;position:sticky;top:0;background-color:var(--background-elevation-layer-02);z-index:1}.header,slot[name=header]::slotted(*){font-family:var(--headline-05-font-family);font-size:var(--headline-05-font-size);line-height:var(--headline-05-line-height);font-weight:var(--headline-05-font-weight);letter-spacing:var(--headline-05-letter-spacing);text-transform:var(--headline-05-text-transform);color:var(--foreground-text-strong);margin:0;flex:1}.body{font-family:var(--body-01-font-family);font-size:var(--body-01-font-size);line-height:var(--body-01-line-height);font-weight:var(--body-01-font-weight);letter-spacing:var(--body-01-letter-spacing);text-transform:var(--body-01-text-transform);color:var(--foreground-text-strong);overflow-y:visible;padding:0 16px 16px}.body:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}.body::-webkit-scrollbar{width:var(--tds-scrollbar-width)}.body::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.body::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.body::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.body{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--tds-modal-backdrop-background);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--foreground-text-strong);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}@media (min-width: 320px){.tds-modal-close{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close{margin-left:48px}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:16px}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:48px}}.tds-modal-close-btn svg{fill:var(--foreground-text-strong)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}";export{r as tds_modal}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,H as a,g as d}from"./p-2049fab2.js";const o=["multiselect","expandableRows","verticalDividers","compactDesign","noMinWidth"],i=class{constructor(s){t(this,s),this.tdsSelectAll=e(this,"tdsSelectAll",6),this.allSelected=!1,this.selected=void 0,this.disabled=!1,this.indeterminate=!1,this.multiselect=!1,this.expandableRows=!1,this.mainCheckboxSelected=!1,this.mainExpendSelected=!1,this.verticalDividers=!1,this.compactDesign=!1,this.noMinWidth=!1,this.whiteBackground=!1,this.enableToolbarDesign=!1,this.tableId=""}internalTdsPropChangeListener(t){this.tableId===t.detail.tableId&&t.detail.changed.filter((t=>o.includes(t))).forEach((e=>{if(void 0===this[e])throw new Error(`Table prop is not supported: ${e}`);this[e]=t.detail[e]}))}internalTdsRowExpandedListener(t){this.tableId===t.detail[0]&&setTimeout((()=>{this.bodyExpandClicked()}),100)}bodyExpandClicked(){const t=this.host.parentElement.querySelector("tds-table-body").getElementsByClassName("tds-table__row-extend--active").length,e=this.host.parentElement.querySelector("tds-table-body").getElementsByTagName("tds-table-body-row-expendable").length;this.mainExpendSelected=e===t}connectedCallback(){this.tableEl=this.host.closest("tds-table"),this.tableId=this.tableEl.tableId}componentWillLoad(){o.forEach((t=>{this[t]=this.tableEl[t]}))}componentWillRender(){this.enableToolbarDesign=this.host.closest("tds-table").getElementsByTagName("tds-table-toolbar").length>=1}async handleCheckboxChange(t){this.allSelected=t.detail.checked,this.tdsSelectAll.emit({tableId:this.tableId,checked:t.detail.checked,selectedRows:await this.tableEl.getSelectedRows()})}render(){return s(a,{key:"6c1cc431846a627cab836e62a551f9f5d6558a9d",class:{"tds-table--compact":this.compactDesign,"tds-table--divider":this.verticalDividers,"tds-table--toolbar-available":this.enableToolbarDesign}},s("tr",{key:"fe66a0019ffef72437ef0312e07d8e23b0c8f728"},this.multiselect&&s("th",{key:"a132d706ef3650e6909a2b1bd90ed51b53a8fe02",class:"tds-table__header-cell tds-table__header-cell--checkbox"},s("div",{key:"a4a62796419d0f77a9a9b035a2493ec7cc184e9f",class:"tds-form-label tds-form-label--table"},s("tds-checkbox",{key:"2b9e308d8098b8e2825936f6ff2ab0e1ec0e8897",checked:this.allSelected||this.selected,disabled:this.disabled,indeterminate:this.indeterminate,onTdsChange:t=>this.handleCheckboxChange(t)}))),this.expandableRows&&s("th",{key:"916a17bb35705db77de44bee119c579dd55c2d8f",class:"tds-table__header-cell tds-table__header-cell--checkbox"}),s("slot",{key:"79d44597fcb6fa6d2e94197c57a1c9dded7e9f3d"})))}get host(){return d(this)}};i.style=":host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host ::slotted(tds-header-cell:hover){background-color:var(--tds-table-header-background-hover)}:host(.tds-table--compact) .tds-table__header-cell--checkbox{height:32px}:host(.tds-table--compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__header-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--toolbar-available) .tds-table__header-cell--checkbox{border-top-left-radius:0}";export{i as tds_table_header}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as o,g as e}from"./p-2049fab2.js";const h=class{constructor(i){t(this,i),this.tdsChange=s(this,"tdsChange",7),this.navWrapperElement=null,this.componentWidth=0,this.buttonsWidth=0,this.scrollWidth=0,this.clickHandlers=new WeakMap,this.addResizeObserver=()=>{new ResizeObserver((t=>{t.forEach((t=>{const s=t.contentRect.width;let i=0;Array.from(this.host.children).forEach((t=>{const s=window.getComputedStyle(t);i+=t.clientWidth+parseFloat(s.marginLeft)+parseFloat(s.marginRight)})),this.componentWidth=s,this.buttonsWidth=i,this.scrollWidth=i-s,this.updateScrollButtons()}))})).observe(this.navWrapperElement)},this.addEventListenerToTabs=()=>{this.children=Array.from(this.host.children),this.children.map(((t,s)=>{const i=()=>{t.disabled||this.tdsChange.emit({selectedTabIndex:this.children.indexOf(t)}).defaultPrevented||(this.children.forEach((t=>t.setSelected(!1))),t.setSelected(!0),this.selectedIndex=s)};return t.addEventListener("click",i),this.clickHandlers.set(t,i),t}))},this.removeEventListenerFromTabs=()=>{this.children.forEach((t=>{const s=this.clickHandlers.get(t);s&&(t.removeEventListener("click",s),this.clickHandlers.delete(t))}))},this.modeVariant="primary",this.defaultSelectedIndex=0,this.selectedIndex=void 0,this.tdsScrollLeftAriaLabel="Scroll left",this.tdsScrollRightAriaLabel="Scroll right",this.leftPadding=32,this.showLeftScroll=!1,this.showRightScroll=!1}async selectTab(t){if(t<0||t>=this.children.length)throw new Error("Tab index out of bounds");return this.children=Array.from(this.host.children),this.children[t].disabled||(this.children.forEach((t=>t.setSelected(!1))),this.children=this.children.map(((s,i)=>(i===t&&(s.setSelected(!0),this.selectedIndex=t),s)))),{selectedTabIndex:this.selectedIndex}}async reinitialize(){this.handleSlotChange()}handleSelectedIndexUpdate(){this.children=Array.from(this.host.children).map((t=>(t.setSelected(!1),t))),this.children[this.selectedIndex].setSelected(!0)}scrollRight(){this.navWrapperElement.scrollLeft=this.navWrapperElement.scrollLeft+this.buttonsWidth,this.evaluateScrollButtons()}scrollLeft(){this.navWrapperElement.scrollLeft=this.navWrapperElement.scrollLeft-this.buttonsWidth,this.evaluateScrollButtons()}evaluateScrollButtons(){const t=this.navWrapperElement.scrollLeft;this.showRightScroll=t<=this.scrollWidth,this.showLeftScroll=t>0}initializeTabs(){this.children=Array.from(this.host.children),this.children.forEach((t=>{t.classList.remove("last"),t.classList.remove("first")})),this.children[0].classList.add("first"),this.children[this.children.length-1].classList.add("last")}initializeSelectedTab(){void 0===this.selectedIndex?(this.addEventListenerToTabs(),this.children[this.defaultSelectedIndex].setSelected(!0),this.selectedIndex=this.defaultSelectedIndex):this.children[this.selectedIndex].setSelected(!0),this.tdsChange.emit({selectedTabIndex:this.selectedIndex})}updateScrollButtons(){this.buttonsWidth>this.componentWidth?this.evaluateScrollButtons():(this.showLeftScroll=!1,this.showRightScroll=!1)}applyCustomLeftPadding(){this.navWrapperElement&&(this.navWrapperElement.style.paddingLeft=`${this.leftPadding}px`)}handleSlotChange(){this.initializeTabs(),this.addEventListenerToTabs(),this.initializeSelectedTab(),this.updateScrollButtons(),this.addResizeObserver(),this.applyCustomLeftPadding()}connectedCallback(){this.initializeTabs()}componentDidLoad(){this.initializeSelectedTab()}componentDidRender(){this.updateScrollButtons(),this.addResizeObserver()}disconnectedCallback(){this.removeEventListenerFromTabs()}render(){return i(o,{key:"f33abd9071c85c0651a3ab93e3996ec44717e325",role:"tablist",class:this.modeVariant?`tds-mode-variant-${this.modeVariant}`:""},i("div",{key:"8a5233b2a941a3a1e72dc45f93015b5e606663a8",class:"wrapper",ref:t=>{this.navWrapperElement=t},style:{paddingLeft:`${this.leftPadding}px`}},i("button",{key:"f2a8051863cfa93f8b2a5c562fc5ebefcc36b195","aria-label":this.tdsScrollLeftAriaLabel,class:"scroll-left-button "+(this.showLeftScroll?"show":""),onClick:()=>this.scrollLeft(),disabled:!this.showLeftScroll},i("tds-icon",{key:"a93d1cb8ddc5486bbb15449c328a25f6e8e2b4cd",name:"chevron_left",size:"20px"})),i("slot",{key:"e5b096420d72d12c861730fd9829baeba7cce625",onSlotchange:()=>this.handleSlotChange()}),i("button",{key:"f154a7b6553fe77e3f09da314403db5326df8e21","aria-label":this.tdsScrollRightAriaLabel,class:"scroll-right-button "+(this.showRightScroll?"show":""),onClick:()=>this.scrollRight(),disabled:!this.showRightScroll},i("tds-icon",{key:"6832c693ab8a446a629788894f792f571c09cbe3",name:"chevron_right",size:"20px"}))))}get host(){return e(this)}static get watchers(){return{selectedIndex:["handleSelectedIndexUpdate"]}}};h.style=':host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:" ";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus-visible::before,:host .scroll-left-button:focus-visible::before{content:"";position:absolute;inset:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button:focus-visible,:host .scroll-left-button:focus-visible{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}';export{h as tds_inline_tabs}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,H as s,g as t}from"./p-2049fab2.js";const o=class{constructor(a){e(this,a)}render(){return this.host.querySelector("a").hasAttribute("aria-label")||console.warn("Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot"),a(s,{key:"b3f7cf4d264f2046844814a80f7b9b6a920b1a1e"},a("tds-header-item",{key:"0be33ffe57b94442fac4f1e686f87fb1e2f1911d"},a("slot",{key:"3f7f636bc5f7c1b2ee009c774337d0b41c45e477"})))}get host(){return t(this)}};o.style=":host tds-header-item{display:none}:host tds-header-item ::slotted(*){background-image:var(--tds-background-image-scania-symbol-svg-local), var(--tds-background-image-scania-symbol-svg);background-size:30px auto;background-position:center;background-repeat:no-repeat}@media (min-width: 992px){:host tds-header-item{display:block}}";export{o as tds_header_brand_symbol}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as o,g as e}from"./p-2049fab2.js";const h=class{constructor(i){t(this,i),this.tdsChange=s(this,"tdsChange",7),this.navWrapperElement=null,this.componentWidth=0,this.buttonsWidth=0,this.scrollWidth=0,this.clickHandlers=new WeakMap,this.addResizeObserver=()=>{new ResizeObserver((t=>{t.forEach((t=>{const s=t.contentRect.width;let i=0;Array.from(this.host.children).forEach((t=>{const s=window.getComputedStyle(t);i+=t.clientWidth+parseFloat(s.marginLeft)+parseFloat(s.marginRight)})),this.componentWidth=s,this.buttonsWidth=i,this.scrollWidth=i-s,this.updateScrollButtons()}))})).observe(this.navWrapperElement)},this.addEventListenerToTabs=()=>{this.children=Array.from(this.host.children),this.children.map(((t,s)=>{const i=()=>{t.disabled||this.tdsChange.emit({selectedTabIndex:this.children.indexOf(t)}).defaultPrevented||(this.children.forEach((t=>t.setSelected(!1))),t.setSelected(!0),this.selectedIndex=s)};return t.addEventListener("click",i),this.clickHandlers.set(t,i),t}))},this.removeEventListenerFromTabs=()=>{this.children.forEach((t=>{const s=this.clickHandlers.get(t);s&&(t.removeEventListener("click",s),this.clickHandlers.delete(t))}))},this.modeVariant="primary",this.defaultSelectedIndex=0,this.selectedIndex=void 0,this.leftPadding=32,this.tdsScrollLeftAriaLabel="Scroll left",this.tdsScrollRightAriaLabel="Scroll right",this.showLeftScroll=!1,this.showRightScroll=!1}async selectTab(t){return this.children[t].disabled||(this.children.forEach((t=>t.setSelected(!1))),this.children=this.children.map(((s,i)=>(i===t&&(s.setSelected(!0),this.selectedIndex=t),s)))),{selectedTabIndex:this.selectedIndex}}async reinitialize(){this.handleSlotChange()}handleSelectedIndexUpdate(){this.children=Array.from(this.host.children).map((t=>(t.setSelected(!1),t))),this.children[this.selectedIndex].setSelected(!0)}scrollRight(){this.navWrapperElement.scrollLeft=this.navWrapperElement.scrollLeft+this.buttonsWidth,this.evaluateScrollButtons()}scrollLeft(){this.navWrapperElement.scrollLeft=this.navWrapperElement.scrollLeft-this.buttonsWidth,this.evaluateScrollButtons()}evaluateScrollButtons(){const t=this.navWrapperElement.scrollLeft;this.showRightScroll=t<=this.scrollWidth,this.showLeftScroll=t>0}initializeTabs(){this.children=Array.from(this.host.children),this.children.forEach((t=>{t.classList.remove("last"),t.classList.remove("first")})),this.children.length>0&&(this.children[0].classList.add("first"),this.children[this.children.length-1].classList.add("last"))}initializeSelectedTab(){void 0===this.selectedIndex?(this.addEventListenerToTabs(),this.children[this.defaultSelectedIndex].setSelected(!0),this.selectedIndex=this.defaultSelectedIndex):this.children[this.selectedIndex].setSelected(!0),this.tdsChange.emit({selectedTabIndex:this.selectedIndex})}updateScrollButtons(){this.buttonsWidth>this.componentWidth?this.evaluateScrollButtons():(this.showLeftScroll=!1,this.showRightScroll=!1)}applyCustomLeftPadding(){this.navWrapperElement&&(this.navWrapperElement.style.paddingLeft=`${this.leftPadding}px`)}handleSlotChange(){this.initializeTabs(),this.addEventListenerToTabs(),this.initializeSelectedTab(),this.updateScrollButtons(),this.addResizeObserver(),this.applyCustomLeftPadding()}connectedCallback(){this.initializeTabs()}componentDidLoad(){this.initializeSelectedTab()}componentDidRender(){this.updateScrollButtons(),this.addResizeObserver()}disconnectedCallback(){this.removeEventListenerFromTabs()}render(){return i(o,{key:"cdf0eff9acca827e372a58f5721ff9279b0360f4",role:"tablist",class:{[`tds-mode-variant-${this.modeVariant}`]:null!==this.modeVariant}},i("div",{key:"a8fafbc680fbdb0450db591e7f3ffda864946684",class:"wrapper",ref:t=>{this.navWrapperElement=t},style:{paddingLeft:`${this.leftPadding}px`}},i("button",{key:"402e0ca33fa71dced98cf8d86e26e3dba312fa7d","aria-label":this.tdsScrollLeftAriaLabel,class:{"scroll-left-button":!0,show:this.showLeftScroll},onClick:()=>this.scrollLeft(),disabled:!this.showLeftScroll},i("tds-icon",{key:"2849a2da7c6ef133d173756778400baa2a51d58d",name:"chevron_left",size:"20px"})),i("slot",{key:"64081b7518abde00c8f1d80ff414849bccd1cb0b",onSlotchange:()=>this.handleSlotChange()}),i("button",{key:"916ba6b9107982f8b8763920bdf4e2bd99127943","aria-label":this.tdsScrollRightAriaLabel,class:{"scroll-right-button":!0,show:this.showRightScroll},onClick:()=>this.scrollRight(),disabled:!this.showRightScroll},i("tds-icon",{key:"26f84d67bc4b1eb04668464a74b655db1953d999",name:"chevron_right",size:"20px"}))))}get host(){return e(this)}static get watchers(){return{selectedIndex:["handleSelectedIndexUpdate"]}}};h.style=':host{box-sizing:border-box;display:flex;background-color:var(--tds-navigation-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:" ";display:block;border-bottom:1px solid var(--tds-navigation-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus::before,:host .scroll-left-button:focus::before{content:"";position:absolute;left:3px;right:3px;top:3px;bottom:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}';export{h as tds_navigation_tabs}
@@ -0,0 +1 @@
1
+ import{r as e,h as s,H as t,g as a}from"./p-2049fab2.js";const d=class{constructor(s){e(this,s),this.collapsed=!1}collapsedSideMenuEventHandler(e){this.collapsed=e.detail.collapsed}connectedCallback(){var e;this.sideMenuEl=this.host.closest("tds-side-menu"),this.collapsed=null===(e=this.sideMenuEl)||void 0===e?void 0:e.collapsed}render(){return s(t,{key:"38e9f561720b3a68528ae69878138ea8e9085e3c",role:"list","aria-expanded":this.collapsed?"false":"true"},s("div",{key:"9f2e5ea13fe7f4483ae07d5a58208b27a64bbd1b",class:{"state-collapsed":this.collapsed}},s("slot",{key:"10543e9547fc64683e4f96e0ecb72ff82e3ed3ad"})))}get host(){return a(this)}};d.style=":host{display:block;width:190px}:host [role=list]{padding:0;margin:0;list-style:none;border-radius:none;background-color:var(--tds-header-app-launcher-menu-bg)}:host .state-collapsed ::slotted(*){border-bottom:1px solid var(--tds-sidebar-side-menu-bottom-menu-border-top)}";export{d as tds_side_menu_dropdown_list}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as e,g as i}from"./p-2049fab2.js";import{g as o,i as l}from"./p-9332c225.js";import"./p-52bf0fdf.js";const a=class{constructor(s){t(this,s),this.slotListeners=new Map,this.size="md",this.headingElement=void 0}componentWillLoad(){const{children:t}=this.host;for(let s=0;s<t.length;s++){const e=t[s];"size"in e&&(e.size=this.size)}let s=this.host;"tds-header-launcher-list"===this.host.parentElement.tagName.toLowerCase()&&(s=this.host.parentElement);const e=o(s,l);e?this.headingElement=e:console.warn("Heading element for list not found")}componentDidLoad(){this.host.shadowRoot.querySelectorAll("slot").forEach((t=>{const s=t=>{this.processAssignedElements(t.target)};t.addEventListener("slotchange",s),s({target:t}),this.slotListeners.set(t,s)}))}processAssignedElements(t){t.assignedElements().forEach((t=>{"li"!==t.tagName.toLowerCase()&&"slot"!==t.tagName.toLowerCase()&&"listitem"!==t.getAttribute("role")&&t.setAttribute("role","listitem"),"slot"===t.tagName.toLowerCase()&&this.processAssignedElements(t)}))}disconnectedCallback(){this.slotListeners.forEach(((t,s)=>{s.removeEventListener("slotchange",t),this.slotListeners.delete(s)}))}render(){var t;const i={role:"list","aria-labelledby":null===(t=this.headingElement)||void 0===t?void 0:t.id};return s(e,Object.assign({key:"57e8ecd046b7a260f1516fc80673e9d095ffd4d3"},i),s("slot",{key:"e0bafe5fffcf8864faebd4603597e3e424a35046"}))}get host(){return i(this)}};a.style=":host{display:block;width:190px;padding:0;margin:0;list-style:none;border-radius:unset;background-color:var(--tds-header-app-launcher-menu-bg)}@media all and (max-width: 384px){:host{width:100vw}}:host([size=lg]){width:320px}";export{a as tds_header_dropdown_list}