@ukic/canary-web-components 2.0.0-canary.9 → 3.0.0-canary.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (821) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-7a069459.js → helpers-33b42cd6.js} +95 -101
  3. package/dist/cjs/helpers-33b42cd6.js.map +1 -0
  4. package/dist/cjs/{helpers-f75cf7cf.js → helpers-6817cfbb.js} +116 -1
  5. package/dist/cjs/helpers-6817cfbb.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -9
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-accordion.cjs.entry.js +7 -8
  9. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-alert.cjs.entry.js +28 -10
  11. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-back-to-top.cjs.entry.js +17 -8
  13. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-badge.cjs.entry.js +67 -117
  15. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +37 -11
  17. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-button_3.cjs.entry.js +122 -134
  21. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
  23. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
  24. package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
  25. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
  26. package/dist/cjs/ic-checkbox-group.cjs.entry.js +27 -20
  27. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-checkbox.cjs.entry.js +45 -40
  29. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-chip.cjs.entry.js +48 -30
  31. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-classification-banner.cjs.entry.js +14 -5
  33. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
  35. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
  36. package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
  37. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
  39. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
  40. package/dist/cjs/ic-data-table.cjs.entry.js +807 -65
  41. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-date-input.cjs.entry.js +70 -33
  43. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-date-picker.cjs.entry.js +81 -55
  45. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-dialog.cjs.entry.js +27 -101
  47. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-divider.cjs.entry.js +3 -4
  49. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-empty-state_2.cjs.entry.js +323 -0
  51. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
  52. package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
  53. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
  55. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-footer.cjs.entry.js +9 -10
  57. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-hero.cjs.entry.js +27 -12
  59. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -8
  61. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +38 -32
  63. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-link.cjs.entry.js +51 -24
  65. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
  67. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-menu-item.cjs.entry.js +6 -13
  69. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +186 -47
  71. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-menu.cjs.entry.js +16 -21
  73. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-navigation-button.cjs.entry.js +28 -8
  75. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-navigation-group.cjs.entry.js +23 -21
  77. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-navigation-item.cjs.entry.js +33 -38
  79. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
  81. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-page-header.cjs.entry.js +10 -12
  83. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-pagination_4.cjs.entry.js +227 -186
  85. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-popover-menu.cjs.entry.js +33 -33
  87. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-radio-group.cjs.entry.js +87 -53
  89. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-radio-option.cjs.entry.js +44 -53
  91. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-search-bar.cjs.entry.js +33 -53
  93. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  95. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-select-with-multi.cjs.entry.js +15 -51
  97. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-side-navigation.cjs.entry.js +8 -9
  99. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-skeleton.cjs.entry.js +18 -38
  101. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-status-tag.cjs.entry.js +7 -15
  103. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-step.cjs.entry.js +41 -43
  105. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-stepper.cjs.entry.js +55 -24
  107. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-switch.cjs.entry.js +7 -9
  109. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-tab-context.cjs.entry.js +90 -137
  111. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
  113. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-tab-panel.cjs.entry.js +6 -13
  115. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-tab.cjs.entry.js +14 -14
  117. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ic-theme.cjs.entry.js +39 -25
  119. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ic-toast-region.cjs.entry.js +6 -7
  121. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ic-toast.cjs.entry.js +88 -35
  123. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
  125. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  126. package/dist/cjs/ic-toggle-button.cjs.entry.js +15 -14
  127. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  128. package/dist/cjs/ic-top-navigation.cjs.entry.js +62 -86
  129. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
  131. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
  132. package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
  133. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
  134. package/dist/cjs/ic-typography.cjs.entry.js +58 -20
  135. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  136. package/dist/cjs/index-4cf27b16.js +26 -14
  137. package/dist/cjs/loader.cjs.js +1 -1
  138. package/dist/collection/assets/arrow-dropdown.svg +3 -0
  139. package/dist/collection/collection-manifest.json +7 -3
  140. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +661 -0
  141. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
  142. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
  143. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
  144. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
  145. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
  146. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
  147. package/dist/collection/components/ic-data-table/ic-data-table.css +174 -13
  148. package/dist/collection/components/ic-data-table/ic-data-table.js +1176 -90
  149. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  150. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  151. package/dist/collection/components/ic-data-table/story-data.js +798 -39
  152. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  153. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +339 -3
  154. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  155. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +93 -0
  156. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
  157. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
  158. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
  159. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
  160. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
  161. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
  162. package/dist/collection/components/ic-date-input/ic-date-input.css +5 -5
  163. package/dist/collection/components/ic-date-input/ic-date-input.js +140 -33
  164. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  165. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +23 -21
  166. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
  167. package/dist/collection/components/ic-date-picker/ic-date-picker.css +34 -32
  168. package/dist/collection/components/ic-date-picker/ic-date-picker.js +123 -56
  169. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  170. package/dist/collection/components/ic-date-picker/story-data.js +6 -1
  171. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
  172. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +73 -5
  173. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
  174. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +30 -19
  175. package/dist/collection/components/ic-menu-with-multi/ic-menu.js +187 -69
  176. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
  177. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +229 -52
  178. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
  179. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +1 -1
  180. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +213 -166
  181. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  182. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
  183. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
  184. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +75 -12
  185. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  186. package/dist/collection/components/ic-select-with-multi/ic-select.css +21 -19
  187. package/dist/collection/components/ic-select-with-multi/ic-select.js +16 -145
  188. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
  189. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +7 -7
  190. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
  191. package/dist/collection/components/ic-tree-item/ic-tree-item.css +172 -0
  192. package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
  193. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
  194. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
  195. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
  196. package/dist/collection/components/ic-tree-view/ic-tree-view.css +59 -0
  197. package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
  198. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
  199. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
  200. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
  201. package/dist/collection/utils/helpers.js +44 -1
  202. package/dist/collection/utils/helpers.js.map +1 -1
  203. package/dist/collection/utils/types.js.map +1 -1
  204. package/dist/components/helpers.js +84 -90
  205. package/dist/components/helpers.js.map +1 -1
  206. package/dist/components/helpers2.js +107 -1
  207. package/dist/components/helpers2.js.map +1 -1
  208. package/dist/components/ic-accordion-group.js +39 -13
  209. package/dist/components/ic-accordion-group.js.map +1 -1
  210. package/dist/components/ic-accordion.js +6 -6
  211. package/dist/components/ic-accordion.js.map +1 -1
  212. package/dist/components/ic-alert.js +132 -1
  213. package/dist/components/ic-alert.js.map +1 -1
  214. package/dist/components/ic-back-to-top.js +37 -8
  215. package/dist/components/ic-back-to-top.js.map +1 -1
  216. package/dist/components/ic-badge.js +75 -121
  217. package/dist/components/ic-badge.js.map +1 -1
  218. package/dist/components/ic-breadcrumb-group.js +42 -10
  219. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  220. package/dist/components/ic-breadcrumb2.js +10 -7
  221. package/dist/components/ic-breadcrumb2.js.map +1 -1
  222. package/dist/components/ic-button2.js +69 -106
  223. package/dist/components/ic-button2.js.map +1 -1
  224. package/dist/components/ic-card-horizontal.d.ts +11 -0
  225. package/dist/components/ic-card-horizontal.js +167 -0
  226. package/dist/components/ic-card-horizontal.js.map +1 -0
  227. package/dist/components/ic-card-vertical.js +194 -0
  228. package/dist/components/ic-card-vertical.js.map +1 -0
  229. package/dist/components/ic-checkbox-group.js +31 -21
  230. package/dist/components/ic-checkbox-group.js.map +1 -1
  231. package/dist/components/ic-checkbox.js +52 -47
  232. package/dist/components/ic-checkbox.js.map +1 -1
  233. package/dist/components/ic-chip.js +56 -33
  234. package/dist/components/ic-chip.js.map +1 -1
  235. package/dist/components/ic-classification-banner.js +14 -5
  236. package/dist/components/ic-classification-banner.js.map +1 -1
  237. package/dist/components/ic-data-list.js +56 -0
  238. package/dist/components/ic-data-list.js.map +1 -0
  239. package/dist/components/ic-data-row.js +14 -13
  240. package/dist/components/ic-data-row.js.map +1 -1
  241. package/dist/components/ic-data-table-title-bar.d.ts +11 -0
  242. package/dist/components/ic-data-table-title-bar.js +136 -0
  243. package/dist/components/ic-data-table-title-bar.js.map +1 -0
  244. package/dist/components/ic-data-table.js +843 -72
  245. package/dist/components/ic-data-table.js.map +1 -1
  246. package/dist/components/ic-date-input2.js +79 -36
  247. package/dist/components/ic-date-input2.js.map +1 -1
  248. package/dist/components/ic-date-picker.js +87 -57
  249. package/dist/components/ic-date-picker.js.map +1 -1
  250. package/dist/components/ic-dialog.js +29 -115
  251. package/dist/components/ic-dialog.js.map +1 -1
  252. package/dist/components/ic-divider2.js +2 -3
  253. package/dist/components/ic-divider2.js.map +1 -1
  254. package/dist/components/ic-empty-state.js +1 -57
  255. package/dist/components/ic-empty-state.js.map +1 -1
  256. package/dist/components/ic-empty-state2.js +80 -0
  257. package/dist/components/ic-empty-state2.js.map +1 -0
  258. package/dist/components/ic-footer-link-group.js +10 -10
  259. package/dist/components/ic-footer-link-group.js.map +1 -1
  260. package/dist/components/ic-footer-link.js +13 -8
  261. package/dist/components/ic-footer-link.js.map +1 -1
  262. package/dist/components/ic-footer.js +9 -10
  263. package/dist/components/ic-footer.js.map +1 -1
  264. package/dist/components/ic-hero.js +28 -14
  265. package/dist/components/ic-hero.js.map +1 -1
  266. package/dist/components/ic-horizontal-scroll2.js +6 -8
  267. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  268. package/dist/components/ic-input-component-container2.js +25 -20
  269. package/dist/components/ic-input-component-container2.js.map +1 -1
  270. package/dist/components/ic-input-label2.js +9 -11
  271. package/dist/components/ic-input-label2.js.map +1 -1
  272. package/dist/components/ic-input-validation2.js +4 -5
  273. package/dist/components/ic-input-validation2.js.map +1 -1
  274. package/dist/components/ic-link2.js +54 -27
  275. package/dist/components/ic-link2.js.map +1 -1
  276. package/dist/components/ic-loading-indicator2.js +29 -23
  277. package/dist/components/ic-loading-indicator2.js.map +1 -1
  278. package/dist/components/ic-menu-group.js +2 -2
  279. package/dist/components/ic-menu-group.js.map +1 -1
  280. package/dist/components/ic-menu-item2.js +6 -12
  281. package/dist/components/ic-menu-item2.js.map +1 -1
  282. package/dist/components/ic-menu2.js +15 -20
  283. package/dist/components/ic-menu2.js.map +1 -1
  284. package/dist/components/ic-menu3.js +187 -49
  285. package/dist/components/ic-menu3.js.map +1 -1
  286. package/dist/components/ic-navigation-button.js +28 -8
  287. package/dist/components/ic-navigation-button.js.map +1 -1
  288. package/dist/components/ic-navigation-group.js +23 -20
  289. package/dist/components/ic-navigation-group.js.map +1 -1
  290. package/dist/components/ic-navigation-item.js +33 -37
  291. package/dist/components/ic-navigation-item.js.map +1 -1
  292. package/dist/components/ic-navigation-menu2.js +3 -3
  293. package/dist/components/ic-navigation-menu2.js.map +1 -1
  294. package/dist/components/ic-page-header.js +9 -11
  295. package/dist/components/ic-page-header.js.map +1 -1
  296. package/dist/components/ic-pagination-bar2.js +166 -147
  297. package/dist/components/ic-pagination-bar2.js.map +1 -1
  298. package/dist/components/ic-pagination-item2.js +22 -12
  299. package/dist/components/ic-pagination-item2.js.map +1 -1
  300. package/dist/components/ic-pagination2.js +50 -33
  301. package/dist/components/ic-pagination2.js.map +1 -1
  302. package/dist/components/ic-popover-menu.js +35 -33
  303. package/dist/components/ic-popover-menu.js.map +1 -1
  304. package/dist/components/ic-radio-group.js +88 -53
  305. package/dist/components/ic-radio-group.js.map +1 -1
  306. package/dist/components/ic-radio-option.js +47 -60
  307. package/dist/components/ic-radio-option.js.map +1 -1
  308. package/dist/components/ic-search-bar.js +31 -52
  309. package/dist/components/ic-search-bar.js.map +1 -1
  310. package/dist/components/ic-section-container2.js +1 -1
  311. package/dist/components/ic-section-container2.js.map +1 -1
  312. package/dist/components/ic-select-with-multi.js +15 -58
  313. package/dist/components/ic-select-with-multi.js.map +1 -1
  314. package/dist/components/ic-select2.js +60 -43
  315. package/dist/components/ic-select2.js.map +1 -1
  316. package/dist/components/ic-side-navigation.js +8 -9
  317. package/dist/components/ic-side-navigation.js.map +1 -1
  318. package/dist/components/ic-skeleton.js +20 -45
  319. package/dist/components/ic-skeleton.js.map +1 -1
  320. package/dist/components/ic-status-tag.js +7 -15
  321. package/dist/components/ic-status-tag.js.map +1 -1
  322. package/dist/components/ic-step.js +48 -48
  323. package/dist/components/ic-step.js.map +1 -1
  324. package/dist/components/ic-stepper.js +60 -23
  325. package/dist/components/ic-stepper.js.map +1 -1
  326. package/dist/components/ic-switch.js +7 -9
  327. package/dist/components/ic-switch.js.map +1 -1
  328. package/dist/components/ic-tab-context.js +95 -139
  329. package/dist/components/ic-tab-context.js.map +1 -1
  330. package/dist/components/ic-tab-group.js +27 -13
  331. package/dist/components/ic-tab-group.js.map +1 -1
  332. package/dist/components/ic-tab-panel.js +9 -16
  333. package/dist/components/ic-tab-panel.js.map +1 -1
  334. package/dist/components/ic-tab.js +16 -15
  335. package/dist/components/ic-tab.js.map +1 -1
  336. package/dist/components/ic-text-field2.js +105 -114
  337. package/dist/components/ic-text-field2.js.map +1 -1
  338. package/dist/components/ic-theme.js +45 -28
  339. package/dist/components/ic-theme.js.map +1 -1
  340. package/dist/components/ic-toast-region.js +7 -9
  341. package/dist/components/ic-toast-region.js.map +1 -1
  342. package/dist/components/ic-toast.js +93 -36
  343. package/dist/components/ic-toast.js.map +1 -1
  344. package/dist/components/ic-toggle-button-group.js +17 -17
  345. package/dist/components/ic-toggle-button-group.js.map +1 -1
  346. package/dist/components/ic-toggle-button.js +16 -14
  347. package/dist/components/ic-toggle-button.js.map +1 -1
  348. package/dist/components/ic-tooltip2.js +31 -9
  349. package/dist/components/ic-tooltip2.js.map +1 -1
  350. package/dist/components/ic-top-navigation.js +63 -87
  351. package/dist/components/ic-top-navigation.js.map +1 -1
  352. package/dist/components/ic-tree-item.d.ts +11 -0
  353. package/dist/components/ic-tree-item.js +286 -0
  354. package/dist/components/ic-tree-item.js.map +1 -0
  355. package/dist/components/ic-tree-view.d.ts +11 -0
  356. package/dist/components/ic-tree-view.js +237 -0
  357. package/dist/components/ic-tree-view.js.map +1 -0
  358. package/dist/components/ic-typography2.js +65 -22
  359. package/dist/components/ic-typography2.js.map +1 -1
  360. package/dist/core/core.css +101 -29
  361. package/dist/core/core.esm.js +1 -1
  362. package/dist/core/core.esm.js.map +1 -1
  363. package/dist/core/p-0894cab1.entry.js +2 -0
  364. package/dist/core/p-0894cab1.entry.js.map +1 -0
  365. package/dist/core/p-0ab10600.entry.js +2 -0
  366. package/dist/core/p-0ab10600.entry.js.map +1 -0
  367. package/dist/core/p-1109636a.entry.js +2 -0
  368. package/dist/core/p-1109636a.entry.js.map +1 -0
  369. package/dist/core/p-130a05cf.entry.js +2 -0
  370. package/dist/core/p-130a05cf.entry.js.map +1 -0
  371. package/dist/core/p-1e2aa8a6.entry.js +2 -0
  372. package/dist/core/p-1e2aa8a6.entry.js.map +1 -0
  373. package/dist/core/p-1fe35de1.entry.js +2 -0
  374. package/dist/core/p-1fe35de1.entry.js.map +1 -0
  375. package/dist/core/p-202bc922.entry.js +2 -0
  376. package/dist/core/p-202bc922.entry.js.map +1 -0
  377. package/dist/core/p-28323849.entry.js +2 -0
  378. package/dist/core/p-28323849.entry.js.map +1 -0
  379. package/dist/core/p-297e99cf.js +2 -0
  380. package/dist/core/p-297e99cf.js.map +1 -0
  381. package/dist/core/p-2e49fb22.entry.js +2 -0
  382. package/dist/core/p-2e49fb22.entry.js.map +1 -0
  383. package/dist/core/p-2ff4e283.entry.js +2 -0
  384. package/dist/core/p-2ff4e283.entry.js.map +1 -0
  385. package/dist/core/p-30b046b2.entry.js +2 -0
  386. package/dist/core/p-30b046b2.entry.js.map +1 -0
  387. package/dist/core/{p-f8cf2978.js → p-33dd24eb.js} +2 -2
  388. package/dist/core/p-3db785f0.entry.js +2 -0
  389. package/dist/core/p-3db785f0.entry.js.map +1 -0
  390. package/dist/core/p-3ef28704.entry.js +2 -0
  391. package/dist/core/p-3ef28704.entry.js.map +1 -0
  392. package/dist/core/p-42883e4c.entry.js +2 -0
  393. package/dist/core/p-42883e4c.entry.js.map +1 -0
  394. package/dist/core/p-42e0f3bd.entry.js +2 -0
  395. package/dist/core/p-42e0f3bd.entry.js.map +1 -0
  396. package/dist/core/p-44ee5375.entry.js +2 -0
  397. package/dist/core/p-44ee5375.entry.js.map +1 -0
  398. package/dist/core/p-486d8d43.entry.js +2 -0
  399. package/dist/core/p-486d8d43.entry.js.map +1 -0
  400. package/dist/core/p-4dcc37e7.entry.js +2 -0
  401. package/dist/core/p-4dcc37e7.entry.js.map +1 -0
  402. package/dist/core/p-4e28ef60.entry.js +2 -0
  403. package/dist/core/{p-b306cbc8.entry.js.map → p-4e28ef60.entry.js.map} +1 -1
  404. package/dist/core/p-50019ede.entry.js +2 -0
  405. package/dist/core/p-50019ede.entry.js.map +1 -0
  406. package/dist/core/p-505250cf.entry.js +2 -0
  407. package/dist/core/p-505250cf.entry.js.map +1 -0
  408. package/dist/core/p-53e00a8a.entry.js +2 -0
  409. package/dist/core/p-53e00a8a.entry.js.map +1 -0
  410. package/dist/core/p-59028160.entry.js +2 -0
  411. package/dist/core/p-59028160.entry.js.map +1 -0
  412. package/dist/core/p-5accf0bb.entry.js +2 -0
  413. package/dist/core/p-5accf0bb.entry.js.map +1 -0
  414. package/dist/core/p-5b7dfe57.entry.js +2 -0
  415. package/dist/core/p-5b7dfe57.entry.js.map +1 -0
  416. package/dist/core/p-5cfb5821.entry.js +2 -0
  417. package/dist/core/p-5cfb5821.entry.js.map +1 -0
  418. package/dist/core/p-603fea14.entry.js +2 -0
  419. package/dist/core/p-603fea14.entry.js.map +1 -0
  420. package/dist/core/p-64933069.entry.js +2 -0
  421. package/dist/core/p-64933069.entry.js.map +1 -0
  422. package/dist/core/p-6beffd0e.entry.js +2 -0
  423. package/dist/core/p-6beffd0e.entry.js.map +1 -0
  424. package/dist/core/p-77a32de5.entry.js +2 -0
  425. package/dist/core/p-77a32de5.entry.js.map +1 -0
  426. package/dist/core/p-7c268030.entry.js +2 -0
  427. package/dist/core/p-7c268030.entry.js.map +1 -0
  428. package/dist/core/p-7c78f6c6.entry.js +2 -0
  429. package/dist/core/p-7c78f6c6.entry.js.map +1 -0
  430. package/dist/core/p-7c80d79c.entry.js +2 -0
  431. package/dist/core/p-7c80d79c.entry.js.map +1 -0
  432. package/dist/core/{p-c2b5e7b1.entry.js → p-7e1603cc.entry.js} +2 -2
  433. package/dist/core/p-7e1603cc.entry.js.map +1 -0
  434. package/dist/core/p-897b8d16.entry.js +2 -0
  435. package/dist/core/p-897b8d16.entry.js.map +1 -0
  436. package/dist/core/p-8ca2e329.entry.js +2 -0
  437. package/dist/core/p-8ca2e329.entry.js.map +1 -0
  438. package/dist/core/p-8df49808.entry.js +2 -0
  439. package/dist/core/p-8df49808.entry.js.map +1 -0
  440. package/dist/core/p-8f12659d.entry.js +2 -0
  441. package/dist/core/p-8f12659d.entry.js.map +1 -0
  442. package/dist/core/p-903ee57e.entry.js +2 -0
  443. package/dist/core/p-903ee57e.entry.js.map +1 -0
  444. package/dist/core/p-92e3ccb9.entry.js +2 -0
  445. package/dist/core/p-92e3ccb9.entry.js.map +1 -0
  446. package/dist/core/p-9397b15b.js +2 -0
  447. package/dist/core/p-9397b15b.js.map +1 -0
  448. package/dist/core/p-9b54feca.entry.js +2 -0
  449. package/dist/core/p-9b54feca.entry.js.map +1 -0
  450. package/dist/core/{p-356b8a4c.entry.js → p-9f3cf053.entry.js} +2 -2
  451. package/dist/core/{p-356b8a4c.entry.js.map → p-9f3cf053.entry.js.map} +1 -1
  452. package/dist/core/p-a78cf2cb.entry.js +2 -0
  453. package/dist/core/p-a78cf2cb.entry.js.map +1 -0
  454. package/dist/core/p-a9151d0b.entry.js +2 -0
  455. package/dist/core/p-a9151d0b.entry.js.map +1 -0
  456. package/dist/core/p-acc76b80.entry.js +2 -0
  457. package/dist/core/p-acc76b80.entry.js.map +1 -0
  458. package/dist/core/p-aeb6016c.entry.js +2 -0
  459. package/dist/core/p-aeb6016c.entry.js.map +1 -0
  460. package/dist/core/p-b0751bd9.entry.js +2 -0
  461. package/dist/core/p-b0751bd9.entry.js.map +1 -0
  462. package/dist/core/{p-452985d9.entry.js → p-b40ecaef.entry.js} +2 -2
  463. package/dist/core/p-b40ecaef.entry.js.map +1 -0
  464. package/dist/core/p-bb1252fa.entry.js +2 -0
  465. package/dist/core/p-bb1252fa.entry.js.map +1 -0
  466. package/dist/core/p-c033e7d6.entry.js +2 -0
  467. package/dist/core/p-c033e7d6.entry.js.map +1 -0
  468. package/dist/core/p-c1698936.entry.js +2 -0
  469. package/dist/core/p-c1698936.entry.js.map +1 -0
  470. package/dist/core/p-c1e90c85.entry.js +2 -0
  471. package/dist/core/p-c1e90c85.entry.js.map +1 -0
  472. package/dist/core/p-cb63e656.entry.js +2 -0
  473. package/dist/core/p-cb63e656.entry.js.map +1 -0
  474. package/dist/core/p-d03374fc.entry.js +2 -0
  475. package/dist/core/p-d03374fc.entry.js.map +1 -0
  476. package/dist/core/p-d2e7a256.entry.js +2 -0
  477. package/dist/core/p-d2e7a256.entry.js.map +1 -0
  478. package/dist/core/p-d3c0bffb.entry.js +2 -0
  479. package/dist/core/p-d3c0bffb.entry.js.map +1 -0
  480. package/dist/core/p-d5ca3bcb.entry.js +2 -0
  481. package/dist/core/p-d5ca3bcb.entry.js.map +1 -0
  482. package/dist/core/p-da3e8c54.entry.js +2 -0
  483. package/dist/core/p-da3e8c54.entry.js.map +1 -0
  484. package/dist/core/p-e5d99316.entry.js +2 -0
  485. package/dist/core/p-e5d99316.entry.js.map +1 -0
  486. package/dist/core/p-eb65e556.entry.js +2 -0
  487. package/dist/core/p-eb65e556.entry.js.map +1 -0
  488. package/dist/core/p-ec53b435.entry.js +2 -0
  489. package/dist/core/p-ec53b435.entry.js.map +1 -0
  490. package/dist/core/p-ed4cde5a.entry.js +2 -0
  491. package/dist/core/p-ed4cde5a.entry.js.map +1 -0
  492. package/dist/core/{p-baf81f30.entry.js → p-f64abdff.entry.js} +2 -2
  493. package/dist/core/p-f64abdff.entry.js.map +1 -0
  494. package/dist/core/p-f9810621.entry.js +2 -0
  495. package/dist/core/p-f9810621.entry.js.map +1 -0
  496. package/dist/core/p-fb7b99dd.entry.js +2 -0
  497. package/dist/core/p-fb7b99dd.entry.js.map +1 -0
  498. package/dist/esm/core.js +1 -1
  499. package/dist/esm/{date-helpers-4f432e92.js → date-helpers-0e5e32a7.js} +2 -2
  500. package/dist/esm/{date-helpers-4f432e92.js.map → date-helpers-0e5e32a7.js.map} +1 -1
  501. package/dist/esm/{helpers-f328a7b6.js → helpers-5bd2012a.js} +108 -2
  502. package/dist/esm/helpers-5bd2012a.js.map +1 -0
  503. package/dist/esm/{helpers-7aa21b0a.js → helpers-dab8ddfe.js} +85 -91
  504. package/dist/esm/helpers-dab8ddfe.js.map +1 -0
  505. package/dist/esm/ic-accordion-group.entry.js +31 -9
  506. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  507. package/dist/esm/ic-accordion.entry.js +7 -8
  508. package/dist/esm/ic-accordion.entry.js.map +1 -1
  509. package/dist/esm/ic-alert.entry.js +27 -9
  510. package/dist/esm/ic-alert.entry.js.map +1 -1
  511. package/dist/esm/ic-back-to-top.entry.js +17 -8
  512. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  513. package/dist/esm/ic-badge.entry.js +67 -117
  514. package/dist/esm/ic-badge.entry.js.map +1 -1
  515. package/dist/esm/ic-breadcrumb-group.entry.js +37 -11
  516. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  517. package/dist/esm/ic-breadcrumb.entry.js +8 -7
  518. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  519. package/dist/esm/ic-button_3.entry.js +121 -133
  520. package/dist/esm/ic-button_3.entry.js.map +1 -1
  521. package/dist/esm/ic-card-horizontal.entry.js +127 -0
  522. package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
  523. package/dist/esm/ic-card-vertical.entry.js +145 -0
  524. package/dist/esm/ic-card-vertical.entry.js.map +1 -0
  525. package/dist/esm/ic-checkbox-group.entry.js +27 -20
  526. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  527. package/dist/esm/ic-checkbox.entry.js +45 -40
  528. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  529. package/dist/esm/ic-chip.entry.js +49 -31
  530. package/dist/esm/ic-chip.entry.js.map +1 -1
  531. package/dist/esm/ic-classification-banner.entry.js +14 -5
  532. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  533. package/dist/esm/ic-data-list.entry.js +28 -0
  534. package/dist/esm/ic-data-list.entry.js.map +1 -0
  535. package/dist/esm/ic-data-row.entry.js +12 -12
  536. package/dist/esm/ic-data-row.entry.js.map +1 -1
  537. package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
  538. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
  539. package/dist/esm/ic-data-table.entry.js +808 -66
  540. package/dist/esm/ic-data-table.entry.js.map +1 -1
  541. package/dist/esm/ic-date-input.entry.js +71 -34
  542. package/dist/esm/ic-date-input.entry.js.map +1 -1
  543. package/dist/esm/ic-date-picker.entry.js +82 -56
  544. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  545. package/dist/esm/ic-dialog.entry.js +27 -101
  546. package/dist/esm/ic-dialog.entry.js.map +1 -1
  547. package/dist/esm/ic-divider.entry.js +2 -3
  548. package/dist/esm/ic-divider.entry.js.map +1 -1
  549. package/dist/esm/ic-empty-state_2.entry.js +318 -0
  550. package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
  551. package/dist/esm/ic-footer-link-group.entry.js +9 -10
  552. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  553. package/dist/esm/ic-footer-link.entry.js +6 -8
  554. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  555. package/dist/esm/ic-footer.entry.js +9 -10
  556. package/dist/esm/ic-footer.entry.js.map +1 -1
  557. package/dist/esm/ic-hero.entry.js +28 -13
  558. package/dist/esm/ic-hero.entry.js.map +1 -1
  559. package/dist/esm/ic-horizontal-scroll.entry.js +6 -8
  560. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  561. package/dist/esm/ic-input-component-container_4.entry.js +35 -29
  562. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
  563. package/dist/esm/ic-link.entry.js +52 -25
  564. package/dist/esm/ic-link.entry.js.map +1 -1
  565. package/dist/esm/ic-menu-group.entry.js +2 -3
  566. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  567. package/dist/esm/ic-menu-item.entry.js +6 -13
  568. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  569. package/dist/esm/ic-menu-with-multi.entry.js +186 -47
  570. package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
  571. package/dist/esm/ic-menu.entry.js +16 -21
  572. package/dist/esm/ic-menu.entry.js.map +1 -1
  573. package/dist/esm/ic-navigation-button.entry.js +28 -8
  574. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  575. package/dist/esm/ic-navigation-group.entry.js +23 -21
  576. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  577. package/dist/esm/ic-navigation-item.entry.js +33 -38
  578. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  579. package/dist/esm/ic-navigation-menu.entry.js +3 -4
  580. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  581. package/dist/esm/ic-page-header.entry.js +10 -12
  582. package/dist/esm/ic-page-header.entry.js.map +1 -1
  583. package/dist/esm/ic-pagination_4.entry.js +221 -180
  584. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  585. package/dist/esm/ic-popover-menu.entry.js +33 -33
  586. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  587. package/dist/esm/ic-radio-group.entry.js +87 -53
  588. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  589. package/dist/esm/ic-radio-option.entry.js +44 -53
  590. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  591. package/dist/esm/ic-search-bar.entry.js +29 -49
  592. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  593. package/dist/esm/ic-section-container.entry.js +1 -1
  594. package/dist/esm/ic-section-container.entry.js.map +1 -1
  595. package/dist/esm/ic-select-with-multi.entry.js +14 -50
  596. package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
  597. package/dist/esm/ic-side-navigation.entry.js +8 -9
  598. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  599. package/dist/esm/ic-skeleton.entry.js +18 -38
  600. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  601. package/dist/esm/ic-status-tag.entry.js +7 -15
  602. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  603. package/dist/esm/ic-step.entry.js +41 -43
  604. package/dist/esm/ic-step.entry.js.map +1 -1
  605. package/dist/esm/ic-stepper.entry.js +55 -24
  606. package/dist/esm/ic-stepper.entry.js.map +1 -1
  607. package/dist/esm/ic-switch.entry.js +7 -9
  608. package/dist/esm/ic-switch.entry.js.map +1 -1
  609. package/dist/esm/ic-tab-context.entry.js +90 -137
  610. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  611. package/dist/esm/ic-tab-group.entry.js +25 -11
  612. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  613. package/dist/esm/ic-tab-panel.entry.js +6 -13
  614. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  615. package/dist/esm/ic-tab.entry.js +14 -14
  616. package/dist/esm/ic-tab.entry.js.map +1 -1
  617. package/dist/esm/ic-theme.entry.js +39 -25
  618. package/dist/esm/ic-theme.entry.js.map +1 -1
  619. package/dist/esm/ic-toast-region.entry.js +6 -7
  620. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  621. package/dist/esm/ic-toast.entry.js +88 -35
  622. package/dist/esm/ic-toast.entry.js.map +1 -1
  623. package/dist/esm/ic-toggle-button-group.entry.js +17 -17
  624. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  625. package/dist/esm/ic-toggle-button.entry.js +15 -14
  626. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  627. package/dist/esm/ic-top-navigation.entry.js +62 -86
  628. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  629. package/dist/esm/ic-tree-item.entry.js +237 -0
  630. package/dist/esm/ic-tree-item.entry.js.map +1 -0
  631. package/dist/esm/ic-tree-view.entry.js +199 -0
  632. package/dist/esm/ic-tree-view.entry.js.map +1 -0
  633. package/dist/esm/ic-typography.entry.js +59 -21
  634. package/dist/esm/ic-typography.entry.js.map +1 -1
  635. package/dist/esm/index-93509377.js +26 -14
  636. package/dist/esm/loader.js +1 -1
  637. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
  638. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
  639. package/dist/types/components/ic-data-table/ic-data-table.d.ts +178 -19
  640. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +30 -0
  641. package/dist/types/components/ic-data-table/story-data.d.ts +251 -3
  642. package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
  643. package/dist/types/components/ic-date-input/ic-date-input.d.ts +17 -0
  644. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +14 -25
  645. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +10 -4
  646. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +46 -22
  647. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
  648. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +1 -31
  649. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
  650. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
  651. package/dist/types/components.d.ts +560 -117
  652. package/dist/types/interface.d.ts +1 -0
  653. package/dist/types/utils/helpers.d.ts +9 -0
  654. package/dist/types/utils/types.d.ts +24 -8
  655. package/hydrate/index.js +4461 -2588
  656. package/package.json +6 -6
  657. package/dist/cjs/helpers-7a069459.js.map +0 -1
  658. package/dist/cjs/helpers-f75cf7cf.js.map +0 -1
  659. package/dist/cjs/ic-card.cjs.entry.js +0 -126
  660. package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
  661. package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
  662. package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
  663. package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
  664. package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
  665. package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
  666. package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
  667. package/dist/cjs/types-17dba796.js +0 -16
  668. package/dist/cjs/types-17dba796.js.map +0 -1
  669. package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
  670. package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
  671. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
  672. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
  673. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
  674. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
  675. package/dist/components/ic-alert2.js +0 -117
  676. package/dist/components/ic-alert2.js.map +0 -1
  677. package/dist/components/ic-card.js +0 -171
  678. package/dist/components/ic-card.js.map +0 -1
  679. package/dist/components/ic-data-entity.js +0 -53
  680. package/dist/components/ic-data-entity.js.map +0 -1
  681. package/dist/components/types.js +0 -16
  682. package/dist/components/types.js.map +0 -1
  683. package/dist/core/p-06ae5bec.entry.js +0 -2
  684. package/dist/core/p-06ae5bec.entry.js.map +0 -1
  685. package/dist/core/p-0939ce92.entry.js +0 -2
  686. package/dist/core/p-0939ce92.entry.js.map +0 -1
  687. package/dist/core/p-16f67397.entry.js +0 -2
  688. package/dist/core/p-16f67397.entry.js.map +0 -1
  689. package/dist/core/p-1832f4b5.entry.js +0 -2
  690. package/dist/core/p-1832f4b5.entry.js.map +0 -1
  691. package/dist/core/p-1b7d426b.entry.js +0 -2
  692. package/dist/core/p-1b7d426b.entry.js.map +0 -1
  693. package/dist/core/p-1ce75941.entry.js +0 -2
  694. package/dist/core/p-1ce75941.entry.js.map +0 -1
  695. package/dist/core/p-2e2e0099.entry.js +0 -2
  696. package/dist/core/p-2e2e0099.entry.js.map +0 -1
  697. package/dist/core/p-33679c06.entry.js +0 -2
  698. package/dist/core/p-33679c06.entry.js.map +0 -1
  699. package/dist/core/p-36508aad.entry.js +0 -2
  700. package/dist/core/p-36508aad.entry.js.map +0 -1
  701. package/dist/core/p-3745da83.entry.js +0 -2
  702. package/dist/core/p-3745da83.entry.js.map +0 -1
  703. package/dist/core/p-3f2e77c3.entry.js +0 -2
  704. package/dist/core/p-3f2e77c3.entry.js.map +0 -1
  705. package/dist/core/p-452985d9.entry.js.map +0 -1
  706. package/dist/core/p-47ac6838.entry.js +0 -2
  707. package/dist/core/p-47ac6838.entry.js.map +0 -1
  708. package/dist/core/p-4f1ffa39.entry.js +0 -2
  709. package/dist/core/p-4f1ffa39.entry.js.map +0 -1
  710. package/dist/core/p-5759d771.entry.js +0 -2
  711. package/dist/core/p-5759d771.entry.js.map +0 -1
  712. package/dist/core/p-5e2e6c3b.entry.js +0 -2
  713. package/dist/core/p-5e2e6c3b.entry.js.map +0 -1
  714. package/dist/core/p-5fe96107.entry.js +0 -2
  715. package/dist/core/p-5fe96107.entry.js.map +0 -1
  716. package/dist/core/p-62e22508.entry.js +0 -2
  717. package/dist/core/p-62e22508.entry.js.map +0 -1
  718. package/dist/core/p-6690bc04.entry.js +0 -2
  719. package/dist/core/p-6690bc04.entry.js.map +0 -1
  720. package/dist/core/p-6c0e2ceb.entry.js +0 -2
  721. package/dist/core/p-6c0e2ceb.entry.js.map +0 -1
  722. package/dist/core/p-76915584.entry.js +0 -2
  723. package/dist/core/p-76915584.entry.js.map +0 -1
  724. package/dist/core/p-76d26018.entry.js +0 -2
  725. package/dist/core/p-76d26018.entry.js.map +0 -1
  726. package/dist/core/p-776671cf.entry.js +0 -2
  727. package/dist/core/p-776671cf.entry.js.map +0 -1
  728. package/dist/core/p-7cecf5d5.entry.js +0 -2
  729. package/dist/core/p-7cecf5d5.entry.js.map +0 -1
  730. package/dist/core/p-85609bdd.entry.js +0 -2
  731. package/dist/core/p-85609bdd.entry.js.map +0 -1
  732. package/dist/core/p-86012178.entry.js +0 -2
  733. package/dist/core/p-86012178.entry.js.map +0 -1
  734. package/dist/core/p-8a7e7d23.entry.js +0 -2
  735. package/dist/core/p-8a7e7d23.entry.js.map +0 -1
  736. package/dist/core/p-8c90110a.entry.js +0 -2
  737. package/dist/core/p-8c90110a.entry.js.map +0 -1
  738. package/dist/core/p-8ea47d42.entry.js +0 -2
  739. package/dist/core/p-8ea47d42.entry.js.map +0 -1
  740. package/dist/core/p-9777ebb1.entry.js +0 -2
  741. package/dist/core/p-9777ebb1.entry.js.map +0 -1
  742. package/dist/core/p-982a6e88.entry.js +0 -2
  743. package/dist/core/p-982a6e88.entry.js.map +0 -1
  744. package/dist/core/p-98448bdb.entry.js +0 -2
  745. package/dist/core/p-98448bdb.entry.js.map +0 -1
  746. package/dist/core/p-9d01a7ad.entry.js +0 -2
  747. package/dist/core/p-9d01a7ad.entry.js.map +0 -1
  748. package/dist/core/p-9d540656.entry.js +0 -2
  749. package/dist/core/p-9d540656.entry.js.map +0 -1
  750. package/dist/core/p-9e3178e8.entry.js +0 -2
  751. package/dist/core/p-9e3178e8.entry.js.map +0 -1
  752. package/dist/core/p-a0f9b259.entry.js +0 -2
  753. package/dist/core/p-a0f9b259.entry.js.map +0 -1
  754. package/dist/core/p-a42c2f37.entry.js +0 -2
  755. package/dist/core/p-a42c2f37.entry.js.map +0 -1
  756. package/dist/core/p-a6447b13.entry.js +0 -2
  757. package/dist/core/p-a6447b13.entry.js.map +0 -1
  758. package/dist/core/p-aabab75f.entry.js +0 -2
  759. package/dist/core/p-aabab75f.entry.js.map +0 -1
  760. package/dist/core/p-ae422058.entry.js +0 -2
  761. package/dist/core/p-ae422058.entry.js.map +0 -1
  762. package/dist/core/p-b2aa3d7c.entry.js +0 -2
  763. package/dist/core/p-b2aa3d7c.entry.js.map +0 -1
  764. package/dist/core/p-b306cbc8.entry.js +0 -2
  765. package/dist/core/p-baf81f30.entry.js.map +0 -1
  766. package/dist/core/p-c2b5e7b1.entry.js.map +0 -1
  767. package/dist/core/p-c7590421.entry.js +0 -2
  768. package/dist/core/p-c7590421.entry.js.map +0 -1
  769. package/dist/core/p-c7820c23.entry.js +0 -2
  770. package/dist/core/p-c7820c23.entry.js.map +0 -1
  771. package/dist/core/p-ca8cbd6a.entry.js +0 -2
  772. package/dist/core/p-ca8cbd6a.entry.js.map +0 -1
  773. package/dist/core/p-caf857de.entry.js +0 -2
  774. package/dist/core/p-caf857de.entry.js.map +0 -1
  775. package/dist/core/p-cc7bc438.entry.js +0 -2
  776. package/dist/core/p-cc7bc438.entry.js.map +0 -1
  777. package/dist/core/p-cd799087.js +0 -2
  778. package/dist/core/p-cd799087.js.map +0 -1
  779. package/dist/core/p-d32692e2.entry.js +0 -2
  780. package/dist/core/p-d32692e2.entry.js.map +0 -1
  781. package/dist/core/p-d35c7c18.js +0 -2
  782. package/dist/core/p-d35c7c18.js.map +0 -1
  783. package/dist/core/p-d3856ed3.entry.js +0 -2
  784. package/dist/core/p-d3856ed3.entry.js.map +0 -1
  785. package/dist/core/p-d4fdd8c1.entry.js +0 -2
  786. package/dist/core/p-d4fdd8c1.entry.js.map +0 -1
  787. package/dist/core/p-d5c99ec3.entry.js +0 -2
  788. package/dist/core/p-d5c99ec3.entry.js.map +0 -1
  789. package/dist/core/p-e189f1d0.entry.js +0 -2
  790. package/dist/core/p-e189f1d0.entry.js.map +0 -1
  791. package/dist/core/p-e473bbf8.entry.js +0 -2
  792. package/dist/core/p-e473bbf8.entry.js.map +0 -1
  793. package/dist/core/p-e74f1d09.entry.js +0 -2
  794. package/dist/core/p-e74f1d09.entry.js.map +0 -1
  795. package/dist/core/p-e79e0292.entry.js +0 -2
  796. package/dist/core/p-e79e0292.entry.js.map +0 -1
  797. package/dist/core/p-e84b0310.entry.js +0 -2
  798. package/dist/core/p-e84b0310.entry.js.map +0 -1
  799. package/dist/core/p-f55ad6ae.entry.js +0 -2
  800. package/dist/core/p-f55ad6ae.entry.js.map +0 -1
  801. package/dist/core/p-f91527a0.entry.js +0 -2
  802. package/dist/core/p-f91527a0.entry.js.map +0 -1
  803. package/dist/core/p-fbf4e9b7.entry.js +0 -2
  804. package/dist/core/p-fbf4e9b7.entry.js.map +0 -1
  805. package/dist/core/p-fd186591.js +0 -2
  806. package/dist/core/p-fd186591.js.map +0 -1
  807. package/dist/esm/helpers-7aa21b0a.js.map +0 -1
  808. package/dist/esm/helpers-f328a7b6.js.map +0 -1
  809. package/dist/esm/ic-card.entry.js +0 -122
  810. package/dist/esm/ic-card.entry.js.map +0 -1
  811. package/dist/esm/ic-data-entity.entry.js +0 -25
  812. package/dist/esm/ic-data-entity.entry.js.map +0 -1
  813. package/dist/esm/ic-empty-state.entry.js +0 -34
  814. package/dist/esm/ic-empty-state.entry.js.map +0 -1
  815. package/dist/esm/ic-pagination-bar.entry.js +0 -265
  816. package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
  817. package/dist/esm/types-f605c21c.js +0 -16
  818. package/dist/esm/types-f605c21c.js.map +0 -1
  819. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
  820. /package/dist/core/{p-f8cf2978.js.map → p-33dd24eb.js.map} +0 -0
  821. /package/dist/types/components/{ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts → ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts} +0 -0
