@scania/tegel 1.40.0-table-pagination-rowsperpage-reset-bug-beta.0 → 1.40.0-ts-strict-mode-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-accordion.cjs.entry.js +2 -2
  3. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-body-cell.cjs.entry.js +4 -3
  5. package/dist/cjs/tds-button_2.cjs.entry.js +7 -5
  6. package/dist/cjs/tds-card.cjs.entry.js +2 -2
  7. package/dist/cjs/tds-checkbox.cjs.entry.js +6 -3
  8. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +9 -5
  9. package/dist/cjs/tds-datetime.cjs.entry.js +8 -5
  10. package/dist/cjs/tds-dropdown_2.cjs.entry.js +49 -31
  11. package/dist/cjs/tds-folder-tabs.cjs.entry.js +10 -3
  12. package/dist/cjs/tds-footer-group.cjs.entry.js +7 -6
  13. package/dist/cjs/tds-footer-item.cjs.entry.js +7 -3
  14. package/dist/cjs/tds-footer.cjs.entry.js +2 -2
  15. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
  16. package/dist/cjs/tds-header-cell.cjs.entry.js +10 -5
  17. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +5 -3
  18. package/dist/cjs/tds-header-dropdown.cjs.entry.js +7 -5
  19. package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -4
  20. package/dist/cjs/tds-header.cjs.entry.js +8 -6
  21. package/dist/cjs/tds-icon.cjs.entry.js +1 -2
  22. package/dist/cjs/tds-inline-tabs.cjs.entry.js +10 -3
  23. package/dist/cjs/tds-message.cjs.entry.js +2 -2
  24. package/dist/cjs/tds-modal.cjs.entry.js +5 -4
  25. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +12 -5
  26. package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
  27. package/dist/cjs/tds-popover-core.cjs.entry.js +10 -8
  28. package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
  29. package/dist/cjs/tds-radio-button.cjs.entry.js +4 -1
  30. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +5 -4
  31. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +13 -9
  32. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
  33. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -4
  34. package/dist/cjs/tds-side-menu-item.cjs.entry.js +15 -9
  35. package/dist/cjs/tds-side-menu.cjs.entry.js +12 -9
  36. package/dist/cjs/tds-slider.cjs.entry.js +26 -16
  37. package/dist/cjs/tds-step.cjs.entry.js +3 -1
  38. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +17 -10
  40. package/dist/cjs/tds-table-body-row.cjs.entry.js +8 -5
  41. package/dist/cjs/tds-table-body.cjs.entry.js +9 -5
  42. package/dist/cjs/tds-table-footer.cjs.entry.js +17 -26
  43. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
  44. package/dist/cjs/tds-table-header.cjs.entry.js +24 -18
  45. package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -4
  46. package/dist/cjs/tds-table.cjs.entry.js +14 -12
  47. package/dist/cjs/tds-text-field.cjs.entry.js +7 -6
  48. package/dist/cjs/tds-textarea.cjs.entry.js +5 -4
  49. package/dist/cjs/tds-toggle.cjs.entry.js +5 -4
  50. package/dist/cjs/tds-tooltip.cjs.entry.js +6 -10
  51. package/dist/cjs/tegel.cjs.js +1 -1
  52. package/dist/collection/components/accordion/accordion.js +4 -4
  53. package/dist/collection/components/block/block.js +3 -3
  54. package/dist/collection/components/button/button.js +9 -7
  55. package/dist/collection/components/card/card.js +4 -4
  56. package/dist/collection/components/checkbox/checkbox.js +7 -4
  57. package/dist/collection/components/chip/chip.js +1 -1
  58. package/dist/collection/components/datetime/datetime.js +10 -7
  59. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +9 -6
  60. package/dist/collection/components/dropdown/dropdown.js +44 -31
  61. package/dist/collection/components/footer/footer-group/footer-group.css +1 -4
  62. package/dist/collection/components/footer/footer-group/footer-group.js +6 -5
  63. package/dist/collection/components/footer/footer-item/footer-item.css +3 -3
  64. package/dist/collection/components/footer/footer-item/footer-item.js +6 -2
  65. package/dist/collection/components/footer/footer.js +4 -4
  66. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
  67. package/dist/collection/components/header/header-dropdown/header-dropdown.js +7 -5
  68. package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
  69. package/dist/collection/components/header/header-item/header-item.js +9 -5
  70. package/dist/collection/components/header/header-launcher/header-launcher.js +8 -4
  71. package/dist/collection/components/header/header.js +8 -6
  72. package/dist/collection/components/icon/icon.js +3 -4
  73. package/dist/collection/components/message/message.js +4 -4
  74. package/dist/collection/components/modal/modal.js +8 -7
  75. package/dist/collection/components/popover-canvas/popover-canvas.js +9 -9
  76. package/dist/collection/components/popover-core/popover-core.js +20 -23
  77. package/dist/collection/components/popover-menu/popover-menu.js +9 -9
  78. package/dist/collection/components/radio-button/radio-button.js +4 -1
  79. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +5 -4
  80. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -4
  81. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
  82. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +13 -9
  83. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +15 -9
  84. package/dist/collection/components/side-menu/side-menu.js +12 -9
  85. package/dist/collection/components/slider/slider.js +26 -16
  86. package/dist/collection/components/stepper/step/step.js +3 -1
  87. package/dist/collection/components/table/table/table.js +36 -18
  88. package/dist/collection/components/table/table-body/table-body.js +9 -5
  89. package/dist/collection/components/table/table-body-cell/table-body-cell.js +7 -6
  90. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
  91. package/dist/collection/components/table/table-body-row/table-body-row.js +13 -10
  92. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +23 -16
  93. package/dist/collection/components/table/table-footer/table-footer.js +22 -34
  94. package/dist/collection/components/table/table-header/table-header.js +27 -21
  95. package/dist/collection/components/table/table-header-cell/table-header-cell.js +22 -17
  96. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
  97. package/dist/collection/components/table/table-toolbar/table-toolbar.js +8 -6
  98. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +12 -5
  99. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +10 -3
  100. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +12 -5
  101. package/dist/collection/components/text-field/text-field.js +9 -8
  102. package/dist/collection/components/textarea/textarea.js +7 -6
  103. package/dist/collection/components/toggle/toggle.js +5 -4
  104. package/dist/collection/components/tooltip/tooltip.js +9 -13
  105. package/dist/collection/utils/appendHiddenInput.js +6 -4
  106. package/dist/components/{p-d10d21bd.js → p-0d286c19.js} +2 -2
  107. package/dist/components/{p-63552d0e.js → p-415fafb3.js} +5 -5
  108. package/dist/components/{p-3308d5fa.js → p-6fd2b339.js} +10 -8
  109. package/dist/components/{p-c62b61fe.js → p-799470b1.js} +7 -5
  110. package/dist/components/{p-2a2d66fe.js → p-7e02ea3e.js} +41 -26
  111. package/dist/components/{p-6ef207b2.js → p-98d082f9.js} +11 -8
  112. package/dist/components/{p-3a7e4d0d.js → p-a64cbc40.js} +10 -9
  113. package/dist/components/{p-04a014cf.js → p-ad376f70.js} +7 -11
  114. package/dist/components/{p-9336db16.js → p-da11a695.js} +5 -3
  115. package/dist/components/{p-1dafdc8c.js → p-e0ccf8e6.js} +15 -9
  116. package/dist/components/{p-44f5b5e1.js → p-e627f11b.js} +6 -3
  117. package/dist/components/{p-7c3348eb.js → p-ead6727f.js} +9 -5
  118. package/dist/components/{p-f7d94947.js → p-edc838a0.js} +1 -2
  119. package/dist/components/tds-accordion-item.js +1 -1
  120. package/dist/components/tds-accordion.js +2 -2
  121. package/dist/components/tds-banner.js +1 -1
  122. package/dist/components/tds-block.js +1 -1
  123. package/dist/components/tds-body-cell.js +5 -4
  124. package/dist/components/tds-button.js +1 -1
  125. package/dist/components/tds-card.js +4 -4
  126. package/dist/components/tds-checkbox.js +1 -1
  127. package/dist/components/tds-datetime.js +9 -6
  128. package/dist/components/tds-dropdown-option.js +1 -1
  129. package/dist/components/tds-dropdown.js +1 -1
  130. package/dist/components/tds-folder-tabs.js +11 -4
  131. package/dist/components/tds-footer-group.js +8 -7
  132. package/dist/components/tds-footer-item.js +7 -3
  133. package/dist/components/tds-footer.js +2 -2
  134. package/dist/components/tds-header-brand-symbol.js +3 -3
  135. package/dist/components/tds-header-cell.js +11 -6
  136. package/dist/components/tds-header-dropdown-list.js +1 -1
  137. package/dist/components/tds-header-dropdown.js +11 -9
  138. package/dist/components/tds-header-hamburger.js +2 -2
  139. package/dist/components/tds-header-item.js +1 -1
  140. package/dist/components/tds-header-launcher-button.js +1 -1
  141. package/dist/components/tds-header-launcher-list.js +1 -1
  142. package/dist/components/tds-header-launcher.js +13 -9
  143. package/dist/components/tds-header.js +8 -6
  144. package/dist/components/tds-icon.js +1 -1
  145. package/dist/components/tds-inline-tabs.js +11 -4
  146. package/dist/components/tds-message.js +3 -3
  147. package/dist/components/tds-modal.js +6 -5
  148. package/dist/components/tds-navigation-tabs.js +13 -6
  149. package/dist/components/tds-popover-canvas.js +1 -1
  150. package/dist/components/tds-popover-core.js +1 -1
  151. package/dist/components/tds-popover-menu.js +5 -5
  152. package/dist/components/tds-radio-button.js +4 -1
  153. package/dist/components/tds-side-menu-close-button.js +1 -1
  154. package/dist/components/tds-side-menu-collapse-button.js +6 -5
  155. package/dist/components/tds-side-menu-dropdown-list-item.js +13 -9
  156. package/dist/components/tds-side-menu-dropdown-list.js +3 -3
  157. package/dist/components/tds-side-menu-dropdown.js +7 -6
  158. package/dist/components/tds-side-menu-item.js +1 -1
  159. package/dist/components/tds-side-menu.js +12 -9
  160. package/dist/components/tds-slider.js +30 -20
  161. package/dist/components/tds-step.js +4 -2
  162. package/dist/components/tds-table-body-input-wrapper.js +2 -2
  163. package/dist/components/tds-table-body-row-expandable.js +17 -10
  164. package/dist/components/tds-table-body-row.js +9 -6
  165. package/dist/components/tds-table-body.js +9 -5
  166. package/dist/components/tds-table-footer.js +22 -33
  167. package/dist/components/tds-table-header-input-wrapper.js +2 -2
  168. package/dist/components/tds-table-header.js +25 -19
  169. package/dist/components/tds-table-toolbar.js +7 -5
  170. package/dist/components/tds-table.js +14 -12
  171. package/dist/components/tds-text-field.js +1 -1
  172. package/dist/components/tds-textarea.js +8 -7
  173. package/dist/components/tds-toast.js +1 -1
  174. package/dist/components/tds-toggle.js +5 -4
  175. package/dist/components/tds-tooltip.js +1 -1
  176. package/dist/esm/loader.js +1 -1
  177. package/dist/esm/tds-accordion.entry.js +2 -2
  178. package/dist/esm/tds-block.entry.js +1 -1
  179. package/dist/esm/tds-body-cell.entry.js +4 -3
  180. package/dist/esm/tds-button_2.entry.js +7 -5
  181. package/dist/esm/tds-card.entry.js +2 -2
  182. package/dist/esm/tds-checkbox.entry.js +6 -3
  183. package/dist/esm/tds-core-header-item_2.entry.js +9 -5
  184. package/dist/esm/tds-datetime.entry.js +8 -5
  185. package/dist/esm/tds-dropdown_2.entry.js +49 -31
  186. package/dist/esm/tds-folder-tabs.entry.js +10 -3
  187. package/dist/esm/tds-footer-group.entry.js +7 -6
  188. package/dist/esm/tds-footer-item.entry.js +7 -3
  189. package/dist/esm/tds-footer.entry.js +2 -2
  190. package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
  191. package/dist/esm/tds-header-cell.entry.js +10 -5
  192. package/dist/esm/tds-header-dropdown-list.entry.js +5 -3
  193. package/dist/esm/tds-header-dropdown.entry.js +7 -5
  194. package/dist/esm/tds-header-launcher.entry.js +8 -4
  195. package/dist/esm/tds-header.entry.js +8 -6
  196. package/dist/esm/tds-icon.entry.js +1 -2
  197. package/dist/esm/tds-inline-tabs.entry.js +10 -3
  198. package/dist/esm/tds-message.entry.js +2 -2
  199. package/dist/esm/tds-modal.entry.js +5 -4
  200. package/dist/esm/tds-navigation-tabs.entry.js +12 -5
  201. package/dist/esm/tds-popover-canvas.entry.js +4 -4
  202. package/dist/esm/tds-popover-core.entry.js +10 -8
  203. package/dist/esm/tds-popover-menu.entry.js +4 -4
  204. package/dist/esm/tds-radio-button.entry.js +4 -1
  205. package/dist/esm/tds-side-menu-collapse-button.entry.js +5 -4
  206. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +13 -9
  207. package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
  208. package/dist/esm/tds-side-menu-dropdown.entry.js +5 -4
  209. package/dist/esm/tds-side-menu-item.entry.js +15 -9
  210. package/dist/esm/tds-side-menu.entry.js +12 -9
  211. package/dist/esm/tds-slider.entry.js +26 -16
  212. package/dist/esm/tds-step.entry.js +3 -1
  213. package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
  214. package/dist/esm/tds-table-body-row-expandable.entry.js +17 -10
  215. package/dist/esm/tds-table-body-row.entry.js +8 -5
  216. package/dist/esm/tds-table-body.entry.js +9 -5
  217. package/dist/esm/tds-table-footer.entry.js +17 -26
  218. package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
  219. package/dist/esm/tds-table-header.entry.js +24 -18
  220. package/dist/esm/tds-table-toolbar.entry.js +6 -4
  221. package/dist/esm/tds-table.entry.js +14 -12
  222. package/dist/esm/tds-text-field.entry.js +7 -6
  223. package/dist/esm/tds-textarea.entry.js +5 -4
  224. package/dist/esm/tds-toggle.entry.js +5 -4
  225. package/dist/esm/tds-tooltip.entry.js +6 -10
  226. package/dist/esm/tegel.js +1 -1
  227. package/dist/tegel/p-08c16b2f.entry.js +1 -0
  228. package/dist/tegel/p-0b37e91a.entry.js +1 -0
  229. package/dist/tegel/p-1e1a87c1.entry.js +1 -0
  230. package/dist/tegel/p-2268af7f.entry.js +1 -0
  231. package/dist/tegel/p-252a7d3f.entry.js +1 -0
  232. package/dist/tegel/p-25473962.entry.js +1 -0
  233. package/dist/tegel/{p-650b98bf.entry.js → p-27369d6a.entry.js} +1 -1
  234. package/dist/tegel/p-27d39882.entry.js +1 -0
  235. package/dist/tegel/p-3ef04672.entry.js +1 -0
  236. package/dist/tegel/p-40d99d7d.entry.js +1 -0
  237. package/dist/tegel/{p-28f85555.entry.js → p-40fa0f5b.entry.js} +1 -1
  238. package/dist/tegel/p-48a3e489.entry.js +1 -0
  239. package/dist/tegel/p-4e15f31d.entry.js +1 -0
  240. package/dist/tegel/p-57c08d0d.entry.js +1 -0
  241. package/dist/tegel/p-58ac68f3.entry.js +1 -0
  242. package/dist/tegel/p-6a472310.entry.js +1 -0
  243. package/dist/tegel/p-7104b955.entry.js +1 -0
  244. package/dist/tegel/p-781b2939.entry.js +1 -0
  245. package/dist/tegel/p-894e7e11.entry.js +1 -0
  246. package/dist/tegel/p-942f8c6f.entry.js +1 -0
  247. package/dist/tegel/p-98eff725.entry.js +1 -0
  248. package/dist/tegel/p-9b06bd5f.entry.js +1 -0
  249. package/dist/tegel/p-9c56b031.entry.js +1 -0
  250. package/dist/tegel/p-a20a54ef.entry.js +1 -0
  251. package/dist/tegel/p-a2b2092a.entry.js +1 -0
  252. package/dist/tegel/p-a334b517.entry.js +1 -0
  253. package/dist/tegel/p-a4e4c450.entry.js +1 -0
  254. package/dist/tegel/p-a60ed3de.entry.js +1 -0
  255. package/dist/tegel/p-a6dca188.entry.js +1 -0
  256. package/dist/tegel/{p-464469fe.entry.js → p-a912035b.entry.js} +1 -1
  257. package/dist/tegel/p-b218db70.entry.js +1 -0
  258. package/dist/tegel/p-b3b13975.entry.js +1 -0
  259. package/dist/tegel/{p-987f8f0f.entry.js → p-b9afb39e.entry.js} +1 -1
  260. package/dist/tegel/p-bb8c2a36.entry.js +1 -0
  261. package/dist/tegel/p-bee9e9d1.entry.js +1 -0
  262. package/dist/tegel/{p-f31f56fe.entry.js → p-c5694dd6.entry.js} +1 -1
  263. package/dist/tegel/{p-57a28f62.entry.js → p-ca068263.entry.js} +1 -1
  264. package/dist/tegel/p-d501a665.entry.js +1 -0
  265. package/dist/tegel/{p-f2318c88.entry.js → p-da38aa9a.entry.js} +1 -1
  266. package/dist/tegel/p-dda1ac69.entry.js +1 -0
  267. package/dist/tegel/{p-55f9c79a.entry.js → p-e0dc09f9.entry.js} +1 -1
  268. package/dist/tegel/p-e29fa563.entry.js +1 -0
  269. package/dist/tegel/p-ed66ef30.entry.js +1 -0
  270. package/dist/tegel/p-f5ca4fbf.entry.js +1 -0
  271. package/dist/tegel/p-f602b3a1.entry.js +1 -0
  272. package/dist/tegel/p-f922308f.entry.js +1 -0
  273. package/dist/tegel/p-fb300776.entry.js +1 -0
  274. package/dist/tegel/p-fd22d1ca.entry.js +1 -0
  275. package/dist/tegel/{p-c6968db1.entry.js → p-fe4335ca.entry.js} +1 -1
  276. package/dist/tegel/tegel.css +1 -1
  277. package/dist/tegel/tegel.esm.js +1 -1
  278. package/dist/types/components/accordion/accordion.d.ts +1 -1
  279. package/dist/types/components/block/block.d.ts +1 -1
  280. package/dist/types/components/button/button.d.ts +1 -1
  281. package/dist/types/components/card/card.d.ts +1 -1
  282. package/dist/types/components/datetime/datetime.d.ts +2 -2
  283. package/dist/types/components/dropdown/dropdown.d.ts +5 -5
  284. package/dist/types/components/footer/footer.d.ts +1 -1
  285. package/dist/types/components/icon/icon.d.ts +1 -1
  286. package/dist/types/components/message/message.d.ts +1 -1
  287. package/dist/types/components/modal/modal.d.ts +1 -1
  288. package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
  289. package/dist/types/components/popover-core/popover-core.d.ts +4 -4
  290. package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
  291. package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
  292. package/dist/types/components/table/table/table.d.ts +6 -3
  293. package/dist/types/components/table/table-body/table-body.d.ts +3 -3
  294. package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +8 -5
  295. package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
  296. package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
  297. package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
  298. package/dist/types/components/table/table-footer/table-footer.d.ts +4 -5
  299. package/dist/types/components/table/table-header/table-header.d.ts +5 -5
  300. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
  301. package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
  302. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
  303. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
  304. package/dist/types/components/text-field/text-field.d.ts +1 -1
  305. package/dist/types/components/textarea/textarea.d.ts +2 -2
  306. package/dist/types/components/tooltip/tooltip.d.ts +1 -1
  307. package/dist/types/components.d.ts +81 -81
  308. package/dist/types/types/Attributes.d.ts +1 -1
  309. package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
  310. package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
  311. package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
  312. package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
  313. package/package.json +1 -1
  314. package/dist/tegel/p-08ad6a21.entry.js +0 -1
  315. package/dist/tegel/p-08f63e5d.entry.js +0 -1
  316. package/dist/tegel/p-09cd056c.entry.js +0 -1
  317. package/dist/tegel/p-0c9a51d9.entry.js +0 -1
  318. package/dist/tegel/p-0cfe8671.entry.js +0 -1
  319. package/dist/tegel/p-0e772ad7.entry.js +0 -1
  320. package/dist/tegel/p-17bc1e49.entry.js +0 -1
  321. package/dist/tegel/p-1859156f.entry.js +0 -1
  322. package/dist/tegel/p-1f4267a8.entry.js +0 -1
  323. package/dist/tegel/p-24a76927.entry.js +0 -1
  324. package/dist/tegel/p-3450dd6c.entry.js +0 -1
  325. package/dist/tegel/p-3462a7cc.entry.js +0 -1
  326. package/dist/tegel/p-354d3986.entry.js +0 -1
  327. package/dist/tegel/p-3c97cb45.entry.js +0 -1
  328. package/dist/tegel/p-3e6d65ee.entry.js +0 -1
  329. package/dist/tegel/p-445fa788.entry.js +0 -1
  330. package/dist/tegel/p-51a17707.entry.js +0 -1
  331. package/dist/tegel/p-52689019.entry.js +0 -1
  332. package/dist/tegel/p-6b340718.entry.js +0 -1
  333. package/dist/tegel/p-72006dd7.entry.js +0 -1
  334. package/dist/tegel/p-743d4f07.entry.js +0 -1
  335. package/dist/tegel/p-77cfb0ef.entry.js +0 -1
  336. package/dist/tegel/p-7887bdbb.entry.js +0 -1
  337. package/dist/tegel/p-7b598e60.entry.js +0 -1
  338. package/dist/tegel/p-7ef50e7f.entry.js +0 -1
  339. package/dist/tegel/p-8c2695af.entry.js +0 -1
  340. package/dist/tegel/p-9f187848.entry.js +0 -1
  341. package/dist/tegel/p-9fdc8fa5.entry.js +0 -1
  342. package/dist/tegel/p-a090bd2f.entry.js +0 -1
  343. package/dist/tegel/p-a472f649.entry.js +0 -1
  344. package/dist/tegel/p-a4cbb541.entry.js +0 -1
  345. package/dist/tegel/p-a56436c8.entry.js +0 -1
  346. package/dist/tegel/p-a8abc8d9.entry.js +0 -1
  347. package/dist/tegel/p-b210d23c.entry.js +0 -1
  348. package/dist/tegel/p-c0cbc9f5.entry.js +0 -1
  349. package/dist/tegel/p-cf717912.entry.js +0 -1
  350. package/dist/tegel/p-d1d45942.entry.js +0 -1
  351. package/dist/tegel/p-d7cdbc4e.entry.js +0 -1
  352. package/dist/tegel/p-f3c32d4d.entry.js +0 -1
  353. package/dist/tegel/p-fd15ced7.entry.js +0 -1
