@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
@@ -23,12 +23,9 @@ const TdsHeaderLauncher = class {
23
23
  }
24
24
  }
25
25
  handleKeyDown(event) {
26
- var _a, _b;
27
26
  if (event.key === 'Escape' && this.open) {
28
27
  this.open = false;
29
- const btnShadow = (_b = (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
30
- if (btnShadow)
31
- btnShadow.focus();
28
+ this.buttonEl.shadowRoot.querySelector('button').focus();
32
29
  }
33
30
  }
34
31
  componentDidLoad() {
@@ -39,9 +36,8 @@ const TdsHeaderLauncher = class {
39
36
  this.open = !this.open;
40
37
  if (this.open) {
41
38
  requestAnimationFrame(() => {
42
- var _a;
43
39
  const selectors = "a, [tabindex='0']";
44
- const firstFocusableElement = ((_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(selectors)) || this.host.querySelector(selectors);
40
+ const firstFocusableElement = this.host.shadowRoot.querySelector(selectors) || this.host.querySelector(selectors);
45
41
  if (firstFocusableElement instanceof HTMLElement) {
46
42
  firstFocusableElement.focus();
47
43
  }
@@ -55,11 +51,11 @@ const TdsHeaderLauncher = class {
55
51
  }, 'ref': (el) => {
56
52
  this.buttonEl = el;
57
53
  } });
58
- return (h(Host, { key: '13631a42a002d81b250fc26438b96f93ae991ab6' }, h("div", { key: '24fca288a843c0c9459f8ad9ce015cec36c815c6', class: {
54
+ return (h(Host, { key: '214953326230ac1b5ab664b032783c20d9999531' }, h("div", { key: '0efccd70365257b6f682b777bb6a3d056996aa82', class: {
59
55
  'wrapper': true,
60
56
  'state-open': this.open,
61
57
  'state-list-type-menu': this.hasListTypeMenu,
62
- } }, h("tds-header-launcher-button", Object.assign({ key: '3883841e41d1acb50f75d78a894c7844305c1cbd' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (h("tds-popover-canvas", { key: '20b4cc82c6eed3e2ba60038d4ab37afd49de6357', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
58
+ } }, h("tds-header-launcher-button", Object.assign({ key: '677518edd231dedb813d59220699bf3b1f1469a6' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (h("tds-popover-canvas", { key: '7d9b39133b781601acb0d8f97237694209f8d355', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
63
59
  {
64
60
  name: 'flip',
65
61
  options: {
@@ -35,20 +35,18 @@ const TdsHeader = class {
35
35
  componentDidLoad() {
36
36
  const hostElement = this.host;
37
37
  const navElement = hostElement.querySelector('.tds-header-component-list');
38
- if (navElement) {
39
- this.observer.observe(navElement, {
40
- childList: true,
41
- subtree: false,
42
- });
43
- updateListChildrenRoles(navElement);
44
- }
38
+ this.observer.observe(navElement, {
39
+ childList: true,
40
+ subtree: false,
41
+ });
42
+ updateListChildrenRoles(navElement);
45
43
  }
46
44
  disconnectedCallback() {
47
45
  this.observer.disconnect();
48
46
  }
49
47
  render() {
50
48
  const navAttributes = Object.assign({}, inheritAriaAttributes(this.host));
51
- return (h(Host, { key: '30e29defd97ee2a473198d2c403dd23191e02856' }, h("slot", { key: '5905d6acb62da9d4d5de82fe148f709ccd08b3e9', name: "hamburger" }), h("slot", { key: '23f834040a108c9300ac07643518dc9194eb1542', name: "title" }), h("nav", Object.assign({ key: 'ba4803dfde17c977e06a9a76a472a79fd94ddfaa' }, navAttributes), h("ul", { key: '818e664fc808ce9b0b9cc90c188c69a782c36aba', class: "tds-header-component-list" }, h("slot", { key: '920409e9cedc7035a8cd1c149163603fd61d50e6' }), h("li", { key: '36d6627c38241f2fb2d34e0402eeed1befe04696', class: "tds-header-middle-spacer" }), h("slot", { key: '5f14324ddbe295e821b6983f0b6b84f72c981643', name: "end" })))));
49
+ return (h(Host, { key: 'f5c7796ebe3f5d9bd6e555f0dd01f8ace54c1cd8' }, h("slot", { key: '77cba127f947cc8fefa875a6db0e68bf52c5a80e', name: "hamburger" }), h("slot", { key: 'daf9d8299734f72355eeaeb307dcc3e25520a7b8', name: "title" }), h("nav", Object.assign({ key: '904338fd0fb8ab3ce42b46ee482d021667fe49e8' }, navAttributes), h("ul", { key: '66994fd2de781178624f8d67c88e4d75e84d2844', class: "tds-header-component-list" }, h("slot", { key: '51ee40aa7b17fb2a36ca23c2cebfb74efb69ea24' }), h("li", { key: 'db64903ac70ee12d48cd5029997949875caa53e8', class: "tds-header-middle-spacer" }), h("slot", { key: '80a48331b218b734061a421c9e31f8fd1b98be1a', name: "end" })))));
52
50
  }
53
51
  get host() { return getElement(this); }
54
52
  };
@@ -9,6 +9,7 @@ const iconsCollection =
9
9
  const iconCss = ":host{display:inline-block;vertical-align:middle;line-height:0}:host,:host *,:host *::before,:host *::after{box-sizing:border-box}:host svg{fill:currentcolor}";
10
10
  const TdsIconStyle0 = iconCss;
11
11
 
12
+ // Map of brand classes to their respective icon collections
12
13
  const brandIconMap = {
13
14
  scania: iconsCollection$1,
14
15
  traton: iconsCollection,
@@ -51,7 +52,7 @@ const Icon = class {
51
52
  this.arrayOfIcons = [...this.arrayOfIcons];
52
53
  }
53
54
  render() {
54
- return h(Host, { key: '0edcbb69b7531041d1f0f97e06babd33316090ef' }, this.setIcons());
55
+ return h(Host, { key: '28dd81a4993b7c842a115f7feca92d038b4ef195' }, this.setIcons());
55
56
  }
56
57
  get host() { return getElement(this); }
57
58
  };
@@ -29,8 +29,7 @@ const TdsInlineTabs = class {
29
29
  this.updateScrollButtons();
30
30
  });
31
31
  });
32
- if (this.navWrapperElement)
33
- resizeObserver.observe(this.navWrapperElement);
32
+ resizeObserver.observe(this.navWrapperElement);
34
33
  };
35
34
  this.addEventListenerToTabs = () => {
36
35
  this.children = Array.from(this.host.children);
@@ -100,22 +99,16 @@ const TdsInlineTabs = class {
100
99
  this.children[this.selectedIndex].setSelected(true);
101
100
  }
102
101
  scrollRight() {
103
- if (!this.navWrapperElement)
104
- return;
105
102
  const scroll = this.navWrapperElement.scrollLeft;
106
103
  this.navWrapperElement.scrollLeft = scroll + this.buttonsWidth;
107
104
  this.evaluateScrollButtons();
108
105
  }
109
106
  scrollLeft() {
110
- if (!this.navWrapperElement)
111
- return;
112
107
  const scroll = this.navWrapperElement.scrollLeft;
113
108
  this.navWrapperElement.scrollLeft = scroll - this.buttonsWidth;
114
109
  this.evaluateScrollButtons();
115
110
  }
116
111
  evaluateScrollButtons() {
117
- if (!this.navWrapperElement)
118
- return;
119
112
  const scroll = this.navWrapperElement.scrollLeft;
120
113
  this.showRightScroll = scroll <= this.scrollWidth;
121
114
  this.showLeftScroll = scroll > 0;
@@ -179,9 +172,9 @@ const TdsInlineTabs = class {
179
172
  this.removeEventListenerFromTabs();
180
173
  }
181
174
  render() {
182
- return (h(Host, { key: '0983f0230e29f70eb94c0c964a0ee21e2b0eb3ee', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'caad52caccbc0e284330e6ee76d98b5dd289f257', class: "wrapper", ref: (el) => {
175
+ return (h(Host, { key: 'f33abd9071c85c0651a3ab93e3996ec44717e325', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '8a5233b2a941a3a1e72dc45f93015b5e606663a8', class: "wrapper", ref: (el) => {
183
176
  this.navWrapperElement = el;
184
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f8b74dc2751a33696f02b407fbb7fa87df9c5929', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '2f0e128a9e9195f972fa991266fd0aa14264125d', name: "chevron_left", size: "20px" })), h("slot", { key: 'dc120e26f2558ce75bdb57b56031ebd320805a53', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '590495e6463a4c6d0118b9a32acb23f361a23071', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '5d0470213d023c65d911acced266d962f3b7e109', name: "chevron_right", size: "20px" })))));
177
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f2a8051863cfa93f8b2a5c562fc5ebefcc36b195', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a93d1cb8ddc5486bbb15449c328a25f6e8e2b4cd', name: "chevron_left", size: "20px" })), h("slot", { key: 'e5b096420d72d12c861730fd9829baeba7cce625', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'f154a7b6553fe77e3f09da314403db5326df8e21', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '6832c693ab8a446a629788894f792f571c09cbe3', name: "chevron_right", size: "20px" })))));
185
178
  }
186
179
  get host() { return getElement(this); }
187
180
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-51d04e39.js';
2
2
  import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
3
3
 
4
- const messageCss = ":host .wrapper{display:flex;padding:16px;background-color:var(--tds-message-background);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-message-border-info)}:host .wrapper.information tds-icon{color:var(--tds-message-icon-info)}:host .wrapper.success{background-color:var(--tds-message-background-success);border-left:4px solid var(--tds-message-border-success)}:host .wrapper.success tds-icon{color:var(--tds-message-icon-success)}:host .wrapper.error{background-color:var(--tds-message-background-error);border-left:4px solid var(--tds-message-border-error)}:host .wrapper.error tds-icon{color:var(--tds-message-icon-error)}:host .wrapper.warning{background-color:var(--tds-message-background-warning);border-left:4px solid var(--tds-message-border-warning)}:host .wrapper.warning tds-icon{color:var(--tds-message-icon-warning)}:host .wrapper.minimal{border:none;padding:0;background-color:transparent}:host .wrapper.minimal .header{font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}:host .wrapper.minimal.error .header{color:var(--tds-message-minimal-header-error)}:host tds-icon{padding-right:16px}:host .content{display:flex;flex-direction:column;gap:4px;color:var(--foreground-text-strong);padding:2px 0}:host .content .header{font-family:var(--headline-07-font-family);font-size:var(--headline-07-font-size);line-height:var(--headline-07-line-height);font-weight:var(--headline-07-font-weight);letter-spacing:var(--headline-07-letter-spacing);text-transform:var(--headline-07-text-transform)}:host .content .extended-message{color:var(--foreground-text-strong);font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}";
4
+ const messageCss = ":host .wrapper{display:flex;padding:16px;background-color:var(--tds-message-background);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-message-border-info)}:host .wrapper.information tds-icon{color:var(--tds-message-icon-info)}:host .wrapper.success{background-color:var(--tds-message-background-success);border-left:4px solid var(--tds-message-border-success)}:host .wrapper.success tds-icon{color:var(--tds-message-icon-success)}:host .wrapper.error{background-color:var(--tds-message-background-error);border-left:4px solid var(--tds-message-border-error)}:host .wrapper.error tds-icon{color:var(--tds-message-icon-error)}:host .wrapper.warning{background-color:var(--tds-message-background-warning);border-left:4px solid var(--tds-message-border-warning)}:host .wrapper.warning tds-icon{color:var(--tds-message-icon-warning)}:host .wrapper.minimal{border:none;padding:0;background-color:transparent}:host .wrapper.minimal .header{font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}:host .wrapper.minimal.error .header{color:var(--tds-message-minimal-header-error)}:host tds-icon{padding-right:16px}:host .content{display:flex;flex-direction:column;gap:4px;color:var(--foreground-text-strong);padding:2px 24px 2px 0;overflow-wrap:anywhere}:host .content .header{font-family:var(--headline-07-font-family);font-size:var(--headline-07-font-size);line-height:var(--headline-07-line-height);font-weight:var(--headline-07-font-weight);letter-spacing:var(--headline-07-letter-spacing);text-transform:var(--headline-07-text-transform)}:host .content .extended-message{color:var(--foreground-text-strong);font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}";
5
5
  const TdsMessageStyle0 = messageCss;
6
6
 
7
7
  const TdsMessage = class {
@@ -39,11 +39,11 @@ const TdsMessage = class {
39
39
  render() {
40
40
  const headerId = this.header ? `tds-message-header-${generateUniqueId()}` : undefined;
41
41
  const contentId = !this.minimal ? `tds-message-content-${generateUniqueId()}` : undefined;
42
- return (h(Host, { key: '01749666a846692acb3a6ad248a26799056c85bb', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'b1c54dcb5e116236a21f199563a25ebe4a043f38', class: {
42
+ return (h(Host, { key: 'ac71829f0647270d499469049a833c282abca25d', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'ae95905137e70a95e6013e643e43baec0c10792b', class: {
43
43
  wrapper: true,
44
44
  [this.variant]: true,
45
45
  minimal: this.minimal,
46
- } }, !this.noIcon && (h("tds-icon", { key: 'af587ad39d63aa39d357868e3cce36bc39a7abec', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), h("div", { key: 'ebeefca2d55f3f4fce02574e18553617d52cbe5a', class: `content` }, this.header && (h("div", { key: 'b9db92aab10d95235846bec90c8cb0760da29285', class: "header", id: headerId }, this.header)), !this.minimal && (h("div", { key: '4c2693fe0498607f687ca3adba0afb1ef27e91e5', class: "extended-message", id: contentId }, h("slot", { key: 'ace8c564c874fff787c7e844ba5f3deafb76cbf6' })))))));
46
+ } }, !this.noIcon && (h("tds-icon", { key: 'ea830e6051ef9e0f751a1e8d5e24fbd17ad6ec58', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), h("div", { key: 'c71e70d57147d9ac050e7a223ed097e58cb6a49e', class: `content` }, this.header && (h("div", { key: '1acded0a8f8522792f41a4331a2009a42cbf4894', class: "header", id: headerId }, this.header)), !this.minimal && (h("div", { key: '0aed7c6daf7892e6ac1d5b3f8715e7c9032b11a3', class: "extended-message", id: contentId }, h("slot", { key: '75898f0a957581dc2720667c3eaae6e17201d81c' })))))));
47
47
  }
48
48
  };
49
49
  TdsMessage.style = TdsMessageStyle0;
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { h as hasSlot } from './hasSlot-d52114d0.js';
3
3
  import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
4
4
 
5
- const modalCss = ".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::-webkit-scrollbar{width:6px;background-color:transparent}.tds-modal::-webkit-scrollbar-track{background-color:transparent}.tds-modal::-webkit-scrollbar-thumb{background-color:var(--foreground-elements-transparparent-discrete);border-radius:3px}.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::-webkit-scrollbar{width:6px;background-color:transparent}.body::-webkit-scrollbar-track{background-color:transparent}.body::-webkit-scrollbar-thumb{background-color:var(--foreground-elements-transparparent-discrete);border-radius:3px}.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}";
5
+ const modalCss = ":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}";
6
6
  const TdsModalStyle0 = modalCss;
7
7
 
8
8
  const TdsModal = class {
@@ -132,7 +132,7 @@ const TdsModal = class {
132
132
  }
133
133
  returnFocusOnClose() {
134
134
  var _a;
135
- const referenceElement = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
135
+ let referenceElement = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
136
136
  if (!referenceElement) {
137
137
  return; // no element to return focus to
138
138
  }
@@ -150,7 +150,6 @@ const TdsModal = class {
150
150
  }
151
151
  }
152
152
  getFocusableElements() {
153
- var _a, _b;
154
153
  const focusableSelectors = [
155
154
  'a[href]',
156
155
  'button:not([disabled])',
@@ -159,7 +158,7 @@ const TdsModal = class {
159
158
  'select:not([disabled])',
160
159
  '[tabindex]:not([tabindex="-1"])',
161
160
  ].join(',');
162
- const focusableInShadowRoot = Array.from((_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(focusableSelectors)) !== null && _b !== void 0 ? _b : []);
161
+ const focusableInShadowRoot = Array.from(this.host.shadowRoot.querySelectorAll(focusableSelectors));
163
162
  const focusableInSlots = Array.from(this.host.querySelectorAll(focusableSelectors));
164
163
  /** Focusable elements */
165
164
  return [...focusableInShadowRoot, ...focusableInSlots];
@@ -208,10 +207,10 @@ const TdsModal = class {
208
207
  const usesActionsSlot = hasSlot('actions', this.host);
209
208
  const headerId = this.header ? `tds-modal-header-${generateUniqueId()}` : undefined;
210
209
  const bodyId = `tds-modal-body-${generateUniqueId()}`;
211
- return (h(Host, { key: 'ea3b7f2718b71010bbcbaf52ebaab68f9ef82b56', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
210
+ return (h(Host, { key: '4a220f8d1156cd7ef30ba0f77e33f6b368a71c5d', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
212
211
  show: this.isShown,
213
212
  hide: !this.isShown,
214
- }, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: 'bbcd30e1d4a0b2f7c42c715b2106d3e51105db2d', class: "tds-modal-backdrop" }), h("div", { key: 'b6f6115e1e021a9dd9e0d5a687dd69d00f6f9d7b', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '860339a0f603eb019b91ba44a7745b6b5039923b', id: headerId, class: "header" }, this.header && h("div", { key: '74ba6be10757cd78f6b9d7201c75cc02a43690a7', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: '37f895c645cf402b23d923fd84e8ec3669dfd2b5', name: "header" }), this.closable && (h("button", { key: '36c78defa9593a1c81cc8e4cef5a45361476d7ca', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: 'dd7d537d589b80e9f6604a085a5ee25d3e9cbd4d', name: "cross", size: "20px" })))), h("div", { key: '1f0f95296f973405119fbd22dd30405944e224de', id: bodyId, class: "body" }, h("slot", { key: '8326ceb74bd9148b0d21b18984f7d0584e8c8976', name: "body" })), usesActionsSlot && h("slot", { key: '7aad6700fe09dc183f721cda2a2e83acbe9afa60', name: "actions" }))));
213
+ }, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '2129611789e7d9c1e32731f59100f75ff4e58800', class: "tds-modal-backdrop" }), h("div", { key: 'cce280887ce68ab5471cd939847c8f23703e6a11', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '2629204523dff0d2afefab238514db74b9d1a93b', id: headerId, class: "header" }, this.header && h("div", { key: '040ddd22c7b782d77e07cc1ff4cd1fdf0d508cbe', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: '7b15247fea7c3ab2986e453b98e7a7f9ccff943f', name: "header" }), this.closable && (h("button", { key: '67e09f9f95ad58e02c1f9adb9883af4a1c16f837', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: '52694db7eb7dc40ca2ea8aeb3e13611f899177a8', name: "cross", size: "20px" })))), h("div", { key: 'b7fedc44fae5a964399f6b63fad96acaba9263a1', id: bodyId, class: "body" }, h("slot", { key: 'd60cbee2a55a487f738aa9a741d8b1e0cb74484e', name: "body" })), usesActionsSlot && h("slot", { key: 'c969e1f820a4f4ecfab84fe3349eee0233710f05', name: "actions" }))));
215
214
  }
216
215
  get host() { return getElement(this); }
217
216
  };
@@ -29,8 +29,7 @@ const TdsNavigationTabs = class {
29
29
  this.updateScrollButtons();
30
30
  });
31
31
  });
32
- if (this.navWrapperElement)
33
- resizeObserver.observe(this.navWrapperElement);
32
+ resizeObserver.observe(this.navWrapperElement);
34
33
  };
35
34
  this.addEventListenerToTabs = () => {
36
35
  this.children = Array.from(this.host.children);
@@ -98,22 +97,16 @@ const TdsNavigationTabs = class {
98
97
  this.children[this.selectedIndex].setSelected(true);
99
98
  }
100
99
  scrollRight() {
101
- if (!this.navWrapperElement)
102
- return;
103
100
  const scroll = this.navWrapperElement.scrollLeft;
104
101
  this.navWrapperElement.scrollLeft = scroll + this.buttonsWidth;
105
102
  this.evaluateScrollButtons();
106
103
  }
107
104
  scrollLeft() {
108
- if (!this.navWrapperElement)
109
- return;
110
105
  const scroll = this.navWrapperElement.scrollLeft;
111
106
  this.navWrapperElement.scrollLeft = scroll - this.buttonsWidth;
112
107
  this.evaluateScrollButtons();
113
108
  }
114
109
  evaluateScrollButtons() {
115
- if (!this.navWrapperElement)
116
- return;
117
110
  const scroll = this.navWrapperElement.scrollLeft;
118
111
  this.showRightScroll = scroll <= this.scrollWidth;
119
112
  this.showLeftScroll = scroll > 0;
@@ -179,15 +172,15 @@ const TdsNavigationTabs = class {
179
172
  this.removeEventListenerFromTabs();
180
173
  }
181
174
  render() {
182
- return (h(Host, { key: '3e4eb6108e33a2adb56334746c7ba9d264c493fe', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'adbc2c78468d0edb2a3cdca6f5218dfb7eead4cf', class: "wrapper", ref: (el) => {
175
+ return (h(Host, { key: 'cdf0eff9acca827e372a58f5721ff9279b0360f4', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'a8fafbc680fbdb0450db591e7f3ffda864946684', class: "wrapper", ref: (el) => {
183
176
  this.navWrapperElement = el;
184
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '682437d69fbcfece6fbb7fb5add8f02b0f9e42ea', "aria-label": this.tdsScrollLeftAriaLabel, class: {
177
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '402e0ca33fa71dced98cf8d86e26e3dba312fa7d', "aria-label": this.tdsScrollLeftAriaLabel, class: {
185
178
  'scroll-left-button': true,
186
179
  'show': this.showLeftScroll,
187
- }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'f1635b2bea58e6a19942fc2477db1eee441585c8', name: "chevron_left", size: "20px" })), h("slot", { key: '7bf40f08d61ee18cf3db5e8862a4e748efef3108', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '74be9b7aa445732e570dddac73df434ce3815a44', "aria-label": this.tdsScrollRightAriaLabel, class: {
180
+ }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '2849a2da7c6ef133d173756778400baa2a51d58d', name: "chevron_left", size: "20px" })), h("slot", { key: '64081b7518abde00c8f1d80ff414849bccd1cb0b', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '916ba6b9107982f8b8763920bdf4e2bd99127943', "aria-label": this.tdsScrollRightAriaLabel, class: {
188
181
  'scroll-right-button': true,
189
182
  'show': this.showRightScroll,
190
- }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '953912a65fa7e4f67633c8ea0e30e8883f5af641', name: "chevron_right", size: "20px" })))));
183
+ }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '26f84d67bc4b1eb04668464a74b655db1953d999', name: "chevron_right", size: "20px" })))));
191
184
  }
192
185
  get host() { return getElement(this); }
193
186
  static get watchers() { return {
@@ -7,7 +7,7 @@ const TdsPopoverCanvasStyle0 = popoverCanvasCss;
7
7
  const TdsPopoverCanvas = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
- this.inheritedAttributes = {};
10
+ this.inheritedAttributes = [];
11
11
  this.selector = undefined;
12
12
  this.referenceEl = undefined;
13
13
  this.defaultShow = false;
@@ -31,14 +31,14 @@ const TdsPopoverCanvas = class {
31
31
  }
32
32
  render() {
33
33
  var _a;
34
- return (h(Host, { key: 'a4203920290fc5778952324bd349b136a2c3dce8', class: {
34
+ return (h(Host, { key: '8f22b74f8df985de4505b1472cf47b621d5c515e', class: {
35
35
  [`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
36
- } }, h("tds-popover-core", Object.assign({ key: 'cab065d1bfbd9a952e7662541de050a9a67c90bb', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
36
+ } }, h("tds-popover-core", Object.assign({ key: 'a7d3fed2b26cd2dc532e9e78413828d52b28b21e', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
37
37
  'tds-popover-canvas': true,
38
38
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
39
39
  }, 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) => {
40
40
  this.childRef = el;
41
- }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: 'cc05cad76faaf82ec2f50c748b93092667aff374' }, h("slot", { key: '36ebe3e4eb4c9f11d885b0a609422f8cc57a5f7d' })))));
41
+ }, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c1fde8225ca64b259798f763b8d2264346c246e' }, h("slot", { key: 'e133b76f8088a4b572c8bb69792bc3fa6d652da9' })))));
42
42
  }
43
43
  get host() { return getElement(this); }
44
44
  };
@@ -1940,7 +1940,6 @@ const TdsPopoverCore = class {
1940
1940
  }
1941
1941
  }
1942
1942
  initialize({ referenceEl, trigger, }) {
1943
- var _a, _b, _c, _d, _e, _f;
1944
1943
  this.cleanUp();
1945
1944
  if (typeof referenceEl !== 'undefined') {
1946
1945
  this.target = referenceEl;
@@ -1967,9 +1966,9 @@ const TdsPopoverCore = class {
1967
1966
  console.error(`Could not initialize: reference element not found.`);
1968
1967
  }
1969
1968
  if (trigger === 'click' && this.show === null) {
1970
- (_a = this.target) === null || _a === void 0 ? void 0 : _a.addEventListener('click', this.onClickTarget);
1969
+ this.target.addEventListener('click', this.onClickTarget);
1971
1970
  // Also handle keyboard activation via Enter and Space
1972
- (_b = this.target) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', (e) => {
1971
+ this.target.addEventListener('keydown', (e) => {
1973
1972
  if (e.key === 'Enter' || e.key === ' ') {
1974
1973
  e.preventDefault();
1975
1974
  this.openedByKeyboard = true;
@@ -1979,11 +1978,11 @@ const TdsPopoverCore = class {
1979
1978
  }
1980
1979
  if (trigger === 'hover' || trigger === 'hover-popover') {
1981
1980
  // For tabbing over element
1982
- (_c = this.target) === null || _c === void 0 ? void 0 : _c.addEventListener('focusin', this.handleShow);
1983
- (_d = this.target) === null || _d === void 0 ? void 0 : _d.addEventListener('focusout', this.handleHide);
1981
+ this.target.addEventListener('focusin', this.handleShow);
1982
+ this.target.addEventListener('focusout', this.handleHide);
1984
1983
  // For hovering over element with selector
1985
- (_e = this.target) === null || _e === void 0 ? void 0 : _e.addEventListener('mouseenter', this.handleShow);
1986
- (_f = this.target) === null || _f === void 0 ? void 0 : _f.addEventListener('mouseleave', this.handleHide);
1984
+ this.target.addEventListener('mouseenter', this.handleShow);
1985
+ this.target.addEventListener('mouseleave', this.handleHide);
1987
1986
  // For hovering over Popover itself
1988
1987
  if (trigger === 'hover-popover') {
1989
1988
  this.host.addEventListener('mouseenter', this.handleShow);
@@ -2025,11 +2024,10 @@ const TdsPopoverCore = class {
2025
2024
  }
2026
2025
  }
2027
2026
  componentDidRender() {
2028
- var _a;
2029
2027
  if (this.isShown && !this.renderedShowValue && !this.disableLogic) {
2030
2028
  // Here we update the popper position since its position is wrong
2031
2029
  // before it is rendered.
2032
- (_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.update();
2030
+ this.popperInstance.update();
2033
2031
  }
2034
2032
  this.renderedShowValue = this.isShown;
2035
2033
  }
@@ -2045,7 +2043,7 @@ const TdsPopoverCore = class {
2045
2043
  'tds-animation-exit-fade': !this.isShown && this.animation === 'fade',
2046
2044
  };
2047
2045
  const classList = generateClassList(classes);
2048
- return (h(Host, { key: '60b658912943cddce1f2614e82f0c7c5ad69ae8b', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '0c4afc0d1a7877645239ccc17a28d50b0eb338e5' })));
2046
+ return (h(Host, { key: '5c557610103827aedbabbd37a79730580d15ca2d', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '487a937b3c9d87b91425f6bd9eb88bc3fa85d7df' })));
2049
2047
  }
2050
2048
  get host() { return getElement(this); }
2051
2049
  static get watchers() { return {
@@ -7,7 +7,7 @@ const TdsPopoverMenuStyle0 = popoverMenuCss;
7
7
  const TdsPopoverMenu = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
- this.inheritedAttributes = {};
10
+ this.inheritedAttributes = [];
11
11
  this.selector = undefined;
12
12
  this.referenceEl = undefined;
13
13
  this.show = null;
@@ -30,15 +30,15 @@ const TdsPopoverMenu = class {
30
30
  }
31
31
  render() {
32
32
  var _a;
33
- return (h(Host, { key: 'cc1c55cdc6112cca33087fd541b2bb60489d1368', class: {
33
+ return (h(Host, { key: 'ad39066c2a2f7d4e4696143095fa8a0032d7c148', class: {
34
34
  [`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
35
- } }, h("tds-popover-core", { key: 'fb4da1823553dddf0e1a45a5626dfac3589ade1a', class: {
35
+ } }, h("tds-popover-core", { key: 'f261b18f6e1e26df1baf39628911cb885277b431', class: {
36
36
  'tds-popover-menu': true,
37
37
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
38
38
  'fluid-width': this.fluidWidth,
39
39
  }, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
40
40
  this.childRef = el;
41
- }, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: '5b0a938b6e36afee22effcc2e19bae366fc7ef67', role: "menu" }, h("slot", { key: 'bf2631a96e721287936797c9865ea56d134cfabc' })))));
41
+ }, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: 'f1549f6d338ed8e9a511577a85735b834a89df27', role: "menu" }, h("slot", { key: 'def698636f21c11133ad0289b21b76db0f208116' })))));
42
42
  }
43
43
  get host() { return getElement(this); }
44
44
  };
@@ -30,10 +30,7 @@ const TdsRadioButton = class {
30
30
  }
31
31
  }
32
32
  render() {
33
- return (h("div", { key: '48a31826daeef320097430deec2f57188ad3cd80', class: "tds-radio-button" }, h("input", { key: '591550d8bf69ddc6f51f81c012b92f61d850ba6e', ref: (inputEl) => {
34
- if (inputEl)
35
- this.inputElement = inputEl;
36
- }, "aria-label": this.tdsAriaLabel, class: "tds-form-input", type: "radio", role: "radio", name: this.name, id: this.radioId, value: this.value, checked: this.checked, "aria-checked": this.checked, required: this.required, disabled: this.disabled, onChange: () => this.handleChange(), tabIndex: this.tdsTabIndex }), h("label", { key: '203bfad85ba5a8387fdfcb8d65fbeb0d8a0dd9ad', htmlFor: this.radioId }, h("slot", { key: 'a2b470cab8cfcab9c9120ac17af63c1261f2b926', name: "label" }))));
33
+ return (h("div", { key: '48a31826daeef320097430deec2f57188ad3cd80', class: "tds-radio-button" }, h("input", { key: '6bc9711fae2e1ea4b8bc18cd441a364eb0bc4d9c', ref: (inputEl) => (this.inputElement = inputEl), "aria-label": this.tdsAriaLabel, class: "tds-form-input", type: "radio", role: "radio", name: this.name, id: this.radioId, value: this.value, checked: this.checked, "aria-checked": this.checked, required: this.required, disabled: this.disabled, onChange: () => this.handleChange(), tabIndex: this.tdsTabIndex }), h("label", { key: 'b2dbeea2ca194adea717086ba0d69d023860324d', htmlFor: this.radioId }, h("slot", { key: '422fab6ae9d579cf46d4110a61782a501dfb6a2a', name: "label" }))));
37
34
  }
38
35
  get host() { return getElement(this); }
39
36
  };
@@ -28,17 +28,16 @@ const TdsSideMenuCollapseButton = class {
28
28
  this.collapsed = event.detail.collapsed;
29
29
  }
30
30
  connectedCallback() {
31
- var _a;
32
31
  this.sideMenuEl = this.host.closest('tds-side-menu');
33
- this.collapsed = !!((_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed);
32
+ this.collapsed = this.sideMenuEl.collapsed;
34
33
  }
35
34
  render() {
36
- return (h(Host, { key: '551e4feada40e0877a83f9f117d12f064e7134f7' }, h("div", { key: '2ed47deec275d0f61525f1b441f2d6cca94e9961', class: {
35
+ return (h(Host, { key: 'e8b3276624a214cfa8d8c8a7bbb6757d1a6fe1c3' }, h("div", { key: '1c17452256ad8ca0f901178bdf2120076508ee84', class: {
37
36
  'wrapper': true,
38
37
  'state-collapsed': this.collapsed,
39
- } }, h("tds-side-menu-item", { key: 'b3bb7346da645c12940a5465c4dc18c148fd1c85', class: { button: true } }, h("button", { key: 'b659aa47f9096384b90852495643b46e76a9bcb8', type: "button", "aria-expanded": !this.collapsed ? 'true' : 'false', onClick: () => {
38
+ } }, h("tds-side-menu-item", { key: '064ec6d7ea6ed2b13223cba39268f484146fee0a', class: { button: true } }, h("button", { key: 'd391bfe9a1e31e85f168b7261b92941b3e64693e', type: "button", "aria-expanded": !this.collapsed ? 'true' : 'false', onClick: () => {
40
39
  this.handleClick();
41
- } }, h("svg", { key: 'c4e533d201f1fca3c833efbbfad632e825d1c7e2', class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '7317991b2bcfb52f9ab3695f80993fbc1e95093c', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", { key: 'c347df9c72a4f83de4b9d2ae84a4c659867209d5' }))))));
40
+ } }, h("svg", { key: '23a6362a7d6ab754d08ac439314fc94e37ec3a88', class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '17a188de96b29b501b76294d8dac4f852edc22a3', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", { key: 'a1a2408ee34830a190408c808935e33eed8bce5b' }))))));
42
41
  }
43
42
  get host() { return getElement(this); }
44
43
  };
@@ -17,20 +17,16 @@ const TdsSideMenuDropdownListItem = class {
17
17
  connectedCallback() {
18
18
  var _a;
19
19
  this.sideMenuEl = this.host.closest('tds-side-menu');
20
- this.collapsed = !!((_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed);
20
+ this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
21
21
  }
22
22
  componentDidLoad() {
23
- var _a, _b;
23
+ var _a;
24
24
  const dropdownEl = this.host.closest('tds-side-menu-dropdown');
25
- let hasUserMenu = null;
26
- let dropdownBtnIconSlotEl = null;
27
- if (dropdownEl) {
28
- hasUserMenu = dropdownEl.querySelector('tds-side-menu-user');
29
- dropdownBtnIconSlotEl = (_a = dropdownEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="icon"]');
30
- }
31
- const btnIconSlottedEls = dropdownBtnIconSlotEl === null || dropdownBtnIconSlotEl === void 0 ? void 0 : dropdownBtnIconSlotEl.assignedElements();
32
- const hasBtnIcon = btnIconSlottedEls ? (btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls.length) > 0 : false;
33
- const btnIconIsUserImage = ((_b = btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls[0]) === null || _b === void 0 ? void 0 : _b.tagName.toLowerCase()) === 'tds-side-menu-user-image';
25
+ const hasUserMenu = dropdownEl === null || dropdownEl === void 0 ? void 0 : dropdownEl.querySelector('tds-side-menu-user');
26
+ const dropdownBtnIconSlotEl = dropdownEl.shadowRoot.querySelector('slot[name="icon"]');
27
+ const btnIconSlottedEls = dropdownBtnIconSlotEl.assignedElements();
28
+ const hasBtnIcon = (btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls.length) > 0;
29
+ const btnIconIsUserImage = ((_a = btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls[0]) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase()) === 'tds-side-menu-user-image';
34
30
  if (hasBtnIcon && !btnIconIsUserImage) {
35
31
  this.dropdownHasIcon = true;
36
32
  }
@@ -39,13 +35,13 @@ const TdsSideMenuDropdownListItem = class {
39
35
  }
40
36
  }
41
37
  render() {
42
- return (h(Host, { key: 'c47d9154b70987212a197a4e1cee3e031c3a5934', role: "listitem" }, h("div", { key: 'd35ce4e0371380a76e59ee983ce32c33a3aa8167', class: {
38
+ return (h(Host, { key: '7d711b603579ec67a9f0312071519e31f4a15709', role: "listitem" }, h("div", { key: 'db890287036e3e85f10f7c76454e8ca91ada6f7c', class: {
43
39
  'component': true,
44
40
  'component-selected': this.selected,
45
41
  'component-dropdown-has-icon': this.dropdownHasIcon,
46
42
  'component-dropdown-has-user': this.dropdownHasUser,
47
43
  'component-collapsed': this.collapsed,
48
- } }, h("slot", { key: '915f92493f1a085f66501d0fbe361818e7dbc63f' }))));
44
+ } }, h("slot", { key: '944534e13549524e2e40fd8ad8e0b1d61e1bdbcf' }))));
49
45
  }
50
46
  get host() { return getElement(this); }
51
47
  };
@@ -14,12 +14,12 @@ const TdsSideMenuDropdownList = class {
14
14
  connectedCallback() {
15
15
  var _a;
16
16
  this.sideMenuEl = this.host.closest('tds-side-menu');
17
- this.collapsed = !!((_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed);
17
+ this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'decb6d57d600ca24140d9cc4d47bdf44f3c34fe4', role: "list", "aria-expanded": !this.collapsed ? 'true' : 'false' }, h("div", { key: '4b41cce5b765b236fba4f965c32652f9594c9c51', class: {
20
+ return (h(Host, { key: '38e9f561720b3a68528ae69878138ea8e9085e3c', role: "list", "aria-expanded": !this.collapsed ? 'true' : 'false' }, h("div", { key: '9f2e5ea13fe7f4483ae07d5a58208b27a64bbd1b', class: {
21
21
  'state-collapsed': this.collapsed,
22
- } }, h("slot", { key: 'c399388267e8ba6885af0cc0bd8a69bf39c52b7b' }))));
22
+ } }, h("slot", { key: '10543e9547fc64683e4f96e0ecb72ff82e3ed3ad' }))));
23
23
  }
24
24
  get host() { return getElement(this); }
25
25
  };
@@ -51,19 +51,18 @@ const TdsSideMenuDropdown = class {
51
51
  return this.collapsed ? (_a = this.hoverState) === null || _a === void 0 ? void 0 : _a.isHovered : this.open;
52
52
  }
53
53
  connectedCallback() {
54
- var _a;
55
54
  this.sideMenuEl = this.host.closest('tds-side-menu');
56
- this.collapsed = !!((_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed);
55
+ this.collapsed = this.sideMenuEl.collapsed;
57
56
  this.open = this.defaultOpen;
58
57
  }
59
58
  render() {
60
- return (h(Host, { key: 'aeebdc5563c944b02881d11b12387dbc85c82344' }, h("div", { key: '2c6c44cb14b10c0859d0215928bfc5e69be7b8b4', class: {
59
+ return (h(Host, { key: '2c3887fe8ec9334f7f3b3f46b3bce64712957ae3' }, h("div", { key: 'bedb9fc6f22d0c608b77c2d0d2fe7c8c17eadd59', class: {
61
60
  'wrapper': true,
62
61
  'state-open': this.getIsOpenState(),
63
62
  'state-collapsed': this.collapsed,
64
- } }, h("tds-side-menu-item", { key: 'ef2ee724b9d9db5e3cce2596abd27a8170e2181e', class: "button", active: this.getIsOpenState(), selected: this.selected, onClick: () => {
63
+ } }, h("tds-side-menu-item", { key: '83cb1486e99c0f699b02be91bf53df1249076902', class: "button", active: this.getIsOpenState(), selected: this.selected, onClick: () => {
65
64
  this.open = !this.open;
66
- }, "aria-expanded": this.getIsOpenState() ? 'true' : 'false' }, h("button", { key: 'f1bf8718d877ea78d339c7501cb20432eb64e0aa' }, h("slot", { key: 'dd3cff6f183511fbbf7dba4b31cfb3805bd74f81', name: "icon" }), !this.collapsed && (h(Fragment, { key: '27efe259a8726195e2dfb355ef03e4a88ee72082' }, this.buttonLabel, h("slot", { key: 'd8e952a51054b8f7d143acf1ebfe8326d32a332e', name: "label" }), h("tds-icon", { key: '7edd1d7a66814451a056b578fa8c7e068dabcdd8', class: "dropdown-icon", name: "chevron_down", size: "16px", svgTitle: "Chevron Down" }))))), h("div", { key: '5fb9c3e88e1aefeb38c2f46a18dfc221772b689c', class: "menu", tabindex: this.collapsed ? '0' : undefined }, this.collapsed && (h("h3", { key: '56397951c8c3486719f291a0e283703397ae243d', class: "heading-collapsed" }, this.buttonLabel, h("slot", { key: '7fc3a35c7506345dc72a64989acf98e1483c126f', name: "label" }))), h("slot", { key: '4e95b1c1fa64906d937788e0c27c64c4e06b7b73' })))));
65
+ }, "aria-expanded": this.getIsOpenState() ? 'true' : 'false' }, h("button", { key: 'e21c03415c48022813b3289f8dd80f21486414f0' }, h("slot", { key: '4462d95bf8e7945741cb54d9f363b8d9cac158e0', name: "icon" }), !this.collapsed && (h(Fragment, { key: '1a65252df105ef6ad9bca35f873fe19e71289b80' }, this.buttonLabel, h("slot", { key: 'e35a184bae5c65fde366ed287062becbc6633cac', name: "label" }), h("tds-icon", { key: '7a4328715c67aaf91a3675574f5aadca9ce8ae3d', class: "dropdown-icon", name: "chevron_down", size: "16px", svgTitle: "Chevron Down" }))))), h("div", { key: '1e4e674c5e9b8901b5306bee36bf121aa37112e3', class: "menu", tabindex: this.collapsed ? '0' : null }, this.collapsed && (h("h3", { key: '54a5f5f89d595aeae6ac6e41ac553e96466fe4a1', class: "heading-collapsed" }, this.buttonLabel, h("slot", { key: '20477b6be2c477c48412d0f4bc34f1181bcb00d3', name: "label" }))), h("slot", { key: '9740e5c9cb493e52c104223ec62b47bffc8adc5d' })))));
67
66
  }
68
67
  get host() { return getElement(this); }
69
68
  };
@@ -13,10 +13,7 @@ const TdsSideMenuItem = class {
13
13
  this.hasUserComponent = false;
14
14
  }
15
15
  findSlottedAndExecute(searchPredicate, callback) {
16
- var _a;
17
- const assignedElements = (_a = this.slotEl) === null || _a === void 0 ? void 0 : _a.assignedElements({ flatten: true });
18
- if (!(assignedElements === null || assignedElements === void 0 ? void 0 : assignedElements.length))
19
- return;
16
+ const assignedElements = this.slotEl.assignedElements({ flatten: true });
20
17
  const firstSlottedElement = assignedElements[0];
21
18
  if (firstSlottedElement) {
22
19
  const foundElement = dfs(firstSlottedElement, searchPredicate);
@@ -57,19 +54,16 @@ const TdsSideMenuItem = class {
57
54
  // closest() will return null if side-menu-item is inside a shadowRoot that
58
55
  // does not contain a side-menu. This is the case for the side-menu-dropdown.
59
56
  this.sideMenuEl = this.host.closest('tds-side-menu');
60
- this.collapsed = !!((_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed);
57
+ this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
61
58
  }
62
59
  componentDidLoad() {
63
- var _a, _b;
64
- this.slotEl = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot')) !== null && _b !== void 0 ? _b : null;
60
+ this.slotEl = this.host.shadowRoot.querySelector('slot');
65
61
  this.updateSlottedElements();
66
62
  this.updateHasUserComponent();
67
- if (this.slotEl) {
68
- this.slotEl.addEventListener('slotchange', () => {
69
- this.updateSlottedElements();
70
- this.updateHasUserComponent();
71
- });
72
- }
63
+ this.slotEl.addEventListener('slotchange', () => {
64
+ this.updateSlottedElements();
65
+ this.updateHasUserComponent();
66
+ });
73
67
  }
74
68
  collapseSideMenuEventHandler(event) {
75
69
  this.collapsed = event.detail.collapsed;
@@ -77,13 +71,13 @@ const TdsSideMenuItem = class {
77
71
  this.updateHasUserComponent();
78
72
  }
79
73
  render() {
80
- return (h(Host, { key: 'ff51604316231f08db7135c89336aa40a34ca780' }, h("div", { key: '7ba6d6ad1646cdcca89ba014eb20115ead57a9cc', class: {
74
+ return (h(Host, { key: '94dc12f57a0eedb5ab1528394352c4a7fcea55ff' }, h("div", { key: '3336a6d1af3c573fdbbbf590fae2be3381c89163', class: {
81
75
  'component': true,
82
76
  'component-selected': this.selected,
83
77
  'component-active': this.active,
84
78
  'component-collapsed': this.collapsed,
85
79
  'component-has-user': this.hasUserComponent,
86
- } }, h("slot", { key: '43b400894c86a51cc1dbe910f8eecab31fad4c45' }))));
80
+ } }, h("slot", { key: '5c92976a5aa367142e2af23fdacb6d67c3d2b36c' }))));
87
81
  }
88
82
  get host() { return getElement(this); }
89
83
  };