@@ -1,14 +1,186 @@
1
- import { h } from "@stencil/core";
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { h, Fragment, Host, } from "@stencil/core";
2
3
  import unsortedIcon from "./assets/unsorted-icon.svg";
3
4
  import ascendingIcon from "./assets/ascending-icon.svg";
4
5
  import descendingIcon from "./assets/descending-icon.svg";
6
+ // Unable to import helper functions via @ukic/web-components
7
+ import { isEmptyString, isSlotUsed, pxToRem, addDataToPosition, dynamicDebounce, } from "../../utils/helpers";
8
+ /**
9
+ * @slot empty-state - Content is slotted below the table header when there is no data and the table is not loading.
10
+ * @slot {COLUMN_KEY}-{ROW_INDEX}[-icon] - Each cell should have its own slot, named using the column tag and the row index, allowing for custom elements to be displayed. Include `-icon` at the end for that cell's icon slot.
11
+ * @slot {COLUMN_KEY}-column-icon - The icon slot for a column header.
12
+ * @slot title-bar - A custom ic-data-table-title-bar can be slotted above the column headers to display additional information about the table.
13
+ * @slot pagination-bar - A custom ic-pagination-bar can be slotted below the data to provide enhanced control over how the data is interacted with when being fetched externally.
14
+ */
5
15
  export class DataTable {
6
16
  constructor() {
17
+ this.DENSITY_HEIGHT_MULTIPLIER = {
18
+ dense: 0.8,
19
+ default: 1,
20
+ spacious: 1.2,
21
+ };
22
+ this.DENSITY_PADDING_HEIGHT_DIFF = {
23
+ dense: 8,
24
+ default: 16,
25
+ spacious: 20,
26
+ };
7
27
  this.SORT_ICONS = {
8
28
  unsorted: unsortedIcon,
9
29
  ascending: ascendingIcon,
10
30
  descending: descendingIcon,
11
31
  };
32
+ this.hasLoadedForOneSecond = true;
33
+ this.resizeObserver = null;
34
+ this.SHOW_HIDE_STRING = "show-hide";
35
+ this.SHOW_HIDE_CSS_CLASS = `${this.SHOW_HIDE_STRING}-wrap`;
36
+ this.TOOLTIP_STRING = "tooltip";
37
+ this.TOOLTIP = `ic-${this.TOOLTIP_STRING}`;
38
+ this.TEXT_WRAP_STRING = "text-wrap";
39
+ this.TEXT_WRAP_CLASS = `.${this.TEXT_WRAP_STRING}`;
40
+ this.dataUpdated = false;
41
+ this.rowHeightSet = false;
42
+ this.initialLoad = false;
43
+ this.icPageChangeEvent = false;
44
+ this.itemsPerPageChange = false;
45
+ this.DATA_ROW_HEIGHT_STRING = "data-row-height";
46
+ this.ROW_HEIGHT_CSS_VARIABLE = "--row-height";
47
+ this.DEFAULT_LINE_HEIGHT = 24;
48
+ this.densityUpdate = false;
49
+ this.truncationPatternUpdated = false;
50
+ this.isNewDebounceDelaySet = false;
51
+ this.updateSetRowHeight = (typographyEl) => {
52
+ const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
53
+ if (typographyEl) {
54
+ const cellContainer = this.getCellContainer(typographyEl);
55
+ const rowHeight = fontSize *
56
+ parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
57
+ if (typographyEl.scrollHeight > rowHeight) {
58
+ cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
59
+ }
60
+ }
61
+ else {
62
+ this.getTypographyElements().forEach((typographyEl) => {
63
+ const cellContainer = this.getCellContainer(typographyEl);
64
+ const rowHeight = fontSize *
65
+ parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
66
+ if (typographyEl.scrollHeight > rowHeight) {
67
+ cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
68
+ }
69
+ });
70
+ }
71
+ };
72
+ this.debounceDataTruncation = () => {
73
+ this.getTypographyElements().forEach((typographyEl) => {
74
+ const cellContainer = this.getCellContainer(typographyEl);
75
+ if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
76
+ this.resizeObserver = new ResizeObserver(
77
+ // This gets triggered twice due to updated data and see more/see less button
78
+ dynamicDebounce(() => {
79
+ this.dataTruncation(typographyEl);
80
+ if (!this.isNewDebounceDelaySet) {
81
+ this.setNewDebounceDelay(200);
82
+ }
83
+ }, () => this.debounceDelay));
84
+ this.resizeObserver.observe(typographyEl);
85
+ }
86
+ });
87
+ };
88
+ this.setNewDebounceDelay = (delay) => {
89
+ this.debounceDelay = delay;
90
+ this.isNewDebounceDelaySet = true;
91
+ };
92
+ this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
93
+ this.truncate = (typographyEl, cellContainer, tooltip) => {
94
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
95
+ //24 is the height of a single line
96
+ if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
97
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
98
+ this.addTooltipTruncation(typographyEl, cellContainer, tooltip);
99
+ }
100
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
101
+ this.addShowHideTruncation(cellContainer, typographyEl);
102
+ }
103
+ }
104
+ }
105
+ else {
106
+ if (this.truncationPattern === this.TOOLTIP_STRING && tooltip) {
107
+ typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
108
+ cellContainer.appendChild(typographyEl);
109
+ tooltip.remove();
110
+ }
111
+ if (this.truncationPattern === this.SHOW_HIDE_STRING &&
112
+ !isEmptyString(typographyEl.getAttribute("max-lines"))) {
113
+ this.resetShowHideTruncation(typographyEl);
114
+ }
115
+ }
116
+ };
117
+ this.dataTruncation = (typographyEl) => {
118
+ // Tooltip truncation mentioned in AC. Will need revisiting
119
+ const tooltip = this.getTooltip(typographyEl);
120
+ const cellContainer = this.getCellContainer(typographyEl);
121
+ if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.classList.contains("data-type-element")) ||
122
+ this.dataUpdated) {
123
+ return;
124
+ }
125
+ if (this.truncationPattern === this.SHOW_HIDE_STRING &&
126
+ typographyEl.shadowRoot.querySelector("button")) {
127
+ const showHideBtn = typographyEl.shadowRoot.querySelector("button");
128
+ // If the see more/see less is present and the max lines is equal to the cell container
129
+ // remove the see more/see less button
130
+ if (showHideBtn) {
131
+ const truncWrapper = this.getTruncWrapper(typographyEl);
132
+ if (this.getLines(truncWrapper.scrollHeight) ===
133
+ +typographyEl.getAttribute("max-lines")) {
134
+ this.resetShowHideTruncation(typographyEl);
135
+ }
136
+ }
137
+ }
138
+ // Deals with setting and resetting row height and re-truncating data
139
+ if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
140
+ const truncWrapper = this.getTruncWrapper(typographyEl);
141
+ // cellContainer.clientHeight - 24 removes the extra line by see more/see less
142
+ if (truncWrapper &&
143
+ cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
144
+ truncWrapper.scrollHeight) {
145
+ this.resetShowHideTruncation(typographyEl);
146
+ return;
147
+ }
148
+ if (typographyEl.scrollHeight > cellContainer.clientHeight) {
149
+ this.addShowHideTruncation(cellContainer, typographyEl);
150
+ return;
151
+ }
152
+ }
153
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > 0 &&
154
+ (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > 0 &&
155
+ (typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) === (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
156
+ if (tooltip) {
157
+ this.removeTooltip(cellContainer, typographyEl, tooltip);
158
+ }
159
+ return;
160
+ }
161
+ this.truncate(typographyEl, cellContainer, tooltip);
162
+ };
163
+ this.removeTextWrap = () => {
164
+ this.getTypographyElements().forEach((typographyEl) => {
165
+ const tableCell = typographyEl.closest("td");
166
+ if (tableCell.classList.contains(this.TEXT_WRAP_STRING)) {
167
+ tableCell.classList.remove(this.TEXT_WRAP_STRING);
168
+ }
169
+ });
170
+ };
171
+ this.getCellContainer = (typographyEl) => {
172
+ return typographyEl.closest(".cell-container");
173
+ };
174
+ this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
175
+ array.forEach((val) => val.textWrap && delete val.textWrap);
176
+ this.startLoadingTimer = () => {
177
+ this.hasLoadedForOneSecond = false;
178
+ this.timerStarted = Date.now();
179
+ setTimeout(() => {
180
+ this.hasLoadedForOneSecond = true;
181
+ this.timerStarted = null;
182
+ }, this.minimumLoadingDisplayDuration);
183
+ };
12
184
  this.isObject = (value) => typeof value === "object";
