@scania/tegel 1.14.1 → 1.15.0-component-versioning-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 (306) hide show
  1. package/dist/cjs/index-ca8040ad.js +52 -44
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tagName-f24f57ce.js +119 -0
  4. package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -3
  5. package/dist/cjs/tds-banner.cjs.entry.js +4 -2
  6. package/dist/cjs/tds-card.cjs.entry.js +6 -4
  7. package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
  8. package/dist/cjs/tds-datetime.cjs.entry.js +5 -2
  9. package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -3
  10. package/dist/cjs/tds-dropdown.cjs.entry.js +7 -5
  11. package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
  12. package/dist/cjs/tds-footer-group.cjs.entry.js +5 -3
  13. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -1
  14. package/dist/cjs/tds-header-cell.cjs.entry.js +6 -4
  15. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +2 -2
  16. package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
  17. package/dist/cjs/tds-header-hamburger.cjs.entry.js +3 -1
  18. package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +5 -17
  19. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +3 -1
  20. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +3 -3
  21. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
  22. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
  23. package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -2
  24. package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
  25. package/dist/cjs/tds-message.cjs.entry.js +5 -2
  26. package/dist/cjs/tds-modal.cjs.entry.js +3 -1
  27. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
  28. package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
  29. package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -2
  30. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
  31. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -4
  32. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -3
  33. package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
  34. package/dist/cjs/{tds-side-menu-user-image_2.cjs.entry.js → tds-side-menu-user-label.cjs.entry.js} +0 -16
  35. package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -1
  36. package/dist/cjs/tds-slider.cjs.entry.js +10 -7
  37. package/dist/cjs/tds-step.cjs.entry.js +5 -3
  38. package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -2
  39. package/dist/cjs/tds-table-body-row.cjs.entry.js +4 -2
  40. package/dist/cjs/tds-table-footer.cjs.entry.js +4 -2
  41. package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -2
  42. package/dist/cjs/tds-table-header.cjs.entry.js +4 -2
  43. package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -2
  44. package/dist/cjs/tds-text-field.cjs.entry.js +7 -5
  45. package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
  46. package/dist/cjs/tds-toast.cjs.entry.js +5 -3
  47. package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
  48. package/dist/cjs/tegel.cjs.js +1 -1
  49. package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
  50. package/dist/collection/components/banner/banner.js +4 -2
  51. package/dist/collection/components/card/card.js +6 -4
  52. package/dist/collection/components/datetime/datetime.js +6 -3
  53. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -3
  54. package/dist/collection/components/dropdown/dropdown.js +7 -5
  55. package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
  56. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -1
  57. package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
  58. package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
  59. package/dist/collection/components/header/header-item/header-item.js +5 -3
  60. package/dist/collection/components/header/header-launcher/header-launcher.js +4 -2
  61. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
  62. package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
  63. package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
  64. package/dist/collection/components/message/message.js +5 -2
  65. package/dist/collection/components/modal/modal.js +3 -1
  66. package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
  67. package/dist/collection/components/popover-menu/popover-menu.js +4 -2
  68. package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
  69. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +6 -4
  70. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -3
  71. package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
  72. package/dist/collection/components/side-menu/side-menu.js +3 -3
  73. package/dist/collection/components/slider/slider.js +11 -8
  74. package/dist/collection/components/stepper/step/step.js +5 -3
  75. package/dist/collection/components/stepper/stepper.js +1 -1
  76. package/dist/collection/components/table/table/table.js +1 -1
  77. package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -2
  78. package/dist/collection/components/table/table-body-row/table-body-row.js +4 -2
  79. package/dist/collection/components/table/table-footer/table-footer.js +4 -2
  80. package/dist/collection/components/table/table-header/table-header.js +4 -2
  81. package/dist/collection/components/table/table-header-cell/table-header-cell.js +6 -4
  82. package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +4 -2
  83. package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -2
  84. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
  85. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
  86. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
  87. package/dist/collection/components/text-field/text-field.js +7 -5
  88. package/dist/collection/components/textarea/textarea.js +6 -3
  89. package/dist/collection/components/toast/toast.js +5 -3
  90. package/dist/collection/components/tooltip/tooltip.js +4 -2
  91. package/dist/collection/utils/tagName.js +33 -0
  92. package/dist/components/p-a74b6809.js +117 -0
  93. package/dist/components/tds-accordion-item.js +7 -10
  94. package/dist/components/tds-banner.js +5 -9
  95. package/dist/components/tds-card.js +7 -11
  96. package/dist/components/tds-checkbox.js +89 -1
  97. package/dist/components/tds-core-header-item.js +30 -1
  98. package/dist/components/tds-datetime.js +6 -9
  99. package/dist/components/tds-divider.js +33 -1
  100. package/dist/components/tds-dropdown-option.js +6 -16
  101. package/dist/components/tds-dropdown.js +8 -12
  102. package/dist/components/tds-folder-tabs.js +5 -9
  103. package/dist/components/tds-footer-group.js +6 -10
  104. package/dist/components/tds-header-brand-symbol.js +4 -14
  105. package/dist/components/tds-header-cell.js +7 -11
  106. package/dist/components/tds-header-dropdown-list-item.js +39 -1
  107. package/dist/components/tds-header-dropdown-list.js +99 -1
  108. package/dist/components/tds-header-dropdown.js +6 -34
  109. package/dist/components/tds-header-hamburger.js +4 -20
  110. package/dist/components/tds-header-item.js +70 -1
  111. package/dist/components/tds-header-launcher-button.js +39 -1
  112. package/dist/components/tds-header-launcher-list-item.js +5 -8
  113. package/dist/components/tds-header-launcher-list.js +5 -8
  114. package/dist/components/tds-header-launcher.js +5 -39
  115. package/dist/components/tds-icon.js +63 -1
  116. package/dist/components/tds-inline-tabs.js +5 -9
  117. package/dist/components/tds-message.js +6 -9
  118. package/dist/components/tds-modal.js +4 -8
  119. package/dist/components/tds-navigation-tabs.js +5 -9
  120. package/dist/components/tds-popover-canvas.js +66 -1
  121. package/dist/components/tds-popover-core.js +1998 -1
  122. package/dist/components/tds-popover-menu.js +5 -9
  123. package/dist/components/tds-side-menu-close-button.js +4 -8
  124. package/dist/components/tds-side-menu-collapse-button.js +7 -11
  125. package/dist/components/tds-side-menu-dropdown.js +6 -16
  126. package/dist/components/tds-side-menu-item.js +88 -1
  127. package/dist/components/tds-side-menu-user-image.js +35 -1
  128. package/dist/components/tds-side-menu-user-label.js +35 -1
  129. package/dist/components/tds-side-menu-user.js +5 -14
  130. package/dist/components/tds-slider.js +11 -14
  131. package/dist/components/tds-step.js +6 -10
  132. package/dist/components/tds-table-body-input-wrapper.js +5 -9
  133. package/dist/components/tds-table-body-row.js +5 -9
  134. package/dist/components/tds-table-footer.js +5 -9
  135. package/dist/components/tds-table-header-input-wrapper.js +5 -9
  136. package/dist/components/tds-table-header.js +5 -9
  137. package/dist/components/tds-table-toolbar.js +5 -9
  138. package/dist/components/tds-text-field.js +8 -12
  139. package/dist/components/tds-textarea.js +7 -10
  140. package/dist/components/tds-toast.js +6 -10
  141. package/dist/components/tds-tooltip.js +5 -9
  142. package/dist/esm/index-51d04e39.js +52 -44
  143. package/dist/esm/loader.js +1 -1
  144. package/dist/esm/tagName-0d04643f.js +117 -0
  145. package/dist/esm/tds-accordion-item.entry.js +7 -4
  146. package/dist/esm/tds-banner.entry.js +4 -2
  147. package/dist/esm/tds-card.entry.js +6 -4
  148. package/dist/esm/tds-core-header-item.entry.js +16 -0
  149. package/dist/esm/tds-datetime.entry.js +6 -3
  150. package/dist/esm/tds-dropdown-option.entry.js +5 -3
  151. package/dist/esm/tds-dropdown.entry.js +7 -5
  152. package/dist/esm/tds-folder-tabs.entry.js +4 -2
  153. package/dist/esm/tds-footer-group.entry.js +5 -3
  154. package/dist/esm/tds-header-brand-symbol.entry.js +3 -1
  155. package/dist/esm/tds-header-cell.entry.js +6 -4
  156. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  157. package/dist/esm/tds-header-dropdown.entry.js +5 -3
  158. package/dist/esm/tds-header-hamburger.entry.js +3 -1
  159. package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +6 -17
  160. package/dist/esm/tds-header-launcher-button.entry.js +3 -1
  161. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  162. package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
  163. package/dist/esm/tds-header-launcher-list.entry.js +5 -2
  164. package/dist/esm/tds-header-launcher.entry.js +4 -2
  165. package/dist/esm/tds-inline-tabs.entry.js +4 -2
  166. package/dist/esm/tds-message.entry.js +6 -3
  167. package/dist/esm/tds-modal.entry.js +3 -1
  168. package/dist/esm/tds-navigation-tabs.entry.js +4 -2
  169. package/dist/esm/tds-popover-canvas.entry.js +4 -2
  170. package/dist/esm/tds-popover-menu.entry.js +4 -2
  171. package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
  172. package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -4
  173. package/dist/esm/tds-side-menu-dropdown.entry.js +5 -3
  174. package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
  175. package/dist/esm/{tds-side-menu-user-image_2.entry.js → tds-side-menu-user-label.entry.js} +1 -16
  176. package/dist/esm/tds-side-menu-user.entry.js +5 -2
  177. package/dist/esm/tds-slider.entry.js +11 -8
  178. package/dist/esm/tds-step.entry.js +5 -3
  179. package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -2
  180. package/dist/esm/tds-table-body-row.entry.js +4 -2
  181. package/dist/esm/tds-table-footer.entry.js +4 -2
  182. package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -2
  183. package/dist/esm/tds-table-header.entry.js +4 -2
  184. package/dist/esm/tds-table-toolbar.entry.js +4 -2
  185. package/dist/esm/tds-text-field.entry.js +7 -5
  186. package/dist/esm/tds-textarea.entry.js +7 -4
  187. package/dist/esm/tds-toast.entry.js +5 -3
  188. package/dist/esm/tds-tooltip.entry.js +4 -2
  189. package/dist/esm/tegel.js +1 -1
  190. package/dist/tegel/p-07b525fa.entry.js +1 -0
  191. package/dist/tegel/p-0a2f8635.entry.js +1 -0
  192. package/dist/tegel/p-0efe32ef.entry.js +1 -0
  193. package/dist/tegel/p-101d5ad9.entry.js +1 -0
  194. package/dist/tegel/{p-6c26e66f.entry.js → p-24d62f73.entry.js} +1 -1
  195. package/dist/tegel/p-2d9011d4.entry.js +1 -0
  196. package/dist/tegel/p-30a2b7a9.entry.js +1 -0
  197. package/dist/tegel/p-3bb5f47b.entry.js +1 -0
  198. package/dist/tegel/p-3c937615.entry.js +1 -0
  199. package/dist/tegel/p-3f12d4a8.entry.js +1 -0
  200. package/dist/tegel/p-57d8aa8f.entry.js +1 -0
  201. package/dist/tegel/p-589289a1.entry.js +1 -0
  202. package/dist/tegel/p-58b552d6.entry.js +1 -0
  203. package/dist/tegel/p-5fed1ea6.entry.js +1 -0
  204. package/dist/tegel/p-61d1cf24.entry.js +1 -0
  205. package/dist/tegel/p-63991699.entry.js +1 -0
  206. package/dist/tegel/p-7546a139.entry.js +1 -0
  207. package/dist/tegel/p-7711d485.entry.js +1 -0
  208. package/dist/tegel/p-790367cd.entry.js +1 -0
  209. package/dist/tegel/p-8064b3ed.entry.js +1 -0
  210. package/dist/tegel/p-80d28081.entry.js +1 -0
  211. package/dist/tegel/p-82481096.entry.js +1 -0
  212. package/dist/tegel/p-859e3ebf.js +1 -0
  213. package/dist/tegel/p-8deb6ba6.entry.js +1 -0
  214. package/dist/tegel/p-8f30a9cd.entry.js +1 -0
  215. package/dist/tegel/p-904e90d6.entry.js +1 -0
  216. package/dist/tegel/p-980a153a.entry.js +1 -0
  217. package/dist/tegel/p-980fe7c8.entry.js +1 -0
  218. package/dist/tegel/p-9aa5875a.entry.js +1 -0
  219. package/dist/tegel/p-a74b6809.js +1 -0
  220. package/dist/tegel/p-afb182fc.entry.js +1 -0
  221. package/dist/tegel/p-b543f063.entry.js +1 -0
  222. package/dist/tegel/p-b71d6a39.entry.js +1 -0
  223. package/dist/tegel/p-b834b254.entry.js +1 -0
  224. package/dist/tegel/p-b8970b91.entry.js +1 -0
  225. package/dist/tegel/p-bf65f439.entry.js +1 -0
  226. package/dist/tegel/p-c002a601.entry.js +1 -0
  227. package/dist/tegel/p-c0381ba7.entry.js +1 -0
  228. package/dist/tegel/p-ccad7d42.entry.js +1 -0
  229. package/dist/tegel/p-cde009d8.entry.js +1 -0
  230. package/dist/tegel/p-df945483.entry.js +1 -0
  231. package/dist/tegel/p-e5a9ec95.entry.js +1 -0
  232. package/dist/tegel/p-e9d824f5.entry.js +1 -0
  233. package/dist/tegel/p-edbf6bf4.entry.js +1 -0
  234. package/dist/tegel/p-ef8e4959.entry.js +1 -0
  235. package/dist/tegel/{p-f841f094.entry.js → p-fc7a7f06.entry.js} +1 -1
  236. package/dist/tegel/tegel.esm.js +1 -1
  237. package/dist/types/Users/rhyme/projects/scania/tegel/packages/core/.stencil/src/utils/tagNames.d.ts +4 -0
  238. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
  239. package/dist/types/components/card/card.d.ts +1 -1
  240. package/dist/types/components/datetime/datetime.d.ts +1 -0
  241. package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
  242. package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
  243. package/dist/types/components/message/message.d.ts +1 -0
  244. package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
  245. package/dist/types/components/slider/slider.d.ts +1 -0
  246. package/dist/types/components/stepper/step/step.d.ts +1 -1
  247. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +1 -1
  248. package/dist/types/components/textarea/textarea.d.ts +1 -0
  249. package/dist/types/utils/tagName.d.ts +5 -0
  250. package/package.json +2 -9
  251. package/dist/components/p-0676aa23.js +0 -76
  252. package/dist/components/p-09d36119.js +0 -37
  253. package/dist/components/p-0c3cab16.js +0 -90
  254. package/dist/components/p-30de8ac4.js +0 -32
  255. package/dist/components/p-3e74be57.js +0 -65
  256. package/dist/components/p-8e74bb22.js +0 -57
  257. package/dist/components/p-a9609e88.js +0 -72
  258. package/dist/components/p-cfb1b588.js +0 -41
  259. package/dist/components/p-dc461e7b.js +0 -2000
  260. package/dist/components/p-dddaa520.js +0 -37
  261. package/dist/components/p-e46088d9.js +0 -35
  262. package/dist/components/p-e4d7c655.js +0 -91
  263. package/dist/components/p-fcec766c.js +0 -101
  264. package/dist/tegel/p-06d2fa56.entry.js +0 -1
  265. package/dist/tegel/p-08642415.entry.js +0 -1
  266. package/dist/tegel/p-0a4fe3db.entry.js +0 -1
  267. package/dist/tegel/p-0f38bea7.entry.js +0 -1
  268. package/dist/tegel/p-1a2f3852.entry.js +0 -1
  269. package/dist/tegel/p-1bc2c73c.entry.js +0 -1
  270. package/dist/tegel/p-2b030cef.entry.js +0 -1
  271. package/dist/tegel/p-2da2c193.entry.js +0 -1
  272. package/dist/tegel/p-36e88ce8.entry.js +0 -1
  273. package/dist/tegel/p-480c6c28.entry.js +0 -1
  274. package/dist/tegel/p-4ab7461e.entry.js +0 -1
  275. package/dist/tegel/p-4bab99d5.entry.js +0 -1
  276. package/dist/tegel/p-54a105a4.entry.js +0 -1
  277. package/dist/tegel/p-578f6d73.entry.js +0 -1
  278. package/dist/tegel/p-588a05aa.entry.js +0 -1
  279. package/dist/tegel/p-5a891dd2.entry.js +0 -1
  280. package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
  281. package/dist/tegel/p-6938329a.entry.js +0 -1
  282. package/dist/tegel/p-6b04a919.entry.js +0 -1
  283. package/dist/tegel/p-7d83ba98.entry.js +0 -1
  284. package/dist/tegel/p-91225c7a.entry.js +0 -1
  285. package/dist/tegel/p-930e767e.entry.js +0 -1
  286. package/dist/tegel/p-9332c225.js +0 -1
  287. package/dist/tegel/p-98f5b520.entry.js +0 -1
  288. package/dist/tegel/p-9de400f4.entry.js +0 -1
  289. package/dist/tegel/p-a9654cd4.entry.js +0 -1
  290. package/dist/tegel/p-a97dd06a.entry.js +0 -1
  291. package/dist/tegel/p-b34cf70d.entry.js +0 -1
  292. package/dist/tegel/p-b4c7099f.entry.js +0 -1
  293. package/dist/tegel/p-b9ac3122.entry.js +0 -1
  294. package/dist/tegel/p-c12eaac3.entry.js +0 -1
  295. package/dist/tegel/p-c18b2746.entry.js +0 -1
  296. package/dist/tegel/p-c1f8f523.entry.js +0 -1
  297. package/dist/tegel/p-c917d8be.entry.js +0 -1
  298. package/dist/tegel/p-d1cbe5be.entry.js +0 -1
  299. package/dist/tegel/p-dcbd977f.entry.js +0 -1
  300. package/dist/tegel/p-e1842d99.entry.js +0 -1
  301. package/dist/tegel/p-e237cdcc.entry.js +0 -1
  302. package/dist/tegel/p-e7108828.entry.js +0 -1
  303. package/dist/tegel/p-f0d46e61.entry.js +0 -1
  304. package/dist/tegel/p-f823777e.entry.js +0 -1
  305. package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
  306. package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
