@scania/tegel 1.0.0 → 1.0.1

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 (337) hide show
  1. package/README.md +178 -178
  2. package/components/checkbox.js +75 -0
  3. package/{dist/components → components}/core-header-item.js +1 -0
  4. package/{dist/components → components}/divider.js +1 -0
  5. package/{dist/components → components}/header-dropdown-list-item.js +1 -0
  6. package/{dist/components → components}/header-dropdown-list.js +1 -0
  7. package/{dist/components → components}/header-item.js +1 -0
  8. package/{dist/components → components}/header-launcher-button.js +1 -0
  9. package/{dist/components → components}/icon.js +2 -1
  10. package/{dist/components → components}/popover-canvas.js +1 -0
  11. package/{dist/components → components}/popover-core.js +1 -0
  12. package/{dist/components → components}/side-menu-item.js +1 -0
  13. package/{dist/components → components}/side-menu-user-image.js +1 -0
  14. package/{dist/components → components}/side-menu-user-label.js +1 -0
  15. package/{dist/components → components}/tds-accordion-item.d.ts +1 -1
  16. package/{dist/components → components}/tds-accordion-item.js +6 -5
  17. package/{dist/components → components}/tds-accordion.d.ts +1 -1
  18. package/{dist/components → components}/tds-accordion.js +1 -0
  19. package/{dist/components → components}/tds-badge.d.ts +1 -1
  20. package/{dist/components → components}/tds-badge.js +1 -0
  21. package/{dist/components → components}/tds-banner.d.ts +1 -1
  22. package/{dist/components → components}/tds-banner.js +1 -9
  23. package/{dist/components → components}/tds-block.d.ts +1 -1
  24. package/{dist/components → components}/tds-block.js +1 -0
  25. package/{dist/components → components}/tds-body-cell.d.ts +1 -1
  26. package/{dist/components → components}/tds-body-cell.js +1 -0
  27. package/{dist/components → components}/tds-breadcrumb.d.ts +1 -1
  28. package/{dist/components → components}/tds-breadcrumb.js +1 -0
  29. package/{dist/components → components}/tds-breadcrumbs.d.ts +1 -1
  30. package/{dist/components → components}/tds-breadcrumbs.js +1 -0
  31. package/{dist/components → components}/tds-button.d.ts +1 -1
  32. package/{dist/components → components}/tds-button.js +1 -0
  33. package/{dist/components → components}/tds-card.d.ts +1 -1
  34. package/{dist/components → components}/tds-card.js +1 -0
  35. package/{dist/components → components}/tds-checkbox.d.ts +1 -1
  36. package/{dist/components → components}/tds-chip.d.ts +1 -1
  37. package/{dist/components → components}/tds-chip.js +1 -0
  38. package/{dist/components → components}/tds-core-header-item.d.ts +1 -1
  39. package/{dist/components → components}/tds-datetime.d.ts +1 -1
  40. package/{dist/components → components}/tds-datetime.js +9 -8
  41. package/{dist/components → components}/tds-divider.d.ts +1 -1
  42. package/{dist/components → components}/tds-dropdown-option.d.ts +1 -1
  43. package/{dist/components → components}/tds-dropdown-option.js +6 -5
  44. package/{dist/components → components}/tds-dropdown.d.ts +1 -1
  45. package/{dist/components → components}/tds-dropdown.js +18 -17
  46. package/{dist/components → components}/tds-folder-tab.d.ts +1 -1
  47. package/{dist/components → components}/tds-folder-tab.js +2 -1
  48. package/{dist/components → components}/tds-folder-tabs.d.ts +1 -1
  49. package/{dist/components → components}/tds-folder-tabs.js +1 -0
  50. package/{dist/components → components}/tds-footer-group.d.ts +1 -1
  51. package/{dist/components → components}/tds-footer-group.js +3 -2
  52. package/{dist/components → components}/tds-footer-item.d.ts +1 -1
  53. package/{dist/components → components}/tds-footer-item.js +1 -0
  54. package/{dist/components → components}/tds-footer.d.ts +1 -1
  55. package/{dist/components → components}/tds-footer.js +1 -0
  56. package/{dist/components → components}/tds-header-brand-symbol.d.ts +1 -1
  57. package/{dist/components → components}/tds-header-brand-symbol.js +1 -0
  58. package/{dist/components → components}/tds-header-cell.d.ts +1 -1
  59. package/{dist/components → components}/tds-header-cell.js +1 -0
  60. package/{dist/components → components}/tds-header-dropdown-list-item.d.ts +1 -1
  61. package/{dist/components → components}/tds-header-dropdown-list-user.d.ts +1 -1
  62. package/{dist/components → components}/tds-header-dropdown-list-user.js +1 -0
  63. package/{dist/components → components}/tds-header-dropdown-list.d.ts +1 -1
  64. package/{dist/components → components}/tds-header-dropdown.d.ts +1 -1
  65. package/{dist/components → components}/tds-header-dropdown.js +1 -0
  66. package/{dist/components → components}/tds-header-hamburger.d.ts +1 -1
  67. package/{dist/components → components}/tds-header-hamburger.js +1 -0
  68. package/{dist/components → components}/tds-header-item.d.ts +1 -1
  69. package/{dist/components → components}/tds-header-launcher-button.d.ts +1 -1
  70. package/{dist/components → components}/tds-header-launcher-grid-item.d.ts +1 -1
  71. package/{dist/components → components}/tds-header-launcher-grid-item.js +1 -0
  72. package/{dist/components → components}/tds-header-launcher-grid-title.d.ts +1 -1
  73. package/{dist/components → components}/tds-header-launcher-grid-title.js +1 -0
  74. package/{dist/components → components}/tds-header-launcher-grid.d.ts +1 -1
  75. package/{dist/components → components}/tds-header-launcher-grid.js +1 -0
  76. package/{dist/components → components}/tds-header-launcher-list-item.d.ts +1 -1
  77. package/{dist/components → components}/tds-header-launcher-list-item.js +1 -0
  78. package/{dist/components → components}/tds-header-launcher-list-title.d.ts +1 -1
  79. package/{dist/components → components}/tds-header-launcher-list-title.js +1 -0
  80. package/{dist/components → components}/tds-header-launcher-list.d.ts +1 -1
  81. package/{dist/components → components}/tds-header-launcher-list.js +1 -0
  82. package/{dist/components → components}/tds-header-launcher.d.ts +1 -1
  83. package/{dist/components → components}/tds-header-launcher.js +1 -0
  84. package/{dist/components → components}/tds-header-title.d.ts +1 -1
  85. package/{dist/components → components}/tds-header-title.js +1 -0
  86. package/{dist/components → components}/tds-header.d.ts +1 -1
  87. package/{dist/components → components}/tds-header.js +1 -0
  88. package/{dist/components → components}/tds-icon.d.ts +1 -1
  89. package/{dist/components → components}/tds-inline-tab.d.ts +1 -1
  90. package/{dist/components → components}/tds-inline-tab.js +2 -1
  91. package/{dist/components → components}/tds-inline-tabs.d.ts +1 -1
  92. package/{dist/components → components}/tds-inline-tabs.js +1 -0
  93. package/{dist/components → components}/tds-link.d.ts +1 -1
  94. package/{dist/components → components}/tds-link.js +4 -3
  95. package/{dist/components → components}/tds-message.d.ts +1 -1
  96. package/{dist/components → components}/tds-message.js +4 -3
  97. package/{dist/components → components}/tds-modal.d.ts +1 -1
  98. package/{dist/components → components}/tds-modal.js +1 -0
  99. package/{dist/components → components}/tds-navigation-tab.d.ts +1 -1
  100. package/{dist/components → components}/tds-navigation-tab.js +2 -1
  101. package/{dist/components → components}/tds-navigation-tabs.d.ts +1 -1
  102. package/{dist/components → components}/tds-navigation-tabs.js +1 -0
  103. package/{dist/components → components}/tds-popover-canvas.d.ts +1 -1
  104. package/{dist/components → components}/tds-popover-core.d.ts +1 -1
  105. package/{dist/components → components}/tds-popover-menu-item.d.ts +1 -1
  106. package/{dist/components → components}/tds-popover-menu-item.js +1 -0
  107. package/{dist/components → components}/tds-popover-menu.d.ts +1 -1
  108. package/{dist/components → components}/tds-popover-menu.js +1 -0
  109. package/{dist/components → components}/tds-radio-button.d.ts +1 -1
  110. package/{dist/components → components}/tds-radio-button.js +1 -0
  111. package/{dist/components → components}/tds-side-menu-close-button.d.ts +1 -1
  112. package/{dist/components → components}/tds-side-menu-close-button.js +1 -0
  113. package/{dist/components → components}/tds-side-menu-collapse-button.d.ts +1 -1
  114. package/{dist/components → components}/tds-side-menu-collapse-button.js +1 -0
  115. package/{dist/components → components}/tds-side-menu-dropdown-list-item.d.ts +1 -1
  116. package/{dist/components → components}/tds-side-menu-dropdown-list-item.js +1 -0
  117. package/{dist/components → components}/tds-side-menu-dropdown-list.d.ts +1 -1
  118. package/{dist/components → components}/tds-side-menu-dropdown-list.js +1 -0
  119. package/{dist/components → components}/tds-side-menu-dropdown.d.ts +1 -1
  120. package/{dist/components → components}/tds-side-menu-dropdown.js +1 -0
  121. package/{dist/components → components}/tds-side-menu-item.d.ts +1 -1
  122. package/{dist/components → components}/tds-side-menu-overlay.d.ts +1 -1
  123. package/{dist/components → components}/tds-side-menu-overlay.js +1 -0
  124. package/{dist/components → components}/tds-side-menu-user-image.d.ts +1 -1
  125. package/{dist/components → components}/tds-side-menu-user-label.d.ts +1 -1
  126. package/{dist/components → components}/tds-side-menu-user.d.ts +1 -1
  127. package/{dist/components → components}/tds-side-menu-user.js +1 -0
  128. package/{dist/components → components}/tds-side-menu.d.ts +1 -1
  129. package/{dist/components → components}/tds-side-menu.js +1 -0
  130. package/{dist/components → components}/tds-slider.d.ts +1 -1
  131. package/{dist/components → components}/tds-slider.js +1 -0
  132. package/{dist/components → components}/tds-spinner.d.ts +1 -1
  133. package/{dist/components → components}/tds-spinner.js +1 -0
  134. package/{dist/components → components}/tds-step.d.ts +1 -1
  135. package/{dist/components → components}/tds-step.js +1 -0
  136. package/{dist/components → components}/tds-stepper.d.ts +1 -1
  137. package/{dist/components → components}/tds-stepper.js +1 -0
  138. package/{dist/components → components}/tds-table-body-row-expandable.d.ts +1 -1
  139. package/{dist/components → components}/tds-table-body-row-expandable.js +1 -0
  140. package/{dist/components → components}/tds-table-body-row.d.ts +1 -1
  141. package/{dist/components → components}/tds-table-body-row.js +1 -0
  142. package/{dist/components → components}/tds-table-body.d.ts +1 -1
  143. package/{dist/components → components}/tds-table-body.js +1 -0
  144. package/{dist/components → components}/tds-table-footer.d.ts +1 -1
  145. package/{dist/components → components}/tds-table-footer.js +2 -1
  146. package/{dist/components → components}/tds-table-header.d.ts +1 -1
  147. package/{dist/components → components}/tds-table-header.js +1 -0
  148. package/{dist/components → components}/tds-table-toolbar.d.ts +1 -1
  149. package/{dist/components → components}/tds-table-toolbar.js +1 -0
  150. package/{dist/components → components}/tds-table.d.ts +1 -1
  151. package/{dist/components → components}/tds-table.js +1 -0
  152. package/{dist/components → components}/tds-text-field.d.ts +1 -1
  153. package/{dist/components → components}/tds-text-field.js +12 -11
  154. package/{dist/components → components}/tds-textarea.d.ts +1 -1
  155. package/{dist/components → components}/tds-textarea.js +11 -10
  156. package/{dist/components → components}/tds-toast.d.ts +1 -1
  157. package/{dist/components → components}/tds-toast.js +3 -2
  158. package/{dist/components → components}/tds-toggle.d.ts +1 -1
  159. package/{dist/components → components}/tds-toggle.js +1 -0
  160. package/{dist/components → components}/tds-tooltip.d.ts +1 -1
  161. package/{dist/components → components}/tds-tooltip.js +1 -0
  162. package/dist/cjs/tds-accordion-item.cjs.entry.js +5 -5
  163. package/dist/cjs/tds-banner.cjs.entry.js +0 -9
  164. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  165. package/dist/cjs/tds-datetime.cjs.entry.js +8 -8
  166. package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -5
  167. package/dist/cjs/tds-dropdown.cjs.entry.js +17 -17
  168. package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
  169. package/dist/cjs/tds-footer-group.cjs.entry.js +2 -2
  170. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  171. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  172. package/dist/cjs/tds-link.cjs.entry.js +3 -3
  173. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  174. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  175. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  176. package/dist/cjs/tds-text-field.cjs.entry.js +11 -11
  177. package/dist/cjs/tds-textarea.cjs.entry.js +10 -10
  178. package/dist/cjs/tds-toast.cjs.entry.js +2 -2
  179. package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -6
  180. package/dist/collection/components/accordion/accordion.stories.js +21 -21
  181. package/dist/collection/components/badge/badge.stories.js +30 -30
  182. package/dist/collection/components/banner/banner.js +2 -25
  183. package/dist/collection/components/banner/banner.stories.js +16 -19
  184. package/dist/collection/components/block/block.stories.js +9 -9
  185. package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +12 -12
  186. package/dist/collection/components/button/button.stories.js +26 -26
  187. package/dist/collection/components/card/card.js +2 -2
  188. package/dist/collection/components/card/card.stories.js +31 -31
  189. package/dist/collection/components/checkbox/checkbox.css +14 -0
  190. package/dist/collection/components/checkbox/checkbox.js +1 -1
  191. package/dist/collection/components/checkbox/checkbox.stories.js +22 -22
  192. package/dist/collection/components/chip/chip.js +5 -5
  193. package/dist/collection/components/chip/chip.stories.js +93 -93
  194. package/dist/collection/components/datetime/datetime.js +8 -8
  195. package/dist/collection/components/datetime/datetime.stories.js +40 -40
  196. package/dist/collection/components/divider/divider.stories.js +4 -4
  197. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +4 -4
  198. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -5
  199. package/dist/collection/components/dropdown/dropdown.js +18 -18
  200. package/dist/collection/components/dropdown/dropdown.stories.js +57 -57
  201. package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
  202. package/dist/collection/components/footer/footer.stories.js +93 -93
  203. package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -1
  204. package/dist/collection/components/header/header-item/header-item.js +1 -1
  205. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
  206. package/dist/collection/components/header/header.stories.js +31 -31
  207. package/dist/collection/components/icon/icon.stories.js +2 -2
  208. package/dist/collection/components/icon/iconsArray.js +115 -115
  209. package/dist/collection/components/link/link.js +3 -3
  210. package/dist/collection/components/link/link.stories.js +9 -9
  211. package/dist/collection/components/message/message.js +3 -3
  212. package/dist/collection/components/message/message.stories.js +18 -18
  213. package/dist/collection/components/modal/modal.js +1 -1
  214. package/dist/collection/components/modal/modal.stories.js +27 -27
  215. package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
  216. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +33 -33
  217. package/dist/collection/components/popover-core/popover-core.js +1 -1
  218. package/dist/collection/components/popover-menu/popover-menu.js +1 -1
  219. package/dist/collection/components/popover-menu/popover-menu.stories.js +60 -60
  220. package/dist/collection/components/radio-button/radio-button.js +2 -2
  221. package/dist/collection/components/radio-button/radio-button.stories.js +44 -44
  222. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
  223. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
  224. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
  225. package/dist/collection/components/side-menu/side-menu.js +4 -4
  226. package/dist/collection/components/side-menu/side-menu.stories.js +143 -143
  227. package/dist/collection/components/slider/slider.js +1 -1
  228. package/dist/collection/components/slider/slider.stories.js +38 -38
  229. package/dist/collection/components/spinner/spinner.stories.js +5 -5
  230. package/dist/collection/components/stepper/stepper.js +2 -2
  231. package/dist/collection/components/stepper/stepper.stories.js +14 -14
  232. package/dist/collection/components/table/table/table.js +2 -2
  233. package/dist/collection/components/table/table-body-row/table-body-row.js +1 -1
  234. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -1
  235. package/dist/collection/components/table/table-component-basic.stories.js +51 -51
  236. package/dist/collection/components/table/table-component-batch-actions.stories.js +58 -58
  237. package/dist/collection/components/table/table-component-custom-width.stories.js +52 -52
  238. package/dist/collection/components/table/table-component-expandable-rows.stories.js +38 -38
  239. package/dist/collection/components/table/table-component-filtering.stories.js +71 -71
  240. package/dist/collection/components/table/table-component-multiselect.stories.js +73 -73
  241. package/dist/collection/components/table/table-component-pagination.stories.js +72 -72
  242. package/dist/collection/components/table/table-component-sorting.stories.js +74 -74
  243. package/dist/collection/components/table/table-footer/table-footer.css +2 -1
  244. package/dist/collection/components/table/table-footer/table-footer.js +1 -1
  245. package/dist/collection/components/table/table-header/table-header.js +1 -1
  246. package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -3
  247. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  248. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -1
  249. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  250. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +34 -34
  251. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -1
  252. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  253. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +34 -34
  254. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -1
  255. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
  256. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +36 -36
  257. package/dist/collection/components/text-field/text-field.js +12 -12
  258. package/dist/collection/components/text-field/text-field.stories.js +45 -45
  259. package/dist/collection/components/textarea/textarea.js +10 -10
  260. package/dist/collection/components/textarea/textarea.stories.js +40 -40
  261. package/dist/collection/components/toast/toast.js +3 -3
  262. package/dist/collection/components/toast/toast.stories.js +15 -15
  263. package/dist/collection/components/toggle/toggle.js +1 -1
  264. package/dist/collection/components/toggle/toggle.stories.js +17 -17
  265. package/dist/collection/components/tooltip/tooltip.stories.js +33 -33
  266. package/dist/collection/stories/Installation/installation.stories.js +205 -205
  267. package/dist/collection/stories/announcements/announce-tegel.stories.js +248 -248
  268. package/dist/collection/stories/announcements/prefix-change.stories.js +79 -79
  269. package/dist/collection/stories/foundations/color/color-brand.stories.js +24 -24
  270. package/dist/collection/stories/foundations/color/color-scales.stories.js +18 -18
  271. package/dist/collection/stories/foundations/color/color-semantic.stories.js +26 -26
  272. package/dist/collection/stories/foundations/grid/grid.stories.js +334 -334
  273. package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +90 -90
  274. package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +84 -84
  275. package/dist/collection/stories/foundations/typography/typography-body.stories.js +7 -7
  276. package/dist/collection/stories/foundations/typography/typography-detail.stories.js +8 -8
  277. package/dist/collection/stories/foundations/typography/typography-headline.stories.js +17 -17
  278. package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +3 -3
  279. package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +53 -53
  280. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +227 -227
  281. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +202 -202
  282. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +98 -98
  283. package/dist/collection/stories/tegel.stories.js +270 -279
  284. package/dist/collection/stories/utility/color/background-color.stories.js +13 -13
  285. package/dist/collection/stories/utility/color/text-color.stories.js +11 -11
  286. package/dist/esm/polyfills/core-js.js +0 -0
  287. package/dist/esm/polyfills/dom.js +0 -0
  288. package/dist/esm/polyfills/es5-html-element.js +0 -0
  289. package/dist/esm/polyfills/index.js +0 -0
  290. package/dist/esm/polyfills/system.js +0 -0
  291. package/dist/esm/tds-accordion-item.entry.js +5 -5
  292. package/dist/esm/tds-banner.entry.js +0 -9
  293. package/dist/esm/tds-checkbox.entry.js +1 -1
  294. package/dist/esm/tds-datetime.entry.js +8 -8
  295. package/dist/esm/tds-dropdown-option.entry.js +5 -5
  296. package/dist/esm/tds-dropdown.entry.js +17 -17
  297. package/dist/esm/tds-folder-tab.entry.js +1 -1
  298. package/dist/esm/tds-footer-group.entry.js +2 -2
  299. package/dist/esm/tds-icon.entry.js +1 -1
  300. package/dist/esm/tds-inline-tab.entry.js +1 -1
  301. package/dist/esm/tds-link.entry.js +3 -3
  302. package/dist/esm/tds-message.entry.js +3 -3
  303. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  304. package/dist/esm/tds-table-footer.entry.js +1 -1
  305. package/dist/esm/tds-text-field.entry.js +11 -11
  306. package/dist/esm/tds-textarea.entry.js +10 -10
  307. package/dist/esm/tds-toast.entry.js +2 -2
  308. package/dist/tegel/p-2efaac74.entry.js +1 -0
  309. package/dist/tegel/{p-9b560c6d.entry.js → p-67fa6245.entry.js} +1 -1
  310. package/dist/tegel/p-e9ae12d7.entry.js +1 -0
  311. package/dist/tegel/{p-52edb8b7.entry.js → p-e9b8d1d5.entry.js} +1 -1
  312. package/dist/tegel/tegel.css +2 -4
  313. package/dist/tegel/tegel.esm.js +1 -1
  314. package/dist/types/components/banner/banner.d.ts +0 -5
  315. package/dist/types/components/text-field/text-field.d.ts +1 -1
  316. package/dist/types/components.d.ts +58 -64
  317. package/dist/types/global.d.ts +2 -2
  318. package/package.json +81 -80
  319. package/dist/components/checkbox.js +0 -74
  320. package/dist/tegel/p-cf75e7c1.entry.js +0 -1
  321. package/dist/tegel/p-faaa50c2.entry.js +0 -1
  322. /package/{dist/components → components}/index.d.ts +0 -0
  323. /package/{dist/components → components}/index.js +0 -0
  324. /package/{dist/components → components}/tds-checkbox.js +0 -0
  325. /package/{dist/components → components}/tds-core-header-item.js +0 -0
  326. /package/{dist/components → components}/tds-divider.js +0 -0
  327. /package/{dist/components → components}/tds-header-dropdown-list-item.js +0 -0
  328. /package/{dist/components → components}/tds-header-dropdown-list.js +0 -0
  329. /package/{dist/components → components}/tds-header-item.js +0 -0
  330. /package/{dist/components → components}/tds-header-launcher-button.js +0 -0
  331. /package/{dist/components → components}/tds-icon.js +0 -0
  332. /package/{dist/components → components}/tds-popover-canvas.js +0 -0
  333. /package/{dist/components → components}/tds-popover-core.js +0 -0
  334. /package/{dist/components → components}/tds-side-menu-item.js +0 -0
  335. /package/{dist/components → components}/tds-side-menu-user-image.js +0 -0
  336. /package/{dist/components → components}/tds-side-menu-user-label.js +0 -0
  337. /package/{dist/components → components}/utils.js +0 -0
