@ukic/canary-web-components 3.0.0-canary.17 → 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 (575) 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/{helpers-e2bbcec9.js → helpers-f4e7322b.js} +21 -37
  5. package/dist/cjs/helpers-f4e7322b.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +10 -8
  8. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js +2 -2
  10. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-badge.cjs.entry.js +4 -4
  13. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
  17. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-button_3.cjs.entry.js +110 -131
  19. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
  22. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-checkbox_3.cjs.entry.js +50 -66
  26. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-chip.cjs.entry.js +26 -38
  28. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  30. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  32. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/ic-data-table.cjs.entry.js +312 -320
  35. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
  38. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  39. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  43. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-hero.cjs.entry.js +7 -6
  46. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  48. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +23 -22
  50. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
  52. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-link.cjs.entry.js +12 -4
  54. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  56. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
  58. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  60. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-navigation-group.cjs.entry.js +116 -164
  62. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-navigation-item.cjs.entry.js +65 -62
  64. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  66. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  68. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-pagination_4.cjs.entry.js +184 -252
  70. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
  72. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  74. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  76. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-search-bar.cjs.entry.js +149 -154
  78. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  80. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-side-navigation.cjs.entry.js +25 -6
  82. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  84. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  86. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  88. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  90. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  92. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  94. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  96. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  98. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  100. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  102. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  104. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  106. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  108. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +54 -68
  110. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ic-toggle-button.cjs.entry.js +62 -64
  112. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ic-top-navigation.cjs.entry.js +65 -63
  114. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ic-tree-item.cjs.entry.js +8 -3
  116. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
  118. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  119. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  120. package/dist/cjs/loader.cjs.js +1 -1
  121. package/dist/collection/components/ic-data-table/ic-data-table.css +3 -5
  122. package/dist/collection/components/ic-data-table/ic-data-table.js +311 -319
  123. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  124. package/dist/collection/components/ic-data-table/story-data.js +1 -0
  125. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  126. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +30 -22
  127. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  128. package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -2
  129. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  130. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +13 -1
  131. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
  132. package/dist/collection/utils/helpers.js +23 -51
  133. package/dist/collection/utils/helpers.js.map +1 -1
  134. package/dist/collection/utils/types.js.map +1 -1
  135. package/dist/components/helpers.js +20 -36
  136. package/dist/components/helpers.js.map +1 -1
  137. package/dist/components/helpers2.js +12 -20
  138. package/dist/components/helpers2.js.map +1 -1
  139. package/dist/components/ic-accordion.js +9 -7
  140. package/dist/components/ic-accordion.js.map +1 -1
  141. package/dist/components/ic-alert.js +1 -1
  142. package/dist/components/ic-alert.js.map +1 -1
  143. package/dist/components/ic-badge.js +3 -3
  144. package/dist/components/ic-badge.js.map +1 -1
  145. package/dist/components/ic-breadcrumb-group.js +57 -78
  146. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  147. package/dist/components/ic-breadcrumb2.js +32 -51
  148. package/dist/components/ic-breadcrumb2.js.map +1 -1
  149. package/dist/components/ic-button2.js +105 -126
  150. package/dist/components/ic-button2.js.map +1 -1
  151. package/dist/components/ic-card-vertical.js +5 -5
  152. package/dist/components/ic-card-vertical.js.map +1 -1
  153. package/dist/components/ic-checkbox-group.js +8 -9
  154. package/dist/components/ic-checkbox-group.js.map +1 -1
  155. package/dist/components/ic-checkbox2.js +39 -43
  156. package/dist/components/ic-checkbox2.js.map +1 -1
  157. package/dist/components/ic-chip.js +28 -40
  158. package/dist/components/ic-chip.js.map +1 -1
  159. package/dist/components/ic-data-list.js +2 -2
  160. package/dist/components/ic-data-list.js.map +1 -1
  161. package/dist/components/ic-data-row.js +2 -2
  162. package/dist/components/ic-data-row.js.map +1 -1
  163. package/dist/components/ic-data-table.js +312 -320
  164. package/dist/components/ic-data-table.js.map +1 -1
  165. package/dist/components/ic-dialog.js +1 -1
  166. package/dist/components/ic-dialog.js.map +1 -1
  167. package/dist/components/ic-empty-state2.js +2 -2
  168. package/dist/components/ic-empty-state2.js.map +1 -1
  169. package/dist/components/ic-footer-link.js +2 -2
  170. package/dist/components/ic-footer-link.js.map +1 -1
  171. package/dist/components/ic-hero.js +6 -5
  172. package/dist/components/ic-hero.js.map +1 -1
  173. package/dist/components/ic-horizontal-scroll2.js +5 -5
  174. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  175. package/dist/components/ic-input-component-container2.js +3 -3
  176. package/dist/components/ic-input-component-container2.js.map +1 -1
  177. package/dist/components/ic-input-container2.js +2 -2
  178. package/dist/components/ic-input-container2.js.map +1 -1
  179. package/dist/components/ic-input-label2.js +4 -4
  180. package/dist/components/ic-input-label2.js.map +1 -1
  181. package/dist/components/ic-input-validation2.js +3 -3
  182. package/dist/components/ic-input-validation2.js.map +1 -1
  183. package/dist/components/ic-link2.js +11 -3
  184. package/dist/components/ic-link2.js.map +1 -1
  185. package/dist/components/ic-loading-indicator2.js +3 -3
  186. package/dist/components/ic-loading-indicator2.js.map +1 -1
  187. package/dist/components/ic-menu-group.js +1 -1
  188. package/dist/components/ic-menu-group.js.map +1 -1
  189. package/dist/components/ic-menu-item2.js +4 -4
  190. package/dist/components/ic-menu-item2.js.map +1 -1
  191. package/dist/components/ic-menu2.js +17 -16
  192. package/dist/components/ic-menu2.js.map +1 -1
  193. package/dist/components/ic-navigation-button.js +2 -2
  194. package/dist/components/ic-navigation-button.js.map +1 -1
  195. package/dist/components/ic-navigation-group.js +115 -163
  196. package/dist/components/ic-navigation-group.js.map +1 -1
  197. package/dist/components/ic-navigation-item.js +67 -62
  198. package/dist/components/ic-navigation-item.js.map +1 -1
  199. package/dist/components/ic-navigation-menu2.js +4 -4
  200. package/dist/components/ic-navigation-menu2.js.map +1 -1
  201. package/dist/components/ic-page-header.js +6 -6
  202. package/dist/components/ic-page-header.js.map +1 -1
  203. package/dist/components/ic-pagination-bar2.js +12 -23
  204. package/dist/components/ic-pagination-bar2.js.map +1 -1
  205. package/dist/components/ic-pagination-item2.js +1 -1
  206. package/dist/components/ic-pagination-item2.js.map +1 -1
  207. package/dist/components/ic-pagination2.js +4 -4
  208. package/dist/components/ic-pagination2.js.map +1 -1
  209. package/dist/components/ic-popover-menu.js +7 -6
  210. package/dist/components/ic-popover-menu.js.map +1 -1
  211. package/dist/components/ic-radio-group.js +4 -4
  212. package/dist/components/ic-radio-group.js.map +1 -1
  213. package/dist/components/ic-radio-option.js +4 -4
  214. package/dist/components/ic-radio-option.js.map +1 -1
  215. package/dist/components/ic-search-bar.js +150 -154
  216. package/dist/components/ic-search-bar.js.map +1 -1
  217. package/dist/components/ic-section-container2.js +2 -2
  218. package/dist/components/ic-section-container2.js.map +1 -1
  219. package/dist/components/ic-select2.js +141 -217
  220. package/dist/components/ic-select2.js.map +1 -1
  221. package/dist/components/ic-side-navigation.js +25 -5
  222. package/dist/components/ic-side-navigation.js.map +1 -1
  223. package/dist/components/ic-skeleton.js +2 -2
  224. package/dist/components/ic-skeleton.js.map +1 -1
  225. package/dist/components/ic-skip-link.js +2 -2
  226. package/dist/components/ic-skip-link.js.map +1 -1
  227. package/dist/components/ic-status-tag.js +2 -2
  228. package/dist/components/ic-status-tag.js.map +1 -1
  229. package/dist/components/ic-step.js +13 -13
  230. package/dist/components/ic-step.js.map +1 -1
  231. package/dist/components/ic-stepper.js +2 -2
  232. package/dist/components/ic-stepper.js.map +1 -1
  233. package/dist/components/ic-switch.js +5 -5
  234. package/dist/components/ic-switch.js.map +1 -1
  235. package/dist/components/ic-tab-context.js +1 -1
  236. package/dist/components/ic-tab-context.js.map +1 -1
  237. package/dist/components/ic-tab-group.js +2 -2
  238. package/dist/components/ic-tab-group.js.map +1 -1
  239. package/dist/components/ic-tab-panel.js +2 -2
  240. package/dist/components/ic-tab-panel.js.map +1 -1
  241. package/dist/components/ic-tab.js +2 -2
  242. package/dist/components/ic-tab.js.map +1 -1
  243. package/dist/components/ic-text-field2.js +39 -30
  244. package/dist/components/ic-text-field2.js.map +1 -1
  245. package/dist/components/ic-theme.js +1 -1
  246. package/dist/components/ic-theme.js.map +1 -1
  247. package/dist/components/ic-toast-region.js +1 -1
  248. package/dist/components/ic-toast-region.js.map +1 -1
  249. package/dist/components/ic-toast.js +3 -3
  250. package/dist/components/ic-toast.js.map +1 -1
  251. package/dist/components/ic-toggle-button-group.js +53 -67
  252. package/dist/components/ic-toggle-button-group.js.map +1 -1
  253. package/dist/components/ic-toggle-button.js +61 -63
  254. package/dist/components/ic-toggle-button.js.map +1 -1
  255. package/dist/components/ic-tooltip2.js +2 -2
  256. package/dist/components/ic-tooltip2.js.map +1 -1
  257. package/dist/components/ic-top-navigation.js +65 -63
  258. package/dist/components/ic-top-navigation.js.map +1 -1
  259. package/dist/components/ic-tree-item.js +8 -2
  260. package/dist/components/ic-tree-item.js.map +1 -1
  261. package/dist/components/ic-tree-view.js +1 -1
  262. package/dist/components/ic-typography2.js +2 -2
  263. package/dist/components/ic-typography2.js.map +1 -1
  264. package/dist/core/core.css +159 -109
  265. package/dist/core/core.esm.js +1 -1
  266. package/dist/core/core.esm.js.map +1 -1
  267. package/dist/core/{p-bcf8c3d9.entry.js → p-0c9c6c31.entry.js} +2 -2
  268. package/dist/core/{p-bcf8c3d9.entry.js.map → p-0c9c6c31.entry.js.map} +1 -1
  269. package/dist/core/p-0e0e0942.js +2 -0
  270. package/dist/core/p-0e0e0942.js.map +1 -0
  271. package/dist/core/{p-1a76b6b4.entry.js → p-1673d010.entry.js} +2 -2
  272. package/dist/core/{p-1a76b6b4.entry.js.map → p-1673d010.entry.js.map} +1 -1
  273. package/dist/core/{p-0725255c.entry.js → p-16e78c1d.entry.js} +2 -2
  274. package/dist/core/p-16e78c1d.entry.js.map +1 -0
  275. package/dist/core/p-17926ee3.entry.js +2 -0
  276. package/dist/core/p-17926ee3.entry.js.map +1 -0
  277. package/dist/core/{p-75061bd0.entry.js → p-188ba287.entry.js} +2 -2
  278. package/dist/core/p-188ba287.entry.js.map +1 -0
  279. package/dist/core/{p-4f2391ec.entry.js → p-1f18bbf6.entry.js} +2 -2
  280. package/dist/core/{p-4f2391ec.entry.js.map → p-1f18bbf6.entry.js.map} +1 -1
  281. package/dist/core/{p-fa08e75c.entry.js → p-1fd22368.entry.js} +2 -2
  282. package/dist/core/{p-0e3a62cc.entry.js → p-2667c808.entry.js} +2 -2
  283. package/dist/core/p-28611f52.entry.js +2 -0
  284. package/dist/core/p-28611f52.entry.js.map +1 -0
  285. package/dist/core/{p-ba444517.entry.js → p-29a49ea2.entry.js} +2 -2
  286. package/dist/core/{p-ba444517.entry.js.map → p-29a49ea2.entry.js.map} +1 -1
  287. package/dist/core/{p-f34eee68.entry.js → p-3cb4ecef.entry.js} +2 -2
  288. package/dist/core/{p-f34eee68.entry.js.map → p-3cb4ecef.entry.js.map} +1 -1
  289. package/dist/core/p-4444e787.entry.js +2 -0
  290. package/dist/core/{p-30bcc30c.entry.js.map → p-4444e787.entry.js.map} +1 -1
  291. package/dist/core/p-4aaf10a5.entry.js +2 -0
  292. package/dist/core/p-4aaf10a5.entry.js.map +1 -0
  293. package/dist/core/{p-23665b88.entry.js → p-578a02ff.entry.js} +2 -2
  294. package/dist/core/{p-23665b88.entry.js.map → p-578a02ff.entry.js.map} +1 -1
  295. package/dist/core/{p-513619d5.entry.js → p-582da938.entry.js} +2 -2
  296. package/dist/core/{p-513619d5.entry.js.map → p-582da938.entry.js.map} +1 -1
  297. package/dist/core/{p-f35d81cb.entry.js → p-5926c2b2.entry.js} +2 -2
  298. package/dist/core/{p-f35d81cb.entry.js.map → p-5926c2b2.entry.js.map} +1 -1
  299. package/dist/core/p-61e78ce0.entry.js +2 -0
  300. package/dist/core/p-61e78ce0.entry.js.map +1 -0
  301. package/dist/core/p-671acf27.entry.js +2 -0
  302. package/dist/core/p-671acf27.entry.js.map +1 -0
  303. package/dist/core/{p-e6d3cd31.entry.js → p-6a63a73a.entry.js} +2 -2
  304. package/dist/core/{p-e6d3cd31.entry.js.map → p-6a63a73a.entry.js.map} +1 -1
  305. package/dist/core/{p-c3ba79d7.entry.js → p-6bfff7ba.entry.js} +2 -2
  306. package/dist/core/p-6bfff7ba.entry.js.map +1 -0
  307. package/dist/core/{p-9689784b.entry.js → p-6e0f4278.entry.js} +2 -2
  308. package/dist/core/p-7c3cd0b8.entry.js +2 -0
  309. package/dist/core/p-7c3cd0b8.entry.js.map +1 -0
  310. package/dist/core/p-7e4f5717.entry.js +2 -0
  311. package/dist/core/p-7e4f5717.entry.js.map +1 -0
  312. package/dist/core/{p-5aab7bb1.entry.js → p-7eaa223b.entry.js} +2 -2
  313. package/dist/core/{p-5aab7bb1.entry.js.map → p-7eaa223b.entry.js.map} +1 -1
  314. package/dist/core/p-8112444e.entry.js +2 -0
  315. package/dist/core/p-8112444e.entry.js.map +1 -0
  316. package/dist/core/{p-af1d6e41.entry.js → p-85a17585.entry.js} +2 -2
  317. package/dist/core/{p-3a9d2c5c.entry.js → p-864e337f.entry.js} +2 -2
  318. package/dist/core/{p-3a9d2c5c.entry.js.map → p-864e337f.entry.js.map} +1 -1
  319. package/dist/core/{p-bf903faa.entry.js → p-887b1302.entry.js} +2 -2
  320. package/dist/core/{p-bf903faa.entry.js.map → p-887b1302.entry.js.map} +1 -1
  321. package/dist/core/p-8ae0fd6f.entry.js +2 -0
  322. package/dist/core/p-8ae0fd6f.entry.js.map +1 -0
  323. package/dist/core/p-8d2d9e11.entry.js +2 -0
  324. package/dist/core/p-8d2d9e11.entry.js.map +1 -0
  325. package/dist/core/p-920f6480.entry.js +2 -0
  326. package/dist/core/p-920f6480.entry.js.map +1 -0
  327. package/dist/core/{p-74e0aa60.entry.js → p-9687e929.entry.js} +2 -2
  328. package/dist/core/{p-74e0aa60.entry.js.map → p-9687e929.entry.js.map} +1 -1
  329. package/dist/core/{p-7656c88f.entry.js → p-976f4280.entry.js} +2 -2
  330. package/dist/core/{p-7656c88f.entry.js.map → p-976f4280.entry.js.map} +1 -1
  331. package/dist/core/p-9989ec00.entry.js +2 -0
  332. package/dist/core/p-9989ec00.entry.js.map +1 -0
  333. package/dist/core/{p-7c819f45.entry.js → p-9a78f449.entry.js} +2 -2
  334. package/dist/core/{p-7c819f45.entry.js.map → p-9a78f449.entry.js.map} +1 -1
  335. package/dist/core/{p-09472c5e.entry.js → p-9aecbfe9.entry.js} +2 -2
  336. package/dist/core/{p-09472c5e.entry.js.map → p-9aecbfe9.entry.js.map} +1 -1
  337. package/dist/core/{p-45dbbdcb.entry.js → p-a894ddb6.entry.js} +2 -2
  338. package/dist/core/p-a894ddb6.entry.js.map +1 -0
  339. package/dist/core/p-abcaf14d.entry.js +2 -0
  340. package/dist/core/p-abcaf14d.entry.js.map +1 -0
  341. package/dist/core/p-aeeff0e5.entry.js +2 -0
  342. package/dist/core/p-aeeff0e5.entry.js.map +1 -0
  343. package/dist/core/{p-02cee2a0.entry.js → p-b7d117e8.entry.js} +2 -2
  344. package/dist/core/{p-e01ffbb8.entry.js → p-b92727c0.entry.js} +2 -2
  345. package/dist/core/{p-e01ffbb8.entry.js.map → p-b92727c0.entry.js.map} +1 -1
  346. package/dist/core/{p-27780b85.entry.js → p-b92e5fb3.entry.js} +2 -2
  347. package/dist/core/p-ba5e1b21.entry.js +2 -0
  348. package/dist/core/p-ba5e1b21.entry.js.map +1 -0
  349. package/dist/core/{p-de43d375.entry.js → p-bf3b853e.entry.js} +2 -2
  350. package/dist/core/{p-de43d375.entry.js.map → p-bf3b853e.entry.js.map} +1 -1
  351. package/dist/core/p-c3be8a0f.entry.js +2 -0
  352. package/dist/core/p-c3be8a0f.entry.js.map +1 -0
  353. package/dist/core/{p-f815f8c9.entry.js → p-c5ffe2cf.entry.js} +2 -2
  354. package/dist/core/{p-f815f8c9.entry.js.map → p-c5ffe2cf.entry.js.map} +1 -1
  355. package/dist/core/{p-aa83f828.entry.js → p-c8d207e1.entry.js} +2 -2
  356. package/dist/core/p-ca7e1219.entry.js +2 -0
  357. package/dist/core/p-ca7e1219.entry.js.map +1 -0
  358. package/dist/core/p-d0c38d58.entry.js +2 -0
  359. package/dist/core/p-d0c38d58.entry.js.map +1 -0
  360. package/dist/core/{p-23ed8b99.entry.js → p-d4903dcd.entry.js} +2 -2
  361. package/dist/core/{p-23ed8b99.entry.js.map → p-d4903dcd.entry.js.map} +1 -1
  362. package/dist/core/{p-40f2f58e.entry.js → p-de1e04ac.entry.js} +2 -2
  363. package/dist/core/{p-40f2f58e.entry.js.map → p-de1e04ac.entry.js.map} +1 -1
  364. package/dist/core/{p-4b601e06.entry.js → p-dee21f6d.entry.js} +2 -2
  365. package/dist/core/{p-4b601e06.entry.js.map → p-dee21f6d.entry.js.map} +1 -1
  366. package/dist/core/{p-112d96ce.entry.js → p-e003ad46.entry.js} +2 -2
  367. package/dist/core/{p-112d96ce.entry.js.map → p-e003ad46.entry.js.map} +1 -1
  368. package/dist/core/{p-b3ac38c5.entry.js → p-e2629bfe.entry.js} +2 -2
  369. package/dist/core/{p-b3ac38c5.entry.js.map → p-e2629bfe.entry.js.map} +1 -1
  370. package/dist/core/p-e38dd019.entry.js +2 -0
  371. package/dist/core/p-e38dd019.entry.js.map +1 -0
  372. package/dist/core/{p-29f472ab.entry.js → p-e546d477.entry.js} +2 -2
  373. package/dist/core/p-e546d477.entry.js.map +1 -0
  374. package/dist/core/{p-b4168d61.entry.js → p-e64e27be.entry.js} +2 -2
  375. package/dist/core/{p-b4168d61.entry.js.map → p-e64e27be.entry.js.map} +1 -1
  376. package/dist/core/{p-eb4add0d.entry.js → p-ead9900a.entry.js} +2 -2
  377. package/dist/core/{p-eb4add0d.entry.js.map → p-ead9900a.entry.js.map} +1 -1
  378. package/dist/core/{p-c7080f8d.entry.js → p-eb74cab5.entry.js} +2 -2
  379. package/dist/core/{p-c7080f8d.entry.js.map → p-eb74cab5.entry.js.map} +1 -1
  380. package/dist/core/p-eca2fea1.js +2 -0
  381. package/dist/core/p-eca2fea1.js.map +1 -0
  382. package/dist/core/{p-f39cf9b1.entry.js → p-f6eaec92.entry.js} +2 -2
  383. package/dist/core/{p-5c363e21.entry.js → p-f9e78341.entry.js} +2 -2
  384. package/dist/core/{p-0a0b25c5.entry.js → p-fedfd000.entry.js} +2 -2
  385. package/dist/esm/core.js +1 -1
  386. package/dist/esm/{helpers-0bb68835.js → helpers-ef2db990.js} +13 -21
  387. package/dist/esm/helpers-ef2db990.js.map +1 -0
  388. package/dist/esm/{helpers-fb59efa8.js → helpers-fc03923c.js} +22 -38
  389. package/dist/esm/helpers-fc03923c.js.map +1 -0
  390. package/dist/esm/ic-accordion-group.entry.js +1 -1
  391. package/dist/esm/ic-accordion.entry.js +10 -8
  392. package/dist/esm/ic-accordion.entry.js.map +1 -1
  393. package/dist/esm/ic-alert.entry.js +2 -2
  394. package/dist/esm/ic-alert.entry.js.map +1 -1
  395. package/dist/esm/ic-back-to-top.entry.js +1 -1
  396. package/dist/esm/ic-badge.entry.js +4 -4
  397. package/dist/esm/ic-badge.entry.js.map +1 -1
  398. package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
  399. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  400. package/dist/esm/ic-breadcrumb.entry.js +32 -51
  401. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  402. package/dist/esm/ic-button_3.entry.js +111 -132
  403. package/dist/esm/ic-button_3.entry.js.map +1 -1
  404. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  405. package/dist/esm/ic-card-vertical.entry.js +6 -6
  406. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  407. package/dist/esm/ic-checkbox-group.entry.js +9 -10
  408. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  409. package/dist/esm/ic-checkbox_3.entry.js +50 -66
  410. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  411. package/dist/esm/ic-chip.entry.js +26 -38
  412. package/dist/esm/ic-chip.entry.js.map +1 -1
  413. package/dist/esm/ic-data-list.entry.js +2 -2
  414. package/dist/esm/ic-data-list.entry.js.map +1 -1
  415. package/dist/esm/ic-data-row.entry.js +3 -3
  416. package/dist/esm/ic-data-row.entry.js.map +1 -1
  417. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  418. package/dist/esm/ic-data-table.entry.js +312 -320
  419. package/dist/esm/ic-data-table.entry.js.map +1 -1
  420. package/dist/esm/ic-date-input.entry.js +1 -1
  421. package/dist/esm/ic-date-picker.entry.js +1 -1
  422. package/dist/esm/ic-dialog.entry.js +2 -2
  423. package/dist/esm/ic-dialog.entry.js.map +1 -1
  424. package/dist/esm/ic-divider.entry.js +1 -1
  425. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  426. package/dist/esm/ic-footer-link.entry.js +3 -3
  427. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  428. package/dist/esm/ic-footer.entry.js +1 -1
  429. package/dist/esm/ic-hero.entry.js +7 -6
  430. package/dist/esm/ic-hero.entry.js.map +1 -1
  431. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  432. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  433. package/dist/esm/ic-input-component-container_3.entry.js +23 -22
  434. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  435. package/dist/esm/ic-input-label_2.entry.js +8 -8
  436. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  437. package/dist/esm/ic-link.entry.js +12 -4
  438. package/dist/esm/ic-link.entry.js.map +1 -1
  439. package/dist/esm/ic-menu-group.entry.js +2 -2
  440. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  441. package/dist/esm/ic-menu-item.entry.js +5 -5
  442. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  443. package/dist/esm/ic-navigation-button.entry.js +3 -3
  444. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  445. package/dist/esm/ic-navigation-group.entry.js +116 -164
  446. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  447. package/dist/esm/ic-navigation-item.entry.js +65 -62
  448. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  449. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  450. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  451. package/dist/esm/ic-page-header.entry.js +7 -7
  452. package/dist/esm/ic-page-header.entry.js.map +1 -1
  453. package/dist/esm/ic-pagination_4.entry.js +184 -252
  454. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  455. package/dist/esm/ic-popover-menu.entry.js +8 -7
  456. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  457. package/dist/esm/ic-radio-group.entry.js +5 -5
  458. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  459. package/dist/esm/ic-radio-option.entry.js +5 -5
  460. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  461. package/dist/esm/ic-search-bar.entry.js +149 -154
  462. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  463. package/dist/esm/ic-section-container.entry.js +2 -2
  464. package/dist/esm/ic-section-container.entry.js.map +1 -1
  465. package/dist/esm/ic-side-navigation.entry.js +25 -6
  466. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  467. package/dist/esm/ic-skeleton.entry.js +2 -2
  468. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  469. package/dist/esm/ic-skip-link.entry.js +2 -2
  470. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  471. package/dist/esm/ic-status-tag.entry.js +3 -3
  472. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  473. package/dist/esm/ic-step.entry.js +14 -14
  474. package/dist/esm/ic-step.entry.js.map +1 -1
  475. package/dist/esm/ic-stepper.entry.js +3 -3
  476. package/dist/esm/ic-stepper.entry.js.map +1 -1
  477. package/dist/esm/ic-switch.entry.js +6 -6
  478. package/dist/esm/ic-switch.entry.js.map +1 -1
  479. package/dist/esm/ic-tab-context.entry.js +1 -1
  480. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  481. package/dist/esm/ic-tab-group.entry.js +3 -3
  482. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  483. package/dist/esm/ic-tab-panel.entry.js +2 -2
  484. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  485. package/dist/esm/ic-tab.entry.js +3 -3
  486. package/dist/esm/ic-tab.entry.js.map +1 -1
  487. package/dist/esm/ic-theme.entry.js +2 -2
  488. package/dist/esm/ic-theme.entry.js.map +1 -1
  489. package/dist/esm/ic-toast-region.entry.js +1 -1
  490. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  491. package/dist/esm/ic-toast.entry.js +4 -4
  492. package/dist/esm/ic-toast.entry.js.map +1 -1
  493. package/dist/esm/ic-toggle-button-group.entry.js +54 -68
  494. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  495. package/dist/esm/ic-toggle-button.entry.js +62 -64
  496. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  497. package/dist/esm/ic-top-navigation.entry.js +66 -64
  498. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  499. package/dist/esm/ic-tree-item.entry.js +8 -3
  500. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  501. package/dist/esm/ic-tree-view.entry.js +1 -1
  502. package/dist/esm/ic-typography.entry.js +3 -3
  503. package/dist/esm/ic-typography.entry.js.map +1 -1
  504. package/dist/esm/loader.js +1 -1
  505. package/dist/types/components/ic-data-table/ic-data-table.d.ts +15 -4
  506. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +4 -1
  507. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +7 -0
  508. package/dist/types/components.d.ts +13 -0
  509. package/dist/types/utils/helpers.d.ts +3 -3
  510. package/dist/types/utils/types.d.ts +2 -0
  511. package/hydrate/index.js +1524 -1738
  512. package/hydrate/index.mjs +1524 -1738
  513. package/package.json +3 -3
  514. package/dist/cjs/helpers-6f33d131.js.map +0 -1
  515. package/dist/cjs/helpers-e2bbcec9.js.map +0 -1
  516. package/dist/core/p-00df60bd.entry.js +0 -2
  517. package/dist/core/p-00df60bd.entry.js.map +0 -1
  518. package/dist/core/p-0725255c.entry.js.map +0 -1
  519. package/dist/core/p-1024726b.entry.js +0 -2
  520. package/dist/core/p-1024726b.entry.js.map +0 -1
  521. package/dist/core/p-29f472ab.entry.js.map +0 -1
  522. package/dist/core/p-30bcc30c.entry.js +0 -2
  523. package/dist/core/p-315ac907.entry.js +0 -2
  524. package/dist/core/p-315ac907.entry.js.map +0 -1
  525. package/dist/core/p-3ddf2dc7.entry.js +0 -2
  526. package/dist/core/p-3ddf2dc7.entry.js.map +0 -1
  527. package/dist/core/p-3ec9c8c2.entry.js +0 -2
  528. package/dist/core/p-3ec9c8c2.entry.js.map +0 -1
  529. package/dist/core/p-423c721c.entry.js +0 -2
  530. package/dist/core/p-423c721c.entry.js.map +0 -1
  531. package/dist/core/p-45dbbdcb.entry.js.map +0 -1
  532. package/dist/core/p-4933549f.entry.js +0 -2
  533. package/dist/core/p-4933549f.entry.js.map +0 -1
  534. package/dist/core/p-4c77e828.entry.js +0 -2
  535. package/dist/core/p-4c77e828.entry.js.map +0 -1
  536. package/dist/core/p-657321ee.entry.js +0 -2
  537. package/dist/core/p-657321ee.entry.js.map +0 -1
  538. package/dist/core/p-661f22bd.entry.js +0 -2
  539. package/dist/core/p-661f22bd.entry.js.map +0 -1
  540. package/dist/core/p-6634052e.entry.js +0 -2
  541. package/dist/core/p-6634052e.entry.js.map +0 -1
  542. package/dist/core/p-71166167.entry.js +0 -2
  543. package/dist/core/p-71166167.entry.js.map +0 -1
  544. package/dist/core/p-75061bd0.entry.js.map +0 -1
  545. package/dist/core/p-78709ece.entry.js +0 -2
  546. package/dist/core/p-78709ece.entry.js.map +0 -1
  547. package/dist/core/p-789f423c.entry.js +0 -2
  548. package/dist/core/p-789f423c.entry.js.map +0 -1
  549. package/dist/core/p-7d9ab461.entry.js +0 -2
  550. package/dist/core/p-7d9ab461.entry.js.map +0 -1
  551. package/dist/core/p-9e4a0c01.entry.js +0 -2
  552. package/dist/core/p-9e4a0c01.entry.js.map +0 -1
  553. package/dist/core/p-bdbd185c.js +0 -2
  554. package/dist/core/p-bdbd185c.js.map +0 -1
  555. package/dist/core/p-c3ba79d7.entry.js.map +0 -1
  556. package/dist/core/p-e185bfa7.entry.js +0 -2
  557. package/dist/core/p-e185bfa7.entry.js.map +0 -1
  558. package/dist/core/p-ed542433.js +0 -2
  559. package/dist/core/p-ed542433.js.map +0 -1
  560. package/dist/core/p-fc852e9b.entry.js +0 -2
  561. package/dist/core/p-fc852e9b.entry.js.map +0 -1
  562. package/dist/core/p-fe85b5b2.entry.js +0 -2
  563. package/dist/core/p-fe85b5b2.entry.js.map +0 -1
  564. package/dist/esm/helpers-0bb68835.js.map +0 -1
  565. package/dist/esm/helpers-fb59efa8.js.map +0 -1
  566. /package/dist/core/{p-fa08e75c.entry.js.map → p-1fd22368.entry.js.map} +0 -0
  567. /package/dist/core/{p-0e3a62cc.entry.js.map → p-2667c808.entry.js.map} +0 -0
  568. /package/dist/core/{p-9689784b.entry.js.map → p-6e0f4278.entry.js.map} +0 -0
  569. /package/dist/core/{p-af1d6e41.entry.js.map → p-85a17585.entry.js.map} +0 -0
  570. /package/dist/core/{p-02cee2a0.entry.js.map → p-b7d117e8.entry.js.map} +0 -0
  571. /package/dist/core/{p-27780b85.entry.js.map → p-b92e5fb3.entry.js.map} +0 -0
  572. /package/dist/core/{p-aa83f828.entry.js.map → p-c8d207e1.entry.js.map} +0 -0
  573. /package/dist/core/{p-f39cf9b1.entry.js.map → p-f6eaec92.entry.js.map} +0 -0
  574. /package/dist/core/{p-5c363e21.entry.js.map → p-f9e78341.entry.js.map} +0 -0
  575. /package/dist/core/{p-0a0b25c5.entry.js.map → p-fedfd000.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-a7a720e7.js';
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 './helpers-0bb68835.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 './helpers-ef2db990.js';
3
3
 
4
4
  const unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
5
5
  <path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
@@ -13,7 +13,7 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
13
13
  <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
14
14
  </svg>`;
15
15
 
16
- 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}}";
16
+ 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}}";
17
17
  const IcDataTableStyle0 = icDataTableCss;
18
18
 
19
19
  const DataTable = class {
@@ -119,6 +119,7 @@ const DataTable = class {
119
119
  pageLabel: "Page",
120
120
  rangeLabelType: "page",
121
121
  selectedItemsPerPage: 10,
122
+ selectItemsPerPageOnEnter: true,
122
123
  setToFirstPageOnPaginationChange: false,
123
124
  showGoToPageControl: true,
124
125
  showItemsPerPageControl: true,
@@ -191,6 +192,176 @@ const DataTable = class {
191
192
  };
192
193
  this.getRowHeight = (cellContainer) => parseInt(getComputedStyle(document.documentElement).fontSize) *
193
194
  parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING) || "");
195
+ this.truncateUpdatedData = () => {
196
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
197
+ this.getTypographyElements().forEach((typographyEl) => {
198
+ const cellContainer = this.getCellContainer(typographyEl);
199
+ if (cellContainer) {
200
+ const truncWrapper = this.getTruncWrapper(typographyEl);
201
+ if (truncWrapper &&
202
+ cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
203
+ truncWrapper.scrollHeight) {
204
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
205
+ return;
206
+ }
207
+ setTimeout(() => {
208
+ // slight delay due to data rendering
209
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
210
+ }, 150);
211
+ }
212
+ });
213
+ }
214
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
215
+ this.updateTruncationTooltip();
216
+ }
217
+ this.dataUpdated = false;
218
+ };
219
+ this.truncateTableSorted = () => {
220
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
221
+ this.updateTruncationTooltip();
222
+ }
223
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
224
+ this.getTypographyElements().forEach((typographyEl) => {
225
+ const cellContainer = this.getCellContainer(typographyEl);
226
+ if (cellContainer) {
227
+ if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
228
+ this.createShowHideTruncation(typographyEl, cellContainer);
229
+ }
230
+ else {
231
+ typographyEl.resetTruncation().then(() => {
232
+ cellContainer.removeAttribute("style");
233
+ });
234
+ }
235
+ }
236
+ });
237
+ }
238
+ this.tableSorted = false;
239
+ };
240
+ this.truncateRowHeightSet = () => {
241
+ // This function recalculates the tooltip truncation when the rowHeight has been set.
242
+ // This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
243
+ this.getTypographyElements().forEach((typographyEl) => {
244
+ const cellContainer = this.getCellContainer(typographyEl);
245
+ const tooltipEl = this.getTooltip(typographyEl);
246
+ if (cellContainer) {
247
+ if (this.globalRowHeight === "auto") {
248
+ cellContainer.style.height = "";
249
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
250
+ cellContainer.removeAttribute(this.DATA_ROW_HEIGHT_STRING);
251
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
252
+ this.removeTooltip(cellContainer, typographyEl, tooltipEl);
253
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
254
+ }
255
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
256
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
257
+ }
258
+ return;
259
+ }
260
+ // If the set row height is bigger than the cell container even
261
+ // with textWrap, set the row height
262
+ if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
263
+ !cellContainer.style.height &&
264
+ this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
265
+ !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
266
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
267
+ }
268
+ if (this.truncationPattern) {
269
+ // If the set row height is bigger than the typography truncation wrapper
270
+ // scroll height, remove see more / see less button
271
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
272
+ const truncWrapper = this.getTruncWrapper(typographyEl);
273
+ if (this.getShowHideButton(typographyEl) &&
274
+ truncWrapper &&
275
+ truncWrapper.scrollHeight <= cellContainer.clientHeight) {
276
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
277
+ return;
278
+ }
279
+ }
280
+ this.truncate(typographyEl, cellContainer, tooltipEl);
281
+ }
282
+ else {
283
+ this.updateSetRowHeight(typographyEl);
284
+ }
285
+ }
286
+ });
287
+ this.rowHeightSet = false;
288
+ };
289
+ this.truncateItemsPerPageChange = () => {
290
+ var _a;
291
+ // Only run truncation on the new rows
292
+ // when the number of items per page has increased
293
+ const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
294
+ if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
295
+ const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
296
+ newRows.forEach((row) => {
297
+ row.querySelectorAll("ic-typography").forEach((typographyEl) => {
298
+ const cellContainer = this.getCellContainer(typographyEl);
299
+ const tooltipEl = this.getTooltip(typographyEl);
300
+ if (cellContainer)
301
+ this.truncate(typographyEl, cellContainer, tooltipEl);
302
+ });
303
+ });
304
+ }
305
+ this.previousItemsPerPage = this.rowsPerPage;
306
+ this.itemsPerPageChange = false;
307
+ };
308
+ this.truncatePageChange = () => {
309
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
310
+ this.updateTruncationTooltip();
311
+ }
312
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
313
+ // set truncation to see more if opened and next/previous page is pressed
314
+ this.getTypographyElements().forEach((typographyEl) => {
315
+ const cellContainer = this.getCellContainer(typographyEl);
316
+ if (cellContainer &&
317
+ this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer) &&
318
+ !this.getShowHideButton(typographyEl)) {
319
+ this.addShowHideTruncation(cellContainer, typographyEl);
320
+ }
321
+ });
322
+ }
323
+ this.icPageChangeEvent = false;
324
+ };
325
+ this.truncateDensityUpdate = () => {
326
+ this.getTypographyElements().forEach((typographyEl) => {
327
+ const cellContainer = this.getCellContainer(typographyEl);
328
+ const tooltipEl = this.getTooltip(typographyEl);
329
+ if (cellContainer)
330
+ this.truncate(typographyEl, cellContainer, tooltipEl);
331
+ });
332
+ this.densityUpdate = false;
333
+ };
334
+ this.typographyScrollHeightExceedsContainerHeight = (typographyEl, cellContainer) => cellContainer && typographyEl.scrollHeight > cellContainer.clientHeight;
335
+ this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight = (typographyEl, cellContainer) => {
336
+ const truncWrapper = this.getTruncWrapper(typographyEl);
337
+ return (truncWrapper &&
338
+ cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
339
+ truncWrapper.scrollHeight);
340
+ };
341
+ this.truncatePatternUpdated = () => {
342
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
343
+ this.getTypographyElements().forEach((typographyEl) => {
344
+ const cellContainer = this.getCellContainer(typographyEl);
345
+ const tooltipEl = this.getTooltip(typographyEl);
346
+ if (cellContainer &&
347
+ this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
348
+ this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
349
+ }
350
+ });
351
+ }
352
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
353
+ this.getTypographyElements().forEach((typographyEl) => {
354
+ const cellContainer = this.getCellContainer(typographyEl);
355
+ if (cellContainer) {
356
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
357
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
358
+ return;
359
+ }
360
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
361
+ }
362
+ });
363
+ }
364
+ };
194
365
  this.updateSetRowHeight = (typographyEl) => {
195
366
  const removeRowHeightVariable = (element) => {
196
367
  const cellContainer = this.getCellContainer(element);
@@ -208,28 +379,10 @@ const DataTable = class {
208
379
  });
209
380
  }
210
381
  };
211
- this.debounceDataTruncation = () => {
212
- this.getTypographyElements().forEach((typographyEl) => {
213
- const cellContainer = this.getCellContainer(typographyEl);
214
- if (cellContainer &&
215
- !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
216
- this.resizeObserver = new ResizeObserver(
217
- // This gets triggered twice due to updated data and see more/see less button
218
- dynamicDebounce(() => {
219
- this.dataTruncation(typographyEl);
220
- if (!this.isNewDebounceDelaySet) {
221
- this.debounceDelay = 200;
222
- this.isNewDebounceDelaySet = true;
223
- }
224
- }, () => this.debounceDelay));
225
- this.resizeObserver.observe(typographyEl);
226
- }
227
- });
228
- };
229
382
  this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
230
383
  this.truncate = (typographyEl, cellContainer, tooltip) => {
231
384
  var _a;
232
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
385
+ if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
233
386
  //24 is the height of a single line
234
387
  if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
235
388
  if (this.truncationPattern === this.TOOLTIP_STRING) {
@@ -249,52 +402,49 @@ const DataTable = class {
249
402
  }
250
403
  if (this.truncationPattern === this.SHOW_HIDE_STRING &&
251
404
  !isEmptyString(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.getAttribute("max-lines"))) {
252
- this.resetShowHideTruncation(typographyEl);
405
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
253
406
  }
254
407
  }
255
408
  };
256
- this.dataTruncation = (typographyEl) => {
257
- var _a;
409
+ this.addShowHideTruncationIfNeeded = (typographyEl, cellContainer) => {
410
+ if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
411
+ this.addShowHideTruncation(cellContainer, typographyEl);
412
+ return true;
413
+ }
414
+ return false;
415
+ };
416
+ this.dataTruncation = (typographyEl, cellContainer) => {
258
417
  // Tooltip truncation mentioned in AC. Will need revisiting
259
418
  const tooltip = this.getTooltip(typographyEl);
260
- const cellContainer = this.getCellContainer(typographyEl);
261
- if (!cellContainer ||
262
- cellContainer.classList.contains("data-type-element") ||
419
+ if (cellContainer.classList.contains("data-type-element") ||
263
420
  this.dataUpdated) {
264
421
  return;
265
422
  }
266
423
  if (this.truncationPattern === this.SHOW_HIDE_STRING &&
267
- ((_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"))) {
268
- const showHideBtn = typographyEl.shadowRoot.querySelector("button");
424
+ this.getShowHideButton(typographyEl)) {
269
425
  // If the see more/see less is present and the max lines is equal to the cell container
270
426
  // remove the see more/see less button
271
- if (showHideBtn) {
272
- const truncWrapper = this.getTruncWrapper(typographyEl);
273
- if (truncWrapper &&
274
- this.getLines(truncWrapper.scrollHeight) ===
275
- Number(typographyEl.getAttribute("max-lines"))) {
276
- this.resetShowHideTruncation(typographyEl);
277
- }
427
+ const truncWrapper = this.getTruncWrapper(typographyEl);
428
+ if (truncWrapper &&
429
+ this.getLines(truncWrapper.scrollHeight) ===
430
+ Number(typographyEl.getAttribute("max-lines"))) {
431
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
278
432
  }
279
433
  }
280
434
  // Deals with setting and resetting row height and re-truncating data
281
435
  if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
282
- const truncWrapper = this.getTruncWrapper(typographyEl);
283
436
  // cellContainer.clientHeight - 24 removes the extra line by see more/see less
284
- if (truncWrapper &&
285
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
286
- truncWrapper.scrollHeight) {
287
- this.resetShowHideTruncation(typographyEl);
437
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
438
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
288
439
  return;
289
440
  }
290
- if (typographyEl.scrollHeight > cellContainer.clientHeight) {
291
- this.addShowHideTruncation(cellContainer, typographyEl);
441
+ if (this.addShowHideTruncationIfNeeded(typographyEl, cellContainer)) {
292
442
  return;
293
443
  }
294
444
  }
295
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > 0 &&
296
- (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > 0 &&
297
- (typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) === (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
445
+ if (typographyEl.scrollHeight > 0 &&
446
+ cellContainer.clientHeight > 0 &&
447
+ typographyEl.scrollHeight === cellContainer.clientHeight) {
298
448
  if (tooltip) {
299
449
  this.removeTooltip(cellContainer, typographyEl, tooltip);
300
450
  }
@@ -303,6 +453,7 @@ const DataTable = class {
303
453
  this.truncate(typographyEl, cellContainer, tooltip);
304
454
  };
305
455
  this.getTruncWrapper = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".trunc-wrapper"); };
456
+ this.getShowHideButton = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"); };
306
457
  this.removeTextWrap = () => {
307
458
  this.getTypographyElements().forEach((typographyEl) => {
308
459
  const tableCell = typographyEl.closest("td");
@@ -314,6 +465,37 @@ const DataTable = class {
314
465
  this.getCellContainer = (typographyEl) => typographyEl.closest(".cell-container");
315
466
  this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
316
467
  array.forEach((val) => val.textWrap && delete val.textWrap);
468
+ this.resetSingleShowHideTruncation = (typographyEl, cellContainer) => {
469
+ const truncWrapper = this.getTruncWrapper(typographyEl);
470
+ if (!(cellContainer && truncWrapper))
471
+ return;
472
+ if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
473
+ !isEmptyString(typographyEl.getAttribute("max-lines")) &&
474
+ Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
475
+ Number(typographyEl.getAttribute("max-lines"))) {
476
+ typographyEl.checkMaxLines(truncWrapper.scrollHeight);
477
+ typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
478
+ typographyEl.setShowHideExpanded(false);
479
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
480
+ }
481
+ else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
482
+ typographyEl.resetTruncation().then(() => {
483
+ if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
484
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
485
+ }
486
+ });
487
+ }
488
+ };
489
+ this.resetAllShowHideTruncation = () => {
490
+ this.getTypographyElements().forEach((typographyEl) => {
491
+ const cellContainer = this.getCellContainer(typographyEl);
492
+ typographyEl.resetTruncation().then(() => {
493
+ if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
494
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
495
+ }
496
+ });
497
+ });
498
+ };
317
499
  this.startLoadingTimer = () => {
318
500
  this.hasLoadedForOneSecond = false;
319
501
  this.timerStarted = Date.now();
@@ -346,7 +528,7 @@ const DataTable = class {
346
528
  };
347
529
  this.createUpdatingIndicator = () => {
348
530
  const { description, max, min, progress, monochrome } = this.updatingOptions || {};
349
- return (h("th", { colSpan: this.columns.length, class: "updating-state" }, h("ic-loading-indicator", { theme: this.theme, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
531
+ return (h("th", { colSpan: this.columns.length + (this.rowSelection && this.data ? 1 : 0), class: "updating-state" }, h("ic-loading-indicator", { theme: this.theme, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
350
532
  };
351
533
  this.setRowHeight = (height) => pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
352
534
  this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
@@ -392,31 +574,25 @@ const DataTable = class {
392
574
  gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
393
575
  });
394
576
  };
395
- this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
396
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
577
+ this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
578
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
397
579
  return (h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
398
580
  !isSlotUsed(this.el, cellSlotName)
399
581
  ? cell
400
- : 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) ||
401
- ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
402
- rowAlignment ||
403
- this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
404
- !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
405
- !!rowAlignment ||
406
- !!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
407
- ((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
408
- this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
409
- !!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
582
+ : 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) ||
583
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
584
+ this.getCellAlignment(cell, "horizontal")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
585
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
410
586
  !!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) ||
411
587
  (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
412
- !!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")) ||
588
+ !!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")) ||
413
589
  (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
414
590
  rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
415
591
  !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
416
592
  !!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
417
593
  ? this.setRowHeight(currentRowHeight)
418
- : 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)) &&
419
- (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" &&
594
+ : 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)) &&
595
+ (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" &&
420
596
  !isSlotUsed(this.el, cellSlotName) && (h("div", { class: {
421
597
  "cell-text-wrapper": true,
422
598
  "cell-text-no-wrap": !this.truncationPattern,
@@ -431,7 +607,7 @@ const DataTable = class {
431
607
  Object.keys(cell).includes("description") && (h("div", { class: {
432
608
  ["cell-description"]: true,
433
609
  [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
434
- } }, ((_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"))))))))));
610
+ } }, ((_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"))))))))));
435
611
  };
436
612
  this.createCells = (row, rowIndex) => {
437
613
  var _a;
@@ -449,6 +625,7 @@ const DataTable = class {
449
625
  ? variableRowHeightVal !== "auto" && variableRowHeightVal
450
626
  : this.globalRowHeight !== "auto" && this.globalRowHeight;
451
627
  return this.columns.map((columnName, index) => {
628
+ var _a, _b, _c, _d;
452
629
  const cell = this.getObjectValue(row, columnName["key"]);
453
630
  const columnProps = this.columns[index];
454
631
  const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
@@ -461,12 +638,19 @@ const DataTable = class {
461
638
  ["row-header-sticky"]: this.stickyRowHeaders,
462
639
  } }, cellValue("title")));
463
640
  }
464
- const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
641
+ const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
465
642
  if (rowKeys[index] !== "rowOptions") {
466
643
  return (h("td", { class: {
467
644
  ["table-cell"]: true,
468
645
  [`table-density-${this.density}`]: this.notDefaultDensity(),
469
646
  ["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
647
+ [`cell-vertical-align-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
648
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
649
+ rowAlignment ||
650
+ this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
651
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
652
+ !!rowAlignment ||
653
+ !!this.getCellAlignment(cell, "vertical"),
470
654
  }, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, this.isObject(cell) &&
