@scania/tegel 1.6.1 → 1.7.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 (281) 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 +12 -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 +1 -1
  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 +40 -18
  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 +1 -1
  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/modal/modal.js +73 -17
  85. package/dist/collection/components/slider/slider.js +51 -41
  86. package/dist/collection/components/table/table-body-cell/table-body-cell.js +29 -3
  87. package/dist/collection/components/table/table-header-cell/table-header-cell.css +0 -6
  88. package/dist/collection/components/table/table-header-cell/table-header-cell.js +13 -16
  89. package/dist/collection/components/text-field/text-field.css +2 -1
  90. package/dist/collection/components/text-field/text-field.js +35 -20
  91. package/dist/collection/components/toast/toast.css +3 -5
  92. package/dist/collection/components/toast/toast.js +22 -5
  93. package/dist/collection/components/toggle/toggle.js +1 -1
  94. package/dist/collection/components/tooltip/tooltip.js +2 -2
  95. package/dist/components/tds-body-cell.js +12 -3
  96. package/dist/components/tds-header-cell.js +8 -12
  97. package/dist/components/tds-modal.js +42 -18
  98. package/dist/components/tds-slider.js +33 -37
  99. package/dist/components/tds-text-field.js +33 -18
  100. package/dist/components/tds-toast.js +6 -6
  101. package/dist/components/tds-toggle.js +1 -1
  102. package/dist/components/tds-tooltip.js +2 -2
  103. package/dist/esm/app-globals-0f993ce5.js +3 -0
  104. package/dist/esm/{index-ab4edc4a.js → index-529974bd.js} +35 -23
  105. package/dist/esm/loader.js +6 -4
  106. package/dist/esm/tds-accordion-item.entry.js +1 -1
  107. package/dist/esm/tds-accordion.entry.js +1 -1
  108. package/dist/esm/tds-badge.entry.js +1 -1
  109. package/dist/esm/tds-banner.entry.js +1 -1
  110. package/dist/esm/tds-block.entry.js +1 -1
  111. package/dist/esm/tds-body-cell.entry.js +12 -4
  112. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  113. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  114. package/dist/esm/tds-button.entry.js +1 -1
  115. package/dist/esm/tds-card.entry.js +1 -1
  116. package/dist/esm/tds-checkbox.entry.js +1 -1
  117. package/dist/esm/tds-chip.entry.js +1 -1
  118. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  119. package/dist/esm/tds-datetime.entry.js +1 -1
  120. package/dist/esm/tds-divider.entry.js +1 -1
  121. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  122. package/dist/esm/tds-dropdown.entry.js +1 -1
  123. package/dist/esm/tds-folder-tab.entry.js +1 -1
  124. package/dist/esm/tds-folder-tabs.entry.js +1 -1
  125. package/dist/esm/tds-footer-group.entry.js +1 -1
  126. package/dist/esm/tds-footer-item.entry.js +1 -1
  127. package/dist/esm/tds-footer.entry.js +1 -1
  128. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  129. package/dist/esm/tds-header-cell.entry.js +9 -13
  130. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  131. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  132. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  133. package/dist/esm/tds-header-dropdown.entry.js +1 -1
  134. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  135. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  136. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  137. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  138. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  139. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  140. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  141. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  142. package/dist/esm/tds-header-launcher.entry.js +1 -1
  143. package/dist/esm/tds-header-title.entry.js +1 -1
  144. package/dist/esm/tds-header.entry.js +1 -1
  145. package/dist/esm/tds-icon.entry.js +1 -1
  146. package/dist/esm/tds-inline-tab.entry.js +1 -1
  147. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  148. package/dist/esm/tds-link.entry.js +1 -1
  149. package/dist/esm/tds-message.entry.js +1 -1
  150. package/dist/esm/tds-modal.entry.js +40 -18
  151. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  152. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  153. package/dist/esm/tds-popover-canvas.entry.js +1 -1
  154. package/dist/esm/tds-popover-core.entry.js +1 -1
  155. package/dist/esm/tds-popover-menu-item.entry.js +1 -1
  156. package/dist/esm/tds-popover-menu.entry.js +1 -1
  157. package/dist/esm/tds-radio-button.entry.js +1 -1
  158. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  159. package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
  160. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
  161. package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
  162. package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
  163. package/dist/esm/tds-side-menu-item.entry.js +1 -1
  164. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  165. package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
  166. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  167. package/dist/esm/tds-side-menu.entry.js +1 -1
  168. package/dist/esm/tds-slider.entry.js +33 -37
  169. package/dist/esm/tds-spinner.entry.js +1 -1
  170. package/dist/esm/tds-step.entry.js +1 -1
  171. package/dist/esm/tds-stepper.entry.js +1 -1
  172. package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
  173. package/dist/esm/tds-table-body-row.entry.js +1 -1
  174. package/dist/esm/tds-table-body.entry.js +1 -1
  175. package/dist/esm/tds-table-footer.entry.js +1 -1
  176. package/dist/esm/tds-table-header.entry.js +1 -1
  177. package/dist/esm/tds-table-toolbar.entry.js +1 -1
  178. package/dist/esm/tds-table.entry.js +1 -1
  179. package/dist/esm/tds-text-field.entry.js +34 -19
  180. package/dist/esm/tds-textarea.entry.js +1 -1
  181. package/dist/esm/tds-toast.entry.js +6 -7
  182. package/dist/esm/tds-toggle.entry.js +2 -2
  183. package/dist/esm/tds-tooltip.entry.js +3 -3
  184. package/dist/esm/tegel.js +7 -5
  185. package/dist/tegel/{p-5b23048d.entry.js → p-0215d53c.entry.js} +1 -1
  186. package/dist/tegel/{p-8df9b81f.entry.js → p-02417061.entry.js} +1 -1
  187. package/dist/tegel/{p-391b6b34.entry.js → p-033fbea5.entry.js} +1 -1
  188. package/dist/tegel/p-052901a5.entry.js +1 -0
  189. package/dist/tegel/{p-ab76d48c.entry.js → p-0c444c09.entry.js} +1 -1
  190. package/dist/tegel/p-10610955.entry.js +1 -0
  191. package/dist/tegel/{p-24466c21.entry.js → p-16f0471f.entry.js} +1 -1
  192. package/dist/tegel/{p-68821acd.entry.js → p-1ba2c5df.entry.js} +1 -1
  193. package/dist/tegel/{p-0c564ca1.entry.js → p-1e2ef3d6.entry.js} +1 -1
  194. package/dist/tegel/{p-72b79121.entry.js → p-1f39c53a.entry.js} +1 -1
  195. package/dist/tegel/{p-8af4737f.entry.js → p-2c388774.entry.js} +1 -1
  196. package/dist/tegel/{p-200def59.entry.js → p-2f5db352.entry.js} +1 -1
  197. package/dist/tegel/{p-6fa16688.entry.js → p-2f692ff0.entry.js} +1 -1
  198. package/dist/tegel/{p-b13959d0.entry.js → p-2ffae2d1.entry.js} +1 -1
  199. package/dist/tegel/{p-efff904c.entry.js → p-3b546070.entry.js} +1 -1
  200. package/dist/tegel/{p-81cc50f8.entry.js → p-3dd15e1e.entry.js} +1 -1
  201. package/dist/tegel/{p-30dc9a8b.entry.js → p-3f983f99.entry.js} +1 -1
  202. package/dist/tegel/{p-a2ad0d53.entry.js → p-412d8fd1.entry.js} +1 -1
  203. package/dist/tegel/{p-bd056432.entry.js → p-450eabc1.entry.js} +1 -1
  204. package/dist/tegel/{p-7bbfa1ea.entry.js → p-453c8af8.entry.js} +1 -1
  205. package/dist/tegel/{p-825fd938.entry.js → p-4a04433c.entry.js} +1 -1
  206. package/dist/tegel/{p-2270b30c.entry.js → p-50b0f2ff.entry.js} +1 -1
  207. package/dist/tegel/{p-e2f1a7a2.entry.js → p-52b9333c.entry.js} +1 -1
  208. package/dist/tegel/{p-1590e242.entry.js → p-56bae450.entry.js} +1 -1
  209. package/dist/tegel/{p-a2934b2a.entry.js → p-5880c2f3.entry.js} +1 -1
  210. package/dist/tegel/{p-9544a2e7.entry.js → p-5a273781.entry.js} +1 -1
  211. package/dist/tegel/{p-145808cf.entry.js → p-5b7d9ca4.entry.js} +1 -1
  212. package/dist/tegel/{p-36db31d4.entry.js → p-5d756b0b.entry.js} +1 -1
  213. package/dist/tegel/{p-048b8480.entry.js → p-5db63168.entry.js} +1 -1
  214. package/dist/tegel/{p-eda20d0d.entry.js → p-652eb0ff.entry.js} +1 -1
  215. package/dist/tegel/{p-447ecb47.entry.js → p-669f7646.entry.js} +1 -1
  216. package/dist/tegel/p-699829fc.js +2 -0
  217. package/dist/tegel/{p-92b2db31.entry.js → p-6c23bc53.entry.js} +1 -1
  218. package/dist/tegel/{p-17b8763f.entry.js → p-7076c719.entry.js} +1 -1
  219. package/dist/tegel/{p-8e442441.entry.js → p-7172fd77.entry.js} +1 -1
  220. package/dist/tegel/{p-c95a8a36.entry.js → p-747811d6.entry.js} +1 -1
  221. package/dist/tegel/p-74a93487.entry.js +1 -0
  222. package/dist/tegel/{p-5047cf31.entry.js → p-76a00407.entry.js} +1 -1
  223. package/dist/tegel/{p-cb080d0b.entry.js → p-7a3fbb5b.entry.js} +1 -1
  224. package/dist/tegel/{p-e35f0c64.entry.js → p-7b31e171.entry.js} +1 -1
  225. package/dist/tegel/{p-ee537028.entry.js → p-7e0116af.entry.js} +1 -1
  226. package/dist/tegel/{p-9f33108a.entry.js → p-8408ef10.entry.js} +1 -1
  227. package/dist/tegel/{p-40519ff4.entry.js → p-864e5bb0.entry.js} +1 -1
  228. package/dist/tegel/{p-f51101e4.entry.js → p-87bfc032.entry.js} +1 -1
  229. package/dist/tegel/{p-cd93fb3a.entry.js → p-8a46d308.entry.js} +1 -1
  230. package/dist/tegel/{p-4aa948cf.entry.js → p-8a90d1ae.entry.js} +1 -1
  231. package/dist/tegel/{p-61b2e46f.entry.js → p-8bb8d06a.entry.js} +1 -1
  232. package/dist/tegel/{p-4ca0f396.entry.js → p-8c6aad07.entry.js} +1 -1
  233. package/dist/tegel/{p-32f13b73.entry.js → p-8ebc7052.entry.js} +1 -1
  234. package/dist/tegel/{p-2fb7f571.entry.js → p-a0812bb2.entry.js} +1 -1
  235. package/dist/tegel/{p-ae5db9b9.entry.js → p-a1151348.entry.js} +1 -1
  236. package/dist/tegel/{p-1b671dbc.entry.js → p-a31282be.entry.js} +1 -1
  237. package/dist/tegel/{p-30417aac.entry.js → p-acc70f3c.entry.js} +1 -1
  238. package/dist/tegel/{p-23ed39c5.entry.js → p-af6d2907.entry.js} +1 -1
  239. package/dist/tegel/{p-9995c9e6.entry.js → p-b03790b1.entry.js} +1 -1
  240. package/dist/tegel/{p-5b9e6fa3.entry.js → p-b263f884.entry.js} +1 -1
  241. package/dist/tegel/{p-9731cc82.entry.js → p-b6f8c65f.entry.js} +1 -1
  242. package/dist/tegel/{p-d8b12e59.entry.js → p-bc7459fb.entry.js} +1 -1
  243. package/dist/tegel/p-bd618905.entry.js +1 -0
  244. package/dist/tegel/{p-708a52b1.entry.js → p-c08c8bd8.entry.js} +1 -1
  245. package/dist/tegel/{p-77a5d874.entry.js → p-c77d9eaf.entry.js} +1 -1
  246. package/dist/tegel/{p-5ec7c389.entry.js → p-cc16393b.entry.js} +1 -1
  247. package/dist/tegel/{p-521fd6fe.entry.js → p-d26257ca.entry.js} +1 -1
  248. package/dist/tegel/{p-c9f701f6.entry.js → p-d2e0442d.entry.js} +1 -1
  249. package/dist/tegel/{p-6e4cda16.entry.js → p-d41ef4f8.entry.js} +1 -1
  250. package/dist/tegel/p-d4b6f9bc.entry.js +1 -0
  251. package/dist/tegel/p-d9fec37c.entry.js +1 -0
  252. package/dist/tegel/{p-adddb2db.entry.js → p-ddabb9e9.entry.js} +1 -1
  253. package/dist/tegel/{p-fa3bd57f.entry.js → p-e10b2f73.entry.js} +1 -1
  254. package/dist/tegel/p-e1255160.js +1 -0
  255. package/dist/tegel/{p-db20a6e9.entry.js → p-e2443a41.entry.js} +1 -1
  256. package/dist/tegel/{p-cd406a82.entry.js → p-e38b51a2.entry.js} +1 -1
  257. package/dist/tegel/{p-dc35de46.entry.js → p-e3e19bd6.entry.js} +1 -1
  258. package/dist/tegel/{p-632a58e4.entry.js → p-e6a51915.entry.js} +1 -1
  259. package/dist/tegel/{p-c3ad28ea.entry.js → p-e8957bd2.entry.js} +1 -1
  260. package/dist/tegel/{p-25616b50.entry.js → p-ed56507b.entry.js} +1 -1
  261. package/dist/tegel/{p-7b9149c0.entry.js → p-ed8f1e2a.entry.js} +1 -1
  262. package/dist/tegel/{p-71063a5a.entry.js → p-f226f11e.entry.js} +1 -1
  263. package/dist/tegel/{p-d604194c.entry.js → p-f93bb760.entry.js} +1 -1
  264. package/dist/tegel/{p-b8cc0ab0.entry.js → p-fb2968f2.entry.js} +1 -1
  265. package/dist/tegel/tegel.css +1 -1
  266. package/dist/tegel/tegel.esm.js +1 -1
  267. package/dist/types/components/modal/modal.d.ts +9 -2
  268. package/dist/types/components/slider/slider.d.ts +7 -5
  269. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +2 -0
  270. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
  271. package/dist/types/components/text-field/text-field.d.ts +3 -3
  272. package/dist/types/components/toast/toast.d.ts +2 -0
  273. package/dist/types/components.d.ts +40 -7
  274. package/package.json +4 -2
  275. package/dist/tegel/p-55afd9bb.entry.js +0 -1
  276. package/dist/tegel/p-5c528867.entry.js +0 -1
  277. package/dist/tegel/p-68f0f81d.entry.js +0 -1
  278. package/dist/tegel/p-6bb7fa2c.js +0 -2
  279. package/dist/tegel/p-6bca93b8.entry.js +0 -1
  280. package/dist/tegel/p-9d79f2fe.entry.js +0 -1
  281. package/dist/tegel/p-c0ced88a.entry.js +0 -1