13
185
  this.notDefaultDensity = () => this.density !== "default";
14
186
  this.getCellContent = (cell, dataType) => {
@@ -26,9 +198,60 @@ export class DataTable {
26
198
  return this.getObjectValue(this.getObjectValue(cell, "cellAlignment"), alignment);
27
199
  }
28
200
  };
29
- this.createCells = (row) => {
201
+ this.getCellOptions = (cell, key) => {
202
+ if (!(this.isObject(cell) && Object.keys(cell).includes(key)))
203
+ return;
204
+ return this.getObjectValue(cell, key);
205
+ };
206
+ this.createUpdatingIndicator = () => {
207
+ const { appearance, description, max, min, progress, monochrome } = this.updatingOptions || {};
208
+ return (h("th", { colSpan: this.columns.length, class: "updating-state" }, h("ic-loading-indicator", { theme: appearance, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
209
+ };
210
+ this.setRowHeight = (height) => {
211
+ return pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
212
+ this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
213
+ };
214
+ this.setTruncationClass = () => {
215
+ if (this.truncationPattern) {
216
+ return { [`truncation-${this.truncationPattern}`]: true };
217
+ }
218
+ return {};
219
+ };
220
+ this.getColumnWidth = (columnWidth) => {
221
+ // TODO: Setting max width on columns
222
+ let columnWidthStyling = {};
223
+ if (columnWidth) {
224
+ if (typeof columnWidth === "string") {
225
+ columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-width"]: columnWidth });
226
+ }
227
+ if (typeof columnWidth === "object" && !!Object.keys(columnWidth)) {
228
+ if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth) {
229
+ columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-min-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth });
230
+ }
231
+ if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth) {
232
+ columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-max-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth });
233
+ }
234
+ }
235
+ }
236
+ return columnWidthStyling;
237
+ };
238
+ this.getRowHeight = (currentRowHeight, columnProps, rowTextWrap, cell) => {
239
+ if ((this.truncationPattern || currentRowHeight) &&
240
+ !(columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) &&
241
+ !rowTextWrap &&
242
+ !this.getCellOptions(cell, "textWrap") &&
243
+ (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element") {
244
+ return {
245
+ [this.ROW_HEIGHT_CSS_VARIABLE]: this.setRowHeight(currentRowHeight),
246
+ };
247
+ }
248
+ return {};
249
+ };
250
+ this.createCells = (row, rowIndex) => {
251
+ var _a;
30
252
  const rowValues = Object.values(row);
31
253
  const rowKeys = Object.keys(row);
254
+ const rowOptions = this.getRowOptions(rowKeys, rowValues);
32
255
  let rowAlignment;
33
256
  let rowEmphasis;
34
257
  const headerIndex = rowKeys.indexOf("header");
@@ -36,44 +259,72 @@ export class DataTable {
36
259
  rowAlignment = this.getObjectValue(rowValues[headerIndex], "rowAlignment");
37
260
  rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
38
261
  }
262
+ const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: rowIndex }));
263
+ const currentRowHeight = variableRowHeightVal
264
+ ? variableRowHeightVal !== "auto" && variableRowHeightVal
265
+ : this.globalRowHeight !== "auto" && this.globalRowHeight;
39
266
  return rowValues.map((cell, index) => {
40
- const { columnAlignment, dataType, emphasis } = this.columns[index];
267
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
268
+ const columnProps = this.columns[index];
269
+ const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
270
+ const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
41
271
  const cellValue = (key) => this.getObjectValue(cell, key);
42
- return rowKeys[index] === "header" ? (h("th", { scope: "row", colSpan: cellValue("colspan"), class: {
43
- ["row-header"]: true,
44
- [`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
45
- ["row-header-sticky"]: this.stickyRowHeaders,
46
- } }, cellValue("title"))) : (h("td", { innerHTML: dataType === "element" ? cell : null, class: {
47
- ["table-cell"]: true,
48
- [`table-density-${this.density}`]: this.notDefaultDensity(),
49
- [`data-type-${dataType}`]: true,
50
- [`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
51
- this.getCellAlignment(cell, "horizontal")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
52
- !!this.getCellAlignment(cell, "horizontal"),
53
- [`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
54
- rowAlignment ||
55
- this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
56
- !!rowAlignment ||
57
- !!this.getCellAlignment(cell, "vertical"),
58
- } }, h("ic-typography", { variant: "body", class: {
59
- [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
60
- emphasis ||
61
- rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
62
- !!emphasis ||
63
- !!rowEmphasis,
64
- [`text-${this.density}`]: this.notDefaultDensity(),
65
- } }, this.isObject(cell) && dataType !== "date" ? (Object.keys(cell).includes("href") ? (h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, dataType)))));
272
+ if (rowKeys[index] === "header") {
273
+ return (h("th", { scope: "row", colSpan: cellValue("colspan"), class: {
274
+ ["row-header"]: true,
275
+ [`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
276
+ ["row-header-sticky"]: this.stickyRowHeaders,
277
+ } }, cellValue("title")));
278
+ }
279
+ if (rowKeys[index] !== "rowOptions") {
280
+ return (h("td", { class: {
281
+ ["table-cell"]: true,
282
+ [`table-density-${this.density}`]: this.notDefaultDensity(),
283
+ ["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
284
+ }, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
285
+ !isSlotUsed(this.el, cellSlotName)
286
+ ? cell
287
+ : 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) ||
288
+ ((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
289
+ rowAlignment ||
290
+ this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
291
+ !!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
292
+ !!rowAlignment ||
293
+ !!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
294
+ ((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
295
+ this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
296
+ !!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
297
+ !!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) ||
298
+ (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
299
+ !!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
300
+ ? this.setRowHeight(currentRowHeight)
301
+ : null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) &&
302
+ (cellValue("icon") || ((_l = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _l === void 0 ? void 0 : _l.icon)) && (h("span", { class: "icon", innerHTML: cellValue("icon") || ((_m = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _m === void 0 ? void 0 : _m.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
303
+ !isSlotUsed(this.el, cellSlotName) && (h("ic-typography", { variant: "body", class: {
304
+ [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
305
+ (columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
306
+ rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
307
+ !!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
308
+ !!rowEmphasis,
309
+ [`text-${this.density}`]: this.notDefaultDensity(),
310
+ } }, this.isObject(cell) &&
311
+ (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType)))))))));
312
+ }
66
313
  });
67
314
  };
68
315
  this.createColumnHeaders = () => {
69
- return this.columns.map(({ cellAlignment, colspan, key, title }) => (h("th", { scope: "col", class: {
316
+ return this.columns.map(({ cellAlignment, colspan, icon, key, title, columnWidth }) => (h("th", { scope: "col", class: {
70
317
  ["column-header"]: true,
71
- [`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
72
318
  [`table-density-${this.density}`]: this.notDefaultDensity(),
73
- }, colSpan: colspan }, this.sortable ? (h("div", { class: "column-header-inner-container" }, h("ic-typography", { variant: "body", class: {
319
+ ["updating-state-headers"]: this.updating && !this.loading,
320
+ }, style: Object.assign({}, this.getColumnWidth(columnWidth)), colSpan: colspan }, h("div", { class: {
321
+ "column-header-inner-container": true,
322
+ [`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
323
+ } }, isSlotUsed(this.el, `${key}-column-icon`) ? (h("slot", { name: `${key}-column-icon` })) : (icon &&
324
+ !icon.hideOnHeader && (h("span", { class: "icon", innerHTML: icon.icon }))), h("ic-typography", { variant: "body", class: {
74
325
  ["column-header-text"]: true,
75
326
  [`text-${this.density}`]: this.notDefaultDensity(),
76
- } }, title), h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
327
+ } }, title), this.sortable && (h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
77
328
  // eslint-disable-next-line react/jsx-no-bind
78
329
  onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
79
330
  ? this.sortedColumnOrder
@@ -81,21 +332,41 @@ export class DataTable {
81
332
  ["sort-button"]: true,
82
333
  ["sort-button-unsorted"]: this.sortedColumn !== key ||
83
334
  this.sortedColumnOrder === "unsorted",
84
- } }))) : (h("ic-typography", { variant: "body", class: {
85
- ["column-header-text"]: true,
86
- [`text-${this.density}`]: this.notDefaultDensity(),
87
- } }, title)))));
335
+ } }))))));
336
+ };
337
+ this.onRowClick = (row) => {
338
+ this.selectedRow =
339
+ this.selectedRow !== row && !this.loading && !this.updating && row;
88
340
  };
