@scania/tegel 1.11.0 → 1.12.1-ng-form-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/dist/cjs/{index-fd96d7bb.js → index-e35387f4.js} +1656 -1606
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-banner.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-button.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-card.cjs.entry.js +1 -1
  13. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-divider.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-dropdown.cjs.entry.js +18 -29
  20. package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
  21. package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-footer.cjs.entry.js +2 -2
  25. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-cell.cjs.entry.js +15 -19
  27. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
  31. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
  40. package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
  41. package/dist/cjs/tds-header.cjs.entry.js +2 -2
  42. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
  45. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  46. package/dist/cjs/tds-message.cjs.entry.js +1 -1
  47. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  49. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
  50. package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
  51. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  52. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
  53. package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  55. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  56. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
  57. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
  58. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
  59. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
  60. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  61. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  62. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
  63. package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
  64. package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
  65. package/dist/cjs/tds-slider.cjs.entry.js +1 -1
  66. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  67. package/dist/cjs/tds-step.cjs.entry.js +3 -3
  68. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  69. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +5 -5
  70. package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
  71. package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
  72. package/dist/cjs/tds-table-footer.cjs.entry.js +11 -4
  73. package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
  74. package/dist/cjs/tds-table-toolbar.cjs.entry.js +8 -3
  75. package/dist/cjs/tds-table.cjs.entry.js +26 -6
  76. package/dist/cjs/tds-text-field.cjs.entry.js +2 -2
  77. package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
  78. package/dist/cjs/tds-toast.cjs.entry.js +1 -1
  79. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  80. package/dist/cjs/tds-tooltip.cjs.entry.js +12 -5
  81. package/dist/cjs/tegel.cjs.js +3 -3
  82. package/dist/collection/collection-manifest.json +1 -1
  83. package/dist/collection/components/button/button.css +8 -5
  84. package/dist/collection/components/dropdown/dropdown.css +1 -0
  85. package/dist/collection/components/dropdown/dropdown.js +16 -27
  86. package/dist/collection/components/footer/footer.js +1 -1
  87. package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -0
  88. package/dist/collection/components/header/header-launcher/header-launcher.css +1 -0
  89. package/dist/collection/components/header/header.css +1 -0
  90. package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
  91. package/dist/collection/components/popover-core/popover-core.js +1 -1
  92. package/dist/collection/components/popover-menu/popover-menu.js +1 -1
  93. package/dist/collection/components/side-menu/side-menu.css +1 -0
  94. package/dist/collection/components/side-menu/side-menu.js +3 -3
  95. package/dist/collection/components/stepper/step/step.css +16 -6
  96. package/dist/collection/components/stepper/step/step.js +1 -1
  97. package/dist/collection/components/stepper/stepper.js +1 -1
  98. package/dist/collection/components/table/table/table.css +61 -0
  99. package/dist/collection/components/table/table/table.js +50 -4
  100. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -4
  101. package/dist/collection/components/table/table-footer/table-footer.css +6 -0
  102. package/dist/collection/components/table/table-footer/table-footer.js +11 -3
  103. package/dist/collection/components/table/table-header-cell/table-header-cell.css +7 -0
  104. package/dist/collection/components/table/table-header-cell/table-header-cell.js +31 -17
  105. package/dist/collection/components/table/table-toolbar/table-toolbar.css +5 -0
  106. package/dist/collection/components/table/table-toolbar/table-toolbar.js +8 -2
  107. package/dist/collection/components/text-field/text-field.js +1 -1
  108. package/dist/collection/components/textarea/textarea.css +0 -3
  109. package/dist/collection/components/textarea/textarea.js +1 -1
  110. package/dist/collection/components/toggle/toggle.css +6 -0
  111. package/dist/collection/components/tooltip/tooltip.js +31 -6
  112. package/dist/components/index.js +1 -1
  113. package/dist/components/{p-7be5d0df.js → p-31ae0be9.js} +1 -1
  114. package/dist/components/{p-604b1ae6.js → p-35fa6479.js} +165 -129
  115. package/dist/components/{p-2d20f437.js → p-555d76b0.js} +1 -1
  116. package/dist/components/{p-c393fec5.js → p-5f5420e5.js} +1 -1
  117. package/dist/components/{p-2bb5f9be.js → p-8bc5892d.js} +1 -1
  118. package/dist/components/{p-b226e1ea.js → p-9994dba8.js} +1 -1
  119. package/dist/components/{p-e7f57d5e.js → p-aa4f86ab.js} +1 -1
  120. package/dist/components/{p-3a5f08b0.js → p-b114a29a.js} +4 -4
  121. package/dist/components/{p-19c59509.js → p-b205ce2c.js} +2 -2
  122. package/dist/components/{p-0ea19663.js → p-b7b6d3b1.js} +1 -1
  123. package/dist/components/{p-b615fa10.js → p-b84363b3.js} +1 -1
  124. package/dist/components/{p-d9d19636.js → p-d9cf3eaa.js} +2 -2
  125. package/dist/components/{p-7972bf06.js → p-e5207615.js} +1 -1
  126. package/dist/components/{p-a79e3dad.js → p-ead7cac2.js} +1 -1
  127. package/dist/components/tds-accordion-item.js +2 -2
  128. package/dist/components/tds-accordion.js +1 -1
  129. package/dist/components/tds-badge.js +1 -1
  130. package/dist/components/tds-banner.js +2 -2
  131. package/dist/components/tds-block.js +1 -1
  132. package/dist/components/tds-body-cell.js +1 -1
  133. package/dist/components/tds-breadcrumb.js +1 -1
  134. package/dist/components/tds-breadcrumbs.js +1 -1
  135. package/dist/components/tds-button.js +2 -2
  136. package/dist/components/tds-card.js +2 -2
  137. package/dist/components/tds-checkbox.js +1 -1
  138. package/dist/components/tds-chip.js +1 -1
  139. package/dist/components/tds-core-header-item.js +1 -1
  140. package/dist/components/tds-datetime.js +2 -2
  141. package/dist/components/tds-divider.js +1 -1
  142. package/dist/components/tds-dropdown-option.js +3 -3
  143. package/dist/components/tds-dropdown.js +19 -30
  144. package/dist/components/tds-folder-tab.js +1 -1
  145. package/dist/components/tds-folder-tabs.js +2 -2
  146. package/dist/components/tds-footer-group.js +2 -2
  147. package/dist/components/tds-footer-item.js +1 -1
  148. package/dist/components/tds-footer.js +2 -2
  149. package/dist/components/tds-header-brand-symbol.js +3 -3
  150. package/dist/components/tds-header-cell.js +23 -20
  151. package/dist/components/tds-header-dropdown-list-item.js +1 -1
  152. package/dist/components/tds-header-dropdown-list-user.js +1 -1
  153. package/dist/components/tds-header-dropdown-list.js +1 -1
  154. package/dist/components/tds-header-dropdown.js +7 -7
  155. package/dist/components/tds-header-hamburger.js +4 -4
  156. package/dist/components/tds-header-item.js +1 -1
  157. package/dist/components/tds-header-launcher-button.js +1 -1
  158. package/dist/components/tds-header-launcher-grid-item.js +1 -1
  159. package/dist/components/tds-header-launcher-grid-title.js +1 -1
  160. package/dist/components/tds-header-launcher-grid.js +1 -1
  161. package/dist/components/tds-header-launcher-list-item.js +2 -2
  162. package/dist/components/tds-header-launcher-list-title.js +1 -1
  163. package/dist/components/tds-header-launcher-list.js +2 -2
  164. package/dist/components/tds-header-launcher.js +8 -8
  165. package/dist/components/tds-header-title.js +1 -1
  166. package/dist/components/tds-header.js +2 -2
  167. package/dist/components/tds-icon.js +1 -1
  168. package/dist/components/tds-inline-tab.js +1 -1
  169. package/dist/components/tds-inline-tabs.js +2 -2
  170. package/dist/components/tds-link.js +1 -1
  171. package/dist/components/tds-message.js +2 -2
  172. package/dist/components/tds-modal.js +2 -2
  173. package/dist/components/tds-navigation-tab.js +1 -1
  174. package/dist/components/tds-navigation-tabs.js +2 -2
  175. package/dist/components/tds-popover-canvas.js +1 -1
  176. package/dist/components/tds-popover-core.js +1 -1
  177. package/dist/components/tds-popover-menu-item.js +1 -1
  178. package/dist/components/tds-popover-menu.js +2 -2
  179. package/dist/components/tds-radio-button.js +1 -1
  180. package/dist/components/tds-side-menu-close-button.js +2 -2
  181. package/dist/components/tds-side-menu-collapse-button.js +2 -2
  182. package/dist/components/tds-side-menu-dropdown-list-item.js +1 -1
  183. package/dist/components/tds-side-menu-dropdown-list.js +1 -1
  184. package/dist/components/tds-side-menu-dropdown.js +3 -3
  185. package/dist/components/tds-side-menu-item.js +1 -1
  186. package/dist/components/tds-side-menu-overlay.js +1 -1
  187. package/dist/components/tds-side-menu-user-image.js +1 -1
  188. package/dist/components/tds-side-menu-user-label.js +1 -1
  189. package/dist/components/tds-side-menu-user.js +3 -3
  190. package/dist/components/tds-side-menu.js +2 -2
  191. package/dist/components/tds-slider.js +2 -2
  192. package/dist/components/tds-spinner.js +1 -1
  193. package/dist/components/tds-step.js +4 -4
  194. package/dist/components/tds-stepper.js +1 -1
  195. package/dist/components/tds-table-body-row-expandable.js +5 -5
  196. package/dist/components/tds-table-body-row.js +2 -2
  197. package/dist/components/tds-table-body.js +1 -1
  198. package/dist/components/tds-table-footer.js +14 -6
  199. package/dist/components/tds-table-header.js +2 -2
  200. package/dist/components/tds-table-toolbar.js +11 -5
  201. package/dist/components/tds-table.js +31 -7
  202. package/dist/components/tds-text-field.js +3 -3
  203. package/dist/components/tds-textarea.js +4 -4
  204. package/dist/components/tds-toast.js +2 -2
  205. package/dist/components/tds-toggle.js +2 -2
  206. package/dist/components/tds-tooltip.js +14 -6
  207. package/dist/esm/{index-9aa00178.js → index-e7907201.js} +1656 -1606
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/esm/tds-accordion-item.entry.js +1 -1
  210. package/dist/esm/tds-accordion.entry.js +1 -1
  211. package/dist/esm/tds-badge.entry.js +1 -1
  212. package/dist/esm/tds-banner.entry.js +1 -1
  213. package/dist/esm/tds-block.entry.js +1 -1
  214. package/dist/esm/tds-body-cell.entry.js +1 -1
  215. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  216. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  217. package/dist/esm/tds-button.entry.js +2 -2
  218. package/dist/esm/tds-card.entry.js +1 -1
  219. package/dist/esm/tds-checkbox.entry.js +1 -1
  220. package/dist/esm/tds-chip.entry.js +1 -1
  221. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  222. package/dist/esm/tds-datetime.entry.js +1 -1
  223. package/dist/esm/tds-divider.entry.js +1 -1
  224. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  225. package/dist/esm/tds-dropdown.entry.js +18 -29
  226. package/dist/esm/tds-folder-tab.entry.js +1 -1
  227. package/dist/esm/tds-folder-tabs.entry.js +1 -1
  228. package/dist/esm/tds-footer-group.entry.js +1 -1
  229. package/dist/esm/tds-footer-item.entry.js +1 -1
  230. package/dist/esm/tds-footer.entry.js +2 -2
  231. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  232. package/dist/esm/tds-header-cell.entry.js +15 -19
  233. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  234. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  235. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  236. package/dist/esm/tds-header-dropdown.entry.js +2 -2
  237. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  238. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  239. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  240. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  241. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  242. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  243. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  244. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  245. package/dist/esm/tds-header-launcher.entry.js +2 -2
  246. package/dist/esm/tds-header-title.entry.js +1 -1
  247. package/dist/esm/tds-header.entry.js +2 -2
  248. package/dist/esm/tds-icon.entry.js +1 -1
  249. package/dist/esm/tds-inline-tab.entry.js +1 -1
  250. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  251. package/dist/esm/tds-link.entry.js +1 -1
  252. package/dist/esm/tds-message.entry.js +1 -1
  253. package/dist/esm/tds-modal.entry.js +1 -1
  254. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  255. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  256. package/dist/esm/tds-popover-canvas.entry.js +1 -1
  257. package/dist/esm/tds-popover-core.entry.js +1 -1
  258. package/dist/esm/tds-popover-menu-item.entry.js +1 -1
  259. package/dist/esm/tds-popover-menu.entry.js +1 -1
  260. package/dist/esm/tds-radio-button.entry.js +1 -1
  261. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  262. package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
  263. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
  264. package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
  265. package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
  266. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  267. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  268. package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
  269. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  270. package/dist/esm/tds-side-menu.entry.js +2 -2
  271. package/dist/esm/tds-slider.entry.js +1 -1
  272. package/dist/esm/tds-spinner.entry.js +1 -1
  273. package/dist/esm/tds-step.entry.js +3 -3
  274. package/dist/esm/tds-stepper.entry.js +1 -1
  275. package/dist/esm/tds-table-body-row-expandable.entry.js +5 -5
  276. package/dist/esm/tds-table-body-row.entry.js +1 -1
  277. package/dist/esm/tds-table-body.entry.js +1 -1
  278. package/dist/esm/tds-table-footer.entry.js +11 -4
  279. package/dist/esm/tds-table-header.entry.js +1 -1
  280. package/dist/esm/tds-table-toolbar.entry.js +8 -3
  281. package/dist/esm/tds-table.entry.js +26 -6
  282. package/dist/esm/tds-text-field.entry.js +2 -2
  283. package/dist/esm/tds-textarea.entry.js +3 -3
  284. package/dist/esm/tds-toast.entry.js +1 -1
  285. package/dist/esm/tds-toggle.entry.js +2 -2
  286. package/dist/esm/tds-tooltip.entry.js +12 -5
  287. package/dist/esm/tegel.js +4 -4
  288. package/dist/tegel/{p-54e139fa.entry.js → p-0042d57c.entry.js} +1 -1
  289. package/dist/tegel/p-013d5d11.entry.js +1 -0
  290. package/dist/tegel/p-01cf5bee.entry.js +1 -0
  291. package/dist/tegel/{p-6d7887d7.entry.js → p-020bdfc8.entry.js} +1 -1
  292. package/dist/tegel/{p-641b0db1.entry.js → p-046a6a9c.entry.js} +1 -1
  293. package/dist/tegel/{p-a384f9a0.entry.js → p-11498ada.entry.js} +1 -1
  294. package/dist/tegel/{p-da0fceab.entry.js → p-15f87007.entry.js} +1 -1
  295. package/dist/tegel/{p-fb8e02ff.entry.js → p-1c705c6b.entry.js} +1 -1
  296. package/dist/tegel/{p-39370666.entry.js → p-20af56e4.entry.js} +1 -1
  297. package/dist/tegel/{p-b7e4fc1c.entry.js → p-223998c5.entry.js} +1 -1
  298. package/dist/tegel/p-2247d9ae.entry.js +1 -0
  299. package/dist/tegel/{p-d6cf180a.entry.js → p-256739c3.entry.js} +1 -1
  300. package/dist/tegel/{p-39977bb1.entry.js → p-2d7fdfc5.entry.js} +1 -1
  301. package/dist/tegel/{p-b2c68cbc.entry.js → p-2e9b7793.entry.js} +1 -1
  302. package/dist/tegel/{p-9ee01e60.entry.js → p-33ddfd31.entry.js} +1 -1
  303. package/dist/tegel/{p-53593a00.entry.js → p-35f939eb.entry.js} +1 -1
  304. package/dist/tegel/{p-87387c4b.entry.js → p-37af53cd.entry.js} +1 -1
  305. package/dist/tegel/p-425a03a8.entry.js +1 -0
  306. package/dist/tegel/p-461dbefd.entry.js +1 -0
  307. package/dist/tegel/{p-c64f7cfe.entry.js → p-46845a5c.entry.js} +1 -1
  308. package/dist/tegel/{p-c17b8164.entry.js → p-49a2ae8d.entry.js} +1 -1
  309. package/dist/tegel/{p-0a3f16c3.entry.js → p-49b6ca33.entry.js} +1 -1
  310. package/dist/tegel/{p-afe00180.entry.js → p-4ff6e472.entry.js} +1 -1
  311. package/dist/tegel/{p-c3d1ab6b.entry.js → p-500b062e.entry.js} +1 -1
  312. package/dist/tegel/{p-b975e962.entry.js → p-539a8a98.entry.js} +1 -1
  313. package/dist/tegel/{p-cd19d0f3.entry.js → p-57078ea5.entry.js} +1 -1
  314. package/dist/tegel/{p-8da2893f.entry.js → p-5d27536b.entry.js} +1 -1
  315. package/dist/tegel/{p-e7e960f6.entry.js → p-5e404c89.entry.js} +1 -1
  316. package/dist/tegel/{p-752a508f.entry.js → p-65f6dda4.entry.js} +1 -1
  317. package/dist/tegel/p-6638de62.entry.js +1 -0
  318. package/dist/tegel/p-679d6abd.js +2 -0
  319. package/dist/tegel/{p-8545dc7a.entry.js → p-69a4b584.entry.js} +1 -1
  320. package/dist/tegel/p-6a7b1318.entry.js +1 -0
  321. package/dist/tegel/{p-8d4a30ac.entry.js → p-6c826e8f.entry.js} +1 -1
  322. package/dist/tegel/{p-f8029cbb.entry.js → p-6ed47430.entry.js} +1 -1
  323. package/dist/tegel/{p-47d4ea47.entry.js → p-7011cf2c.entry.js} +1 -1
  324. package/dist/tegel/{p-fdd59c9c.entry.js → p-7a1f6e88.entry.js} +1 -1
  325. package/dist/tegel/{p-70460f61.entry.js → p-7db7cdbd.entry.js} +1 -1
  326. package/dist/tegel/{p-10c67559.entry.js → p-7edfd01e.entry.js} +1 -1
  327. package/dist/tegel/{p-154b0295.entry.js → p-7f4c5200.entry.js} +1 -1
  328. package/dist/tegel/{p-af1a436c.entry.js → p-83255ba3.entry.js} +1 -1
  329. package/dist/tegel/{p-de10bf9c.entry.js → p-85552da0.entry.js} +1 -1
  330. package/dist/tegel/p-8a702e4f.entry.js +1 -0
  331. package/dist/tegel/{p-6128483a.entry.js → p-8e5b6da7.entry.js} +1 -1
  332. package/dist/tegel/{p-927fad9a.entry.js → p-8e5c5c59.entry.js} +1 -1
  333. package/dist/tegel/{p-1e5daa25.entry.js → p-92c323b9.entry.js} +1 -1
  334. package/dist/tegel/{p-31e34f56.entry.js → p-95c17631.entry.js} +1 -1
  335. package/dist/tegel/{p-21df17f2.entry.js → p-98c91f5a.entry.js} +1 -1
  336. package/dist/tegel/{p-9d15b453.entry.js → p-9a66445f.entry.js} +1 -1
  337. package/dist/tegel/{p-f18d7a60.entry.js → p-a00b6607.entry.js} +1 -1
  338. package/dist/tegel/{p-0e419ec2.entry.js → p-ab4c51be.entry.js} +1 -1
  339. package/dist/tegel/p-af331ddd.entry.js +1 -0
  340. package/dist/tegel/{p-4dc24f53.entry.js → p-af385656.entry.js} +1 -1
  341. package/dist/tegel/{p-0c3dc988.entry.js → p-b0a0193a.entry.js} +1 -1
  342. package/dist/tegel/p-b0d58491.entry.js +1 -0
  343. package/dist/tegel/{p-de59b8dd.entry.js → p-b44a09ea.entry.js} +1 -1
  344. package/dist/tegel/{p-da7072c2.entry.js → p-bbb6845d.entry.js} +1 -1
  345. package/dist/tegel/{p-7c33a930.entry.js → p-c04e8a54.entry.js} +1 -1
  346. package/dist/tegel/{p-5c07ccd7.entry.js → p-c0ecda3d.entry.js} +1 -1
  347. package/dist/tegel/{p-7e3d4dfc.entry.js → p-c345b310.entry.js} +1 -1
  348. package/dist/tegel/{p-66d9fd55.entry.js → p-c6637944.entry.js} +1 -1
  349. package/dist/tegel/p-c96b81e5.entry.js +1 -0
  350. package/dist/tegel/{p-8134e5d4.entry.js → p-c9df3ab0.entry.js} +1 -1
  351. package/dist/tegel/{p-4b4cda77.entry.js → p-cc51ad30.entry.js} +1 -1
  352. package/dist/tegel/{p-2bc51e55.entry.js → p-cdb2dd5e.entry.js} +1 -1
  353. package/dist/tegel/{p-120ddbc3.entry.js → p-d052194d.entry.js} +1 -1
  354. package/dist/tegel/p-d6729285.entry.js +1 -0
  355. package/dist/tegel/{p-de085966.entry.js → p-db57d021.entry.js} +1 -1
  356. package/dist/tegel/{p-3f05b4f9.entry.js → p-e1051e82.entry.js} +1 -1
  357. package/dist/tegel/{p-91df4ba5.entry.js → p-e2665f9d.entry.js} +1 -1
  358. package/dist/tegel/p-e7b98ace.entry.js +1 -0
  359. package/dist/tegel/{p-de071583.entry.js → p-ee72b4b8.entry.js} +1 -1
  360. package/dist/tegel/{p-6d39b655.entry.js → p-f297779a.entry.js} +1 -1
  361. package/dist/tegel/p-f2c844de.entry.js +1 -0
  362. package/dist/tegel/p-f5f4b866.entry.js +1 -0
  363. package/dist/tegel/{p-0ee8d8f8.entry.js → p-f9d061c4.entry.js} +1 -1
  364. package/dist/tegel/{p-78f41f1e.entry.js → p-fba62542.entry.js} +1 -1
  365. package/dist/tegel/{p-08b7ab13.entry.js → p-fcbcec06.entry.js} +1 -1
  366. package/dist/tegel/p-fe818c12.entry.js +1 -0
  367. package/dist/tegel/tegel.css +2 -1
  368. package/dist/tegel/tegel.esm.js +1 -1
  369. package/dist/types/components/table/table/table.d.ts +9 -0
  370. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +3 -0
  371. package/dist/types/components/table/table-footer/table-footer.d.ts +1 -0
  372. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +3 -1
  373. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  374. package/dist/types/components/tooltip/tooltip.d.ts +3 -0
  375. package/dist/types/components.d.ts +24 -0
  376. package/dist/types/stencil-public-runtime.d.ts +2 -10
  377. package/loader/index.d.ts +3 -0
  378. package/package.json +6 -6
  379. package/dist/tegel/p-0552fcf0.entry.js +0 -1
  380. package/dist/tegel/p-0b2429b7.entry.js +0 -1
  381. package/dist/tegel/p-1839e86c.entry.js +0 -1
  382. package/dist/tegel/p-2581e064.entry.js +0 -1
  383. package/dist/tegel/p-306ceae7.js +0 -2
  384. package/dist/tegel/p-4dcd862a.entry.js +0 -1
  385. package/dist/tegel/p-53d3bfdb.entry.js +0 -1
  386. package/dist/tegel/p-5540ec23.entry.js +0 -1
  387. package/dist/tegel/p-5abd13c0.entry.js +0 -1
  388. package/dist/tegel/p-6bd5c9f3.entry.js +0 -1
  389. package/dist/tegel/p-7995afce.entry.js +0 -1
  390. package/dist/tegel/p-879e02ad.entry.js +0 -1
  391. package/dist/tegel/p-a34c65df.entry.js +0 -1
  392. package/dist/tegel/p-b945b89c.entry.js +0 -1
  393. package/dist/tegel/p-c652dddb.entry.js +0 -1
  394. package/dist/tegel/p-de3bf6c0.entry.js +0 -1
  395. package/dist/tegel/p-e0dd13b6.entry.js +0 -1