@@ -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 = 'left';
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
  }
@@ -62,14 +70,14 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
62
70
  });
63
71
  }
64
72
  render() {
65
- return (h(Host, { key: '70e15157b5cdb058c0bb1a57bc45ba2a63a7cf1e', class: {
73
+ return (h(Host, { key: 'f401d3aea3ccc3bfa976861a9261232e82386fb1', class: {
66
74
  'tds-table__body-cell': true,
67
75
  'tds-table__body-cell--hover': this.activeSorting,
68
76
  'tds-table__compact': this.compactDesign,
69
77
  'tds-table--divider': this.verticalDividers,
70
78
  'tds-table--no-min-width': this.noMinWidth,
71
79
  'tds-table__body-cell--no-padding': this.disablePadding,
72
- }, style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", { key: '2f006a87a5c0ed1b7212ab96913b40683df4c8a6' })));
80
+ }, style: { textAlign: this.textAlignState } }, this.cellValue, h("slot", { key: '7cb32ae0e1eb6e60f010edaebe11df7cab389825' })));
73
81
  }
74
82
  get host() { return this; }
75
83
  static get style() { return TdsBodyCellStyle0; }
@@ -77,6 +85,7 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
77
85
  "cellValue": [520, "cell-value"],
78
86
  "cellKey": [520, "cell-key"],
79
87
  "disablePadding": [516, "disable-padding"],
88
+ "textAlign": [513, "text-align"],
80
89
  "textAlignState": [32],
81
90
  "activeSorting": [32],
82
91
  "verticalDividers": [32],
@@ -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,
@@ -29,17 +29,12 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
29
29
  this.handleClose(event);
30
30
  }
31
31
  };
32
- /** Adds an event listener to the reference element that shows/closes the Modal. */
33
- this.initializeReferenceElement = (referenceEl) => {
34
- if (referenceEl) {
35
- referenceEl.addEventListener('click', (event) => {
36
- if (this.isShown) {
37
- this.handleClose(event);
38
- }
39
- else {
40
- this.handleShow();
41
- }
42
- });
32
+ this.handleReferenceElementClick = (event) => {
33
+ if (this.isShown) {
34
+ this.handleClose(event);
35
+ }
36
+ else {
37
+ this.handleShow();
43
38
  }
44
39
  };
45
40
  /** Check if there is a referenceElement or selector and adds event listener to them if so. */
@@ -52,6 +47,12 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
52
47
  }
53
48
  }
54
49
  };