471
655
  Object.keys(cell).includes("actionElement") ? (h("div", { class: "cell-grid-wrapper" }, CellContent, h("span", { class: "action-element", innerHTML: cellValue("actionElement"),
472
656
  // eslint-disable-next-line react/jsx-no-bind
@@ -653,52 +837,50 @@ const DataTable = class {
653
837
  cellContainer.setAttribute(this.DATA_ROW_HEIGHT_STRING, rowHeight.toString());
654
838
  cellContainer.setAttribute("style", `${this.ROW_HEIGHT_CSS_VARIABLE}: ${rowHeight}px`);
655
839
  };
840
+ this.getDescriptionHeight = (description) => {
841
+ const descriptionMarginTop = window
842
+ .getComputedStyle(description)
843
+ .getPropertyValue("margin-top");
844
+ return description.clientHeight + parseInt(descriptionMarginTop, 10);
845
+ };
656
846
  /** Method to update the row heights on cells with descriptions and tooltip truncation */
657
847
  this.updateCellHeightsWithDescriptions = () => {
658
848
  var _a, _b;
849
+ const isXSDevice = deviceSizeMatches(IC_DEVICE_SIZES.XS);
659
850
  (_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) => {
660
851
  const cellContainer = description.closest(`.${this.CELL_CONTAINER_WITH_DESCRIPTION_STRING}`);
661
852
  const typography = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(this.IC_TYPOGRAPHY_STRING);
662
- const descriptionMarginTop = window
663
- .getComputedStyle(description)
664
- .getPropertyValue("margin-top");
665
- const descriptionHeight = description.clientHeight + parseInt(descriptionMarginTop, 10);
666
853
  if (typography &&
667
854
  cellContainer &&
668
855
  this.globalRowHeight &&
669
856
  this.globalRowHeight !== "auto") {
857
+ const descriptionHeight = this.getDescriptionHeight(description);
858
+ const descriptionHeightPlusLineHeight = descriptionHeight + this.DEFAULT_LINE_HEIGHT;
670
859
  if (!typography.textContent &&
671
- descriptionHeight + this.DEFAULT_LINE_HEIGHT > this.globalRowHeight) {
860
+ descriptionHeightPlusLineHeight > this.globalRowHeight) {
672
861
  this.updateRowHeightForDescriptions(descriptionHeight, cellContainer);
673
862
  }
674
863
  else if (this.truncationPattern === this.TOOLTIP_STRING) {
675
- if (descriptionHeight + this.DEFAULT_LINE_HEIGHT >
676
- this.globalRowHeight) {
864
+ if (descriptionHeightPlusLineHeight > this.globalRowHeight) {
677
865
  const cellIcon = cellContainer.querySelector(".icon");
678
- if (deviceSizeMatches(IC_DEVICE_SIZES.XS) && cellIcon) {
866
+ let rowHeight = descriptionHeightPlusLineHeight;
867
+ if (cellIcon && isXSDevice) {
679
868
  // recalculate descriptionHeight as when a word break occurs this value changes
680
869
  // Additional spacing given for 300-400% zoom
681
- this.updateRowHeightForDescriptions(descriptionHeight +
682
- this.DEFAULT_LINE_HEIGHT +
683
- cellIcon.clientHeight, cellContainer);
684
- }
685
- else {
686
- this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
870
+ rowHeight += cellIcon.clientHeight;
687
871
  }
872
+ this.updateRowHeightForDescriptions(rowHeight, cellContainer);
688
873
  }
689
874
  this.addLineClampCSS(typography, cellContainer);
690
875
  // Additional case for show/hide truncation for when a description is present, but the text
691
876
  // isn't overflowing the cell to trigger the show more button to appear.
692
877
  }
693
878
  else if (this.truncationPattern === this.SHOW_HIDE_STRING &&
694
- descriptionHeight + this.DEFAULT_LINE_HEIGHT >
695
- this.globalRowHeight &&
879
+ descriptionHeightPlusLineHeight > this.globalRowHeight &&
696
880
  typography.style.getPropertyValue("--truncation-max-lines") !==
697
881
  "initial") {
698
- this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
699
- if (descriptionHeight) {
700
- this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
701
- }
882
+ this.updateRowHeightForDescriptions(descriptionHeightPlusLineHeight, cellContainer);
883
+ this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
702
884
  }
703
885
  }
704
886
  });
@@ -749,12 +931,7 @@ const DataTable = class {
749
931
  this.fixCellTooltip(slottedEl);
750
932
  });
751
933
  });
752
- (_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => {
753
- const actionElement = actionElementSpan.firstChild;
754
- if (actionElement) {
755
- this.fixCellTooltip(actionElement);
756
- }
757
- });
934
+ (_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));
758
935
  };
759
936
  this.handleClick = (event, callback) => callback(event);
760
937
  this.renderTableBody = (loading, data, overlay) => {
@@ -854,10 +1031,19 @@ const DataTable = class {
854
1031
  const cellContainer = this.getCellContainer(typographyEl);
855
1032
  if (cellContainer &&
856
1033
  !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
857
- this.dataTruncation(typographyEl);
1034
+ this.dataTruncation(typographyEl, cellContainer);
1035
+ this.resizeObserver = new ResizeObserver(
1036
+ // This gets triggered twice due to updated data and see more/see less button
1037
+ dynamicDebounce(() => {
1038
+ this.dataTruncation(typographyEl, cellContainer);
1039
+ if (!this.isNewDebounceDelaySet) {
1040
+ this.debounceDelay = 200;
1041
+ this.isNewDebounceDelaySet = true;
1042
+ }
1043
+ }, () => this.debounceDelay));
1044
+ this.resizeObserver.observe(typographyEl);
858
1045
  }
859
1046
  });
860
- this.debounceDataTruncation();
861
1047
  }