@@ -8,40 +8,27 @@ import appendHiddenInput from "../../utils/appendHiddenInput";
8
8
  export class TdsDropdown {
9
9
  constructor() {
10
10
  this.setDefaultOption = () => {
11
- // Ensure this.host.children is not empty
12
- if (this.host.children.length === 0) {
13
- console.warn('TDS DROPDOWN: Data missing. Disregard if loading data asynchronously.');
14
- return;
15
- }
16
11
  if (this.defaultValue) {
17
12
  const children = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
18
13
  let matched = false;
19
- children.forEach((element) => {
20
- if (this.multiselect) {
21
- this.defaultValue.split(',').forEach((value) => {
22
- if (value === element.value) {
23
- element.setSelected(true);
24
- this.value = this.value ? [...this.value, element.value] : [element.value];
25
- matched = true;
26
- }
27
- });
28
- }
29
- else {
30
- if (this.defaultValue === element.value) {
14
+ const defaultValues = this.multiselect
15
+ ? new Set(this.defaultValue.split(','))
16
+ : [this.defaultValue];
17
+ defaultValues.forEach((value) => {
18
+ children.forEach((element) => {
19
+ if (value === element.value) {
31
20
  element.setSelected(true);
32
- this.value = [element.value];
21
+ this.value = this.value
22
+ ? [...new Set([...this.value, element.value])]
23
+ : [element.value];
33
24
  matched = true;
34
25
  }
35
- else {
36
- element.setSelected(false);
37
- }
38
- }
39
- this.setValueAttribute();
40
- return element;
26
+ });
41
27
  });
42
28
  if (!matched) {
43
29
  console.warn(`TDS DROPDOWN: No matching option found for defaultValue "${this.defaultValue}"`);
44
30
  }
31
+ this.setValueAttribute();
45
32
  }
46
33
  };
47
34
  /* Returns a list of all children that are tds-dropdown-option elements */
@@ -172,6 +159,7 @@ export class TdsDropdown {
172
159
  }
173
160
  /** Method that resets the Dropdown, marks all children as non-selected and resets the value to null. */
174
161
  async reset() {
162
+ this.dropdownList.scrollTop = 0;
175
163
  this.internalReset();
176
164
  this.handleChange();
177
165
  }
@@ -202,6 +190,7 @@ export class TdsDropdown {
202
190
  console.warn('Tried to select multiple items, but multiselect is not enabled.');
203
191
  nextValue = [nextValue[0]];
204
192
  }
193
+ nextValue = [...new Set(nextValue)];
205
194
  this.internalReset();
206
195
  for (let i = 0; i < nextValue.length; i++) {
207
196
  const optionExist = this.getChildren().some((element) => element.value === nextValue[i]);
@@ -349,7 +338,7 @@ export class TdsDropdown {
349
338
  render() {
350
339
  var _a, _b, _c, _d;
351
340
  appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
352
- return (h(Host, { key: '9fee6da0243cf7b74abce8387454b32caacba96e', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'd338fdc28fdf1a6b24f7254e52f0d8581cc46293', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'a6852251cdf06567f2cb2a7516adb71d9ae3295d', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
341
+ return (h(Host, { key: 'f08f174f60709c0ede8466ae013cab38f12fc809', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '5ab1a9904dbc8c3e95b8d62d7088ed99eee0a7c0', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '57d50d6e45a036204d518545efa4e59a44d8f3f9', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
353
342
  filter: true,
354
343
  focus: this.filterFocus,
355
344
  disabled: this.disabled,
@@ -392,11 +381,11 @@ export class TdsDropdown {
392
381
  label-inside-as-placeholder
393
382
  ${this.size}
394
383
  ${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
395
- ` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '4db23bfa5b43445f3f995e6624eb4cc41e3dbca1', ref: (element) => (this.dropdownList = element), class: `dropdown-list
384
+ ` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '05f33587702d1d9f3a0bef68575a00b7f712db8e', ref: (element) => (this.dropdownList = element), class: `dropdown-list
396
385
  ${this.size}
397
386
  ${this.open ? 'open' : 'closed'}
398
387
  ${this.getOpenDirection()}
399
- ${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '23a98af0ba0ec7457dd83f0542fad645ae63765a', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '43425685729146305b871cabef0f769748865d9a', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: 'a1988ef07e8bf4be2f15ed274e3a9e431127e0ce', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: '2d2ccb11a76efbc7d67f663ca7a92a4f62563bf5', name: "error", size: "16px" }), this.helper))));
388
+ ${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '07fc8da74d16295b89a7e09c942dad2e1d4c7a85', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'b3952bdad6f4f69d6054e585070b446adb993c13', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '88b3cf13c0bd1ba03a5de47c58f6e4b42ecbaab1', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: 'd9538b144e0bd14dc33969d65e78545d20fe1bf4', name: "error", size: "16px" }), this.helper))));
400
389
  }
401
390
  static get is() { return "tds-dropdown"; }
402
391
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class TdsFooter {
16
16
  const usesStartSlot = hasSlot('start', this.host);
17
17
  const usesEndSlot = hasSlot('end', this.host);
18
18
  const usesCopyrightSlot = hasSlot('copyright', this.host);
19
- return (h(Host, { key: '454d913eea834fa60400c9714370d14425bc24b6', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '77ee89f78b3df1658a6c9e1f5b73273b447aca6d' }, usesTopSlot && h("slot", { key: '6a3c601f7fcd034d659848c3a568460489f874ca', name: "top" }), h("div", { key: '245560e49f1aa3ac1c0d9234f2b53c6c8be12a32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '414068ba7282518630065a79d30b6ca557958e7b', class: "footer-main-top" }, usesStartSlot && h("slot", { key: 'c96a3102e93ffa917ccd4c0b2a28d62d7fca91af', name: "start" }), usesEndSlot && h("slot", { key: 'ac6b940e444782af4cbaadf8fd451e1f9143abe5', name: "end" }))), h("div", { key: 'ce82243d065384f15de5f1d2e3008fdf2054c0d4', class: "footer-main-bottom" }, h("small", { key: '77ac4db0d9d34ddb9347f7183bdb374bf9b10242', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '551b06ad3b3d15aa954997e17cbf127ce61fc9fd', class: "brand" }, h("p", { key: '8f87301b189a00065a6d6441d074d42ed892bc70' }, "Scania")))))));
19
+ return (h(Host, { key: '454d913eea834fa60400c9714370d14425bc24b6', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '77ee89f78b3df1658a6c9e1f5b73273b447aca6d' }, usesTopSlot && h("slot", { key: '6a3c601f7fcd034d659848c3a568460489f874ca', name: "top" }), h("div", { key: '245560e49f1aa3ac1c0d9234f2b53c6c8be12a32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '2b3220a69f400b8b609fb423f4136b9fb3d1bf96', class: "footer-main-top" }, usesStartSlot && h("slot", { key: '952412fc57aef7abe5a195ac173a14a48a626c95', name: "start" }), usesEndSlot && h("slot", { key: 'a8b8f6d9c625b7da0ecee95e05a1cda4492b964a', name: "end" }))), h("div", { key: 'ca1e76bd613fa3662a5822882fc4ddc0e030c606', class: "footer-main-bottom" }, h("small", { key: '5c5c3803d71c51b8793993240f00912b89377985', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '2ebada35ffde37a7824b100fe34dd947c525741e', class: "brand" }, h("p", { key: 'e6233b2ce0d5f36a54f9069a9feec687388bc795' }, "Scania")))))));
20
20
  }
21
21
  static get is() { return "tds-footer"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -1,6 +1,7 @@
1
1
  :host {
2
2
  --tds-scrollbar-width-standard: thin;
3
3
  --tds-scrollbar-width: 10px;
4
+ --tds-scrollbar-height: 10px;
4
5
  --tds-scrollbar-thumb-border-width: 3px;
5
6
  --tds-scrollbar-thumb-border-hover-width: 2px;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  :host {
2
2
  --tds-scrollbar-width-standard: thin;
3
3
  --tds-scrollbar-width: 10px;
4
+ --tds-scrollbar-height: 10px;
4
5
  --tds-scrollbar-thumb-border-width: 3px;
5
6
  --tds-scrollbar-thumb-border-hover-width: 2px;
6
7
  }
@@ -4,6 +4,7 @@
4
4
  :host {
5
5
  --tds-scrollbar-width-standard: thin;
6
6
  --tds-scrollbar-width: 10px;
7
+ --tds-scrollbar-height: 10px;
7
8
  --tds-scrollbar-thumb-border-width: 3px;
8
9
  --tds-scrollbar-thumb-border-hover-width: 2px;
9
10
  }
@@ -104,7 +104,7 @@ export class TdsPopoverCanvas {
104
104
  "Placement": {
105
105
  "location": "import",
106
106
  "path": "@popperjs/core",
107
- "id": ""
107
+ "id": "node_modules::Placement"
108
108
  }
109
109
  }
110
110
  },
@@ -227,7 +227,7 @@ export class TdsPopoverCore {
227
227
  "Placement": {
228
228
  "location": "import",
229
229
  "path": "@popperjs/core",
230
- "id": ""
230
+ "id": "node_modules::Placement"
231
231
  }
232
232
  }
233
233
  },
@@ -105,7 +105,7 @@ export class TdsPopoverMenu {
105
105
  "Placement": {
106
106
  "location": "import",
107
107
  "path": "@popperjs/core",
108
- "id": ""
108
+ "id": "node_modules::Placement"
109
109
  }
110
110
  }
111
111
  },
@@ -4,6 +4,7 @@
4
4
  :host {
5
5
  --tds-scrollbar-width-standard: thin;
6
6
  --tds-scrollbar-width: 10px;
7
+ --tds-scrollbar-height: 10px;
7
8
  --tds-scrollbar-thumb-border-width: 3px;
8
9
  --tds-scrollbar-thumb-border-hover-width: 2px;
9
10
  }
@@ -163,7 +163,7 @@ export class TdsSideMenu {
163
163
  "references": {
164
164
  "CollapseEvent": {
165
165
  "location": "local",
166
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
166
+ "path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
167
167
  "id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
168
168
  }
169
169
  }
@@ -187,7 +187,7 @@ export class TdsSideMenu {
187
187
  "references": {
188
188
  "CollapseEvent": {
189
189
  "location": "local",
190
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
190
+ "path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
191
191
  "id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
192
192
  }
193
193
  }
@@ -211,7 +211,7 @@ export class TdsSideMenu {
211
211
  "references": {
212
212
  "InternalTdsSideMenuPropChange": {
213
213
  "location": "local",
214
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
214
+ "path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
215
215
  "id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
216
216
  }
217
217
  }
@@ -2,9 +2,6 @@
2
2
  position: relative;
3
3
  display: table-cell;
4
4
  }
5
- :host tds-icon {
6
- line-height: 1;
7
- }
8
5
  :host [role=listitem] {
9
6
  display: flex;
10
7
  justify-content: start;
@@ -24,6 +21,12 @@
24
21
  height: 30px;
25
22
  min-width: 30px;
26
23
  }
24
+ :host [role=listitem].lg .content-container tds-icon {
25
+ vertical-align: bottom;
26
+ }
27
+ :host [role=listitem].lg .content-container .index-container {
28
+ vertical-align: sub;
29
+ }
27
30
  :host [role=listitem].lg.vertical::after {
28
31
  content: " ";
29
32
  position: absolute;
@@ -81,10 +84,19 @@
81
84
  font: var(--tds-detail-05);
82
85
  letter-spacing: var(--tds-detail-05-ls);
83
86
  }
87
+ :host [role=listitem].sm .index-container {
88
+ vertical-align: -webkit-baseline-middle;
89
+ vertical-align: -moz-middle-with-baseline;
90
+ }
84
91
  :host [role=listitem].sm .content-container {
85
92
  height: 24px;
86
93
  min-width: 24px;
87
94
  }
95
+ :host [role=listitem].sm .tds-step-icon {
96
+ vertical-align: -webkit-baseline-middle;
97
+ vertical-align: -moz-middle-with-baseline;
98
+ margin-top: -2px;
99
+ }
88
100
  :host [role=listitem].sm.vertical::after {
89
101
  content: " ";
90
102
  position: absolute;
@@ -150,9 +162,7 @@
150
162
  :host [role=listitem] .content-container {
151
163
  border-radius: 100px;
152
164
  border: 1px solid var(--tds-stepper-icon-background);
153
- display: flex;
154
- justify-content: center;
155
- align-items: center;
165
+ text-align: center;
156
166
  position: relative;
157
167
  }
158
168
  :host [role=listitem] .content-container.error {
@@ -39,7 +39,7 @@ export class TdsStep {
39
39
  }
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '25272154fa202dc80faadec2f69bb76c7cfb23ba' }, h("div", { key: 'b95ec3ae0c8842cce29a26a00b77e9d63ddf3e7c', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("div", { key: '5bc8c4ccdf3af7371ea49018d2cd9e1081f7055d', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h("tds-icon", { name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (this.index)), !this.hideLabels && (h("div", { key: '971af264f2f27ddc0d42c9d05e9ae2d641d88bac', class: `label ${this.size} ${this.state}` }, h("slot", { key: 'dec79d74317c78f72230e4983ac7c672d2560e4b', name: "label" }))))));
42
+ return (h(Host, { key: '25272154fa202dc80faadec2f69bb76c7cfb23ba' }, h("div", { key: 'b95ec3ae0c8842cce29a26a00b77e9d63ddf3e7c', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: '0dfc323696c80230df87de15858a08c2051e9f64', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h("tds-icon", { class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: '1726259dde21fea66e1554f6f5760176e3a24b13', class: `label ${this.size} ${this.state}` }, h("slot", { key: 'dd9d6499348d2e7bbf36920c63dd836371dbd090', name: "label" }))))));
43
43
  }
44
44
  static get is() { return "tds-step"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -173,7 +173,7 @@ export class TdsStepper {
173
173
  "references": {
174
174
  "InternalTdsStepperPropChange": {
175
175
  "location": "local",
176
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/stepper/stepper.tsx",
176
+ "path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/stepper/stepper.tsx",
177
177
  "id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
178
178
  }
179
179
  }
@@ -1,3 +1,15 @@
1
+ :host {
2
+ --tds-scrollbar-width-standard: thin;
3
+ --tds-scrollbar-width: 10px;
4
+ --tds-scrollbar-height: 10px;
5
+ --tds-scrollbar-thumb-border-width: 3px;
6
+ --tds-scrollbar-thumb-border-hover-width: 2px;
7
+ }
8
+
9
+ body {
10
+ scrollbar-width: thin;
11
+ }
12
+
1
13
  :host,
2
14
  .tds-table {
3
15
  border-collapse: collapse;
@@ -12,4 +24,53 @@
12
24
  :host(.tds-table--responsive),
13
25
  .tds-table--responsive {
14
26
  width: 100%;
27
+ }
28
+
29
+ .tds-table--horizontal-scroll {
30
+ display: block;
31
+ overflow-x: scroll;
32
+ white-space: nowrap;
33
+ }
34
+ .tds-table--horizontal-scroll:hover::-webkit-scrollbar-thumb {
35
+ border: var(--tds-scrollbar-thumb-border-hover-width) solid transparent;
36
+ background: var(--tds-scrollbar-hover-thumb-color);
37
+ background-clip: padding-box;
38
+ }
39
+ .tds-table--horizontal-scroll::-webkit-scrollbar {
40
+ height: var(--tds-scrollbar-height);
41
+ }
42
+ .tds-table--horizontal-scroll::-webkit-scrollbar-track {
43
+ background: transparent;
44
+ }
45
+ .tds-table--horizontal-scroll::-webkit-scrollbar-thumb {
46
+ border-radius: 40px;
47
+ background: var(--tds-scrollbar-thumb-color);
48
+ border: var(--tds-scrollbar-thumb-border-width) solid transparent;
49
+ background-clip: padding-box;
50
+ }
51
+ .tds-table--horizontal-scroll::-webkit-scrollbar-button {
52
+ height: 0;
53
+ width: 0;
54
+ }
55
+ @supports not selector(::-webkit-scrollbar) {
56
+ .tds-table--horizontal-scroll {
57
+ scrollbar-color: var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);
58
+ scrollbar-width: var(--tds-scrollbar-width-standard);
59
+ }
60
+ }
61
+
62
+ .tds-table--horizontal-scroll-toolbar {
63
+ margin-top: 64px;
64
+ }
65
+
66
+ .tds-table--horizontal-scroll-toolbar-compact {
67
+ margin-top: 56px;
68
+ }
69
+
70
+ .tds-table--horizontal-scroll-footer {
71
+ margin-bottom: 49px;
72
+ }
73
+
74
+ .tds-table--horizontal-scroll-footer-compact {
75
+ margin-bottom: 33px;
15
76
  }
@@ -14,7 +14,10 @@ export class TdsTable {
14
14
  this.expandableRows = false;
15
15
  this.responsive = false;
16
16
  this.modeVariant = null;
17
+ this.horizontalScrollWidth = null;
17
18
  this.tableId = generateUniqueId();
19
+ this.enableHorizontalScrollToolbarDesign = false;
20
+ this.enableHorizontalScrollFooterDesign = false;
18
21
  }
19
22
  emitInternalTdsPropChange(changedValueName, changedValue) {
20
23
  this.internalTdsTablePropChange.emit({
@@ -63,18 +66,34 @@ export class TdsTable {
63
66
  modeVariantChanged(newValue) {
64
67
  this.emitInternalTdsPropChange('modeVariant', newValue);
65
68
  }
69
+ widthChanged(newValue) {
70
+ this.emitInternalTdsPropChange('horizontalScrollWidth', newValue);
71
+ }
72
+ componentWillRender() {
73
+ if (this.horizontalScrollWidth) {
74
+ this.enableHorizontalScrollToolbarDesign =
75
+ this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
76
+ this.enableHorizontalScrollFooterDesign =
77
+ this.host.closest('tds-table').getElementsByTagName('tds-table-footer').length >= 1;
78
+ }
79
+ }
66
80
  render() {
67
- return (h(Host, { key: 'e90429bc887c2a3a24eaf3acf0bba7748fd291ed', class: {
81
+ return (h(Host, { key: 'da929268a984ca0e81843132b2fafd6c79bec3b3', class: {
68
82
  'tds-table--responsive': this.responsive,
69
83
  'tds-mode-variant-primary': this.modeVariant === 'primary',
70
84
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
71
- } }, h("table", { key: '0ab17fb64542a59745bf6b5a8dee0fc365adecf3', class: {
85
+ } }, h("table", { key: '2ba662d97bc834a7a0d6d71338fc7c322bc15741', style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {}, class: {
72
86
  'tds-table': true,
73
87
  'tds-table--compact': this.compactDesign,
74
88
  'tds-table--divider': this.verticalDividers,
75
89
  'tds-table--no-min-width': this.noMinWidth,
76
90
  'tds-table--responsive': this.responsive,
77
- } }, h("slot", { key: '855c9d02a5564e5ac5cba37c92b87e19e6fba919' }))));
91
+ 'tds-table--horizontal-scroll': !!this.horizontalScrollWidth,
92
+ 'tds-table--horizontal-scroll-toolbar': this.enableHorizontalScrollToolbarDesign && !this.compactDesign,
93
+ 'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
94
+ 'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
95
+ 'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
96
+ } }, h("slot", { key: 'c95e71aeaac2f4378d440bb23ff890c9c4a76fdf' }))));
78
97
  }
79
98
  static get is() { return "tds-table"; }
80
99
  static get encapsulation() { return "shadow"; }
@@ -215,6 +234,24 @@ export class TdsTable {
215
234
  "reflect": true,
216
235
  "defaultValue": "null"
217
236
  },
237
+ "horizontalScrollWidth": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "string",
242
+ "resolved": "string",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": true,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": "Width of the table, used as the constraint for horizontal scrolling.\n**NOTE**: this will disable usage of the responsive flag"
250
+ },
251
+ "attribute": "horizontal-scroll-width",
252
+ "reflect": false,
253
+ "defaultValue": "null"
254
+ },
218
255
  "tableId": {
219
256
  "type": "string",
220
257
  "mutable": false,
@@ -235,6 +272,12 @@ export class TdsTable {
235
272
  }
236
273
  };
237
274
  }
275
+ static get states() {
276
+ return {
277
+ "enableHorizontalScrollToolbarDesign": {},
278
+ "enableHorizontalScrollFooterDesign": {}
279
+ };
280
+ }
238
281
  static get events() {
239
282
  return [{
240
283
  "method": "internalTdsTablePropChange",
@@ -255,7 +298,7 @@ export class TdsTable {
255
298
  "references": {
256
299
  "InternalTdsTablePropChange": {
257
300
  "location": "local",
258
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/table/table/table.tsx",
301
+ "path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/table/table/table.tsx",
259
302
  "id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
260
303
  }
261
304
  }
@@ -303,6 +346,9 @@ export class TdsTable {
303
346
  }, {
304
347
  "propName": "modeVariant",
305
348
  "methodName": "modeVariantChanged"
349
+ }, {
350
+ "propName": "horizontalScrollWidth",
351
+ "methodName": "widthChanged"
306
352
  }];
307
353
  }
308
354
  }
@@ -9,6 +9,9 @@ const relevantTableProps = [
9
9
  /**
10
10
  * @slot <default> - <b>Unnamed slot.</b> For the cells.
11
11
  * @slot expand-row - Slot for the expanded row.
12
+
13
+ * @part row - Selector for the main row of the table.
14
+ * @part expand-row - Selector for the expanded row of the table.
12
15
  */
13
16
  export class TdsTableBodyRowExpandable {
14
17
  constructor() {
@@ -81,18 +84,18 @@ export class TdsTableBodyRowExpandable {
81
84
  this.sendValue();
82
85
  }
83
86
  render() {
84
- return (h(Host, { key: '74b02f93d3827e994ec32d6936861ca272cf6091', class: {
87
+ return (h(Host, { key: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
85
88
  'tds-table__row': true,
86
89
  'tds-table__row-expand--active': this.isExpanded,
87
90
  'tds-table__compact': this.compactDesign,
88
91
  'tds-table--divider': this.verticalDividers,
89
- } }, h("tr", { key: '8c9b941b05eba4e785bd3d0d3b2fcc102e582e3b', class: {
92
+ } }, h("tr", { key: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
90
93
  'tds-table__row': true,
91
94
  'tds-table__row--expanded': this.isExpanded,
92
- } }, h("td", { key: '6ca2b7232372c6773b20cbebcf57c2dc22873b8e', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: '37831f286353d52f811edec384f2e8e9da65cd50', class: "tds-table__expand-control-container" }, h("input", { key: 'ecd7ac5041cba257b00485e44e9b2867fdd563a6', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '2eb29d27eea8ff2ee7a6afe74a70695b03aa141d', class: "tds-expendable-row-icon" }, h("svg", { key: '88731d236df24d952130566dfa395d3e161de82e', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '81a677c1f6a0b15145b879748cc4d9d6a93821d4', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: 'deffa2b70b546db18812e4288e07fe6f8ac0d42d' })), h("tr", { key: '1515f8da52b7fec720a788ae9c2127d8a9a69fce', class: {
95
+ }, part: "row" }, h("td", { key: 'd995074fc578640544f59df3426762ff6595dd0b', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: '0f905bda5651a8c9dc30094dbc402e5e618e4030', class: "tds-table__expand-control-container" }, h("input", { key: '9b316a0e3a44cfa21851a1ac2ec0980d53d3aa54', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '022d891384b907d3ebce4b2138fef4f5c6f7d44f', class: "tds-expendable-row-icon" }, h("svg", { key: 'fb7ccb4d599e72a9d7a56808f59226779ffe611b', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '1e2c766463813a4b1edc32093abbbf501b99974b', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '7f0e3d93df3da8eeff969daa9aba8eecaa1e6e23' })), h("tr", { key: '89766434b64dd9bf0aecf805fdd494aab68f8af9', class: {
93
96
  'tds-table__row-expand': true,
94
97
  'tds-table__row-expand--expanded': this.isExpanded,
95
- } }, h("td", { key: 'e16011d9e155b003d011de4a73518a81414f2e91', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: 'f60bf938090436423632bf93076bd41ee8def3ce', name: "expand-row" })))));
98
+ }, part: "expand-row" }, h("td", { key: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
96
99
  }
97
100
  static get is() { return "tds-table-body-row-expandable"; }
98
101
  static get encapsulation() { return "shadow"; }
@@ -97,6 +97,12 @@
97
97
  width: 28px;
98
98
  }
99
99
 
100
+ :host(.footer__horizontal-scroll) {
101
+ display: inline-table;
102
+ position: absolute;
103
+ margin-top: 10px;
104
+ }
105
+
100
106
  @keyframes tds-shake-animation {
101
107
  10%, 90% {
102
108
  transform: translate3d(-1px, 0, 0);
@@ -1,5 +1,8 @@
1
1
  import { h, Host, } from "@stencil/core";
2
- const relevantTableProps = ['compactDesign'];
2
+ const relevantTableProps = [
3
+ 'compactDesign',
4
+ 'horizontalScrollWidth',
5
+ ];
3
6
  function removeShakeAnimation(e) {
4
7
  e.target.classList.remove('tds-table__page-selector-input--shake');
5
8
  }
@@ -38,6 +41,7 @@ export class TdsTableFooter {
38
41
  this.compactDesign = false;
39
42
  this.lastCorrectValue = undefined;
40
43
  this.tableId = '';
44
+ this.horizontalScrollWidth = null;
41
45
  }
42
46
  internalTdsPropChangeListener(event) {
43
47
  if (this.tableId === event.detail.tableId) {
@@ -90,7 +94,10 @@ export class TdsTableFooter {
90
94
  this.storeLastCorrectValue(this.paginationValue);
91
95
  }
92
96
  render() {
93
- return (h(Host, { key: '8a128e443420d841b0e56303d4c533ced7fef56c', class: this.compactDesign ? 'tds-table--compact' : '' }, h("tr", { key: '6315f2fdf35c670a702cb7a298b29d53a636a639', class: "tds-table__footer-row" }, h("td", { key: '6d179522f5e379c8899d545c1cae1ebf868dc9dc', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'd6b8f037c8a0b4ec05448a64ea3edc11b253289b', class: "tds-table__pagination" }, h("div", { key: '422d83996b22557dc9d31ab23e82b040a3106f62', class: "tds-table__row-selector" }), h("div", { key: 'a978da12ff6763049d9e75e9dea8d85e2786af07', class: "tds-table__page-selector" }, h("input", { key: '343d34c4c7edebd6a797e4bb5c59e20ea5b43fad', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '38d4a5c1897adeda83ea8faec711a4e32c1ef040', class: "tds-table__footer-text" }, "of ", h("span", { key: '0769b3a30cfe35dcfb13834625b60825ae087a60' }, this.pages), " pages"), h("button", { key: 'fa8af3c295fdbbeb5d965abd76ec71a7564f0a50', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '0011853f15bc9f0880a2bdf98d20952df2f49ba8', name: "chevron_left", size: "20px" })), h("button", { key: '36c2c94ec609f6e6d30dfd9fc698709f65f24a98', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'e3affadd067d44e1f106be7a9334ffe14dae0f1f', name: "chevron_right", size: "20px" })))))))));
97
+ return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
98
+ 'tds-table--compact': this.compactDesign,
99
+ 'footer__horizontal-scroll': !!this.horizontalScrollWidth,
100
+ }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
94
101
  }
95
102
  static get is() { return "tds-table-footer"; }
96
103
  static get encapsulation() { return "shadow"; }
@@ -185,7 +192,8 @@ export class TdsTableFooter {
185
192
  "columnsNumber": {},
186
193
  "compactDesign": {},
187
194
  "lastCorrectValue": {},
188
- "tableId": {}
195
+ "tableId": {},
196
+ "horizontalScrollWidth": {}
189
197
  };
190
198
  }
191
199
  static get events() {
@@ -22,6 +22,9 @@
22
22
  padding: 8px 16px;
23
23
  margin: 0;
24
24
  }
25
+ :host(.tds-table__header-cell) .tds-table__header-text-no-padding {
26
+ padding: 0;
27
+ }
25
28
 
26
29
  :host(.tds-table__header-cell--sortable) .tds-table__header-button {
27
30
  display: flex;
@@ -93,6 +96,10 @@
93
96
  min-width: unset;
94
97
  }
95
98
 
99
+ :host(.tds-table--no-padding) {
100
+ height: unset;
101
+ }
102
+
96
103
  :host(.tds-table__header-cell:first-of-type) {
97
104
  border-top-left-radius: 4px;
98
105
  }