50
+ /** Adds an event listener to the reference element that shows/closes the Modal. */
51
+ this.initializeReferenceElement = (referenceEl) => {
52
+ if (referenceEl) {
53
+ referenceEl.addEventListener('click', this.handleReferenceElementClick);
54
+ }
55
+ };
55
56
  this.header = undefined;
56
57
  this.prevent = false;
57
58
  this.size = 'md';
@@ -73,24 +74,45 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
73
74
  if (this.show !== undefined) {
74
75
  this.isShown = this.show;
75
76
  }
76
- this.setDismissButtons();
77
- this.setShowButton();
77
+ this.initializeModal();
78
78
  if (this.header && hasSlot('header', this.host)) {
79
79
  console.warn("Tegel Modal component: Using both header prop and header slot might break modal's design. Please use just one of them. ");
80
80
  }
81
81
  }
82
+ componentWillLoad() {
83
+ this.initializeModal();
84
+ }
85
+ disconnectedCallback() {
86
+ this.cleanupModal();
87
+ }
88
+ /** Initializes or re-initializes the modal, setting up event listeners. */
89
+ async initializeModal() {
90
+ this.setDismissButtons();
91
+ this.setShowButton();
92
+ }
93
+ /** Cleans up event listeners and other resources. */
94
+ async cleanupModal() {
95
+ var _a;
96
+ if (this.selector || this.referenceEl) {
97
+ const referenceEl = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
98
+ if (referenceEl) {
99
+ referenceEl.removeEventListener('click', this.handleReferenceElementClick);
100
+ }
101
+ }
102
+ this.host.querySelectorAll('[data-dismiss-modal]').forEach((dismissButton) => {
103
+ dismissButton.removeEventListener('click', this.handleClose);
104
+ });
105
+ }
82
106
  /** Adds an event listener to the dismiss buttons that closes the Modal. */
