@ukic/canary-web-components 3.0.0-canary.1 → 3.0.0-canary.11

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 (737) hide show
  1. package/README.md +3 -2
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/{helpers-6817cfbb.js → helpers-02b23286.js} +65 -155
  4. package/dist/cjs/helpers-02b23286.js.map +1 -0
  5. package/dist/cjs/{helpers-33b42cd6.js → helpers-ce248d54.js} +80 -29
  6. package/dist/cjs/helpers-ce248d54.js.map +1 -0
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js +10 -10
  8. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-accordion.cjs.entry.js +12 -5
  10. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-alert.cjs.entry.js +9 -14
  12. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-back-to-top.cjs.entry.js +8 -5
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-badge.cjs.entry.js +26 -3
  16. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +43 -20
  18. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js +49 -4
  20. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-button_3.cjs.entry.js +28 -26
  22. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-card-horizontal.cjs.entry.js +33 -35
  24. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-card-vertical.cjs.entry.js +48 -47
  26. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-checkbox-group.cjs.entry.js +21 -6
  28. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-checkbox.cjs.entry.js +10 -4
  30. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-chip.cjs.entry.js +27 -15
  32. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  34. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +7 -7
  37. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-data-table.cjs.entry.js +377 -110
  39. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-date-input.cjs.entry.js +29 -18
  41. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-date-picker.cjs.entry.js +16 -5
  43. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-dialog.cjs.entry.js +32 -9
  45. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-divider.cjs.entry.js +73 -9
  47. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-empty-state_2.cjs.entry.js +118 -50
  49. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-footer-link-group.cjs.entry.js +6 -7
  51. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-footer-link.cjs.entry.js +8 -7
  53. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-footer.cjs.entry.js +24 -14
  55. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-hero.cjs.entry.js +7 -15
  57. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +17 -9
  59. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1016 -0
  61. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
  62. package/dist/cjs/ic-input-label_2.cjs.entry.js +82 -0
  63. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
  64. package/dist/cjs/ic-link.cjs.entry.js +10 -12
  65. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-menu-group.cjs.entry.js +3 -3
  67. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-menu-item.cjs.entry.js +25 -18
  69. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-navigation-button.cjs.entry.js +11 -8
  71. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-navigation-group.cjs.entry.js +10 -8
  73. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-navigation-item.cjs.entry.js +60 -8
  75. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -4
  77. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-page-header.cjs.entry.js +8 -6
  79. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-pagination_4.cjs.entry.js +267 -112
  81. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-popover-menu.cjs.entry.js +47 -25
  83. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-radio-group.cjs.entry.js +60 -29
  85. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-radio-option.cjs.entry.js +42 -22
  87. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-search-bar.cjs.entry.js +54 -56
  89. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -11
  91. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-skeleton.cjs.entry.js +4 -4
  93. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-status-tag.cjs.entry.js +5 -4
  95. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-step.cjs.entry.js +4 -5
  97. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-stepper.cjs.entry.js +12 -2
  99. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-switch.cjs.entry.js +21 -16
  101. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-tab-context.cjs.entry.js +60 -123
  103. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -19
  105. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  107. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-tab.cjs.entry.js +10 -8
  109. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-theme.cjs.entry.js +20 -20
  111. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  113. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +62 -12
  115. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-toggle-button.cjs.entry.js +64 -9
  117. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ic-top-navigation.cjs.entry.js +13 -7
  119. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ic-tree-item.cjs.entry.js +27 -16
  121. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ic-tree-view.cjs.entry.js +44 -24
  123. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ic-typography.cjs.entry.js +5 -3
  125. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  126. package/dist/cjs/index-4cf27b16.js +4 -12
  127. package/dist/cjs/loader.cjs.js +1 -1
  128. package/dist/collection/collection-manifest.json +0 -2
  129. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +26 -26
  130. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +63 -38
  131. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
  132. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +10 -0
  133. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -1
  134. package/dist/collection/components/ic-data-table/ic-data-table.css +194 -26
  135. package/dist/collection/components/ic-data-table/ic-data-table.js +479 -129
  136. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  137. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  138. package/dist/collection/components/ic-data-table/story-data.js +460 -7
  139. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  140. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +123 -29
  141. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  142. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +15 -10
  143. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +5 -5
  144. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -1
  145. package/dist/collection/components/ic-date-input/ic-date-input.css +74 -9
  146. package/dist/collection/components/ic-date-input/ic-date-input.js +73 -18
  147. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  148. package/dist/collection/components/ic-date-picker/ic-date-picker.css +18 -16
  149. package/dist/collection/components/ic-date-picker/ic-date-picker.js +59 -4
  150. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  151. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +4 -7
  152. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +230 -53
  153. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  154. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
  155. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
  156. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
  157. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  158. package/dist/collection/components/ic-tree-item/ic-tree-item.css +51 -26
  159. package/dist/collection/components/ic-tree-item/ic-tree-item.js +89 -44
  160. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  161. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +3 -0
  162. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -1
  163. package/dist/collection/components/ic-tree-view/ic-tree-view.css +31 -8
  164. package/dist/collection/components/ic-tree-view/ic-tree-view.js +116 -38
  165. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  166. package/dist/collection/utils/helpers.js +53 -34
  167. package/dist/collection/utils/helpers.js.map +1 -1
  168. package/dist/collection/utils/types.js +6 -6
  169. package/dist/collection/utils/types.js.map +1 -1
  170. package/dist/components/helpers.js +73 -26
  171. package/dist/components/helpers.js.map +1 -1
  172. package/dist/components/helpers2.js +60 -145
  173. package/dist/components/helpers2.js.map +1 -1
  174. package/dist/components/ic-accordion-group.js +11 -11
  175. package/dist/components/ic-accordion-group.js.map +1 -1
  176. package/dist/components/ic-accordion.js +14 -6
  177. package/dist/components/ic-accordion.js.map +1 -1
  178. package/dist/components/ic-alert.js +12 -16
  179. package/dist/components/ic-alert.js.map +1 -1
  180. package/dist/components/ic-back-to-top.js +9 -5
  181. package/dist/components/ic-back-to-top.js.map +1 -1
  182. package/dist/components/ic-badge.js +28 -5
  183. package/dist/components/ic-badge.js.map +1 -1
  184. package/dist/components/ic-breadcrumb-group.js +44 -20
  185. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  186. package/dist/components/ic-breadcrumb2.js +51 -4
  187. package/dist/components/ic-breadcrumb2.js.map +1 -1
  188. package/dist/components/ic-button2.js +21 -20
  189. package/dist/components/ic-button2.js.map +1 -1
  190. package/dist/components/ic-card-horizontal.js +38 -37
  191. package/dist/components/ic-card-horizontal.js.map +1 -1
  192. package/dist/components/ic-card-vertical.js +54 -50
  193. package/dist/components/ic-card-vertical.js.map +1 -1
  194. package/dist/components/ic-checkbox-group.js +25 -7
  195. package/dist/components/ic-checkbox-group.js.map +1 -1
  196. package/dist/components/ic-checkbox.js +12 -4
  197. package/dist/components/ic-checkbox.js.map +1 -1
  198. package/dist/components/ic-chip.js +32 -16
  199. package/dist/components/ic-chip.js.map +1 -1
  200. package/dist/components/ic-classification-banner.js +1 -1
  201. package/dist/components/ic-classification-banner.js.map +1 -1
  202. package/dist/components/ic-data-row.js +1 -1
  203. package/dist/components/ic-data-table-title-bar.js +6 -6
  204. package/dist/components/ic-data-table-title-bar.js.map +1 -1
  205. package/dist/components/ic-data-table.js +382 -110
  206. package/dist/components/ic-data-table.js.map +1 -1
  207. package/dist/components/ic-date-input2.js +32 -18
  208. package/dist/components/ic-date-input2.js.map +1 -1
  209. package/dist/components/ic-date-picker.js +19 -5
  210. package/dist/components/ic-date-picker.js.map +1 -1
  211. package/dist/components/ic-dialog.js +33 -9
  212. package/dist/components/ic-dialog.js.map +1 -1
  213. package/dist/components/ic-divider2.js +89 -12
  214. package/dist/components/ic-divider2.js.map +1 -1
  215. package/dist/components/ic-empty-state2.js +10 -17
  216. package/dist/components/ic-empty-state2.js.map +1 -1
  217. package/dist/components/ic-footer-link-group.js +7 -8
  218. package/dist/components/ic-footer-link-group.js.map +1 -1
  219. package/dist/components/ic-footer-link.js +9 -8
  220. package/dist/components/ic-footer-link.js.map +1 -1
  221. package/dist/components/ic-footer.js +25 -15
  222. package/dist/components/ic-footer.js.map +1 -1
  223. package/dist/components/ic-hero.js +9 -17
  224. package/dist/components/ic-hero.js.map +1 -1
  225. package/dist/components/ic-horizontal-scroll2.js +19 -9
  226. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  227. package/dist/components/ic-input-component-container2.js +23 -32
  228. package/dist/components/ic-input-component-container2.js.map +1 -1
  229. package/dist/components/ic-input-label2.js +19 -20
  230. package/dist/components/ic-input-label2.js.map +1 -1
  231. package/dist/components/ic-input-validation2.js +9 -9
  232. package/dist/components/ic-input-validation2.js.map +1 -1
  233. package/dist/components/ic-link2.js +13 -15
  234. package/dist/components/ic-link2.js.map +1 -1
  235. package/dist/components/ic-loading-indicator2.js +11 -9
  236. package/dist/components/ic-loading-indicator2.js.map +1 -1
  237. package/dist/components/ic-menu-group.js +2 -2
  238. package/dist/components/ic-menu-group.js.map +1 -1
  239. package/dist/components/ic-menu-item2.js +30 -21
  240. package/dist/components/ic-menu-item2.js.map +1 -1
  241. package/dist/components/ic-menu2.js +472 -175
  242. package/dist/components/ic-menu2.js.map +1 -1
  243. package/dist/components/ic-navigation-button.js +13 -9
  244. package/dist/components/ic-navigation-button.js.map +1 -1
  245. package/dist/components/ic-navigation-group.js +12 -9
  246. package/dist/components/ic-navigation-group.js.map +1 -1
  247. package/dist/components/ic-navigation-item.js +64 -10
  248. package/dist/components/ic-navigation-item.js.map +1 -1
  249. package/dist/components/ic-navigation-menu2.js +6 -4
  250. package/dist/components/ic-navigation-menu2.js.map +1 -1
  251. package/dist/components/ic-page-header.js +9 -6
  252. package/dist/components/ic-page-header.js.map +1 -1
  253. package/dist/components/ic-pagination-bar2.js +123 -39
  254. package/dist/components/ic-pagination-bar2.js.map +1 -1
  255. package/dist/components/ic-pagination-item2.js +15 -12
  256. package/dist/components/ic-pagination-item2.js.map +1 -1
  257. package/dist/components/ic-pagination2.js +25 -15
  258. package/dist/components/ic-pagination2.js.map +1 -1
  259. package/dist/components/ic-popover-menu.js +50 -26
  260. package/dist/components/ic-popover-menu.js.map +1 -1
  261. package/dist/components/ic-radio-group.js +63 -30
  262. package/dist/components/ic-radio-group.js.map +1 -1
  263. package/dist/components/ic-radio-option.js +45 -23
  264. package/dist/components/ic-radio-option.js.map +1 -1
  265. package/dist/components/ic-search-bar.js +70 -81
  266. package/dist/components/ic-search-bar.js.map +1 -1
  267. package/dist/components/ic-select2.js +196 -67
  268. package/dist/components/ic-select2.js.map +1 -1
  269. package/dist/components/ic-side-navigation.js +17 -12
  270. package/dist/components/ic-side-navigation.js.map +1 -1
  271. package/dist/components/ic-skeleton.js +5 -5
  272. package/dist/components/ic-skeleton.js.map +1 -1
  273. package/dist/components/ic-status-tag.js +5 -3
  274. package/dist/components/ic-status-tag.js.map +1 -1
  275. package/dist/components/ic-step.js +4 -4
  276. package/dist/components/ic-step.js.map +1 -1
  277. package/dist/components/ic-stepper.js +14 -3
  278. package/dist/components/ic-stepper.js.map +1 -1
  279. package/dist/components/ic-switch.js +24 -18
  280. package/dist/components/ic-switch.js.map +1 -1
  281. package/dist/components/ic-tab-context.js +60 -123
  282. package/dist/components/ic-tab-context.js.map +1 -1
  283. package/dist/components/ic-tab-group.js +2 -18
  284. package/dist/components/ic-tab-group.js.map +1 -1
  285. package/dist/components/ic-tab-panel.js +1 -1
  286. package/dist/components/ic-tab-panel.js.map +1 -1
  287. package/dist/components/ic-tab.js +10 -8
  288. package/dist/components/ic-tab.js.map +1 -1
  289. package/dist/components/ic-text-field2.js +46 -24
  290. package/dist/components/ic-text-field2.js.map +1 -1
  291. package/dist/components/ic-theme.js +22 -22
  292. package/dist/components/ic-theme.js.map +1 -1
  293. package/dist/components/ic-toast.js +4 -4
  294. package/dist/components/ic-toast.js.map +1 -1
  295. package/dist/components/ic-toggle-button-group.js +75 -14
  296. package/dist/components/ic-toggle-button-group.js.map +1 -1
  297. package/dist/components/ic-toggle-button.js +76 -17
  298. package/dist/components/ic-toggle-button.js.map +1 -1
  299. package/dist/components/ic-tooltip2.js +1 -1
  300. package/dist/components/ic-tooltip2.js.map +1 -1
  301. package/dist/components/ic-top-navigation.js +15 -8
  302. package/dist/components/ic-top-navigation.js.map +1 -1
  303. package/dist/components/ic-tree-item.js +32 -18
  304. package/dist/components/ic-tree-item.js.map +1 -1
  305. package/dist/components/ic-tree-view.js +53 -28
  306. package/dist/components/ic-tree-view.js.map +1 -1
  307. package/dist/components/ic-typography2.js +4 -2
  308. package/dist/components/ic-typography2.js.map +1 -1
  309. package/dist/core/core.css +1607 -77
  310. package/dist/core/core.esm.js +1 -1
  311. package/dist/core/core.esm.js.map +1 -1
  312. package/dist/core/p-007293a4.entry.js +2 -0
  313. package/dist/core/p-007293a4.entry.js.map +1 -0
  314. package/dist/core/{p-5f5403e2.entry.js → p-01ab3a15.entry.js} +2 -2
  315. package/dist/core/{p-5f5403e2.entry.js.map → p-01ab3a15.entry.js.map} +1 -1
  316. package/dist/core/p-01e4affd.entry.js +2 -0
  317. package/dist/core/p-01e4affd.entry.js.map +1 -0
  318. package/dist/core/p-052a9f31.entry.js +2 -0
  319. package/dist/core/p-052a9f31.entry.js.map +1 -0
  320. package/dist/core/p-059c08a0.entry.js +2 -0
  321. package/dist/core/p-059c08a0.entry.js.map +1 -0
  322. package/dist/core/p-07784e04.entry.js +2 -0
  323. package/dist/core/p-07784e04.entry.js.map +1 -0
  324. package/dist/core/p-0c225c1a.entry.js +2 -0
  325. package/dist/core/p-0c225c1a.entry.js.map +1 -0
  326. package/dist/core/p-14a6e578.entry.js +2 -0
  327. package/dist/core/p-14a6e578.entry.js.map +1 -0
  328. package/dist/core/p-1684a003.entry.js +2 -0
  329. package/dist/core/p-1684a003.entry.js.map +1 -0
  330. package/dist/core/p-1af4b9c1.entry.js +2 -0
  331. package/dist/core/p-1af4b9c1.entry.js.map +1 -0
  332. package/dist/core/p-1bf881bb.entry.js +2 -0
  333. package/dist/core/p-1bf881bb.entry.js.map +1 -0
  334. package/dist/core/p-1eb21184.entry.js +2 -0
  335. package/dist/core/p-1eb21184.entry.js.map +1 -0
  336. package/dist/core/p-2039e996.entry.js +2 -0
  337. package/dist/core/p-2039e996.entry.js.map +1 -0
  338. package/dist/core/p-20c780cb.entry.js +2 -0
  339. package/dist/core/p-20c780cb.entry.js.map +1 -0
  340. package/dist/core/p-21c90000.entry.js +2 -0
  341. package/dist/core/p-21c90000.entry.js.map +1 -0
  342. package/dist/core/p-2376e171.entry.js +2 -0
  343. package/dist/core/p-2376e171.entry.js.map +1 -0
  344. package/dist/core/p-23f62fca.entry.js +2 -0
  345. package/dist/core/p-23f62fca.entry.js.map +1 -0
  346. package/dist/core/p-28c8d6e3.entry.js +2 -0
  347. package/dist/core/p-28c8d6e3.entry.js.map +1 -0
  348. package/dist/core/p-2c59f79e.entry.js +2 -0
  349. package/dist/core/p-2c59f79e.entry.js.map +1 -0
  350. package/dist/core/{p-bf670360.entry.js → p-2e261288.entry.js} +2 -2
  351. package/dist/core/p-2e261288.entry.js.map +1 -0
  352. package/dist/core/p-36242f26.entry.js +2 -0
  353. package/dist/core/p-36242f26.entry.js.map +1 -0
  354. package/dist/core/p-37cced7a.entry.js +2 -0
  355. package/dist/core/p-37cced7a.entry.js.map +1 -0
  356. package/dist/core/p-3c17ca15.entry.js +2 -0
  357. package/dist/core/p-3c17ca15.entry.js.map +1 -0
  358. package/dist/core/p-435d9ce2.entry.js +2 -0
  359. package/dist/core/p-435d9ce2.entry.js.map +1 -0
  360. package/dist/core/p-47e0072d.entry.js +2 -0
  361. package/dist/core/p-47e0072d.entry.js.map +1 -0
  362. package/dist/core/p-49fbe074.entry.js +2 -0
  363. package/dist/core/p-49fbe074.entry.js.map +1 -0
  364. package/dist/core/p-4ba91306.entry.js +2 -0
  365. package/dist/core/p-4ba91306.entry.js.map +1 -0
  366. package/dist/core/p-50e24896.entry.js +2 -0
  367. package/dist/core/p-50e24896.entry.js.map +1 -0
  368. package/dist/core/p-5193184c.entry.js +2 -0
  369. package/dist/core/p-5193184c.entry.js.map +1 -0
  370. package/dist/core/p-51c6561f.entry.js +2 -0
  371. package/dist/core/p-51c6561f.entry.js.map +1 -0
  372. package/dist/core/p-534f7f0d.entry.js +2 -0
  373. package/dist/core/p-534f7f0d.entry.js.map +1 -0
  374. package/dist/core/p-542ffaf4.entry.js +2 -0
  375. package/dist/core/p-542ffaf4.entry.js.map +1 -0
  376. package/dist/core/p-555dd292.entry.js +2 -0
  377. package/dist/core/p-555dd292.entry.js.map +1 -0
  378. package/dist/core/p-5d03b04e.entry.js +2 -0
  379. package/dist/core/p-5d03b04e.entry.js.map +1 -0
  380. package/dist/core/p-5e616d85.entry.js +2 -0
  381. package/dist/core/p-5e616d85.entry.js.map +1 -0
  382. package/dist/core/p-64101c64.entry.js +2 -0
  383. package/dist/core/p-64101c64.entry.js.map +1 -0
  384. package/dist/core/p-70616efa.js +2 -0
  385. package/dist/core/p-70616efa.js.map +1 -0
  386. package/dist/core/p-76c94cee.entry.js +2 -0
  387. package/dist/core/p-76c94cee.entry.js.map +1 -0
  388. package/dist/core/p-7d1f7976.entry.js +2 -0
  389. package/dist/core/p-7d1f7976.entry.js.map +1 -0
  390. package/dist/core/p-9158c34f.entry.js +2 -0
  391. package/dist/core/p-9158c34f.entry.js.map +1 -0
  392. package/dist/core/{p-266341f5.entry.js → p-91c720bc.entry.js} +2 -2
  393. package/dist/core/{p-266341f5.entry.js.map → p-91c720bc.entry.js.map} +1 -1
  394. package/dist/core/p-94efa0d2.entry.js +2 -0
  395. package/dist/core/p-94efa0d2.entry.js.map +1 -0
  396. package/dist/core/p-9bf9da9b.entry.js +2 -0
  397. package/dist/core/p-9bf9da9b.entry.js.map +1 -0
  398. package/dist/core/p-a04712b9.js +2 -0
  399. package/dist/core/p-a04712b9.js.map +1 -0
  400. package/dist/core/p-a33bf749.entry.js +2 -0
  401. package/dist/core/p-a33bf749.entry.js.map +1 -0
  402. package/dist/core/p-a707b036.entry.js +2 -0
  403. package/dist/core/p-a707b036.entry.js.map +1 -0
  404. package/dist/core/p-a74be80c.entry.js +2 -0
  405. package/dist/core/p-a74be80c.entry.js.map +1 -0
  406. package/dist/core/p-af547c0a.entry.js +2 -0
  407. package/dist/core/p-af547c0a.entry.js.map +1 -0
  408. package/dist/core/p-b0170269.entry.js +2 -0
  409. package/dist/core/p-b0170269.entry.js.map +1 -0
  410. package/dist/core/p-b6e385ba.entry.js +2 -0
  411. package/dist/core/p-b6e385ba.entry.js.map +1 -0
  412. package/dist/core/p-bb418e1b.entry.js +2 -0
  413. package/dist/core/p-bb418e1b.entry.js.map +1 -0
  414. package/dist/core/{p-306def43.entry.js → p-d2dbb1dc.entry.js} +2 -2
  415. package/dist/core/p-d2dbb1dc.entry.js.map +1 -0
  416. package/dist/core/p-e3303bbe.entry.js +2 -0
  417. package/dist/core/p-e3303bbe.entry.js.map +1 -0
  418. package/dist/core/p-e3e0cf46.entry.js +2 -0
  419. package/dist/core/p-e3e0cf46.entry.js.map +1 -0
  420. package/dist/core/p-e62e5ca3.entry.js +2 -0
  421. package/dist/core/p-e62e5ca3.entry.js.map +1 -0
  422. package/dist/core/{p-c21d0db8.entry.js → p-ebd84a67.entry.js} +2 -2
  423. package/dist/core/p-ebd84a67.entry.js.map +1 -0
  424. package/dist/core/{p-d03374fc.entry.js → p-f154d6e6.entry.js} +2 -2
  425. package/dist/core/p-f1d5bdbd.entry.js +2 -0
  426. package/dist/core/p-f1d5bdbd.entry.js.map +1 -0
  427. package/dist/core/{p-73b40c79.entry.js → p-f482ccb8.entry.js} +2 -2
  428. package/dist/core/p-f482ccb8.entry.js.map +1 -0
  429. package/dist/core/p-f60c8a1b.entry.js +2 -0
  430. package/dist/core/p-f60c8a1b.entry.js.map +1 -0
  431. package/dist/core/{p-f1072c28.entry.js → p-f64abdff.entry.js} +2 -2
  432. package/dist/core/p-f64abdff.entry.js.map +1 -0
  433. package/dist/core/{p-d8563643.entry.js → p-fc71c920.entry.js} +2 -2
  434. package/dist/core/p-fc71c920.entry.js.map +1 -0
  435. package/dist/esm/core.js +1 -1
  436. package/dist/esm/{helpers-5bd2012a.js → helpers-0f42cb46.js} +61 -146
  437. package/dist/esm/helpers-0f42cb46.js.map +1 -0
  438. package/dist/esm/{helpers-dab8ddfe.js → helpers-b4561326.js} +74 -27
  439. package/dist/esm/helpers-b4561326.js.map +1 -0
  440. package/dist/esm/ic-accordion-group.entry.js +10 -10
  441. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  442. package/dist/esm/ic-accordion.entry.js +12 -5
  443. package/dist/esm/ic-accordion.entry.js.map +1 -1
  444. package/dist/esm/ic-alert.entry.js +10 -15
  445. package/dist/esm/ic-alert.entry.js.map +1 -1
  446. package/dist/esm/ic-back-to-top.entry.js +9 -6
  447. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  448. package/dist/esm/ic-badge.entry.js +26 -3
  449. package/dist/esm/ic-badge.entry.js.map +1 -1
  450. package/dist/esm/ic-breadcrumb-group.entry.js +43 -20
  451. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  452. package/dist/esm/ic-breadcrumb.entry.js +49 -4
  453. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  454. package/dist/esm/ic-button_3.entry.js +28 -26
  455. package/dist/esm/ic-button_3.entry.js.map +1 -1
  456. package/dist/esm/ic-card-horizontal.entry.js +34 -36
  457. package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
  458. package/dist/esm/ic-card-vertical.entry.js +49 -48
  459. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  460. package/dist/esm/ic-checkbox-group.entry.js +21 -6
  461. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  462. package/dist/esm/ic-checkbox.entry.js +10 -4
  463. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  464. package/dist/esm/ic-chip.entry.js +28 -16
  465. package/dist/esm/ic-chip.entry.js.map +1 -1
  466. package/dist/esm/ic-classification-banner.entry.js +1 -1
  467. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  468. package/dist/esm/ic-data-row.entry.js +1 -1
  469. package/dist/esm/ic-data-table-title-bar.entry.js +7 -7
  470. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -1
  471. package/dist/esm/ic-data-table.entry.js +377 -110
  472. package/dist/esm/ic-data-table.entry.js.map +1 -1
  473. package/dist/esm/ic-date-input.entry.js +29 -18
  474. package/dist/esm/ic-date-input.entry.js.map +1 -1
  475. package/dist/esm/ic-date-picker.entry.js +16 -5
  476. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  477. package/dist/esm/ic-dialog.entry.js +32 -9
  478. package/dist/esm/ic-dialog.entry.js.map +1 -1
  479. package/dist/esm/ic-divider.entry.js +74 -10
  480. package/dist/esm/ic-divider.entry.js.map +1 -1
  481. package/dist/esm/ic-empty-state_2.entry.js +119 -51
  482. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  483. package/dist/esm/ic-footer-link-group.entry.js +6 -7
  484. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  485. package/dist/esm/ic-footer-link.entry.js +8 -7
  486. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  487. package/dist/esm/ic-footer.entry.js +24 -14
  488. package/dist/esm/ic-footer.entry.js.map +1 -1
  489. package/dist/esm/ic-hero.entry.js +8 -16
  490. package/dist/esm/ic-hero.entry.js.map +1 -1
  491. package/dist/esm/ic-horizontal-scroll.entry.js +17 -9
  492. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  493. package/dist/{collection/components/ic-menu-with-multi/ic-menu.js → esm/ic-input-component-container_3.entry.js} +173 -739
  494. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
  495. package/dist/esm/ic-input-label_2.entry.js +77 -0
  496. package/dist/esm/ic-input-label_2.entry.js.map +1 -0
  497. package/dist/esm/ic-link.entry.js +10 -12
  498. package/dist/esm/ic-link.entry.js.map +1 -1
  499. package/dist/esm/ic-menu-group.entry.js +3 -3
  500. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  501. package/dist/esm/ic-menu-item.entry.js +25 -18
  502. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  503. package/dist/esm/ic-navigation-button.entry.js +11 -8
  504. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  505. package/dist/esm/ic-navigation-group.entry.js +10 -8
  506. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  507. package/dist/esm/ic-navigation-item.entry.js +61 -9
  508. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  509. package/dist/esm/ic-navigation-menu.entry.js +5 -4
  510. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  511. package/dist/esm/ic-page-header.entry.js +8 -6
  512. package/dist/esm/ic-page-header.entry.js.map +1 -1
  513. package/dist/esm/ic-pagination_4.entry.js +267 -112
  514. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  515. package/dist/esm/ic-popover-menu.entry.js +47 -25
  516. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  517. package/dist/esm/ic-radio-group.entry.js +60 -29
  518. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  519. package/dist/esm/ic-radio-option.entry.js +42 -22
  520. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  521. package/dist/esm/ic-search-bar.entry.js +54 -56
  522. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  523. package/dist/esm/ic-side-navigation.entry.js +16 -11
  524. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  525. package/dist/esm/ic-skeleton.entry.js +4 -4
  526. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  527. package/dist/esm/ic-status-tag.entry.js +5 -4
  528. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  529. package/dist/esm/ic-step.entry.js +4 -5
  530. package/dist/esm/ic-step.entry.js.map +1 -1
  531. package/dist/esm/ic-stepper.entry.js +12 -2
  532. package/dist/esm/ic-stepper.entry.js.map +1 -1
  533. package/dist/esm/ic-switch.entry.js +21 -16
  534. package/dist/esm/ic-switch.entry.js.map +1 -1
  535. package/dist/esm/ic-tab-context.entry.js +60 -123
  536. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  537. package/dist/esm/ic-tab-group.entry.js +3 -19
  538. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  539. package/dist/esm/ic-tab-panel.entry.js +2 -2
  540. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  541. package/dist/esm/ic-tab.entry.js +10 -8
  542. package/dist/esm/ic-tab.entry.js.map +1 -1
  543. package/dist/esm/ic-theme.entry.js +20 -20
  544. package/dist/esm/ic-theme.entry.js.map +1 -1
  545. package/dist/esm/ic-toast.entry.js +4 -4
  546. package/dist/esm/ic-toast.entry.js.map +1 -1
  547. package/dist/esm/ic-toggle-button-group.entry.js +62 -12
  548. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  549. package/dist/esm/ic-toggle-button.entry.js +64 -9
  550. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  551. package/dist/esm/ic-top-navigation.entry.js +13 -7
  552. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  553. package/dist/esm/ic-tree-item.entry.js +28 -17
  554. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  555. package/dist/esm/ic-tree-view.entry.js +45 -25
  556. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  557. package/dist/esm/ic-typography.entry.js +5 -3
  558. package/dist/esm/ic-typography.entry.js.map +1 -1
  559. package/dist/esm/index-93509377.js +4 -12
  560. package/dist/esm/loader.js +1 -1
  561. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +8 -4
  562. package/dist/types/components/ic-data-table/ic-data-table.d.ts +51 -7
  563. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +11 -0
  564. package/dist/types/components/ic-data-table/story-data.d.ts +225 -0
  565. package/dist/types/components/ic-date-input/ic-date-input.d.ts +10 -1
  566. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +10 -1
  567. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +34 -8
  568. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
  569. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +17 -7
  570. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +21 -5
  571. package/dist/types/components.d.ts +189 -490
  572. package/dist/types/utils/helpers.d.ts +14 -11
  573. package/dist/types/utils/types.d.ts +17 -12
  574. package/hydrate/index.js +5150 -7474
  575. package/package.json +12 -10
  576. package/dist/cjs/helpers-33b42cd6.js.map +0 -1
  577. package/dist/cjs/helpers-6817cfbb.js.map +0 -1
  578. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +0 -156
  579. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +0 -1
  580. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +0 -2738
  581. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +0 -1
  582. package/dist/cjs/ic-menu.cjs.entry.js +0 -658
  583. package/dist/cjs/ic-menu.cjs.entry.js.map +0 -1
  584. package/dist/cjs/ic-select-with-multi.cjs.entry.js +0 -788
  585. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +0 -1
  586. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +0 -712
  587. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +0 -1
  588. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +0 -1057
  589. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +0 -1
  590. package/dist/collection/components/ic-select-with-multi/assets/Check.svg +0 -3
  591. package/dist/collection/components/ic-select-with-multi/assets/Clear.svg +0 -3
  592. package/dist/collection/components/ic-select-with-multi/assets/Expand.svg +0 -3
  593. package/dist/collection/components/ic-select-with-multi/ic-select.css +0 -695
  594. package/dist/collection/components/ic-select-with-multi/ic-select.js +0 -1520
  595. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +0 -1
  596. package/dist/collection/components/ic-select-with-multi/story-data.js +0 -216
  597. package/dist/collection/components/ic-select-with-multi/story-data.js.map +0 -1
  598. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +0 -1518
  599. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +0 -1
  600. package/dist/components/ic-menu-with-multi.d.ts +0 -11
  601. package/dist/components/ic-menu-with-multi.js +0 -8
  602. package/dist/components/ic-menu-with-multi.js.map +0 -1
  603. package/dist/components/ic-menu3.js +0 -2803
  604. package/dist/components/ic-menu3.js.map +0 -1
  605. package/dist/components/ic-select-with-multi.d.ts +0 -11
  606. package/dist/components/ic-select-with-multi.js +0 -906
  607. package/dist/components/ic-select-with-multi.js.map +0 -1
  608. package/dist/core/p-06eeb7f2.entry.js +0 -2
  609. package/dist/core/p-06eeb7f2.entry.js.map +0 -1
  610. package/dist/core/p-0922c552.entry.js +0 -2
  611. package/dist/core/p-0922c552.entry.js.map +0 -1
  612. package/dist/core/p-0bc0e852.entry.js +0 -2
  613. package/dist/core/p-0bc0e852.entry.js.map +0 -1
  614. package/dist/core/p-108a9029.entry.js +0 -2
  615. package/dist/core/p-108a9029.entry.js.map +0 -1
  616. package/dist/core/p-13100d3c.entry.js +0 -2
  617. package/dist/core/p-13100d3c.entry.js.map +0 -1
  618. package/dist/core/p-1769df1d.entry.js +0 -2
  619. package/dist/core/p-1769df1d.entry.js.map +0 -1
  620. package/dist/core/p-202bc922.entry.js +0 -2
  621. package/dist/core/p-202bc922.entry.js.map +0 -1
  622. package/dist/core/p-297e99cf.js +0 -2
  623. package/dist/core/p-297e99cf.js.map +0 -1
  624. package/dist/core/p-306def43.entry.js.map +0 -1
  625. package/dist/core/p-30b046b2.entry.js +0 -2
  626. package/dist/core/p-30b046b2.entry.js.map +0 -1
  627. package/dist/core/p-3778cc5e.entry.js +0 -2
  628. package/dist/core/p-3778cc5e.entry.js.map +0 -1
  629. package/dist/core/p-383a5a76.entry.js +0 -2
  630. package/dist/core/p-383a5a76.entry.js.map +0 -1
  631. package/dist/core/p-3a0510e2.entry.js +0 -2
  632. package/dist/core/p-3a0510e2.entry.js.map +0 -1
  633. package/dist/core/p-3ace51f5.entry.js +0 -2
  634. package/dist/core/p-3ace51f5.entry.js.map +0 -1
  635. package/dist/core/p-3f0391c1.entry.js +0 -2
  636. package/dist/core/p-3f0391c1.entry.js.map +0 -1
  637. package/dist/core/p-41fecc61.entry.js +0 -2
  638. package/dist/core/p-41fecc61.entry.js.map +0 -1
  639. package/dist/core/p-46cb94a2.entry.js +0 -2
  640. package/dist/core/p-46cb94a2.entry.js.map +0 -1
  641. package/dist/core/p-4e67f127.entry.js +0 -2
  642. package/dist/core/p-4e67f127.entry.js.map +0 -1
  643. package/dist/core/p-505250cf.entry.js +0 -2
  644. package/dist/core/p-505250cf.entry.js.map +0 -1
  645. package/dist/core/p-50e48f4d.entry.js +0 -2
  646. package/dist/core/p-50e48f4d.entry.js.map +0 -1
  647. package/dist/core/p-56e7459a.entry.js +0 -2
  648. package/dist/core/p-56e7459a.entry.js.map +0 -1
  649. package/dist/core/p-59028160.entry.js +0 -2
  650. package/dist/core/p-59028160.entry.js.map +0 -1
  651. package/dist/core/p-5cfb5821.entry.js +0 -2
  652. package/dist/core/p-5cfb5821.entry.js.map +0 -1
  653. package/dist/core/p-5e6fd734.entry.js +0 -2
  654. package/dist/core/p-5e6fd734.entry.js.map +0 -1
  655. package/dist/core/p-5f313e1a.entry.js +0 -2
  656. package/dist/core/p-5f313e1a.entry.js.map +0 -1
  657. package/dist/core/p-710c6a42.entry.js +0 -2
  658. package/dist/core/p-710c6a42.entry.js.map +0 -1
  659. package/dist/core/p-73b40c79.entry.js.map +0 -1
  660. package/dist/core/p-77a32de5.entry.js +0 -2
  661. package/dist/core/p-77a32de5.entry.js.map +0 -1
  662. package/dist/core/p-7a9de008.entry.js +0 -2
  663. package/dist/core/p-7a9de008.entry.js.map +0 -1
  664. package/dist/core/p-801414e2.entry.js +0 -2
  665. package/dist/core/p-801414e2.entry.js.map +0 -1
  666. package/dist/core/p-82ba744d.entry.js +0 -2
  667. package/dist/core/p-82ba744d.entry.js.map +0 -1
  668. package/dist/core/p-897b8d16.entry.js +0 -2
  669. package/dist/core/p-897b8d16.entry.js.map +0 -1
  670. package/dist/core/p-9397b15b.js +0 -2
  671. package/dist/core/p-9397b15b.js.map +0 -1
  672. package/dist/core/p-9af6adb1.entry.js +0 -2
  673. package/dist/core/p-9af6adb1.entry.js.map +0 -1
  674. package/dist/core/p-9b54feca.entry.js +0 -2
  675. package/dist/core/p-9b54feca.entry.js.map +0 -1
  676. package/dist/core/p-a57cd616.entry.js +0 -2
  677. package/dist/core/p-a57cd616.entry.js.map +0 -1
  678. package/dist/core/p-a5eaed1a.entry.js +0 -2
  679. package/dist/core/p-a5eaed1a.entry.js.map +0 -1
  680. package/dist/core/p-a78cf2cb.entry.js +0 -2
  681. package/dist/core/p-a78cf2cb.entry.js.map +0 -1
  682. package/dist/core/p-a91340b4.entry.js +0 -2
  683. package/dist/core/p-a91340b4.entry.js.map +0 -1
  684. package/dist/core/p-aee8d45b.entry.js +0 -2
  685. package/dist/core/p-aee8d45b.entry.js.map +0 -1
  686. package/dist/core/p-badd4c8d.entry.js +0 -2
  687. package/dist/core/p-badd4c8d.entry.js.map +0 -1
  688. package/dist/core/p-bf670360.entry.js.map +0 -1
  689. package/dist/core/p-c033e7d6.entry.js +0 -2
  690. package/dist/core/p-c033e7d6.entry.js.map +0 -1
  691. package/dist/core/p-c07af2d8.entry.js +0 -2
  692. package/dist/core/p-c07af2d8.entry.js.map +0 -1
  693. package/dist/core/p-c21d0db8.entry.js.map +0 -1
  694. package/dist/core/p-c678f73d.entry.js +0 -2
  695. package/dist/core/p-c678f73d.entry.js.map +0 -1
  696. package/dist/core/p-c6ae9bad.entry.js +0 -2
  697. package/dist/core/p-c6ae9bad.entry.js.map +0 -1
  698. package/dist/core/p-c6c1e08e.entry.js +0 -2
  699. package/dist/core/p-c6c1e08e.entry.js.map +0 -1
  700. package/dist/core/p-cb6cebdd.entry.js +0 -2
  701. package/dist/core/p-cb6cebdd.entry.js.map +0 -1
  702. package/dist/core/p-d16f364a.entry.js +0 -2
  703. package/dist/core/p-d16f364a.entry.js.map +0 -1
  704. package/dist/core/p-d239c33b.entry.js +0 -2
  705. package/dist/core/p-d239c33b.entry.js.map +0 -1
  706. package/dist/core/p-d8563643.entry.js.map +0 -1
  707. package/dist/core/p-da40757f.entry.js +0 -2
  708. package/dist/core/p-da40757f.entry.js.map +0 -1
  709. package/dist/core/p-de052137.entry.js +0 -2
  710. package/dist/core/p-de052137.entry.js.map +0 -1
  711. package/dist/core/p-e5d99316.entry.js +0 -2
  712. package/dist/core/p-e5d99316.entry.js.map +0 -1
  713. package/dist/core/p-e89bb650.entry.js +0 -2
  714. package/dist/core/p-e89bb650.entry.js.map +0 -1
  715. package/dist/core/p-f1072c28.entry.js.map +0 -1
  716. package/dist/core/p-f37df214.entry.js +0 -2
  717. package/dist/core/p-f37df214.entry.js.map +0 -1
  718. package/dist/core/p-f743b0eb.entry.js +0 -2
  719. package/dist/core/p-f743b0eb.entry.js.map +0 -1
  720. package/dist/core/p-f98b1afc.entry.js +0 -2
  721. package/dist/core/p-f98b1afc.entry.js.map +0 -1
  722. package/dist/core/p-fe13f1ba.entry.js +0 -2
  723. package/dist/core/p-fe13f1ba.entry.js.map +0 -1
  724. package/dist/esm/helpers-5bd2012a.js.map +0 -1
  725. package/dist/esm/helpers-dab8ddfe.js.map +0 -1
  726. package/dist/esm/ic-input-component-container_4.entry.js +0 -149
  727. package/dist/esm/ic-input-component-container_4.entry.js.map +0 -1
  728. package/dist/esm/ic-menu-with-multi.entry.js +0 -2734
  729. package/dist/esm/ic-menu-with-multi.entry.js.map +0 -1
  730. package/dist/esm/ic-menu.entry.js +0 -654
  731. package/dist/esm/ic-menu.entry.js.map +0 -1
  732. package/dist/esm/ic-select-with-multi.entry.js +0 -784
  733. package/dist/esm/ic-select-with-multi.entry.js.map +0 -1
  734. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +0 -214
  735. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +0 -259
  736. package/dist/types/components/ic-select-with-multi/story-data.d.ts +0 -32
  737. /package/dist/core/{p-d03374fc.entry.js.map → p-f154d6e6.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-6817cfbb.js');
6
+ const helpers = require('./helpers-02b23286.js');
7
7
 
8
8
  const unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
9
9
  <path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
@@ -17,12 +17,13 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
17
17
  <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
18
18
  </svg>`;
19
19
 
20
- 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)}.truncation-show-hide{overflow:visible;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-border-light)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.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-table-row-selected) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-action-dark-bg-hover)}.sort-button:active{background-color:var(--ic-action-dark-bg-active)}.sort-button svg{color:var(--ic-architectural-black)}.sort-button-unsorted svg{color:var(--ic-color-tertiary-text)}.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)}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}.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-border-light) !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:nth-child(even){background-color:var(--ic-architectural-20)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.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-color:var(--ic-color-secondary-text)}.cell-emphasis-high{font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}.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-border-light)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading.show-background{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}.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-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,.row-header-alignment-right>ic-typography,.cell-alignment-center>ic-typography{flex:1}.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%}@media screen and (min-width: 576px){.column-header-inner-container{display:flex;align-items:center}}";
20
+ 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){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}.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-color-secondary-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}}";
21
21
 
22
22
  const DataTable = class {
23
23
  constructor(hostRef) {
24
24
  index.registerInstance(this, hostRef);
25
25
  this.icRowHeightChange = index.createEvent(this, "icRowHeightChange", 7);
26
+ this.icSelectedRowChange = index.createEvent(this, "icSelectedRowChange", 7);
26
27
  this.icSortChange = index.createEvent(this, "icSortChange", 7);
27
28
  this.DENSITY_HEIGHT_MULTIPLIER = {
28
29
  dense: 0.8,
@@ -54,10 +55,43 @@ const DataTable = class {
54
55
  this.itemsPerPageChange = false;
55
56
  this.DATA_ROW_HEIGHT_STRING = "data-row-height";
56
57
  this.ROW_HEIGHT_CSS_VARIABLE = "--row-height";
58
+ this.LINE_CLAMP_CSS_VARIABLE = "--ic-line-clamp";
57
59
  this.DEFAULT_LINE_HEIGHT = 24;
58
60
  this.densityUpdate = false;
59
61
  this.truncationPatternUpdated = false;
60
62
  this.isNewDebounceDelaySet = false;
63
+ this.headerResizeObserver = null;
64
+ this.IC_TOOLTIP_STRING = "ic-tooltip";
65
+ this.SHOW_TRUNC_TOOLTIP_STRING = "show-trunc-tooltip";
66
+ this.CELL_DESCRIPTION_STRING = ".cell-description";
67
+ this.CELL_CONTAINER_WITH_DESCRIPTION_STRING = "cell-container-with-description";
68
+ this.CELL_TEXT_WRAPPER_STRING = ".cell-text-wrapper";
69
+ this.IC_TYPOGRAPHY_STRING = "ic-typography";
70
+ this.runHeaderResizeObserver = () => {
71
+ this.headerResizeObserver = new ResizeObserver(() => {
72
+ this.headerResizeCallback();
73
+ });
74
+ this.headerResizeObserver.observe(this.el);
75
+ };
76
+ this.headerResizeCallback = () => {
77
+ if (!this.hideColumnHeaders && this.columnHeaderTruncation) {
78
+ const tableContainerWidth = this.el.shadowRoot.querySelector(".table-container").clientWidth;
79
+ if (tableContainerWidth !== this.prevTableContainerWidth) {
80
+ const headers = this.el.shadowRoot.querySelectorAll("th.column-header");
81
+ headers.forEach((header) => {
82
+ const tooltip = header.querySelector(this.IC_TOOLTIP_STRING);
83
+ const typographyEls = header.querySelectorAll(this.IC_TYPOGRAPHY_STRING);
84
+ if (tooltip && typographyEls && typographyEls.length === 2) {
85
+ tooltip.classList.remove(this.SHOW_TRUNC_TOOLTIP_STRING);
86
+ if (typographyEls[1].clientWidth > typographyEls[0].clientWidth) {
87
+ tooltip.classList.add(this.SHOW_TRUNC_TOOLTIP_STRING);
88
+ }
89
+ }
90
+ });
91
+ this.prevTableContainerWidth = tableContainerWidth;
92
+ }
93
+ }
94
+ };
61
95
  this.updateSetRowHeight = (typographyEl) => {
62
96
  const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
63
97
  if (typographyEl) {
@@ -114,8 +148,9 @@ const DataTable = class {
114
148
  }
115
149
  else {
116
150
  if (this.truncationPattern === this.TOOLTIP_STRING && tooltip) {
117
- typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
118
- cellContainer.appendChild(typographyEl);
151
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
152
+ const cellTextWrapper = cellContainer.querySelector(this.CELL_TEXT_WRAPPER_STRING);
153
+ cellTextWrapper.prepend(typographyEl);
119
154
  tooltip.remove();
120
155
  }
121
156
  if (this.truncationPattern === this.SHOW_HIDE_STRING &&
@@ -170,6 +205,7 @@ const DataTable = class {
170
205
  }
171
206
  this.truncate(typographyEl, cellContainer, tooltip);
172
207
  };
208
+ this.getTruncWrapper = (typographyEl) => typographyEl.shadowRoot.querySelector(".trunc-wrapper");
173
209
  this.removeTextWrap = () => {
174
210
  this.getTypographyElements().forEach((typographyEl) => {
175
211
  const tableCell = typographyEl.closest("td");
@@ -191,7 +227,7 @@ const DataTable = class {
191
227
  this.timerStarted = null;
192
228
  }, this.minimumLoadingDisplayDuration);
193
229
  };
194
- this.isObject = (value) => typeof value === "object";
230
+ this.isObject = (value) => value !== undefined && value !== null && typeof value === "object";
195
231
  this.notDefaultDensity = () => this.density !== "default";
196
232
  this.getCellContent = (cell, dataType) => {
197
233
  switch (dataType) {
@@ -214,19 +250,16 @@ const DataTable = class {
214
250
  return this.getObjectValue(cell, key);
215
251
  };
216
252
  this.createUpdatingIndicator = () => {
217
- const { appearance, description, max, min, progress } = this.updatingOptions || {};
218
- return (index.h("th", { colSpan: this.columns.length, class: "updating-state" }, index.h("ic-loading-indicator", { appearance: appearance, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
253
+ const { description, max, min, progress, monochrome } = this.updatingOptions || {};
254
+ return (index.h("th", { colSpan: this.columns.length, class: "updating-state" }, index.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" })));
219
255
  };
220
256
  this.setRowHeight = (height) => {
221
257
  return helpers.pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
222
258
  this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
223
259
  };
224
- this.setTruncationClass = () => {
225
- if (this.truncationPattern) {
226
- return { [`truncation-${this.truncationPattern}`]: true };
227
- }
228
- return {};
229
- };
260
+ this.setTruncationClass = () => this.truncationPattern
261
+ ? { [`truncation-${this.truncationPattern}`]: true }
262
+ : {};
230
263
  this.getColumnWidth = (columnWidth) => {
231
264
  // TODO: Setting max width on columns
232
265
  let columnWidthStyling = {};
@@ -257,6 +290,56 @@ const DataTable = class {
257
290
  }
258
291
  return {};
259
292
  };
293
+ this.adjustWidthForActionElement = () => {
294
+ const elements = this.el.shadowRoot.querySelectorAll(".action-element");
295
+ elements.forEach((element) => {
296
+ const width = element.firstChild.getBoundingClientRect()
297
+ .width;
298
+ const gridWrapper = element.closest(".cell-grid-wrapper");
299
+ gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
300
+ });
301
+ };
302
+ this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, currentRowHeight, cellValue, rowEmphasis) => {
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
304
+ return (index.h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
305
+ !helpers.isSlotUsed(this.el, cellSlotName)
306
+ ? cell
307
+ : null, 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) ||
308
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
309
+ rowAlignment ||
310
+ this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
311
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
312
+ !!rowAlignment ||
313
+ !!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
314
+ ((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
315
+ this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
316
+ !!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
317
+ !!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) ||
318
+ (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
319
+ !!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")) ||
320
+ (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
321
+ rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
322
+ !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
323
+ !!rowEmphasis }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getRowHeight(currentRowHeight, columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
324
+ ? this.setRowHeight(currentRowHeight)
325
+ : null }, helpers.isSlotUsed(this.el, cellSlotName) ? (index.h("slot", { name: cellSlotName })) : (index.h(index.Fragment, null, helpers.isSlotUsed(this.el, `${cellSlotName}-icon`) ? (index.h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) &&
326
+ (cellValue("icon") || ((_l = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _l === void 0 ? void 0 : _l.icon)) && (index.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" &&
327
+ !helpers.isSlotUsed(this.el, cellSlotName) && (index.h("div", { class: {
328
+ "cell-text-wrapper": true,
329
+ "cell-text-no-wrap": !this.truncationPattern,
330
+ } }, index.h("ic-typography", { variant: "body", class: {
331
+ [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
332
+ (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
333
+ rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
334
+ !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
335
+ !!rowEmphasis,
336
+ [`text-${this.density}`]: this.notDefaultDensity(),
337
+ } }, this.isObject(cell) && (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (index.h("ic-link", { href: cellValue("href"), theme: this.theme, target: cellValue("target") || undefined, rel: cellValue("rel") || undefined }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType))), this.isObject(cell) &&
338
+ Object.keys(cell).includes("description") && (index.h("div", { class: {
339
+ ["cell-description"]: true,
340
+ [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
341
+ } }, ((_o = cellValue("description")) === null || _o === void 0 ? void 0 : _o.icon) && (index.h("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), index.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"))))))))));
342
+ };
260
343
  this.createCells = (row, rowIndex) => {
261
344
  var _a;
262
345
  const rowValues = Object.values(row);
@@ -274,7 +357,6 @@ const DataTable = class {
274
357
  ? variableRowHeightVal !== "auto" && variableRowHeightVal
275
358
  : this.globalRowHeight !== "auto" && this.globalRowHeight;
276
359
  return rowValues.map((cell, index$1) => {
277
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
278
360
  const columnProps = this.columns[index$1];
279
361
  const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
280
362
  const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
@@ -290,59 +372,48 @@ const DataTable = class {
290
372
  return (index.h("td", { class: {
291
373
  ["table-cell"]: true,
292
374
  [`table-density-${this.density}`]: this.notDefaultDensity(),
293
- }, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, index.h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
294
- !helpers.isSlotUsed(this.el, cellSlotName)
295
- ? cell
296
- : null, class: 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) ||
297
- ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
298
- rowAlignment ||
299
- this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
300
- !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
301
- !!rowAlignment ||
302
- !!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
303
- ((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
304
- this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
305
- !!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
306
- !!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) ||
307
- (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
308
- !!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) }, this.setTruncationClass()), style: Object.assign(Object.assign({}, this.getRowHeight(currentRowHeight, columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
309
- ? this.setRowHeight(currentRowHeight)
310
- : null }, helpers.isSlotUsed(this.el, cellSlotName) ? (index.h("slot", { name: cellSlotName })) : (index.h(index.Fragment, null, helpers.isSlotUsed(this.el, `${cellSlotName}-icon`) ? (index.h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) && (index.h("span", { class: "icon", innerHTML: cellValue("icon") || (columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
311
- !helpers.isSlotUsed(this.el, cellSlotName) && (index.h("ic-typography", { variant: "body", class: {
312
- [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
313
- (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
314
- rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
315
- !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
316
- !!rowEmphasis,
317
- [`text-${this.density}`]: this.notDefaultDensity(),
318
- } }, this.isObject(cell) &&
319
- (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (index.h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType)))))))));
375
+ ["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
376
+ }, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, this.isObject(cell) &&
377
+ Object.keys(cell).includes("actionElement") ? (index.h("div", { class: "cell-grid-wrapper" }, this.createCellContent(columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, currentRowHeight, cellValue, rowEmphasis), index.h("span", { class: "action-element", innerHTML: cellValue("actionElement"),
378
+ // eslint-disable-next-line react/jsx-no-bind
379
+ onClick: cell.actionOnClick
380
+ ? (event) => this.handleClick(event, cell.actionOnClick)
381
+ : undefined }))) : (this.createCellContent(columnProps, cell, cellSlotName, rowOptions, rowAlignment, hasIcon, currentRowHeight, cellValue, rowEmphasis))));
320
382
  }
321
383
  });
322
384
  };
323
- this.createColumnHeaders = () => {
324
- return this.columns.map(({ cellAlignment, colspan, icon, key, title, columnWidth }) => (index.h("th", { scope: "col", class: {
325
- ["column-header"]: true,
326
- [`table-density-${this.density}`]: this.notDefaultDensity(),
327
- ["updating-state-headers"]: this.updating && !this.loading,
328
- }, style: Object.assign({}, this.getColumnWidth(columnWidth)), colSpan: colspan }, index.h("div", { class: {
329
- "column-header-inner-container": true,
330
- [`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
331
- } }, helpers.isSlotUsed(this.el, `${key}-column-icon`) ? (index.h("slot", { name: `${key}-column-icon` })) : (icon &&
332
- !icon.hideOnHeader && (index.h("span", { class: "icon", innerHTML: icon.icon }))), index.h("ic-typography", { variant: "body", class: {
333
- ["column-header-text"]: true,
334
- [`text-${this.density}`]: this.notDefaultDensity(),
335
- } }, title), this.sortable && (index.h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
336
- // eslint-disable-next-line react/jsx-no-bind
337
- onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
338
- ? this.sortedColumnOrder
339
- : "unsorted"], class: {
340
- ["sort-button"]: true,
341
- ["sort-button-unsorted"]: this.sortedColumn !== key ||
342
- this.sortedColumnOrder === "unsorted",
343
- } }))))));
344
- };
385
+ this.createColumnHeaders = () => (this.columns || []).map(({ cellAlignment, colspan, icon, key, title, columnWidth, excludeColumnFromSort, }, index$1) => (index.h("th", { scope: "col", class: {
386
+ ["column-header"]: true,
387
+ [`table-density-${this.density}`]: this.notDefaultDensity(),
388
+ ["updating-state-headers"]: this.updating && !this.loading,
389
+ }, style: Object.assign({}, this.getColumnWidth(columnWidth)), colSpan: colspan }, index.h("div", { class: {
390
+ "column-header-inner-container": true,
391
+ "truncation-tooltip": this.columnHeaderTruncation,
392
+ [`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
393
+ } }, helpers.isSlotUsed(this.el, `${key}-column-icon`) ? (index.h("slot", { name: `${key}-column-icon` })) : (icon &&
394
+ !icon.hideOnHeader && (index.h("span", { class: "icon", innerHTML: icon.icon }))), this.columnHeaderTruncation ? (index.h("ic-tooltip", { label: title, target: `column-header-${index$1}` }, index.h("ic-typography", { id: `column-header-${index$1}`, variant: "body", class: {
395
+ ["column-header-text"]: true,
396
+ [`text-${this.density}`]: this.notDefaultDensity(),
397
+ } }, title))) : (index.h("ic-typography", { variant: "body", class: {
398
+ ["column-header-text"]: true,
399
+ [`text-${this.density}`]: this.notDefaultDensity(),
400
+ } }, title)), this.sortable && !excludeColumnFromSort && (index.h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
401
+ // eslint-disable-next-line react/jsx-no-bind
402
+ onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
403
+ ? this.sortedColumnOrder
404
+ : "unsorted"], class: {
405
+ ["sort-button"]: true,
406
+ ["sort-button-unsorted"]: this.sortedColumn !== key ||
407
+ this.sortedColumnOrder === "unsorted",
408
+ } }))), this.columnHeaderTruncation && (index.h("ic-typography", { variant: "body", "aria-hidden": "true", class: {
409
+ ["column-header-text"]: true,
410
+ ["dummy-column-header-text"]: this.columnHeaderTruncation,
411
+ [`text-${this.density}`]: this.notDefaultDensity(),
412
+ } }, title)))));
345
413
  this.onRowClick = (row) => {
414
+ if (!this.loading && !this.updating) {
415
+ this.icSelectedRowChange.emit(this.selectedRow !== row ? row : null);
416
+ }
346
417
  this.selectedRow =
347
418
  this.selectedRow !== row && !this.loading && !this.updating && row;
348
419
  };
@@ -359,26 +430,28 @@ const DataTable = class {
359
430
  const organisedData = data.map((row, rowIndex) => {
360
431
  const slottedColumns = this.columns
361
432
  .map(({ key }, index) => helpers.isSlotUsed(this.el, `${key}-${rowIndex}`) && { key, index })
362
- .filter((col) => !!col);
433
+ .filter((col) => !!col &&
434
+ // skip the column if its already in the row
435
+ !Object.prototype.hasOwnProperty.call(row, col.key));
363
436
  return slottedColumns.length > 0
364
437
  ? helpers.addDataToPosition(row, slottedColumns, "")
365
438
  : row;
366
439
  });
367
440
  return organisedData
368
- .sort(!this.sortable ? undefined : this.getSortFunction())
441
+ .sort(!this.sortable || this.disableAutoSort
442
+ ? undefined
443
+ : this.getSortFunction())
369
444
  .map((row, index$1) => {
370
445
  return (index.h("tr", {
371
446
  // eslint-disable-next-line react/jsx-no-bind
372
447
  onClick: () => this.onRowClick(row), class: {
373
448
  ["table-row"]: true,
374
- ["table-row-selected"]: this.selectedRow === row,
449
+ ["table-row-selected"]: this.highlightSelectedRow && this.selectedRow === row,
375
450
  }
376
451
  }, this.createCells(row, index$1)));
377
452
  });
378
453
  };
379
- this.getObjectValue = (cell, key) => {
380
- return Object.values(cell)[Object.keys(cell).indexOf(key)];
381
- };
454
+ this.getObjectValue = (cell, key) => Object.values(cell)[Object.keys(cell).indexOf(key)];
382
455
  this.getSortButtonLabel = (key) => {
383
456
  let label = "";
384
457
  const getNextSortOption = (option) => {
@@ -441,7 +514,8 @@ const DataTable = class {
441
514
  });
442
515
  };
443
516
  this.getTypographyElements = () => {
444
- return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)"));
517
+ // Filter out column headers and cell descriptions
518
+ return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text,.cell-description-text)"));
445
519
  };
446
520
  this.getTooltip = (typographyEl) => {
447
521
  return typographyEl.closest(this.TOOLTIP);
@@ -452,7 +526,7 @@ const DataTable = class {
452
526
  const cellContainer = this.getCellContainer(typographyEl);
453
527
  if (typographyEl.closest(this.TEXT_WRAP_CLASS)) {
454
528
  this.removeTooltip(cellContainer, typographyEl, tooltip);
455
- typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
529
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
456
530
  return;
457
531
  }
458
532
  this.regenerateTooltip(cellContainer, typographyEl, tooltip, removeTooltipOnly);
@@ -461,6 +535,56 @@ const DataTable = class {
461
535
  this.updateScrollOffset = () => {
462
536
  this.scrollOffset = this.el.shadowRoot.querySelector(".table-row-container").scrollTop;
463
537
  };
538
+ this.updateRowHeightForDescriptions = (rowHeight, cellContainer) => {
539
+ cellContainer.setAttribute("data-row-height", rowHeight.toString());
540
+ cellContainer.setAttribute("style", `${this.ROW_HEIGHT_CSS_VARIABLE}: ${rowHeight}px`);
541
+ };
542
+ // Method to update the row heights on cells with descriptions and tooltip truncation
543
+ this.updateCellHeightsWithDescriptions = () => {
544
+ const descriptions = this.el.shadowRoot.querySelectorAll(this.CELL_DESCRIPTION_STRING);
545
+ descriptions.forEach((description) => {
546
+ const cellContainer = description.closest(`.${this.CELL_CONTAINER_WITH_DESCRIPTION_STRING}`);
547
+ const typography = cellContainer.querySelector(this.IC_TYPOGRAPHY_STRING);
548
+ const descriptionMarginTop = window
549
+ .getComputedStyle(description)
550
+ .getPropertyValue("margin-top");
551
+ const descriptionHeight = description.clientHeight + parseInt(descriptionMarginTop, 10);
552
+ if (this.globalRowHeight && this.globalRowHeight !== "auto") {
553
+ if (!typography.textContent &&
554
+ descriptionHeight + this.DEFAULT_LINE_HEIGHT > this.globalRowHeight) {
555
+ this.updateRowHeightForDescriptions(descriptionHeight, cellContainer);
556
+ }
557
+ else if (this.truncationPattern === this.TOOLTIP_STRING) {
558
+ if (descriptionHeight + this.DEFAULT_LINE_HEIGHT >
559
+ this.globalRowHeight) {
560
+ const cellIcon = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(".icon");
561
+ if (helpers.deviceSizeMatches(helpers.IC_DEVICE_SIZES.XS) && cellIcon) {
562
+ // recalculate descriptionHeight as when a word break occurs this value changes
563
+ // Additional spacing given for 300-400% zoom
564
+ this.updateRowHeightForDescriptions(descriptionHeight +
565
+ this.DEFAULT_LINE_HEIGHT +
566
+ cellIcon.clientHeight, cellContainer);
567
+ }
568
+ else {
569
+ this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
570
+ }
571
+ }
572
+ this.addLineClampCSS(typography, cellContainer);
573
+ // Additional case for show/hide truncation for when a description is present, but the text
574
+ // isn't overflowing the cell to trigger the show more button to appear.
575
+ }
576
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING &&
577
+ descriptionHeight + this.DEFAULT_LINE_HEIGHT > this.globalRowHeight &&
578
+ typography.style.getPropertyValue("--truncation-max-lines") !==
579
+ "initial") {
580
+ this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
581
+ if (descriptionHeight) {
582
+ this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
583
+ }
584
+ }
585
+ }
586
+ });
587
+ };
464
588
  this.setTableDimensions = () => {
465
589
  let tableHostDimensions = {};
466
590
  if (this.width) {
@@ -477,6 +601,93 @@ const DataTable = class {
477
601
  }
478
602
  return tableHostDimensions;
479
603
  };
604
+ this.fixCellTooltip = (element) => {
605
+ var _a, _b, _c;
606
+ let tooltip;
607
+ if (element.tagName === "IC-TOOLTIP") {
608
+ tooltip = element;
609
+ }
610
+ else if ((_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.IC_TOOLTIP_STRING)) {
611
+ tooltip = (_b = element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(this.IC_TOOLTIP_STRING);
612
+ }
613
+ else {
614
+ if (((_c = element.children) === null || _c === void 0 ? void 0 : _c.length) > 0) {
615
+ Array.from(element.children).forEach((el) => {
616
+ this.fixCellTooltip(el);
617
+ });
618
+ }
619
+ else {
620
+ return;
621
+ }
622
+ }
623
+ if (tooltip) {
624
+ tooltip.setExternalPopperProps({
625
+ strategy: "fixed",
626
+ });
627
+ }
628
+ };
629
+ this.fixCellTooltips = () => {
630
+ const elements = this.el.shadowRoot.querySelectorAll(".data-type-element");
631
+ elements.forEach((element) => {
632
+ const slotElements = helpers.getSlotElements(element);
633
+ slotElements === null || slotElements === void 0 ? void 0 : slotElements.forEach((slottedEl) => {
634
+ this.fixCellTooltip(slottedEl);
635
+ });
636
+ });
637
+ const actionElements = this.el.shadowRoot.querySelectorAll(".action-element");
638
+ actionElements === null || actionElements === void 0 ? void 0 : actionElements.forEach((actionElementSpan) => {
639
+ const actionElement = actionElementSpan.firstChild;
640
+ if (actionElement) {
641
+ this.fixCellTooltip(actionElement);
642
+ }
643
+ });
644
+ };
645
+ this.handleClick = (event, callback) => callback(event);
646
+ this.renderTableBody = (data, loading, overlay) => {
647
+ if (!(data === null || data === void 0 ? void 0 : data.length))
648
+ return;
649
+ if (overlay && loading) {
650
+ return index.h("tbody", null, this.createRows());
651
+ }
652
+ else if (loading && !overlay) {
653
+ return null;
654
+ }
655
+ else {
656
+ return index.h("tbody", null, this.createRows());
657
+ }
658
+ };
659
+ this.renderLoadingIndicator = (isLoading, loadingOptions) => {
660
+ if (!isLoading)
661
+ return null;
662
+ return (index.h(index.Fragment, null, index.h("div", { class: "loading-overlay", ref: (el) => (this.loadingOverlay = el) }), index.h("ic-loading-indicator", { theme: this.theme, monochrome: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.monochrome, class: {
663
+ "loading-empty": isLoading,
664
+ loading: true,
665
+ }, description: loadingOptions.description || "Loading table data", label: loadingOptions.label || "Loading...", labelDuration: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.labelDuration, max: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.max, min: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.min, progress: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.progress, ref: (el) => (this.loadingIndicator = el) })));
666
+ };
667
+ this.renderAriaLiveLoading = () => {
668
+ var _a, _b;
669
+ if (this.loading) {
670
+ return ((_a = this.loadingOptions) === null || _a === void 0 ? void 0 : _a.label) || "Loading...";
671
+ }
672
+ else if (this.updating) {
673
+ return ((_b = this.updatingOptions) === null || _b === void 0 ? void 0 : _b.description) || "Updating table data";
674
+ }
675
+ else {
676
+ return "";
677
+ }
678
+ };
679
+ this.renderEmptyState = (data, loading, overlay) => {
680
+ const emptyStateEl = helpers.isSlotUsed(this.el, "empty-state") ? (index.h("slot", { name: "empty-state" })) : (index.h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" }));
681
+ if (loading && !(data === null || data === void 0 ? void 0 : data.length) && overlay) {
682
+ return emptyStateEl;
683
+ }
684
+ else if (!loading && !(data === null || data === void 0 ? void 0 : data.length)) {
685
+ return emptyStateEl;
686
+ }
687
+ else {
688
+ return null;
689
+ }
690
+ };
480
691
  this.fromRow = 0;
481
692
  this.previousRowsPerPage = undefined;
482
693
  this.rowsPerPage = undefined;
@@ -489,12 +700,15 @@ const DataTable = class {
489
700
  this.currentRowHeight = undefined;
490
701
  this.debounceDelay = 0;
491
702
  this.caption = undefined;
703
+ this.columnHeaderTruncation = false;
492
704
  this.columns = undefined;
493
705
  this.data = undefined;
706
+ this.disableAutoSort = false;
494
707
  this.density = "default";
495
708
  this.embedded = false;
496
709
  this.globalRowHeight = "auto";
497
710
  this.height = undefined;
711
+ this.highlightSelectedRow = true;
498
712
  this.hideColumnHeaders = false;
499
713
  this.loading = false;
500
714
  this.loadingOptions = undefined;
@@ -502,20 +716,23 @@ const DataTable = class {
502
716
  this.minWidth = undefined;
503
717
  this.minimumLoadingDisplayDuration = 1000;
504
718
  this.paginationBarOptions = {
719
+ alignment: "right",
720
+ hideAllFromItemsPerPage: false,
721
+ hideRangeLabel: false,
722
+ itemLabel: "Item",
505
723
  itemsPerPageOptions: [
506
724
  { label: "10", value: "10" },
507
725
  { label: "25", value: "25" },
508
726
  { label: "50", value: "50" },
509
727
  ],
728
+ monochrome: false,
729
+ pageLabel: "Page",
510
730
  rangeLabelType: "page",
511
- type: "simple",
512
- showItemsPerPageControl: true,
731
+ selectedItemsPerPage: 10,
732
+ setToFirstPageOnPaginationChange: false,
513
733
  showGoToPageControl: true,
514
- alignment: "right",
515
- appearance: "default",
516
- itemLabel: "Item",
517
- pageLabel: "Page",
518
- hideRangeLabel: false,
734
+ showItemsPerPageControl: true,
735
+ type: "simple",
519
736
  };
520
737
  this.showPagination = false;
521
738
  this.sortable = false;
@@ -526,30 +743,46 @@ const DataTable = class {
526
743
  this.stickyColumnHeaders = false;
527
744
  this.stickyRowHeaders = false;
528
745
  this.tableLayout = "fixed";
746
+ this.theme = "inherit";
529
747
  this.truncationPattern = undefined;
530
748
  this.updating = false;
531
749
  this.updatingOptions = undefined;
532
750
  this.variableRowHeight = undefined;
533
751
  this.width = undefined;
534
752
  }
753
+ headerTruncationChangeHandler() {
754
+ if (this.columnHeaderTruncation) {
755
+ this.prevTableContainerWidth = 0;
756
+ }
757
+ else {
758
+ const headers = this.el.shadowRoot.querySelectorAll("th.column-header");
759
+ headers.forEach((header) => {
760
+ const tooltip = header.querySelector(this.IC_TOOLTIP_STRING);
761
+ if (tooltip) {
762
+ tooltip.classList.remove(this.SHOW_TRUNC_TOOLTIP_STRING);
763
+ }
764
+ });
765
+ }
766
+ }
535
767
  disconnectedCallback() {
536
- var _a;
768
+ var _a, _b;
537
769
  (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
770
+ (_b = this.headerResizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
538
771
  }
539
772
  componentWillLoad() {
540
- var _a;
541
773
  this.rowsPerPage = Number(this.paginationBarOptions.itemsPerPageOptions[0].value);
542
774
  this.previousRowsPerPage = this.rowsPerPage;
543
775
  this.toRow = this.rowsPerPage;
544
776
  this.sortedColumn = this.sortOptions.defaultColumn;
545
777
  this.sortedColumnOrder = this.sortOptions.sortOrders[0];
546
- this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
778
+ this.loadingOptions = Object.assign({}, this.loadingOptions);
547
779
  this.initialLoad = true;
548
780
  this.previousItemsPerPage = this.rowsPerPage;
549
781
  }
550
782
  componentDidLoad() {
551
783
  const tableElement = this.el.shadowRoot.querySelector("table");
552
784
  const tableContainer = this.el.shadowRoot.querySelector(".table-container");
785
+ helpers.checkResizeObserver(this.runHeaderResizeObserver);
553
786
  if (this.dataUpdated) {
554
787
  this.dataUpdated = false;
555
788
  }
@@ -573,6 +806,7 @@ const DataTable = class {
573
806
  if (this.globalRowHeight !== "auto") {
574
807
  this.updateSetRowHeight();
575
808
  }
809
+ window.addEventListener("resize", this.updateCellHeightsWithDescriptions);
576
810
  }
577
811
  componentDidUpdate() {
578
812
  // truncation updates invoked here once new/updated data has
@@ -582,6 +816,11 @@ const DataTable = class {
582
816
  this.truncateUpdatedData();
583
817
  }
584
818
  }
819
+ componentDidRender() {
820
+ this.fixCellTooltips();
821
+ this.updateCellHeightsWithDescriptions();
822
+ this.adjustWidthForActionElement();
823
+ }
585
824
  truncateUpdatedData() {
586
825
  if (this.dataUpdated) {
587
826
  if (this.truncationPattern === this.SHOW_HIDE_STRING) {
@@ -638,7 +877,7 @@ const DataTable = class {
638
877
  cellContainer.style.height = null;
639
878
  if (this.truncationPattern === this.TOOLTIP_STRING) {
640
879
  this.removeTooltip(cellContainer, typographyEl, tooltipEl);
641
- typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
880
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
642
881
  }
643
882
  else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
644
883
  this.resetShowHideTruncation(typographyEl);
@@ -649,7 +888,8 @@ const DataTable = class {
649
888
  parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
650
889
  // If the set row height is bigger than the cell container even
651
890
  // with textWrap, set the row height
652
- if (!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
891
+ if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
892
+ !((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
653
893
  rowHeight > cellContainer.clientHeight &&
654
894
  !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
655
895
  cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
@@ -682,7 +922,7 @@ const DataTable = class {
682
922
  const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
683
923
  newRows.forEach((row) => {
684
924
  row
685
- .querySelectorAll("ic-typography")
925
+ .querySelectorAll(this.IC_TYPOGRAPHY_STRING)
686
926
  .forEach((typographyEl) => {
687
927
  const cellContainer = this.getCellContainer(typographyEl);
688
928
  const tooltipEl = this.getTooltip(typographyEl);
@@ -744,9 +984,17 @@ const DataTable = class {
744
984
  }
745
985
  }
746
986
  }
747
- createShowHideTruncation(typographyEl, cellContainer) {
987
+ createShowHideTruncation(typographyEl, cellContainer, descriptionHeight) {
748
988
  typographyEl.checkMaxLines(typographyEl.scrollHeight);
749
989
  typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
990
+ if (cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
991
+ descriptionHeight) {
992
+ typographyEl.setAttribute("max-lines", `${Math.floor(((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - descriptionHeight) /
993
+ this.DEFAULT_LINE_HEIGHT)}`);
994
+ }
995
+ else {
996
+ typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
997
+ }
750
998
  typographyEl.setShowHideExpanded(false);
751
999
  cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
752
1000
  }
@@ -760,9 +1008,6 @@ const DataTable = class {
760
1008
  cellContainer.classList.add(this.SHOW_HIDE_CSS_CLASS);
761
1009
  this.createShowHideTruncation(typographyEl, cellContainer);
762
1010
  }
763
- getTruncWrapper(typographyEl) {
764
- return typographyEl.shadowRoot.querySelector(".trunc-wrapper");
765
- }
766
1011
  // Set the height to initial if row height is set and the show / hide truncation
767
1012
  // is clicked
768
1013
  handleTypographyTruncationExpandToggle({ detail, }) {
@@ -852,8 +1097,8 @@ const DataTable = class {
852
1097
  }
853
1098
  this.truncationPatternUpdated = true;
854
1099
  }
855
- async dataHandler(newData) {
856
- this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
1100
+ async dataHandler() {
1101
+ this.loadingOptions = Object.assign({}, this.loadingOptions);
857
1102
  if (this.loading) {
858
1103
  !this.hasLoadedForOneSecond
859
1104
  ? setTimeout(() => (this.loading = false), this.minimumLoadingDisplayDuration -
@@ -880,7 +1125,7 @@ const DataTable = class {
880
1125
  typographyEl.setShowHideExpanded(false);
881
1126
  cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
882
1127
  }
883
- else {
1128
+ else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
884
1129
  typographyEl.resetTruncation().then(() => {
885
1130
  if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
886
1131
  cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
@@ -916,7 +1161,11 @@ const DataTable = class {
916
1161
  this.variableRowHeight = null;
917
1162
  }
918
1163
  showLoadingIndicator() {
919
- this.loadingIndicator.classList.add("show");
1164
+ var _a, _b, _c;
1165
+ if ((_a = this.loadingOptions) === null || _a === void 0 ? void 0 : _a.overlay) {
1166
+ (_b = this.loadingOverlay) === null || _b === void 0 ? void 0 : _b.classList.add("show");
1167
+ }
1168
+ (_c = this.loadingIndicator) === null || _c === void 0 ? void 0 : _c.classList.add("show");
920
1169
  }
921
1170
  getRowOptions(rowKeys, rowValues) {
922
1171
  const rowOptionsIndex = rowKeys.indexOf("rowOptions");
@@ -945,23 +1194,44 @@ const DataTable = class {
945
1194
  if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
946
1195
  this.truncationPattern === this.TOOLTIP_STRING) {
947
1196
  if (!typographyEl.getAttribute("style") ||
948
- typographyEl.style.cssText.includes("--ic-line-clamp: 0;")) {
1197
+ typographyEl.style.cssText.includes(`${this.LINE_CLAMP_CSS_VARIABLE}: 0;`)) {
949
1198
  this.addLineClampCSS(typographyEl, cellContainer);
950
1199
  }
951
- this.createTruncationTooltip(typographyEl, cellContainer);
1200
+ if (!cellContainer.querySelector(this.IC_TOOLTIP_STRING))
1201
+ this.createTruncationTooltip(typographyEl, cellContainer);
952
1202
  }
953
1203
  }
954
1204
  removeTooltip(cellContainer, typographyEl, tooltip) {
955
- cellContainer.appendChild(typographyEl);
1205
+ const cellTextWrapper = cellContainer.querySelector(this.CELL_TEXT_WRAPPER_STRING);
1206
+ cellTextWrapper.prepend(typographyEl);
956
1207
  if (tooltip) {
957
1208
  tooltip.remove();
958
1209
  }
959
1210
  }
960
1211
  addLineClampCSS(typographyEl, cellContainer) {
961
- typographyEl.setAttribute("style", `--ic-line-clamp: ${this.getLines(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)}`);
1212
+ var _a, _b;
1213
+ const descriptionCellHeight = (_a = cellContainer.querySelector(this.CELL_DESCRIPTION_STRING)) === null || _a === void 0 ? void 0 : _a.clientHeight;
1214
+ if (cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
1215
+ (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > descriptionCellHeight) {
1216
+ let iconHeight;
1217
+ if (helpers.deviceSizeMatches(helpers.IC_DEVICE_SIZES.XS)) {
1218
+ const cellIcon = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(".icon");
1219
+ iconHeight = cellIcon ? cellIcon.clientHeight : 0;
1220
+ }
1221
+ else {
1222
+ iconHeight = 0;
1223
+ }
1224
+ const height = (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) -
1225
+ ((_b = cellContainer.querySelector(this.CELL_DESCRIPTION_STRING)) === null || _b === void 0 ? void 0 : _b.clientHeight) -
1226
+ iconHeight;
1227
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: ${this.getLines(height || 0)}`);
1228
+ }
1229
+ else {
1230
+ typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: ${this.getLines(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)}`);
1231
+ }
962
1232
  }
963
1233
  createTruncationTooltip(typographyEl, cellContainer) {
964
- const tooltipEl = document.createElement("ic-tooltip");
1234
+ const tooltipEl = document.createElement(this.IC_TOOLTIP_STRING);
965
1235
  tooltipEl.setAttribute("target", typographyEl.id);
966
1236
  tooltipEl.setAttribute("label", typographyEl.textContent);
967
1237
  tooltipEl.classList.add("ic-tooltip-overflow");
@@ -969,33 +1239,30 @@ const DataTable = class {
969
1239
  // This might need reverting back to absolute if the tooltip doesn't dynamically position itself correctly
970
1240
  strategy: "fixed",
971
1241
  });
972
- cellContainer.appendChild(tooltipEl);
973
- tooltipEl.appendChild(typographyEl);
1242
+ const cellTextWrapper = cellContainer.querySelector(this.CELL_TEXT_WRAPPER_STRING);
1243
+ cellTextWrapper.prepend(tooltipEl);
1244
+ tooltipEl.prepend(typographyEl);
974
1245
  }
975
1246
  render() {
976
- const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
977
- return (index.h(index.Host, { style: Object.assign({}, this.setTableDimensions()) }, index.h("div", { class: "table-container" }, helpers.isSlotUsed(this.el, "title-bar") && index.h("slot", { name: "title-bar" }), index.h("div", { class: {
1247
+ var _a, _b;
1248
+ const { caption, createColumnHeaders, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumn, sortedColumnOrder, stickyColumnHeaders, updateScrollOffset, updating, theme, } = this;
1249
+ return (index.h(index.Host, { style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, index.h("div", { class: "table-container" }, helpers.isSlotUsed(this.el, "title-bar") && index.h("slot", { name: "title-bar" }), index.h("div", { class: {
978
1250
  ["table-row-container"]: true,
979
1251
  scrollable,
980
- }, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, helpers.isSlotUsed(this.el, "title-bar") && index.h("slot", { name: "title-bar" }), index.h("table", { style: {
1252
+ }, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, index.h("table", { style: {
981
1253
  ["--table-layout"]: this.tableLayout,
982
1254
  } }, index.h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (index.h("thead", { class: {
983
1255
  ["column-header-sticky"]: stickyColumnHeaders,
984
1256
  ["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
985
1257
  } }, index.h("tr", null, createColumnHeaders()))), updating &&
986
1258
  !loading &&
987
- (hideColumnHeaders ? (index.h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && !loading && index.h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
988
- !loading &&
989
- (helpers.isSlotUsed(this.el, "empty-state") ? (index.h("slot", { name: "empty-state" })) : (index.h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (index.h("ic-loading-indicator", { appearance: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, class: {
990
- "loading-empty": loading,
991
- loading: true,
992
- "show-background": loadingOptions.showBackground,
993
- }, description: loadingOptions.description || "Loading table data", label: loadingOptions.label || "Loading...", labelDuration: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.labelDuration, max: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.max, min: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.min, progress: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.progress, ref: (el) => (this.loadingIndicator = el) })), (showPagination || helpers.isSlotUsed(this.el, "pagination-bar")) && (index.h("div", { class: "pagination-container" }, helpers.isSlotUsed(this.el, "pagination-bar") ? (index.h("slot", { name: "pagination-bar" })) : (index.h("ic-pagination-bar", { totalItems: data.length, type: paginationBarOptions.type, rangeLabelType: paginationBarOptions.rangeLabelType, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, showGoToPageControl: paginationBarOptions.showGoToPageControl, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, alignment: paginationBarOptions.alignment, appearance: paginationBarOptions.appearance, itemLabel: paginationBarOptions.itemLabel, pageLabel: paginationBarOptions.pageLabel, hideRangeLabel: paginationBarOptions.hideRangeLabel })))), sortable && (index.h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
994
- ? `${sortedColumn} sorted ${sortedColumnOrder}`
1259
+ (hideColumnHeaders ? (index.h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(data, loading, loadingOptions.overlay)), this.renderEmptyState(data, loading, loadingOptions.overlay)), index.h("div", { "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || helpers.isSlotUsed(this.el, "pagination-bar")) && (index.h("div", { class: "pagination-container" }, helpers.isSlotUsed(this.el, "pagination-bar") ? (index.h("slot", { name: "pagination-bar" })) : (index.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 && (index.h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
1260
+ ? `${((_b = this.columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) || sortedColumn} sorted ${sortedColumnOrder}`
995
1261
  : "table unsorted")))));
996
1262
  }
997
1263
  get el() { return index.getElement(this); }
998
1264
  static get watchers() { return {
1265
+ "columnHeaderTruncation": ["headerTruncationChangeHandler"],
999
1266
  "loading": ["loadingHandler"],
1000
1267
  "truncationPattern": ["truncationPatternHandler"],
1001
1268
  "data": ["dataHandler"],