@@ -1,4 +1,5 @@
1
1
  import { h, Host, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  const relevantTableProps = [
3
4
  'compactDesign',
4
5
  'horizontalScrollWidth',
@@ -101,10 +102,11 @@ export class TdsTableFooter {
101
102
  return styles;
102
103
  }
103
104
  render() {
104
- return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
105
+ const prefixedTagNames = getPrefixedTagNames(this.host);
106
+ return (h(Host, { key: '2b1679b41dc9820424351c33e85591f36818d1e1', class: {
105
107
  'tds-table--compact': this.compactDesign,
106
108
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
107
- }, style: this.getStyles() }, h("tr", { key: 'cb4fc7ffecfa791f08a3da4a167459ccfb32e782', class: "tds-table__footer-row" }, h("td", { key: 'bf7388bc8aa26313cadba5333dc587d431a29867', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'ace766078c85f047034ac614712dc58b6dc7b540', class: "tds-table__pagination" }, h("div", { key: '0ef2c3c300bab7595773b65aa40da1399af4b7b8', class: "tds-table__row-selector" }), h("div", { key: '3fe2283dcbfd64fb54bd8faa9bd269dac22e81d8', class: "tds-table__page-selector" }, h("input", { key: '84295a91900f676742795c975f1706d4fbe196f6', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '88c7d7d7cfe66f2431b44c9ed38ebee5771f54b7', class: "tds-table__footer-text" }, "of ", h("span", { key: '42cf669a05c6e0e86a56aa568f2623c562bf83f6' }, this.pages), " pages"), h("button", { key: '3f022e45c6ca31ce542854c5e659349ab54b372a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '253b1cb33d4038ce03ff8fdb0bad30ba46ab0c13', name: "chevron_left", size: "20px" })), h("button", { key: 'ad21b63c30fc638372c89bb366be77df419bf532', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '58a640745984554b8c7cba3ce07130063299223e', name: "chevron_right", size: "20px" })))))))));
109
+ }, style: this.getStyles() }, h("tr", { key: '153812eec84fce53dc6dc8ac7ca0ef80dfd76213', class: "tds-table__footer-row" }, h("td", { key: '8393249d6dc9f5758e7b4fa83d7cfcbde59dbc77', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'cbd30e634548f1019ccd1bc15512a6b65ff13034', class: "tds-table__pagination" }, h("div", { key: '1c4a05e5ee585ca96b632082cdc34b7d5e520447', class: "tds-table__row-selector" }), h("div", { key: 'aaa98355f48907c761157c79d6676a357b431e98', class: "tds-table__page-selector" }, h("input", { key: '8bea9cd1dd079ec4062a0fc1a72b57d5aafbdf69', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '75c510c649be650ad2c52d894eee1f99ceed9d96', class: "tds-table__footer-text" }, "of ", h("span", { key: 'cbdf2851142771260e5f2ded77fac0313e326e69' }, this.pages), " pages"), h("button", { key: 'e881d7d94881aef373551e37b9371a9f6b4d5332', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h(prefixedTagNames.tdsIcon, { key: 'efb8d1f38cb9cea4fccc9b9df0649837d44dfa46', name: "chevron_left", size: "20px" })), h("button", { key: '6017258d6ec87aea2e34739c17d63d1e0762c2d6', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h(prefixedTagNames.tdsIcon, { key: 'c020cb98076c8c5e26cb9d4a78f0600272e4ebf5', name: "chevron_right", size: "20px" })))))))));
108
110
  }
109
111
  static get is() { return "tds-table-footer"; }
110
112
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { h, Host, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  const relevantTableProps = [
3
4
  'multiselect',
4
5
  'expandableRows',
@@ -82,11 +83,12 @@ export class TdsTableHeaderRow {
82
83
  });
83
84
  }
84
85
  render() {
85
- return (h(Host, { key: '5f212887d3d35e32240e9745d62685b7024100e1', class: {
86
+ const prefixedTagNames = getPrefixedTagNames(this.host);
87
+ return (h(Host, { key: 'c6b52b1d3a4758d2f633b63276491d54378997d0', class: {
86
88
  'tds-table--compact': this.compactDesign,
87
89
  'tds-table--divider': this.verticalDividers,
88
90
  'tds-table--toolbar-available': this.enableToolbarDesign,
89
- } }, h("tr", { key: '1a40af0dddfb627c39ae5df47aedc80eb1006f04' }, this.multiselect && (h("th", { key: '17d16e6bf8964b30e0ce93a76c436112ac0a6540', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '98f282baf5a0b4a929ad04c850319e04955090a0', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '9d8115deb1403df121309d32a166ccc6eac685d5', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '7cc0e1c0d3d7ec9f4bef917a5b8346cca8bc58ae', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '2f7aa3bd3acdd69f1f2a20d3525ad5901f0ac239' }))));
91
+ } }, h("tr", { key: '4f9c9077abe94dd132d70c3b1917b5ee321bb86c' }, this.multiselect && (h("th", { key: '93fe6f0b820002e877368a406a1f27993f8c76d9', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '0ee069d210c5bf362585034db083d675e20790d9', class: "tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '8a1db3dd87cf767823c4a20a9d7c4fd25e9c595c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '2a141bca63ff69c3572f18e83ba67c375b11b988', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: 'b5cfad23823fbddf0136ea696ec5870f114075f6' }))));
90
92
  }
91
93
  static get is() { return "tds-table-header"; }
92
94
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { h, Host, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  const relevantTableProps = [
3
4
  'multiselect',
4
5
  'expandableRows',
@@ -29,9 +30,9 @@ export class TdsTableHeaderCell {
29
30
  key: this.cellKey,
30
31
  });
31
32
  };
32
- this.headerCellContent = () => {
33
+ this.headerCellContent = (prefixedTagNames) => {
33
34
  if (this.sortable) {
34
- 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 === undefined && (h("tds-icon", { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h("tds-icon", { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
35
+ 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 === undefined && (h(prefixedTagNames.tdsIcon, { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h(prefixedTagNames.tdsIcon, { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
35
36
  }
36
37
  return (h("p", { class: {
37
38
  'tds-table__header-text': true,
@@ -105,7 +106,8 @@ export class TdsTableHeaderCell {
105
106
  this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
106
107
  }
107
108
  render() {
108
- return (h(Host, { key: '6a051465b3a5af5460f7c5ac112798b521f9b4a8', class: {
109
+ const prefixedTagNames = getPrefixedTagNames(this.host);
110
+ return (h(Host, { key: '0dc5485f665fc02b21ed16b04e130b49037fa491', class: {
109
111
  'tds-table__header-cell': true,
110
112
  'tds-table__header-cell--sortable': this.sortable,
111
113
  'tds-table__header-cell--is-sorted': this.sortedByMyKey,
@@ -116,7 +118,7 @@ export class TdsTableHeaderCell {
116
118
  'tds-table--extra-column': this.multiselect || this.expandableRows,
117
119
  'tds-table--toolbar-available': this.enableToolbarDesign,
118
120
  'tds-table--no-padding': this.disablePadding,
119
- }, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
121
+ }, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent(prefixedTagNames)));
120
122
  }
121
123
  static get is() { return "tds-header-cell"; }
122
124
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  const relevantTableProps = ['compactDesign'];
3
4
  export class TdsTableHeaderInputWrapper {
4
5
  constructor() {
@@ -63,11 +64,12 @@ export class TdsTableHeaderInputWrapper {
63
64
  }
64
65
  }
65
66
  render() {
66
- return (h(Host, { key: '43243a6c8e1a0ef0f18d9f1f1d4cd4cba6bc15b4', class: {
67
+ const prefixedTagNames = getPrefixedTagNames(this.host);
68
+ return (h(Host, { key: '379cdc2f1c18f2a15919e9d2b431f192f2e719d5', class: {
67
69
  'focused-input-wrapper': this.inputFocused,
68
70
  'show-icon': this.showIcon,
69
71
  'tds-table__compact': this.compactDesign,
70
- } }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
72
+ } }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
71
73
  }
72
74
  static get is() { return "tds-table-header-input-wrapper"; }
73
75
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { h, Host, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  const relevantTableProps = [
3
4
  'compactDesign',
4
5
  'noMinWidth',
@@ -63,10 +64,11 @@ export class TdsTableToolbar {
63
64
  return styles;
64
65
  }
65
66
  render() {
66
- return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
67
+ const prefixedTagNames = getPrefixedTagNames(this.host);
68
+ return (h(Host, { key: '017e5a33806f969620e47af13c1abd4d5cc73c1e', class: {
67
69
  'tds-table--compact': this.compactDesign,
68
70
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
69
- }, style: this.getStyles() }, h("div", { key: 'ecbf925fcd58dd77de40fd4b15c0a57c07b8a1c0', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd2f230c4944590897ac220fc2c35cd72008b8f4c', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'd75faf41e03bd19b1e268e85c884298c75d74450', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '7b098f02923e9580e1c8852dfcca11d4c21c75bd', class: "tds-table__searchbar" }, h("input", { key: 'c9d76e665ef26e197a7dad1e9ac83a0095ad66e9', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '1af8c1344e160cd494eeafc43c4f2422f7119d83', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '9c85fc3e817afcf7b548f2f851f3ce0970f82c00', name: "search", size: "20px" })))), h("slot", { key: 'ff6e2d21cc06fa5981e7814040d6d79581f8d974', name: "end" })))));
71
+ }, style: this.getStyles() }, h("div", { key: '8a2e0b3ff1cb452706d4a01818f6159749dbb89a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '91dcfc3b3e1a6f88a816c8aaadd6160bd9ad9474', class: "tds-table__title" }, this.tableTitle), h("div", { key: '62b725ed18e7406d2635c62ae057abb6cf214cba', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0dc45e13a7185194002e25a9116b6535307d6412', class: "tds-table__searchbar" }, h("input", { key: '6f147fde17c9c01c58ed2178c084a5be48c84186', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: 'd2b540ca62e3b4c3a917b2283510760be12e0b2a', class: "tds-table__searchbar-icon" }, h(prefixedTagNames.tdsIcon, { key: '39b663fbe530f36568e282768ed7b5630722fb01', name: "search", size: "20px" })))), h("slot", { key: '19474502d0d73d1c3a7b899a8a21cc269bd8efe8', name: "end" })))));
70
72
  }
71
73
  static get is() { return "tds-table-toolbar"; }
72
74
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { Host, h, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  /**
3
4
  * @slot <default> - <b>Unnamed slot.</b> For the tab elements.
4
5
  */
@@ -160,9 +161,10 @@ export class TdsFolderTabs {
160
161
  this.removeEventListenerFromTabs();
161
162
  }
162
163
  render() {
163
- return (h(Host, { key: '748bacbb3d58d37735385a8c926dacb637d8eff1', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4c4f764a6a8c8a095bd1d030ef85a34014d8d284', class: "wrapper", ref: (el) => {
164
+ const prefixedTagNames = getPrefixedTagNames(this.host);
165
+ return (h(Host, { key: '7f81db3a95250825f2ad5b6b614af7eddfe33b66', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'be070eb5e8484fc397426bb8e0c3f35ed4a1e851', class: "wrapper", ref: (el) => {
164
166
  this.navWrapperElement = el;
165
- } }, h("button", { key: 'ca859bdc9b9d10a7bcfaae194bbee508f308c1a2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '70aaa7044418b79234b9f3bd7eef2c1e0bf96e61', name: "chevron_left", size: "20px" })), h("slot", { key: 'ca1990c7333322885aa37b164cc7d74708b22116', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6321d42b6a42a9bf63ae844b94541f56806195fd', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '40a0e7a3297bdf6d4abbe5fc62114020fdb7aee3', name: "chevron_right", size: "20px" })))));
167
+ } }, h("button", { key: '6d3862bddb1407519259a5eab162ab0ddf95e76c', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h(prefixedTagNames.tdsIcon, { key: 'e36ee18f2896ad27889619a284c8e39ea0397148', name: "chevron_left", size: "20px" })), h("slot", { key: '1b62b7716c519f9eb9c2b2a8eab327a25d621a7e', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'ac50c266270eab2bc53172f2e000a0d93ca4aa2d', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h(prefixedTagNames.tdsIcon, { key: 'c62208f8e55c6d4662872a9b676e9993c61ec03d', name: "chevron_right", size: "20px" })))));
166
168
  }
167
169
  static get is() { return "tds-folder-tabs"; }
168
170
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { Host, h, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  /**
3
4
  * @slot <default> - <b>Unnamed slot.</b> For the tab elements.
4
5
  */
@@ -167,9 +168,10 @@ export class TdsInlineTabs {
167
168
  this.removeEventListenerFromTabs();
168
169
  }
169
170
  render() {
170
- return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
171
+ const prefixedTagNames = getPrefixedTagNames(this.host);
172
+ return (h(Host, { key: 'bc607732f1152e69199b3fca66efc4ebfd9683f7', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'ac41e6a7b6495c4ae9516a7e76e36f26be0b13d5', class: "wrapper", ref: (el) => {
171
173
  this.navWrapperElement = el;
172
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'af53b300c3420a52fd2cad793ca9acb333e71478', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'd21f7a30e597d429eccedcaa8569e7dc7170c145', name: "chevron_left", size: "20px" })), h("slot", { key: '39e1b21aa75fa86850827f87f5793292d01a97c7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '8848014869eb92505d97f15cc3f8f2234dadc9c5', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '130a7c2c926b312491f735dac63b67e91a632058', name: "chevron_right", size: "20px" })))));
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '02979087fbd289a8959e63c3960aa34e431505bc', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'e60e28cd233f054cde23c03b21a98185f18c82c1', name: "chevron_left", size: "20px" })), h("slot", { key: '82a24bd27e62b3dc58457a0a4ed9ee8fa1c2a6f7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'bea28e92a4cbe56d35106b399b8bc7734dc04290', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: '55317e5de61ad0ab7713852dc067e6f254d57988', name: "chevron_right", size: "20px" })))));
173
175
  }
174
176
  static get is() { return "tds-inline-tabs"; }
175
177
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  import { Host, h, } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../../utils/tagName";
2
3
  /**
3
4
  * @slot <default> - <b>Unnamed slot.</b> For the tab elements.
4
5
  */
@@ -167,9 +168,10 @@ export class TdsNavigationTabs {
167
168
  this.removeEventListenerFromTabs();
168
169
  }
169
170
  render() {
170
- return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
171
+ const prefixedTagNames = getPrefixedTagNames(this.host);
172
+ return (h(Host, { key: 'fc517a4647224414ac6b1643b7ff3cb94810e69c', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4a26e80281ecc5a791a8c5eee623fdc8a1630f68', class: "wrapper", ref: (el) => {
171
173
  this.navWrapperElement = el;
172
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'afdac4d596a8b9ea1de0fc483eda96d487ad17ed', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '1ff5064f5bd2b5ba26e0e28b7d3beeae892a2a67', name: "chevron_left", size: "20px" })), h("slot", { key: 'bfcf00b43116a1c03507a5d93bd0bafc2a987eb7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'af4361d7dc949762577e3d74162bfa768f6dfa89', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '7ffa8829a1b2ae8f408aa1bab6770f27726fb1c1', name: "chevron_right", size: "20px" })))));
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '6b60e0b9635abf48ca821f8e157b2dff42f8ea24', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'eccc37fc81804e909bec8a77279fee3eb156aaa2', name: "chevron_left", size: "20px" })), h("slot", { key: 'f48ae4ce1f825415a5c70d86a73caad8411b9bec', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'd0fca82d30d9e354edd26147be75f03fbabdedc0', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: 'bc9270c86e3bfbdfb9168f12865d294f2e7fba3a', name: "chevron_right", size: "20px" })))));
173
175
  }
174
176
  static get is() { return "tds-navigation-tabs"; }
175
177
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import hasSlot from "../../utils/hasSlot";
3
+ import { getPrefixedTagNames } from "../../utils/tagName";
3
4
  /**
4
5
  * @slot prefix - Slot for the prefix in the component.
5
6
  * @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
@@ -46,9 +47,10 @@ export class TdsTextField {
46
47
  }
47
48
  render() {
48
49
  var _a;
50
+ const prefixedTagNames = getPrefixedTagNames(this.host);
49
51
  const usesPrefixSlot = hasSlot('prefix', this.host);
50
52
  const usesSuffixSlot = hasSlot('suffix', this.host);
51
- return (h("div", { key: '1b4348574e1a9e7e315c61a2d555b487b619f22e', class: {
53
+ return (h("div", { key: '9709711a5feb7c8c3e26997f0ad91753295bc89a', class: {
52
54
  'form-text-field-nomin': this.noMinWidth,
53
55
  'form-text-field': !this.focusInput || this.disabled,
54
56
  'text-field-focus': this.focusInput && !this.disabled,
@@ -62,12 +64,12 @@ export class TdsTextField {
62
64
  'form-text-field-sm': this.size === 'sm',
63
65
  'form-text-field-error': this.state === 'error',
64
66
  'form-text-field-success': this.state === 'success',
65
- } }, this.labelPosition === 'outside' && (h("div", { key: '7f604df386ece3c8c01e5b60e75ef80de4500e81', class: "text-field-label-outside" }, h("div", { key: 'c13f468f76d9484c016a8218d9cc73b18724458f' }, this.label))), h("div", { key: '992c9076d7b1f9c6bec1847851bcfd989b6b0497', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'dfb616b9083ce42d90c180b5217e2e60ee3784af', class: {
67
+ } }, this.labelPosition === 'outside' && (h("div", { key: '8d1d75050b1c40a5b5e4fe0180805890d5958402', class: "text-field-label-outside" }, h("div", { key: '35160ceab326f5e86d0a98cc3ae6ee5c7e711a00' }, this.label))), h("div", { key: 'ab0021d9ce5b829c3613ab89c70abe8e7b270682', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '56be7515ef267d299b478c822dd3a986909c75b9', class: {
66
68
  'text-field-slot-wrap-prefix': true,
67
69
  'text-field-error': this.state === 'error',
68
70
  'text-field-success': this.state === 'success',
69
71
  'text-field-default': this.state === 'default',
70
- } }, h("slot", { key: '98ed143615ad68a3cd51aca034999bfc279fce6b', name: "prefix" }))), h("div", { key: '8079b57a7e047255ed45f3f1ba9e28655a16ebed', class: "text-field-input-container" }, h("input", { key: '11782cd5c55f092a02ec741ecd9b20f2b8bfae91', ref: (inputEl) => (this.textInput = inputEl), class: {
72
+ } }, h("slot", { key: '812acfb75ff513c35e2a48ccfb3dcf671d636ead', name: "prefix" }))), h("div", { key: '28b17720edb473137f0de48ef5561975fbabedc7', class: "text-field-input-container" }, h("input", { key: '4d047fcef2d46e91e40d29a35f46edcb42ffd1eb', ref: (inputEl) => (this.textInput = inputEl), class: {
71
73
  'text-field-input': true,
72
74
  'text-field-input-sm': this.size === 'sm',
73
75
  'text-field-input-md': this.size === 'md',
@@ -80,13 +82,13 @@ export class TdsTextField {
80
82
  if (!this.readOnly) {
81
83
  this.handleBlur(event);
82
84
  }
83
- } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'f72126827829ec26bafee0b5d0eb29a9b96e8628', class: "text-field-label-inside" }, this.label))), h("div", { key: 'c21c6a8cd0d5c8a4814efa1a8f93a5e99b3e092e', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '9029f584ea0ef6cc081985a087692e066394a01b', class: {
85
+ } }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '6865add321d3975917ac7881c96d8dff6f2b603a', class: "text-field-label-inside" }, this.label))), h("div", { key: 'e559d4a3038b1ea26aed03d97a8e9cbbf52c9f99', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '455610e90198eb2f5030ae81f1d695d092388a8b', class: {
84
86
  'text-field-slot-wrap-suffix': true,
85
87
  'text-field-error': this.state === 'error',
86
88
  'text-field-success': this.state === 'success',
87
89
  'text-field-default': this.state === 'default',
88
90
  'tds-u-display-none': this.readOnly,
89
- } }, h("slot", { key: 'f50d3a85bfd324529516a2b8180129e194202465', name: "suffix" }))), h("span", { key: '6f7f160b3a1b425a7ace18b748b64e50cfd8389f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '82b1d06cfb8a3b08543a77c839ccfcba2e9fae13', name: "edit_inactive", size: "20px" })), h("span", { key: '0c9c2ab0b8f620db172050e1db1dd4324b3ab094', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '84c9baa2bce9159f5ea084ed35051a878cfac1f9', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '888d0185686e5ba16bf7b4a064ea1926e17d5c96', class: "text-field-helper-error-state" }, h("tds-icon", { key: '752d5c6c9dee5a7eff5abae9d60e2eb353ee2e60', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'ead6aba2e4f11010dc4d6c17977abaac0b242e76', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '27e1880b203314c781260116b99fd1474a6a8041', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
91
+ } }, h("slot", { key: '66f0d0b9bd70aab9f4ec1265523e464075925e29', name: "suffix" }))), h("span", { key: '050f98dc78cac90bcd02252d6c3fdbcfc18f41b6', class: "text-field-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '6c975efb06829a46398ca2a2f05efd666410ebba', name: "edit_inactive", size: "20px" })), h("span", { key: 'b69ded042d9633d6d87527c1b5feba0d680f0299', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '1dba1e27b3435eddcc27f1fecd7d260d8ba0f04f', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: 'a5a2fa8f25edb7ed3626f6857446c56baed0f2d7', class: "text-field-helper-error-state" }, h(prefixedTagNames.tdsIcon, { key: '9eed79df72810969d0d88394437b60a8ee8be71d', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: '0353ce2aa058c39479389517029e7fd4a6de04e7', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '18f9e96da7b473dbbb0043beeeca1fa7bcf667de', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
90
92
  }
91
93
  static get is() { return "tds-text-field"; }
92
94
  static get encapsulation() { return "scoped"; }
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ import { getPrefixedTagNames } from "../../utils/tagName";
2
3
  export class TdsTextarea {
3
4
  constructor() {
4
5
  this.label = '';
@@ -38,7 +39,8 @@ export class TdsTextarea {
38
39
  }
39
40
  render() {
40
41
  var _a;
41
- return (h("div", { key: 'f110536792da6122221dc6941b6da71900ea2111', class: `
42
+ const prefixedTagNames = getPrefixedTagNames(this.host);
43
+ return (h("div", { key: '9840c9e02270672985277c10a85dedc9e3e404d2', class: `
42
44
  textarea-container
43
45
  ${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
44
46
  ${this.focusInput ? 'textarea-focus' : ''}
@@ -48,7 +50,7 @@ export class TdsTextarea {
48
50
  ${this.value ? 'textarea-data' : ''}
49
51
  ${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
50
52
  ${this.noMinWidth ? 'no-min-width' : ''}
51
- ` }, this.labelPosition !== 'no-label' && h("span", { key: '67784499bde176257853f1f4c7a8757ce98b07ee', class: 'textarea-label' }, this.label), h("div", { key: '7ad9c6b9c897995a98af2b9e9babefc3e2ae8831', class: "textarea-wrapper" }, h("textarea", { key: '94d944bb5e9722d89f7b0c98d18199c52f81b458', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: 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) => {
53
+ ` }, this.labelPosition !== 'no-label' && h("span", { key: 'b57721fd5d28ad58616ab4eafd58f639e693c884', class: 'textarea-label' }, this.label), h("div", { key: 'b8437213f9371ffbc287845f860a0c50fcb62daa', class: "textarea-wrapper" }, h("textarea", { key: '3edf4ab92c935510bbd04c395e7e2e5a0518f0bc', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: 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) => {
52
54
  if (!this.readOnly) {
53
55
  this.handleFocus(event);
54
56
  }
@@ -56,7 +58,7 @@ export class TdsTextarea {
56
58
  if (!this.readOnly) {
57
59
  this.handleBlur(event);
58
60
  }
59
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '719da60a6975556fa37b2104d435bf99fb99efa5', class: "textarea-resizer-icon" }, h("svg", { key: '6b6969d6e49824fb8791343ac62bd1a9f5c4e0fa', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '1e4d31007fef3c520cfa32686cf9b888919b314a', "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" }))), h("span", { key: '144143c8af4351e0d2370ebeb0c50a0124ab8f9b', class: "textarea-icon__readonly" }, h("tds-icon", { key: 'e2c0ab89e72258d46bc6479b663f4d62466fa8b0', name: "edit_inactive" })), h("span", { key: 'c07af4893c1fd32de8988c1ef6ef3b77c4a63768', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'dd8ae6cbd2cdde4a08392c6905faae07bd7d58e7', class: 'textarea-helper' }, this.state === 'error' && h("tds-icon", { key: 'c282dcee39da4e70d207e41221c557852a06fb43', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '7f05bc68e67825742fe9c8c49853a39fabf1199e', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '32dd0095c4500558fbe9c9d46ba6db3eb67d9034', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
61
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '6925c727f844de3efa787389dc488452f05de107', class: "textarea-resizer-icon" }, h("svg", { key: 'd8e9b2c949243b9d88f072492a2da56f34b7ee7d', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2821c5af0b5f0678d1e301703069f2acf0c2d83e', "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" }))), h("span", { key: '3358037162afca7d4351de3b4790076802c2135d', class: "textarea-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '52ea3ac12dfbc02e29e13f1483a014655ec44f9f', name: "edit_inactive" })), h("span", { key: '759328f7b4a40a769229ee25c28c1dfe85162e27', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'c45a121e2c3510c94d69c712a6fb2afb2c6427b9', class: 'textarea-helper' }, this.state === 'error' && (h(prefixedTagNames.tdsIcon, { key: 'e056a500dde09d407a3edb53e9a2628eeed23249', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '4bcd5edd214ffb2aa022193d6093fa7e6631be59', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '28795db6231ee330eaffeb879756423ffd49b367', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
60
62
  }
61
63
  static get is() { return "tds-textarea"; }
62
64
  static get encapsulation() { return "scoped"; }
@@ -423,4 +425,5 @@ export class TdsTextarea {
423
425
  }
424
426
  }];
425
427
  }
428
+ static get elementRef() { return "host"; }
426
429
  }
@@ -1,6 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import generateUniqueId from "../../utils/generateUniqueId";
3
3
  import hasSlot from "../../utils/hasSlot";
4
+ import { getPrefixedTagNames } from "../../utils/tagName";
4
5
  /**
5
6
  * @slot header - Slot for the Toast header.
6
7
  * @slot subheader - Slot for the Toast subheader.
@@ -55,15 +56,16 @@ export class TdsToast {
55
56
  this.hidden = false;
56
57
  }
57
58
  render() {
59
+ const prefixedTagNames = getPrefixedTagNames(this.host);
58
60
  const usesHeaderSlot = hasSlot('header', this.host);
59
61
  const usesSubheaderSlot = hasSlot('subheader', this.host);
60
62
  const usesActionsSlot = hasSlot('actions', this.host);
61
- return (h(Host, { key: 'f0ddc729628a45f868868f2b265f31d7df9a0411', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
63
+ return (h(Host, { key: '9c4ed33784151bd2ff0719cf229d8c4563be245c', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
62
64
  hide: this.hidden,
63
65
  show: !this.hidden,
64
- } }, h("div", { key: '73e3f624e617544d84ec2c7306ace9fb990070b9', class: `
66
+ } }, h("div", { key: 'b0338778796674cc19ef3c0873a61c1255b0a76b', class: `
65
67
  wrapper
66
- ${this.variant}` }, h("tds-icon", { key: 'bbeab9085851de6cc3d870421d8ea18c7e15471a', name: this.getIconName(), size: "20px" }), h("div", { key: '45b568761c09added6f0c3815d518fb541ba077a', class: `content` }, h("div", { key: '65aaac22e0b6439b3975e465493bc59e01ac7131', class: "header-subheader" }, this.header && h("div", { key: 'cd856ec5c2c118c52d942010f40cd90499f735b7', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '96157619f2e4fc59cd197bffb948cd4844d997b1', name: "header" }), this.subheader && h("div", { key: '3ba6782ba25b311d1c57b76791c0055db3f92ec2', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'e820491ceaa28771acd2b7661c5ddf7d9574a492', name: "subheader" })), usesActionsSlot && (h("div", { key: '72b25af2d7efbbb54b4f349c038c7efb684086f6', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '8c534d3b51d9f8c30148c0f601613d3395b8930e', name: "actions" })))), this.closable && (h("button", { key: 'a81bc7b2836bbec456260e80a1eb6e9d345ccdcf', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '7988501b679a147d62f6879db443bbfc64211871', name: "cross", size: "20px" }))))));
68
+ ${this.variant}` }, h(prefixedTagNames.tdsIcon, { key: 'a07575723bba27caf6d38f1f6a1620cca698287a', name: this.getIconName(), size: "20px" }), h("div", { key: 'bffbd9afd81b4ef129e2b7e902eb38bdc23b6668', class: `content` }, h("div", { key: '8537a6b634c3d864d0e78b7816eb61f577855d74', class: "header-subheader" }, this.header && h("div", { key: 'ec629a586101403b8c598491b189617547b2c9b4', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'b1f2edad8674a25cfde8295955f6c2c192e70813', name: "header" }), this.subheader && h("div", { key: 'e884bd8aa6ffdfe5c2bd72e139f661dd7fb85ccc', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'c866f0a4dc4197fcec92e921f774d0c0858e69ea', name: "subheader" })), usesActionsSlot && (h("div", { key: '9c3105649defb45a571e18d5233bc6826e635754', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'd2ca9276229fb8ccf252f0fd8fc2faa45b350ac0', name: "actions" })))), this.closable && (h("button", { key: '7670a6fc75adfe4875e82abad04cc19a708cdcba', onClick: this.handleClose, class: "close" }, h(prefixedTagNames.tdsIcon, { key: 'a30deec263d631c6188033fbb10cfa0707fe4ecc', name: "cross", size: "20px" }))))));
67
69
  }
68
70
  static get is() { return "tds-toast"; }
69
71
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import inheritAttributes from "../../utils/inheritAttributes";
3
+ import { getPrefixedTagNames } from "../../utils/tagName";
3
4
  /**
4
5
  * @slot <default> - <b>Unnamed slot.</b> For the tooltip contents.
5
6
  */
@@ -51,7 +52,8 @@ export class TdsTooltip {
51
52
  }
52
53
  render() {
53
54
  var _a;
54
- return (h(Host, { key: '93961300d93daf9eb0fa1f15e59c6bdfbea5f77b' }, h("tds-popover-core", Object.assign({ key: '1d2c6b17012d5040632df84b221eac247e890696' }, this.inheritedAttributes, { class: {
55
+ const prefixedTagNames = getPrefixedTagNames(this.host);
56
+ return (h(Host, { key: '1b316c3ecf119863127ca9f6ec369c6beb29b60e' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: '7c1b59991aa1e23b1deadd044a7aa16ea853c69c' }, this.inheritedAttributes, { class: {
55
57
  'tds-tooltip': true,
56
58
  [`tds-tooltip-${this.border}`]: true,
57
59
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -60,7 +62,7 @@ export class TdsTooltip {
60
62
  this.show = true;
61
63
  }, onInternalTdsClose: () => {
62
64
  this.show = false;
63
- } }), this.text, h("slot", { key: 'd5a4357f2875a0f5f9b958b26adb8cc6f794e900' }))));
65
+ } }), this.text, h("slot", { key: '8c585483121574a449eae789dc81f6fe77602905' }))));
64
66
  }
65
67
  static get is() { return "tds-tooltip"; }
66
68
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,33 @@
1
+ // eslint-disable-next-line import/no-relative-packages
2
+ import { TAG_NAMES } from "../../../../src/utils/tagNames";
3
+ // Utils to handle tag names for 'tds-' prefixed components
4
+ export const getTagName = (el) => {
5
+ if (!el || !(el instanceof HTMLElement)) {
6
+ console.error('Invalid element provided:', el);
7
+ return ''; // Return a default or throw an error
8
+ }
9
+ return el.tagName.toLowerCase();
10
+ };
11
+ export const paramCaseToCamelCase = (str) => str.replace(/-(\w)/g, (_, group) => group.toUpperCase());
12
+ export const getTagNameWithoutPrefix = (host) => {
13
+ const tagName = getTagName(host);
14
+ const maxLength = 100; // Maximum length of the input string
15
+ // Ensure the regex correctly captures the tag name after the prefix
16
+ const match = /^((?:[a-z0-9]+-){0,maxLength})([a-z0-9-]+)$/.exec(tagName.slice(0, maxLength)) || [];
17
+ const [, , tagNameWithoutPrefix = ''] = match;
18
+ return tagNameWithoutPrefix;
19
+ };
20
+ class PrefixedTagNamesCache extends Map {
21
+ }
22
+ const PREFIXED_TAG_NAMES_CACHE = new PrefixedTagNamesCache();
23
+ export const getPrefixedTagNames = (host) => {
24
+ const tagName = getTagName(host);
25
+ // Generate a unique cache key based on the tag name
26
+ const cacheKey = tagName;
27
+ // Check if the cache needs to be updated
28
+ if (!PREFIXED_TAG_NAMES_CACHE.has(cacheKey)) {
29
+ const prefixedTagNames = TAG_NAMES.reduce((result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: tag })), {});
30
+ PREFIXED_TAG_NAMES_CACHE.set(cacheKey, prefixedTagNames);
31
+ }
32
+ return PREFIXED_TAG_NAMES_CACHE.get(cacheKey) || {};
33
+ };
@@ -0,0 +1,117 @@
1
+ const TAG_NAMES = [
2
+ 'tds-accordion',
3
+ 'tds-badge',
4
+ 'tds-block',
5
+ 'tds-breadcrumbs',
6
+ 'tds-button',
7
+ 'tds-banner',
8
+ 'tds-card',
9
+ 'tds-checkbox',
10
+ 'tds-chip',
11
+ 'tds-datetime',
12
+ 'tds-divider',
13
+ 'tds-dropdown',
14
+ 'tds-footer',
15
+ 'tds-header',
16
+ 'tds-icon',
17
+ 'tds-link',
18
+ 'tds-message',
19
+ 'tds-modal',
20
+ 'tds-popover-canvas',
21
+ 'tds-popover-core',
22
+ 'tds-popover-menu',
23
+ 'tds-radio-button',
24
+ 'tds-side-menu',
25
+ 'tds-slider',
26
+ 'tds-spinner',
27
+ 'tds-stepper',
28
+ 'tds-text-field',
29
+ 'tds-textarea',
30
+ 'tds-toast',
31
+ 'tds-toggle',
32
+ 'tds-tooltip',
33
+ 'tds-accordion-item',
34
+ 'tds-breadcrumb',
35
+ 'tds-dropdown-option',
36
+ 'tds-footer-group',
37
+ 'tds-footer-item',
38
+ 'tds-core-header-item',
39
+ 'tds-header-dropdown',
40
+ 'tds-header-brand-symbol',
41
+ 'tds-header-dropdown-list',
42
+ 'tds-header-dropdown-list-item',
43
+ 'tds-header-hamburger',
44
+ 'tds-header-dropdown-list-user',
45
+ 'tds-header-item',
46
+ 'tds-header-launcher',
47
+ 'tds-header-launcher-button',
48
+ 'tds-header-launcher-grid',
49
+ 'tds-header-launcher-grid-item',
50
+ 'tds-header-launcher-grid-title',
51
+ 'tds-header-launcher-list',
52
+ 'tds-header-launcher-list-item',
53
+ 'tds-header-launcher-list-title',
54
+ 'tds-header-title',
55
+ 'tds-popover-menu-item',
56
+ 'tds-side-menu-dropdown',
57
+ 'tds-side-menu-collapse-button',
58
+ 'tds-side-menu-close-button',
59
+ 'tds-side-menu-dropdown-list',
60
+ 'tds-side-menu-item',
61
+ 'tds-side-menu-dropdown-list-item',
62
+ 'tds-side-menu-overlay',
63
+ 'tds-side-menu-user',
64
+ 'tds-side-menu-user-image',
65
+ 'tds-side-menu-user-label',
66
+ 'tds-step',
67
+ 'tds-table',
68
+ 'tds-table-body',
69
+ 'tds-body-cell',
70
+ 'tds-table-body-input-wrapper',
71
+ 'tds-table-body-row',
72
+ 'tds-table-body-row-expandable',
73
+ 'tds-table-footer',
74
+ 'tds-table-header',
75
+ 'tds-header-cell',
76
+ 'tds-table-header-input-wrapper',
77
+ 'tds-table-toolbar',
78
+ 'tds-folder-tabs',
79
+ 'tds-inline-tabs',
80
+ 'tds-navigation-tabs',
81
+ 'tds-date-picker',
82
+ 'tds-date-range-picker',
83
+ 'tds-folder-tab',
84
+ 'tds-inline-tab',
85
+ 'tds-navigation-tab',
86
+ 'date-picker-day',
87
+ 'date-picker-month',
88
+ 'date-picker-year',
89
+ 'date-range-picker-day',
90
+ ];
91
+
92
+ // eslint-disable-next-line import/no-relative-packages
93
+ // Utils to handle tag names for 'tds-' prefixed components
94
+ const getTagName = (el) => {
95
+ if (!el || !(el instanceof HTMLElement)) {
96
+ console.error('Invalid element provided:', el);
97
+ return ''; // Return a default or throw an error
98
+ }
99
+ return el.tagName.toLowerCase();
100
+ };
101
+ const paramCaseToCamelCase = (str) => str.replace(/-(\w)/g, (_, group) => group.toUpperCase());
102
+ class PrefixedTagNamesCache extends Map {
103
+ }
104
+ const PREFIXED_TAG_NAMES_CACHE = new PrefixedTagNamesCache();
105
+ const getPrefixedTagNames = (host) => {
106
+ const tagName = getTagName(host);
107
+ // Generate a unique cache key based on the tag name
108
+ const cacheKey = tagName;
109
+ // Check if the cache needs to be updated
110
+ if (!PREFIXED_TAG_NAMES_CACHE.has(cacheKey)) {
111
+ const prefixedTagNames = TAG_NAMES.reduce((result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: tag })), {});
112
+ PREFIXED_TAG_NAMES_CACHE.set(cacheKey, prefixedTagNames);
113
+ }
114
+ return PREFIXED_TAG_NAMES_CACHE.get(cacheKey) || {};
115
+ };
116
+
117
+ export { getPrefixedTagNames as g };
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
2
- import { d as defineCustomElement$2 } from './p-3e74be57.js';
2
+ import { g as getPrefixedTagNames } from './p-a74b6809.js';
3
3
 
4
4
  const accordionItemCss = ".tds-accordion-item{box-sizing:border-box;list-style:none;color:var(--tds-accordion-color);position:relative;border-top:1px solid var(--tds-accordion-border)}.tds-accordion-item *{box-sizing:border-box}.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{all:unset}.tds-accordion-item .tds-accordion-header-icon-start,.tds-accordion-item .tds-accordion-header-icon-end,.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding:var(--tds-spacing-element-16);background-color:var(--tds-accordion-background)}.tds-accordion-item .tds-accordion-header-icon-start *,.tds-accordion-item .tds-accordion-header-icon-end *,.tds-accordion-item button.tds-accordion-header-icon-start *,.tds-accordion-item button.tds-accordion-header-icon-end *{box-sizing:border-box}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon{transform-origin:center;transition:transform 0.15s ease-in-out;color:var(--tds-accordion-icon-color)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon>tds-icon{display:block}.tds-accordion-item .tds-accordion-title{flex-grow:2}.tds-accordion-item .tds-accordion-panel{cursor:default;padding:var(--tds-spacing-element-8) var(--tds-spacing-layout-64) var(--tds-spacing-element-32) var(--tds-spacing-element-16);display:none;font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls)}.tds-accordion-item .tds-accordion-panel p{margin:0;padding:0}.tds-accordion-item .tds-accordion-panel--padding-reset{padding-right:var(--tds-spacing-element-16)}.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon{margin:0 0 0 var(--tds-spacing-element-32)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-title{order:1}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon{order:0;margin:0 var(--tds-spacing-element-16) 0 0}.tds-accordion-item.disabled,.tds-accordion-item.disabled .tds-accordion-header-icon-end,.tds-accordion-item.disabled .tds-accordion-header-icon-start,.tds-accordion-item.disabled .tds-accordion-panel{color:var(--tds-accordion-color-disabled);cursor:not-allowed}.tds-accordion-item.disabled .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-panel .tds-accordion-icon{color:var(--tds-accordion-color-disabled)}.tds-accordion-item.disabled:hover,.tds-accordion-item.disabled:hover *,.tds-accordion-item.disabled:focus,.tds-accordion-item.disabled:focus *,.tds-accordion-item.disabled:active,.tds-accordion-item.disabled:active *,.tds-accordion-item.disabled.active,.tds-accordion-item.disabled.active *{cursor:not-allowed}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end::after{border-color:transparent}.tds-accordion-item.expanded .tds-accordion-panel{display:block;padding-bottom:31px}.tds-accordion-item.expanded .tds-accordion-icon{transform:rotate(180deg)}.tds-accordion-item.expanded .tds-accordion-header-icon-end .tds-accordion-icon{margin-right:0;margin-left:var(--tds-spacing-element-32)}.tds-accordion-item.expanded .tds-accordion-header-icon-start .tds-accordion-icon{margin-left:0;margin-right:var(--tds-spacing-element-16)}.tds-accordion-item:focus{border-top:1px solid var(--tds-accordion-border-focus)}.tds-accordion-item[disabled=true]:focus{border-color:var(--tds-accordion-border)}:host(:focus) .tds-accordion-item{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:hover) .tds-accordion-header-icon-start,:host(:hover) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-hover)}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}";
5
5
  const TdsAccordionItemStyle0 = accordionItemCss;
@@ -27,13 +27,15 @@ const TdsAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class TdsAccordionIt
27
27
  }
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '628336db584f9488762b6073af5fc05b18a064bd' }, h("div", { key: '15807da09f006149732d53a7f9aab2f86be788cd', class: `tds-accordion-item
30
+ const prefixedTagNames = getPrefixedTagNames(this.host);
31
+ return (h(Host, { key: '28a9b6813c1cd7ce9df1528cefe381efe4a817e5' }, h("div", { key: 'b4f8d10531ec73f8090da847febc291638938eba', class: `tds-accordion-item
31
32
  ${this.disabled ? 'disabled' : ''}
32
33
  ${this.expanded ? 'expanded' : ''}
33
- ` }, h("button", { key: 'f2f5941332be588effc795862d4136077b51122e', type: "button", "aria-expanded": this.expanded, class: `tds-accordion-header-icon-${this.expandIconPosition}`, onClick: () => this.toggleAccordionItem(), disabled: this.disabled }, h("div", { key: '3cfa2d6066875270211f75879effd48b88932ce8', class: "tds-accordion-title" }, this.header, h("slot", { key: '3c5cb389c8df24b1cb0cd20bfcb3c0b1154d3e38', name: "header" })), h("div", { key: 'a6a8189fc018d2629989165b3bb49ab111318628', class: "tds-accordion-icon" }, h("tds-icon", { key: 'a7cf540846b381a4925a754ea7b915c7df5d1208', name: "chevron_down", size: "16px" }))), h("div", { key: 'd3eb2219f67e69c54f55428950b976ba282845dc', class: `tds-accordion-panel
34
+ ` }, h("button", { key: 'b1b7db7fc8522f1092c6fff48e2a78bca6868bcf', type: "button", "aria-expanded": this.expanded, class: `tds-accordion-header-icon-${this.expandIconPosition}`, onClick: () => this.toggleAccordionItem(), disabled: this.disabled }, h("div", { key: 'cef4676f3219664ead89806ad0450fd9593e7b43', class: "tds-accordion-title" }, this.header, h("slot", { key: '4ab9fef8b30367f2f205b30d972217a9e62b4e78', name: "header" })), h("div", { key: 'c9a988d0c37316139332611f6c695bfd946c3a2d', class: "tds-accordion-icon" }, h(prefixedTagNames.tdsIcon, { key: 'ff1b6046a611269cf8883eea74aa5cbfa89b1f47', name: "chevron_down", size: "16px" }))), h("div", { key: '851378e8581ca06d6d0ad285a00bc68bcf006afb', class: `tds-accordion-panel
34
35
  ${this.paddingReset ? 'tds-accordion-panel--padding-reset ' : ''}
35
- ` }, h("slot", { key: '21625afeae6b8342aaa7d56c05ed965c29cc709d' })))));
36
+ ` }, h("slot", { key: '4925780d0f3f521d9e49546ff7bb4ed387b6d2f7' })))));
36
37
  }
38
+ get host() { return this; }
37
39
  static get style() { return TdsAccordionItemStyle0; }
38
40
  }, [1, "tds-accordion-item", {
39
41
  "header": [1],
@@ -47,18 +49,13 @@ function defineCustomElement$1() {
47
49
  if (typeof customElements === "undefined") {
48
50
  return;
49
51
  }
50
- const components = ["tds-accordion-item", "tds-icon"];
52
+ const components = ["tds-accordion-item"];
51
53
  components.forEach(tagName => { switch (tagName) {
52
54
  case "tds-accordion-item":
53
55
  if (!customElements.get(tagName)) {
54
56
  customElements.define(tagName, TdsAccordionItem$1);
55
57
  }
56
58
  break;
57
- case "tds-icon":
58
- if (!customElements.get(tagName)) {
59
- defineCustomElement$2();
60
- }
61
- break;
62
59
  } });
63
60
  }
64
61
  defineCustomElement$1();