83
107
  setDismissButtons() {
84
108
  this.host.querySelectorAll('[data-dismiss-modal]').forEach((dismissButton) => {
85
- dismissButton.addEventListener('click', (event) => {
86
- this.handleClose(event);
87
- });
109
+ dismissButton.addEventListener('click', this.handleClose);
88
110
  });
89
111
  }
90
112
  render() {
91
113
  const usesHeaderSlot = hasSlot('header', this.host);
92
114
  const usesActionsSlot = hasSlot('actions', this.host);
93
- return (h(Host, { key: 'd3e0d4d6611134126de12944c238e96acce8dc58', class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: 'c3b155f003be30978deefd302a0db9f20c319367', class: "tds-modal-backdrop" }), h("div", { key: '4606f040cd26d18b6cea7a1ef3af036b917a622c', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '5f281f96937c5459ef6de75a240769f95a607739', class: "header" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), h("button", { key: 'd3cd87c242e5974886591241a8895780a0ee89a2', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: 'bc9cc1be58288d800e36e66b53033f1991322cce', name: "cross", size: "20px" }))), h("div", { key: 'd30c37f23034e17dd4bb6a1a824f06147ba7982d', class: "body" }, h("slot", { key: '51e0253c5082db0f65504f45446a0aec33b4b1a2', name: "body" })), usesActionsSlot && h("slot", { name: "actions" }))));
115
+ return (h(Host, { key: '982d982745a2204cc12c497623a581c30a18e7e1', class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '8d2a5d828f7f6d7301590011b058a24f913445ce', class: "tds-modal-backdrop" }), h("div", { key: 'ff1eaee892f9873d88b51439f8e7bf9063496979', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: 'e1e1c795404ece5a584b6b8155c66aa1d7fcebb7', class: "header" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), h("button", { key: '177151127f3038e8cbbd9a4d0547a43bf2944772', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: 'c6d79f53914dabc04fd99185eab581becc96952a', name: "cross", size: "20px" }))), h("div", { key: 'ba963055a72a5b1f9ceae5fc91bd674e2800a3ea', class: "body" }, h("slot", { key: '3069132a40abb3c37e20231a8138c9306251b503', name: "body" })), usesActionsSlot && h("slot", { name: "actions" }))));
94
116
  }
95
117
  get host() { return this; }
96
118
  static get style() { return TdsModalStyle0; }
@@ -104,7 +126,9 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
104
126
  "show": [4],
105
127
  "isShown": [32],
106
128
  "showModal": [64],
107
- "closeModal": [64]
129
+ "closeModal": [64],
130
+ "initializeModal": [64],
131
+ "cleanupModal": [64]
108
132
  }]);
109
133
  function defineCustomElement$1() {
110
134
  if (typeof customElements === "undefined") {
@@ -10,6 +10,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
10
10
  super();
11
11
  this.__registerHost();
12
12
  this.tdsChange = createEvent(this, "tdsChange", 6);
13
+ this.tdsInput = createEvent(this, "tdsInput", 6);
13
14
  this.wrapperElement = null;
14
15
  this.thumbElement = null;
15
16
  this.thumbInnerElement = null;
@@ -51,41 +52,28 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
51
52
  case 'ArrowLeft':
52
53
  case 'ArrowDown':
53
54
  case '-':
54
- this.stepLeft();
55
+ this.stepLeft(event);
55
56
  break;
56
57
  case 'ArrowRight':
57
58
  case 'ArrowUp':
58
59
  case '+':
59
- this.stepRight();
60
+ this.stepRight(event);
60
61
  break;
61
62
  }
62
63
  }