@@ -28,17 +28,19 @@ const TdsTableBodyRow = class {
28
28
  this.tableId = '';
29
29
  }
30
30
  async handleCheckboxChange(event) {
31
+ var _a;
31
32
  this.selected = event.detail.checked;
32
33
  this.tdsSelect.emit({
33
34
  tableId: this.tableId,
34
35
  checked: this.selected,
35
- selectedRows: await this.tableEl.getSelectedRows(),
36
+ selectedRows: await ((_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.getSelectedRows()),
36
37
  });
37
38
  }
38
39
  handleRowClick(e) {
40
+ var _a, _b, _c;
39
41
  if (!this.clickable)
40
42
  return;
41
- let rowIndex = Array.from(this.host.parentElement.children).indexOf(this.host);
43
+ const rowIndex = Array.from((_c = (_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.children) !== null && _c !== void 0 ? _c : []).indexOf(this.host);
42
44
  this.tdsClick.emit({
43
45
  event: e,
44
46
  tableId: this.tableId,
@@ -71,18 +73,19 @@ const TdsTableBodyRow = class {
71
73
  componentWillLoad() {
72
74
  if (this.tableEl) {
73
75
  relevantTableProps.forEach((tablePropName) => {
74
- this[tablePropName] = this.tableEl[tablePropName];
76
+ var _a;
77
+ this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
75
78
  });
76
79
  }
77
80
  }
78
81
  render() {
79
- return (index.h(index.Host, { key: '6bf3fee7c066bc4686c9aa0ecba45c04ca7b2aae', tabindex: this.clickable ? '0' : null, class: {
82
+ return (index.h(index.Host, { key: '377d16a55b6c2cb87940ee6ec8629e71dde6ad17', tabindex: this.clickable ? '0' : null, class: {
80
83
  'tds-table__row': true,
81
84
  'tds-table__row--selected': this.selected,
82
85
  'tds-table__compact': this.compactDesign,
83
86
  'tds-table--divider': this.verticalDividers,
84
87
  'tds-table__row--clickable': this.clickable,
85
- }, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (index.h("td", { key: '845e64408b938254887c7ec840eae48fc4ed01e3', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '817ef05632a9b2704148a0c9ce190b360b9cec3b', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), index.h("slot", { key: '50cf1a5aeae24aaceeb813f432abe8e75ad53857' })));
88
+ }, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (index.h("td", { key: 'a65e6eed2e09e49c80c5f25312613c874a3d3b1a', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '37b7bb583a756031ee86c57015523fdb659d683d', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), index.h("slot", { key: '35cdd94e92fc239d756b4ba240f10cd1e1914512' })));
86
89
  }
87
90
  get host() { return index.getElement(this); }
88
91
  };
@@ -47,16 +47,20 @@ const TdsTableBody = class {
47
47
  this.bodyCheckBoxClicked();
48
48
  }
49
49
  connectedCallback() {
50
+ var _a;
50
51
  this.tableEl = this.host.closest('tds-table');
51
- this.tableId = this.tableEl.tableId;
52
+ this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
52
53
  }
53
54
  componentWillLoad() {
54
55
  relevantTableProps.forEach((tablePropName) => {
55
- this[tablePropName] = this.tableEl[tablePropName];
56
+ var _a;
57
+ this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
56
58
  });
57
59
  }
58
60
  componentWillRender() {
59
- const headerColumnsNo = this.host.parentElement.querySelector('tds-table-header').children.length;
61
+ var _a, _b;
62
+ const headrColumn = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header');
63
+ const headerColumnsNo = (_b = headrColumn === null || headrColumn === void 0 ? void 0 : headrColumn.children.length) !== null && _b !== void 0 ? _b : 0;
60
64
  // multiselect and expended features requires one extra column for controls...
61
65
  if (this.multiselect || this.expandableRows) {
62
66
  this.columnsNumber = headerColumnsNo + 1;
@@ -66,12 +70,12 @@ const TdsTableBody = class {
66
70
  }
67
71
  }
68
72
  render() {
69
- return (index.h(index.Host, { key: 'f9472ae9b1dcad43aab101811dfe858dea4851e9', "data-selected-rows": this.multiselectArrayJSON, class: {
73
+ return (index.h(index.Host, { key: '80e470d85ca46b398d9254bbcf84865b65656c7c', "data-selected-rows": this.multiselectArrayJSON, class: {
70
74
  'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
71
75
  'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
72
76
  'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
73
77
  'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
74
- } }, index.h("slot", { key: '61a0ec649d2f7f51ca386c46335a6ae018c993d0' })));
78
+ } }, index.h("slot", { key: 'ef1c5c7a13129ff08d48d568088c05e2416b8284' })));
75
79
  }
76
80
  get host() { return index.getElement(this); }
77
81
  };
@@ -45,7 +45,7 @@ const TdsTableFooter = class {
45
45
  this.nextPage = () => {
46
46
  /** If pages and greater or equal to the number of pages, increase pagination value.
47
47
  * This is to not get above the number of pages in pagination value. */
48
- if (this.paginationValue <= this.pages) {
48
+ if (this.pages && this.paginationValue <= this.pages) {
49
49
  this.paginationValue++;
50
50
  }
51
51
  this.emitTdsPagination();
@@ -65,23 +65,14 @@ const TdsTableFooter = class {
65
65
  this.paginationValue = 1;
66
66
  this.rowsperpage = true;
67
67
  this.rowsPerPageValues = [10, 25, 50];
68
- this.pages = null;
68
+ this.pages = 0;
69
69
  this.cols = null;
70
70
  this.columnsNumber = 0;
71
71
  this.compactDesign = false;
72
72
  this.lastCorrectValue = undefined;
73
73
  this.tableId = '';
74
74
  this.horizontalScrollWidth = null;
75
- this.rowsPerPageValue = 10;
76
- }
77
- handleRowsPerPageValuesChange(newValues) {
78
- if (newValues && newValues.length > 0) {
79
- const [firstValue] = newValues;
80
- this.rowsPerPageValue = firstValue;
81
- }
82
- else {
83
- this.rowsPerPageValue = 10;
84
- }
75
+ this.rowsPerPageValue = this.rowsPerPageValues[0];
85
76
  }
86
77
  internalTdsPropChangeListener(event) {
87
78
  if (this.tableId === event.detail.tableId) {
@@ -96,20 +87,19 @@ const TdsTableFooter = class {
96
87
  }
97
88
  }
98
89
  connectedCallback() {
90
+ var _a;
99
91
  this.tableEl = this.host.closest('tds-table');
100
- this.tableId = this.tableEl.tableId;
92
+ this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
101
93
  }
102
94
  componentWillLoad() {
95
+ var _a, _b, _c;
103
96
  relevantTableProps.forEach((tablePropName) => {
104
- this[tablePropName] = this.tableEl[tablePropName];
97
+ var _a;
98
+ this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
105
99
  });
106
- if (this.rowsPerPageValues && this.rowsPerPageValues.length > 0) {
107
- const [firstValue] = this.rowsPerPageValues;
108
- this.rowsPerPageValue = firstValue;
109
- }
110
100
  this.storeLastCorrectValue(this.paginationValue);
111
101
  /** Get the number of columns. */
112
- const numberOfColumns = this.host.parentElement.querySelector('tds-table-header').childElementCount;
102
+ const numberOfColumns = (_c = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header')) === null || _b === void 0 ? void 0 : _b.childElementCount) !== null && _c !== void 0 ? _c : 0;
113
103
  if (this.cols) {
114
104
  this.columnsNumber = this.cols;
115
105
  }
@@ -150,17 +140,18 @@ const TdsTableFooter = class {
150
140
  }
151
141
  render() {
152
142
  var _a;
153
- return (index.h(index.Host, { key: '2c46b5c5014166113f685788af020bcba1b2869f', class: {
143
+ return (index.h(index.Host, { key: 'ccd4af0d18ff3abac93113618be574eaf4dfeccf', class: {
154
144
  'tds-table--compact': this.compactDesign,
155
145
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
156
- }, style: this.getStyles() }, index.h("tr", { key: '66dea3a67c4c724eee59b7886485c29eaeb1c995', class: "tds-table__footer-row" }, index.h("td", { key: 'b8fbaeb53719f062ddcd87960a039f99dd315111', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (index.h("div", { key: '796c83eefdf5a4fb2b6bc387d922754bdd80612f', class: "tds-table__pagination" }, index.h("div", { key: '6b05406d46d8747e58ee6983d327875aef331b8d', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("div", { key: 'daba514a486f6fb784aecd298a00640cd2cb7c2c', class: "rows-per-page" }, index.h("p", { key: '5cfd2155ae41419c5146e11b3babf08a15c3a817' }, "Rows per page"), index.h("tds-dropdown", { key: 'a2539bf691b65e4814f50451dcfb6fd410f1d54d', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => (index.h("tds-dropdown-option", { value: `${value}` }, value))))))), index.h("div", { key: '2c658adfcf0cfcb153ac2d6d120e74ac9582cece', class: "tds-table__page-selector" }, index.h("input", { key: '3c2409d3968ecd59f1e798de6c11d6529f062fd7', ref: (element) => {
157
- this.inputElement = element;
158
- }, class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), index.h("p", { key: '604237229c5b80a5804cd0788f6bf6743056ae76', class: "tds-table__footer-text" }, "of ", index.h("span", { key: 'd3e2c9268983ee9f5f938204a327e0b4830ea67d' }, this.pages), " pages"), index.h("button", { key: '2ab558f2dba5fecbea05951d093ca77228dfcbc3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, index.h("tds-icon", { key: '2c1b81648966a02eb80355a7f5938e77cea202db', name: "skip_backwards", size: "20px" })), index.h("button", { key: '0760561d3cb59835da69b0b30fb9a7701b5bca34', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, index.h("tds-icon", { key: '87dd5c3ef9cf67bf704fb23ee64a4c34a5488beb', name: "chevron_left", size: "20px" })), index.h("button", { key: '2167b1d9e645cfab30a5584474dbb1c48ca612bb', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, index.h("tds-icon", { key: '7adf9f40a448b5ef1db7d31ef5518b556e790f61', name: "chevron_right", size: "20px" })), index.h("button", { key: 'c7dc62e498e8f1efdd6543f33fb1e42217e5544c', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, index.h("tds-icon", { key: '272d0496e3da2b45f1ff658094d68237d7af4504', name: "skip_forward", size: "20px" })))))))));
146
+ }, style: this.getStyles() }, index.h("tr", { key: '83352ad6041939ce7c7faecf0a3357254bf70d20', class: "tds-table__footer-row" }, index.h("td", { key: '1c3448a74dedf1523c37598a9cdec1c119d32e29', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (index.h("div", { key: '49e152077961293d0d61a7ec2f7e6dfe4441812e', class: "tds-table__pagination" }, index.h("div", { key: '9d1bb01cbb816deaa6cf1f93c9c851f137dca9cf', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("div", { key: '5f8609d37e29b4303bd21146113bfc7133a29df8', class: "rows-per-page" }, index.h("p", { key: '90d62b23f416cfb6544b50a21b83dc0e6de030be' }, "Rows per page"), index.h("tds-dropdown", { key: '653df3963055fddacad426f82d204f91a98749f4', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => {
147
+ return (index.h("tds-dropdown-option", { value: `${value}` }, value));
148
+ }))))), index.h("div", { key: '0990d81388b9f835edeb24c8cb17a6fb4d11caf9', class: "tds-table__page-selector" }, index.h("input", { key: 'b9f888009f0f0bfc38b5476c328bb92ae4c0962f', ref: (element) => {
149
+ if (element) {
150
+ this.inputElement = element;
151
+ }
152
+ }, class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), index.h("p", { key: '86f6a581d1f5fe50ea2106821ff4afa6dd479387', class: "tds-table__footer-text" }, "of ", index.h("span", { key: '91872a9e6eb05e4e1f540d2a6d203cc2e3fd7a27' }, this.pages), " pages"), index.h("button", { key: '03a354dde544ac8f6e622f6543b69278896963d3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, index.h("tds-icon", { key: '6d80869e6cf2eba108b141113dc3ba3fe31e0a6a', name: "skip_backwards", size: "20px" })), index.h("button", { key: '0a95763fc3da9a93ca109dcf668ce8c5c5bd0e89', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, index.h("tds-icon", { key: '43e2b68e24844eb964b63a3fb291921edbcd079a', name: "chevron_left", size: "20px" })), index.h("button", { key: 'c61b81dc60bd58383055c5d98b311bc74b593518', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, index.h("tds-icon", { key: 'cdffb08f3cf5a72c98c6a526477add3feb4c5837', name: "chevron_right", size: "20px" })), index.h("button", { key: 'f6dc3bc7fc879bd205abce12dd235dbeaa767c5f', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, index.h("tds-icon", { key: '2c302a54f07077eb3dd3b9665aee6276caceab62', name: "skip_forward", size: "20px" })))))))));
159
153
  }
160
154
  get host() { return index.getElement(this); }
161
- static get watchers() { return {
162
- "rowsPerPageValues": ["handleRowsPerPageValuesChange"]
163
- }; }
164
155
  };
165
156
  TdsTableFooter.style = TdsTableFooterStyle0;
166
157
 
@@ -72,7 +72,7 @@ const TdsTableHeaderInputWrapper = class {
72
72
  }
73
73
  }
74
74
  render() {
75
- return (index.h(index.Host, { key: '62070c88b54c313b2db10890023db32f0eaf66b5', class: {
75
+ return (index.h(index.Host, { key: '5d46a27bdb22aec58736f8f0dce6855d6ef48f23', class: {
76
76
  'focused-input-wrapper': this.inputFocused,
77
77
  'show-icon': this.showIcon,
78
78
  'tds-table__compact': this.compactDesign,
@@ -54,46 +54,52 @@ const TdsTableHeaderRow = class {
54
54
  }
55
55
  }
56
56
  bodyExpandClicked() {
57
- const numberOfExtendRowsActive = this.host.parentElement
58
- .querySelector('tds-table-body')
59
- .getElementsByClassName('tds-table__row-extend--active').length;
60
- const numberOfExtendRows = this.host.parentElement
61
- .querySelector('tds-table-body')
62
- .getElementsByTagName('tds-table-body-row-expendable').length;
63
- if (numberOfExtendRows === numberOfExtendRowsActive) {
64
- this.mainExpendSelected = true;
65
- }
66
- else {
67
- this.mainExpendSelected = false;
57
+ var _a;
58
+ const parentBody = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-body');
59
+ if (parentBody) {
60
+ const numberOfExtendRowsActive = parentBody.getElementsByClassName('tds-table__row-extend--active').length;
61
+ const numberOfExtendRows = parentBody.getElementsByTagName('tds-table-body-row-expendable').length;
62
+ if (numberOfExtendRows === numberOfExtendRowsActive) {
63
+ this.mainExpendSelected = true;
64
+ }
65
+ else {
66
+ this.mainExpendSelected = false;
67
+ }
68
68
  }
69
69
  }
70
70
  connectedCallback() {
71
+ var _a;
71
72
  this.tableEl = this.host.closest('tds-table');
72
- this.tableId = this.tableEl.tableId;
73
+ this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
73
74
  }
74
75
  componentWillLoad() {
75
76
  relevantTableProps.forEach((tablePropName) => {
76
- this[tablePropName] = this.tableEl[tablePropName];
77
+ var _a;
78
+ this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
77
79
  });
78
80
  }
79
81
  componentWillRender() {
80
- this.enableToolbarDesign =
81
- this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
82
+ const closestTable = this.host.closest('tds-table');
83
+ if (closestTable) {
84
+ this.enableToolbarDesign =
85
+ (closestTable === null || closestTable === void 0 ? void 0 : closestTable.getElementsByTagName('tds-table-toolbar').length) >= 1;
86
+ }
82
87
  }
83
88
  async handleCheckboxChange(event) {
89
+ var _a;
84
90
  this.allSelected = event.detail.checked;
85
91
  this.tdsSelectAll.emit({
86
92
  tableId: this.tableId,
87
93
  checked: event.detail.checked,
88
- selectedRows: await this.tableEl.getSelectedRows(),
94
+ selectedRows: await ((_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.getSelectedRows()),
89
95
  });
90
96
  }
91
97
  render() {
92
- return (index.h(index.Host, { key: '6c1cc431846a627cab836e62a551f9f5d6558a9d', class: {
98
+ return (index.h(index.Host, { key: '0870860808274b91304987249df6c43d3fd90daa', class: {
93
99
  'tds-table--compact': this.compactDesign,
94
100
  'tds-table--divider': this.verticalDividers,
95
101
  'tds-table--toolbar-available': this.enableToolbarDesign,
96
- } }, index.h("tr", { key: 'fe66a0019ffef72437ef0312e07d8e23b0c8f728' }, this.multiselect && (index.h("th", { key: 'a132d706ef3650e6909a2b1bd90ed51b53a8fe02', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, index.h("div", { key: 'a4a62796419d0f77a9a9b035a2493ec7cc184e9f', class: "tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '2b9e308d8098b8e2825936f6ff2ab0e1ec0e8897', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (index.h("th", { key: '916a17bb35705db77de44bee119c579dd55c2d8f', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), index.h("slot", { key: '79d44597fcb6fa6d2e94197c57a1c9dded7e9f3d' }))));
102
+ } }, index.h("tr", { key: '29fd58da4486a422897cf98468d284c36fcace41' }, this.multiselect && (index.h("th", { key: '2234f9207945d4aeeeb001def4b2e3d298f28a01', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, index.h("div", { key: 'a9ef50d2d8e0d81b7608e084dae9e37c52e49664', class: "tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '24579bfc15603dd29d73cc3a56cb2633a5aaf0f6', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (index.h("th", { key: '5f30578196a9bf2ca3322f249df7318ddd80146f', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), index.h("slot", { key: '57fb6cecc52634b3f8e247c4eec14e26138d6117' }))));
97
103
  }
98
104
  get host() { return index.getElement(this); }
99
105
  };
@@ -40,15 +40,17 @@ const TdsTableToolbar = class {
40
40
  }
41
41
  }
42
42
  connectedCallback() {
43
+ var _a;
43
44
  this.tableEl = this.host.closest('tds-table');
44
- this.tableId = this.tableEl.tableId;
45
+ this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
45
46
  if (!this.tdsSearchAriaLabel) {
46
47
  console.warn('tds-table-toolbar: tdsSearchAriaLabel is highly recommended for accessibility');
47
48
  }
48
49
  }
49
50
  componentWillLoad() {
50
51
  relevantTableProps.forEach((tablePropName) => {
51
- this[tablePropName] = this.tableEl[tablePropName];
52
+ var _a;
53
+ this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
52
54
  });
53
55
  }
54
56
  handleSearch(event) {
@@ -74,10 +76,10 @@ const TdsTableToolbar = class {
74
76
  return styles;
75
77
  }
76
78
  render() {
77
- return (index.h(index.Host, { key: 'e7ce21fcad3bfbc9f93088f777855baa9c6e3869', class: {
79
+ return (index.h(index.Host, { key: 'e76b6fc0b933bd081686ab3e060cb35c07470f01', class: {
78
80
  'tds-table--compact': this.compactDesign,
79
81
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
80
- }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: '7310ec2851d440ba6529eb2d48bb20bcb508429f', class: "tds-table__upper-bar-flex" }, index.h("div", { key: '5b901252d433968edb04de20a25ea9c09bb39b4b', class: "tds-table__actionbar-left" }, this.tableTitle && (index.h("caption", { key: '661f8de9fe38cd72b098251b027c7e6f554033e5', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), index.h("slot", { key: '8d00d01e2ac92c75f95dc6ae89e7b8769cde6dc1', name: "start" })), index.h("div", { key: 'fd28cb512ed5ad997cdb1f0b1dff8f7489f95db5', class: "tds-table__actionbar" }, this.filter && (index.h("div", { key: 'fb2649d623a21eeb1a8c3ed5c512d02d7bbb2efc', class: "tds-table__searchbar" }, index.h("input", { key: '9cd1284bec12081a2e99996eb6bd160ac926b751', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), index.h("span", { key: '015060f9c59d06c430fabb0acabb8b476a477616', class: "tds-table__searchbar-icon" }, index.h("tds-icon", { key: '5f990c7f452a46bb0471dd658f24afd848d029e9', name: "search", size: "20px" })))), index.h("slot", { key: 'a91b2aee680ef316d2fdd46d46bfe9ec3eb3e314', name: "end" })))));
82
+ }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: 'f6cb90f651cac62f4161bc497426e2f364be93ee', class: "tds-table__upper-bar-flex" }, index.h("div", { key: 'b75b0b23fca7992adcea9848e8e6b950d667cd46', class: "tds-table__actionbar-left" }, this.tableTitle && (index.h("caption", { key: 'ed679dba3b67ea6ecb43d9fb4318c264d22ab064', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), index.h("slot", { key: '2937e33ed397413c608d58955083f5ecd9cfe136', name: "start" })), index.h("div", { key: 'c002e6d7e31ff3c21dec3a7a889b36ef930b8826', class: "tds-table__actionbar" }, this.filter && (index.h("div", { key: 'b6e45d1361ddb4c01f2cbce4a5af243e3aaed490', class: "tds-table__searchbar" }, index.h("input", { key: 'bb57c1a1a593ab22915903eabfb3216bec7a74e8', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), index.h("span", { key: '08bed8155351cba48a5934d797160973df0fc6de', class: "tds-table__searchbar-icon" }, index.h("tds-icon", { key: '9b5fda16df341aed692c05dc26ba319c563165d5', name: "search", size: "20px" })))), index.h("slot", { key: '32cbed6b093812e0e811a853b78e915ef091f098', name: "end" })))));
81
83
  }
82
84
  get host() { return index.getElement(this); }
83
85
  };
@@ -34,20 +34,19 @@ const TdsTable = class {
34
34
  }
35
35
  /** Returns all selected rows data. */
36
36
  async getSelectedRows() {
37
+ var _a;
37
38
  let selectedRowsData = [];
38
39
  const tableBody = this.host.querySelector('tds-table-body');
39
- const selectedRows = Array.from(tableBody.querySelectorAll('tds-table-body-row')).filter((element) => element.selected);
40
+ const selectedRows = Array.from((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row')) !== null && _a !== void 0 ? _a : []).filter((element) => element.selected);
40
41
  selectedRows.forEach((row) => {
41
42
  let selectedRow = [];
42
43
  const rowCells = Array.from(row.getElementsByTagName('tds-body-cell'));
43
44
  rowCells.forEach((cell) => {
44
45
  var _a;
45
46
  const cellObject = {
46
- cellKey: null,
47
- cellValue: null,
47
+ cellKey: cell.cellKey,
48
+ cellValue: ((_a = cell.cellValue) !== null && _a !== void 0 ? _a : cell.innerText),
48
49
  };
49
- cellObject.cellKey = cell.cellKey;
50
- cellObject.cellValue = (_a = cell.cellValue) !== null && _a !== void 0 ? _a : cell.innerText;
51
50
  selectedRow = [...selectedRow, cellObject];
52
51
  });
53
52
  selectedRowsData = [...selectedRowsData, selectedRow];
@@ -87,18 +86,21 @@ const TdsTable = class {
87
86
  }
88
87
  componentWillRender() {
89
88
  if (this.horizontalScrollWidth) {
90
- this.enableHorizontalScrollToolbarDesign =
91
- this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
92
- this.enableHorizontalScrollFooterDesign =
93
- this.host.closest('tds-table').getElementsByTagName('tds-table-footer').length >= 1;
89
+ const closestTable = this.host.closest('tds-table');
90
+ if (closestTable) {
91
+ this.enableHorizontalScrollToolbarDesign =
92
+ closestTable.getElementsByTagName('tds-table-toolbar').length >= 1;
93
+ this.enableHorizontalScrollFooterDesign =
94
+ closestTable.getElementsByTagName('tds-table-footer').length >= 1;
95
+ }
94
96
  }
95
97
  }
96
98
  render() {
97
- return (index.h(index.Host, { key: '7a9b7fb545f7c4cd4c0f118910ce8af6d407851e', class: {
99
+ return (index.h(index.Host, { key: '7a09b4ad8b4b79d0c6488ae2fc56b756857abe67', class: {
98
100
  'tds-table--responsive': this.responsive,
99
101
  'tds-mode-variant-primary': this.modeVariant === 'primary',
100
102
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
101
- } }, index.h("table", { key: '8a1c7e74c38a55e17d7cf322997f6690d6b29f3f', style: this.getStyles(), class: {
103
+ } }, index.h("table", { key: '949b04b7b26286b8641df078290eadb843899d76', style: this.getStyles(), class: {
102
104
  'tds-table': true,
103
105
  'tds-table--compact': this.compactDesign,
104
106
  'tds-table--divider': this.verticalDividers,
@@ -109,7 +111,7 @@ const TdsTable = class {
109
111
  'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
110
112
  'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
111
113
  'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
112
- } }, index.h("slot", { key: 'a47351a50dbd07b15f969ffaeb75f62045693968' }))));
114
+ } }, index.h("slot", { key: '319e8974bf20f3fba6c7ef286a494d4875bd2c44' }))));
113
115
  }
114
116
  get host() { return index.getElement(this); }
115
117
  static get watchers() { return {
@@ -64,7 +64,8 @@ const TdsTextField = class {
64
64
  }
65
65
  /** Set the input as focus when clicking the whole Text Field with suffix/prefix */
66
66
  handleFocus(event) {
67
- this.textInput.focus();
67
+ var _a;
68
+ (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
68
69
  this.focusInput = true;
69
70
  this.tdsFocus.emit(event);
70
71
  }
@@ -83,7 +84,7 @@ const TdsTextField = class {
83
84
  var _a;
84
85
  const usesPrefixSlot = hasSlot.hasSlot('prefix', this.host);
85
86
  const usesSuffixSlot = hasSlot.hasSlot('suffix', this.host);
86
- return (index.h("div", { key: '3a072497874b410339fc3368f49b9048fdcc6641', class: {
87
+ return (index.h("div", { key: 'bcc403b4abba73fb457719e3205070f56d91c2cd', class: {
87
88
  'form-text-field': true,
88
89
  'form-text-field-nomin': this.noMinWidth,
89
90
  'text-field-focus': this.focusInput && !this.disabled,
@@ -101,12 +102,12 @@ const TdsTextField = class {
101
102
  'form-text-field-sm': this.size === 'sm',
102
103
  'form-text-field-error': this.state === 'error',
103
104
  'form-text-field-success': this.state === 'success',
104
- } }, this.labelPosition === 'outside' && (index.h("div", { key: '190b617811d0993b85b3df6951a41678bc51879e', class: "text-field-label-outside" }, index.h("label", { key: '6e5099cc43259b790d83d3f127e85463e58c9ac2', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), index.h("div", { key: 'd5064e04015238d38a70b09c9eba4cbbb1da19cb', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (index.h("div", { key: '69af0c24b21e3edda262749538cc9775c501e115', class: {
105
+ } }, this.labelPosition === 'outside' && (index.h("div", { key: '0133120eb1b74bb2244dd122afe1b2df7d54383b', class: "text-field-label-outside" }, index.h("label", { key: 'd1805d76b9ba9cd36bddbc546dd2081e4c891905', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), index.h("div", { key: '227c0581da20afcb1a55c2c3fc7f1458a0daf06f', onClick: () => { var _a; return (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus(); }, class: "text-field-container" }, usesPrefixSlot && (index.h("div", { key: '913b945ec6d9898c22e3577ada5ce9782af3ec0a', class: {
105
106
  'text-field-slot-wrap-prefix': true,
106
107
  'text-field-error': this.state === 'error',
107
108
  'text-field-success': this.state === 'success',
108
109
  'text-field-default': this.state === 'default',
109
- } }, index.h("slot", { key: 'f397647f1458b1d132080cb15b92be60e2942459', name: "prefix" }))), index.h("div", { key: '33674576cce732cc66e7ca830669b7535aea7f00', class: "text-field-input-container" }, index.h("input", { key: 'a27eca3e8862b099475fd46c2182f86d7d110533', ref: (inputEl) => {
110
+ } }, index.h("slot", { key: 'ebaa7a7bb48ef059e013fe48f9aa4ca2677d9021', name: "prefix" }))), index.h("div", { key: 'f7cca070bf5a514b4bc75fbf14438609bdc1fd2f', class: "text-field-input-container" }, index.h("input", { key: '23ce48510d1b9516d7fffb7fd1b30b7a18bb5a4f', ref: (inputEl) => {
110
111
  this.textInput = inputEl;
111
112
  }, class: {
112
113
  'text-field-input': true,
@@ -121,13 +122,13 @@ const TdsTextField = class {
121
122
  if (!this.readOnly) {
122
123
  this.handleBlur(event);
123
124
  }
124
- }, "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: '7671a287273c976a1ad73032020838d6c4cedab0', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (index.h("div", { key: '19a93786e8647aa1d2e5b9a9b80c71c250330d8d', class: {
125
+ }, "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: 'ee49db21967cb8eec227464fe6fbcb7e0e0c2531', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (index.h("div", { key: '7c59f424bb444e58ec36650dadf56457ea58e12a', class: {
125
126
  'text-field-slot-wrap-suffix': true,
126
127
  'text-field-error': this.state === 'error',
127
128
  'text-field-success': this.state === 'success',
128
129
  'text-field-default': this.state === 'default',
129
130
  'tds-u-display-none': this.readOnly,
130
- } }, index.h("slot", { key: 'dd76e5bb941bc791caa395206be040319e00a708', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (index.h("span", { key: '2ba57774f40412b9a337ef7bf47ce65bcf44a704', class: "text-field-icon__readonly" }, index.h("tds-tooltip", { key: 'bfb0f704470e77f9ce6e11fe3d01af3dd8569015', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '28ded9080cb2abfe6a06b284af3807584f4dda02', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), index.h("div", { key: '636205c9e69b3a2602ea0b8817a585e5cd4e16b2', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (index.h("div", { key: '4ece49df31864f53d0fadc3709cd06d34da6830a', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (index.h("div", { key: 'ba1e7f916ebbfa6775b46febed47e4bf55af9fd3', class: "text-field-helper-error-state" }, !this.readOnly && index.h("tds-icon", { key: '45eb885352b32dd3483a1c01f4dbaa49fcfda8ba', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (index.h("span", { key: '9934f078456a0af683b0d1f8a997c5484e58868c', class: {
131
+ } }, index.h("slot", { key: 'b7e43d945a4b6c5769422635bc43ced38c535f14', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (index.h("span", { key: 'f9981c3d95da264abc0a44d399b6d6686038f82d', class: "text-field-icon__readonly" }, index.h("tds-tooltip", { key: 'a72d52738bd5ad69025acae3b2adbda71f9131c4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: 'cd407a27027ee56bb8cfa24a83871b63c637867a', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), index.h("div", { key: '61dc2389d69774e47535a3c6a464353bf1db78b3', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (index.h("div", { key: '1ddabddbcd537b04cd9fec9314ff5ea6ddfcd591', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (index.h("div", { key: 'ce671b297fa5f058162270bc931870df89c22daf', class: "text-field-helper-error-state" }, !this.readOnly && index.h("tds-icon", { key: '875cc35361dec4bb2b9ed33ef454e3ae670b0f62', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (index.h("span", { key: 'ea47b420f3d3ec1c08bb47c5b615e6727cd7a3ed', class: {
131
132
  'text-field-textcounter-divider': true,
132
133
  'text-field-textcounter-disabled': this.disabled,
133
134
  } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
@@ -52,7 +52,8 @@ const TdsTextarea = class {
52
52
  }
53
53
  /* Set the input as focus when clicking the whole textarea with suffix/prefix */
54
54
  handleFocus(event) {
55
- this.textEl.focus();
55
+ var _a;
56
+ (_a = this.textEl) === null || _a === void 0 ? void 0 : _a.focus();
56
57
  this.focusInput = true;
57
58
  this.tdsFocus.emit(event);
58
59
  }
@@ -74,7 +75,7 @@ const TdsTextarea = class {
74
75
  }
75
76
  render() {
76
77
  var _a;
77
- return (index.h("div", { key: '0e1e8c392e63be0a7e1724f3351e4859eb6501a7', class: {
78
+ return (index.h("div", { key: 'ab345d2f34e48367b2040556b9b3a6564add939d', class: {
78
79
  'textarea-container': true,
79
80
  'textarea-label-inside': this.labelPosition === 'inside',
80
81
  'textarea-focus': this.focusInput,
@@ -84,7 +85,7 @@ const TdsTextarea = class {
84
85
  'textarea-data': this.value !== '',
85
86
  [`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
86
87
  'no-min-width': this.noMinWidth,
87
- } }, this.labelPosition !== 'no-label' && (index.h("label", { key: '674206c9897b2e6f8ed4742e4bf4b9db5740a302', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), index.h("div", { key: '808b87787dbdb3386bdf528051eb7ab991259e30', class: "textarea-wrapper" }, index.h("textarea", { key: 'bb9871a2b0f4d88ac150fb8b550c2d5001b9cc2d', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
88
+ } }, this.labelPosition !== 'no-label' && (index.h("label", { key: 'c8290eb384aff2b8a8d7c2495b69167066e76415', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), index.h("div", { key: '43cd7476de0402a1aab5eaf2d930678422aaf40e', class: "textarea-wrapper" }, index.h("textarea", { key: '265bd91d6cb4ca7009d0bc60f3db15c0e6bb47bc', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
88
89
  this.textEl = inputEl;
89
90
  }, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
90
91
  if (!this.readOnly) {
@@ -94,7 +95,7 @@ const TdsTextarea = class {
94
95
  if (!this.readOnly) {
95
96
  this.handleBlur(event);
96
97
  }
97
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: 'f9fc9c3136ec57b6f0becd8602c6353f0c8848dd', class: "textarea-resizer-icon" }, index.h("svg", { key: '8b7f6fe75e111c7d4de27a1a6d30c430cd136753', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'f5857808dfc21333fc8d95c38c0a8e69823a6229', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (index.h("span", { key: 'df897e9b418dc4b7a2fefc152f0f850278695211', class: "textarea-icon__readonly" }, index.h("tds-tooltip", { key: 'd350ce47947ccd11fea39f06b5ae6e7cdba84ca9', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '327fd5153c188dcc171d6cbed2727716148157b1', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), index.h("span", { key: '5625f2580ce1724b5462e00c8024fb7b9c3f3107', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (index.h("tds-icon", { key: '2873a82b45675d1e09a07de357386b0ea83ed054', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (index.h("div", { key: '0a54c37e440f4740e373943bfd48001e8f8f39e6', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, index.h("span", { key: '53f25f455440e8383bd1dabba20cce266fe78074', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
98
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: '682632eb45587ee86e48fa7dd42946d97db7da13', class: "textarea-resizer-icon" }, index.h("svg", { key: '7631ef268be5ec867452ba449f769e45c099d574', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'ba27459f776dc0d6a6d0570420e4610ee08d6b9e', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (index.h("span", { key: '34f0c79ee333e2e0b0e27dc63d4be1e93b7fc6e4', class: "textarea-icon__readonly" }, index.h("tds-tooltip", { key: '0aa6ad6c681f5abe6ba19a28f80125d002543fc4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '780fe72cff253212d79820c29a701258c55da508', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), index.h("span", { key: '657766f8f89e07aaac65daece6fc1162b925986a', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (index.h("tds-icon", { key: 'ce5e472fb172d53cb45e9dab4c317fb38dbd05eb', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (index.h("div", { key: '919a5471cfad225cefe6c30e88f782cdfc913b2f', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, index.h("span", { key: '338ef9cdac06151d4fd092208764e3812c2d4f01', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
98
99
  }
99
100
  get host() { return index.getElement(this); }
100
101
  };
@@ -46,12 +46,13 @@ const TdsToggle = class {
46
46
  this.labelSlot = this.host.querySelector("[slot='label']");
47
47
  }
48
48
  render() {
49
- return (index.h("div", { key: 'c3317c42904e33fd2936aa01ce064f87d33786e3', class: "tds-toggle" }, this.headline && (index.h("div", { key: '9c2280058b2fbc09e0663dc5e92d4d3dd413cc83', class: {
49
+ return (index.h("div", { key: 'ee3157ccfc7cc20e4cc0ea94d18ef18206aad346', class: "tds-toggle" }, this.headline && (index.h("div", { key: 'bb0b6242312d2b93aedca8b30060dced738ad418', class: {
50
50
  'toggle-headline': true,
51
51
  'disabled': this.disabled,
52
- } }, this.headline)), index.h("input", { key: 'b5e5cfee5c3115c1039e816bbd6f7751cf6a5f6c', ref: (inputEl) => {
53
- this.inputElement = inputEl;
54
- }, "aria-label": this.tdsAriaLabel, "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" }), this.labelSlot && (index.h("label", { key: '9eedb6f2c2a0494e2b59f392764c27b143dcecee', class: { disabled: this.disabled }, htmlFor: this.toggleId }, index.h("slot", { key: '11346fe1d7f4ea0da665b153ae25af9e084a0602', name: "label" })))));
52
+ } }, this.headline)), index.h("input", { key: 'ff36441c8064df09ee5f09239472250211182725', ref: (inputEl) => {
53
+ if (inputEl)
54
+ this.inputElement = inputEl;
55
+ }, "aria-label": this.tdsAriaLabel, "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" }), this.labelSlot && (index.h("label", { key: '67a2179e0c1252fb5d4dc9d9e5ade990bec58cbc', class: { disabled: this.disabled }, htmlFor: this.toggleId }, index.h("slot", { key: 'ec8080b6080cffecbc83fb9080c55031a8d0a1e7', name: "label" })))));
55
56
  }
56
57
  get host() { return index.getElement(this); }
57
58
  };
@@ -35,7 +35,7 @@ const TdsTooltip = class {
35
35
  },
36
36
  },
37
37
  ];
38
- this.inheritedAttributes = [];
38
+ this.inheritedAttributes = {};
39
39
  this.text = '';
40
40
  this.selector = undefined;
41
41
  this.referenceEl = undefined;
@@ -64,20 +64,16 @@ const TdsTooltip = class {
64
64
  }
65
65
  render() {
66
66
  var _a;
67
- return (index.h(index.Host, { key: '69ced518e10ea5d65da8266257d7f7bba5db3f63', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, index.h("tds-popover-core", Object.assign({ key: '9511b6fb5dcd5a270de5b6f9b50b40271b4f5030' }, this.inheritedAttributes, { class: {
67
+ return (index.h(index.Host, { key: '2b72a1988aa57732d9295a33a43e8baf117e7e17', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, index.h("tds-popover-core", Object.assign({ key: '449a74bcead02452d6bd7f443cfbfd8ef29071a1' }, this.inheritedAttributes, { class: {
68
68
  'tds-tooltip': true,
69
69
  [`tds-tooltip-${this.border}`]: true,
70
70
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
71
- 'tds-tooltip-show': this.show,
72
- }, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
73
- // @ts-ignore
74
- onInternalTdsShow: () => {
71
+ 'tds-tooltip-show': !!this.show,
72
+ }, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false, onInternalTdsShow: () => {
75
73
  this.show = true;
76
- },
77
- // @ts-ignore
78
- onInternalTdsClose: () => {
74
+ }, onInternalTdsClose: () => {
79
75
  this.show = false;
80
- }, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '8fb6467b2d1fa2ce6a70a171966ff245f8205b55' }))));
76
+ }, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: 'c232d55352f3e827c16630c69df138ba687486b4' }))));
81
77
  }
82
78
  get host() { return index.getElement(this); }
83
79
  };