862
1048
  if (this.globalRowHeight !== "auto") {
863
1049
  this.updateSetRowHeight();
@@ -869,188 +1055,34 @@ const DataTable = class {
869
1055
  // rendered to take into account updated .cell-container/ic-typography box model updates.
870
1056
  if (this.truncationPattern === this.SHOW_HIDE_STRING ||
871
1057
  this.truncationPattern === this.TOOLTIP_STRING) {
872
- this.truncateUpdatedData();
873
- }
874
- }
875
- componentDidRender() {
876
- this.fixCellTooltips();
877
- this.updateCellHeightsWithDescriptions();
878
- this.adjustWidthForActionElement();
879
- }
880
- truncateUpdatedData() {
881
- var _a;
882
- if (this.dataUpdated) {
883
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
884
- this.getTypographyElements().forEach((typographyEl) => {
885
- const truncWrapper = this.getTruncWrapper(typographyEl);
886
- const cellContainer = this.getCellContainer(typographyEl);
887
- if (truncWrapper &&
888
- cellContainer &&
889
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
890
- truncWrapper.scrollHeight) {
891
- this.resetShowHideTruncation(typographyEl);
892
- return;
893
- }
894
- setTimeout(() => {
895
- // slight delay due to data rendering
896
- if (cellContainer &&
897
- typographyEl.scrollHeight > cellContainer.clientHeight) {
898
- this.addShowHideTruncation(cellContainer, typographyEl);
899
- }
900
- }, 150);
901
- });
902
- }
903
- if (this.truncationPattern === this.TOOLTIP_STRING) {
904
- this.updateTruncationTooltip();
1058
+ if (this.dataUpdated) {
1059
+ this.truncateUpdatedData();
905
1060
  }
906
- this.dataUpdated = false;
907
- }
908
- if (this.tableSorted) {
909
- if (this.truncationPattern === this.TOOLTIP_STRING) {
910
- this.updateTruncationTooltip();
911
- }
912
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
913
- this.getTypographyElements().forEach((typographyEl) => {
914
- const cellContainer = this.getCellContainer(typographyEl);
915
- if (cellContainer) {
916
- if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
917
- this.createShowHideTruncation(typographyEl, cellContainer);
918
- }
919
- else {
920
- typographyEl.resetTruncation().then(() => {
921
- cellContainer.removeAttribute("style");
922
- });
923
- }
924
- }
925
- });
1061
+ if (this.tableSorted) {
1062
+ this.truncateTableSorted();
926
1063
  }
927
- this.tableSorted = false;
928
- }
929
- // This function recalculates the tooltip truncation when the rowHeight has been set.
930
- // This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
931
- if (this.rowHeightSet) {
932
- this.getTypographyElements().forEach((typographyEl) => {
933
- var _a, _b;
934
- const cellContainer = this.getCellContainer(typographyEl);
935
- const tooltipEl = this.getTooltip(typographyEl);
936
- if (cellContainer) {
937
- if (this.globalRowHeight === "auto") {
938
- cellContainer.style.height = "";
939
- if (this.truncationPattern === this.TOOLTIP_STRING) {
940
- this.removeTooltip(cellContainer, typographyEl, tooltipEl);
941
- typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
942
- }
943
- else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
944
- this.resetShowHideTruncation(typographyEl);
945
- }
946
- return;
947
- }
948
- // If the set row height is bigger than the cell container even
949
- // with textWrap, set the row height
950
- if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
951
- !((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
952
- this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
953
- !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
954
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
955
- }
956
- if (this.truncationPattern) {
957
- // If the set row height is bigger than the typography truncation wrapper
958
- // scroll height, remove see more / see less button
959
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
960
- const truncWrapper = this.getTruncWrapper(typographyEl);
961
- const showHideBtn = (_b = typographyEl.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
962
- if (showHideBtn &&
963
- truncWrapper &&
964
- truncWrapper.scrollHeight <= cellContainer.clientHeight) {
965
- this.resetShowHideTruncation(typographyEl);
966
- return;
967
- }
968
- }
969
- this.truncate(typographyEl, cellContainer, tooltipEl);
970
- }
971
- else {
972
- this.updateSetRowHeight(typographyEl);
973
- }
974
- }
975
- });
976
- this.rowHeightSet = false;
977
- }
978
- // Only run truncation on the new rows
979
- // when the number of items per page has increased
980
- if (this.itemsPerPageChange) {
981
- const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
982
- if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
983
- const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
984
- newRows.forEach((row) => {
985
- row.querySelectorAll("ic-typography").forEach((typographyEl) => {
986
- const cellContainer = this.getCellContainer(typographyEl);
987
- const tooltipEl = this.getTooltip(typographyEl);
988
- if (cellContainer)
989
- this.truncate(typographyEl, cellContainer, tooltipEl);
990
- });
991
- });
1064
+ if (this.rowHeightSet) {
1065
+ this.truncateRowHeightSet();
992
1066
  }
993
- this.previousItemsPerPage = this.rowsPerPage;
994
- this.itemsPerPageChange = false;
995
- }
996
- if (!this.initialLoad && this.icPageChangeEvent) {
997
- if (this.truncationPattern === this.TOOLTIP_STRING) {
998
- this.updateTruncationTooltip();
1067
+ if (this.itemsPerPageChange) {
1068
+ this.truncateItemsPerPageChange();
999
1069
  }
1000
- // set truncation to see more if opened and next/previous page is pressed
1001
- if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1002
- this.getTypographyElements().forEach((typographyEl) => {
1003
- var _a;
1004
- const cellContainer = this.getCellContainer(typographyEl);
1005
- const showHideBtn = (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
1006
- if (cellContainer &&
1007
- (typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
1008
- !showHideBtn) {
1009
- this.addShowHideTruncation(cellContainer, typographyEl);
1010
- }
1011
- });
1070
+ if (!this.initialLoad && this.icPageChangeEvent) {
1071
+ this.truncatePageChange();
1012
1072
  }
1013
- this.icPageChangeEvent = false;
1014
- }
1015
- if (this.densityUpdate) {
1016
- this.getTypographyElements().forEach((typographyEl) => {
1017
- const cellContainer = this.getCellContainer(typographyEl);
1018
- const tooltipEl = this.getTooltip(typographyEl);
1019
- if (cellContainer)
1020
- this.truncate(typographyEl, cellContainer, tooltipEl);
1021
- });
1022
- this.densityUpdate = false;
1023
- }
1024
- if (this.truncationPatternUpdated) {
1025
- if (this.truncationPattern === this.TOOLTIP_STRING) {
1026
- this.getTypographyElements().forEach((typographyEl) => {
1027
- const cellContainer = this.getCellContainer(typographyEl);
1028
- const tooltipEl = this.getTooltip(typographyEl);
1029
- if (cellContainer &&
1030
- typographyEl.scrollHeight > cellContainer.clientHeight) {
1031
- this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
1032
- }
1033
- });
1073
+ if (this.densityUpdate) {
1074
+ this.truncateDensityUpdate();
1034
1075
  }
1035
- else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1036
- this.getTypographyElements().forEach((typographyEl) => {
1037
- const truncWrapper = this.getTruncWrapper(typographyEl);
1038
- const cellContainer = this.getCellContainer(typographyEl);
1039
- if (cellContainer) {
1040
- if (truncWrapper &&
1041
- (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
1042
- truncWrapper.scrollHeight) {
1043
- this.resetShowHideTruncation(typographyEl);
1044
- return;
1045
- }
1046
- if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
1047
- this.addShowHideTruncation(cellContainer, typographyEl);
1048
- }
1049
- }
1050
- });
1076
+ if (this.truncationPatternUpdated) {
1077
+ this.truncatePatternUpdated();
1051
1078
  }
1052
1079
  }
1053
1080
  }
1081
+ componentDidRender() {
1082
+ this.fixCellTooltips();
1083
+ this.updateCellHeightsWithDescriptions();
1084
+ this.adjustWidthForActionElement();
1085
+ }
1054
1086
  createShowHideTruncation(typographyEl, cellContainer, descriptionHeight = 0) {
1055
1087
  typographyEl.checkMaxLines(typographyEl.scrollHeight);
1056
1088
  typographyEl.setAttribute("max-lines", `${this.getLines(cellContainer.clientHeight - descriptionHeight)}`);
@@ -1114,18 +1146,17 @@ const DataTable = class {
1114
1146
  handleDensityChange(ev) {
1115
1147
  this.density = ev.detail.value;
1116
1148
  }
1117
- loadingHandler(newValue) {
1118
- if (newValue)
1119
- this.startLoadingTimer();
1149
+ loadingHandler() {
1120
1150
  if (this.loading) {
1151
+ this.startLoadingTimer();
1121
1152
  setTimeout(() => {
1122
1153
  this.showLoadingIndicator();
1123
1154
  }, 500);
1124
1155
  }
1125
1156
  }
1126
- truncationPatternHandler(newValue) {
1127
- if (newValue === this.TOOLTIP_STRING) {
1128
- this.resetShowHideTruncation();
1157
+ truncationPatternHandler() {
1158
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
1159
+ this.resetAllShowHideTruncation();
1129
1160
  this.updateTruncationTooltip(true);
1130
1161
  // Not using debounceDataTruncation here due to resizeObserver not being triggered
1131
1162
  this.getTypographyElements().forEach((typographyEl) => {
@@ -1135,25 +1166,20 @@ const DataTable = class {
1135
1166
  this.truncate(typographyEl, cellContainer, tooltip);
1136
1167
  });
1137
1168
  }
1138
- if (newValue === this.SHOW_HIDE_STRING) {
1169
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
1139
1170
  // ResizeObserver is trigger here due to the see more/see less links being removed.
1140
1171
  // The resizeObserver will also apply the tooltip where relevant
1141
1172
  this.updateTruncationTooltip(true);
1142
1173
  this.getTypographyElements().forEach((typographyEl) => {
1143
- const truncWrapper = this.getTruncWrapper(typographyEl);
1144
1174
  const cellContainer = this.getCellContainer(typographyEl);
1145
1175
  if (cellContainer) {
1146
- if (truncWrapper &&
1147
- cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
1148
- truncWrapper.scrollHeight) {
1149
- this.resetShowHideTruncation(typographyEl);
1176
+ if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
1177
+ this.resetSingleShowHideTruncation(typographyEl, cellContainer);
1150
1178
  return;
1151
1179
  }
1152
1180
  setTimeout(() => {
1153
1181
  // slight delay due to data rendering
1154
- if (typographyEl.scrollHeight > cellContainer.clientHeight) {
1155
- this.addShowHideTruncation(cellContainer, typographyEl);
1156
- }
1182
+ this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
1157
1183
  }, 150);
1158
1184
  }
1159
1185
  });
@@ -1175,40 +1201,6 @@ const DataTable = class {
1175
1201
  async densityHandler() {
1176
1202
  this.densityUpdate = true;
1177
1203
  }
1178
- resetShowHideTruncation(typographyEl) {
1179
- if (typographyEl) {
1180
- const truncWrapper = this.getTruncWrapper(typographyEl);
1181
- const cellContainer = this.getCellContainer(typographyEl);
1182
- if (!(cellContainer && truncWrapper))
1183
- return;
1184
- if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
1185
- !isEmptyString(typographyEl.getAttribute("max-lines")) &&
1186
- Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
1187
- Number(typographyEl.getAttribute("max-lines"))) {
1188
- typographyEl.checkMaxLines(truncWrapper.scrollHeight);
1189
- typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
1190
- typographyEl.setShowHideExpanded(false);
1191
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
1192
- }
1193
- else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
1194
- typographyEl.resetTruncation().then(() => {
1195
- if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
1196
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
1197
- }
1198
- });
1199
- }
1200
- }
1201
- else {
1202
- this.getTypographyElements().forEach((typographyEl) => {
1203
- const cellContainer = this.getCellContainer(typographyEl);
1204
- typographyEl.resetTruncation().then(() => {
1205
- if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
1206
- cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
1207
- }
1208
- });
1209
- });
1210
- }
1211
- }
1212
1204
  rowHeightChangeHandler(newValue, oldValue) {
1213
1205
  if (+newValue !== +oldValue) {
1214
1206
  this.deleteTextWrapDataKey(this.data);
@@ -1307,22 +1299,22 @@ const DataTable = class {
1307
1299
  ? "deselect all"
1308
1300
  : "select all remaining"
1309
1301
  : "select all";
1310
- return (h(Host, { key: '958fa1f6c94033432d7067e06019609fe7237d61', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, h("div", { key: '1329ca354856f1be45d497c8df2b07567cb4a55f', class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { key: 'd77d48cef482df9b23bc8d3f16f0894219780c14', name: "title-bar" }), h("div", { key: '0cd8afd1c902302c90f77e1993728b7e54414574', class: {
1302
+ 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: {
1311
1303
  ["table-row-container"]: true,
1312
1304
  scrollable,
1313
- }, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: 'af15b0a6fbf6450fbe94f257392747edfb7a412b', style: {
1305
+ }, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '061ab3f20e857b05a4cd668656b0a730f1d0645a', style: {
1314
1306
  "--table-layout": tableLayout,
1315
- } }, h("caption", { key: 'd4398274b15ba603ced3de3e9df2dbeffae1c2ca', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: 'eb6aac42605c79cb005a06d0554ee2f5c9ef6674', class: {
1307
+ } }, h("caption", { key: '727550fa24947c102cd231b1a4e262ffcba6e3b3', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: 'c07fa1fddf4fa8364c52444a3cc8df0d1bdaabaf', class: {
1316
1308
  ["column-header-sticky"]: stickyColumnHeaders,
1317
1309
  ["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
1318
- } }, h("tr", { key: 'c67498acd008ab42bcaf4f41b346dba60f438b6d' }, rowSelection && data && (h("th", { key: 'd8be3faa102e4a75c0af65969a735bfb7f3ff90a', class: {
1310
+ } }, h("tr", { key: '01735185f99abdd22a71edcaf944642d6e2c45de' }, rowSelection && data && (h("th", { key: '40c7157f3f3e45b6e9a9a0dfc65e2374526e150d', class: {
1319
1311
  "column-header": true,
1320
1312
  "checkbox-cell": true,
1321
1313
  "updating-state-headers": updating && !loading,
1322
1314
  [`table-density-${density}`]: this.notDefaultDensity(),
1323
- } }, h("div", { key: '3cd44c2f9c8ea0ba0b057598c44f06d28dbcb068', class: "checkbox-wrapper" }, h("ic-checkbox", { key: '2d7d914b7d645b32018f8566af5f67f17161e808', 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 &&
1315
+ } }, 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 &&
1324
1316
  !loading &&
1325
- (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: '8f46c505248e1140a88b4eb5ae9151683f7a6f1e', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (h("div", { key: 'f8e0b482ed9e3043273c82e032592a5d98309dec', 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: 'd072129f3fc5a1cd678384466ed71ad56e838b65', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
1317
+ (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
1326
1318
  ? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
1327
1319
  sortedColumn} sorted ${sortedColumnOrder}`
1328
1320
  : "table unsorted")))));