89
341
  this.createRows = () => {
90
342
  const data = this.showPagination
91
343
  ? this.data.slice(this.fromRow, this.toRow)
92
344
  : this.data.slice();
93
- return data
345
+ /**
346
+ * Ensures that createCells has a value in data to map over to actually render the slot.
347
+ * Removes the need for the user to add it multiple times.
348
+ * `addDataToPosition` used to add the element in the correct column order.
349
+ * Adding empty string value in to give `createCells` something to loop over.
350
+ */
351
+ const organisedData = data.map((row, rowIndex) => {
352
+ const slottedColumns = this.columns
353
+ .map(({ key }, index) => isSlotUsed(this.el, `${key}-${rowIndex}`) && { key, index })
354
+ .filter((col) => !!col);
355
+ return slottedColumns.length > 0
356
+ ? addDataToPosition(row, slottedColumns, "")
357
+ : row;
358
+ });
359
+ return organisedData
94
360
  .sort(!this.sortable ? undefined : this.getSortFunction())
95
- .map((row) => (h("tr", { onClick: () => (this.selectedRow = this.selectedRow !== row && row), class: {
96
- ["table-row"]: true,
97
- ["table-row-selected"]: this.selectedRow === row,
98
- } }, this.createCells(row))));
361
+ .map((row, index) => {
362
+ return (h("tr", {
363
+ // eslint-disable-next-line react/jsx-no-bind
364
+ onClick: () => this.onRowClick(row), class: {
365
+ ["table-row"]: true,
366
+ ["table-row-selected"]: this.selectedRow === row,
367
+ }
368
+ }, this.createCells(row, index)));
369
+ });
99
370
  };