@@ -119,78 +119,78 @@ export default {
119
119
  column4Width: '',
120
120
  },
121
121
  };
122
- const MultiselectTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
123
- <tds-table
124
- table-id="multiselect-table"
125
- multiselect
126
- vertical-dividers="${verticalDivider}"
127
- compact-design="${compactDesign}"
128
- responsive="${responsiveDesign}"
129
- ${noMinWidth ? 'no-min-width' : ''}
130
- ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
131
- >
132
- <tds-table-header>
133
- <tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
134
- <tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
135
- <tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
136
- <tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
137
- </tds-table-header>
138
- <tds-table-body>
139
- <tds-table-body-row>
140
- <tds-body-cell cell-key="truck" cell-value="L-series"> </tds-body-cell
141
- ><tds-body-cell cell-key="driver" cell-value="Sonya Bruce"></tds-body-cell
142
- ><tds-body-cell cell-key="country" cell-value="Brazil"></tds-body-cell
143
- ><tds-body-cell cell-key="mileage" cell-value="123987"></tds-body-cell>
144
- </tds-table-body-row>
145
- <tds-table-body-row
146
- ><tds-body-cell cell-key="truck" cell-value="P-series"></tds-body-cell
147
- ><tds-body-cell cell-key="driver" cell-value="Guerra Bowman"></tds-body-cell
148
- ><tds-body-cell cell-key="country" cell-value="Sweden"></tds-body-cell
149
- ><tds-body-cell cell-key="mileage" cell-value="2000852"></tds-body-cell>
150
- </tds-table-body-row>
151
- <tds-table-body-row
152
- ><tds-body-cell cell-key="truck" cell-value="G-series"></tds-body-cell
153
- ><tds-body-cell cell-key="driver" cell-value="Ferrell Wallace"></tds-body-cell
154
- ><tds-body-cell cell-key="country" cell-value="Germany"></tds-body-cell
155
- ><tds-body-cell cell-key="mileage" cell-value="564"></tds-body-cell>
156
- </tds-table-body-row>
157
- <tds-table-body-row
158
- ><tds-body-cell cell-key="truck" cell-value="R-series"></tds-body-cell
159
- ><tds-body-cell cell-key="driver" cell-value="Cox Burris"></tds-body-cell
160
- ><tds-body-cell cell-key="country" cell-value="Spain"></tds-body-cell
161
- ><tds-body-cell cell-key="mileage" cell-value="1789357"></tds-body-cell>
162
- </tds-table-body-row>
163
- </tds-table-body>
164
- </tds-table>
165
- <!-- Note: Code below is just for demo purposes -->
166
- <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
167
- <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
168
- <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
169
- <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
170
- <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
171
- <br><br>
172
- <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
173
- <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
174
- <br><br>
175
- <h6 class="tds-u-mt0 tds-u-mb0">Selected rows</h6>
176
- <textarea id="selected-rows-textarea" rows="4" cols="50" readonly></textarea>
177
- </div>
178
- <script>
179
- // Note: Script here is only for demo purposes
180
-
181
- window.addEventListener('tdsSelectAll', e => {
182
- console.log(e)
183
- document.getElementById('event-name-textarea').value = e.type;
184
- document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
185
- document.getElementById('selected-rows-textarea').value = JSON.stringify(e.detail.selectedRows,null, 2);
186
- });
187
-
188
- window.addEventListener('tdsSelect', e => {
189
- console.log(e)
190
- document.getElementById('event-name-textarea').value = e.type;
191
- document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
192
- document.getElementById('selected-rows-textarea').value = JSON.stringify(e.detail.selectedRows,null, 2);
193
- });
194
- </script>
122
+ const MultiselectTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
123
+ <tds-table
124
+ table-id="multiselect-table"
125
+ multiselect
126
+ vertical-dividers="${verticalDivider}"
127
+ compact-design="${compactDesign}"
128
+ responsive="${responsiveDesign}"
129
+ ${noMinWidth ? 'no-min-width' : ''}
130
+ ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
131
+ >
132
+ <tds-table-header>
133
+ <tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
134
+ <tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
135
+ <tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
136
+ <tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
137
+ </tds-table-header>
138
+ <tds-table-body>
139
+ <tds-table-body-row>
140
+ <tds-body-cell cell-key="truck" cell-value="L-series"> </tds-body-cell
141
+ ><tds-body-cell cell-key="driver" cell-value="Sonya Bruce"></tds-body-cell
142
+ ><tds-body-cell cell-key="country" cell-value="Brazil"></tds-body-cell
143
+ ><tds-body-cell cell-key="mileage" cell-value="123987"></tds-body-cell>
144
+ </tds-table-body-row>
145
+ <tds-table-body-row
146
+ ><tds-body-cell cell-key="truck" cell-value="P-series"></tds-body-cell
147
+ ><tds-body-cell cell-key="driver" cell-value="Guerra Bowman"></tds-body-cell
148
+ ><tds-body-cell cell-key="country" cell-value="Sweden"></tds-body-cell
149
+ ><tds-body-cell cell-key="mileage" cell-value="2000852"></tds-body-cell>
150
+ </tds-table-body-row>
151
+ <tds-table-body-row
152
+ ><tds-body-cell cell-key="truck" cell-value="G-series"></tds-body-cell
153
+ ><tds-body-cell cell-key="driver" cell-value="Ferrell Wallace"></tds-body-cell
154
+ ><tds-body-cell cell-key="country" cell-value="Germany"></tds-body-cell
155
+ ><tds-body-cell cell-key="mileage" cell-value="564"></tds-body-cell>
156
+ </tds-table-body-row>
157
+ <tds-table-body-row
158
+ ><tds-body-cell cell-key="truck" cell-value="R-series"></tds-body-cell
159
+ ><tds-body-cell cell-key="driver" cell-value="Cox Burris"></tds-body-cell
160
+ ><tds-body-cell cell-key="country" cell-value="Spain"></tds-body-cell
161
+ ><tds-body-cell cell-key="mileage" cell-value="1789357"></tds-body-cell>
162
+ </tds-table-body-row>
163
+ </tds-table-body>
164
+ </tds-table>
165
+ <!-- Note: Code below is just for demo purposes -->
166
+ <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
167
+ <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
168
+ <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
169
+ <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
170
+ <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
171
+ <br><br>
172
+ <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
173
+ <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
174
+ <br><br>
175
+ <h6 class="tds-u-mt0 tds-u-mb0">Selected rows</h6>
176
+ <textarea id="selected-rows-textarea" rows="4" cols="50" readonly></textarea>
177
+ </div>
178
+ <script>
179
+ // Note: Script here is only for demo purposes
180
+
181
+ window.addEventListener('tdsSelectAll', e => {
182
+ console.log(e)
183
+ document.getElementById('event-name-textarea').value = e.type;
184
+ document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
185
+ document.getElementById('selected-rows-textarea').value = JSON.stringify(e.detail.selectedRows,null, 2);
186
+ });
187
+
188
+ window.addEventListener('tdsSelect', e => {
189
+ console.log(e)
190
+ document.getElementById('event-name-textarea').value = e.type;
191
+ document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
192
+ document.getElementById('selected-rows-textarea').value = JSON.stringify(e.detail.selectedRows,null, 2);
193
+ });
194
+ </script>
195
195
  `);
196
196
  export const Multiselect = MultiselectTemplate.bind({});
@@ -118,77 +118,77 @@ export default {
118
118
  column4Width: '',
119
119
  },
120
120
  };
121
- const PaginationTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
122
- <tds-table
123
- table-id='pagination-table'
124
- vertical-dividers="${verticalDivider}"
125
- compact-design="${compactDesign}"
126
- responsive="${responsiveDesign}"
127
- ${noMinWidth ? 'no-min-width' : ''}
128
- ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
129
- >
130
- <tds-table-header>
131
- <tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
132
- <tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
133
- <tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
134
- <tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
135
- </tds-table-header>
136
- <tds-table-body-row>
137
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
138
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
139
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
140
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
141
- </tds-table-body-row>
142
- <tds-table-body-row>
143
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
144
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
145
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
146
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
147
- </tds-table-body-row>
148
- <tds-table-body-row>
149
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
150
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
151
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
152
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
153
- </tds-table-body-row>
154
- <tds-table-body-row>
155
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
156
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
157
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
158
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
159
- </tds-table-body-row>
160
- <tds-table-body-row>
161
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
162
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
163
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
164
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
165
- </tds-table-body-row>
166
- <tds-table-body-row>
167
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
168
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
169
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
170
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
171
- </tds-table-body-row>
172
- <tds-table-footer pages="4" pagination></tds-table-footer>
173
- </tds-table>
174
- <!-- Note: Code below is just for demo purposes -->
175
- <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
176
- <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
177
- <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
178
- <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
179
- <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
180
- <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
181
- <br>
182
- <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
183
- </div>
184
-
185
-
186
- <script>
187
- window.addEventListener('tdsPagination', e => {
188
- document.getElementById('event-name-textarea').value = e.type;
189
- document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
190
- });
191
- </script>
192
-
121
+ const PaginationTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
122
+ <tds-table
123
+ table-id='pagination-table'
124
+ vertical-dividers="${verticalDivider}"
125
+ compact-design="${compactDesign}"
126
+ responsive="${responsiveDesign}"
127
+ ${noMinWidth ? 'no-min-width' : ''}
128
+ ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
129
+ >
130
+ <tds-table-header>
131
+ <tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
132
+ <tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
133
+ <tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
134
+ <tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
135
+ </tds-table-header>
136
+ <tds-table-body-row>
137
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
138
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
139
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
140
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
141
+ </tds-table-body-row>
142
+ <tds-table-body-row>
143
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
144
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
145
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
146
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
147
+ </tds-table-body-row>
148
+ <tds-table-body-row>
149
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
150
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
151
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
152
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
153
+ </tds-table-body-row>
154
+ <tds-table-body-row>
155
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
156
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
157
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
158
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
159
+ </tds-table-body-row>
160
+ <tds-table-body-row>
161
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
162
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
163
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
164
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
165
+ </tds-table-body-row>
166
+ <tds-table-body-row>
167
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
168
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
169
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
170
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
171
+ </tds-table-body-row>
172
+ <tds-table-footer pages="4" pagination></tds-table-footer>
173
+ </tds-table>
174
+ <!-- Note: Code below is just for demo purposes -->
175
+ <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
176
+ <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
177
+ <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
178
+ <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
179
+ <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
180
+ <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
181
+ <br>
182
+ <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
183
+ </div>
184
+
185
+
186
+ <script>
187
+ window.addEventListener('tdsPagination', e => {
188
+ document.getElementById('event-name-textarea').value = e.type;
189
+ document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
190
+ });
191
+ </script>
192
+
193
193
  `);
