@ukic/canary-web-components 3.0.0-canary.18 → 3.0.0-canary.19

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 (480) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-6f33d131.js → helpers-a5405964.js} +12 -20
  3. package/dist/cjs/helpers-a5405964.js.map +1 -0
  4. package/dist/cjs/ic-accordion.cjs.entry.js +9 -7
  5. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
  9. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-button_3.cjs.entry.js +8 -8
  13. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox_3.cjs.entry.js +20 -37
  20. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  22. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-data-table.cjs.entry.js +311 -319
  27. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-hero.cjs.entry.js +6 -5
  35. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
  37. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +22 -21
  39. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
  41. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-link.cjs.entry.js +11 -21
  43. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-navigation-group.cjs.entry.js +115 -163
  47. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js +64 -61
  49. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
  51. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
  53. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-pagination_4.cjs.entry.js +160 -231
  55. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  57. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
  59. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
  61. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-search-bar.cjs.entry.js +49 -31
  63. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-side-navigation.cjs.entry.js +23 -4
  67. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  69. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  71. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-step.cjs.entry.js +13 -13
  75. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
  77. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-switch.cjs.entry.js +4 -4
  79. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  81. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  83. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  85. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  87. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  89. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-toast.cjs.entry.js +3 -3
  91. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +53 -67
  93. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-toggle-button.cjs.entry.js +61 -63
  95. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-top-navigation.cjs.entry.js +64 -62
  97. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
  99. package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
  100. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  101. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  102. package/dist/cjs/loader.cjs.js +1 -1
  103. package/dist/collection/components/ic-data-table/ic-data-table.css +3 -5
  104. package/dist/collection/components/ic-data-table/ic-data-table.js +310 -318
  105. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  106. package/dist/collection/components/ic-data-table/story-data.js +1 -0
  107. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  108. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +30 -22
  109. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  110. package/dist/collection/utils/helpers.js +23 -51
  111. package/dist/collection/utils/helpers.js.map +1 -1
  112. package/dist/collection/utils/types.js.map +1 -1
  113. package/dist/components/helpers2.js +12 -20
  114. package/dist/components/helpers2.js.map +1 -1
  115. package/dist/components/ic-accordion.js +9 -7
  116. package/dist/components/ic-accordion.js.map +1 -1
  117. package/dist/components/ic-alert.js +1 -1
  118. package/dist/components/ic-alert.js.map +1 -1
  119. package/dist/components/ic-breadcrumb-group.js +2 -2
  120. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  121. package/dist/components/ic-breadcrumb2.js +2 -2
  122. package/dist/components/ic-breadcrumb2.js.map +1 -1
  123. package/dist/components/ic-button2.js +3 -3
  124. package/dist/components/ic-button2.js.map +1 -1
  125. package/dist/components/ic-card-vertical.js +1 -1
  126. package/dist/components/ic-card-vertical.js.map +1 -1
  127. package/dist/components/ic-checkbox-group.js +2 -2
  128. package/dist/components/ic-checkbox-group.js.map +1 -1
  129. package/dist/components/ic-checkbox2.js +7 -12
  130. package/dist/components/ic-checkbox2.js.map +1 -1
  131. package/dist/components/ic-data-list.js +2 -2
  132. package/dist/components/ic-data-list.js.map +1 -1
  133. package/dist/components/ic-data-row.js +2 -2
  134. package/dist/components/ic-data-row.js.map +1 -1
  135. package/dist/components/ic-data-table.js +311 -319
  136. package/dist/components/ic-data-table.js.map +1 -1
  137. package/dist/components/ic-dialog.js +1 -1
  138. package/dist/components/ic-dialog.js.map +1 -1
  139. package/dist/components/ic-empty-state2.js +2 -2
  140. package/dist/components/ic-empty-state2.js.map +1 -1
  141. package/dist/components/ic-footer-link.js +2 -2
  142. package/dist/components/ic-footer-link.js.map +1 -1
  143. package/dist/components/ic-hero.js +6 -5
  144. package/dist/components/ic-hero.js.map +1 -1
  145. package/dist/components/ic-horizontal-scroll2.js +5 -5
  146. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  147. package/dist/components/ic-input-component-container2.js +3 -3
  148. package/dist/components/ic-input-component-container2.js.map +1 -1
  149. package/dist/components/ic-input-container2.js +2 -2
  150. package/dist/components/ic-input-container2.js.map +1 -1
  151. package/dist/components/ic-input-label2.js +4 -4
  152. package/dist/components/ic-input-label2.js.map +1 -1
  153. package/dist/components/ic-input-validation2.js +3 -3
  154. package/dist/components/ic-input-validation2.js.map +1 -1
  155. package/dist/components/ic-link2.js +12 -24
  156. package/dist/components/ic-link2.js.map +1 -1
  157. package/dist/components/ic-loading-indicator2.js +3 -3
  158. package/dist/components/ic-loading-indicator2.js.map +1 -1
  159. package/dist/components/ic-menu-group.js +1 -1
  160. package/dist/components/ic-menu-group.js.map +1 -1
  161. package/dist/components/ic-menu2.js +17 -16
  162. package/dist/components/ic-menu2.js.map +1 -1
  163. package/dist/components/ic-navigation-group.js +115 -163
  164. package/dist/components/ic-navigation-group.js.map +1 -1
  165. package/dist/components/ic-navigation-item.js +67 -62
  166. package/dist/components/ic-navigation-item.js.map +1 -1
  167. package/dist/components/ic-navigation-menu2.js +4 -4
  168. package/dist/components/ic-navigation-menu2.js.map +1 -1
  169. package/dist/components/ic-page-header.js +6 -6
  170. package/dist/components/ic-page-header.js.map +1 -1
  171. package/dist/components/ic-pagination-bar2.js +12 -23
  172. package/dist/components/ic-pagination-bar2.js.map +1 -1
  173. package/dist/components/ic-pagination-item2.js +1 -1
  174. package/dist/components/ic-pagination-item2.js.map +1 -1
  175. package/dist/components/ic-pagination2.js +4 -4
  176. package/dist/components/ic-pagination2.js.map +1 -1
  177. package/dist/components/ic-popover-menu.js +5 -5
  178. package/dist/components/ic-popover-menu.js.map +1 -1
  179. package/dist/components/ic-radio-group.js +4 -4
  180. package/dist/components/ic-radio-group.js.map +1 -1
  181. package/dist/components/ic-radio-option.js +4 -4
  182. package/dist/components/ic-radio-option.js.map +1 -1
  183. package/dist/components/ic-search-bar.js +50 -31
  184. package/dist/components/ic-search-bar.js.map +1 -1
  185. package/dist/components/ic-section-container2.js +2 -2
  186. package/dist/components/ic-section-container2.js.map +1 -1
  187. package/dist/components/ic-select2.js +141 -217
  188. package/dist/components/ic-select2.js.map +1 -1
  189. package/dist/components/ic-side-navigation.js +24 -4
  190. package/dist/components/ic-side-navigation.js.map +1 -1
  191. package/dist/components/ic-skeleton.js +2 -2
  192. package/dist/components/ic-skeleton.js.map +1 -1
  193. package/dist/components/ic-skip-link.js +2 -2
  194. package/dist/components/ic-skip-link.js.map +1 -1
  195. package/dist/components/ic-status-tag.js +2 -2
  196. package/dist/components/ic-status-tag.js.map +1 -1
  197. package/dist/components/ic-step.js +13 -13
  198. package/dist/components/ic-step.js.map +1 -1
  199. package/dist/components/ic-stepper.js +2 -2
  200. package/dist/components/ic-stepper.js.map +1 -1
  201. package/dist/components/ic-switch.js +4 -4
  202. package/dist/components/ic-switch.js.map +1 -1
  203. package/dist/components/ic-tab-context.js +1 -1
  204. package/dist/components/ic-tab-context.js.map +1 -1
  205. package/dist/components/ic-tab-group.js +2 -2
  206. package/dist/components/ic-tab-group.js.map +1 -1
  207. package/dist/components/ic-tab-panel.js +2 -2
  208. package/dist/components/ic-tab-panel.js.map +1 -1
  209. package/dist/components/ic-text-field2.js +16 -10
  210. package/dist/components/ic-text-field2.js.map +1 -1
  211. package/dist/components/ic-theme.js +1 -1
  212. package/dist/components/ic-theme.js.map +1 -1
  213. package/dist/components/ic-toast-region.js +1 -1
  214. package/dist/components/ic-toast-region.js.map +1 -1
  215. package/dist/components/ic-toast.js +3 -3
  216. package/dist/components/ic-toast.js.map +1 -1
  217. package/dist/components/ic-toggle-button-group.js +53 -67
  218. package/dist/components/ic-toggle-button-group.js.map +1 -1
  219. package/dist/components/ic-toggle-button.js +61 -63
  220. package/dist/components/ic-toggle-button.js.map +1 -1
  221. package/dist/components/ic-tooltip2.js +2 -2
  222. package/dist/components/ic-tooltip2.js.map +1 -1
  223. package/dist/components/ic-top-navigation.js +65 -63
  224. package/dist/components/ic-top-navigation.js.map +1 -1
  225. package/dist/components/ic-tree-view.js +1 -1
  226. package/dist/components/ic-typography2.js +2 -2
  227. package/dist/components/ic-typography2.js.map +1 -1
  228. package/dist/core/core.esm.js +1 -1
  229. package/dist/core/core.esm.js.map +1 -1
  230. package/dist/core/{p-ef07630d.entry.js → p-0c9c6c31.entry.js} +2 -2
  231. package/dist/core/{p-ef07630d.entry.js.map → p-0c9c6c31.entry.js.map} +1 -1
  232. package/dist/core/p-0e0e0942.js +2 -0
  233. package/dist/core/p-0e0e0942.js.map +1 -0
  234. package/dist/core/{p-824cbf95.entry.js → p-1673d010.entry.js} +2 -2
  235. package/dist/core/{p-824cbf95.entry.js.map → p-1673d010.entry.js.map} +1 -1
  236. package/dist/core/{p-e9683f52.entry.js → p-16e78c1d.entry.js} +2 -2
  237. package/dist/core/p-16e78c1d.entry.js.map +1 -0
  238. package/dist/core/p-17926ee3.entry.js +2 -0
  239. package/dist/core/p-17926ee3.entry.js.map +1 -0
  240. package/dist/core/{p-fbcc2a11.entry.js → p-188ba287.entry.js} +2 -2
  241. package/dist/core/{p-fbcc2a11.entry.js.map → p-188ba287.entry.js.map} +1 -1
  242. package/dist/core/{p-bff6fef6.entry.js → p-1f18bbf6.entry.js} +2 -2
  243. package/dist/core/{p-bff6fef6.entry.js.map → p-1f18bbf6.entry.js.map} +1 -1
  244. package/dist/core/{p-0e3a62cc.entry.js → p-2667c808.entry.js} +2 -2
  245. package/dist/core/{p-3800cda8.entry.js → p-28611f52.entry.js} +2 -2
  246. package/dist/core/p-28611f52.entry.js.map +1 -0
  247. package/dist/core/{p-fb1fce87.entry.js → p-29a49ea2.entry.js} +2 -2
  248. package/dist/core/{p-fb1fce87.entry.js.map → p-29a49ea2.entry.js.map} +1 -1
  249. package/dist/core/{p-bc2ca778.entry.js → p-3cb4ecef.entry.js} +2 -2
  250. package/dist/core/{p-bc2ca778.entry.js.map → p-3cb4ecef.entry.js.map} +1 -1
  251. package/dist/core/p-4444e787.entry.js +2 -0
  252. package/dist/core/{p-cd770df5.entry.js.map → p-4444e787.entry.js.map} +1 -1
  253. package/dist/core/p-4aaf10a5.entry.js +2 -0
  254. package/dist/core/p-4aaf10a5.entry.js.map +1 -0
  255. package/dist/core/{p-e7c00131.entry.js → p-578a02ff.entry.js} +2 -2
  256. package/dist/core/{p-e7c00131.entry.js.map → p-578a02ff.entry.js.map} +1 -1
  257. package/dist/core/{p-a054bb1b.entry.js → p-582da938.entry.js} +2 -2
  258. package/dist/core/{p-a054bb1b.entry.js.map → p-582da938.entry.js.map} +1 -1
  259. package/dist/core/{p-d328f6fc.entry.js → p-5926c2b2.entry.js} +2 -2
  260. package/dist/core/{p-d328f6fc.entry.js.map → p-5926c2b2.entry.js.map} +1 -1
  261. package/dist/core/p-61e78ce0.entry.js +2 -0
  262. package/dist/core/p-61e78ce0.entry.js.map +1 -0
  263. package/dist/core/{p-5744b8b3.entry.js → p-6a63a73a.entry.js} +2 -2
  264. package/dist/core/{p-5744b8b3.entry.js.map → p-6a63a73a.entry.js.map} +1 -1
  265. package/dist/core/{p-266686d0.entry.js → p-6bfff7ba.entry.js} +2 -2
  266. package/dist/core/p-6bfff7ba.entry.js.map +1 -0
  267. package/dist/core/{p-f6141c29.entry.js → p-7c3cd0b8.entry.js} +2 -2
  268. package/dist/core/p-7e4f5717.entry.js +2 -0
  269. package/dist/core/p-7e4f5717.entry.js.map +1 -0
  270. package/dist/core/{p-eb88b348.entry.js → p-7eaa223b.entry.js} +2 -2
  271. package/dist/core/{p-eb88b348.entry.js.map → p-7eaa223b.entry.js.map} +1 -1
  272. package/dist/core/{p-09f54ca3.entry.js → p-8112444e.entry.js} +2 -2
  273. package/dist/core/{p-09f54ca3.entry.js.map → p-8112444e.entry.js.map} +1 -1
  274. package/dist/core/{p-af1d6e41.entry.js → p-85a17585.entry.js} +2 -2
  275. package/dist/core/{p-1aed572a.entry.js → p-864e337f.entry.js} +2 -2
  276. package/dist/core/{p-1aed572a.entry.js.map → p-864e337f.entry.js.map} +1 -1
  277. package/dist/core/{p-fb8d27fa.entry.js → p-887b1302.entry.js} +2 -2
  278. package/dist/core/{p-fb8d27fa.entry.js.map → p-887b1302.entry.js.map} +1 -1
  279. package/dist/core/p-8d2d9e11.entry.js +2 -0
  280. package/dist/core/p-8d2d9e11.entry.js.map +1 -0
  281. package/dist/core/p-920f6480.entry.js +2 -0
  282. package/dist/core/p-920f6480.entry.js.map +1 -0
  283. package/dist/core/{p-7c096c5e.entry.js → p-9687e929.entry.js} +2 -2
  284. package/dist/core/{p-7c096c5e.entry.js.map → p-9687e929.entry.js.map} +1 -1
  285. package/dist/core/{p-33f4abc9.entry.js → p-976f4280.entry.js} +2 -2
  286. package/dist/core/{p-33f4abc9.entry.js.map → p-976f4280.entry.js.map} +1 -1
  287. package/dist/core/p-9989ec00.entry.js +2 -0
  288. package/dist/core/p-9989ec00.entry.js.map +1 -0
  289. package/dist/core/{p-93e154e0.entry.js → p-9a78f449.entry.js} +2 -2
  290. package/dist/core/{p-93e154e0.entry.js.map → p-9a78f449.entry.js.map} +1 -1
  291. package/dist/core/{p-f9a16fa8.entry.js → p-9aecbfe9.entry.js} +2 -2
  292. package/dist/core/{p-f9a16fa8.entry.js.map → p-9aecbfe9.entry.js.map} +1 -1
  293. package/dist/core/{p-45f32fea.entry.js → p-a894ddb6.entry.js} +2 -2
  294. package/dist/core/p-a894ddb6.entry.js.map +1 -0
  295. package/dist/core/p-abcaf14d.entry.js +2 -0
  296. package/dist/core/p-abcaf14d.entry.js.map +1 -0
  297. package/dist/core/p-aeeff0e5.entry.js +2 -0
  298. package/dist/core/p-aeeff0e5.entry.js.map +1 -0
  299. package/dist/core/{p-e38b20bf.entry.js → p-b92727c0.entry.js} +2 -2
  300. package/dist/core/{p-e38b20bf.entry.js.map → p-b92727c0.entry.js.map} +1 -1
  301. package/dist/core/{p-d3d48548.entry.js → p-ba5e1b21.entry.js} +2 -2
  302. package/dist/core/{p-d3d48548.entry.js.map → p-ba5e1b21.entry.js.map} +1 -1
  303. package/dist/core/{p-b9459ba2.entry.js → p-bf3b853e.entry.js} +2 -2
  304. package/dist/core/{p-b9459ba2.entry.js.map → p-bf3b853e.entry.js.map} +1 -1
  305. package/dist/core/{p-9882c572.entry.js → p-c3be8a0f.entry.js} +2 -2
  306. package/dist/core/p-c3be8a0f.entry.js.map +1 -0
  307. package/dist/core/{p-72c117b6.entry.js → p-c5ffe2cf.entry.js} +2 -2
  308. package/dist/core/{p-72c117b6.entry.js.map → p-c5ffe2cf.entry.js.map} +1 -1
  309. package/dist/core/{p-aa83f828.entry.js → p-c8d207e1.entry.js} +2 -2
  310. package/dist/core/p-ca7e1219.entry.js +2 -0
  311. package/dist/core/p-ca7e1219.entry.js.map +1 -0
  312. package/dist/core/p-d0c38d58.entry.js +2 -0
  313. package/dist/core/p-d0c38d58.entry.js.map +1 -0
  314. package/dist/core/{p-df88ff5b.entry.js → p-d4903dcd.entry.js} +2 -2
  315. package/dist/core/{p-df88ff5b.entry.js.map → p-d4903dcd.entry.js.map} +1 -1
  316. package/dist/core/{p-9ca147f3.entry.js → p-de1e04ac.entry.js} +2 -2
  317. package/dist/core/{p-9ca147f3.entry.js.map → p-de1e04ac.entry.js.map} +1 -1
  318. package/dist/core/{p-8b5022bc.entry.js → p-dee21f6d.entry.js} +2 -2
  319. package/dist/core/{p-8b5022bc.entry.js.map → p-dee21f6d.entry.js.map} +1 -1
  320. package/dist/core/{p-ad390076.entry.js → p-e003ad46.entry.js} +2 -2
  321. package/dist/core/{p-ad390076.entry.js.map → p-e003ad46.entry.js.map} +1 -1
  322. package/dist/core/{p-1be17f22.entry.js → p-e2629bfe.entry.js} +2 -2
  323. package/dist/core/{p-1be17f22.entry.js.map → p-e2629bfe.entry.js.map} +1 -1
  324. package/dist/core/p-e38dd019.entry.js +2 -0
  325. package/dist/core/p-e38dd019.entry.js.map +1 -0
  326. package/dist/core/{p-84daed4d.entry.js → p-e546d477.entry.js} +2 -2
  327. package/dist/core/p-e546d477.entry.js.map +1 -0
  328. package/dist/core/{p-5c363e21.entry.js → p-f9e78341.entry.js} +2 -2
  329. package/dist/core/{p-0a0b25c5.entry.js → p-fedfd000.entry.js} +2 -2
  330. package/dist/esm/core.js +1 -1
  331. package/dist/esm/{helpers-0bb68835.js → helpers-ef2db990.js} +13 -21
  332. package/dist/esm/helpers-ef2db990.js.map +1 -0
  333. package/dist/esm/ic-accordion.entry.js +9 -7
  334. package/dist/esm/ic-accordion.entry.js.map +1 -1
  335. package/dist/esm/ic-alert.entry.js +1 -1
  336. package/dist/esm/ic-alert.entry.js.map +1 -1
  337. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  338. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  339. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  340. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  341. package/dist/esm/ic-button_3.entry.js +8 -8
  342. package/dist/esm/ic-button_3.entry.js.map +1 -1
  343. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  344. package/dist/esm/ic-card-vertical.entry.js +1 -1
  345. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  346. package/dist/esm/ic-checkbox-group.entry.js +2 -2
  347. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  348. package/dist/esm/ic-checkbox_3.entry.js +20 -37
  349. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  350. package/dist/esm/ic-data-list.entry.js +2 -2
  351. package/dist/esm/ic-data-list.entry.js.map +1 -1
  352. package/dist/esm/ic-data-row.entry.js +2 -2
  353. package/dist/esm/ic-data-row.entry.js.map +1 -1
  354. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  355. package/dist/esm/ic-data-table.entry.js +311 -319
  356. package/dist/esm/ic-data-table.entry.js.map +1 -1
  357. package/dist/esm/ic-date-input.entry.js +1 -1
  358. package/dist/esm/ic-date-picker.entry.js +1 -1
  359. package/dist/esm/ic-dialog.entry.js +1 -1
  360. package/dist/esm/ic-dialog.entry.js.map +1 -1
  361. package/dist/esm/ic-footer-link.entry.js +2 -2
  362. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  363. package/dist/esm/ic-hero.entry.js +6 -5
  364. package/dist/esm/ic-hero.entry.js.map +1 -1
  365. package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
  366. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  367. package/dist/esm/ic-input-component-container_3.entry.js +22 -21
  368. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  369. package/dist/esm/ic-input-label_2.entry.js +7 -7
  370. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  371. package/dist/esm/ic-link.entry.js +11 -21
  372. package/dist/esm/ic-link.entry.js.map +1 -1
  373. package/dist/esm/ic-menu-group.entry.js +1 -1
  374. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  375. package/dist/esm/ic-navigation-group.entry.js +115 -163
  376. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  377. package/dist/esm/ic-navigation-item.entry.js +64 -61
  378. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  379. package/dist/esm/ic-navigation-menu.entry.js +4 -4
  380. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  381. package/dist/esm/ic-page-header.entry.js +6 -6
  382. package/dist/esm/ic-page-header.entry.js.map +1 -1
  383. package/dist/esm/ic-pagination_4.entry.js +161 -232
  384. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  385. package/dist/esm/ic-popover-menu.entry.js +5 -5
  386. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  387. package/dist/esm/ic-radio-group.entry.js +4 -4
  388. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  389. package/dist/esm/ic-radio-option.entry.js +4 -4
  390. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  391. package/dist/esm/ic-search-bar.entry.js +49 -31
  392. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  393. package/dist/esm/ic-section-container.entry.js +2 -2
  394. package/dist/esm/ic-section-container.entry.js.map +1 -1
  395. package/dist/esm/ic-side-navigation.entry.js +23 -4
  396. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  397. package/dist/esm/ic-skeleton.entry.js +2 -2
  398. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  399. package/dist/esm/ic-skip-link.entry.js +2 -2
  400. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  401. package/dist/esm/ic-status-tag.entry.js +2 -2
  402. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  403. package/dist/esm/ic-step.entry.js +13 -13
  404. package/dist/esm/ic-step.entry.js.map +1 -1
  405. package/dist/esm/ic-stepper.entry.js +2 -2
  406. package/dist/esm/ic-stepper.entry.js.map +1 -1
  407. package/dist/esm/ic-switch.entry.js +4 -4
  408. package/dist/esm/ic-switch.entry.js.map +1 -1
  409. package/dist/esm/ic-tab-context.entry.js +1 -1
  410. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  411. package/dist/esm/ic-tab-group.entry.js +2 -2
  412. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  413. package/dist/esm/ic-tab-panel.entry.js +2 -2
  414. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  415. package/dist/esm/ic-theme.entry.js +1 -1
  416. package/dist/esm/ic-theme.entry.js.map +1 -1
  417. package/dist/esm/ic-toast-region.entry.js +1 -1
  418. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  419. package/dist/esm/ic-toast.entry.js +3 -3
  420. package/dist/esm/ic-toast.entry.js.map +1 -1
  421. package/dist/esm/ic-toggle-button-group.entry.js +53 -67
  422. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  423. package/dist/esm/ic-toggle-button.entry.js +61 -63
  424. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  425. package/dist/esm/ic-top-navigation.entry.js +65 -63
  426. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  427. package/dist/esm/ic-tree-item.entry.js +1 -1
  428. package/dist/esm/ic-tree-view.entry.js +1 -1
  429. package/dist/esm/ic-typography.entry.js +2 -2
  430. package/dist/esm/ic-typography.entry.js.map +1 -1
  431. package/dist/esm/loader.js +1 -1
  432. package/dist/types/components/ic-data-table/ic-data-table.d.ts +15 -4
  433. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +4 -1
  434. package/dist/types/components.d.ts +8 -0
  435. package/dist/types/utils/helpers.d.ts +3 -3
  436. package/dist/types/utils/types.d.ts +2 -0
  437. package/hydrate/index.js +1085 -1214
  438. package/hydrate/index.mjs +1085 -1214
  439. package/package.json +3 -3
  440. package/dist/cjs/helpers-6f33d131.js.map +0 -1
  441. package/dist/core/p-10703715.entry.js +0 -2
  442. package/dist/core/p-10703715.entry.js.map +0 -1
  443. package/dist/core/p-266686d0.entry.js.map +0 -1
  444. package/dist/core/p-3800cda8.entry.js.map +0 -1
  445. package/dist/core/p-45f32fea.entry.js.map +0 -1
  446. package/dist/core/p-59bc9fe7.entry.js +0 -2
  447. package/dist/core/p-59bc9fe7.entry.js.map +0 -1
  448. package/dist/core/p-6724039c.entry.js +0 -2
  449. package/dist/core/p-6724039c.entry.js.map +0 -1
  450. package/dist/core/p-84daed4d.entry.js.map +0 -1
  451. package/dist/core/p-92a969b3.entry.js +0 -2
  452. package/dist/core/p-92a969b3.entry.js.map +0 -1
  453. package/dist/core/p-954959d4.entry.js +0 -2
  454. package/dist/core/p-954959d4.entry.js.map +0 -1
  455. package/dist/core/p-95868542.entry.js +0 -2
  456. package/dist/core/p-95868542.entry.js.map +0 -1
  457. package/dist/core/p-9882c572.entry.js.map +0 -1
  458. package/dist/core/p-9918c411.entry.js +0 -2
  459. package/dist/core/p-9918c411.entry.js.map +0 -1
  460. package/dist/core/p-ad45f8f8.entry.js +0 -2
  461. package/dist/core/p-ad45f8f8.entry.js.map +0 -1
  462. package/dist/core/p-b947e4ff.entry.js +0 -2
  463. package/dist/core/p-b947e4ff.entry.js.map +0 -1
  464. package/dist/core/p-c472cb32.entry.js +0 -2
  465. package/dist/core/p-c472cb32.entry.js.map +0 -1
  466. package/dist/core/p-cd770df5.entry.js +0 -2
  467. package/dist/core/p-e9683f52.entry.js.map +0 -1
  468. package/dist/core/p-ed542433.js +0 -2
  469. package/dist/core/p-ed542433.js.map +0 -1
  470. package/dist/core/p-edeb3823.entry.js +0 -2
  471. package/dist/core/p-edeb3823.entry.js.map +0 -1
  472. package/dist/core/p-fb8214a9.entry.js +0 -2
  473. package/dist/core/p-fb8214a9.entry.js.map +0 -1
  474. package/dist/esm/helpers-0bb68835.js.map +0 -1
  475. /package/dist/core/{p-0e3a62cc.entry.js.map → p-2667c808.entry.js.map} +0 -0
  476. /package/dist/core/{p-f6141c29.entry.js.map → p-7c3cd0b8.entry.js.map} +0 -0
  477. /package/dist/core/{p-af1d6e41.entry.js.map → p-85a17585.entry.js.map} +0 -0
  478. /package/dist/core/{p-aa83f828.entry.js.map → p-c8d207e1.entry.js.map} +0 -0
  479. /package/dist/core/{p-5c363e21.entry.js.map → p-f9e78341.entry.js.map} +0 -0
  480. /package/dist/core/{p-0a0b25c5.entry.js.map → p-fedfd000.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
2
- import { d as dynamicDebounce, b as isEmptyString, p as pxToRem, i as isSlotUsed, c as addDataToPosition, e as deviceSizeMatches, f as getSlotElements, h as checkResizeObserver, j as IC_DEVICE_SIZES } from './helpers2.js';
2
+ import { b as isEmptyString, p as pxToRem, i as isSlotUsed, c as addDataToPosition, d as deviceSizeMatches, e as getSlotElements, f as checkResizeObserver, h as dynamicDebounce, j as IC_DEVICE_SIZES } from './helpers2.js';
3
3
  import { d as defineCustomElement$i } from './ic-button2.js';
4
4
  import { d as defineCustomElement$h } from './ic-checkbox2.js';
5
5
  import { d as defineCustomElement$g } from './ic-empty-state2.js';
@@ -30,7 +30,7 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
30
30
  <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
31
31
  </svg>`;
32
32
 
33
- const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;justify-content:end;vertical-align:top}.cell-alignment-top{vertical-align:top;align-items:flex-start}.cell-alignment-middle{vertical-align:middle;align-items:center}.cell-alignment-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-dialog) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-dialog) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-description-text)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
33
+ const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-dialog) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-dialog) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-description-text)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
34
34
  const IcDataTableStyle0 = icDataTableCss;
35
35
 
36
36
  const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLElement {
@@ -138,6 +138,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
138
138
  pageLabel: "Page",
139
139
  rangeLabelType: "page",
140
140
  selectedItemsPerPage: 10,
141
+ selectItemsPerPageOnEnter: true,
141
142
  setToFirstPageOnPaginationChange: false,
142
143
  showGoToPageControl: true,
143
144
  showItemsPerPageControl: true,
@@ -210,6 +211,176 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
210
211
  };
211
212
  this.getRowHeight = (cellContainer) => parseInt(getComputedStyle(document.documentElement).fontSize) *
212
213
  parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING) || "");
214
+ this.truncateUpdatedData = () => {
215
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
216
+ this.getTypographyElements().forEach((typographyEl) => {
217
+ const cellContainer = this.getCellContainer(typographyEl);
218
+ if (cellContainer) {
219
+ const truncWrapper = this.getTruncWrapper(typographyEl);
220
+ if (truncWrapper &&
221
+ cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
222
+ truncWrapper.scrollHeight) {
223
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
224
+ return;
225
+ }
226
+ setTimeout(() => {
227
+ // slight delay due to data rendering
228
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
229
+ }, 150);
230
+ }
231
+ });
232
+ }
233
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
234
+ this.updateTruncationTooltip();
235
+ }
236
+ this.dataUpdated = false;
237
+ };
238
+ this.truncateTableSorted = () => {
239
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
240
+ this.updateTruncationTooltip();
241
+ }
242
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
243
+ this.getTypographyElements().forEach((typographyEl) => {
244
+ const cellContainer = this.getCellContainer(typographyEl);
245
+ if (cellContainer) {
246
+ if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
247
+ this.createShowHideTruncation(typographyEl, cellContainer);
248
+ }
249
+ else {
250
+ typographyEl.resetTruncation().then(() => {
251
+ cellContainer.removeAttribute("style");
252
+ });
253
+ }
254
+ }
255
+ });
256
+ }
257
+ this.tableSorted = false;
258
+ };
259
+ this.truncateRowHeightSet = () => {
260
+ // This function recalculates the tooltip truncation when the rowHeight has been set.
261
+ // This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
262
+ this.getTypographyElements().forEach((typographyEl) => {
263
+ const cellContainer = this.getCellContainer(typographyEl);
264
+ const tooltipEl = this.getTooltip(typographyEl);
265
+ if (cellContainer) {
266
+ if (this.globalRowHeight === "auto") {
267
+ cellContainer.style.height = "";
268
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
269
+ cellContainer.removeAttribute(this.DATA_ROW_HEIGHT_STRING);
270
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
271
+ this.removeTooltip(cellContainer, typographyEl, tooltipEl);
272
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
273
+ }
274
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
275
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
276
+ }
277
+ return;
278
+ }
279
+ // If the set row height is bigger than the cell container even
280
+ // with textWrap, set the row height
281
+ if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
282
+ !cellContainer.style.height &&
283
+ this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
284
+ !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
285
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
286
+ }
287
+ if (this.truncationPattern) {
288
+ // If the set row height is bigger than the typography truncation wrapper
289
+ // scroll height, remove see more / see less button
290
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
291
+ const truncWrapper = this.getTruncWrapper(typographyEl);
292
+ if (this.getShowHideButton(typographyEl) &&
293
+ truncWrapper &&
294
+ truncWrapper.scrollHeight <= cellContainer.clientHeight) {
295
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
296
+ return;
297
+ }
298
+ }
299
+ this.truncate(typographyEl, cellContainer, tooltipEl);
300
+ }
301
+ else {
302
+ this.updateSetRowHeight(typographyEl);
303
+ }
304
+ }
305
+ });
306
+ this.rowHeightSet = false;
307
+ };
308
+ this.truncateItemsPerPageChange = () => {
309
+ var _a;
310
+ // Only run truncation on the new rows
311
+ // when the number of items per page has increased
312
+ const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
313
+ if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
314
+ const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
315
+ newRows.forEach((row) => {
316
+ row.querySelectorAll("ic-typography").forEach((typographyEl) => {
317
+ const cellContainer = this.getCellContainer(typographyEl);
318
+ const tooltipEl = this.getTooltip(typographyEl);
319
+ if (cellContainer)
320
+ this.truncate(typographyEl, cellContainer, tooltipEl);
321
+ });
322
+ });
323
+ }
324
+ this.previousItemsPerPage = this.rowsPerPage;
325
+ this.itemsPerPageChange = false;
326
+ };
327
+ this.truncatePageChange = () => {
328
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
329
+ this.updateTruncationTooltip();
330
+ }
331
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
332
+ // set truncation to see more if opened and next/previous page is pressed
333
+ this.getTypographyElements().forEach((typographyEl) => {
334
+ const cellContainer = this.getCellContainer(typographyEl);
335
+ if (cellContainer &&
336
+ this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer) &&
337
+ !this.getShowHideButton(typographyEl)) {
338
+ this.addShowHideTruncation(cellContainer, typographyEl);
339
+ }
340
+ });
341
+ }
342
+ this.icPageChangeEvent = false;
343
+ };
344
+ this.truncateDensityUpdate = () => {
345
+ this.getTypographyElements().forEach((typographyEl) => {
346
+ const cellContainer = this.getCellContainer(typographyEl);
347
+ const tooltipEl = this.getTooltip(typographyEl);
348
+ if (cellContainer)
349
+ this.truncate(typographyEl, cellContainer, tooltipEl);
350
+ });
351
+ this.densityUpdate = false;
352
+ };
353
+ this.typographyScrollHeightExceedsContainerHeight = (typographyEl, cellContainer) => cellContainer && typographyEl.scrollHeight > cellContainer.clientHeight;
354
+ this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight = (typographyEl, cellContainer) => {
355
+ const truncWrapper = this.getTruncWrapper(typographyEl);
356
+ return (truncWrapper &&
357
+ cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
358
+ truncWrapper.scrollHeight);
359
+ };
360
+ this.truncatePatternUpdated = () => {
361
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
362
+ this.getTypographyElements().forEach((typographyEl) => {
363
+ const cellContainer = this.getCellContainer(typographyEl);
364
+ const tooltipEl = this.getTooltip(typographyEl);
365
+ if (cellContainer &&
366
+ this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
367
+ this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
368
+ }
369
+ });
370
+ }
371
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
372
+ this.getTypographyElements().forEach((typographyEl) => {
373
+ const cellContainer = this.getCellContainer(typographyEl);
374
+ if (cellContainer) {
375
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
376
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
377
+ return;
378
+ }
379
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
380
+ }
381
+ });
382
+ }
383
+ };
213
384
  this.updateSetRowHeight = (typographyEl) => {
214
385
  const removeRowHeightVariable = (element) => {
215
386
  const cellContainer = this.getCellContainer(element);
@@ -227,28 +398,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
227
398
  });
228
399
  }
229
400
  };
230
- this.debounceDataTruncation = () => {
231
- this.getTypographyElements().forEach((typographyEl) => {
232
- const cellContainer = this.getCellContainer(typographyEl);
233
- if (cellContainer &&
234
- !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
235
- this.resizeObserver = new ResizeObserver(
236
- // This gets triggered twice due to updated data and see more/see less button
237
- dynamicDebounce(() => {
238
- this.dataTruncation(typographyEl);
239
- if (!this.isNewDebounceDelaySet) {
240
- this.debounceDelay = 200;
241
- this.isNewDebounceDelaySet = true;
242
- }
243
- }, () => this.debounceDelay));
244
- this.resizeObserver.observe(typographyEl);
245
- }
246
- });
247
- };
248
401
  this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
249
402
  this.truncate = (typographyEl, cellContainer, tooltip) => {
250
403
  var _a;
251
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
404
+ if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
252
405
  //24 is the height of a single line
253
406
  if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
254
407
  if (this.truncationPattern === this.TOOLTIP_STRING) {
@@ -268,52 +421,49 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
268
421
  }
269
422
  if (this.truncationPattern === this.SHOW_HIDE_STRING &&
270
423
  !isEmptyString(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.getAttribute("max-lines"))) {
271
- this.resetShowHideTruncation(typographyEl);
424
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
272
425
  }
273
426
  }
274
427
  };
275
- this.dataTruncation = (typographyEl) => {
276
- var _a;
428
+ this.addShowHideTruncationIfNeeded = (typographyEl, cellContainer) => {
429
+ if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
430
+ this.addShowHideTruncation(cellContainer, typographyEl);
431
+ return true;
432
+ }
433
+ return false;
434
+ };
435
+ this.dataTruncation = (typographyEl, cellContainer) => {
277
436
  // Tooltip truncation mentioned in AC. Will need revisiting
278
437
  const tooltip = this.getTooltip(typographyEl);
279
- const cellContainer = this.getCellContainer(typographyEl);
280
- if (!cellContainer ||
281
- cellContainer.classList.contains("data-type-element") ||
438
+ if (cellContainer.classList.contains("data-type-element") ||
282
439
  this.dataUpdated) {
283
440
  return;
284
441
  }
285
442
  if (this.truncationPattern === this.SHOW_HIDE_STRING &&
286
- ((_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"))) {
287
- const showHideBtn = typographyEl.shadowRoot.querySelector("button");
443
+ this.getShowHideButton(typographyEl)) {
288
444
  // If the see more/see less is present and the max lines is equal to the cell container
289
445
  // remove the see more/see less button
290
- if (showHideBtn) {
291
- const truncWrapper = this.getTruncWrapper(typographyEl);
292
- if (truncWrapper &&
293
- this.getLines(truncWrapper.scrollHeight) ===
294
- Number(typographyEl.getAttribute("max-lines"))) {
295
- this.resetShowHideTruncation(typographyEl);
296
- }
446
+ const truncWrapper = this.getTruncWrapper(typographyEl);
447
+ if (truncWrapper &&
448
+ this.getLines(truncWrapper.scrollHeight) ===
449
+ Number(typographyEl.getAttribute("max-lines"))) {
450
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
297
451
  }
298
452
  }
299
453
  // Deals with setting and resetting row height and re-truncating data
300
454
  if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
301
- const truncWrapper = this.getTruncWrapper(typographyEl);
302
455
  // cellContainer.clientHeight - 24 removes the extra line by see more/see less
303
- if (truncWrapper &&
304
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
305
- truncWrapper.scrollHeight) {
306
- this.resetShowHideTruncation(typographyEl);
456
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
457
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
307
458
  return;
308
459
  }
309
- if (typographyEl.scrollHeight > cellContainer.clientHeight) {
310
- this.addShowHideTruncation(cellContainer, typographyEl);
460
+ if (this.addShowHideTruncationIfNeeded(typographyEl, cellContainer)) {
311
461
  return;
312
462
  }
313
463
  }
314
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > 0 &&
315
- (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > 0 &&
316
- (typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) === (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
464
+ if (typographyEl.scrollHeight > 0 &&
465
+ cellContainer.clientHeight > 0 &&
466
+ typographyEl.scrollHeight === cellContainer.clientHeight) {
317
467
  if (tooltip) {
318
468
  this.removeTooltip(cellContainer, typographyEl, tooltip);
319
469
  }
@@ -322,6 +472,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
322
472
  this.truncate(typographyEl, cellContainer, tooltip);
323
473
  };
324
474
  this.getTruncWrapper = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".trunc-wrapper"); };
475
+ this.getShowHideButton = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"); };
325
476
  this.removeTextWrap = () => {
326
477
  this.getTypographyElements().forEach((typographyEl) => {
327
478
  const tableCell = typographyEl.closest("td");
@@ -333,6 +484,37 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
333
484
  this.getCellContainer = (typographyEl) => typographyEl.closest(".cell-container");
334
485
  this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
335
486
  array.forEach((val) => val.textWrap && delete val.textWrap);
487
+ this.resetSingleShowHideTruncation = (typographyEl, cellContainer) => {
488
+ const truncWrapper = this.getTruncWrapper(typographyEl);
489
+ if (!(cellContainer && truncWrapper))
490
+ return;
491
+ if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
492
+ !isEmptyString(typographyEl.getAttribute("max-lines")) &&
493
+ Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
494
+ Number(typographyEl.getAttribute("max-lines"))) {
495
+ typographyEl.checkMaxLines(truncWrapper.scrollHeight);
496
+ typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
497
+ typographyEl.setShowHideExpanded(false);
498
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
499
+ }
500
+ else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
501
+ typographyEl.resetTruncation().then(() => {
502
+ if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
503
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
504
+ }
505
+ });
506
+ }
507
+ };
508
+ this.resetAllShowHideTruncation = () => {
509
+ this.getTypographyElements().forEach((typographyEl) => {
510
+ const cellContainer = this.getCellContainer(typographyEl);
511
+ typographyEl.resetTruncation().then(() => {
512
+ if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
513
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
514
+ }
515
+ });
516
+ });
517
+ };
336
518
  this.startLoadingTimer = () => {
337
519
  this.hasLoadedForOneSecond = false;
338
520
  this.timerStarted = Date.now();
@@ -411,31 +593,25 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
411
593
  gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
412
594
  });
413
595
  };
414
- this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
415
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
596
+ this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
597
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
416
598
  return (h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
417
599
  !isSlotUsed(this.el, cellSlotName)
418
600
  ? cell
419
- : undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", [`cell-alignment-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
420
- ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
421
- rowAlignment ||
422
- this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
423
- !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
424
- !!rowAlignment ||
425
- !!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
426
- ((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
427
- this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
428
- !!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
601
+ : undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", [`cell-alignment-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.horizontal) ||
602
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
603
+ this.getCellAlignment(cell, "horizontal")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
604
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
429
605
  !!this.getCellAlignment(cell, "horizontal"), [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true, [this.TEXT_WRAP_STRING]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) ||
430
606
  (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
431
- !!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((_j = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _j === void 0 ? void 0 : _j.icon), [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
607
+ !!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _e === void 0 ? void 0 : _e.icon), [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
432
608
  (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
433
609
  rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
434
610
  !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
435
611
  !!rowEmphasis }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getCalculatedRowHeight(columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell, currentRowHeight)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
436
612
  ? this.setRowHeight(currentRowHeight)
437
- : null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) &&
438
- (cellValue("icon") || ((_l = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _l === void 0 ? void 0 : _l.icon)) && (h("span", { class: "icon", innerHTML: cellValue("icon") || ((_m = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _m === void 0 ? void 0 : _m.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
613
+ : null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_f = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _f === void 0 ? void 0 : _f.onAllCells)) &&
614
+ (cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (h("span", { class: "icon", innerHTML: cellValue("icon") || ((_h = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _h === void 0 ? void 0 : _h.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
439
615
  !isSlotUsed(this.el, cellSlotName) && (h("div", { class: {
440
616
  "cell-text-wrapper": true,
441
617
  "cell-text-no-wrap": !this.truncationPattern,
@@ -450,7 +626,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
450
626
  Object.keys(cell).includes("description") && (h("div", { class: {
451
627
  ["cell-description"]: true,
452
628
  [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
453
- } }, ((_o = cellValue("description")) === null || _o === void 0 ? void 0 : _o.icon) && (h("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), h("ic-typography", { variant: "caption", class: "cell-description-text" }, (_q = (_p = cellValue("description")) === null || _p === void 0 ? void 0 : _p.data) !== null && _q !== void 0 ? _q : cellValue("description"))))))))));
629
+ } }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (h("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), h("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
454
630
  };
455
631
  this.createCells = (row, rowIndex) => {
456
632
  var _a;
@@ -468,6 +644,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
468
644
  ? variableRowHeightVal !== "auto" && variableRowHeightVal
469
645
  : this.globalRowHeight !== "auto" && this.globalRowHeight;
470
646
  return this.columns.map((columnName, index) => {
647
+ var _a, _b, _c, _d;
471
648
  const cell = this.getObjectValue(row, columnName["key"]);
472
649
  const columnProps = this.columns[index];
473
650
  const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
@@ -480,12 +657,19 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
480
657
  ["row-header-sticky"]: this.stickyRowHeaders,
481
658
  } }, cellValue("title")));
482
659
  }
483
- const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
660
+ const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
484
661
  if (rowKeys[index] !== "rowOptions") {
485
662
  return (h("td", { class: {
486
663
  ["table-cell"]: true,
487
664
  [`table-density-${this.density}`]: this.notDefaultDensity(),
488
665
  ["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
666
+ [`cell-vertical-align-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
667
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
668
+ rowAlignment ||
669
+ this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
670
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
671
+ !!rowAlignment ||
672
+ !!this.getCellAlignment(cell, "vertical"),
489
673
  }, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, this.isObject(cell) &&
490
674
  Object.keys(cell).includes("actionElement") ? (h("div", { class: "cell-grid-wrapper" }, CellContent, h("span", { class: "action-element", innerHTML: cellValue("actionElement"),
491
675
  // eslint-disable-next-line react/jsx-no-bind
@@ -672,52 +856,50 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
672
856
  cellContainer.setAttribute(this.DATA_ROW_HEIGHT_STRING, rowHeight.toString());
673
857
  cellContainer.setAttribute("style", `${this.ROW_HEIGHT_CSS_VARIABLE}: ${rowHeight}px`);
674
858
  };
859
+ this.getDescriptionHeight = (description) => {
860
+ const descriptionMarginTop = window
861
+ .getComputedStyle(description)
862
+ .getPropertyValue("margin-top");
863
+ return description.clientHeight + parseInt(descriptionMarginTop, 10);
864
+ };
675
865
  /** Method to update the row heights on cells with descriptions and tooltip truncation */
676
866
  this.updateCellHeightsWithDescriptions = () => {
677
867
  var _a, _b;
868
+ const isXSDevice = deviceSizeMatches(IC_DEVICE_SIZES.XS);
678
869
  (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.CELL_DESCRIPTION_STRING)) === null || _b === void 0 ? void 0 : _b.forEach((description) => {
679
870
  const cellContainer = description.closest(`.${this.CELL_CONTAINER_WITH_DESCRIPTION_STRING}`);
680
871
  const typography = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(this.IC_TYPOGRAPHY_STRING);
681
- const descriptionMarginTop = window
682
- .getComputedStyle(description)
683
- .getPropertyValue("margin-top");
684
- const descriptionHeight = description.clientHeight + parseInt(descriptionMarginTop, 10);
685
872
  if (typography &&
686
873
  cellContainer &&
687
874
  this.globalRowHeight &&
688
875
  this.globalRowHeight !== "auto") {
876
+ const descriptionHeight = this.getDescriptionHeight(description);
877
+ const descriptionHeightPlusLineHeight = descriptionHeight + this.DEFAULT_LINE_HEIGHT;
689
878
  if (!typography.textContent &&
690
- descriptionHeight + this.DEFAULT_LINE_HEIGHT > this.globalRowHeight) {
879
+ descriptionHeightPlusLineHeight > this.globalRowHeight) {
691
880
  this.updateRowHeightForDescriptions(descriptionHeight, cellContainer);
692
881
  }
693
882
  else if (this.truncationPattern === this.TOOLTIP_STRING) {
694
- if (descriptionHeight + this.DEFAULT_LINE_HEIGHT >
695
- this.globalRowHeight) {
883
+ if (descriptionHeightPlusLineHeight > this.globalRowHeight) {
696
884
  const cellIcon = cellContainer.querySelector(".icon");
697
- if (deviceSizeMatches(IC_DEVICE_SIZES.XS) && cellIcon) {
885
+ let rowHeight = descriptionHeightPlusLineHeight;
886
+ if (cellIcon && isXSDevice) {
698
887
  // recalculate descriptionHeight as when a word break occurs this value changes
699
888
  // Additional spacing given for 300-400% zoom
700
- this.updateRowHeightForDescriptions(descriptionHeight +
701
- this.DEFAULT_LINE_HEIGHT +
702
- cellIcon.clientHeight, cellContainer);
703
- }
704
- else {
705
- this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
889
+ rowHeight += cellIcon.clientHeight;
706
890
  }
891
+ this.updateRowHeightForDescriptions(rowHeight, cellContainer);
707
892
  }
708
893
  this.addLineClampCSS(typography, cellContainer);
709
894
  // Additional case for show/hide truncation for when a description is present, but the text
710
895
  // isn't overflowing the cell to trigger the show more button to appear.
711
896
  }
712
897
  else if (this.truncationPattern === this.SHOW_HIDE_STRING &&
713
- descriptionHeight + this.DEFAULT_LINE_HEIGHT >
714
- this.globalRowHeight &&
898
+ descriptionHeightPlusLineHeight > this.globalRowHeight &&
715
899
  typography.style.getPropertyValue("--truncation-max-lines") !==
716
900
  "initial") {
717
- this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
718
- if (descriptionHeight) {
719
- this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
720
- }
901
+ this.updateRowHeightForDescriptions(descriptionHeightPlusLineHeight, cellContainer);
902
+ this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
721
903
  }
722
904
  }
723
905
  });
@@ -768,12 +950,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
768
950
  this.fixCellTooltip(slottedEl);
769
951
  });
770
952
  });
771
- (_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => {
772
- const actionElement = actionElementSpan.firstChild;
773
- if (actionElement) {
774
- this.fixCellTooltip(actionElement);
775
- }
776
- });
953
+ (_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => this.fixCellTooltip(actionElementSpan));
777
954
  };
778
955
  this.handleClick = (event, callback) => callback(event);
779
956
  this.renderTableBody = (loading, data, overlay) => {
@@ -873,10 +1050,19 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
873
1050
  const cellContainer = this.getCellContainer(typographyEl);
874
1051
  if (cellContainer &&
875
1052
  !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
876
- this.dataTruncation(typographyEl);
1053
+ this.dataTruncation(typographyEl, cellContainer);
1054
+ this.resizeObserver = new ResizeObserver(
1055
+ // This gets triggered twice due to updated data and see more/see less button
1056
+ dynamicDebounce(() => {
1057
+ this.dataTruncation(typographyEl, cellContainer);
1058
+ if (!this.isNewDebounceDelaySet) {
1059
+ this.debounceDelay = 200;
1060
+ this.isNewDebounceDelaySet = true;
1061
+ }
1062
+ }, () => this.debounceDelay));
1063
+ this.resizeObserver.observe(typographyEl);
877
1064
  }
878
1065
  });
879
- this.debounceDataTruncation();
880
1066
  }
881
1067
  if (this.globalRowHeight !== "auto") {
882
1068
  this.updateSetRowHeight();
@@ -888,188 +1074,34 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
888
1074
  // rendered to take into account updated .cell-container/ic-typography box model updates.
889
1075
  if (this.truncationPattern === this.SHOW_HIDE_STRING ||
890
1076
  this.truncationPattern === this.TOOLTIP_STRING) {
891
- this.truncateUpdatedData();
892
- }
893
- }
894
- componentDidRender() {
895
- this.fixCellTooltips();
896
- this.updateCellHeightsWithDescriptions();
897
- this.adjustWidthForActionElement();
898
- }
899
- truncateUpdatedData() {
900
- var _a;
901
- if (this.dataUpdated) {
902
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
903
- this.getTypographyElements().forEach((typographyEl) => {
904
- const truncWrapper = this.getTruncWrapper(typographyEl);
905
- const cellContainer = this.getCellContainer(typographyEl);
906
- if (truncWrapper &&
907
- cellContainer &&
908
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
909
- truncWrapper.scrollHeight) {
910
- this.resetShowHideTruncation(typographyEl);
911
- return;
912
- }
913
- setTimeout(() => {
914
- // slight delay due to data rendering
915
- if (cellContainer &&
916
- typographyEl.scrollHeight > cellContainer.clientHeight) {
917
- this.addShowHideTruncation(cellContainer, typographyEl);
918
- }
919
- }, 150);
920
- });
921
- }
922
- if (this.truncationPattern === this.TOOLTIP_STRING) {
923
- this.updateTruncationTooltip();
1077
+ if (this.dataUpdated) {
1078
+ this.truncateUpdatedData();
924
1079
  }
925
- this.dataUpdated = false;
926
- }
927
- if (this.tableSorted) {
928
- if (this.truncationPattern === this.TOOLTIP_STRING) {
929
- this.updateTruncationTooltip();
930
- }
931
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
932
- this.getTypographyElements().forEach((typographyEl) => {
933
- const cellContainer = this.getCellContainer(typographyEl);
934
- if (cellContainer) {
935
- if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
936
- this.createShowHideTruncation(typographyEl, cellContainer);
937
- }
938
- else {
939
- typographyEl.resetTruncation().then(() => {
940
- cellContainer.removeAttribute("style");
941
- });
942
- }
943
- }
944
- });
1080
+ if (this.tableSorted) {
1081
+ this.truncateTableSorted();
945
1082
  }
946
- this.tableSorted = false;
947
- }
948
- // This function recalculates the tooltip truncation when the rowHeight has been set.
949
- // This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
950
- if (this.rowHeightSet) {
951
- this.getTypographyElements().forEach((typographyEl) => {
952
- var _a, _b;
953
- const cellContainer = this.getCellContainer(typographyEl);
954
- const tooltipEl = this.getTooltip(typographyEl);
955
- if (cellContainer) {
956
- if (this.globalRowHeight === "auto") {
957
- cellContainer.style.height = "";
958
- if (this.truncationPattern === this.TOOLTIP_STRING) {
959
- this.removeTooltip(cellContainer, typographyEl, tooltipEl);
960
- typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
961
- }
962
- else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
963
- this.resetShowHideTruncation(typographyEl);
964
- }
965
- return;
966
- }
967
- // If the set row height is bigger than the cell container even
968
- // with textWrap, set the row height
969
- if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
970
- !((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
971
- this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
972
- !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
973
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
974
- }
975
- if (this.truncationPattern) {
976
- // If the set row height is bigger than the typography truncation wrapper
977
- // scroll height, remove see more / see less button
978
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
979
- const truncWrapper = this.getTruncWrapper(typographyEl);
980
- const showHideBtn = (_b = typographyEl.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
981
- if (showHideBtn &&
982
- truncWrapper &&
983
- truncWrapper.scrollHeight <= cellContainer.clientHeight) {
984
- this.resetShowHideTruncation(typographyEl);
985
- return;
986
- }
987
- }
988
- this.truncate(typographyEl, cellContainer, tooltipEl);
989
- }
990
- else {
991
- this.updateSetRowHeight(typographyEl);
992
- }
993
- }
994
- });
995
- this.rowHeightSet = false;
996
- }
997
- // Only run truncation on the new rows
998
- // when the number of items per page has increased
999
- if (this.itemsPerPageChange) {
1000
- const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
1001
- if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
1002
- const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
1003
- newRows.forEach((row) => {
1004
- row.querySelectorAll("ic-typography").forEach((typographyEl) => {
1005
- const cellContainer = this.getCellContainer(typographyEl);
1006
- const tooltipEl = this.getTooltip(typographyEl);
1007
- if (cellContainer)
1008
- this.truncate(typographyEl, cellContainer, tooltipEl);
1009
- });
1010
- });
1083
+ if (this.rowHeightSet) {
1084
+ this.truncateRowHeightSet();
1011
1085
  }
1012
- this.previousItemsPerPage = this.rowsPerPage;
1013
- this.itemsPerPageChange = false;
1014
- }
1015
- if (!this.initialLoad && this.icPageChangeEvent) {
1016
- if (this.truncationPattern === this.TOOLTIP_STRING) {
1017
- this.updateTruncationTooltip();
1086
+ if (this.itemsPerPageChange) {
1087
+ this.truncateItemsPerPageChange();
1018
1088
  }
1019
- // set truncation to see more if opened and next/previous page is pressed
1020
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1021
- this.getTypographyElements().forEach((typographyEl) => {
1022
- var _a;
1023
- const cellContainer = this.getCellContainer(typographyEl);
1024
- const showHideBtn = (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
1025
- if (cellContainer &&
1026
- (typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
1027
- !showHideBtn) {
1028
- this.addShowHideTruncation(cellContainer, typographyEl);
1029
- }
1030
- });
1089
+ if (!this.initialLoad && this.icPageChangeEvent) {
1090
+ this.truncatePageChange();
1031
1091
  }
1032
- this.icPageChangeEvent = false;
1033
- }
1034
- if (this.densityUpdate) {
1035
- this.getTypographyElements().forEach((typographyEl) => {
1036
- const cellContainer = this.getCellContainer(typographyEl);
1037
- const tooltipEl = this.getTooltip(typographyEl);
1038
- if (cellContainer)
1039
- this.truncate(typographyEl, cellContainer, tooltipEl);
1040
- });
1041
- this.densityUpdate = false;
1042
- }
1043
- if (this.truncationPatternUpdated) {
1044
- if (this.truncationPattern === this.TOOLTIP_STRING) {
1045
- this.getTypographyElements().forEach((typographyEl) => {
1046
- const cellContainer = this.getCellContainer(typographyEl);
1047
- const tooltipEl = this.getTooltip(typographyEl);
1048
- if (cellContainer &&
1049
- typographyEl.scrollHeight > cellContainer.clientHeight) {
1050
- this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
1051
- }
1052
- });
1092
+ if (this.densityUpdate) {
1093
+ this.truncateDensityUpdate();
1053
1094
  }
1054
- else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1055
- this.getTypographyElements().forEach((typographyEl) => {
1056
- const truncWrapper = this.getTruncWrapper(typographyEl);
1057
- const cellContainer = this.getCellContainer(typographyEl);
1058
- if (cellContainer) {
1059
- if (truncWrapper &&
1060
- (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
1061
- truncWrapper.scrollHeight) {
1062
- this.resetShowHideTruncation(typographyEl);
1063
- return;
1064
- }
1065
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
1066
- this.addShowHideTruncation(cellContainer, typographyEl);
1067
- }
1068
- }
1069
- });
1095
+ if (this.truncationPatternUpdated) {
1096
+ this.truncatePatternUpdated();
1070
1097
  }
1071
1098
  }
1072
1099
  }
1100
+ componentDidRender() {
1101
+ this.fixCellTooltips();
1102
+ this.updateCellHeightsWithDescriptions();
1103
+ this.adjustWidthForActionElement();
1104
+ }
1073
1105
  createShowHideTruncation(typographyEl, cellContainer, descriptionHeight = 0) {
1074
1106
  typographyEl.checkMaxLines(typographyEl.scrollHeight);
1075
1107
  typographyEl.setAttribute("max-lines", `${this.getLines(cellContainer.clientHeight - descriptionHeight)}`);
@@ -1133,18 +1165,17 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
1133
1165
  handleDensityChange(ev) {
1134
1166
  this.density = ev.detail.value;
1135
1167
  }
1136
- loadingHandler(newValue) {
1137
- if (newValue)
1138
- this.startLoadingTimer();
1168
+ loadingHandler() {
1139
1169
  if (this.loading) {
1170
+ this.startLoadingTimer();
1140
1171
  setTimeout(() => {
1141
1172
  this.showLoadingIndicator();
1142
1173
  }, 500);
1143
1174
  }
1144
1175
  }
1145
- truncationPatternHandler(newValue) {
1146
- if (newValue === this.TOOLTIP_STRING) {
1147
- this.resetShowHideTruncation();
1176
+ truncationPatternHandler() {
1177
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
1178
+ this.resetAllShowHideTruncation();
1148
1179
  this.updateTruncationTooltip(true);
1149
1180
  // Not using debounceDataTruncation here due to resizeObserver not being triggered
1150
1181
  this.getTypographyElements().forEach((typographyEl) => {
@@ -1154,25 +1185,20 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
1154
1185
  this.truncate(typographyEl, cellContainer, tooltip);
1155
1186
  });
1156
1187
  }
1157
- if (newValue === this.SHOW_HIDE_STRING) {
1188
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1158
1189
  // ResizeObserver is trigger here due to the see more/see less links being removed.
1159
1190
  // The resizeObserver will also apply the tooltip where relevant
1160
1191
  this.updateTruncationTooltip(true);
1161
1192
  this.getTypographyElements().forEach((typographyEl) => {
1162
- const truncWrapper = this.getTruncWrapper(typographyEl);
1163
1193
  const cellContainer = this.getCellContainer(typographyEl);
1164
1194
  if (cellContainer) {
1165
- if (truncWrapper &&
1166
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
1167
- truncWrapper.scrollHeight) {
1168
- this.resetShowHideTruncation(typographyEl);
1195
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
1196
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
1169
1197
  return;
1170
1198
  }
1171
1199
  setTimeout(() => {
1172
1200
  // slight delay due to data rendering
1173
- if (typographyEl.scrollHeight > cellContainer.clientHeight) {
1174
- this.addShowHideTruncation(cellContainer, typographyEl);
1175
- }
1201
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
1176
1202
  }, 150);
1177
1203
  }
1178
1204
  });
@@ -1194,40 +1220,6 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
1194
1220
  async densityHandler() {
1195
1221
  this.densityUpdate = true;
1196
1222
  }
1197
- resetShowHideTruncation(typographyEl) {
1198
- if (typographyEl) {
1199
- const truncWrapper = this.getTruncWrapper(typographyEl);
1200
- const cellContainer = this.getCellContainer(typographyEl);
1201
- if (!(cellContainer && truncWrapper))
1202
- return;
1203
- if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
1204
- !isEmptyString(typographyEl.getAttribute("max-lines")) &&
1205
- Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
1206
- Number(typographyEl.getAttribute("max-lines"))) {
1207
- typographyEl.checkMaxLines(truncWrapper.scrollHeight);
1208
- typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
1209
- typographyEl.setShowHideExpanded(false);
1210
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
1211
- }
1212
- else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
1213
- typographyEl.resetTruncation().then(() => {
1214
- if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
1215
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
1216
- }
1217
- });
1218
- }
1219
- }
1220
- else {
1221
- this.getTypographyElements().forEach((typographyEl) => {
1222
- const cellContainer = this.getCellContainer(typographyEl);
1223
- typographyEl.resetTruncation().then(() => {
1224
- if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
1225
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
1226
- }
1227
- });
1228
- });
1229
- }
1230
- }
1231
1223
  rowHeightChangeHandler(newValue, oldValue) {
1232
1224
  if (+newValue !== +oldValue) {
1233
1225
  this.deleteTextWrapDataKey(this.data);
@@ -1326,22 +1318,22 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
1326
1318
  ? "deselect all"
1327
1319
  : "select all remaining"
1328
1320
  : "select all";
1329
- return (h(Host, { key: 'b1a8a027c223f8ec8a82eaeadc6fcd584bcadaa3', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, h("div", { key: '7abde36f7f17075a3f25632a14090fe85c6c610d', class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { key: '8ef1e2c34b7a0aed1558fb393dda3c869b1fed1e', name: "title-bar" }), h("div", { key: '39984060ae40b37df7a84ff46f1d73a355ba491b', class: {
1321
+ return (h(Host, { key: '2b548f8d26428034d51e7475883d6e7b407f28ec', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, h("div", { key: '5663c5ce124cf6f67435a8d18ddda4bc63a88e4f', class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { key: '1ea59340e9633ca9a2f6d9fdba53d734050ddf84', name: "title-bar" }), h("div", { key: 'f2aef7502ca0c4124bf70b0fb4173e29b892004b', class: {
1330
1322
  ["table-row-container"]: true,
1331
1323
  scrollable,
1332
- }, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '7c7fe1ce4ff82644f52325129f392b5d6dfb7635', style: {
1324
+ }, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '061ab3f20e857b05a4cd668656b0a730f1d0645a', style: {
1333
1325
  "--table-layout": tableLayout,
1334
- } }, h("caption", { key: 'de772f10cbaa802c0df5be9225312a946b64fdaa', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: '5e41deeb29ab3a0f4b2daf9a17b6ed0cd2a756e7', class: {
1326
+ } }, h("caption", { key: '727550fa24947c102cd231b1a4e262ffcba6e3b3', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: 'c07fa1fddf4fa8364c52444a3cc8df0d1bdaabaf', class: {
1335
1327
  ["column-header-sticky"]: stickyColumnHeaders,
1336
1328
  ["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
1337
- } }, h("tr", { key: '93b3e712a034c666d90329bcd0c9e05d64f2633b' }, rowSelection && data && (h("th", { key: '38be7fab691d5cf1db9c817134dc2fa64b28073e', class: {
1329
+ } }, h("tr", { key: '01735185f99abdd22a71edcaf944642d6e2c45de' }, rowSelection && data && (h("th", { key: '40c7157f3f3e45b6e9a9a0dfc65e2374526e150d', class: {
1338
1330
  "column-header": true,
1339
1331
  "checkbox-cell": true,
1340
1332
  "updating-state-headers": updating && !loading,
1341
1333
  [`table-density-${density}`]: this.notDefaultDensity(),
1342
- } }, h("div", { key: 'ff716f89433450095aad287521f76e5bfc630646', class: "checkbox-wrapper" }, h("ic-checkbox", { key: '88b6dbb7c0320233ef273cc23951e7b347955e79', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
1334
+ } }, h("div", { key: '8d53b98f553294d9b2b9483f4ed001da905fcff4', class: "checkbox-wrapper" }, h("ic-checkbox", { key: 'b08cd440baff49256037e3ca3d27059a64c19d98', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
1343
1335
  !loading &&
1344
- (hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), h("div", { key: '6f01be0ef7e54bf99cae567dca5cb75c271d2a6f', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (h("div", { key: '0d01727d838b4f4e5cce597bbbebb14721904f25', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (h("slot", { name: "pagination-bar" })) : (h("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (h("div", { key: 'c73c4ffe5a0633bce3ccf116a69e3007342b27af', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
1336
+ (hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), h("div", { key: '8ddc07463825ac2c637cf7f413840acc2662d2c2', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (h("div", { key: 'd619ff136af4258047c21f7ea83ad8dd9ec77873', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (h("slot", { name: "pagination-bar" })) : (h("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (h("div", { key: 'f0a61b27a9e5dda26ed7c7ad0b4b7cadb0d910d7', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
1345
1337
  ? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
1346
1338
  sortedColumn} sorted ${sortedColumnOrder}`
1347
1339
  : "table unsorted")))));