63
- handleMouseUp() {
64
+ handleRelease(event) {
64
65
  if (!this.thumbGrabbed) {
65
66
  return;
66
67
  }
67
68
  this.thumbGrabbed = false;
68
69
  this.thumbInnerElement.classList.remove('pressed');
69
- this.updateValue();
70
+ this.updateValue(event);
70
71
  this.trackElement.focus();
71
72
  }
72
- handleTouchEnd() {
73
- if (!this.thumbGrabbed) {
74
- return;
75
- }
76
- this.thumbGrabbed = false;
77
- this.thumbInnerElement.classList.remove('pressed');
78
- this.updateValue();
79
- this.trackElement.focus();
80
- }
81
- handleMouseMove(event) {
82
- if (!this.thumbGrabbed) {
83
- return;
73
+ handleMove(event) {
74
+ if (event.type === 'touchmove') {
75
+ event.preventDefault();
84
76
  }
85
- this.thumbCore(event);
86
- }
87
- handleTouchMove(event) {
88
- event.preventDefault();
89
77
  if (!this.thumbGrabbed) {
90
78
  return;
91
79
  }
@@ -132,14 +120,14 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
132
120
  }
133
121
  this.thumbLeft = this.constrainThumb(localLeft);
134
122
  this.thumbElement.style.left = `${this.thumbLeft}px`;
135
- this.updateValue();
123
+ this.updateValue(event);
136
124
  }
137
125
  updateTrack() {
138
126
  const trackWidth = this.getTrackWidth();
139
127
  const percentageFilled = (this.thumbLeft / trackWidth) * 100;
140
128
  this.trackFillElement.style.width = `${percentageFilled}%`;
141
129
  }
142
- updateValue() {
130
+ updateValue(event) {
143
131
  const trackWidth = this.getTrackWidth();
144
132
  const numTicks = parseInt(this.ticks);
145
133
  /* if snapping (supposedValueSlot > 0) is enabled, make sure we display the supposed value (instead of maybe getting a -1/+1 depending on rounding) */
@@ -153,7 +141,11 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
153
141
  this.value = `${Math.trunc(parseFloat(this.min) + percentage * (parseFloat(this.max) - parseFloat(this.min)))}`;
154
142
  }
155
143
  this.updateTrack();
156
- this.tdsChange.emit({ value: this.value });
144
+ this.tdsInput.emit({ value: this.value });
145
+ /* Emit event after user has finished dragging the thumb */
146
+ if (event.type === 'touchend' || event.type === 'mouseup') {
147
+ this.tdsChange.emit({ value: this.value });
148
+ }
157
149
  }
158
150
  forceValueUpdate(newValue) {
159
151
  this.calculateThumbLeftFromValue(newValue);
@@ -189,6 +181,10 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
189
181
  updateSliderValueOnInputChange(event) {
190
182
  const inputElement = event.target;
191
183
  let newValue = parseInt(inputElement.value);
184
+ // Check if the new value is different from the current value
185
+ if (newValue === parseInt(this.value)) {
186
+ return; // Exit the function if the new value is the same as the current value
187
+ }
192
188
  if (newValue < parseFloat(this.min)) {
193
189
  newValue = parseFloat(this.min);
194
190
  }
@@ -216,7 +212,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
216
212
  calculateInputSizeFromMax() {
217
213
  return this.max.length;
218
214
  }
219
- controlsStep(delta) {
215
+ controlsStep(delta, event) {
220
216
  if (this.readOnly || this.disabled) {
221
217
  return;
222
218
  }
@@ -231,7 +227,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
231
227
  else if (this.supposedValueSlot > numTicks + 1) {
232
228
  this.supposedValueSlot = numTicks + 1;
233
229
  }
234
- this.updateValue();
230
+ this.updateValue(event);
235
231
  }
236
232
  else {
237
233
  const trackWidth = this.getTrackWidth();
@@ -249,11 +245,11 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
249
245
  this.forceValueUpdate(this.value);
250
246
  }
251
247
  }
252
- stepLeft() {
253
- this.controlsStep(-parseInt(this.step));
248
+ stepLeft(event) {
249
+ this.controlsStep(-parseInt(this.step), event);
254
250
  }
255
- stepRight() {
256
- this.controlsStep(parseInt(this.step));
251
+ stepRight(event) {
252
+ this.controlsStep(parseInt(this.step), event);
257
253
  }
258
254
  componentWillLoad() {
259
255
  const numTicks = parseInt(this.ticks);
@@ -295,24 +291,24 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
295
291
  this.updateTrack();
296
292
  }
297
293
  render() {
298
- return (h("div", { key: '08af5b4825c074a283e570796c508aa72dd55bca', class: {
294
+ return (h("div", { key: 'bf3ca081d01c6eac5907fe1ebef8ae5f14fa87da', class: {
299
295
  'tds-slider-wrapper': true,
300
296
  'read-only': this.readOnly,
301
- } }, h("input", { key: '28e28c09a2f975fe884c10d3d4101f13bad69d74', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: '0e500280ad8d0aa77fae11d44f25cda5506576fb', class: {
297
+ } }, h("input", { key: '0fb204f882d1905461354f2b75ff4fc374ffa9c9', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: '6ea9c5efc3a9d590c36b9b9f40bbd2401b9c2dfc', class: {
302
298
  'tds-slider': true,
303
299
  'disabled': this.disabled,
304
300
  'tds-slider-small': this.useSmall,
305
301
  }, ref: (el) => {
306
302
  this.wrapperElement = el;
307
- } }, h("label", { key: '6a8bd064dbdaef1868a2b7c204490309075a3760', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { class: "tds-slider__controls" }, h("div", { class: "tds-slider__control tds-slider__control-minus", onClick: () => this.stepLeft() }, h("tds-icon", { name: "minus", size: "16px" })))), h("div", { key: '6a6edf11ee88faf3fd1a9730023f7a89e90abe66', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { class: "tds-slider__value-dividers-wrapper" }, h("div", { class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: '6bceaaa53bed86067f596ca13b7c00ed88d06282', class: "tds-slider__track", ref: (el) => {
303
+ } }, h("label", { key: '738c0dcf07e3d99a49443f1d501ccaa278653a8d', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { class: "tds-slider__controls" }, h("div", { class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event) }, h("tds-icon", { name: "minus", size: "16px" })))), h("div", { key: '999c32a0970e2ec7ab2a601b168ddcf5a0a74bcc', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { class: "tds-slider__value-dividers-wrapper" }, h("div", { class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: '57ecf12b107bf4f4b0b23134ad2820a01063e624', class: "tds-slider__track", ref: (el) => {
308
304
  this.trackElement = el;
309
- }, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '327ebb76dce92a13eccee7fd3dd7219bbed43d6c', class: "tds-slider__track-fill", ref: (el) => {
305
+ }, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: 'd12fc549e7e503865fd3a1505c4a51476d769908', class: "tds-slider__track-fill", ref: (el) => {
310
306
  this.trackFillElement = el;
311
- } }), h("div", { key: 'c40c1cdedbb20dcd1491f5f1db1f8d4c6dafad49', class: "tds-slider__thumb", ref: (el) => {
307
+ } }), h("div", { key: 'ecc291e9e4aeb3c813f866e3a58615184ef21c35', class: "tds-slider__thumb", ref: (el) => {
312
308
  this.thumbElement = el;
313
- }, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { class: "tds-slider__value" }, this.value, h("svg", { width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: '6f963c34cf9ecd038f829969a4c19c90e1c32eff', class: "tds-slider__thumb-inner", ref: (el) => {
309
+ }, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { class: "tds-slider__value" }, this.value, h("svg", { width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: '403b0ea3f2ca18469a3e8ef32a2a8468d1a2e82c', class: "tds-slider__thumb-inner", ref: (el) => {
314
310
  this.thumbInnerElement = el;
315
- } })))), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { class: "tds-slider__input-value", onClick: () => this.stepLeft() }, this.max), h("div", { class: "tds-slider__input-field-wrapper" }, h("input", { size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event) })))), this.useControls && (h("div", { class: "tds-slider__controls" }, h("div", { class: "tds-slider__control tds-slider__control-plus", onClick: () => this.stepRight() }, h("tds-icon", { name: "plus", size: "16px" })))))));
311
+ } })))), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { class: "tds-slider__input-field-wrapper" }, h("input", { size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event), type: "number", min: this.min, max: this.max })))), this.useControls && (h("div", { class: "tds-slider__controls" }, h("div", { class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event) }, h("tds-icon", { name: "plus", size: "16px" })))))));
316
312
  }