194
194
  export const Pagination = PaginationTemplate.bind({});
@@ -162,79 +162,79 @@ export default {
162
162
  column4Width: '',
163
163
  },
164
164
  };
165
- const SortingTemplate = ({ modeVariant, compactDesign, responsiveDesign, column1sortable, column2sortable, column3sortable, column4sortable, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
166
- <tds-table
167
- table-id='tds-table-sorting-example'
168
- vertical-dividers="${verticalDivider}"
169
- compact-design="${compactDesign}"
170
- responsive="${responsiveDesign}"
171
- ${noMinWidth ? 'no-min-width' : ''}
172
- ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
173
- >
174
- <tds-table-toolbar table-title="Sorting"></tds-table-toolbar>
175
- <tds-table-header>
176
- <tds-header-cell cell-key='truck' cell-value='Truck type' sortable="${column1sortable}" ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
177
- <tds-header-cell cell-key='driver' cell-value='Driver name' sortable="${column2sortable}" ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
178
- <tds-header-cell cell-key='country' cell-value='Country' sortable="${column3sortable}" ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
179
- <tds-header-cell cell-key='mileage' cell-value='Mileage' sortable="${column4sortable}" text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
180
- </tds-table-header>
181
- <tds-table-body>
182
- <tds-table-body-row>
183
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
184
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
185
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
186
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
187
- </tds-table-body-row>
188
- <tds-table-body-row>
189
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
190
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
191
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
192
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
193
- </tds-table-body-row>
194
- <tds-table-body-row>
195
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
196
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
197
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
198
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
199
- </tds-table-body-row>
200
- <tds-table-body-row>
201
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
202
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
203
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
204
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
205
- </tds-table-body-row>
206
- <tds-table-body-row>
207
- <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
208
- <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
209
- <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
210
- <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
211
- </tds-table-body-row>
212
- <tds-table-body-row>
213
- <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
214
- <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
215
- <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
216
- <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
217
- </tds-table-body-row>
218
- </tds-table-body>
219
- </tds-table>
220
- <!-- Note: Code below is just for demo purposes -->
221
- <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
222
- <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
223
- <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
224
- <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
225
- <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
226
- <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
227
- <br>
228
- <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
229
- </div>
230
-
231
-
232
- <script>
233
-
234
-
235
- window.addEventListener('tdsSort', e => {
236
- document.getElementById('event-name-textarea').value = e.type;
237
- document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
238
- });
165
+ const SortingTemplate = ({ modeVariant, compactDesign, responsiveDesign, column1sortable, column2sortable, column3sortable, column4sortable, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
166
+ <tds-table
167
+ table-id='tds-table-sorting-example'
168
+ vertical-dividers="${verticalDivider}"
169
+ compact-design="${compactDesign}"
170
+ responsive="${responsiveDesign}"
171
+ ${noMinWidth ? 'no-min-width' : ''}
172
+ ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
173
+ >
174
+ <tds-table-toolbar table-title="Sorting"></tds-table-toolbar>
175
+ <tds-table-header>
176
+ <tds-header-cell cell-key='truck' cell-value='Truck type' sortable="${column1sortable}" ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
177
+ <tds-header-cell cell-key='driver' cell-value='Driver name' sortable="${column2sortable}" ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
178
+ <tds-header-cell cell-key='country' cell-value='Country' sortable="${column3sortable}" ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
179
+ <tds-header-cell cell-key='mileage' cell-value='Mileage' sortable="${column4sortable}" text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
180
+ </tds-table-header>
181
+ <tds-table-body>
182
+ <tds-table-body-row>
183
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
184
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
185
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
186
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
187
+ </tds-table-body-row>
188
+ <tds-table-body-row>
189
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
190
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
191
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
192
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
193
+ </tds-table-body-row>
194
+ <tds-table-body-row>
195
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
196
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
197
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
198
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
199
+ </tds-table-body-row>
200
+ <tds-table-body-row>
201
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
202
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
203
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
204
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
205
+ </tds-table-body-row>
206
+ <tds-table-body-row>
207
+ <tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
208
+ <tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
209
+ <tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
210
+ <tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
211
+ </tds-table-body-row>
212
+ <tds-table-body-row>
213
+ <tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
214
+ <tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
215
+ <tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
216
+ <tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
217
+ </tds-table-body-row>
218
+ </tds-table-body>
219
+ </tds-table>
220
+ <!-- Note: Code below is just for demo purposes -->
221
+ <div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
222
+ <p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
223
+ <h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
224
+ <h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
225
+ <textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
226
+ <h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
227
+ <br>
228
+ <textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
229
+ </div>
230
+
231
+
232
+ <script>
233
+
234
+
235
+ window.addEventListener('tdsSort', e => {
236
+ document.getElementById('event-name-textarea').value = e.type;
237
+ document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
238
+ });
239
239
  </script>`);
240
240
  export const Sorting = SortingTemplate.bind({});
@@ -65,13 +65,14 @@
65
65
  width: 32px;
66
66
  border-radius: 4px;
67
67
  transition: background-color 250ms ease;
68
+ color: var(--tds-table-footer-page-selector-icon);
68
69
  }
69
70
  :host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover {
70
71
  background-color: var(--tds-table-footer-btn-hover);
71
72
  }
72
73
  :host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled {
73
74
  cursor: default;
74
- opacity: 0.38;
75
+ color: var(--tds-table-footer-page-selector-icon-disabled);
75
76
  }
76
77
  :host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover {
77
78
  background-color: transparent;
@@ -200,7 +200,7 @@ export class TdsTableFooter {
200
200
  "text": "Event to send current page value to tds-table-body component, can also be listened to in order to implement custom pagination logic."
201
201
  },
202
202
  "complexType": {
203
- "original": "{\r\n tableId: string;\r\n paginationValue: number;\r\n }",
203
+ "original": "{\n tableId: string;\n paginationValue: number;\n }",
204
204
  "resolved": "{ tableId: string; paginationValue: number; }",
205
205
  "references": {}
206
206
  }
@@ -145,7 +145,7 @@ export class TdsTableHeaderRow {
145
145
  "text": "Event emitted when the status of the select all checkbox changes."
146
146
  },
147
147
  "complexType": {
148
- "original": "{\r\n tableId: string;\r\n checked: boolean;\r\n selectedRows: any[];\r\n }",
148
+ "original": "{\n tableId: string;\n checked: boolean;\n selectedRows: any[];\n }",
149
149
  "resolved": "{ tableId: string; checked: boolean; selectedRows: any[]; }",
150
150
  "references": {}
151
151
  }
@@ -251,7 +251,7 @@ export class TdsTableHeaderCell {
251
251
  "text": "Sends unique Table identifier, column key and sorting direction to the tds-table-body component, can also be listened to in order to implement custom-sorting logic."
252
252
  },
253
253
  "complexType": {
254
- "original": "{\r\n tableId: string;\r\n columnKey: string;\r\n sortingDirection: 'asc' | 'desc';\r\n }",
254
+ "original": "{\n tableId: string;\n columnKey: string;\n sortingDirection: 'asc' | 'desc';\n }",
255
255
  "resolved": "{ tableId: string; columnKey: string; sortingDirection: \"desc\" | \"asc\"; }",
256
256
  "references": {}
257
257
  }
@@ -269,7 +269,7 @@ export class TdsTableHeaderCell {
269
269
  "text": ""
270
270
  },
271
271
  "complexType": {
272
- "original": "{\r\n tableId: string;\r\n key: string;\r\n }",
272
+ "original": "{\n tableId: string;\n key: string;\n }",
273
273
  "resolved": "{ tableId: string; key: string; }",
274
274
  "references": {}
275
275
  }
@@ -305,7 +305,7 @@ export class TdsTableHeaderCell {
305
305
  "text": ""
306
306
  },
307
307
  "complexType": {
308
- "original": "{\r\n tableId: string;\r\n key: string;\r\n }",
308
+ "original": "{\n tableId: string;\n key: string;\n }",
309
309
  "resolved": "{ tableId: string; key: string; }",
310
310
  "references": {}
311
311
  }
@@ -126,10 +126,10 @@ export class TdsTableToolbar {
126
126
  "composed": true,
127
127
  "docs": {
128
128
  "tags": [],
129
- "text": "Used for sending users' input to the main parent tds-table the component,\r\ncan also be listened to in order to implement custom sorting logic."
129
+ "text": "Used for sending users' input to the main parent tds-table the component,\ncan also be listened to in order to implement custom sorting logic."
130
130
  },
131
131
  "complexType": {
132
- "original": "{\r\n tableId: string;\r\n query: string;\r\n }",
132
+ "original": "{\n tableId: string;\n query: string;\n }",
133
133
  "resolved": "{ tableId: string; query: string; }",
134
134
  "references": {}
135
135
  }
@@ -17,7 +17,7 @@ export class TdsFolderTab {
17
17
  this.selected = selected;
18
18
  }
19
19
  render() {
20
- return (h(Host, { role: "listitem" }, h("div", { class: `${this.disabled ? 'disabled' : ''}
20
+ return (h(Host, { role: "listitem" }, h("div", { class: `${this.disabled ? 'disabled' : ''}
21
21
  ${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", null))));
22
22
  }
23
23
  static get is() { return "tds-folder-tab"; }
@@ -219,7 +219,7 @@ export class TdsFolderTabs {
219
219
  "optional": false,
220
220
  "docs": {
221
221
  "tags": [],
222
- "text": "Sets the selected Tab.\r\nIf this is set, all Tab changes need to be handled by the user."
222
+ "text": "Sets the selected Tab.\nIf this is set, all Tab changes need to be handled by the user."
223
223
  },
224
224
  "attribute": "selected-index",
225
225
  "reflect": true
@@ -245,7 +245,7 @@ export class TdsFolderTabs {
245
245
  "text": "Event emitted when the selected Tab is changed."
246
246
  },
247
247
  "complexType": {
248
- "original": "{\r\n selectedTabIndex: number;\r\n }",
248
+ "original": "{\n selectedTabIndex: number;\n }",
249
249
  "resolved": "{ selectedTabIndex: number; }",
250
250
  "references": {}
251
251
  }