@scania/tegel 1.6.1 → 1.8.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 (291) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/{index-f36d4629.js → index-da55351d.js} +35 -23
  3. package/dist/cjs/loader.cjs.js +5 -3
  4. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-banner.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-body-cell.cjs.entry.js +15 -4
  10. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/tds-button.cjs.entry.js +1 -1
  13. package/dist/cjs/tds-card.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-divider.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
  20. package/dist/cjs/tds-dropdown.cjs.entry.js +20 -6
  21. package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  25. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-cell.cjs.entry.js +9 -13
  28. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  40. package/dist/cjs/tds-header-launcher.cjs.entry.js +1 -1
  41. package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
  42. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  43. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  45. package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
  46. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  47. package/dist/cjs/tds-message.cjs.entry.js +1 -1
  48. package/dist/cjs/tds-modal.cjs.entry.js +41 -19
  49. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  50. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
  51. package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
  52. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  53. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
  54. package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
  55. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  56. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  57. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
  58. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
  59. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
  60. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
  61. package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
  62. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  63. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
  64. package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
  65. package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
  66. package/dist/cjs/tds-slider.cjs.entry.js +33 -37
  67. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  68. package/dist/cjs/tds-step.cjs.entry.js +1 -1
  69. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  70. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +9 -3
  71. package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
  72. package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
  73. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  74. package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
  75. package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
  76. package/dist/cjs/tds-table.cjs.entry.js +1 -1
  77. package/dist/cjs/tds-text-field.cjs.entry.js +34 -19
  78. package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
  79. package/dist/cjs/tds-toast.cjs.entry.js +6 -7
  80. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  81. package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
  82. package/dist/cjs/tegel.cjs.js +6 -4
  83. package/dist/collection/collection-manifest.json +1 -1
  84. package/dist/collection/components/dropdown/dropdown.css +22 -0
  85. package/dist/collection/components/dropdown/dropdown.js +18 -4
  86. package/dist/collection/components/modal/modal.css +6 -21
  87. package/dist/collection/components/modal/modal.js +73 -17
  88. package/dist/collection/components/slider/slider.js +51 -41
  89. package/dist/collection/components/table/table-body-cell/table-body-cell.js +31 -3
  90. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +6 -0
  91. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -1
  92. package/dist/collection/components/table/table-header-cell/table-header-cell.css +0 -6
  93. package/dist/collection/components/table/table-header-cell/table-header-cell.js +13 -16
  94. package/dist/collection/components/text-field/text-field.css +2 -1
  95. package/dist/collection/components/text-field/text-field.js +35 -20
  96. package/dist/collection/components/toast/toast.css +3 -5
  97. package/dist/collection/components/toast/toast.js +22 -5
  98. package/dist/collection/components/toggle/toggle.js +1 -1
  99. package/dist/collection/components/tooltip/tooltip.js +2 -2
  100. package/dist/components/tds-body-cell.js +15 -3
  101. package/dist/components/tds-dropdown.js +19 -5
  102. package/dist/components/tds-header-cell.js +8 -12
  103. package/dist/components/tds-modal.js +43 -19
  104. package/dist/components/tds-slider.js +33 -37
  105. package/dist/components/tds-table-body-row-expandable.js +8 -2
  106. package/dist/components/tds-text-field.js +33 -18
  107. package/dist/components/tds-toast.js +6 -6
  108. package/dist/components/tds-toggle.js +1 -1
  109. package/dist/components/tds-tooltip.js +2 -2
  110. package/dist/esm/app-globals-0f993ce5.js +3 -0
  111. package/dist/esm/{index-ab4edc4a.js → index-529974bd.js} +35 -23
  112. package/dist/esm/loader.js +6 -4
  113. package/dist/esm/tds-accordion-item.entry.js +1 -1
  114. package/dist/esm/tds-accordion.entry.js +1 -1
  115. package/dist/esm/tds-badge.entry.js +1 -1
  116. package/dist/esm/tds-banner.entry.js +1 -1
  117. package/dist/esm/tds-block.entry.js +1 -1
  118. package/dist/esm/tds-body-cell.entry.js +15 -4
  119. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  120. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  121. package/dist/esm/tds-button.entry.js +1 -1
  122. package/dist/esm/tds-card.entry.js +1 -1
  123. package/dist/esm/tds-checkbox.entry.js +1 -1
  124. package/dist/esm/tds-chip.entry.js +1 -1
  125. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  126. package/dist/esm/tds-datetime.entry.js +1 -1
  127. package/dist/esm/tds-divider.entry.js +1 -1
  128. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  129. package/dist/esm/tds-dropdown.entry.js +20 -6
  130. package/dist/esm/tds-folder-tab.entry.js +1 -1
  131. package/dist/esm/tds-folder-tabs.entry.js +1 -1
  132. package/dist/esm/tds-footer-group.entry.js +1 -1
  133. package/dist/esm/tds-footer-item.entry.js +1 -1
  134. package/dist/esm/tds-footer.entry.js +1 -1
  135. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  136. package/dist/esm/tds-header-cell.entry.js +9 -13
  137. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  138. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  139. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  140. package/dist/esm/tds-header-dropdown.entry.js +1 -1
  141. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  142. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  143. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  144. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  145. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  146. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  147. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  148. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  149. package/dist/esm/tds-header-launcher.entry.js +1 -1
  150. package/dist/esm/tds-header-title.entry.js +1 -1
  151. package/dist/esm/tds-header.entry.js +1 -1
  152. package/dist/esm/tds-icon.entry.js +1 -1
  153. package/dist/esm/tds-inline-tab.entry.js +1 -1
  154. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  155. package/dist/esm/tds-link.entry.js +1 -1
  156. package/dist/esm/tds-message.entry.js +1 -1
  157. package/dist/esm/tds-modal.entry.js +41 -19
  158. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  159. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  160. package/dist/esm/tds-popover-canvas.entry.js +1 -1
  161. package/dist/esm/tds-popover-core.entry.js +1 -1
  162. package/dist/esm/tds-popover-menu-item.entry.js +1 -1
  163. package/dist/esm/tds-popover-menu.entry.js +1 -1
  164. package/dist/esm/tds-radio-button.entry.js +1 -1
  165. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  166. package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
  167. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
  168. package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
  169. package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
  170. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  171. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  172. package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
  173. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  174. package/dist/esm/tds-side-menu.entry.js +1 -1
  175. package/dist/esm/tds-slider.entry.js +33 -37
  176. package/dist/esm/tds-spinner.entry.js +1 -1
  177. package/dist/esm/tds-step.entry.js +1 -1
  178. package/dist/esm/tds-stepper.entry.js +1 -1
  179. package/dist/esm/tds-table-body-row-expandable.entry.js +9 -3
  180. package/dist/esm/tds-table-body-row.entry.js +1 -1
  181. package/dist/esm/tds-table-body.entry.js +1 -1
  182. package/dist/esm/tds-table-footer.entry.js +1 -1
  183. package/dist/esm/tds-table-header.entry.js +1 -1
  184. package/dist/esm/tds-table-toolbar.entry.js +1 -1
  185. package/dist/esm/tds-table.entry.js +1 -1
  186. package/dist/esm/tds-text-field.entry.js +34 -19
  187. package/dist/esm/tds-textarea.entry.js +1 -1
  188. package/dist/esm/tds-toast.entry.js +6 -7
  189. package/dist/esm/tds-toggle.entry.js +2 -2
  190. package/dist/esm/tds-tooltip.entry.js +3 -3
  191. package/dist/esm/tegel.js +7 -5
  192. package/dist/tegel/{p-5b23048d.entry.js → p-0215d53c.entry.js} +1 -1
  193. package/dist/tegel/{p-8df9b81f.entry.js → p-02417061.entry.js} +1 -1
  194. package/dist/tegel/{p-391b6b34.entry.js → p-033fbea5.entry.js} +1 -1
  195. package/dist/tegel/p-052901a5.entry.js +1 -0
  196. package/dist/tegel/{p-ab76d48c.entry.js → p-0c444c09.entry.js} +1 -1
  197. package/dist/tegel/p-10610955.entry.js +1 -0
  198. package/dist/tegel/{p-24466c21.entry.js → p-16f0471f.entry.js} +1 -1
  199. package/dist/tegel/{p-68821acd.entry.js → p-1ba2c5df.entry.js} +1 -1
  200. package/dist/tegel/{p-0c564ca1.entry.js → p-1e2ef3d6.entry.js} +1 -1
  201. package/dist/tegel/{p-72b79121.entry.js → p-1f39c53a.entry.js} +1 -1
  202. package/dist/tegel/p-2598dc8a.entry.js +1 -0
  203. package/dist/tegel/{p-8af4737f.entry.js → p-2c388774.entry.js} +1 -1
  204. package/dist/tegel/{p-200def59.entry.js → p-2f5db352.entry.js} +1 -1
  205. package/dist/tegel/{p-6fa16688.entry.js → p-2f692ff0.entry.js} +1 -1
  206. package/dist/tegel/{p-b13959d0.entry.js → p-2ffae2d1.entry.js} +1 -1
  207. package/dist/tegel/{p-efff904c.entry.js → p-3b546070.entry.js} +1 -1
  208. package/dist/tegel/{p-81cc50f8.entry.js → p-3dd15e1e.entry.js} +1 -1
  209. package/dist/tegel/{p-30dc9a8b.entry.js → p-3f983f99.entry.js} +1 -1
  210. package/dist/tegel/{p-a2ad0d53.entry.js → p-412d8fd1.entry.js} +1 -1
  211. package/dist/tegel/{p-bd056432.entry.js → p-450eabc1.entry.js} +1 -1
  212. package/dist/tegel/{p-7bbfa1ea.entry.js → p-453c8af8.entry.js} +1 -1
  213. package/dist/tegel/{p-825fd938.entry.js → p-4a04433c.entry.js} +1 -1
  214. package/dist/tegel/{p-2270b30c.entry.js → p-50b0f2ff.entry.js} +1 -1
  215. package/dist/tegel/{p-e2f1a7a2.entry.js → p-52b9333c.entry.js} +1 -1
  216. package/dist/tegel/p-540a83e5.entry.js +1 -0
  217. package/dist/tegel/{p-1590e242.entry.js → p-56bae450.entry.js} +1 -1
  218. package/dist/tegel/{p-a2934b2a.entry.js → p-5880c2f3.entry.js} +1 -1
  219. package/dist/tegel/{p-9544a2e7.entry.js → p-5a273781.entry.js} +1 -1
  220. package/dist/tegel/{p-145808cf.entry.js → p-5b7d9ca4.entry.js} +1 -1
  221. package/dist/tegel/{p-36db31d4.entry.js → p-5d756b0b.entry.js} +1 -1
  222. package/dist/tegel/{p-048b8480.entry.js → p-5db63168.entry.js} +1 -1
  223. package/dist/tegel/{p-eda20d0d.entry.js → p-652eb0ff.entry.js} +1 -1
  224. package/dist/tegel/{p-447ecb47.entry.js → p-669f7646.entry.js} +1 -1
  225. package/dist/tegel/p-699829fc.js +2 -0
  226. package/dist/tegel/{p-92b2db31.entry.js → p-6c23bc53.entry.js} +1 -1
  227. package/dist/tegel/{p-17b8763f.entry.js → p-7076c719.entry.js} +1 -1
  228. package/dist/tegel/{p-8e442441.entry.js → p-7172fd77.entry.js} +1 -1
  229. package/dist/tegel/{p-c95a8a36.entry.js → p-747811d6.entry.js} +1 -1
  230. package/dist/tegel/p-74a93487.entry.js +1 -0
  231. package/dist/tegel/{p-5047cf31.entry.js → p-76a00407.entry.js} +1 -1
  232. package/dist/tegel/{p-cb080d0b.entry.js → p-7a3fbb5b.entry.js} +1 -1
  233. package/dist/tegel/p-7a8d7b95.entry.js +1 -0
  234. package/dist/tegel/{p-ee537028.entry.js → p-7e0116af.entry.js} +1 -1
  235. package/dist/tegel/{p-40519ff4.entry.js → p-864e5bb0.entry.js} +1 -1
  236. package/dist/tegel/{p-f51101e4.entry.js → p-87bfc032.entry.js} +1 -1
  237. package/dist/tegel/{p-cd93fb3a.entry.js → p-8a46d308.entry.js} +1 -1
  238. package/dist/tegel/{p-4aa948cf.entry.js → p-8a90d1ae.entry.js} +1 -1
  239. package/dist/tegel/{p-61b2e46f.entry.js → p-8bb8d06a.entry.js} +1 -1
  240. package/dist/tegel/{p-4ca0f396.entry.js → p-8c6aad07.entry.js} +1 -1
  241. package/dist/tegel/{p-32f13b73.entry.js → p-8ebc7052.entry.js} +1 -1
  242. package/dist/tegel/{p-2fb7f571.entry.js → p-a0812bb2.entry.js} +1 -1
  243. package/dist/tegel/{p-ae5db9b9.entry.js → p-a1151348.entry.js} +1 -1
  244. package/dist/tegel/{p-1b671dbc.entry.js → p-a31282be.entry.js} +1 -1
  245. package/dist/tegel/{p-30417aac.entry.js → p-acc70f3c.entry.js} +1 -1
  246. package/dist/tegel/{p-23ed39c5.entry.js → p-af6d2907.entry.js} +1 -1
  247. package/dist/tegel/{p-9995c9e6.entry.js → p-b03790b1.entry.js} +1 -1
  248. package/dist/tegel/{p-5b9e6fa3.entry.js → p-b263f884.entry.js} +1 -1
  249. package/dist/tegel/{p-9731cc82.entry.js → p-b6f8c65f.entry.js} +1 -1
  250. package/dist/tegel/{p-d8b12e59.entry.js → p-bc7459fb.entry.js} +1 -1
  251. package/dist/tegel/{p-708a52b1.entry.js → p-c08c8bd8.entry.js} +1 -1
  252. package/dist/tegel/{p-77a5d874.entry.js → p-c77d9eaf.entry.js} +1 -1
  253. package/dist/tegel/{p-5ec7c389.entry.js → p-cc16393b.entry.js} +1 -1
  254. package/dist/tegel/{p-521fd6fe.entry.js → p-d26257ca.entry.js} +1 -1
  255. package/dist/tegel/{p-c9f701f6.entry.js → p-d2e0442d.entry.js} +1 -1
  256. package/dist/tegel/{p-6e4cda16.entry.js → p-d41ef4f8.entry.js} +1 -1
  257. package/dist/tegel/p-d9fec37c.entry.js +1 -0
  258. package/dist/tegel/{p-adddb2db.entry.js → p-ddabb9e9.entry.js} +1 -1
  259. package/dist/tegel/{p-fa3bd57f.entry.js → p-e10b2f73.entry.js} +1 -1
  260. package/dist/tegel/p-e1255160.js +1 -0
  261. package/dist/tegel/{p-db20a6e9.entry.js → p-e2443a41.entry.js} +1 -1
  262. package/dist/tegel/{p-cd406a82.entry.js → p-e38b51a2.entry.js} +1 -1
  263. package/dist/tegel/{p-dc35de46.entry.js → p-e3e19bd6.entry.js} +1 -1
  264. package/dist/tegel/{p-632a58e4.entry.js → p-e6a51915.entry.js} +1 -1
  265. package/dist/tegel/{p-c3ad28ea.entry.js → p-e8957bd2.entry.js} +1 -1
  266. package/dist/tegel/p-ebbe0131.entry.js +1 -0
  267. package/dist/tegel/{p-25616b50.entry.js → p-ed56507b.entry.js} +1 -1
  268. package/dist/tegel/{p-7b9149c0.entry.js → p-ed8f1e2a.entry.js} +1 -1
  269. package/dist/tegel/{p-71063a5a.entry.js → p-f226f11e.entry.js} +1 -1
  270. package/dist/tegel/{p-d604194c.entry.js → p-f93bb760.entry.js} +1 -1
  271. package/dist/tegel/{p-b8cc0ab0.entry.js → p-fb2968f2.entry.js} +1 -1
  272. package/dist/tegel/tegel.css +1 -1
  273. package/dist/tegel/tegel.esm.js +1 -1
  274. package/dist/types/components/dropdown/dropdown.d.ts +1 -0
  275. package/dist/types/components/modal/modal.d.ts +9 -2
  276. package/dist/types/components/slider/slider.d.ts +7 -5
  277. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +2 -0
  278. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
  279. package/dist/types/components/text-field/text-field.d.ts +3 -3
  280. package/dist/types/components/toast/toast.d.ts +2 -0
  281. package/dist/types/components.d.ts +40 -7
  282. package/package.json +4 -2
  283. package/dist/tegel/p-55afd9bb.entry.js +0 -1
  284. package/dist/tegel/p-5c528867.entry.js +0 -1
  285. package/dist/tegel/p-68f0f81d.entry.js +0 -1
  286. package/dist/tegel/p-6bb7fa2c.js +0 -2
  287. package/dist/tegel/p-6bca93b8.entry.js +0 -1
  288. package/dist/tegel/p-9d79f2fe.entry.js +0 -1
  289. package/dist/tegel/p-9f33108a.entry.js +0 -1
  290. package/dist/tegel/p-c0ced88a.entry.js +0 -1
  291. package/dist/tegel/p-e35f0c64.entry.js +0 -1