317
313
  static get watchers() { return {
318
314
  "value": ["handleValueUpdate"]
@@ -336,7 +332,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
336
332
  "snap": [4],
337
333
  "sliderId": [1, "slider-id"],
338
334
  "reset": [64]
339
- }, [[0, "keydown", "handleKeydown"], [9, "mouseup", "handleMouseUp"], [9, "touchend", "handleTouchEnd"], [9, "mousemove", "handleMouseMove"], [9, "touchmove", "handleTouchMove"]], {
335
+ }, [[0, "keydown", "handleKeydown"], [9, "mouseup", "handleRelease"], [9, "touchend", "handleRelease"], [9, "mousemove", "handleMove"], [9, "touchmove", "handleMove"]], {
340
336
  "value": ["handleValueUpdate"]
341
337
  }]);
342
338
  function defineCustomElement$1() {
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { h as hasSlot } from './hasSlot.js';
3
3
  import { d as defineCustomElement$2 } from './icon.js';
4
4
 
5
- const textFieldCss = ".text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-lg.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-lg.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-md.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-md.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-sm.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-sm.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-bar.sc-tds-text-field{position:absolute;width:100%}.text-field-bar.sc-tds-text-field::before,.text-field-bar.sc-tds-text-field::after{content:\"\";height:2px;top:54px;width:0;position:absolute;background:var(--tds-text-field-bar);transition:0.35s ease all}.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:46px}.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:40px}.text-field-bar.sc-tds-text-field::before{left:50%}.text-field-bar.sc-tds-text-field::after{right:50%}.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{width:50%}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:18px;color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly-label.sc-tds-text-field{display:none;position:absolute;right:18px;top:48px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);padding:8px;white-space:nowrap;border-radius:4px 0 4px 4px;background-color:var(--tds-text-field-icon-read-only-label-background)}.form-text-field-readonly.sc-tds-text-field{pointer-events:none}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{padding-right:54px;background-color:transparent}.form-text-field-success.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{background:var(--tds-text-field-bar-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.sc-tds-text-field .text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}";
5
+ const textFieldCss = ".text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-lg.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-lg.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-md.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-md.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-sm.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-sm.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-bar.sc-tds-text-field{position:absolute;width:100%}.text-field-bar.sc-tds-text-field::before,.text-field-bar.sc-tds-text-field::after{content:\"\";height:2px;top:54px;width:0;position:absolute;background:var(--tds-text-field-bar);transition:0.35s ease all}.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:46px}.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:40px}.text-field-bar.sc-tds-text-field::before{left:50%}.text-field-bar.sc-tds-text-field::after{right:50%}.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{width:50%}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly-label.sc-tds-text-field{display:none;position:absolute;right:18px;top:48px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);padding:8px;white-space:nowrap;border-radius:4px 0 4px 4px;background-color:var(--tds-text-field-icon-read-only-label-background)}.form-text-field-readonly.sc-tds-text-field{pointer-events:none}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{padding-right:54px;background-color:transparent}.form-text-field-success.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{background:var(--tds-text-field-bar-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.sc-tds-text-field .text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}";
6
6
  const TdsTextFieldStyle0 = textFieldCss;
7
7
 
8
8
  const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField extends HTMLElement {
@@ -55,22 +55,31 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
55
55
  var _a;
56
56
  const usesPrefixSlot = hasSlot('prefix', this.host);
57
57
  const usesSuffixSlot = hasSlot('suffix', this.host);
58
- return (h("div", { key: '10f02c5fd7d8a5a340c193436e92686164f65277', class: `
59
- ${this.noMinWidth ? 'form-text-field-nomin' : ''}
60
- ${this.focusInput && !this.disabled
61
- ? 'form-text-field text-field-focus'
62
- : ' form-text-field'}
63
- ${this.value ? 'text-field-data' : ''}
64
- ${this.labelPosition === 'inside' && this.size !== 'sm'
65
- ? 'text-field-container-label-inside'
66
- : ''}
67
- ${this.disabled ? 'form-text-field-disabled' : ''}
68
- ${this.readOnly ? 'form-text-field-readonly' : ''}
69
- ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}
70
- ${this.size === 'md' ? 'form-text-field-md' : ''}
71
- ${this.size === 'sm' ? 'form-text-field-sm' : ''}
72
- ${this.state === 'error' || this.state === 'success' ? `form-text-field-${this.state}` : ''}
73
- ` }, 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) => {
58
+ return (h("div", { key: '2b312cea422545b69a06408597cc8acdb2e1b571', class: {
59
+ 'form-text-field-nomin': this.noMinWidth,
60
+ 'form-text-field': !this.focusInput || this.disabled,
61
+ 'text-field-focus': this.focusInput && !this.disabled,
62
+ 'text-field-data': this.value !== '' && this.value !== null,
63
+ 'text-field-container-label-inside': this.labelPosition === 'inside' && this.size !== 'sm',
64
+ 'form-text-field-disabled': this.disabled,
65
+ 'form-text-field-readonly': this.readOnly,
66
+ 'tds-mode-variant-primary': this.modeVariant === 'primary',
67
+ 'tds-mode-variant-secondary': this.modeVariant === 'secondary',
68
+ 'form-text-field-md': this.size === 'md',
69
+ 'form-text-field-sm': this.size === 'sm',
70
+ 'form-text-field-error': this.state === 'error',
71
+ 'form-text-field-success': this.state === 'success',
72
+ } }, 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: {
73
+ 'text-field-slot-wrap-prefix': true,
74
+ 'text-field-error': this.state === 'error',
75
+ 'text-field-success': this.state === 'success',
76
+ 'text-field-default': this.state === 'default',
77
+ } }, h("slot", { name: "prefix" }))), h("div", { key: 'aea27bc666bf486c46b9fe07bf0fb7290addf5ad', class: "text-field-input-container" }, h("input", { key: '6b2cb5c19fdac8280806cf70d0ebbc4aefc80e8a', ref: (inputEl) => (this.textInput = inputEl), class: {
78
+ 'text-field-input': true,
79
+ 'text-field-input-sm': this.size === 'sm',
80
+ 'text-field-input-md': this.size === 'md',
81
+ 'text-field-input-lg': this.size === 'lg',
82
+ }, 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) => {
74
83
  if (!this.readOnly) {
75
84
  this.handleFocus(event);
76
85
  }
@@ -78,7 +87,13 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
78
87
  if (!this.readOnly) {
79
88
  this.handleBlur(event);
80
89
  }
81
- } }), 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))))));
90
+ } }), 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: {
91
+ 'text-field-slot-wrap-suffix': true,
92
+ 'text-field-error': this.state === 'error',
93
+ 'text-field-success': this.state === 'success',
94
+ 'text-field-default': this.state === 'default',
95
+ 'tds-u-display-none': this.readOnly,
96
+ } }, 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))))));
82
97
  }