100
371
  this.getObjectValue = (cell, key) => {
101
372
  return Object.values(cell)[Object.keys(cell).indexOf(key)];
@@ -155,10 +426,49 @@ export class DataTable {
155
426
  }
156
427
  this.sortedColumnOrder = sortOrders[nextSortOrderIndex];
157
428
  sortButton.setAttribute("aria-label", this.getSortButtonLabel(column));
429
+ this.tableSorted = true;
430
+ this.icSortChange.emit({
431
+ columnName: column,
432
+ sorted: this.sortedColumnOrder,
433
+ });
434
+ };
435
+ this.getTypographyElements = () => {
436
+ return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)"));
437
+ };
438
+ this.getTooltip = (typographyEl) => {
439
+ return typographyEl.closest(this.TOOLTIP);
440
+ };
441
+ this.updateTruncationTooltip = (removeTooltipOnly = false) => {
442
+ this.getTypographyElements().forEach((typographyEl) => {
443
+ const tooltip = this.getTooltip(typographyEl);
444
+ const cellContainer = this.getCellContainer(typographyEl);
445
+ if (typographyEl.closest(this.TEXT_WRAP_CLASS)) {
446
+ this.removeTooltip(cellContainer, typographyEl, tooltip);
447
+ typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
448
+ return;
449
+ }
450
+ this.regenerateTooltip(cellContainer, typographyEl, tooltip, removeTooltipOnly);
451
+ });
158
452
  };
159
453
  this.updateScrollOffset = () => {
160
454
  this.scrollOffset = this.el.shadowRoot.querySelector(".table-row-container").scrollTop;
161
455
  };
456
+ this.setTableDimensions = () => {
457
+ let tableHostDimensions = {};
458
+ if (this.width) {
459
+ tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-width"]: this.width });
460
+ }
461
+ if (this.height) {
462
+ tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-height"]: this.height });
463
+ }
464
+ if (this.maxWidth) {
465
+ tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-max-width"]: this.maxWidth });
466
+ }
467
+ if (this.minWidth) {
468
+ tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-min-width"]: this.minWidth });
469
+ }
470
+ return tableHostDimensions;
471
+ };
162
472
  this.fromRow = 0;
163
473
  this.previousRowsPerPage = undefined;
164
474
  this.rowsPerPage = undefined;