@@ -38,7 +38,7 @@ export class TdsTableHeaderCell {
38
38
  };
39
39
  this.headerCellContent = () => {
40
40
  if (this.sortable) {
41
- return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick() }, h("span", { class: "tds-table__header-button-text", style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", null)), this.sortingDirection === null && (h("svg", { class: "tds-table__header-button-icon", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 15" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z" }))), this.sortingDirection && (h("svg", { class: `tds-table__header-button-icon ${this.sortingDirection === 'desc' ? 'tds-table__header-button-icon--rotate' : ''}`, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z" })))));
41
+ return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === null && (h("svg", { class: "tds-table__header-button-icon", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 15" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z" }))), this.sortingDirection && (h("svg", { class: `tds-table__header-button-icon ${this.sortingDirection === 'desc' ? 'tds-table__header-button-icon--rotate' : ''}`, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z" })))));
42
42
  }
43
43
  return (h("p", { class: "tds-table__header-text", style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", null)));
44
44
  };
@@ -52,7 +52,7 @@ export class TdsTableHeaderCell {
52
52
  this.cellValue = undefined;
53
53
  this.customWidth = undefined;
54
54
  this.sortable = false;
55
- this.textAlign = undefined;
55
+ this.textAlign = 'left';
56
56
  this.textAlignState = undefined;
57
57
  this.sortingDirection = 'asc';
58
58
  this.sortedByMyKey = false;
@@ -98,25 +98,21 @@ export class TdsTableHeaderCell {
98
98
  });
99
99
  }
100
100
  componentWillRender() {
101
- // enable only right or left text align
102
- if (this.textAlign === 'right' || this.textAlign === 'end') {
103
- this.textAlignState = 'right';
104
- }
105
- else {
106
- this.textAlignState = 'left';
107
- }
101
+ // if text alignment matches any of the acceptable values, use it. Otherwise, set "left" as default
102
+ this.textAlignState = ['left', 'start', 'right', 'end', 'center'].includes(this.textAlign)
103
+ ? this.textAlign
104
+ : 'left';
108
105
  // To enable body cells text align per rules set in head cell
109
106
  this.internalTdsTextAlign.emit([this.tableId, this.cellKey, this.textAlignState]);
110
107
  this.enableToolbarDesign =
111
108
  this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
112
109
  }
113
110
  render() {
114
- return (h(Host, { key: 'd09c42078df2774f9bae1e9e2906abdf9e52f5ac', class: {
111
+ return (h(Host, { key: '8cda19cdff411db98aecbf8a915853eda026853d', class: {
115
112
  'tds-table__header-cell': true,
116
113
  'tds-table__header-cell--sortable': this.sortable,
117
114
  'tds-table__header-cell--is-sorted': this.sortedByMyKey,
118
115
  'tds-table__header-cell--custom-width': this.customWidth !== '',
119
- 'tds-table__header-cell--right-align': this.textAlignState === 'right',
120
116
  'tds-table--compact': this.compactDesign,
121
117
  'tds-table--divider': this.verticalDividers,
122
118
  'tds-table--no-min-width': this.noMinWidth,
@@ -213,18 +209,19 @@ export class TdsTableHeaderCell {
213
209
  "type": "string",
214
210
  "mutable": false,
215
211
  "complexType": {
216
- "original": "string",
217
- "resolved": "string",
212
+ "original": "'left' | 'start' | 'right' | 'end' | 'center'",
213
+ "resolved": "\"center\" | \"end\" | \"left\" | \"right\" | \"start\"",
218
214
  "references": {}
219
215
  },
220
216
  "required": false,
221
- "optional": true,
217
+ "optional": false,
222
218
  "docs": {
223
219
  "tags": [],
224
- "text": "Setting for text align, default is left. Other accepted values are \"right\" or \"end\"."
220
+ "text": "Setting for text align, default is \"left\". Other accepted values are \"left\", \"start\", \"right\" or \"end\"."
225
221
  },
226
222
  "attribute": "text-align",
227
- "reflect": true
223
+ "reflect": true,
224
+ "defaultValue": "'left'"
228
225
  }
229
226
  };
230
227
  }
@@ -280,7 +280,8 @@
280
280
  display: none;
281
281
  position: absolute;
282
282
  right: 18px;
283
- top: 18px;
283
+ top: 50%;
284
+ transform: translateY(-50%);
284
285
  color: var(--tds-text-field-icon-read-only-label-color);
285
286
  }
286
287
  .text-field-icon__readonly-label {
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
2
  import hasSlot from "../../utils/hasSlot";
3
3
  /**
4
- * @slot prefix - Slot for the prefix in the Text Field
5
- * @slot suffix - Slot for the suffix in the Text Field
4
+ * @slot prefix - Slot for the prefix in the component.
5
+ * @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
6
6
  */
7
7
  export class TdsTextField {
8
8
  constructor() {
@@ -48,22 +48,31 @@ export class TdsTextField {
48
48
  var _a;
49
49
  const usesPrefixSlot = hasSlot('prefix', this.host);
50
50
  const usesSuffixSlot = hasSlot('suffix', this.host);
51
- return (h("div", { key: '10f02c5fd7d8a5a340c193436e92686164f65277', class: `
52
- ${this.noMinWidth ? 'form-text-field-nomin' : ''}
53
- ${this.focusInput && !this.disabled
54
- ? 'form-text-field text-field-focus'
55
- : ' form-text-field'}
56
- ${this.value ? 'text-field-data' : ''}
57
- ${this.labelPosition === 'inside' && this.size !== 'sm'
58
- ? 'text-field-container-label-inside'
59
- : ''}
60
- ${this.disabled ? 'form-text-field-disabled' : ''}
61
- ${this.readOnly ? 'form-text-field-readonly' : ''}
62
- ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}
63
- ${this.size === 'md' ? 'form-text-field-md' : ''}
64
- ${this.size === 'sm' ? 'form-text-field-sm' : ''}
65
- ${this.state === 'error' || this.state === 'success' ? `form-text-field-${this.state}` : ''}
66
- ` }, this.labelPosition === 'outside' && (h("div", { class: "text-field-label-outside" }, h("div", null, this.label))), h("div", { key: 'e0f9dda3a9efb72f61e419fba8889d91f859674b', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { class: `text-field-slot-wrap-prefix text-field-${this.state}` }, h("slot", { name: "prefix" }))), h("div", { key: '3edab2913fcfd3a6d9bde99648afb2a62ee391ea', class: "text-field-input-container" }, h("input", { key: '1abb6c38e8cfcb4557d957b055087c46a30f035b', ref: (inputEl) => (this.textInput = inputEl), class: `text-field-input text-field-input-${this.size}`, type: this.type, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, autofocus: this.autofocus, maxlength: this.maxLength, name: this.name, min: this.min, max: this.max, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onFocus: (event) => {
51
+ return (h("div", { key: '2b312cea422545b69a06408597cc8acdb2e1b571', class: {
52
+ 'form-text-field-nomin': this.noMinWidth,
53
+ 'form-text-field': !this.focusInput || this.disabled,
54
+ 'text-field-focus': this.focusInput && !this.disabled,
55
+ 'text-field-data': this.value !== '' && this.value !== null,
56
+ 'text-field-container-label-inside': this.labelPosition === 'inside' && this.size !== 'sm',
57
+ 'form-text-field-disabled': this.disabled,
58
+ 'form-text-field-readonly': this.readOnly,
59
+ 'tds-mode-variant-primary': this.modeVariant === 'primary',
60
+ 'tds-mode-variant-secondary': this.modeVariant === 'secondary',
61
+ 'form-text-field-md': this.size === 'md',
62
+ 'form-text-field-sm': this.size === 'sm',
63
+ 'form-text-field-error': this.state === 'error',
64
+ 'form-text-field-success': this.state === 'success',
65
+ } }, this.labelPosition === 'outside' && (h("div", { class: "text-field-label-outside" }, h("div", null, this.label))), h("div", { key: '23c59920fa3c06b9677e06b1c8413b9938c731eb', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { class: {
66
+ 'text-field-slot-wrap-prefix': true,
67
+ 'text-field-error': this.state === 'error',
68
+ 'text-field-success': this.state === 'success',
69
+ 'text-field-default': this.state === 'default',
70
+ } }, h("slot", { name: "prefix" }))), h("div", { key: 'aea27bc666bf486c46b9fe07bf0fb7290addf5ad', class: "text-field-input-container" }, h("input", { key: '6b2cb5c19fdac8280806cf70d0ebbc4aefc80e8a', ref: (inputEl) => (this.textInput = inputEl), class: {
71
+ 'text-field-input': true,
72
+ 'text-field-input-sm': this.size === 'sm',
73
+ 'text-field-input-md': this.size === 'md',
74
+ 'text-field-input-lg': this.size === 'lg',
75
+ }, type: this.type, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, autofocus: this.autofocus, maxlength: this.maxLength, name: this.name, min: this.min, max: this.max, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onFocus: (event) => {
67
76
  if (!this.readOnly) {
68
77
  this.handleFocus(event);
69
78
  }
@@ -71,7 +80,13 @@ export class TdsTextField {
71
80
  if (!this.readOnly) {
72
81
  this.handleBlur(event);
73
82
  }
74
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { class: "text-field-label-inside" }, this.label))), h("div", { key: '021c1a06221e989477fa554ad223238d714bd28d', class: "text-field-bar" }), usesSuffixSlot && (h("div", { class: `text-field-slot-wrap-suffix text-field-${this.state}` }, h("slot", { name: "suffix" }))), h("span", { key: '9246b6f25d37f5961906ac610bb0471bfb2f4ac0', class: "text-field-icon__readonly" }, h("tds-icon", { key: '2b35b53f5e62493d0391d43a5a104c7da44680c5', name: "edit_inactive", size: "20px" })), h("span", { key: 'b53594f386def37d0411214a94ddc77d8966a89d', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { class: "text-field-helper" }, this.state === 'error' && (h("div", { class: "text-field-helper-error-state" }, h("tds-icon", { name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
83
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { class: "text-field-label-inside" }, this.label))), h("div", { key: 'd51f4eb1d1b8afeae3375d8111bcaf5f322e7382', class: "text-field-bar" }), usesSuffixSlot && (h("div", { class: {
84
+ 'text-field-slot-wrap-suffix': true,
85
+ 'text-field-error': this.state === 'error',
86
+ 'text-field-success': this.state === 'success',
87
+ 'text-field-default': this.state === 'default',
88
+ 'tds-u-display-none': this.readOnly,
89
+ } }, h("slot", { name: "suffix" }))), h("span", { key: 'ebf4dc9b5aba18087491a01d0619eea334dc0b93', class: "text-field-icon__readonly" }, h("tds-icon", { key: '0c346e4bc4835081b3cf85dcf09b641dec1f6127', name: "edit_inactive", size: "20px" })), h("span", { key: '637c5b8941df13c39b0eda219c775f552253b15e', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { class: "text-field-helper" }, this.state === 'error' && (h("div", { class: "text-field-helper-error-state" }, h("tds-icon", { name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
75
90
  }
76
91
  static get is() { return "tds-text-field"; }
77
92
  static get encapsulation() { return "scoped"; }
@@ -258,7 +273,7 @@ export class TdsTextField {
258
273
  "optional": false,
259
274
  "docs": {
260
275
  "tags": [],
261
- "text": "Set input in readonly state"
276
+ "text": "Set input in readonly state. Hides the suffix slot if true."
262
277
  },
263
278
  "attribute": "read-only",
264
279
  "reflect": false,
@@ -42,7 +42,7 @@
42
42
  display: flex;
43
43
  align-items: center;
44
44
  justify-content: center;
45
- margin: 14px 14px 0 0;
45
+ margin: 14px 14px 0 22px;
46
46
  border: none;
47
47
  background: transparent;
48
48
  }
@@ -65,6 +65,8 @@
65
65
  display: flex;
66
66
  flex-direction: column;
67
67
  flex: 1;
68
+ max-width: 250px;
69
+ word-break: break-word;
68
70
  }
69
71
  :host .content .header-subheader {
70
72
  display: flex;
@@ -84,10 +86,6 @@
84
86
  color: var(--tds-toast-subheadline-color);
85
87
  font: var(--tds-detail-02) !important;
86
88
  letter-spacing: var(--tds-detail-02-ls) !important;
87
- max-width: 252px;
88
- white-space: nowrap;
89
- overflow: hidden;
90
- text-overflow: ellipsis;
91
89
  }
92
90
  :host .content .subheader.no-link slot::slotted(*),
93
91
  :host .content slot[name=subheader]::slotted(*).no-link slot::slotted(*) {
@@ -43,6 +43,7 @@ export class TdsToast {
43
43
  this.subheader = undefined;
44
44
  this.variant = 'information';
45
45
  this.hidden = false;
46
+ this.closable = true;
46
47
  this.toastRole = 'alert';
47
48
  }
48
49
  /** Hides the Toast. */
@@ -57,14 +58,12 @@ export class TdsToast {
57
58
  const usesHeaderSlot = hasSlot('header', this.host);
58
59
  const usesSubheaderSlot = hasSlot('subheader', this.host);
59
60
  const usesActionsSlot = hasSlot('actions', this.host);
60
- return (h(Host, { key: 'ef3bf94989a3966dbceae7266b9defd5f3e94b97', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
61
+ return (h(Host, { key: 'b4a35bad02fc58bae1ec849e9018b47da0471efa', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
61
62
  hide: this.hidden,
62
63
  show: !this.hidden,
63
- } }, h("div", { key: '037b0d3313fbb663c147c195aef001fa6c0c0b5f', class: `
64
+ } }, h("div", { key: '302b734e22d80b84ec04378d019476b360913b7a', class: `
64
65
  wrapper
65
- ${this.variant}` }, h("tds-icon", { key: 'd69688a9dff7ec78c7bdc3923b5efb793034497e', name: this.getIconName(), size: "20px" }), h("div", { key: 'cee5e70c6af0b0fb2f51131a5f000ef849456c6f', class: `content` }, h("div", { key: '18855f70d0db55bd8aea5c7c82cc4a159cfb10a0', class: "header-subheader" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), this.subheader && h("div", { class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { name: "subheader" })), usesActionsSlot && (h("div", { class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { name: "actions" })))), h("button", { key: 'e95faf92ad8cfc5262aafbf1a5ace77a96f87e20', onClick: () => {
66
- this.handleClose();
67
- }, class: `close` }, h("tds-icon", { key: 'e1ce21f0ef7fb6862f560f153c515296c83d4f57', name: "cross", size: "20px" })))));
66
+ ${this.variant}` }, h("tds-icon", { key: 'abf3ed7b8c3116ddd180f5b05486f90f85e0ab35', name: this.getIconName(), size: "20px" }), h("div", { key: 'd0ed5fb347cfaf7614961d8a70ddfe517713af70', class: `content` }, h("div", { key: 'f12ef9ddf3005ce3b6397665f7dfbbc18050d88b', class: "header-subheader" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), this.subheader && h("div", { class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { name: "subheader" })), usesActionsSlot && (h("div", { class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { name: "actions" })))), this.closable && (h("button", { onClick: this.handleClose, class: "close" }, h("tds-icon", { name: "cross", size: "20px" }))))));
68
67
  }
69
68
  static get is() { return "tds-toast"; }
70
69
  static get encapsulation() { return "shadow"; }
@@ -168,6 +167,24 @@ export class TdsToast {
168
167
  "reflect": true,
169
168
  "defaultValue": "false"
170
169
  },
170
+ "closable": {
171
+ "type": "boolean",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "boolean",
175
+ "resolved": "boolean",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "Enables the close button."
183
+ },
184
+ "attribute": "closable",
185
+ "reflect": false,
186
+ "defaultValue": "true"
187
+ },
171
188
  "toastRole": {
172
189
  "type": "string",
173
190
  "mutable": false,
@@ -29,7 +29,7 @@ export class TdsToggle {
29
29
  };
30
30
  }
31
31
  render() {
32
- return (h("div", { key: 'c5ef82c0a9c7ac3e32dea737d269dffe6758a158', class: "tds-toggle" }, this.headline && (h("div", { class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '6958177bc218b15c455ea74d7978a854d963b9bd', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: 'fbf7a151180e872b2db76edc8d8024325270f376', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: '77a95fda7a452e5cd05c84845a33692cf0dd2589', name: "label" }))));
32
+ return (h("div", { key: '726adc73f704e7f2b303983c7fb02a4656b0d84d', class: "tds-toggle" }, this.headline && (h("div", { class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '22628dcc2b941c27faf09eb10e9f6d7d50c03e3c', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '235750e453463cf087d6683d5f1c1b02056f1536', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: '8d51817c8fa188f75e680f42d6cbad2ed6891ba3', name: "label" }))));
33
33
  }
34
34
  static get is() { return "tds-toggle"; }
35
35
  static get encapsulation() { return "scoped"; }
@@ -44,7 +44,7 @@ export class TdsTooltip {
44
44
  }
45
45
  render() {
46
46
  var _a;
47
- return (h(Host, { key: '562f403871e5cf9960aae1cd5307401e81fad66f' }, h("tds-popover-core", Object.assign({ key: 'cc3d5ec3304c62d8ae3f5e0c2f7c3d6ad6568ba2' }, this.inheritedAttributes, { class: {
47
+ return (h(Host, { key: '0cf105738ffdc5463fb22a310e95e119b4e76cdd' }, h("tds-popover-core", Object.assign({ key: '3ff8ccc3d104969b5c7f7f8ededf054f305f2df0' }, this.inheritedAttributes, { class: {
48
48
  'tds-tooltip': true,
49
49
  [`tds-tooltip-${this.border}`]: true,
50
50
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -53,7 +53,7 @@ export class TdsTooltip {
53
53
  this.show = true;
54
54
  }, onInternalTdsClose: () => {
55
55
  this.show = false;
56
- } }), this.text, h("slot", { key: '614d5c7e89bd01ab11c57bc06d0f553361a99441' }))));
56
+ } }), this.text, h("slot", { key: 'b7a06b9f4875788c815f33a75d45dbb8a72f6393' }))));
57
57
  }
58
58
  static get is() { return "tds-tooltip"; }
59
59
  static get encapsulation() { return "scoped"; }
@@ -16,6 +16,7 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
16
16
  this.cellValue = undefined;
17
17
  this.cellKey = undefined;
18
18
  this.disablePadding = false;
19
+ this.textAlign = undefined;
19
20
  this.textAlignState = undefined;
20
21
  this.activeSorting = false;
21
22
  this.verticalDividers = false;
@@ -48,7 +49,14 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
48
49
  const [receivedID, receivedKey, receivedTextAlign] = event.detail;
49
50
  if (this.tableId === receivedID) {
50
51
  if (this.cellKey === receivedKey) {
51
- this.textAlignState = receivedTextAlign;
52
+ if (this.textAlign) {
53
+ this.textAlignState = this.textAlign;
54
+ }
55
+ else {
56
+ this.textAlignState = ['left', 'start', 'center', 'right', 'end'].includes(receivedTextAlign)
57
+ ? receivedTextAlign
58
+ : 'left';
59
+ }
52
60
  }
53
61
  }
54
62
  }
@@ -60,16 +68,19 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
60
68
  relevantTableProps.forEach((tablePropName) => {
61
69
  this[tablePropName] = this.tableEl[tablePropName];
62
70
  });
71
+ if (this.textAlign) {
72
+ this.textAlignState = this.textAlign;
73
+ }
63
74
  }
64
75
  render() {
65
- return (h(Host, { key: '70e15157b5cdb058c0bb1a57bc45ba2a63a7cf1e', class: {
76
+ return (h(Host, { key: '76284c19457074e04686323e0ae010a0a0511066', class: {
66
77
  'tds-table__body-cell': true,
67
78
  'tds-table__body-cell--hover': this.activeSorting,
68
79
  'tds-table__compact': this.compactDesign,
69
80
  'tds-table--divider': this.verticalDividers,
70
81
  'tds-table--no-min-width': this.noMinWidth,
71
82
  'tds-table__body-cell--no-padding': this.disablePadding,
72
- }, style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", { key: '2f006a87a5c0ed1b7212ab96913b40683df4c8a6' })));
83
+ }, style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", { key: '41cfdbf142362f1dd298ed9f4c622775d543b64b' })));
73
84
  }
74
85
  get host() { return this; }
75
86
  static get style() { return TdsBodyCellStyle0; }
@@ -77,6 +88,7 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
77
88
  "cellValue": [520, "cell-value"],
78
89
  "cellKey": [520, "cell-key"],
79
90
  "disablePadding": [516, "disable-padding"],
91
+ "textAlign": [513, "text-align"],
80
92
  "textAlignState": [32],
81
93
  "activeSorting": [32],
82
94
  "verticalDividers": [32],
@@ -59,7 +59,7 @@ const appendHiddenInput = (element, name, value, disabled, additionalAttributes)
59
59
  input.value = value || '';
60
60
  };
61
61
 
62
- const dropdownCss = "@charset \"UTF-8\";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:4px 4px 0 0}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom-color:var(--tds-dropdown-border-bottom-open)}:host button:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-border-bottom-open)}:host button.error{border-bottom:1px solid var(--tds-negative)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom-color:transparent}:host .filter.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-dropdown-border-bottom-open)}:host .filter.error{border-bottom:1px solid var(--tds-negative)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{margin-right:16px}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-negative)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;margin-top:1px;width:100%;transform-origin:top;transition:transform 0.2s ease-in-out;box-shadow:rgba(0, 0, 0, 0.1) 0 2px 3px 0;border-radius:0 0 4px 4px;overflow-y:auto}:host .dropdown-list::-webkit-scrollbar{width:4px;background-color:inherit}:host .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .dropdown-list ::-webkit-scrollbar-button{height:0;width:0}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;box-shadow:rgba(0, 0, 0, 0.1) 0 -1px 3px 0;border-radius:4px 4px 0 0}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);visibility:hidden}:host .dropdown-list.open{transform:scaleY(1)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host tds-icon{transition:transform 0.2s ease-in-out}:host tds-icon.open{transform:rotateZ(180deg)}";
62
+ const dropdownCss = "@charset \"UTF-8\";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:4px 4px 0 0}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom-color:var(--tds-dropdown-border-bottom-open)}:host button:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-border-bottom-open)}:host button.error{border-bottom:1px solid var(--tds-negative)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host button .menu-icon{margin-right:0px}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom-color:transparent}:host .filter.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-dropdown-border-bottom-open)}:host .filter.error{border-bottom:1px solid var(--tds-negative)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{cursor:pointer}:host .filter .menu-icon{margin-right:16px}:host .filter .clear-icon{margin:0 8px;color:var(--tds-dropdown-clear-icon-color);padding-right:8px;border-right:1px solid var(--tds-dropdown-clear-icon-color)}:host .filter .clear-icon:hover{color:var(--tds-dropdown-clear-icon-hover-color)}:host .filter .clear-icon.hide{display:none;visibility:hidden}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-negative)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;margin-top:1px;width:100%;transform-origin:top;transition:transform 0.2s ease-in-out;box-shadow:rgba(0, 0, 0, 0.1) 0 2px 3px 0;border-radius:0 0 4px 4px;overflow-y:auto}:host .dropdown-list::-webkit-scrollbar{width:4px;background-color:inherit}:host .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .dropdown-list ::-webkit-scrollbar-button{height:0;width:0}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;box-shadow:rgba(0, 0, 0, 0.1) 0 -1px 3px 0;border-radius:4px 4px 0 0}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);visibility:hidden}:host .dropdown-list.open{transform:scaleY(1)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host .menu-icon{color:var(--tds-dropdown-menu-icon-color)}:host tds-icon{transition:transform 0.2s ease-in-out}:host tds-icon.open{transform:rotateZ(180deg)}";
63
63
  const TdsDropdownStyle0 = dropdownCss;
64
64
 
65
65
  const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends HTMLElement {
@@ -183,6 +183,12 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
183
183
  }).length;
184
184
  }
185
185
  };
186
+ this.handleFilterReset = () => {
187
+ this.reset();
188
+ this.inputElement.value = '';
189
+ this.handleFilter({ target: { value: this.inputElement.value } });
190
+ this.inputElement.focus();
191
+ };
186
192
  this.handleFocus = (event) => {
187
193
  this.tdsFocus.emit(event);
188
194
  };
@@ -393,7 +399,7 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
393
399
  render() {
394
400
  var _a, _b, _c, _d;
395
401
  appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
396
- return (h(Host, { key: '75d4f203d87f8ecd1b79c859f72f7377888254af', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '4595633d41ca7a108e345370b8e53bbf4a81380a', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
402
+ return (h(Host, { key: '062a04c9b529a7e30ca863ba53f757f288f4da10', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '8f5b894804a3be375ba5091b7da004937dbcfe31', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
397
403
  filter: true,
398
404
  focus: this.filterFocus,
399
405
  disabled: this.disabled,
@@ -416,7 +422,15 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
416
422
  this.open = false;
417
423
  }
418
424
  }
419
- })), h("tds-icon", { onClick: this.handleToggleOpen, class: `${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
425
+ })), h("tds-icon", { tabIndex: 0, role: "button", "aria-label": "Clear filter", svgTitle: "Clear filter", onClick: this.handleFilterReset, onKeyDown: (event) => {
426
+ if (event.key === 'Enter') {
427
+ this.handleFilterReset();
428
+ }
429
+ }, class: `clear-icon ${this.open && this.inputElement.value !== '' ? '' : 'hide'}`, name: "cross", size: "16px" }), h("tds-icon", { tabIndex: 0, role: "button", "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", onClick: this.handleToggleOpen, onKeyDown: (event) => {
430
+ if (event.key === 'Enter') {
431
+ this.handleToggleOpen();
432
+ }
433
+ }, class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
420
434
  if (event.key === 'Escape') {
421
435
  this.open = false;
422
436
  }
@@ -428,11 +442,11 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
428
442
  label-inside-as-placeholder
429
443
  ${this.size}
430
444
  ${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
431
- ` }, 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", { class: `${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: 'dea4c89cf74b5a264e080d94332dccbc7cbd8c98', ref: (element) => (this.dropdownList = element), class: `dropdown-list
445
+ ` }, 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: 'a507589572614ae3ac4c99fb777394b0bc03729c', ref: (element) => (this.dropdownList = element), class: `dropdown-list
432
446
  ${this.size}
433
447
  ${this.open ? 'open' : 'closed'}
434
448
  ${this.getOpenDirection()}
435
- ${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '4fd5b25fe610dd65fd2ca3e74b50afc5cb8131d9' }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { name: "error", size: "16px" }), this.helper))));
449
+ ${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: 'b184e4c940125d51c9531bceadc8544cbd579c1c' }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { name: "error", size: "16px" }), this.helper))));
436
450
  }
437
451
  get host() { return this; }
438
452
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const tableHeaderCellCss = ":host(.tds-table__header-cell){box-sizing:border-box;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-header-background-hover);padding:0;height:48px;min-width:192px;box-sizing:border-box;vertical-align:middle;overflow:hidden;transition:background-color 200ms ease}:host(.tds-table__header-cell) *{box-sizing:border-box}:host(.tds-table__header-cell) .tds-table__header-text{padding:0 16px;margin:0}:host(.tds-table__header-cell--sortable) .tds-table__header-button{display:flex;align-items:center;gap:8px;justify-content:start;flex-direction:row;width:100%;height:100%;padding:0 16px;background-color:transparent;border:none;cursor:pointer;transition:background-color 200ms ease}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus{outline:2px solid var(--tds-table-header-btn-focus);outline-offset:-2px}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-text{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);text-align:left;color:var(--tds-table-header-btn-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-icon{flex:0 0 16px;height:16px;width:16px;opacity:0;transform-origin:center;transition:opacity 200ms ease-in, transform 200ms ease;fill:var(--tds-table-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button:hover .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--right-align) .tds-table__header-button{text-align:right;justify-content:end;flex-direction:row-reverse}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button{background-color:var(--tds-table-header-btn-background)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button:hover{background-color:var(--tds-table-header-btn-background-hover)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon--rotate{transform:rotate(180deg)}:host(.tds-table--compact){height:33px}:host(.tds-table--divider){border-right:1px solid var(--tds-table-divider)}:host(.tds-table--divider:last-of-type){border-right:none}:host(.tds-table--no-min-width){min-width:unset}:host(.tds-table__header-cell:first-of-type){border-top-left-radius:4px}:host(.tds-table__header-cell:last-of-type){border-top-right-radius:4px}:host(.tds-table--extra-column:first-of-type){border-top-left-radius:0}:host(.tds-table--toolbar-available){border-radius:0}:host(.tds-table--extra-column.tds-table--toolbar-available){border-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:first-of-type){border-top-left-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:last-of-type){border-top-right-radius:0}";
3
+ const tableHeaderCellCss = ":host(.tds-table__header-cell){box-sizing:border-box;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-header-background-hover);padding:0;height:48px;min-width:192px;box-sizing:border-box;vertical-align:middle;overflow:hidden;transition:background-color 200ms ease}:host(.tds-table__header-cell) *{box-sizing:border-box}:host(.tds-table__header-cell) .tds-table__header-text{padding:0 16px;margin:0}:host(.tds-table__header-cell--sortable) .tds-table__header-button{display:flex;align-items:center;gap:8px;justify-content:start;flex-direction:row;width:100%;height:100%;padding:0 16px;background-color:transparent;border:none;cursor:pointer;transition:background-color 200ms ease}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus{outline:2px solid var(--tds-table-header-btn-focus);outline-offset:-2px}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-text{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);text-align:left;color:var(--tds-table-header-btn-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-icon{flex:0 0 16px;height:16px;width:16px;opacity:0;transform-origin:center;transition:opacity 200ms ease-in, transform 200ms ease;fill:var(--tds-table-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button:hover .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button{background-color:var(--tds-table-header-btn-background)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button:hover{background-color:var(--tds-table-header-btn-background-hover)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon--rotate{transform:rotate(180deg)}:host(.tds-table--compact){height:33px}:host(.tds-table--divider){border-right:1px solid var(--tds-table-divider)}:host(.tds-table--divider:last-of-type){border-right:none}:host(.tds-table--no-min-width){min-width:unset}:host(.tds-table__header-cell:first-of-type){border-top-left-radius:4px}:host(.tds-table__header-cell:last-of-type){border-top-right-radius:4px}:host(.tds-table--extra-column:first-of-type){border-top-left-radius:0}:host(.tds-table--toolbar-available){border-radius:0}:host(.tds-table--extra-column.tds-table--toolbar-available){border-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:first-of-type){border-top-left-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:last-of-type){border-top-right-radius:0}";
4
4
  const TdsHeaderCellStyle0 = tableHeaderCellCss;
5
5
 
6
6
  const relevantTableProps = [
@@ -46,7 +46,7 @@ const TdsTableHeaderCell = /*@__PURE__*/ proxyCustomElement(class TdsTableHeader
46
46
  };
47
47
  this.headerCellContent = () => {
48
48
  if (this.sortable) {
49
- return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick() }, h("span", { class: "tds-table__header-button-text", style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", null)), this.sortingDirection === null && (h("svg", { class: "tds-table__header-button-icon", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 15" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z" }))), this.sortingDirection && (h("svg", { class: `tds-table__header-button-icon ${this.sortingDirection === 'desc' ? 'tds-table__header-button-icon--rotate' : ''}`, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z" })))));
49
+ return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === null && (h("svg", { class: "tds-table__header-button-icon", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 15" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z" }))), this.sortingDirection && (h("svg", { class: `tds-table__header-button-icon ${this.sortingDirection === 'desc' ? 'tds-table__header-button-icon--rotate' : ''}`, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z" })))));
50
50
  }
51
51
  return (h("p", { class: "tds-table__header-text", style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", null)));
52
52
  };
@@ -60,7 +60,7 @@ const TdsTableHeaderCell = /*@__PURE__*/ proxyCustomElement(class TdsTableHeader
60
60
  this.cellValue = undefined;
61
61
  this.customWidth = undefined;
62
62
  this.sortable = false;
63
- this.textAlign = undefined;
63
+ this.textAlign = 'left';
64
64
  this.textAlignState = undefined;
65
65
  this.sortingDirection = 'asc';
66
66
  this.sortedByMyKey = false;
@@ -106,25 +106,21 @@ const TdsTableHeaderCell = /*@__PURE__*/ proxyCustomElement(class TdsTableHeader
106
106
  });
107
107
  }
108
108
  componentWillRender() {
109
- // enable only right or left text align
110
- if (this.textAlign === 'right' || this.textAlign === 'end') {
111
- this.textAlignState = 'right';
112
- }
113
- else {
114
- this.textAlignState = 'left';
115
- }
109
+ // if text alignment matches any of the acceptable values, use it. Otherwise, set "left" as default
110
+ this.textAlignState = ['left', 'start', 'right', 'end', 'center'].includes(this.textAlign)
111
+ ? this.textAlign
112
+ : 'left';
116
113
  // To enable body cells text align per rules set in head cell
117
114
  this.internalTdsTextAlign.emit([this.tableId, this.cellKey, this.textAlignState]);
118
115
  this.enableToolbarDesign =
119
116
  this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
120
117
  }
121
118
  render() {
122
- return (h(Host, { key: 'd09c42078df2774f9bae1e9e2906abdf9e52f5ac', class: {
119
+ return (h(Host, { key: '8cda19cdff411db98aecbf8a915853eda026853d', class: {
123
120
  'tds-table__header-cell': true,
124
121
  'tds-table__header-cell--sortable': this.sortable,
125
122
  'tds-table__header-cell--is-sorted': this.sortedByMyKey,
126
123
  'tds-table__header-cell--custom-width': this.customWidth !== '',
127
- 'tds-table__header-cell--right-align': this.textAlignState === 'right',
128
124
  'tds-table--compact': this.compactDesign,
129
125
  'tds-table--divider': this.verticalDividers,
130
126
  'tds-table--no-min-width': this.noMinWidth,