83
98
  get host() { return this; }
84
99
  static get style() { return TdsTextFieldStyle0; }
@@ -3,7 +3,7 @@ import { g as generateUniqueId } from './generateUniqueId.js';
3
3
  import { h as hasSlot } from './hasSlot.js';
4
4
  import { d as defineCustomElement$2 } from './icon.js';
5
5
 
6
- const toastCss = ":host(.hide){display:none;visibility:hidden}:host{z-index:800}:host .wrapper{display:flex;width:348px;background-color:var(--tds-toast-background-color);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-information)}:host .wrapper.information tds-icon{color:var(--tds-information)}:host .wrapper.success{border-left:4px solid var(--tds-positive)}:host .wrapper.success tds-icon{color:var(--tds-positive)}:host .wrapper.error{border-left:4px solid var(--tds-negative)}:host .wrapper.error tds-icon{color:var(--tds-negative)}:host .wrapper.warning{border-left:4px solid var(--tds-warning)}:host .wrapper.warning tds-icon{color:var(--tds-warning)}:host .wrapper button.close{height:20px;width:20px;display:flex;align-items:center;justify-content:center;margin:14px 14px 0 0;border:none;background:transparent}:host .wrapper button.close:hover{cursor:pointer}:host .wrapper button.close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .wrapper button.close tds-icon{color:var(--tds-toast-dissmiss-color);padding:0}:host tds-icon{padding:14px 0 0 12px}:host .content{padding:16px 0 16px 10px;display:flex;flex-direction:column;flex:1}:host .content .header-subheader{display:flex;flex-direction:column;gap:4px}:host .content .header,:host .content slot[name=header]::slotted(*){font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-toast-headline-color)}:host .content .subheader,:host .content slot[name=subheader]::slotted(*){color:var(--tds-toast-subheadline-color);font:var(--tds-detail-02) !important;letter-spacing:var(--tds-detail-02-ls) !important;max-width:252px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .content .subheader.no-link slot::slotted(*),:host .content slot[name=subheader]::slotted(*).no-link slot::slotted(*){padding-bottom:0}:host .content .toast-bottom{margin-top:12px}:host slot[name=actions]::slotted(*){color:var(--tds-toast-link-color)}:host .tds-mode-variant-primary{--tds-toast-background:var(--tds-toast-background-primary)}:host .tds-mode-variant-secondary{--tds-toast-background:var(--tds-toast-background-secondary)}";
6
+ const toastCss = ":host(.hide){display:none;visibility:hidden}:host{z-index:800}:host .wrapper{display:flex;width:348px;background-color:var(--tds-toast-background-color);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-information)}:host .wrapper.information tds-icon{color:var(--tds-information)}:host .wrapper.success{border-left:4px solid var(--tds-positive)}:host .wrapper.success tds-icon{color:var(--tds-positive)}:host .wrapper.error{border-left:4px solid var(--tds-negative)}:host .wrapper.error tds-icon{color:var(--tds-negative)}:host .wrapper.warning{border-left:4px solid var(--tds-warning)}:host .wrapper.warning tds-icon{color:var(--tds-warning)}:host .wrapper button.close{height:20px;width:20px;display:flex;align-items:center;justify-content:center;margin:14px 14px 0 22px;border:none;background:transparent}:host .wrapper button.close:hover{cursor:pointer}:host .wrapper button.close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .wrapper button.close tds-icon{color:var(--tds-toast-dissmiss-color);padding:0}:host tds-icon{padding:14px 0 0 12px}:host .content{padding:16px 0 16px 10px;display:flex;flex-direction:column;flex:1;max-width:250px;word-break:break-word}:host .content .header-subheader{display:flex;flex-direction:column;gap:4px}:host .content .header,:host .content slot[name=header]::slotted(*){font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-toast-headline-color)}:host .content .subheader,:host .content slot[name=subheader]::slotted(*){color:var(--tds-toast-subheadline-color);font:var(--tds-detail-02) !important;letter-spacing:var(--tds-detail-02-ls) !important}:host .content .subheader.no-link slot::slotted(*),:host .content slot[name=subheader]::slotted(*).no-link slot::slotted(*){padding-bottom:0}:host .content .toast-bottom{margin-top:12px}:host slot[name=actions]::slotted(*){color:var(--tds-toast-link-color)}:host .tds-mode-variant-primary{--tds-toast-background:var(--tds-toast-background-primary)}:host .tds-mode-variant-secondary{--tds-toast-background:var(--tds-toast-background-secondary)}";
7
7
  const TdsToastStyle0 = toastCss;