@@ -168,23 +478,36 @@ export class DataTable {
168
478
  this.sortedColumn = undefined;
169
479
  this.sortedColumnOrder = undefined;
170
480
  this.toRow = undefined;
481
+ this.currentRowHeight = undefined;
482
+ this.debounceDelay = 0;
171
483
  this.caption = undefined;
172
484
  this.columns = undefined;
173
485
  this.data = undefined;
174
486
  this.density = "default";
175
487
  this.embedded = false;
488
+ this.globalRowHeight = "auto";
489
+ this.height = undefined;
176
490
  this.hideColumnHeaders = false;
177
- this.paginationOptions = {
178
- itemsPerPage: [
491
+ this.loading = false;
492
+ this.loadingOptions = undefined;
493
+ this.maxWidth = undefined;
494
+ this.minWidth = undefined;
495
+ this.minimumLoadingDisplayDuration = 1000;
496
+ this.paginationBarOptions = {
497
+ itemsPerPageOptions: [
179
498
  { label: "10", value: "10" },
180
499
  { label: "25", value: "25" },
181
500
  { label: "50", value: "50" },
182
501
  ],
183
- type: "page",
184
- control: "simple",
185
- itemsPerPageControl: true,
186
- goToPageControl: true,
502
+ rangeLabelType: "page",
503
+ type: "simple",
504
+ showItemsPerPageControl: true,
505
+ showGoToPageControl: true,
187
506
  alignment: "right",
507
+ appearance: "default",
508
+ itemLabel: "Item",
509
+ pageLabel: "Page",
510
+ hideRangeLabel: false,
188
511
  };
189
512
  this.showPagination = false;
190
513
  this.sortable = false;
@@ -194,56 +517,474 @@ export class DataTable {
194
517
  };
195
518
  this.stickyColumnHeaders = false;
196
519
  this.stickyRowHeaders = false;
520
+ this.tableLayout = "fixed";
521
+ this.truncationPattern = undefined;
522
+ this.updating = false;
523
+ this.updatingOptions = undefined;
524
+ this.variableRowHeight = undefined;
525
+ this.width = undefined;
526
+ }
527
+ disconnectedCallback() {
528
+ var _a;
529
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
197
530
  }
198
531
  componentWillLoad() {
199
- this.rowsPerPage = Number(this.paginationOptions.itemsPerPage[0].value);
532
+ var _a;
533
+ this.rowsPerPage = Number(this.paginationBarOptions.itemsPerPageOptions[0].value);
200
534
  this.previousRowsPerPage = this.rowsPerPage;
201
535
  this.toRow = this.rowsPerPage;
202
536
  this.sortedColumn = this.sortOptions.defaultColumn;
203
537
  this.sortedColumnOrder = this.sortOptions.sortOrders[0];
538
+ this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
539
+ this.initialLoad = true;
540
+ this.previousItemsPerPage = this.rowsPerPage;
204
541
  }
205
542
  componentDidLoad() {
206
543
  const tableElement = this.el.shadowRoot.querySelector("table");
207
544
  const tableContainer = this.el.shadowRoot.querySelector(".table-container");
545
+ if (this.dataUpdated) {
546
+ this.dataUpdated = false;
547
+ }
208
548
  if ((tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientHeight) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientHeight) ||
209
549
  (tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientWidth)) {
210
550
  this.scrollable = true;
211
551
  }
552
+ if (this.loading) {
553
+ this.startLoadingTimer();
554
+ this.showLoadingIndicator();
555
+ }
556
+ if (this.truncationPattern) {
557
+ this.getTypographyElements().forEach((typographyEl) => {
558
+ const cellContainer = this.getCellContainer(typographyEl);
559
+ if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
560
+ this.dataTruncation(typographyEl);
561
+ }
562
+ });
563
+ this.debounceDataTruncation();
564
+ }
565
+ if (this.globalRowHeight !== "auto") {
566
+ this.updateSetRowHeight();
567
+ }
212
568
  }
213
- handleItemsPerPageChange(ev) {
214
- this.previousRowsPerPage = this.rowsPerPage;
215
- this.rowsPerPage = ev.detail.value;
216
- }
217
- handlePageChange(ev) {
218
- this.fromRow = (ev.detail.value - 1) * this.rowsPerPage;
219
- this.toRow = this.fromRow + this.rowsPerPage;
220
- const tableRowsContainer = this.el.shadowRoot.querySelector(".table-row-container");
221
- if (this.previousRowsPerPage === this.rowsPerPage) {
222
- tableRowsContainer.scrollTop = 0;
569
+ componentDidUpdate() {
570
+ // truncation updates invoked here once new/updated data has
571
+ // rendered to take into account updated .cell-container/ic-typography box model updates.
572
+ if (this.truncationPattern === this.SHOW_HIDE_STRING ||
573
+ this.truncationPattern === this.TOOLTIP_STRING) {
574
+ this.truncateUpdatedData();
223
575
  }
224
- else if (this.previousRowsPerPage < this.rowsPerPage) {
225
- tableRowsContainer.scrollTop = this.scrollOffset;
226
- this.previousRowsPerPage = this.rowsPerPage;
576
+ }
577
+ truncateUpdatedData() {
578
+ if (this.dataUpdated) {
579
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
580
+ this.getTypographyElements().forEach((typographyEl) => {
581
+ const truncWrapper = this.getTruncWrapper(typographyEl);
582
+ const cellContainer = this.getCellContainer(typographyEl);
583
+ if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >=
584
+ (truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
585
+ this.resetShowHideTruncation(typographyEl);
586
+ return;
587
+ }
588
+ setTimeout(() => {
589
+ // slight delay due to data rendering
590
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
591
+ this.addShowHideTruncation(cellContainer, typographyEl);
592
+ }
593
+ }, 150);
594
+ });
595
+ }
596
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
597
+ this.updateTruncationTooltip();
598
+ }
599
+ this.dataUpdated = false;
227
600
  }
228
- else {
601
+ if (this.tableSorted) {
602
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
603
+ this.updateTruncationTooltip();
604
+ }
605
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
606
+ this.getTypographyElements().forEach((typographyEl) => {
607
+ const cellContainer = this.getCellContainer(typographyEl);
608
+ if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
609
+ this.createShowHideTruncation(typographyEl, cellContainer);
610
+ }
611
+ else {
612
+ typographyEl.resetTruncation().then(() => {
613
+ cellContainer.removeAttribute("style");
614
+ });
615
+ }
616
+ });
617
+ }
618
+ this.tableSorted = false;
619
+ }
620
+ // This function recalculates the tooltip truncation when the rowHeight has been set.
621
+ // This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
622
+ if (this.rowHeightSet) {
623
+ const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
624
+ const hasAutoRowHeight = this.globalRowHeight === "auto";
625
+ this.getTypographyElements().forEach((typographyEl) => {
626
+ var _a;
627
+ const cellContainer = this.getCellContainer(typographyEl);
628
+ const tooltipEl = this.getTooltip(typographyEl);
629
+ if (hasAutoRowHeight) {
630
+ cellContainer.style.height = null;
631
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
632
+ this.removeTooltip(cellContainer, typographyEl, tooltipEl);
633
+ typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
634
+ }
635
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
636
+ this.resetShowHideTruncation(typographyEl);
637
+ }
638
+ return;
639
+ }
640
+ const rowHeight = fontSize *
641
+ parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
642
+ // If the set row height is bigger than the cell container even
643
+ // with textWrap, set the row height
644
+ if (!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
645
+ rowHeight > cellContainer.clientHeight &&
646
+ !cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
647
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
648
+ }
649
+ if (this.truncationPattern) {
650
+ // If the set row height is bigger than the typography truncation wrapper
651
+ // scroll height, remove see more / see less button
652
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
653
+ const truncWrapper = this.getTruncWrapper(typographyEl);
654
+ const showHideBtn = typographyEl.shadowRoot.querySelector("button");
655
+ if (showHideBtn &&
656
+ (truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight) <= cellContainer.clientHeight) {
657
+ this.resetShowHideTruncation(typographyEl);
658
+ return;
659
+ }
660
+ }
661
+ this.truncate(typographyEl, cellContainer, tooltipEl);
662
+ }
663
+ else {
664
+ this.updateSetRowHeight(typographyEl);
665
+ }
666
+ });
667
+ this.rowHeightSet = false;
668
+ }
669
+ // Only run truncation on the new rows
670
+ // when the number of items per page has increased
671
+ if (this.itemsPerPageChange) {
672
+ const allRows = this.el.shadowRoot.querySelectorAll(".table-row");
673
+ if (this.rowsPerPage > this.previousItemsPerPage) {
674
+ const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
675
+ newRows.forEach((row) => {
676
+ row
677
+ .querySelectorAll("ic-typography")
678
+ .forEach((typographyEl) => {
679
+ const cellContainer = this.getCellContainer(typographyEl);
680
+ const tooltipEl = this.getTooltip(typographyEl);
681
+ this.truncate(typographyEl, cellContainer, tooltipEl);
682
+ });
683
+ });
684
+ }
685
+ this.previousItemsPerPage = this.rowsPerPage;
686
+ this.itemsPerPageChange = false;
687
+ }
688
+ if (!this.initialLoad && this.icPageChangeEvent) {
689
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
690
+ this.updateTruncationTooltip();
691
+ }
692
+ // set truncation to see more if opened and next/previous page is pressed
693
+ if (this.truncationPattern === this.SHOW_HIDE_STRING) {
694
+ this.getTypographyElements().forEach((typographyEl) => {
695
+ const cellContainer = this.getCellContainer(typographyEl);
696
+ const showHideBtn = typographyEl.shadowRoot.querySelector("button");
697
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
698
+ !showHideBtn) {
699
+ this.addShowHideTruncation(cellContainer, typographyEl);
700
+ }
701
+ });
702
+ }
703
+ this.icPageChangeEvent = false;
704
+ }
705
+ if (this.densityUpdate) {
706
+ this.getTypographyElements().forEach((typographyEl) => {
707
+ const cellContainer = this.getCellContainer(typographyEl);
708
+ const tooltipEl = this.getTooltip(typographyEl);
709
+ this.truncate(typographyEl, cellContainer, tooltipEl);
710
+ });
711
+ this.densityUpdate = false;
712
+ }
713
+ if (this.truncationPatternUpdated) {
714
+ if (this.truncationPattern === this.TOOLTIP_STRING) {
715
+ this.getTypographyElements().forEach((typographyEl) => {
716
+ const cellContainer = this.getCellContainer(typographyEl);
717
+ const tooltipEl = this.getTooltip(typographyEl);
718
+ if (typographyEl.scrollHeight > cellContainer.clientHeight) {
719
+ this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
720
+ }
721
+ });
722
+ }
723
+ else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
724
+ this.getTypographyElements().forEach((typographyEl) => {
725
+ const truncWrapper = this.getTruncWrapper(typographyEl);
726
+ const cellContainer = this.getCellContainer(typographyEl);
727
+ if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
728
+ (truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
729
+ this.resetShowHideTruncation(typographyEl);
730
+ return;
731
+ }
732
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
733
+ this.addShowHideTruncation(cellContainer, typographyEl);
734
+ }
735
+ });
736
+ }
737
+ }
738
+ }
739
+ createShowHideTruncation(typographyEl, cellContainer) {
740
+ typographyEl.checkMaxLines(typographyEl.scrollHeight);
741
+ typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
742
+ typographyEl.setShowHideExpanded(false);
743
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
744
+ }
745
+ addTooltipTruncation(typographyEl, cellContainer, tooltip) {
746
+ this.addLineClampCSS(typographyEl, cellContainer);
747
+ if (!tooltip) {
748
+ this.createTruncationTooltip(typographyEl, cellContainer);
749
+ }
750
+ }
751
+ addShowHideTruncation(cellContainer, typographyEl) {
752
+ cellContainer.classList.add(this.SHOW_HIDE_CSS_CLASS);
753
+ this.createShowHideTruncation(typographyEl, cellContainer);
754
+ }
755
+ getTruncWrapper(typographyEl) {
756
+ return typographyEl.shadowRoot.querySelector(".trunc-wrapper");
757
+ }
758
+ // Set the height to initial if row height is set and the show / hide truncation
759
+ // is clicked
760
+ handleTypographyTruncationExpandToggle({ detail, }) {
761
+ const { expanded, typographyEl } = detail;
762
+ const cellContainer = this.getCellContainer(typographyEl);
763
+ if (cellContainer.style.getPropertyValue(this.ROW_HEIGHT_CSS_VARIABLE) &&
764
+ expanded) {
765
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, "inherit");
766
+ }
767
+ }
768
+ handlePageChange({ detail, target }) {
769
+ if (target.parentElement !== this.el) {
770
+ this.fromRow = (detail.value - 1) * this.rowsPerPage;
771
+ this.toRow = this.fromRow + this.rowsPerPage;
772
+ const tableRowsContainer = this.el.shadowRoot.querySelector(".table-row-container");
773
+ if (this.previousRowsPerPage === this.rowsPerPage) {
774
+ tableRowsContainer.scrollTop = 0;
775
+ }
776
+ else if (this.previousRowsPerPage < this.rowsPerPage) {
777
+ tableRowsContainer.scrollTop = this.scrollOffset;
778
+ this.previousRowsPerPage = this.rowsPerPage;
779
+ }
780
+ else {
781
+ this.previousRowsPerPage = this.rowsPerPage;
782
+ }
783
+ }
784
+ if (!this.initialLoad && this.previousPaginationPage !== detail.value) {
785
+ // This is to prevent icPageChange from triggering truncation on first load
786
+ this.icPageChangeEvent = true;
787
+ }
788
+ this.previousPaginationPage = detail.value;
789
+ this.initialLoad = false;
790
+ }
791
+ handleItemsPerPageChange({ detail, target, }) {
792
+ if (target.parentElement !== this.el) {
229
793
  this.previousRowsPerPage = this.rowsPerPage;
794
+ this.rowsPerPage = detail.value;
230
795
  }
796
+ this.itemsPerPageChange = true;
797
+ }
798
+ handleDensityChange(ev) {
799
+ this.density = ev.detail.value;
231
800
  }
232
801
  clickListener(ev) {
233
802
  if (ev.target !== this.el)
234
803
  this.selectedRow = undefined;
235
804
  }