8
8
 
9
9
  const TdsToast$1 = /*@__PURE__*/ proxyCustomElement(class TdsToast extends HTMLElement {
@@ -47,6 +47,7 @@ const TdsToast$1 = /*@__PURE__*/ proxyCustomElement(class TdsToast extends HTMLE
47
47
  this.subheader = undefined;
48
48
  this.variant = 'information';
49
49
  this.hidden = false;
50
+ this.closable = true;
50
51
  this.toastRole = 'alert';
51
52
  }
52
53
  /** Hides the Toast. */
@@ -61,14 +62,12 @@ const TdsToast$1 = /*@__PURE__*/ proxyCustomElement(class TdsToast extends HTMLE
61
62
  const usesHeaderSlot = hasSlot('header', this.host);
62
63
  const usesSubheaderSlot = hasSlot('subheader', this.host);
63
64
  const usesActionsSlot = hasSlot('actions', this.host);
64
- return (h(Host, { key: 'ef3bf94989a3966dbceae7266b9defd5f3e94b97', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
65
+ return (h(Host, { key: 'b4a35bad02fc58bae1ec849e9018b47da0471efa', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
65
66
  hide: this.hidden,
66
67
  show: !this.hidden,
67
- } }, h("div", { key: '037b0d3313fbb663c147c195aef001fa6c0c0b5f', class: `
68
+ } }, h("div", { key: '302b734e22d80b84ec04378d019476b360913b7a', class: `
68
69
  wrapper
69
- ${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: () => {
70
- this.handleClose();
71
- }, class: `close` }, h("tds-icon", { key: 'e1ce21f0ef7fb6862f560f153c515296c83d4f57', name: "cross", size: "20px" })))));
70
+ ${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" }))))));
72
71
  }
73
72
  get host() { return this; }
74
73
  static get style() { return TdsToastStyle0; }
@@ -78,6 +77,7 @@ const TdsToast$1 = /*@__PURE__*/ proxyCustomElement(class TdsToast extends HTMLE
78
77
  "subheader": [1],
79
78
  "variant": [1],
80
79
  "hidden": [516],
80
+ "closable": [4],
81
81
  "toastRole": [1, "toast-role"],
82
82
  "hideToast": [64],
83
83
  "showToast": [64]
@@ -33,7 +33,7 @@ const TdsToggle$1 = /*@__PURE__*/ proxyCustomElement(class TdsToggle extends HTM
33
33
  };
34
34
  }
35
35
  render() {
36
- 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" }))));
36
+ 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" }))));
37
37
  }
38
38
  get host() { return this; }
39
39
  static get style() { return TdsToggleStyle0; }