805
+ loadingHandler(newValue) {
806
+ if (newValue)
807
+ this.startLoadingTimer();
808
+ if (this.loading) {
809
+ setTimeout(() => {
810
+ this.showLoadingIndicator();
811
+ }, 500);
812
+ }
813
+ }
814
+ truncationPatternHandler(newValue) {
815
+ if (newValue === this.TOOLTIP_STRING) {
816
+ this.resetShowHideTruncation();
817
+ this.updateTruncationTooltip(true);
818
+ // Not using debounceDataTruncation here due to resizeObserver not being triggered
819
+ this.getTypographyElements().forEach((typographyEl) => {
820
+ const cellContainer = this.getCellContainer(typographyEl);
821
+ const tooltip = this.getTooltip(typographyEl);
822
+ this.truncate(typographyEl, cellContainer, tooltip);
823
+ });
824
+ }
825
+ if (newValue === this.SHOW_HIDE_STRING) {
826
+ // ResizeObserver is trigger here due to the see more/see less links being removed.
827
+ // The resizeObserver will also apply the tooltip where relevant
828
+ this.updateTruncationTooltip(true);
829
+ this.getTypographyElements().forEach((typographyEl) => {
830
+ const truncWrapper = this.getTruncWrapper(typographyEl);
831
+ const cellContainer = this.getCellContainer(typographyEl);
832
+ if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
833
+ (truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
834
+ this.resetShowHideTruncation(typographyEl);
835
+ return;
836
+ }
837
+ setTimeout(() => {
838
+ // slight delay due to data rendering
839
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
840
+ this.addShowHideTruncation(cellContainer, typographyEl);
841
+ }
842
+ }, 150);
843
+ });
844
+ }
845
+ this.truncationPatternUpdated = true;
846
+ }
847
+ async dataHandler(newData) {
848
+ this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
849
+ if (this.loading) {
850
+ !this.hasLoadedForOneSecond
851
+ ? setTimeout(() => (this.loading = false), this.minimumLoadingDisplayDuration -
852
+ (Date.now() - this.timerStarted))
853
+ : (this.loading = false);
854
+ }
855
+ if (this.updating)
856
+ this.updating = false;
857
+ this.dataUpdated = true;
858
+ }
859
+ async densityHandler() {
860
+ this.densityUpdate = true;
861
+ }
862
+ resetShowHideTruncation(typographyEl) {
863
+ if (typographyEl) {
864
+ const truncWrapper = this.getTruncWrapper(typographyEl);
865
+ const cellContainer = this.getCellContainer(typographyEl);
866
+ if ((truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
867
+ !isEmptyString(typographyEl.getAttribute("max-lines")) &&
868
+ Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
869
+ +typographyEl.getAttribute("max-lines")) {
870
+ typographyEl.checkMaxLines(truncWrapper.scrollHeight);
871
+ typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
872
+ typographyEl.setShowHideExpanded(false);
873
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
874
+ }
875
+ else {
876
+ typographyEl.resetTruncation().then(() => {
877
+ if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
878
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
879
+ }
880
+ });
881
+ }
882
+ }
883
+ else {
884
+ this.getTypographyElements().forEach((typographyEl) => {
885
+ const cellContainer = this.getCellContainer(typographyEl);
886
+ typographyEl.resetTruncation().then(() => {
887
+ if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
888
+ cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
889
+ }
890
+ });
891
+ });
892
+ }
893
+ }
894
+ rowHeightChangeHandler(newValue, oldValue) {
895
+ if (+newValue !== +oldValue) {
896
+ this.deleteTextWrapDataKey(this.data);
897
+ this.deleteTextWrapDataKey(this.columns);
898
+ this.removeTextWrap();
899
+ this.icRowHeightChange.emit();
900
+ this.rowHeightSet = true;
901
+ }
902
+ }
903
+ /**
904
+ * Resets the `globalRowHeight` prop to number or auto and sets the `variableRowHeight` prop to `null`.
905
+ */
906
+ async resetRowHeights(rowHeight) {
907
+ this.globalRowHeight = rowHeight || "auto";
908
+ this.variableRowHeight = null;
909
+ }
910
+ showLoadingIndicator() {
911
+ this.loadingIndicator.classList.add("show");
912
+ }
913
+ getRowOptions(rowKeys, rowValues) {
914
+ const rowOptionsIndex = rowKeys.indexOf("rowOptions");
915
+ return rowOptionsIndex > -1 && rowValues[rowOptionsIndex];
916
+ }
917
+ regenerateTooltip(cellContainer, typographyEl, tooltip, removeTooltipOnly) {
918
+ // When sorting the table, instead of regenerating the tooltip,
919
+ // the tooltip details are updated
920
+ if (tooltip) {
921
+ if (this.tableSorted) {
922
+ tooltip.setAttribute("target", typographyEl.id);
923
+ tooltip.setAttribute("label", typographyEl.textContent);
924
+ }
925
+ else {
926
+ this.removeTooltip(cellContainer, typographyEl, tooltip);
927
+ }
928
+ if (removeTooltipOnly) {
929
+ return;
930
+ }
931
+ }
932
+ // This add line clamp to data only when
933
+ // the data object has been updated
934
+ if (!typographyEl.getAttribute("style") && this.dataUpdated) {
935
+ this.addLineClampCSS(typographyEl, cellContainer);
936
+ }
937
+ if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
938
+ this.truncationPattern === this.TOOLTIP_STRING) {
939
+ if (!typographyEl.getAttribute("style") ||
940
+ typographyEl.style.cssText.includes("--ic-line-clamp: 0;")) {
941
+ this.addLineClampCSS(typographyEl, cellContainer);
942
+ }
943
+ this.createTruncationTooltip(typographyEl, cellContainer);
944
+ }
945
+ }
946
+ removeTooltip(cellContainer, typographyEl, tooltip) {
947
+ cellContainer.appendChild(typographyEl);
948
+ if (tooltip) {
949
+ tooltip.remove();
950
+ }
951
+ }
952
+ addLineClampCSS(typographyEl, cellContainer) {
953
+ typographyEl.setAttribute("style", `--ic-line-clamp: ${this.getLines(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)}`);
954
+ }
955
+ createTruncationTooltip(typographyEl, cellContainer) {
956
+ const tooltipEl = document.createElement("ic-tooltip");
957
+ tooltipEl.setAttribute("target", typographyEl.id);
958
+ tooltipEl.setAttribute("label", typographyEl.textContent);
959
+ tooltipEl.classList.add("ic-tooltip-overflow");
960
+ tooltipEl.setExternalPopperProps({
961
+ // This might need reverting back to absolute if the tooltip doesn't dynamically position itself correctly
962
+ strategy: "fixed",
963
+ });
964
+ cellContainer.appendChild(tooltipEl);
965
+ tooltipEl.appendChild(typographyEl);
966
+ }
236
967
  render() {
237
- const { caption, createColumnHeaders, createRows, data, hideColumnHeaders, paginationOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, } = this;
238
- return (h("div", { class: "table-container" }, h("div", { class: {
968
+ const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
969
+ return (h(Host, { style: Object.assign({}, this.setTableDimensions()) }, h("div", { class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("div", { class: {
239
970
  ["table-row-container"]: true,
240
971
  scrollable,
241
- }, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, h("table", null, h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { class: {
972
+ }, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("table", { style: {
973
+ ["--table-layout"]: this.tableLayout,
974
+ } }, h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { class: {
242
975
  ["column-header-sticky"]: stickyColumnHeaders,
243
976
  ["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
244
- } }, h("tr", null, createColumnHeaders()))), (data === null || data === void 0 ? void 0 : data.length) > 0 && h("tbody", null, createRows()))), showPagination && (h("div", { class: "pagination-container" }, h("ic-pagination-bar", { totalItems: data.length, paginationType: paginationOptions.type, paginationControl: paginationOptions.control, showItemsPerPageControl: paginationOptions.itemsPerPageControl, showGoToPageControl: paginationOptions.goToPageControl, itemsPerPageOptions: paginationOptions.itemsPerPage, alignment: paginationOptions.alignment }))), sortable && (h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
977
+ } }, h("tr", null, createColumnHeaders()))), updating &&
978
+ !loading &&
979
+ (hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && !loading && h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
980
+ !loading &&
981
+ (isSlotUsed(this.el, "empty-state") ? (h("slot", { name: "empty-state" })) : (h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (h("ic-loading-indicator", { theme: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, monochrome: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.monochrome, class: {
982
+ "loading-empty": loading,
983
+ loading: true,
984
+ "show-background": loadingOptions.showBackground,
985
+ }, 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 || isSlotUsed(this.el, "pagination-bar")) && (h("div", { class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (h("slot", { name: "pagination-bar" })) : (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 && (h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
245
986
  ? `${sortedColumn} sorted ${sortedColumnOrder}`
246
- : "table unsorted"))));
987
+ : "table unsorted")))));
247
988
  }
248
989
  static get is() { return "ic-data-table"; }
249
990
  static get encapsulation() { return "shadow"; }
@@ -301,9 +1042,15 @@ export class DataTable {
301
1042
  "type": "unknown",
302
1043
  "mutable": false,
303
1044
  "complexType": {
304
- "original": "{ [key: string]: any }[]",
305
- "resolved": "{ [key: string]: any; }[]",
306
- "references": {}
1045
+ "original": "IcDataTableDataType[]",
1046
+ "resolved": "IcDataTableDataType[]",
1047
+ "references": {
1048
+ "IcDataTableDataType": {
1049
+ "location": "import",
1050
+ "path": "./ic-data-table.types",
1051
+ "id": "src/components/ic-data-table/ic-data-table.types.tsx::IcDataTableDataType"
1052
+ }
1053
+ }
307
1054
  },
308
1055
  "required": false,
309
1056
  "optional": false,
@@ -314,7 +1061,7 @@ export class DataTable {
314
1061
  },
315
1062
  "density": {
316
1063
  "type": "string",
317
- "mutable": false,
1064
+ "mutable": true,
318
1065
  "complexType": {
319
1066
  "original": "IcDataTableDensityOptions",
320
1067
  "resolved": "\"default\" | \"dense\" | \"spacious\"",
@@ -354,6 +1101,47 @@ export class DataTable {
354
1101
  "reflect": false,
355
1102
  "defaultValue": "false"
356
1103
  },
1104
+ "globalRowHeight": {
1105
+ "type": "any",
1106
+ "mutable": true,
1107
+ "complexType": {
1108
+ "original": "IcDataTableRowHeights",
1109
+ "resolved": "\"auto\" | number",
1110
+ "references": {
1111
+ "IcDataTableRowHeights": {
1112
+ "location": "import",
1113
+ "path": "./ic-data-table.types",
1114
+ "id": "src/components/ic-data-table/ic-data-table.types.tsx::IcDataTableRowHeights"
1115
+ }
1116
+ }
1117
+ },
1118
+ "required": false,
1119
+ "optional": true,
1120
+ "docs": {
1121
+ "tags": [],
1122
+ "text": "Sets the row height on all rows in the table that aren't set using the `variableRowHeight` method."
1123
+ },
1124
+ "attribute": "global-row-height",
1125
+ "reflect": false,
1126
+ "defaultValue": "\"auto\""
1127
+ },
1128
+ "height": {
1129
+ "type": "string",
1130
+ "mutable": false,
1131
+ "complexType": {
1132
+ "original": "string",
1133
+ "resolved": "string",
1134
+ "references": {}
1135
+ },
1136
+ "required": false,
1137
+ "optional": true,
1138
+ "docs": {
1139
+ "tags": [],
1140
+ "text": "Sets the table height. Can be set to `auto` or a specific value in `px`, `rem`, or `%`."
1141
+ },
1142
+ "attribute": "height",
1143
+ "reflect": false
1144
+ },
357
1145
  "hideColumnHeaders": {
358
1146
  "type": "boolean",
359
1147
  "mutable": false,
@@ -372,27 +1160,108 @@ export class DataTable {
372
1160
  "reflect": false,
373
1161
  "defaultValue": "false"
374
1162
  },
375
- "paginationOptions": {
1163
+ "loading": {
1164
+ "type": "boolean",
1165
+ "mutable": true,
1166
+ "complexType": {
1167
+ "original": "boolean",
1168
+ "resolved": "boolean",
1169
+ "references": {}
1170
+ },
1171
+ "required": false,
1172
+ "optional": true,
1173
+ "docs": {
1174
+ "tags": [],
1175
+ "text": "When set to `true`, the full table will show a loading state, featuring a radial indicator."
1176
+ },
1177
+ "attribute": "loading",
1178
+ "reflect": false,
1179
+ "defaultValue": "false"
1180
+ },
1181
+ "loadingOptions": {
376
1182
  "type": "unknown",
377
1183
  "mutable": false,
378
1184
  "complexType": {
379
- "original": "{\n itemsPerPage?: { label: string; value: string }[];\n type?: IcPaginationTypes;\n control?: IcPaginationControlTypes;\n itemsPerPageControl?: boolean;\n goToPageControl?: boolean;\n alignment?: IcPaginationAlignmentOptions;\n }",
380
- "resolved": "{ itemsPerPage?: { label: string; value: string; }[]; type?: IcPaginationTypes; control?: IcPaginationControlTypes; itemsPerPageControl?: boolean; goToPageControl?: boolean; alignment?: IcPaginationAlignmentOptions; }",
1185
+ "original": "{\n appearance?: IcThemeForegroundNoDefault;\n description?: string;\n label?: string;\n labelDuration?: number;\n max?: number;\n min?: number;\n progress?: number;\n showBackground?: boolean;\n monochrome?: boolean;\n }",
1186
+ "resolved": "{ appearance?: IcThemeForegroundNoDefault; description?: string; label?: string; labelDuration?: number; max?: number; min?: number; progress?: number; showBackground?: boolean; monochrome?: boolean; }",
381
1187
  "references": {
382
- "IcPaginationTypes": {
383
- "location": "import",
384
- "path": "../ic-pagination/ic-pagination.types",
385
- "id": "src/components/ic-pagination/ic-pagination.types.ts::IcPaginationTypes"
386
- },
387
- "IcPaginationControlTypes": {
1188
+ "IcThemeForegroundNoDefault": {
388
1189
  "location": "import",
389
- "path": "../ic-pagination/ic-pagination.types",
390
- "id": "src/components/ic-pagination/ic-pagination.types.ts::IcPaginationControlTypes"
391
- },
392
- "IcPaginationAlignmentOptions": {
1190
+ "path": "@ukic/web-components/dist/types/utils/types",
1191
+ "id": "../web-components/dist/types/utils/types.d.ts::IcThemeForegroundNoDefault"
1192
+ }
1193
+ }
1194
+ },
1195
+ "required": false,
1196
+ "optional": true,
1197
+ "docs": {
1198
+ "tags": [],
1199
+ "text": "Sets the props for the circular loading indicator used in the loading state."
1200
+ }
1201
+ },
1202
+ "maxWidth": {
1203
+ "type": "string",
1204
+ "mutable": false,
1205
+ "complexType": {
1206
+ "original": "string",
1207
+ "resolved": "string",
1208
+ "references": {}
1209
+ },
1210
+ "required": false,
1211
+ "optional": true,
1212
+ "docs": {
1213
+ "tags": [],
1214
+ "text": "Sets the maximum width of the data table. Can be set in `px`, `rem`, or `%`."
1215
+ },
1216
+ "attribute": "max-width",
1217
+ "reflect": false
1218
+ },
1219
+ "minWidth": {
1220
+ "type": "string",
1221
+ "mutable": false,
1222
+ "complexType": {
1223
+ "original": "string",
1224
+ "resolved": "string",
1225
+ "references": {}
1226
+ },
1227
+ "required": false,
1228
+ "optional": true,
1229
+ "docs": {
1230
+ "tags": [],
1231
+ "text": "Sets the minimum width of the data table. Can be set in `px`, `rem`, or `%`."
1232
+ },
1233
+ "attribute": "min-width",
1234
+ "reflect": false
1235
+ },
1236
+ "minimumLoadingDisplayDuration": {
1237
+ "type": "number",
1238
+ "mutable": false,
1239
+ "complexType": {
1240
+ "original": "number",
1241
+ "resolved": "number",
1242
+ "references": {}
1243
+ },
1244
+ "required": false,
1245
+ "optional": true,
1246
+ "docs": {
1247
+ "tags": [],
1248
+ "text": "The minimum amount of time the `loading` state displays for before showing the data. Used to prevent flashing in the component."
1249
+ },
1250
+ "attribute": "minimum-loading-display-duration",
1251
+ "reflect": false,
1252
+ "defaultValue": "1000"
1253
+ },
1254
+ "paginationBarOptions": {
1255
+ "type": "unknown",
1256
+ "mutable": false,
1257
+ "complexType": {
1258
+ "original": "IcPaginationBarOptions",
1259
+ "resolved": "IcPaginationBarOptions",
1260
+ "references": {
1261
+ "IcPaginationBarOptions": {
393
1262
  "location": "import",
394
- "path": "../ic-pagination/ic-pagination.types",
395
- "id": "src/components/ic-pagination/ic-pagination.types.ts::IcPaginationAlignmentOptions"
1263
+ "path": "../../utils/types",
1264
+ "id": "src/utils/types.ts::IcPaginationBarOptions"
396
1265
  }
397
1266
  }
398
1267
  },
@@ -400,9 +1269,9 @@ export class DataTable {
400
1269
  "optional": true,
401
1270
  "docs": {
402
1271
  "tags": [],
403
- "text": "Sets the props for the pagination bar."
1272
+ "text": "Sets the props for the built-in pagination bar. If the `pagination-bar` slot is used then this prop is ignored."
404
1273
  },
405
- "defaultValue": "{\n itemsPerPage: [\n { label: \"10\", value: \"10\" },\n { label: \"25\", value: \"25\" },\n { label: \"50\", value: \"50\" },\n ],\n type: \"page\",\n control: \"simple\",\n itemsPerPageControl: true,\n goToPageControl: true,\n alignment: \"right\",\n }"
1274
+ "defaultValue": "{\n itemsPerPageOptions: [\n { label: \"10\", value: \"10\" },\n { label: \"25\", value: \"25\" },\n { label: \"50\", value: \"50\" },\n ],\n rangeLabelType: \"page\",\n type: \"simple\",\n showItemsPerPageControl: true,\n showGoToPageControl: true,\n alignment: \"right\",\n appearance: \"default\",\n itemLabel: \"Item\",\n pageLabel: \"Page\",\n hideRangeLabel: false,\n }"
406
1275
  },
407
1276
  "showPagination": {
408
1277
  "type": "boolean",
@@ -497,6 +1366,124 @@ export class DataTable {
497
1366
  "attribute": "sticky-row-headers",
498
1367
  "reflect": false,
499
1368
  "defaultValue": "false"
1369
+ },
1370
+ "tableLayout": {
1371
+ "type": "string",
1372
+ "mutable": false,
1373
+ "complexType": {
1374
+ "original": "\"fixed\" | \"auto\"",
1375
+ "resolved": "\"auto\" | \"fixed\"",
1376
+ "references": {}
1377
+ },
1378
+ "required": false,
1379
+ "optional": true,
1380
+ "docs": {
1381
+ "tags": [],
1382
+ "text": "Sets the layout of the table"
1383
+ },
1384
+ "attribute": "table-layout",
1385
+ "reflect": false,
1386
+ "defaultValue": "\"fixed\""
1387
+ },
1388
+ "truncationPattern": {
1389
+ "type": "string",
1390
+ "mutable": false,
1391
+ "complexType": {
1392
+ "original": "IcDataTableTruncationTypes",
1393
+ "resolved": "\"show-hide\" | \"tooltip\"",
1394
+ "references": {
1395
+ "IcDataTableTruncationTypes": {
1396
+ "location": "import",
1397
+ "path": "./ic-data-table.types",
1398
+ "id": "src/components/ic-data-table/ic-data-table.types.tsx::IcDataTableTruncationTypes"
1399
+ }
1400
+ }
1401
+ },
1402
+ "required": false,
1403
+ "optional": true,
1404
+ "docs": {
1405
+ "tags": [],
1406
+ "text": "Sets the method used to truncate long text in cells where textWrap is `false`. The `tooltip` truncation pattern allows the overflowing text to be seen in a tooltip. The `show-hide` truncation pattern allows the overflowing text to be shown and hidden using the ic-typography \"See more\"/\"See less\" buttons."
1407
+ },
1408
+ "attribute": "truncation-pattern",
1409
+ "reflect": false
1410
+ },
1411
+ "updating": {
1412
+ "type": "boolean",
1413
+ "mutable": false,
1414
+ "complexType": {
1415
+ "original": "boolean",
1416
+ "resolved": "boolean",
1417
+ "references": {}
1418
+ },
1419
+ "required": false,
1420
+ "optional": true,
1421
+ "docs": {
1422
+ "tags": [],
1423
+ "text": "If `true`, the table displays a linear loading indicator below the header row to indicate an updating state."
1424
+ },
1425
+ "attribute": "updating",
1426
+ "reflect": false,
1427
+ "defaultValue": "false"
1428
+ },
1429
+ "updatingOptions": {
1430
+ "type": "unknown",
1431
+ "mutable": false,
1432
+ "complexType": {
1433
+ "original": "{\n appearance?: IcThemeForegroundNoDefault;\n description?: string;\n max?: number;\n min?: number;\n progress?: number;\n monochrome?: boolean;\n }",
1434
+ "resolved": "{ appearance?: IcThemeForegroundNoDefault; description?: string; max?: number; min?: number; progress?: number; monochrome?: boolean; }",
1435
+ "references": {
1436
+ "IcThemeForegroundNoDefault": {
1437
+ "location": "import",
1438
+ "path": "@ukic/web-components/dist/types/utils/types",
1439
+ "id": "../web-components/dist/types/utils/types.d.ts::IcThemeForegroundNoDefault"
1440
+ }
1441
+ }
1442
+ },
1443
+ "required": false,
1444
+ "optional": true,
1445
+ "docs": {
1446
+ "tags": [],
1447
+ "text": "Sets the props for the linear loading indicator used in the updating state."
1448
+ }
1449
+ },
1450
+ "variableRowHeight": {
1451
+ "type": "unknown",
1452
+ "mutable": true,
1453
+ "complexType": {
1454
+ "original": "(params: {\n [key: string]: any;\n index: number;\n }) => IcDataTableRowHeights | null",
1455
+ "resolved": "(params: { [key: string]: any; index: number; }) => IcDataTableRowHeights",
1456
+ "references": {
1457
+ "IcDataTableRowHeights": {
1458
+ "location": "import",
1459
+ "path": "./ic-data-table.types",
1460
+ "id": "src/components/ic-data-table/ic-data-table.types.tsx::IcDataTableRowHeights"
1461
+ }
1462
+ }
1463
+ },
1464
+ "required": false,
1465
+ "optional": true,
1466
+ "docs": {
1467
+ "tags": [],
1468
+ "text": "Allows for custom setting of row heights on individual rows based on an individual value from the `data` prop and the row index.\nIf the function returns `null`, that row's height will be set to the `globalRowHeight` property."
1469
+ }
1470
+ },
1471
+ "width": {
1472
+ "type": "string",
1473
+ "mutable": false,
1474
+ "complexType": {
1475
+ "original": "string",
1476
+ "resolved": "string",
1477
+ "references": {}
1478
+ },
1479
+ "required": false,
1480
+ "optional": true,
1481
+ "docs": {
1482
+ "tags": [],
1483
+ "text": "Sets the table width. Can be set to `auto` or a specific value in `px`, `rem`, or `%`."
1484
+ },
1485
+ "attribute": "width",
1486
+ "reflect": false
500
1487
  }
501
1488
  };
502
1489
  }
@@ -510,14 +1497,101 @@ export class DataTable {
510
1497
  "selectedRow": {},
511
1498
  "sortedColumn": {},
512
1499
  "sortedColumnOrder": {},
513
- "toRow": {}
1500
+ "toRow": {},
1501
+ "currentRowHeight": {},
1502
+ "debounceDelay": {}
1503
+ };
1504
+ }
1505
+ static get events() {
1506
+ return [{
1507
+ "method": "icRowHeightChange",
1508
+ "name": "icRowHeightChange",
1509
+ "bubbles": true,
1510
+ "cancelable": true,
1511
+ "composed": true,
1512
+ "docs": {
1513
+ "tags": [],
1514
+ "text": "Emitted when the `globalRowHeight` or `variableRowHeight` properties change in the data table."
1515
+ },
1516
+ "complexType": {
1517
+ "original": "void",
1518
+ "resolved": "void",
1519
+ "references": {}
1520
+ }
1521
+ }, {
1522
+ "method": "icSortChange",
1523
+ "name": "icSortChange",
1524
+ "bubbles": true,
1525
+ "cancelable": true,
1526
+ "composed": true,
1527
+ "docs": {
1528
+ "tags": [],
1529
+ "text": "Emitted when a column sort button is clicked."
1530
+ },
1531
+ "complexType": {
1532
+ "original": "IcSortEventDetail",
1533
+ "resolved": "IcSortEventDetail",
1534
+ "references": {
1535
+ "IcSortEventDetail": {
1536
+ "location": "import",
1537
+ "path": "./ic-data-table.types",
1538
+ "id": "src/components/ic-data-table/ic-data-table.types.tsx::IcSortEventDetail"
1539
+ }
1540
+ }
1541
+ }
1542
+ }];
1543
+ }
1544
+ static get methods() {
1545
+ return {
1546
+ "resetRowHeights": {
1547
+ "complexType": {
1548
+ "signature": "(rowHeight?: number | \"auto\") => Promise<void>",
1549
+ "parameters": [{
1550
+ "name": "rowHeight",
1551
+ "type": "number | \"auto\"",
1552
+ "docs": ""
1553
+ }],
1554
+ "references": {
1555
+ "Promise": {
1556
+ "location": "global",
1557
+ "id": "global::Promise"
1558
+ }
1559
+ },
1560
+ "return": "Promise<void>"
1561
+ },
1562
+ "docs": {
1563
+ "text": "Resets the `globalRowHeight` prop to number or auto and sets the `variableRowHeight` prop to `null`.",
1564
+ "tags": []
1565
+ }
1566
+ }
514
1567
  };
515
1568
  }
516
1569
  static get elementRef() { return "el"; }
1570
+ static get watchers() {
1571
+ return [{
1572
+ "propName": "loading",
1573
+ "methodName": "loadingHandler"
1574
+ }, {
1575
+ "propName": "truncationPattern",
1576
+ "methodName": "truncationPatternHandler"
1577
+ }, {
1578
+ "propName": "data",
1579
+ "methodName": "dataHandler"
1580
+ }, {
1581
+ "propName": "density",
1582
+ "methodName": "densityHandler"
1583
+ }, {
1584
+ "propName": "globalRowHeight",
1585
+ "methodName": "rowHeightChangeHandler"
1586
+ }, {
1587
+ "propName": "variableRowHeight",
1588
+ "methodName": "rowHeightChangeHandler"
1589
+ }];
1590
+ }
517
1591
  static get listeners() {
518
1592
  return [{
519
- "name": "icItemsPerPageChange",
520
- "method": "handleItemsPerPageChange",
1593
+ "name": "typographyTruncationExpandToggle",
1594
+ "method": "handleTypographyTruncationExpandToggle",
521
1595
  "target": undefined,
522
1596
  "capture": false,
523
1597
  "passive": false
@@ -527,6 +1601,18 @@ export class DataTable {
527
1601
  "target": undefined,
528
1602
  "capture": false,
529
1603
  "passive": false
1604
+ }, {
1605
+ "name": "icItemsPerPageChange",
1606
+ "method": "handleItemsPerPageChange",
1607
+ "target": undefined,
1608
+ "capture": false,
1609
+ "passive": false
1610
+ }, {
1611
+ "name": "icTableDensityUpdate",
1612
+ "method": "handleDensityChange",
1613
+ "target": undefined,
1614
+ "capture": false,
1615
+ "passive": false
530
1616
  }, {
531
1617
  "name": "click",
532
1618
  "method": "clickListener",