@cscfi/csc-ui 2.2.5 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (985) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/c-accordion-item.cjs.entry.js +108 -107
  4. package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
  5. package/dist/cjs/c-accordion.cjs.entry.js +53 -52
  6. package/dist/cjs/c-accordion.cjs.entry.js.map +1 -1
  7. package/dist/cjs/c-alert.cjs.entry.js +17 -16
  8. package/dist/cjs/c-alert.cjs.entry.js.map +1 -1
  9. package/dist/cjs/c-autocomplete_34.cjs.entry.js +2437 -2398
  10. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
  11. package/dist/cjs/c-data-table.cjs.entry.js +678 -677
  12. package/dist/cjs/c-data-table.cjs.entry.js.map +1 -1
  13. package/dist/cjs/c-link.cjs.entry.js +19 -18
  14. package/dist/cjs/c-link.cjs.entry.js.map +1 -1
  15. package/dist/cjs/c-list-item-title.cjs.entry.js +14 -13
  16. package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -1
  17. package/dist/cjs/c-list-item.cjs.entry.js +70 -69
  18. package/dist/cjs/c-list-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/c-list.cjs.entry.js +33 -32
  20. package/dist/cjs/c-list.cjs.entry.js.map +1 -1
  21. package/dist/cjs/c-login-button.cjs.entry.js +13 -12
  22. package/dist/cjs/c-login-button.cjs.entry.js.map +1 -1
  23. package/dist/cjs/c-login-buttons.cjs.entry.js +9 -8
  24. package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -1
  25. package/dist/cjs/c-login-card-actions.cjs.entry.js +9 -9
  26. package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -1
  27. package/dist/cjs/c-login-card-content.cjs.entry.js +9 -8
  28. package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -1
  29. package/dist/cjs/c-login-card-title.cjs.entry.js +9 -8
  30. package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
  31. package/dist/cjs/c-login-card.cjs.entry.js +54 -53
  32. package/dist/cjs/c-login-card.cjs.entry.js.map +1 -1
  33. package/dist/cjs/c-menu_2.cjs.entry.js +317 -315
  34. package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
  35. package/dist/cjs/c-modal.cjs.entry.js +109 -108
  36. package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
  37. package/dist/cjs/c-option-value.cjs.entry.js +9 -8
  38. package/dist/cjs/c-option-value.cjs.entry.js.map +1 -1
  39. package/dist/cjs/c-pagination.cjs.entry.js +214 -213
  40. package/dist/cjs/c-pagination.cjs.entry.js.map +1 -1
  41. package/dist/cjs/c-progress-bar.cjs.entry.js +46 -45
  42. package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -1
  43. package/dist/cjs/c-row.cjs.entry.js +23 -22
  44. package/dist/cjs/c-row.cjs.entry.js.map +1 -1
  45. package/dist/cjs/c-slider.cjs.entry.js +87 -86
  46. package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
  47. package/dist/cjs/c-status.cjs.entry.js +11 -10
  48. package/dist/cjs/c-status.cjs.entry.js.map +1 -1
  49. package/dist/cjs/c-step.cjs.entry.js +15 -14
  50. package/dist/cjs/c-step.cjs.entry.js.map +1 -1
  51. package/dist/cjs/c-steps.cjs.entry.js +62 -61
  52. package/dist/cjs/c-steps.cjs.entry.js.map +1 -1
  53. package/dist/cjs/c-swiper-tab.cjs.entry.js +35 -34
  54. package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
  55. package/dist/cjs/c-swiper.cjs.entry.js +119 -118
  56. package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
  57. package/dist/cjs/c-tab-buttons.cjs.entry.js +118 -117
  58. package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
  59. package/dist/cjs/c-tab-item.cjs.entry.js +29 -28
  60. package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -1
  61. package/dist/cjs/c-tab-items.cjs.entry.js +67 -66
  62. package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -1
  63. package/dist/cjs/c-tab.cjs.entry.js +46 -45
  64. package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
  65. package/dist/cjs/c-tabs.cjs.entry.js +394 -393
  66. package/dist/cjs/c-tabs.cjs.entry.js.map +1 -1
  67. package/dist/cjs/c-tag.cjs.entry.js +34 -33
  68. package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
  69. package/dist/cjs/c-tags.cjs.entry.js +18 -17
  70. package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
  71. package/dist/cjs/c-toast.cjs.entry.js +60 -59
  72. package/dist/cjs/c-toast.cjs.entry.js.map +1 -1
  73. package/dist/cjs/c-toasts.cjs.entry.js +64 -63
  74. package/dist/cjs/c-toasts.cjs.entry.js.map +1 -1
  75. package/dist/cjs/csc-ui.cjs.js +13 -11
  76. package/dist/cjs/csc-ui.cjs.js.map +1 -1
  77. package/dist/cjs/index-4fc978c6.js +1878 -0
  78. package/dist/cjs/index-4fc978c6.js.map +1 -0
  79. package/dist/cjs/index-f799b2ea.js +23 -0
  80. package/dist/cjs/{index-72dca436.js.map → index-f799b2ea.js.map} +1 -1
  81. package/dist/cjs/index.cjs.js +1 -1
  82. package/dist/cjs/loader.cjs.js +5 -3
  83. package/dist/cjs/loader.cjs.js.map +1 -1
  84. package/dist/collection/collection-manifest.json +2 -2
  85. package/dist/collection/components/c-accordion/c-accordion.js +164 -164
  86. package/dist/collection/components/c-accordion/c-accordion.js.map +1 -1
  87. package/dist/collection/components/c-accordion/test/c-accordion.visual.js +40 -40
  88. package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -1
  89. package/dist/collection/components/c-accordion-item/c-accordion-item.js +254 -254
  90. package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -1
  91. package/dist/collection/components/c-alert/c-alert.js +51 -51
  92. package/dist/collection/components/c-alert/c-alert.js.map +1 -1
  93. package/dist/collection/components/c-alert/test/c-alert.visual.js +18 -18
  94. package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -1
  95. package/dist/collection/components/c-autocomplete/c-autocomplete.js +740 -740
  96. package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
  97. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +23 -23
  98. package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -1
  99. package/dist/collection/components/c-badge/c-badge.js +15 -15
  100. package/dist/collection/components/c-badge/c-badge.js.map +1 -1
  101. package/dist/collection/components/c-button/c-button.js +502 -502
  102. package/dist/collection/components/c-button/c-button.js.map +1 -1
  103. package/dist/collection/components/c-button/test/c-button.visual.js +72 -72
  104. package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -1
  105. package/dist/collection/components/c-card/c-card.js +128 -128
  106. package/dist/collection/components/c-card/c-card.js.map +1 -1
  107. package/dist/collection/components/c-card/test/c-card.visual.js +8 -8
  108. package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -1
  109. package/dist/collection/components/c-card-actions/c-card-actions.js +64 -64
  110. package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -1
  111. package/dist/collection/components/c-card-content/c-card-content.js +15 -15
  112. package/dist/collection/components/c-card-content/c-card-content.js.map +1 -1
  113. package/dist/collection/components/c-card-title/c-card-title.js +45 -45
  114. package/dist/collection/components/c-card-title/c-card-title.js.map +1 -1
  115. package/dist/collection/components/c-checkbox/c-checkbox.css +1 -1
  116. package/dist/collection/components/c-checkbox/c-checkbox.js +355 -355
  117. package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
  118. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +12 -12
  119. package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -1
  120. package/dist/collection/components/c-csc-logo/c-csc-logo.js +41 -41
  121. package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -1
  122. package/dist/collection/components/c-data-table/c-data-table.js +1140 -1140
  123. package/dist/collection/components/c-data-table/c-data-table.js.map +1 -1
  124. package/dist/collection/components/c-data-table/test/c-data-table.visual.js +23 -23
  125. package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -1
  126. package/dist/collection/components/c-data-table/test/data/index.js +96 -96
  127. package/dist/collection/components/c-data-table/test/data/index.js.map +1 -1
  128. package/dist/collection/components/c-dropdown/c-dropdown.js +615 -612
  129. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
  130. package/dist/collection/components/c-icon/c-icon.js +84 -84
  131. package/dist/collection/components/c-icon/c-icon.js.map +1 -1
  132. package/dist/collection/components/c-icon-button/c-icon-button.js +234 -234
  133. package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -1
  134. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +10 -10
  135. package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -1
  136. package/dist/collection/components/c-input/c-input.js +805 -805
  137. package/dist/collection/components/c-input/c-input.js.map +1 -1
  138. package/dist/collection/components/c-link/c-link.js +103 -103
  139. package/dist/collection/components/c-link/c-link.js.map +1 -1
  140. package/dist/collection/components/c-link/test/c-link.visual.js +6 -6
  141. package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -1
  142. package/dist/collection/components/c-list/c-list.js +65 -65
  143. package/dist/collection/components/c-list/c-list.js.map +1 -1
  144. package/dist/collection/components/c-list-item/c-list-item.js +213 -213
  145. package/dist/collection/components/c-list-item/c-list-item.js.map +1 -1
  146. package/dist/collection/components/c-list-item-title/c-list-item-title.js +44 -44
  147. package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -1
  148. package/dist/collection/components/c-loader/c-loader.js +114 -114
  149. package/dist/collection/components/c-loader/c-loader.js.map +1 -1
  150. package/dist/collection/components/c-login-button/c-login-button.js +78 -78
  151. package/dist/collection/components/c-login-button/c-login-button.js.map +1 -1
  152. package/dist/collection/components/c-login-buttons/c-login-buttons.js +15 -15
  153. package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -1
  154. package/dist/collection/components/c-login-card/c-login-card.js +166 -166
  155. package/dist/collection/components/c-login-card/c-login-card.js.map +1 -1
  156. package/dist/collection/components/c-login-card/test/c-login-card.visual.js +8 -8
  157. package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -1
  158. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +49 -49
  159. package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -1
  160. package/dist/collection/components/c-login-card-content/c-login-card-content.js +15 -15
  161. package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -1
  162. package/dist/collection/components/c-login-card-title/c-login-card-title.js +15 -15
  163. package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -1
  164. package/dist/collection/components/c-main/c-main.js +40 -40
  165. package/dist/collection/components/c-main/c-main.js.map +1 -1
  166. package/dist/collection/components/c-menu/c-menu.js +273 -273
  167. package/dist/collection/components/c-menu/c-menu.js.map +1 -1
  168. package/dist/collection/components/c-menu/test/c-menu.visual.js +29 -29
  169. package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -1
  170. package/dist/collection/components/c-menu-items/c-menu-items.js +407 -407
  171. package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -1
  172. package/dist/collection/components/c-message/c-message.js +149 -149
  173. package/dist/collection/components/c-message/c-message.js.map +1 -1
  174. package/dist/collection/components/c-modal/c-modal.js +236 -236
  175. package/dist/collection/components/c-modal/c-modal.js.map +1 -1
  176. package/dist/collection/components/c-navigation-button/c-navigation-button.js +15 -15
  177. package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -1
  178. package/dist/collection/components/c-option/c-option.js +95 -95
  179. package/dist/collection/components/c-option/c-option.js.map +1 -1
  180. package/dist/collection/components/c-option-value/c-option-value.js +15 -15
  181. package/dist/collection/components/c-option-value/c-option-value.js.map +1 -1
  182. package/dist/collection/components/c-otp-input/c-otp-input.js +339 -339
  183. package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
  184. package/dist/collection/components/c-page/c-page.js +52 -52
  185. package/dist/collection/components/c-page/c-page.js.map +1 -1
  186. package/dist/collection/components/c-pagination/c-pagination.js +342 -342
  187. package/dist/collection/components/c-pagination/c-pagination.js.map +1 -1
  188. package/dist/collection/components/c-pagination/test/c-pagination.visual.js +32 -32
  189. package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -1
  190. package/dist/collection/components/c-progress-bar/c-progress-bar.js +148 -148
  191. package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -1
  192. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +12 -12
  193. package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -1
  194. package/dist/collection/components/c-radio/c-radio.js +77 -77
  195. package/dist/collection/components/c-radio/c-radio.js.map +1 -1
  196. package/dist/collection/components/c-radio-group/c-radio-group.js +370 -370
  197. package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
  198. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +12 -12
  199. package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -1
  200. package/dist/collection/components/c-radio-group/test/items.js +3 -3
  201. package/dist/collection/components/c-radio-group/test/items.js.map +1 -1
  202. package/dist/collection/components/c-ripple/c-ripple.js +89 -86
  203. package/dist/collection/components/c-ripple/c-ripple.js.map +1 -1
  204. package/dist/collection/components/c-row/c-row.js +116 -116
  205. package/dist/collection/components/c-row/c-row.js.map +1 -1
  206. package/dist/collection/components/c-select/c-select.js +745 -740
  207. package/dist/collection/components/c-select/c-select.js.map +1 -1
  208. package/dist/collection/components/c-select/test/c-select.visual.js +26 -26
  209. package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -1
  210. package/dist/collection/components/c-select/test/items.js +7 -7
  211. package/dist/collection/components/c-select/test/items.js.map +1 -1
  212. package/dist/collection/components/c-side-navigation/c-side-navigation.js +141 -141
  213. package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
  214. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +10 -10
  215. package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -1
  216. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +223 -223
  217. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
  218. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +15 -15
  219. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -1
  220. package/dist/collection/components/c-slider/c-slider.js +375 -375
  221. package/dist/collection/components/c-slider/c-slider.js.map +1 -1
  222. package/dist/collection/components/c-spacer/c-spacer.js +15 -15
  223. package/dist/collection/components/c-spacer/c-spacer.js.map +1 -1
  224. package/dist/collection/components/c-spinner/c-spinner.js +88 -88
  225. package/dist/collection/components/c-spinner/c-spinner.js.map +1 -1
  226. package/dist/collection/components/c-status/c-status.js +40 -40
  227. package/dist/collection/components/c-status/c-status.js.map +1 -1
  228. package/dist/collection/components/c-status/test/c-status.visual.js +4 -4
  229. package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -1
  230. package/dist/collection/components/c-step/c-step.js +69 -69
  231. package/dist/collection/components/c-step/c-step.js.map +1 -1
  232. package/dist/collection/components/c-steps/c-steps.js +117 -117
  233. package/dist/collection/components/c-steps/c-steps.js.map +1 -1
  234. package/dist/collection/components/c-steps/test/c-steps.visual.js +11 -11
  235. package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -1
  236. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +135 -135
  237. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -1
  238. package/dist/collection/components/c-swiper/c-swiper.js +205 -205
  239. package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
  240. package/dist/collection/components/c-swiper/test/c-swiper.visual.js +14 -14
  241. package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -1
  242. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +203 -203
  243. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
  244. package/dist/collection/components/c-switch/c-switch.js +214 -214
  245. package/dist/collection/components/c-switch/c-switch.js.map +1 -1
  246. package/dist/collection/components/c-switch/test/c-switch.visual.js +14 -14
  247. package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -1
  248. package/dist/collection/components/c-tab/c-tab.js +224 -224
  249. package/dist/collection/components/c-tab/c-tab.js.map +1 -1
  250. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +263 -263
  251. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
  252. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +31 -31
  253. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -1
  254. package/dist/collection/components/c-tab-item/c-tab-item.js +96 -96
  255. package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -1
  256. package/dist/collection/components/c-tab-items/c-tab-items.js +134 -134
  257. package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -1
  258. package/dist/collection/components/c-table/c-table.js +84 -84
  259. package/dist/collection/components/c-table/c-table.js.map +1 -1
  260. package/dist/collection/components/c-tabs/c-tabs.js +576 -576
  261. package/dist/collection/components/c-tabs/c-tabs.js.map +1 -1
  262. package/dist/collection/components/c-tabs/test/c-tabs.visual.js +8 -8
  263. package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -1
  264. package/dist/collection/components/c-tag/c-tag.js +189 -189
  265. package/dist/collection/components/c-tag/c-tag.js.map +1 -1
  266. package/dist/collection/components/c-tag/test/c-tag.visual.js +12 -12
  267. package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -1
  268. package/dist/collection/components/c-tags/c-tags.js +48 -48
  269. package/dist/collection/components/c-tags/c-tags.js.map +1 -1
  270. package/dist/collection/components/c-text-field/c-text-field.js +609 -609
  271. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
  272. package/dist/collection/components/c-text-field/test/c-text-field.visual.js +27 -27
  273. package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -1
  274. package/dist/collection/components/c-toast/c-toast.js +138 -138
  275. package/dist/collection/components/c-toast/c-toast.js.map +1 -1
  276. package/dist/collection/components/c-toasts/c-toasts.js +185 -183
  277. package/dist/collection/components/c-toasts/c-toasts.js.map +1 -1
  278. package/dist/collection/components/c-toasts/test/c-toasts.visual.js +21 -21
  279. package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -1
  280. package/dist/collection/components/c-toolbar/c-toolbar.js +15 -15
  281. package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -1
  282. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +4 -4
  283. package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -1
  284. package/dist/collection/types/index.js +10 -10
  285. package/dist/collection/types/index.js.map +1 -1
  286. package/dist/collection/utils/getScrollParent.js +19 -19
  287. package/dist/collection/utils/getScrollParent.js.map +1 -1
  288. package/dist/collection/utils/test/takeScreenshot.js +8 -8
  289. package/dist/collection/utils/test/takeScreenshot.js.map +1 -1
  290. package/dist/components/c-accordion-item.d.ts +2 -2
  291. package/dist/components/c-accordion-item.js +137 -136
  292. package/dist/components/c-accordion-item.js.map +1 -1
  293. package/dist/components/c-accordion.d.ts +2 -2
  294. package/dist/components/c-accordion.js +74 -73
  295. package/dist/components/c-accordion.js.map +1 -1
  296. package/dist/components/c-alert.d.ts +2 -2
  297. package/dist/components/c-alert.js +34 -33
  298. package/dist/components/c-alert.js.map +1 -1
  299. package/dist/components/c-autocomplete.d.ts +2 -2
  300. package/dist/components/c-autocomplete.js +343 -342
  301. package/dist/components/c-autocomplete.js.map +1 -1
  302. package/dist/components/c-badge.d.ts +2 -2
  303. package/dist/components/c-badge.js +1 -1
  304. package/dist/components/c-button.d.ts +2 -2
  305. package/dist/components/c-button.js +176 -175
  306. package/dist/components/c-button.js.map +1 -1
  307. package/dist/components/c-card-actions.d.ts +2 -2
  308. package/dist/components/c-card-actions.js +1 -1
  309. package/dist/components/c-card-content.d.ts +2 -2
  310. package/dist/components/c-card-content.js +23 -22
  311. package/dist/components/c-card-content.js.map +1 -1
  312. package/dist/components/c-card-title.d.ts +2 -2
  313. package/dist/components/c-card-title.js +51 -50
  314. package/dist/components/c-card-title.js.map +1 -1
  315. package/dist/components/c-card.d.ts +2 -2
  316. package/dist/components/c-card.js +103 -102
  317. package/dist/components/c-card.js.map +1 -1
  318. package/dist/components/c-checkbox.d.ts +2 -2
  319. package/dist/components/c-checkbox.js +1 -1
  320. package/dist/components/c-csc-logo.d.ts +2 -2
  321. package/dist/components/c-csc-logo.js +27 -26
  322. package/dist/components/c-csc-logo.js.map +1 -1
  323. package/dist/components/c-data-table.d.ts +2 -2
  324. package/dist/components/c-data-table.js +799 -798
  325. package/dist/components/c-data-table.js.map +1 -1
  326. package/dist/components/c-dropdown.d.ts +2 -2
  327. package/dist/components/c-dropdown.js +1 -1
  328. package/dist/components/c-icon-button.d.ts +2 -2
  329. package/dist/components/c-icon-button.js +1 -1
  330. package/dist/components/c-icon.d.ts +2 -2
  331. package/dist/components/c-icon.js +1 -1
  332. package/dist/components/c-input.d.ts +2 -2
  333. package/dist/components/c-input.js +1 -1
  334. package/dist/components/c-link.d.ts +2 -2
  335. package/dist/components/c-link.js +38 -37
  336. package/dist/components/c-link.js.map +1 -1
  337. package/dist/components/c-list-item-title.d.ts +2 -2
  338. package/dist/components/c-list-item-title.js +30 -29
  339. package/dist/components/c-list-item-title.js.map +1 -1
  340. package/dist/components/c-list-item.d.ts +2 -2
  341. package/dist/components/c-list-item.js +100 -99
  342. package/dist/components/c-list-item.js.map +1 -1
  343. package/dist/components/c-list.d.ts +2 -2
  344. package/dist/components/c-list.js +50 -49
  345. package/dist/components/c-list.js.map +1 -1
  346. package/dist/components/c-loader.d.ts +2 -2
  347. package/dist/components/c-loader.js +1 -1
  348. package/dist/components/c-login-button.d.ts +2 -2
  349. package/dist/components/c-login-button.js +31 -30
  350. package/dist/components/c-login-button.js.map +1 -1
  351. package/dist/components/c-login-buttons.d.ts +2 -2
  352. package/dist/components/c-login-buttons.js +23 -22
  353. package/dist/components/c-login-buttons.js.map +1 -1
  354. package/dist/components/c-login-card-actions.d.ts +2 -2
  355. package/dist/components/c-login-card-actions.js +32 -32
  356. package/dist/components/c-login-card-actions.js.map +1 -1
  357. package/dist/components/c-login-card-content.d.ts +2 -2
  358. package/dist/components/c-login-card-content.js +23 -22
  359. package/dist/components/c-login-card-content.js.map +1 -1
  360. package/dist/components/c-login-card-title.d.ts +2 -2
  361. package/dist/components/c-login-card-title.js +23 -22
  362. package/dist/components/c-login-card-title.js.map +1 -1
  363. package/dist/components/c-login-card.d.ts +2 -2
  364. package/dist/components/c-login-card.js +75 -74
  365. package/dist/components/c-login-card.js.map +1 -1
  366. package/dist/components/c-main.d.ts +2 -2
  367. package/dist/components/c-main.js +26 -25
  368. package/dist/components/c-main.js.map +1 -1
  369. package/dist/components/c-menu-items.d.ts +2 -2
  370. package/dist/components/c-menu-items.js +1 -1
  371. package/dist/components/c-menu.d.ts +2 -2
  372. package/dist/components/c-menu.js +1 -1
  373. package/dist/components/c-message.d.ts +2 -2
  374. package/dist/components/c-message.js +1 -1
  375. package/dist/components/c-modal.d.ts +2 -2
  376. package/dist/components/c-modal.js +133 -132
  377. package/dist/components/c-modal.js.map +1 -1
  378. package/dist/components/c-navigation-button.d.ts +2 -2
  379. package/dist/components/c-navigation-button.js +54 -53
  380. package/dist/components/c-navigation-button.js.map +1 -1
  381. package/dist/components/c-option-value.d.ts +2 -2
  382. package/dist/components/c-option-value.js +23 -22
  383. package/dist/components/c-option-value.js.map +1 -1
  384. package/dist/components/c-option.d.ts +2 -2
  385. package/dist/components/c-option.js +32 -31
  386. package/dist/components/c-option.js.map +1 -1
  387. package/dist/components/c-otp-input.d.ts +2 -2
  388. package/dist/components/c-otp-input.js +187 -186
  389. package/dist/components/c-otp-input.js.map +1 -1
  390. package/dist/components/c-page.d.ts +2 -2
  391. package/dist/components/c-page.js +38 -37
  392. package/dist/components/c-page.js.map +1 -1
  393. package/dist/components/c-pagination.d.ts +2 -2
  394. package/dist/components/c-pagination.js +1 -1
  395. package/dist/components/c-progress-bar.d.ts +2 -2
  396. package/dist/components/c-progress-bar.js +66 -65
  397. package/dist/components/c-progress-bar.js.map +1 -1
  398. package/dist/components/c-radio-group.d.ts +2 -2
  399. package/dist/components/c-radio-group.js +141 -140
  400. package/dist/components/c-radio-group.js.map +1 -1
  401. package/dist/components/c-radio.d.ts +2 -2
  402. package/dist/components/c-radio.js +30 -29
  403. package/dist/components/c-radio.js.map +1 -1
  404. package/dist/components/c-ripple.d.ts +2 -2
  405. package/dist/components/c-ripple.js +1 -1
  406. package/dist/components/c-row.d.ts +2 -2
  407. package/dist/components/c-row.js +42 -41
  408. package/dist/components/c-row.js.map +1 -1
  409. package/dist/components/c-select.d.ts +2 -2
  410. package/dist/components/c-select.js +390 -384
  411. package/dist/components/c-select.js.map +1 -1
  412. package/dist/components/c-side-navigation-item.d.ts +2 -2
  413. package/dist/components/c-side-navigation-item.js +145 -144
  414. package/dist/components/c-side-navigation-item.js.map +1 -1
  415. package/dist/components/c-side-navigation-title.d.ts +2 -2
  416. package/dist/components/c-side-navigation-title.js +23 -22
  417. package/dist/components/c-side-navigation-title.js.map +1 -1
  418. package/dist/components/c-side-navigation.d.ts +2 -2
  419. package/dist/components/c-side-navigation.js +120 -119
  420. package/dist/components/c-side-navigation.js.map +1 -1
  421. package/dist/components/c-slider.d.ts +2 -2
  422. package/dist/components/c-slider.js +121 -120
  423. package/dist/components/c-slider.js.map +1 -1
  424. package/dist/components/c-spacer.d.ts +2 -2
  425. package/dist/components/c-spacer.js +1 -1
  426. package/dist/components/c-spinner.d.ts +2 -2
  427. package/dist/components/c-spinner.js +1 -1
  428. package/dist/components/c-status.d.ts +2 -2
  429. package/dist/components/c-status.js +27 -26
  430. package/dist/components/c-status.js.map +1 -1
  431. package/dist/components/c-step.d.ts +2 -2
  432. package/dist/components/c-step.js +32 -31
  433. package/dist/components/c-step.js.map +1 -1
  434. package/dist/components/c-steps.d.ts +2 -2
  435. package/dist/components/c-steps.js +82 -81
  436. package/dist/components/c-steps.js.map +1 -1
  437. package/dist/components/c-sub-navigation-item.d.ts +2 -2
  438. package/dist/components/c-sub-navigation-item.js +68 -67
  439. package/dist/components/c-sub-navigation-item.js.map +1 -1
  440. package/dist/components/c-swiper-tab.d.ts +2 -2
  441. package/dist/components/c-swiper-tab.js +63 -62
  442. package/dist/components/c-swiper-tab.js.map +1 -1
  443. package/dist/components/c-swiper.d.ts +2 -2
  444. package/dist/components/c-swiper.js +164 -163
  445. package/dist/components/c-swiper.js.map +1 -1
  446. package/dist/components/c-switch.d.ts +2 -2
  447. package/dist/components/c-switch.js +77 -76
  448. package/dist/components/c-switch.js.map +1 -1
  449. package/dist/components/c-tab-buttons.d.ts +2 -2
  450. package/dist/components/c-tab-buttons.js +140 -139
  451. package/dist/components/c-tab-buttons.js.map +1 -1
  452. package/dist/components/c-tab-item.d.ts +2 -2
  453. package/dist/components/c-tab-item.js +46 -45
  454. package/dist/components/c-tab-item.js.map +1 -1
  455. package/dist/components/c-tab-items.d.ts +2 -2
  456. package/dist/components/c-tab-items.js +87 -86
  457. package/dist/components/c-tab-items.js.map +1 -1
  458. package/dist/components/c-tab.d.ts +2 -2
  459. package/dist/components/c-tab.js +73 -72
  460. package/dist/components/c-tab.js.map +1 -1
  461. package/dist/components/c-table.d.ts +2 -2
  462. package/dist/components/c-table.js +53 -52
  463. package/dist/components/c-table.js.map +1 -1
  464. package/dist/components/c-tabs.d.ts +2 -2
  465. package/dist/components/c-tabs.js +452 -451
  466. package/dist/components/c-tabs.js.map +1 -1
  467. package/dist/components/c-tag.d.ts +2 -2
  468. package/dist/components/c-tag.js +87 -86
  469. package/dist/components/c-tag.js.map +1 -1
  470. package/dist/components/c-tags.d.ts +2 -2
  471. package/dist/components/c-tags.js +34 -33
  472. package/dist/components/c-tags.js.map +1 -1
  473. package/dist/components/c-text-field.d.ts +2 -2
  474. package/dist/components/c-text-field.js +184 -183
  475. package/dist/components/c-text-field.js.map +1 -1
  476. package/dist/components/c-toast.d.ts +2 -2
  477. package/dist/components/c-toast.js +1 -1
  478. package/dist/components/c-toasts.d.ts +2 -2
  479. package/dist/components/c-toasts.js +117 -97
  480. package/dist/components/c-toasts.js.map +1 -1
  481. package/dist/components/c-toolbar.d.ts +2 -2
  482. package/dist/components/c-toolbar.js +23 -22
  483. package/dist/components/c-toolbar.js.map +1 -1
  484. package/dist/components/index.d.ts +143 -0
  485. package/dist/components/index.js +71 -2
  486. package/dist/components/index.js.map +1 -1
  487. package/dist/components/p-07477d1d.js +238 -0
  488. package/dist/components/{c-menu-items2.js.map → p-07477d1d.js.map} +1 -1
  489. package/dist/components/p-14a3bcd3.js +295 -0
  490. package/dist/components/p-14a3bcd3.js.map +1 -0
  491. package/dist/components/p-29be82c5.js +120 -0
  492. package/dist/components/p-29be82c5.js.map +1 -0
  493. package/dist/components/p-2fbcb4e1.js +1518 -0
  494. package/dist/components/p-2fbcb4e1.js.map +1 -0
  495. package/dist/components/{mdi.js → p-3ea8acb0.js} +2 -2
  496. package/dist/components/p-3ea8acb0.js.map +1 -0
  497. package/dist/components/{c-icon-button2.js → p-59f6f0d8.js} +87 -86
  498. package/dist/components/p-59f6f0d8.js.map +1 -0
  499. package/dist/components/p-6e1a2888.js +33 -0
  500. package/dist/components/p-6e1a2888.js.map +1 -0
  501. package/dist/components/p-7f5a7176.js +50 -0
  502. package/dist/components/p-7f5a7176.js.map +1 -0
  503. package/dist/components/p-8068bc3d.js +47 -0
  504. package/dist/components/p-8068bc3d.js.map +1 -0
  505. package/dist/components/p-aa75dd47.js +293 -0
  506. package/dist/components/p-aa75dd47.js.map +1 -0
  507. package/dist/components/p-c1d56d6b.js +43 -0
  508. package/dist/components/p-c1d56d6b.js.map +1 -0
  509. package/dist/components/p-c9e58781.js +89 -0
  510. package/dist/components/p-c9e58781.js.map +1 -0
  511. package/dist/components/p-cdf22a0b.js +69 -0
  512. package/dist/components/p-cdf22a0b.js.map +1 -0
  513. package/dist/components/p-d3b88201.js +354 -0
  514. package/dist/components/p-d3b88201.js.map +1 -0
  515. package/dist/components/p-e6f11335.js +186 -0
  516. package/dist/components/p-e6f11335.js.map +1 -0
  517. package/dist/components/p-f07ce1ae.js +64 -0
  518. package/dist/components/p-f07ce1ae.js.map +1 -0
  519. package/dist/components/p-f4b8b4e1.js +94 -0
  520. package/dist/components/p-f4b8b4e1.js.map +1 -0
  521. package/dist/components/{c-badge2.js → p-f932f64a.js} +24 -23
  522. package/dist/components/p-f932f64a.js.map +1 -0
  523. package/dist/csc-ui/csc-ui.esm.js +1 -1
  524. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  525. package/dist/csc-ui/index.esm.js +1 -1
  526. package/dist/csc-ui/index.esm.js.map +1 -1
  527. package/dist/csc-ui/p-020643f8.entry.js +2 -0
  528. package/dist/csc-ui/p-020643f8.entry.js.map +1 -0
  529. package/dist/csc-ui/p-06e13288.entry.js +2 -0
  530. package/dist/csc-ui/p-06e13288.entry.js.map +1 -0
  531. package/dist/csc-ui/p-10ef7ca7.entry.js +2 -0
  532. package/dist/csc-ui/p-10ef7ca7.entry.js.map +1 -0
  533. package/dist/csc-ui/{p-ce88995f.entry.js → p-1eae6514.entry.js} +2 -2
  534. package/dist/csc-ui/p-1eae6514.entry.js.map +1 -0
  535. package/dist/csc-ui/p-23b2eb59.entry.js +2 -0
  536. package/dist/csc-ui/p-23b2eb59.entry.js.map +1 -0
  537. package/dist/csc-ui/p-26526434.entry.js +2 -0
  538. package/dist/csc-ui/p-26526434.entry.js.map +1 -0
  539. package/dist/csc-ui/p-307f3fbc.entry.js +2 -0
  540. package/dist/csc-ui/p-307f3fbc.entry.js.map +1 -0
  541. package/dist/csc-ui/p-32fa684b.entry.js +2 -0
  542. package/dist/csc-ui/p-32fa684b.entry.js.map +1 -0
  543. package/dist/csc-ui/p-3cade358.entry.js +2 -0
  544. package/dist/csc-ui/p-3cade358.entry.js.map +1 -0
  545. package/dist/csc-ui/p-47f76af6.entry.js +2 -0
  546. package/dist/csc-ui/p-47f76af6.entry.js.map +1 -0
  547. package/dist/csc-ui/p-4a1cf8bf.entry.js +2 -0
  548. package/dist/csc-ui/p-4a1cf8bf.entry.js.map +1 -0
  549. package/dist/csc-ui/{p-231bc97b.entry.js → p-68b100e9.entry.js} +2 -2
  550. package/dist/csc-ui/p-68b100e9.entry.js.map +1 -0
  551. package/dist/csc-ui/{p-aa307b78.entry.js → p-6ec4e25e.entry.js} +2 -2
  552. package/dist/csc-ui/p-6ec4e25e.entry.js.map +1 -0
  553. package/dist/csc-ui/{p-9dc5b5ac.entry.js → p-752f983d.entry.js} +2 -2
  554. package/dist/csc-ui/p-752f983d.entry.js.map +1 -0
  555. package/dist/csc-ui/{p-2a104276.entry.js → p-75ef652d.entry.js} +2 -2
  556. package/dist/csc-ui/p-75ef652d.entry.js.map +1 -0
  557. package/dist/csc-ui/p-7e0e5d26.entry.js +2 -0
  558. package/dist/csc-ui/p-7e0e5d26.entry.js.map +1 -0
  559. package/dist/csc-ui/p-8315aa49.entry.js +2 -0
  560. package/dist/csc-ui/p-8315aa49.entry.js.map +1 -0
  561. package/dist/csc-ui/p-87b41fa4.entry.js +2 -0
  562. package/dist/csc-ui/p-87b41fa4.entry.js.map +1 -0
  563. package/dist/csc-ui/{p-fafac729.js → p-8f729e27.js} +1 -1
  564. package/dist/csc-ui/{p-fafac729.js.map → p-8f729e27.js.map} +1 -1
  565. package/dist/csc-ui/p-900e4f04.entry.js +2 -0
  566. package/dist/csc-ui/p-900e4f04.entry.js.map +1 -0
  567. package/dist/csc-ui/{p-18a7f4e9.entry.js → p-9ce6cc51.entry.js} +2 -2
  568. package/dist/csc-ui/p-9ce6cc51.entry.js.map +1 -0
  569. package/dist/csc-ui/p-a3e3248c.js +3 -0
  570. package/dist/csc-ui/p-a3e3248c.js.map +1 -0
  571. package/dist/csc-ui/p-a84641e0.entry.js +2 -0
  572. package/dist/csc-ui/p-a84641e0.entry.js.map +1 -0
  573. package/dist/csc-ui/{p-da7c0754.entry.js → p-ac5da8d1.entry.js} +2 -2
  574. package/dist/csc-ui/p-ac5da8d1.entry.js.map +1 -0
  575. package/dist/csc-ui/p-acce6632.entry.js +2 -0
  576. package/dist/csc-ui/p-acce6632.entry.js.map +1 -0
  577. package/dist/csc-ui/{p-52a3f4f8.entry.js → p-af181b9b.entry.js} +2 -2
  578. package/dist/csc-ui/p-af181b9b.entry.js.map +1 -0
  579. package/dist/csc-ui/{p-29b07261.entry.js → p-b09292de.entry.js} +2 -2
  580. package/dist/csc-ui/p-b09292de.entry.js.map +1 -0
  581. package/dist/csc-ui/p-b1ab606b.entry.js +2 -0
  582. package/dist/csc-ui/p-b1ab606b.entry.js.map +1 -0
  583. package/dist/csc-ui/{p-0b41f178.entry.js → p-b543f80e.entry.js} +2 -2
  584. package/dist/csc-ui/p-b543f80e.entry.js.map +1 -0
  585. package/dist/csc-ui/{p-61e0e61f.entry.js → p-bb62b147.entry.js} +2 -2
  586. package/dist/csc-ui/p-bb62b147.entry.js.map +1 -0
  587. package/dist/csc-ui/{p-0394ebc7.entry.js → p-bcb87140.entry.js} +2 -2
  588. package/dist/csc-ui/p-bcb87140.entry.js.map +1 -0
  589. package/dist/csc-ui/p-c222df06.entry.js +2 -0
  590. package/dist/csc-ui/p-c222df06.entry.js.map +1 -0
  591. package/dist/csc-ui/{p-886f0d1d.entry.js → p-c80fa43f.entry.js} +2 -2
  592. package/dist/csc-ui/p-c80fa43f.entry.js.map +1 -0
  593. package/dist/csc-ui/p-d32e42fe.js.map +1 -1
  594. package/dist/csc-ui/p-d67b56d8.entry.js +2 -0
  595. package/dist/csc-ui/p-d67b56d8.entry.js.map +1 -0
  596. package/dist/csc-ui/p-e0e78a0d.entry.js +2 -0
  597. package/dist/csc-ui/p-e0e78a0d.entry.js.map +1 -0
  598. package/dist/csc-ui/p-e1255160.js +2 -0
  599. package/dist/csc-ui/p-e1255160.js.map +1 -0
  600. package/dist/csc-ui/{p-1aeab024.entry.js → p-e2a40b86.entry.js} +2 -2
  601. package/dist/csc-ui/p-e2a40b86.entry.js.map +1 -0
  602. package/dist/csc-ui/p-eafe038d.entry.js +2 -0
  603. package/dist/csc-ui/p-eafe038d.entry.js.map +1 -0
  604. package/dist/csc-ui/{p-0e3cf775.entry.js → p-f164b124.entry.js} +2 -2
  605. package/dist/csc-ui/p-f164b124.entry.js.map +1 -0
  606. package/dist/esm/app-globals-0f993ce5.js +5 -0
  607. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  608. package/dist/esm/c-accordion-item.entry.js +108 -107
  609. package/dist/esm/c-accordion-item.entry.js.map +1 -1
  610. package/dist/esm/c-accordion.entry.js +53 -52
  611. package/dist/esm/c-accordion.entry.js.map +1 -1
  612. package/dist/esm/c-alert.entry.js +17 -16
  613. package/dist/esm/c-alert.entry.js.map +1 -1
  614. package/dist/esm/c-autocomplete_34.entry.js +2437 -2398
  615. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  616. package/dist/esm/c-data-table.entry.js +678 -677
  617. package/dist/esm/c-data-table.entry.js.map +1 -1
  618. package/dist/esm/c-link.entry.js +19 -18
  619. package/dist/esm/c-link.entry.js.map +1 -1
  620. package/dist/esm/c-list-item-title.entry.js +14 -13
  621. package/dist/esm/c-list-item-title.entry.js.map +1 -1
  622. package/dist/esm/c-list-item.entry.js +70 -69
  623. package/dist/esm/c-list-item.entry.js.map +1 -1
  624. package/dist/esm/c-list.entry.js +33 -32
  625. package/dist/esm/c-list.entry.js.map +1 -1
  626. package/dist/esm/c-login-button.entry.js +13 -12
  627. package/dist/esm/c-login-button.entry.js.map +1 -1
  628. package/dist/esm/c-login-buttons.entry.js +9 -8
  629. package/dist/esm/c-login-buttons.entry.js.map +1 -1
  630. package/dist/esm/c-login-card-actions.entry.js +9 -9
  631. package/dist/esm/c-login-card-actions.entry.js.map +1 -1
  632. package/dist/esm/c-login-card-content.entry.js +9 -8
  633. package/dist/esm/c-login-card-content.entry.js.map +1 -1
  634. package/dist/esm/c-login-card-title.entry.js +9 -8
  635. package/dist/esm/c-login-card-title.entry.js.map +1 -1
  636. package/dist/esm/c-login-card.entry.js +54 -53
  637. package/dist/esm/c-login-card.entry.js.map +1 -1
  638. package/dist/esm/c-menu_2.entry.js +317 -315
  639. package/dist/esm/c-menu_2.entry.js.map +1 -1
  640. package/dist/esm/c-modal.entry.js +109 -108
  641. package/dist/esm/c-modal.entry.js.map +1 -1
  642. package/dist/esm/c-option-value.entry.js +9 -8
  643. package/dist/esm/c-option-value.entry.js.map +1 -1
  644. package/dist/esm/c-pagination.entry.js +214 -213
  645. package/dist/esm/c-pagination.entry.js.map +1 -1
  646. package/dist/esm/c-progress-bar.entry.js +46 -45
  647. package/dist/esm/c-progress-bar.entry.js.map +1 -1
  648. package/dist/esm/c-row.entry.js +23 -22
  649. package/dist/esm/c-row.entry.js.map +1 -1
  650. package/dist/esm/c-slider.entry.js +87 -86
  651. package/dist/esm/c-slider.entry.js.map +1 -1
  652. package/dist/esm/c-status.entry.js +11 -10
  653. package/dist/esm/c-status.entry.js.map +1 -1
  654. package/dist/esm/c-step.entry.js +15 -14
  655. package/dist/esm/c-step.entry.js.map +1 -1
  656. package/dist/esm/c-steps.entry.js +62 -61
  657. package/dist/esm/c-steps.entry.js.map +1 -1
  658. package/dist/esm/c-swiper-tab.entry.js +35 -34
  659. package/dist/esm/c-swiper-tab.entry.js.map +1 -1
  660. package/dist/esm/c-swiper.entry.js +119 -118
  661. package/dist/esm/c-swiper.entry.js.map +1 -1
  662. package/dist/esm/c-tab-buttons.entry.js +118 -117
  663. package/dist/esm/c-tab-buttons.entry.js.map +1 -1
  664. package/dist/esm/c-tab-item.entry.js +29 -28
  665. package/dist/esm/c-tab-item.entry.js.map +1 -1
  666. package/dist/esm/c-tab-items.entry.js +67 -66
  667. package/dist/esm/c-tab-items.entry.js.map +1 -1
  668. package/dist/esm/c-tab.entry.js +46 -45
  669. package/dist/esm/c-tab.entry.js.map +1 -1
  670. package/dist/esm/c-tabs.entry.js +394 -393
  671. package/dist/esm/c-tabs.entry.js.map +1 -1
  672. package/dist/esm/c-tag.entry.js +34 -33
  673. package/dist/esm/c-tag.entry.js.map +1 -1
  674. package/dist/esm/c-tags.entry.js +18 -17
  675. package/dist/esm/c-tags.entry.js.map +1 -1
  676. package/dist/esm/c-toast.entry.js +60 -59
  677. package/dist/esm/c-toast.entry.js.map +1 -1
  678. package/dist/esm/c-toasts.entry.js +64 -63
  679. package/dist/esm/c-toasts.entry.js.map +1 -1
  680. package/dist/esm/csc-ui.js +14 -12
  681. package/dist/esm/csc-ui.js.map +1 -1
  682. package/dist/esm/index-28ad175b.js +23 -0
  683. package/dist/esm/{index-dfaed2a4.js.map → index-28ad175b.js.map} +1 -1
  684. package/dist/esm/index-5e4179ca.js +1848 -0
  685. package/dist/esm/index-5e4179ca.js.map +1 -0
  686. package/dist/esm/index.js +1 -1
  687. package/dist/esm/loader.js +6 -4
  688. package/dist/esm/loader.js.map +1 -1
  689. package/dist/playwright.config.js +40 -40
  690. package/dist/playwright.config.js.map +1 -1
  691. package/dist/stencil.config.js +41 -33
  692. package/dist/stencil.config.js.map +1 -1
  693. package/dist/types/components/c-accordion/c-accordion.d.ts +15 -15
  694. package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -27
  695. package/dist/types/components/c-alert/c-alert.d.ts +3 -3
  696. package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +60 -60
  697. package/dist/types/components/c-badge/c-badge.d.ts +1 -1
  698. package/dist/types/components/c-button/c-button.d.ts +33 -33
  699. package/dist/types/components/c-card/c-card.d.ts +10 -10
  700. package/dist/types/components/c-card-actions/c-card-actions.d.ts +3 -3
  701. package/dist/types/components/c-card-content/c-card-content.d.ts +1 -1
  702. package/dist/types/components/c-card-title/c-card-title.d.ts +12 -12
  703. package/dist/types/components/c-checkbox/c-checkbox.d.ts +26 -26
  704. package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +2 -2
  705. package/dist/types/components/c-data-table/c-data-table.d.ts +109 -109
  706. package/dist/types/components/c-dropdown/c-dropdown.d.ts +52 -52
  707. package/dist/types/components/c-icon/c-icon.d.ts +7 -7
  708. package/dist/types/components/c-icon-button/c-icon-button.d.ts +16 -16
  709. package/dist/types/components/c-input/c-input.d.ts +60 -60
  710. package/dist/types/components/c-link/c-link.d.ts +5 -5
  711. package/dist/types/components/c-list/c-list.d.ts +6 -6
  712. package/dist/types/components/c-list-item/c-list-item.d.ts +14 -14
  713. package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +2 -2
  714. package/dist/types/components/c-loader/c-loader.d.ts +8 -8
  715. package/dist/types/components/c-login-button/c-login-button.d.ts +4 -4
  716. package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +1 -1
  717. package/dist/types/components/c-login-card/c-login-card.d.ts +16 -16
  718. package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +3 -3
  719. package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +1 -1
  720. package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +1 -1
  721. package/dist/types/components/c-main/c-main.d.ts +2 -2
  722. package/dist/types/components/c-menu/c-menu.d.ts +23 -23
  723. package/dist/types/components/c-menu-items/c-menu-items.d.ts +39 -39
  724. package/dist/types/components/c-message/c-message.d.ts +16 -16
  725. package/dist/types/components/c-modal/c-modal.d.ts +22 -22
  726. package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +1 -1
  727. package/dist/types/components/c-option/c-option.d.ts +5 -5
  728. package/dist/types/components/c-option-value/c-option-value.d.ts +1 -1
  729. package/dist/types/components/c-otp-input/c-otp-input.d.ts +32 -32
  730. package/dist/types/components/c-page/c-page.d.ts +6 -6
  731. package/dist/types/components/c-pagination/c-pagination.d.ts +34 -34
  732. package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +7 -7
  733. package/dist/types/components/c-radio/c-radio.d.ts +4 -4
  734. package/dist/types/components/c-radio-group/c-radio-group.d.ts +27 -27
  735. package/dist/types/components/c-ripple/c-ripple.d.ts +5 -5
  736. package/dist/types/components/c-row/c-row.d.ts +7 -7
  737. package/dist/types/components/c-select/c-select.d.ts +65 -63
  738. package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +13 -13
  739. package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +18 -18
  740. package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +1 -1
  741. package/dist/types/components/c-slider/c-slider.d.ts +29 -29
  742. package/dist/types/components/c-spacer/c-spacer.d.ts +1 -1
  743. package/dist/types/components/c-spinner/c-spinner.d.ts +4 -4
  744. package/dist/types/components/c-status/c-status.d.ts +2 -2
  745. package/dist/types/components/c-step/c-step.d.ts +3 -3
  746. package/dist/types/components/c-steps/c-steps.d.ts +13 -13
  747. package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +8 -8
  748. package/dist/types/components/c-swiper/c-swiper.d.ts +22 -22
  749. package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +13 -13
  750. package/dist/types/components/c-switch/c-switch.d.ts +16 -16
  751. package/dist/types/components/c-tab/c-tab.d.ts +16 -16
  752. package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +20 -20
  753. package/dist/types/components/c-tab-item/c-tab-item.d.ts +9 -9
  754. package/dist/types/components/c-tab-items/c-tab-items.d.ts +16 -16
  755. package/dist/types/components/c-table/c-table.d.ts +11 -11
  756. package/dist/types/components/c-tabs/c-tabs.d.ts +62 -62
  757. package/dist/types/components/c-tag/c-tag.d.ts +10 -10
  758. package/dist/types/components/c-tags/c-tags.d.ts +4 -4
  759. package/dist/types/components/c-text-field/c-text-field.d.ts +47 -47
  760. package/dist/types/components/c-toast/c-toast.d.ts +15 -15
  761. package/dist/types/components/c-toasts/c-toasts.d.ts +14 -14
  762. package/dist/types/components/c-toolbar/c-toolbar.d.ts +1 -1
  763. package/dist/types/components.d.ts +8 -8
  764. package/dist/types/stencil-public-runtime.d.ts +15 -10
  765. package/dist/types/types/index.d.ts +99 -99
  766. package/loader/cdn.js +1 -3
  767. package/loader/index.cjs.js +1 -3
  768. package/loader/index.d.ts +3 -0
  769. package/loader/index.es2017.js +1 -3
  770. package/loader/index.js +1 -3
  771. package/package.json +16 -12
  772. package/vscode-data.json +9 -9
  773. package/dist/cjs/index-72dca436.js +0 -23
  774. package/dist/cjs/index-91ba22ab.js +0 -2603
  775. package/dist/cjs/index-91ba22ab.js.map +0 -1
  776. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +0 -140
  777. package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +0 -1
  778. package/dist/collection/components/c-accordion/test/c-accordion.spec.js +0 -72
  779. package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +0 -1
  780. package/dist/collection/components/c-alert/test/c-alert.spec.js +0 -54
  781. package/dist/collection/components/c-alert/test/c-alert.spec.js.map +0 -1
  782. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +0 -35
  783. package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +0 -1
  784. package/dist/collection/components/c-badge/test/c-badge.e2e.js +0 -10
  785. package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +0 -1
  786. package/dist/collection/components/c-badge/test/c-badge.spec.js +0 -18
  787. package/dist/collection/components/c-badge/test/c-badge.spec.js.map +0 -1
  788. package/dist/collection/components/c-button/test/c-button.spec.js +0 -207
  789. package/dist/collection/components/c-button/test/c-button.spec.js.map +0 -1
  790. package/dist/collection/components/c-card/test/c-card.e2e.js +0 -17
  791. package/dist/collection/components/c-card/test/c-card.e2e.js.map +0 -1
  792. package/dist/collection/components/c-card/test/c-card.spec.js +0 -142
  793. package/dist/collection/components/c-card/test/c-card.spec.js.map +0 -1
  794. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +0 -115
  795. package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +0 -1
  796. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +0 -60
  797. package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +0 -1
  798. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +0 -40
  799. package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +0 -1
  800. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +0 -125
  801. package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +0 -1
  802. package/dist/collection/components/c-data-table/test/c-data-table.spec.js +0 -107
  803. package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +0 -1
  804. package/dist/collection/components/c-icon/test/c-icon.spec.js +0 -12
  805. package/dist/collection/components/c-icon/test/c-icon.spec.js.map +0 -1
  806. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +0 -82
  807. package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +0 -1
  808. package/dist/collection/components/c-link/test/c-link.spec.js +0 -75
  809. package/dist/collection/components/c-link/test/c-link.spec.js.map +0 -1
  810. package/dist/collection/components/c-loader/test/c-loader.e2e.js +0 -16
  811. package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +0 -1
  812. package/dist/collection/components/c-loader/test/c-loader.spec.js +0 -28
  813. package/dist/collection/components/c-loader/test/c-loader.spec.js.map +0 -1
  814. package/dist/collection/components/c-login-card/test/c-login-card.spec.js +0 -151
  815. package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +0 -1
  816. package/dist/collection/components/c-main/test/c-main.spec.js +0 -19
  817. package/dist/collection/components/c-main/test/c-main.spec.js.map +0 -1
  818. package/dist/collection/components/c-menu/test/c-menu.spec.js +0 -46
  819. package/dist/collection/components/c-menu/test/c-menu.spec.js.map +0 -1
  820. package/dist/collection/components/c-modal/test/c-modal.spec.js +0 -75
  821. package/dist/collection/components/c-modal/test/c-modal.spec.js.map +0 -1
  822. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +0 -10
  823. package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +0 -1
  824. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +0 -18
  825. package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +0 -1
  826. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +0 -47
  827. package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +0 -1
  828. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +0 -54
  829. package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +0 -1
  830. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +0 -39
  831. package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +0 -1
  832. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +0 -28
  833. package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +0 -1
  834. package/dist/collection/components/c-row/test/c-row.spec.js +0 -137
  835. package/dist/collection/components/c-row/test/c-row.spec.js.map +0 -1
  836. package/dist/collection/components/c-select/test/c-select.e2e.js +0 -66
  837. package/dist/collection/components/c-select/test/c-select.e2e.js.map +0 -1
  838. package/dist/collection/components/c-select/test/c-select.spec.js +0 -38
  839. package/dist/collection/components/c-select/test/c-select.spec.js.map +0 -1
  840. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +0 -21
  841. package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +0 -1
  842. package/dist/collection/components/c-spacer/test/c-spacer.spec.js +0 -12
  843. package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +0 -1
  844. package/dist/collection/components/c-status/test/c-status.spec.js +0 -40
  845. package/dist/collection/components/c-status/test/c-status.spec.js.map +0 -1
  846. package/dist/collection/components/c-steps/test/c-steps.e2e.js +0 -35
  847. package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +0 -1
  848. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +0 -83
  849. package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +0 -1
  850. package/dist/collection/components/c-switch/test/c-switch.e2e.js +0 -51
  851. package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +0 -1
  852. package/dist/collection/components/c-switch/test/c-switch.spec.js +0 -40
  853. package/dist/collection/components/c-switch/test/c-switch.spec.js.map +0 -1
  854. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +0 -91
  855. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +0 -1
  856. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +0 -42
  857. package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +0 -1
  858. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +0 -74
  859. package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +0 -1
  860. package/dist/collection/components/c-tabs/test/c-tabs.spec.js +0 -85
  861. package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +0 -1
  862. package/dist/collection/components/c-tag/test/c-tag.spec.js +0 -50
  863. package/dist/collection/components/c-tag/test/c-tag.spec.js.map +0 -1
  864. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +0 -12
  865. package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +0 -1
  866. package/dist/collection/components/c-text-field/test/c-text-field.spec.js +0 -33
  867. package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +0 -1
  868. package/dist/collection/components/c-toasts/test/c-toasts.spec.js +0 -61
  869. package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +0 -1
  870. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +0 -12
  871. package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +0 -1
  872. package/dist/collection/dist/styles/.gitkeep +0 -0
  873. package/dist/collection/dist/styles/css/theme.css +0 -102
  874. package/dist/collection/dist/styles/scss/_theme.scss +0 -100
  875. package/dist/collection/dist/styles/tailwind/theme.js +0 -120
  876. package/dist/components/c-badge2.js.map +0 -1
  877. package/dist/components/c-card-actions2.js +0 -42
  878. package/dist/components/c-card-actions2.js.map +0 -1
  879. package/dist/components/c-checkbox2.js +0 -119
  880. package/dist/components/c-checkbox2.js.map +0 -1
  881. package/dist/components/c-dropdown2.js +0 -353
  882. package/dist/components/c-dropdown2.js.map +0 -1
  883. package/dist/components/c-icon-button2.js.map +0 -1
  884. package/dist/components/c-icon2.js +0 -46
  885. package/dist/components/c-icon2.js.map +0 -1
  886. package/dist/components/c-input2.js +0 -292
  887. package/dist/components/c-input2.js.map +0 -1
  888. package/dist/components/c-loader2.js +0 -63
  889. package/dist/components/c-loader2.js.map +0 -1
  890. package/dist/components/c-menu-items2.js +0 -237
  891. package/dist/components/c-menu2.js +0 -185
  892. package/dist/components/c-menu2.js.map +0 -1
  893. package/dist/components/c-message2.js +0 -88
  894. package/dist/components/c-message2.js.map +0 -1
  895. package/dist/components/c-pagination2.js +0 -294
  896. package/dist/components/c-pagination2.js.map +0 -1
  897. package/dist/components/c-ripple2.js +0 -68
  898. package/dist/components/c-ripple2.js.map +0 -1
  899. package/dist/components/c-spacer2.js +0 -32
  900. package/dist/components/c-spacer2.js.map +0 -1
  901. package/dist/components/c-spinner2.js +0 -49
  902. package/dist/components/c-spinner2.js.map +0 -1
  903. package/dist/components/c-toast2.js +0 -93
  904. package/dist/components/c-toast2.js.map +0 -1
  905. package/dist/components/index2.js +0 -23
  906. package/dist/components/index2.js.map +0 -1
  907. package/dist/components/mdi.js.map +0 -1
  908. package/dist/csc-ui/dist/styles/.gitkeep +0 -0
  909. package/dist/csc-ui/dist/styles/css/theme.css +0 -102
  910. package/dist/csc-ui/dist/styles/scss/_theme.scss +0 -100
  911. package/dist/csc-ui/dist/styles/tailwind/theme.js +0 -120
  912. package/dist/csc-ui/p-0394ebc7.entry.js.map +0 -1
  913. package/dist/csc-ui/p-0ad7a08a.entry.js +0 -2
  914. package/dist/csc-ui/p-0ad7a08a.entry.js.map +0 -1
  915. package/dist/csc-ui/p-0b41f178.entry.js.map +0 -1
  916. package/dist/csc-ui/p-0e3cf775.entry.js.map +0 -1
  917. package/dist/csc-ui/p-18a7f4e9.entry.js.map +0 -1
  918. package/dist/csc-ui/p-1aeab024.entry.js.map +0 -1
  919. package/dist/csc-ui/p-231bc97b.entry.js.map +0 -1
  920. package/dist/csc-ui/p-29b07261.entry.js.map +0 -1
  921. package/dist/csc-ui/p-2a104276.entry.js.map +0 -1
  922. package/dist/csc-ui/p-33c354c4.entry.js +0 -2
  923. package/dist/csc-ui/p-33c354c4.entry.js.map +0 -1
  924. package/dist/csc-ui/p-4dbc9e96.entry.js +0 -2
  925. package/dist/csc-ui/p-4dbc9e96.entry.js.map +0 -1
  926. package/dist/csc-ui/p-4f568e1f.entry.js +0 -2
  927. package/dist/csc-ui/p-4f568e1f.entry.js.map +0 -1
  928. package/dist/csc-ui/p-52a3f4f8.entry.js.map +0 -1
  929. package/dist/csc-ui/p-54d44ab9.entry.js +0 -2
  930. package/dist/csc-ui/p-54d44ab9.entry.js.map +0 -1
  931. package/dist/csc-ui/p-565ec8e4.js +0 -3
  932. package/dist/csc-ui/p-565ec8e4.js.map +0 -1
  933. package/dist/csc-ui/p-5dd84926.entry.js +0 -2
  934. package/dist/csc-ui/p-5dd84926.entry.js.map +0 -1
  935. package/dist/csc-ui/p-61e0e61f.entry.js.map +0 -1
  936. package/dist/csc-ui/p-7a7da729.entry.js +0 -2
  937. package/dist/csc-ui/p-7a7da729.entry.js.map +0 -1
  938. package/dist/csc-ui/p-80cdd280.entry.js +0 -2
  939. package/dist/csc-ui/p-80cdd280.entry.js.map +0 -1
  940. package/dist/csc-ui/p-886f0d1d.entry.js.map +0 -1
  941. package/dist/csc-ui/p-908b21bf.entry.js +0 -2
  942. package/dist/csc-ui/p-908b21bf.entry.js.map +0 -1
  943. package/dist/csc-ui/p-9dc5b5ac.entry.js.map +0 -1
  944. package/dist/csc-ui/p-a33ca657.entry.js +0 -2
  945. package/dist/csc-ui/p-a33ca657.entry.js.map +0 -1
  946. package/dist/csc-ui/p-aa307b78.entry.js.map +0 -1
  947. package/dist/csc-ui/p-b8fd106b.entry.js +0 -2
  948. package/dist/csc-ui/p-b8fd106b.entry.js.map +0 -1
  949. package/dist/csc-ui/p-bae44625.entry.js +0 -2
  950. package/dist/csc-ui/p-bae44625.entry.js.map +0 -1
  951. package/dist/csc-ui/p-c9e04eb5.entry.js +0 -2
  952. package/dist/csc-ui/p-c9e04eb5.entry.js.map +0 -1
  953. package/dist/csc-ui/p-cb4bce81.entry.js +0 -2
  954. package/dist/csc-ui/p-cb4bce81.entry.js.map +0 -1
  955. package/dist/csc-ui/p-ce88995f.entry.js.map +0 -1
  956. package/dist/csc-ui/p-da7c0754.entry.js.map +0 -1
  957. package/dist/csc-ui/p-da7d18c9.entry.js +0 -2
  958. package/dist/csc-ui/p-da7d18c9.entry.js.map +0 -1
  959. package/dist/csc-ui/p-e8bd7a76.entry.js +0 -2
  960. package/dist/csc-ui/p-e8bd7a76.entry.js.map +0 -1
  961. package/dist/csc-ui/p-e922c869.entry.js +0 -2
  962. package/dist/csc-ui/p-e922c869.entry.js.map +0 -1
  963. package/dist/csc-ui/p-e9ec927b.entry.js +0 -2
  964. package/dist/csc-ui/p-e9ec927b.entry.js.map +0 -1
  965. package/dist/csc-ui/p-f6ca71df.entry.js +0 -2
  966. package/dist/csc-ui/p-f6ca71df.entry.js.map +0 -1
  967. package/dist/csc-ui/p-fadae1ab.entry.js +0 -2
  968. package/dist/csc-ui/p-fadae1ab.entry.js.map +0 -1
  969. package/dist/csc-ui/p-fc580f2c.entry.js +0 -2
  970. package/dist/csc-ui/p-fc580f2c.entry.js.map +0 -1
  971. package/dist/esm/index-47956d53.js +0 -2573
  972. package/dist/esm/index-47956d53.js.map +0 -1
  973. package/dist/esm/index-dfaed2a4.js +0 -23
  974. package/dist/esm/polyfills/core-js.js +0 -11
  975. package/dist/esm/polyfills/dom.js +0 -79
  976. package/dist/esm/polyfills/es5-html-element.js +0 -1
  977. package/dist/esm/polyfills/index.js +0 -34
  978. package/dist/esm/polyfills/system.js +0 -6
  979. package/dist/loader/cdn.js +0 -3
  980. package/dist/loader/index.cjs.js +0 -3
  981. package/dist/loader/index.d.ts +0 -21
  982. package/dist/loader/index.es2017.js +0 -3
  983. package/dist/loader/index.js +0 -4
  984. package/dist/loader/package.json +0 -11
  985. package/dist/styles/.gitkeep +0 -0
@@ -1,705 +1,706 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-47956d53.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-5e4179ca.js';
2
2
  import { m as mdiChevronDown, o as mdiChevronLeft, i as mdiChevronRight, p as mdiSwapVertical, q as mdiArrowUpThin, r as mdiArrowDownThin } from './mdi-18a39071.js';
3
3
 
4
4
  const cDataTableCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-data-table-background-color:var(--c-data-table-background-color, var(--c-white));--_c-data-table-border-color:var(--c-data-table-border-color, var(--c-tertiary-200));--_c-data-table-background-color-hover:var(--c-data-table-background-color-hover, var(--c-primary-100));--_c-data-table-selected-row-background-color:var(--c-data-table-selected-row-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-highlighted-column-background-color:var(--c-data-table-highlighted-column-background-color, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-active:var(--c-data-table-active, var(--c-primary-600));--_c-data-table-checkbox-color:var(--c-data-table-checkbox-color, var(--c-primary-600));--_c-data-table-checkbox-color-active:var(--c-data-table-checkbox-color-active, var(--_c-data-table-checkbox-color));--_c-data-table-checkbox-background-color-hover:var(--c-data-table-checkbox-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-active-background-color:var(--c-data-table-pagination-button-active-background-color, var(--c-primary-600));--_c-data-table-pagination-button-active-background-color-hover:var(--c-data-table-pagination-button-active-background-color-hover, var(--c-primary-400));--_c-data-table-pagination-button-active-text-color:var(--c-data-table-pagination-button-active-text-color, var(--c-white));--_c-data-table-pagination-button-background-color:var(--c-data-table-pagination-button-background-color, var(--c-transparent));--_c-data-table-pagination-button-background-color-hover:var(--c-data-table-pagination-button-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-data-table-pagination-button-text-color:var(--c-data-table-pagination-button-text-color, var(--_c-data-table-pagination-button-active-background-color));--_c-data-table-menu-text-color:var(--c-data-table-menu-text-color, var(--c-text-system));--_c-data-table-menu-text-color-active:var(--c-data-table-menu-text-color-active, var(--c-primary-600));--_c-data-table-menu-background-color-hover:var(--c-data-table-menu-background-color-hover, var(--c-primary-200));--_c-data-table-menu-outline-color:var(--c-data-table-menu-outline-color, var(--c-primary-600));display:block;position:relative;width:100%;max-width:100%}:host c-checkbox{--c-checkbox-color:var(--_c-data-table-checkbox-color);--c-checkbox-color-active:var(--_c-data-table-checkbox-color-active);--c-checkbox-background-color-hover:var(--_c-data-table-checkbox-background-color-hover)}:host table,:host caption,:host tbody,:host tfoot,:host thead,:host tr,:host th,:host td{border:0;font-size:100%;font-family:inherit;margin:0;padding:0}:host table{background-color:var(--_c-data-table-background-color);border-collapse:collapse;border-spacing:0}:host .c-data-table{box-shadow:inset 0 0 0 1px var(--_c-data-table-border-color);width:100%}:host .c-data-table__wrapper{display:grid;max-width:100%}:host .c-data-table__table-wrapper{overflow:hidden}:host .c-data-table .children{display:flex;flex-wrap:wrap;gap:4px;width:100%}:host .c-data-table .children pre{font-family:inherit;white-space:pre-wrap}:host .c-data-table [data-justify=end],:host .c-data-table [data-align=end] .children{align-items:flex-end}:host .c-data-table [data-justify=start],:host .c-data-table [data-align=start] .children{align-items:flex-start}:host .c-data-table [data-justify=center],:host .c-data-table [data-align=center] .children{align-items:center}:host .c-data-table [data-align=end],:host .c-data-table [data-justify=end] .children{justify-content:flex-end}:host .c-data-table [data-align=start],:host .c-data-table [data-justify=start] .children{justify-content:flex-start}:host .c-data-table [data-align=center],:host .c-data-table [data-justify=center] .children{justify-content:center}:host .c-data-table th,:host .c-data-table td{font-weight:400}:host .c-data-table th>div,:host .c-data-table td>div{align-items:center;box-sizing:border-box;display:flex;line-height:normal;padding:12px;width:100%}:host .c-data-table th{font-size:14px;padding:4px}:host .c-data-table th.selection{width:56px}:host .c-data-table th.indicator{width:46px}:host .c-data-table th>div{border-radius:4px;flex-wrap:nowrap;gap:8px;height:48px;white-space:nowrap}:host .c-data-table th>div.sortable:hover{background-color:var(--_c-data-table-background-color-hover);color:var(--_c-data-table-active);cursor:pointer}:host .c-data-table th>div.sortable:hover svg{fill:var(--_c-data-table-active)}:host .c-data-table th>div.selection--heading{padding-left:8px;padding-right:0;margin-right:-8px}:host .c-data-table td{font-size:16px}:host .c-data-table td>div{align-items:flex-start;flex-direction:column;gap:8px;justify-content:center;min-height:56px;padding:12px}:host .c-data-table td>div.selection{margin-right:-4px;padding:7px 0 7px 12px}:host .c-data-table td>div c-tag{--c-tag-margin:0}:host .c-data-table td.loader{background-color:var(--_c-data-table-border-color);height:2px;position:relative}:host .c-data-table td.loader>div{height:2px;min-height:auto;padding:0}:host .c-data-table td.info>div{background-color:var(--c-white);border-top-width:0;border:1px solid var(--_c-data-table-border-color);justify-content:center}:host .c-data-table td svg{transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}:host .c-data-table thead{background-color:var(--_c-data-table-background-color);position:relative}:host .c-data-table thead.sticky{box-shadow:0 2px 0 0 var(--_c-data-table-border-color);position:sticky;top:0;z-index:3}:host .c-data-table thead .c-data-table__header-indicators{pointer-events:none}:host .c-data-table thead .c-data-table__header-indicators th>div{margin-top:-56px;display:flex;justify-items:space-between}:host .c-data-table thead .c-data-table__header-indicators c-icon-button{background-color:rgba(255, 255, 255, 0.75);border-radius:50%;pointer-events:all}:host .c-data-table tfoot{background-color:var(--_c-data-table-background-color)}:host .c-data-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tfoot td>div{align-items:center;flex-direction:row;justify-content:flex-start;min-height:48px}:host .c-data-table tfoot td c-pagination{--c-pagination-button-active-background-color:var(--_c-data-table-pagination-button-active-background-color);--c-pagination-button-active-background-color-hover:var(--_c-data-table-pagination-button-active-background-color-hover);--c-pagination-button-active-text-color:var(--_c-data-table-pagination-button-active-text-color);--c-pagination-button-background-color:var(--_c-data-table-pagination-button-background-color);--c-pagination-button-background-color-hover:var(--_c-data-table-pagination-button-background-color-hover);--c-pagination-button-text-color:var(--_c-data-table-pagination-button-text-color);--c-pagination-menu-text-color:var(--_c-data-table-menu-text-color);--c-pagination-menu-text-color-active:var(--_c-data-table-menu-text-color-active);--c-pagination-menu-background-color-hover:var(--_c-data-table-menu-background-color-hover);--c-pagination-menu-outline-color:var(--_c-data-table-menu-text-color);flex:1}:host .c-data-table tbody{}@supports (-webkit-hyphens: none){:host .c-data-table tbody tr{border-bottom:1px solid var(--_c-data-table-border-color)}}:host .c-data-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.actions{box-shadow:none}:host .c-data-table tbody tr.actions td>div{background-color:rgba(0, 0, 0, 0.015);height:auto}:host .c-data-table tbody tr.active{box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active);border-radius:6px 6px 0 0}:host .c-data-table tbody tr.active svg{transform:rotate(180deg)}:host .c-data-table tbody tr.active+.additional-data{border-radius:0 0 6px 6px;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.active.selected{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table tbody tr.selected{background-color:var(--_c-data-table-selected-row-background-color);box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table tbody tr.selected+.additional-data{box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 -2px 0 var(--_c-data-table-active)}:host .c-data-table__loader{background-color:var(--_c-data-table-border-color);height:2px;overflow:hidden;position:absolute;width:100%}:host .c-data-table .loading-bar{animation:loading 1s ease-in 0.5s infinite;background-color:var(--_c-data-table-active);height:100%;left:-50%;position:absolute;width:50%}@keyframes loading{0%{transform:translateX(0)}100%{transform:translateX(400%)}}:host .c-data-table .additional-data{display:none}:host .c-data-table .additional-data.active{display:table-row}:host .c-data-table .additional-data ul{list-style:none;margin:0;padding:0;width:100%}:host .c-data-table .additional-data ul li{padding:12px}:host .c-data-table .additional-data ul li:not(:last-child){box-shadow:inset 0 -1px 0 0 var(--_c-data-table-border-color)}:host .c-data-table .additional-data ul li span.label{color:var(--_c-data-table-active);font-weight:600}:host .c-data-table .additional-data ul li .title{display:flex;gap:8px}:host .c-data-table .additional-data ul li .title+.children{margin-top:8px}:host .c-data-table--scrollable{position:relative}:host .c-data-table--hoverable tbody tr:not(.additional-data){cursor:pointer}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover{background-color:var(--_c-data-table-background-color-hover);border-radius:6px;box-shadow:inset 0 0 0 2px var(--_c-data-table-active);overflow:hidden}:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.text,:host .c-data-table--hoverable tbody tr:not(.additional-data):hover c-button.ghost{--c-button-hover:var(--c-primary-200)}:host .c-data-table--hoverable tbody tr:not(.additional-data).active:hover{border-radius:6px 6px 0 0;box-shadow:inset 2px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected.active:hover{border-radius:6px 6px 0 0;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset -2px 0 0 var(--_c-data-table-active), inset 0 2px 0 var(--_c-data-table-active)}:host .c-data-table--hoverable tbody tr:not(.additional-data).selected:hover{border-radius:6px;box-shadow:inset 4px 0 0 var(--_c-data-table-active), inset 0 0 0 2px var(--_c-data-table-active)}:host .sorted-column{background-color:var(--_c-data-table-highlighted-column-background-color)}:host([horizontal-scrolling]){overflow-x:scroll}";
5
+ const CDataTableStyle0 = cDataTableCss;
5
6
 
6
7
  var __rest = (undefined && undefined.__rest) || function (s, e) {
7
- var t = {};
8
- for (var p in s)
9
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10
- t[p] = s[p];
11
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
12
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
13
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
14
- t[p[i]] = s[p[i]];
15
- }
16
- return t;
8
+ var t = {};
9
+ for (var p in s)
10
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
11
+ t[p] = s[p];
12
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
13
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15
+ t[p[i]] = s[p[i]];
16
+ }
17
+ return t;
17
18
  };
18
19
  const CDataTable = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- this.paginate = createEvent(this, "paginate", 7);
22
- this.expand = createEvent(this, "expand", 7);
23
- this.sort = createEvent(this, "sort", 7);
24
- this.selection = createEvent(this, "selection", 7);
25
- this._debounce = null;
26
- this._extraHeaders = [];
27
- this._isValidated = false;
28
- this._isVisible = false;
29
- this._sortedData = [];
30
- this.data = [];
31
- this.externalData = false;
32
- this.headers = [];
33
- this.hideFooter = false;
34
- this.footerOptions = {
35
- hideDetails: false,
36
- simple: false,
37
- hideRange: false,
38
- size: 'default',
39
- };
40
- this.loading = false;
41
- this.loadingText = 'Loading data';
42
- this.noDataText = 'No data';
43
- this.pagination = undefined;
44
- this.selectable = false;
45
- this.singleSelection = false;
46
- this.selectionProperty = null;
47
- this.singleExpansion = false;
48
- this.sortBy = null;
49
- this.sortDirection = null;
50
- this.stickyHeader = false;
51
- this.horizontalScrolling = false;
52
- this._activeRows = [];
53
- this._data = [];
54
- this._isIndeterminate = false;
55
- this._isPaginationSimple = false;
56
- this._selections = [];
57
- this.hasOverflow = false;
58
- this.hiddenHeaders = [];
59
- this.initiallyHiddenHeaders = [];
60
- this.forceRender = false;
61
- this.breakpoints = [];
62
- this.markedFooterWidth = 0;
63
- this.parentWidth = 0;
64
- this.firstCellHidden = false;
65
- this.lastCellHidden = false;
66
- }
67
- onHiddenHeaderChange() {
68
- this._getData();
69
- }
70
- onDataChange() {
71
- this._getData();
72
- this._handleInitialHeaders();
73
- }
74
- onHeaderChange() {
75
- this._handleInitialHeaders();
76
- }
77
- onSingleSelectionChange() {
78
- this.clearSelections();
79
- }
80
- onLoadingChange(loading) {
81
- if (!loading) {
82
- this._setIndeterminateStatus();
83
- }
84
- }
85
- async clearSelections() {
86
- this._selections = [];
87
- this._emitChange();
88
- this._setIndeterminateStatus();
89
- }
90
- async getData() {
91
- return this._sortedData;
92
- }
93
- componentWillLoad() {
94
- var _a, _b;
95
- this.sortBy = (_a = this.sortBy) !== null && _a !== void 0 ? _a : this.headers[0].key;
96
- this.sortDirection = (_b = this.sortDirection) !== null && _b !== void 0 ? _b : 'asc';
97
- this._getData();
98
- this._handleInitialHeaders();
99
- }
100
- componentDidLoad() {
101
- this._handleResize();
102
- if (!this.horizontalScrolling) {
103
- this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
104
- if (entry.isIntersecting) {
105
- this._handleResponsiveHeaders();
106
- this._isVisible = true;
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ this.paginate = createEvent(this, "paginate", 7);
23
+ this.expand = createEvent(this, "expand", 7);
24
+ this.sort = createEvent(this, "sort", 7);
25
+ this.selection = createEvent(this, "selection", 7);
26
+ this._debounce = null;
27
+ this._extraHeaders = [];
28
+ this._isValidated = false;
29
+ this._isVisible = false;
30
+ this._sortedData = [];
31
+ this.data = [];
32
+ this.externalData = false;
33
+ this.headers = [];
34
+ this.hideFooter = false;
35
+ this.footerOptions = {
36
+ hideDetails: false,
37
+ simple: false,
38
+ hideRange: false,
39
+ size: 'default',
40
+ };
41
+ this.loading = false;
42
+ this.loadingText = 'Loading data';
43
+ this.noDataText = 'No data';
44
+ this.pagination = undefined;
45
+ this.selectable = false;
46
+ this.singleSelection = false;
47
+ this.selectionProperty = null;
48
+ this.singleExpansion = false;
49
+ this.sortBy = null;
50
+ this.sortDirection = null;
51
+ this.stickyHeader = false;
52
+ this.horizontalScrolling = false;
53
+ this._activeRows = [];
54
+ this._data = [];
55
+ this._isIndeterminate = false;
56
+ this._isPaginationSimple = false;
57
+ this._selections = [];
58
+ this.hasOverflow = false;
59
+ this.hiddenHeaders = [];
60
+ this.initiallyHiddenHeaders = [];
61
+ this.forceRender = false;
62
+ this.breakpoints = [];
63
+ this.markedFooterWidth = 0;
64
+ this.parentWidth = 0;
65
+ this.firstCellHidden = false;
66
+ this.lastCellHidden = false;
67
+ }
68
+ onHiddenHeaderChange() {
69
+ this._getData();
70
+ }
71
+ onDataChange() {
72
+ this._getData();
73
+ this._handleInitialHeaders();
74
+ }
75
+ onHeaderChange() {
76
+ this._handleInitialHeaders();
77
+ }
78
+ onSingleSelectionChange() {
79
+ this.clearSelections();
80
+ }
81
+ onLoadingChange(loading) {
82
+ if (!loading) {
83
+ this._setIndeterminateStatus();
107
84
  }
108
- });
109
- this._resizeObserver = new ResizeObserver(() => {
85
+ }
86
+ async clearSelections() {
87
+ this._selections = [];
88
+ this._emitChange();
89
+ this._setIndeterminateStatus();
90
+ }
91
+ async getData() {
92
+ return this._sortedData;
93
+ }
94
+ componentWillLoad() {
95
+ var _a, _b;
96
+ this.sortBy = (_a = this.sortBy) !== null && _a !== void 0 ? _a : this.headers[0].key;
97
+ this.sortDirection = (_b = this.sortDirection) !== null && _b !== void 0 ? _b : 'asc';
98
+ this._getData();
99
+ this._handleInitialHeaders();
100
+ }
101
+ componentDidLoad() {
110
102
  this._handleResize();
111
- });
112
- this._rootIntersectionObserver.observe(this.element);
113
- }
114
- else {
115
- const [firstCell] = this._headerKeys;
116
- const lastCell = this._headerKeys[this._headerKeys.length - 1];
117
- this._firstCellIntersectionObserver = new IntersectionObserver(([entry]) => {
118
- this.firstCellHidden = !entry.isIntersecting;
119
- }, { threshold: 1, rootMargin: '16px', root: this.element });
120
- this._lastCellIntersectionObserver = new IntersectionObserver(([entry]) => {
121
- this.lastCellHidden = !entry.isIntersecting;
122
- }, { threshold: 1, rootMargin: '16px', root: this.element });
123
- this._resizeObserver = new ResizeObserver(() => {
124
- this._handleScrollWidth();
125
- });
126
- this._firstCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${firstCell}"]`));
127
- this._lastCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${lastCell}"]`));
128
- }
129
- this._resizeObserver.observe(this.element);
130
- }
131
- disconnectedCallback() {
132
- var _a, _b, _c, _d;
133
- (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
134
- (_b = this._rootIntersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
135
- (_c = this._firstCellIntersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
136
- (_d = this._lastCellIntersectionObserver) === null || _d === void 0 ? void 0 : _d.disconnect();
137
- }
138
- _handleInitialHeaders() {
139
- this.initiallyHiddenHeaders = this.headers
140
- .filter((header) => !!header.hidden)
141
- .map((header) => header.key);
142
- this.hiddenHeaders = [
143
- ...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
144
- ];
145
- }
146
- _handleHeaderVisibility(header, rootWidth, x) {
147
- var _a;
148
- const index = this._headers.findIndex((h) => h.key === header.dataset.id);
149
- const position = header.getBoundingClientRect();
150
- const isFullyVisible = position.right - x <= rootWidth;
151
- const isLastVisibleHeader = header.dataset.id === Array.from(this._headerRefs.keys()).at(0);
152
- const isPinned = (_a = this._headers[index]) === null || _a === void 0 ? void 0 : _a.pinned;
153
- if (!isFullyVisible && isPinned && index >= 1) {
154
- const nextUnpinnedHeader = Array.from(this._headerRefs.values())
155
- .reverse()
156
- .find((hdr) => {
103
+ if (!this.horizontalScrolling) {
104
+ this._rootIntersectionObserver = new IntersectionObserver(([entry]) => {
105
+ if (entry.isIntersecting) {
106
+ this._handleResponsiveHeaders();
107
+ this._isVisible = true;
108
+ }
109
+ });
110
+ this._resizeObserver = new ResizeObserver(() => {
111
+ this._handleResize();
112
+ });
113
+ this._rootIntersectionObserver.observe(this.element);
114
+ }
115
+ else {
116
+ const [firstCell] = this._headerKeys;
117
+ const lastCell = this._headerKeys[this._headerKeys.length - 1];
118
+ this._firstCellIntersectionObserver = new IntersectionObserver(([entry]) => {
119
+ this.firstCellHidden = !entry.isIntersecting;
120
+ }, { threshold: 1, rootMargin: '16px', root: this.element });
121
+ this._lastCellIntersectionObserver = new IntersectionObserver(([entry]) => {
122
+ this.lastCellHidden = !entry.isIntersecting;
123
+ }, { threshold: 1, rootMargin: '16px', root: this.element });
124
+ this._resizeObserver = new ResizeObserver(() => {
125
+ this._handleScrollWidth();
126
+ });
127
+ this._firstCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${firstCell}"]`));
128
+ this._lastCellIntersectionObserver.observe(this._tableElement.querySelector(`[data-id="${lastCell}"]`));
129
+ }
130
+ this._resizeObserver.observe(this.element);
131
+ }
132
+ disconnectedCallback() {
133
+ var _a, _b, _c, _d;
134
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
135
+ (_b = this._rootIntersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
136
+ (_c = this._firstCellIntersectionObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
137
+ (_d = this._lastCellIntersectionObserver) === null || _d === void 0 ? void 0 : _d.disconnect();
138
+ }
139
+ _handleInitialHeaders() {
140
+ this.initiallyHiddenHeaders = this.headers
141
+ .filter((header) => !!header.hidden)
142
+ .map((header) => header.key);
143
+ this.hiddenHeaders = [
144
+ ...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
145
+ ];
146
+ }
147
+ _handleHeaderVisibility(header, rootWidth, x) {
157
148
  var _a;
158
- if (!hdr)
159
- return false;
160
- return !((_a = this._headers.find((h) => h.key === hdr.dataset.id)) === null || _a === void 0 ? void 0 : _a.pinned);
161
- });
162
- this.hiddenHeaders = [
163
- ...new Set([
164
- ...this.initiallyHiddenHeaders,
165
- ...this.hiddenHeaders,
166
- (nextUnpinnedHeader || header).dataset.id,
167
- ]),
168
- ];
169
- return;
170
- }
171
- if (!isFullyVisible && !isLastVisibleHeader) {
172
- this.hiddenHeaders = [
173
- ...new Set([
174
- ...this.initiallyHiddenHeaders,
175
- ...this.hiddenHeaders,
176
- header.dataset.id,
177
- ]),
178
- ];
179
- }
180
- }
181
- _handleResponsiveHeaders() {
182
- const { width: rootWidth, x } = this.element.getBoundingClientRect();
183
- if (this._debounce !== null) {
184
- clearTimeout(this._debounce);
185
- this._debounce = null;
186
- }
187
- const { width: tableWidth } = this._tableElement.getBoundingClientRect();
188
- if (rootWidth < tableWidth) {
189
- this.breakpoints = [...new Set([...this.breakpoints, tableWidth])];
190
- setTimeout(() => {
191
- for (const header of this._headerRefs.values()) {
192
- if (header) {
193
- this._handleHeaderVisibility(header, rootWidth, x);
194
- }
149
+ const index = this._headers.findIndex((h) => h.key === header.dataset.id);
150
+ const position = header.getBoundingClientRect();
151
+ const isFullyVisible = position.right - x <= rootWidth;
152
+ const isLastVisibleHeader = header.dataset.id === Array.from(this._headerRefs.keys()).at(0);
153
+ const isPinned = (_a = this._headers[index]) === null || _a === void 0 ? void 0 : _a.pinned;
154
+ if (!isFullyVisible && isPinned && index >= 1) {
155
+ const nextUnpinnedHeader = Array.from(this._headerRefs.values())
156
+ .reverse()
157
+ .find((hdr) => {
158
+ var _a;
159
+ if (!hdr)
160
+ return false;
161
+ return !((_a = this._headers.find((h) => h.key === hdr.dataset.id)) === null || _a === void 0 ? void 0 : _a.pinned);
162
+ });
163
+ this.hiddenHeaders = [
164
+ ...new Set([
165
+ ...this.initiallyHiddenHeaders,
166
+ ...this.hiddenHeaders,
167
+ (nextUnpinnedHeader || header).dataset.id,
168
+ ]),
169
+ ];
170
+ return;
171
+ }
172
+ if (!isFullyVisible && !isLastVisibleHeader) {
173
+ this.hiddenHeaders = [
174
+ ...new Set([
175
+ ...this.initiallyHiddenHeaders,
176
+ ...this.hiddenHeaders,
177
+ header.dataset.id,
178
+ ]),
179
+ ];
180
+ }
181
+ }
182
+ _handleResponsiveHeaders() {
183
+ const { width: rootWidth, x } = this.element.getBoundingClientRect();
184
+ if (this._debounce !== null) {
185
+ clearTimeout(this._debounce);
186
+ this._debounce = null;
187
+ }
188
+ const { width: tableWidth } = this._tableElement.getBoundingClientRect();
189
+ if (rootWidth < tableWidth) {
190
+ this.breakpoints = [...new Set([...this.breakpoints, tableWidth])];
191
+ setTimeout(() => {
192
+ for (const header of this._headerRefs.values()) {
193
+ if (header) {
194
+ this._handleHeaderVisibility(header, rootWidth, x);
195
+ }
196
+ }
197
+ this._debounce = setTimeout(() => {
198
+ var _a, _b;
199
+ const footerWidth = ((_b = (_a = this._footerElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || 0;
200
+ if (rootWidth < footerWidth) {
201
+ this.markedFooterWidth = footerWidth;
202
+ this._isPaginationSimple = true;
203
+ }
204
+ }, 200);
205
+ }, 0);
206
+ }
207
+ else if (this.breakpoints.length > 0 &&
208
+ tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
209
+ this.breakpoints.pop();
210
+ const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
211
+ if (!!displayHeader) {
212
+ const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
213
+ this.hiddenHeaders.splice(headerIndex, 1);
214
+ this.hiddenHeaders = [
215
+ ...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
216
+ ];
217
+ }
195
218
  }
196
219
  this._debounce = setTimeout(() => {
197
- var _a, _b;
198
- const footerWidth = ((_b = (_a = this._footerElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || 0;
199
- if (rootWidth < footerWidth) {
200
- this.markedFooterWidth = footerWidth;
201
- this._isPaginationSimple = true;
202
- }
220
+ if (rootWidth >= this.markedFooterWidth && this.markedFooterWidth > 0) {
221
+ this._isPaginationSimple = false;
222
+ }
203
223
  }, 200);
204
- }, 0);
205
- }
206
- else if (this.breakpoints.length > 0 &&
207
- tableWidth >= this.breakpoints[this.breakpoints.length - 1]) {
208
- this.breakpoints.pop();
209
- const displayHeader = this.headers.find((header) => this.hiddenHeaders.includes(header.key));
210
- if (!!displayHeader) {
211
- const headerIndex = this.hiddenHeaders.indexOf(displayHeader.key);
212
- this.hiddenHeaders.splice(headerIndex, 1);
213
- this.hiddenHeaders = [
214
- ...new Set([...this.hiddenHeaders, ...this.initiallyHiddenHeaders]),
215
- ];
216
- }
217
224
  }
218
- this._debounce = setTimeout(() => {
219
- if (rootWidth >= this.markedFooterWidth && this.markedFooterWidth > 0) {
220
- this._isPaginationSimple = false;
221
- }
222
- }, 200);
223
- }
224
- _addHeaderRef(key, el) {
225
- if (!this._headerRefs) {
226
- this._headerRefs = new Map([[key, el]]);
227
- return;
228
- }
229
- this._headerRefs.set(key, el);
230
- }
231
- _getData() {
232
- this._extraHeaders = this.headers.filter((header) => { var _a; return !Object.keys(((_a = this.data) === null || _a === void 0 ? void 0 : _a[0]) || {}).includes(header.key); });
233
- const extraCells = this._extraHeaders.reduce((cells, header) => (Object.assign(Object.assign({}, cells), { [header.key]: {
234
- value: null,
235
- } })), {});
236
- const items = this.data
237
- .map((row) => (Object.assign(Object.assign({}, row), extraCells)))
238
- .reduce((data, cell) => {
239
- const item = {
240
- _hiddenData: [],
241
- };
242
- Object.keys(cell).forEach((key) => {
243
- item[key] = cell[key];
244
- });
245
- this.hiddenHeaders.forEach((header) => {
246
- const cellData = this.headers.find((h) => h.key === header);
247
- item._hiddenData.push({
248
- id: cellData === null || cellData === void 0 ? void 0 : cellData.key,
249
- key: cellData === null || cellData === void 0 ? void 0 : cellData.value,
250
- value: cell[header],
225
+ _addHeaderRef(key, el) {
226
+ if (!this._headerRefs) {
227
+ this._headerRefs = new Map([[key, el]]);
228
+ return;
229
+ }
230
+ this._headerRefs.set(key, el);
231
+ }
232
+ _getData() {
233
+ this._extraHeaders = this.headers.filter((header) => { var _a; return !Object.keys(((_a = this.data) === null || _a === void 0 ? void 0 : _a[0]) || {}).includes(header.key); });
234
+ const extraCells = this._extraHeaders.reduce((cells, header) => (Object.assign(Object.assign({}, cells), { [header.key]: {
235
+ value: null,
236
+ } })), {});
237
+ const items = this.data
238
+ .map((row) => (Object.assign(Object.assign({}, row), extraCells)))
239
+ .reduce((data, cell) => {
240
+ const item = {
241
+ _hiddenData: [],
242
+ };
243
+ Object.keys(cell).forEach((key) => {
244
+ item[key] = cell[key];
245
+ });
246
+ this.hiddenHeaders.forEach((header) => {
247
+ const cellData = this.headers.find((h) => h.key === header);
248
+ item._hiddenData.push({
249
+ id: cellData === null || cellData === void 0 ? void 0 : cellData.key,
250
+ key: cellData === null || cellData === void 0 ? void 0 : cellData.value,
251
+ value: cell[header],
252
+ });
253
+ });
254
+ data.push(item);
255
+ return data;
256
+ }, []);
257
+ this._data = this._sortData(items);
258
+ this.pagination = Object.assign(Object.assign({}, this.pagination), { itemCount: this.data.length });
259
+ this._validateProps(this._data[0]);
260
+ this._handleScrollWidth();
261
+ requestAnimationFrame(() => {
262
+ this._handleResize();
251
263
  });
252
- });
253
- data.push(item);
254
- return data;
255
- }, []);
256
- this._data = this._sortData(items);
257
- this.pagination = Object.assign(Object.assign({}, this.pagination), { itemCount: this.data.length });
258
- this._validateProps(this._data[0]);
259
- this._handleScrollWidth();
260
- requestAnimationFrame(() => {
261
- this._handleResize();
262
- });
263
- }
264
- _getSelectionValue(row, index) {
265
- var _a;
266
- return !!this.selectionProperty
267
- ? ((_a = row[this.selectionProperty]) === null || _a === void 0 ? void 0 : _a.value) || index
268
- : index;
269
- }
270
- get _headers() {
271
- return this.headers
272
- .map((header) => (Object.assign(Object.assign({}, header), { pinned: !!header.pinned })))
273
- .filter((header) => !this.hiddenHeaders.includes(header.key) && !header.hidden);
274
- }
275
- get _headerKeys() {
276
- return this._headers.map((header) => header.key);
277
- }
278
- get _hasHiddenData() {
279
- return !!this.hiddenHeaders.length;
280
- }
281
- _emitChange() {
282
- this.selection.emit(this._selections);
283
- }
284
- _setIndeterminateStatus() {
285
- requestAnimationFrame(() => {
286
- this._isIndeterminate = this._isPageIndeterminate();
287
- this._refresh();
288
- });
289
- }
290
- _sortData(data) {
291
- var _a, _b, _c, _d;
292
- if (!this.sortBy || this.externalData)
293
- return data;
294
- const sorted = data.sort((a, b) => {
295
- var _a, _b, _c, _d;
296
- const valueA = (_b = (_a = a[this.sortBy]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : null;
297
- const valueB = (_d = (_c = b[this.sortBy]) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : null;
298
- if (valueA === null && valueB === null)
299
- return 0;
300
- if (valueA === null)
301
- return this.sortDirection === 'asc' ? 1 : -1;
302
- if (valueB === null)
303
- return this.sortDirection === 'asc' ? -1 : 1;
304
- if (typeof valueA === 'string' && typeof valueB === 'string') {
305
- if (this.sortDirection === 'asc') {
306
- return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
264
+ }
265
+ _getSelectionValue(row, index) {
266
+ var _a;
267
+ return !!this.selectionProperty
268
+ ? ((_a = row[this.selectionProperty]) === null || _a === void 0 ? void 0 : _a.value) || index
269
+ : index;
270
+ }
271
+ get _headers() {
272
+ return this.headers
273
+ .map((header) => (Object.assign(Object.assign({}, header), { pinned: !!header.pinned })))
274
+ .filter((header) => !this.hiddenHeaders.includes(header.key) && !header.hidden);
275
+ }
276
+ get _headerKeys() {
277
+ return this._headers.map((header) => header.key);
278
+ }
279
+ get _hasHiddenData() {
280
+ return !!this.hiddenHeaders.length;
281
+ }
282
+ _emitChange() {
283
+ this.selection.emit(this._selections);
284
+ }
285
+ _setIndeterminateStatus() {
286
+ requestAnimationFrame(() => {
287
+ this._isIndeterminate = this._isPageIndeterminate();
288
+ this._refresh();
289
+ });
290
+ }
291
+ _sortData(data) {
292
+ var _a, _b, _c, _d;
293
+ if (!this.sortBy || this.externalData)
294
+ return data;
295
+ const sorted = data.sort((a, b) => {
296
+ var _a, _b, _c, _d;
297
+ const valueA = (_b = (_a = a[this.sortBy]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : null;
298
+ const valueB = (_d = (_c = b[this.sortBy]) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : null;
299
+ if (valueA === null && valueB === null)
300
+ return 0;
301
+ if (valueA === null)
302
+ return this.sortDirection === 'asc' ? 1 : -1;
303
+ if (valueB === null)
304
+ return this.sortDirection === 'asc' ? -1 : 1;
305
+ if (typeof valueA === 'string' && typeof valueB === 'string') {
306
+ if (this.sortDirection === 'asc') {
307
+ return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
308
+ }
309
+ return valueB.toLowerCase().localeCompare(valueA.toLowerCase());
310
+ }
311
+ if (typeof valueA === 'number' && typeof valueB === 'number') {
312
+ if (this.sortDirection === 'asc') {
313
+ return valueA - valueB;
314
+ }
315
+ return valueB - valueA;
316
+ }
317
+ return 0;
318
+ });
319
+ this._sortedData = sorted.map((row) => {
320
+ const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
321
+ const hiddenData = _hiddenData.reduce((items, item) => {
322
+ var _a;
323
+ items[item.id] =
324
+ item.value.plainTextValue ||
325
+ ((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
326
+ item.value.value;
327
+ return items;
328
+ }, {});
329
+ const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
330
+ var _a;
331
+ items[key] =
332
+ item.plainTextValue ||
333
+ ((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
334
+ item.value;
335
+ return items;
336
+ }, {});
337
+ return Object.assign(Object.assign({}, rowData), hiddenData);
338
+ });
339
+ return !this.hideFooter
340
+ ? sorted.slice((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.startFrom) !== null && _b !== void 0 ? _b : 0, ((_d = (_c = this.pagination) === null || _c === void 0 ? void 0 : _c.endTo) !== null && _d !== void 0 ? _d : this.data.length) + 1)
341
+ : sorted;
342
+ }
343
+ _handleScrollWidth() {
344
+ this.parentWidth = this.element.getBoundingClientRect().width;
345
+ }
346
+ _handleResize() {
347
+ if (this._isVisible) {
348
+ this._handleResponsiveHeaders();
307
349
  }
308
- return valueB.toLowerCase().localeCompare(valueA.toLowerCase());
309
- }
310
- if (typeof valueA === 'number' && typeof valueB === 'number') {
311
- if (this.sortDirection === 'asc') {
312
- return valueA - valueB;
350
+ }
351
+ _getIndex(index) {
352
+ let realIndex = index;
353
+ if (!this.selectionProperty &&
354
+ !!this.pagination &&
355
+ typeof realIndex === 'number') {
356
+ realIndex += this.pagination.startFrom;
357
+ if (this.sortDirection === 'desc') {
358
+ realIndex = this.pagination.itemCount - 1 - realIndex;
359
+ }
313
360
  }
314
- return valueB - valueA;
315
- }
316
- return 0;
317
- });
318
- this._sortedData = sorted.map((row) => {
319
- const { _hiddenData } = row, _rowData = __rest(row, ["_hiddenData"]);
320
- const hiddenData = _hiddenData.reduce((items, item) => {
321
- var _a;
322
- items[item.id] =
323
- item.value.plainTextValue ||
324
- ((_a = item.value.formattedValue) === null || _a === void 0 ? void 0 : _a.trim()) ||
325
- item.value.value;
326
- return items;
327
- }, {});
328
- const rowData = Object.entries(_rowData).reduce((items, [key, item]) => {
329
- var _a;
330
- items[key] =
331
- item.plainTextValue ||
332
- ((_a = item.formattedValue) === null || _a === void 0 ? void 0 : _a.toString().trim()) ||
333
- item.value;
334
- return items;
335
- }, {});
336
- return Object.assign(Object.assign({}, rowData), hiddenData);
337
- });
338
- return !this.hideFooter
339
- ? sorted.slice((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.startFrom) !== null && _b !== void 0 ? _b : 0, ((_d = (_c = this.pagination) === null || _c === void 0 ? void 0 : _c.endTo) !== null && _d !== void 0 ? _d : this.data.length) + 1)
340
- : sorted;
341
- }
342
- _handleScrollWidth() {
343
- this.parentWidth = this.element.getBoundingClientRect().width;
344
- }
345
- _handleResize() {
346
- if (this._isVisible) {
347
- this._handleResponsiveHeaders();
348
- }
349
- }
350
- _getIndex(index) {
351
- let realIndex = index;
352
- if (!this.selectionProperty &&
353
- !!this.pagination &&
354
- typeof realIndex === 'number') {
355
- realIndex += this.pagination.startFrom;
356
- if (this.sortDirection === 'desc') {
357
- realIndex = this.pagination.itemCount - 1 - realIndex;
358
- }
359
- }
360
- return realIndex;
361
- }
362
- _getSelectionsForPage() {
363
- return this._selections.filter((selection) => this._data
364
- .map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
365
- .includes(selection));
366
- }
367
- _hasSelectionsOnPage() {
368
- return this._getSelectionsForPage().length > 0;
369
- }
370
- _isPageIndeterminate() {
371
- const selectionsInPage = this._getSelectionsForPage();
372
- return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
373
- }
374
- _onHeadingSelection(event) {
375
- event === null || event === void 0 ? void 0 : event.stopPropagation();
376
- event === null || event === void 0 ? void 0 : event.preventDefault();
377
- if (event instanceof KeyboardEvent &&
378
- event.type === 'keyup' &&
379
- event.key !== ' ') {
380
- return;
381
- }
382
- if (this._debounce !== null) {
383
- clearTimeout(this._debounce);
384
- this._debounce = null;
385
- }
386
- this._debounce = setTimeout(() => {
387
- if (this._data.length === this._getSelectionsForPage().length) {
388
- this._selections = [
389
- ...this._selections.filter((selection) => !this._data
361
+ return realIndex;
362
+ }
363
+ _getSelectionsForPage() {
364
+ return this._selections.filter((selection) => this._data
390
365
  .map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
391
- .includes(selection)),
392
- ];
366
+ .includes(selection));
367
+ }
368
+ _hasSelectionsOnPage() {
369
+ return this._getSelectionsForPage().length > 0;
370
+ }
371
+ _isPageIndeterminate() {
372
+ const selectionsInPage = this._getSelectionsForPage();
373
+ return (this._hasSelectionsOnPage() && selectionsInPage.length < this._data.length);
374
+ }
375
+ _onHeadingSelection(event) {
376
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
377
+ event === null || event === void 0 ? void 0 : event.preventDefault();
378
+ if (event instanceof KeyboardEvent &&
379
+ event.type === 'keyup' &&
380
+ event.key !== ' ') {
381
+ return;
382
+ }
383
+ if (this._debounce !== null) {
384
+ clearTimeout(this._debounce);
385
+ this._debounce = null;
386
+ }
387
+ this._debounce = setTimeout(() => {
388
+ if (this._data.length === this._getSelectionsForPage().length) {
389
+ this._selections = [
390
+ ...this._selections.filter((selection) => !this._data
391
+ .map((row, index) => this._getSelectionValue(row, this._getIndex(index)))
392
+ .includes(selection)),
393
+ ];
394
+ this._setIndeterminateStatus();
395
+ this._emitChange();
396
+ return;
397
+ }
398
+ this._selections = [
399
+ ...new Set([
400
+ ...this._selections,
401
+ ...this._data.map((row, index) => this._getSelectionValue(row, this._getIndex(index))),
402
+ ]),
403
+ ];
404
+ this._setIndeterminateStatus();
405
+ this._emitChange();
406
+ }, 200);
407
+ }
408
+ _onPaginationChange(event) {
409
+ if (this.externalData) {
410
+ this.paginate.emit(event.detail);
411
+ return;
412
+ }
413
+ this.pagination = Object.assign(Object.assign({}, this.pagination), event.detail);
393
414
  this._setIndeterminateStatus();
415
+ this._getData();
416
+ }
417
+ _onSelection(value) {
418
+ if (this.singleSelection) {
419
+ this._selections = [value];
420
+ this._emitChange();
421
+ this._refresh();
422
+ return;
423
+ }
424
+ if (this._selections.includes(value)) {
425
+ this._selections = this._selections.filter((selection) => selection !== value);
426
+ }
427
+ else {
428
+ this._selections = [...this._selections, value];
429
+ }
394
430
  this._emitChange();
395
- return;
396
- }
397
- this._selections = [
398
- ...new Set([
399
- ...this._selections,
400
- ...this._data.map((row, index) => this._getSelectionValue(row, this._getIndex(index))),
401
- ]),
402
- ];
403
- this._setIndeterminateStatus();
404
- this._emitChange();
405
- }, 200);
406
- }
407
- _onPaginationChange(event) {
408
- if (this.externalData) {
409
- this.paginate.emit(event.detail);
410
- return;
411
- }
412
- this.pagination = Object.assign(Object.assign({}, this.pagination), event.detail);
413
- this._setIndeterminateStatus();
414
- this._getData();
415
- }
416
- _onSelection(value) {
417
- if (this.singleSelection) {
418
- this._selections = [value];
419
- this._emitChange();
420
- this._refresh();
421
- return;
422
- }
423
- if (this._selections.includes(value)) {
424
- this._selections = this._selections.filter((selection) => selection !== value);
425
- }
426
- else {
427
- this._selections = [...this._selections, value];
428
- }
429
- this._emitChange();
430
- this._setIndeterminateStatus();
431
- }
432
- _onSort(key) {
433
- if (this.sortBy === key) {
434
- this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
435
- }
436
- else {
437
- this.sortDirection = 'asc';
438
- }
439
- this.sortBy = key;
440
- this.sort.emit({ sortBy: this.sortBy, direction: this.sortDirection });
441
- this._getData();
442
- this._setIndeterminateStatus();
443
- this._refresh();
444
- }
445
- _onToggleAdditionalData(event, value, row) {
446
- if (!this._hasHiddenData ||
447
- event.target.tagName === 'C-CHECKBOX')
448
- return;
449
- const isActive = this.singleExpansion
450
- ? this._activeRows[0] === value
451
- : this._activeRows.includes(value);
452
- const { _hiddenData } = row, data = __rest(row, ["_hiddenData"]);
453
- Object.keys(data).forEach((key) => {
454
- data[key] = data[key].value;
455
- });
456
- _hiddenData.forEach((hiddenRow) => {
457
- data[hiddenRow.id] = hiddenRow.value.value;
458
- });
459
- this.expand.emit({
460
- active: !isActive,
461
- row: data,
462
- });
463
- if (this.singleExpansion) {
464
- this._activeRows = isActive ? [] : [value];
465
- return;
466
- }
467
- if (isActive) {
468
- this._activeRows = this._activeRows.filter((i) => i !== value);
469
- return;
470
- }
471
- this._activeRows = [...this._activeRows, value];
472
- }
473
- _handleKeyUp(event, value, row) {
474
- event.preventDefault();
475
- if (event.key === 'Enter') {
476
- this._onToggleAdditionalData(event, value, row);
477
- }
478
- }
479
- _refresh() {
480
- this.forceRender = !this.forceRender;
481
- }
482
- _renderAdditioanlDataRow(rowIndex, rowData = {}) {
483
- return (this._hasHiddenData && (h("tr", { class: {
484
- 'additional-data': true,
485
- active: this._activeRows.includes(rowIndex),
486
- } }, h("td", { colSpan: 100 }, h("div", null, h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
487
- }
488
- _renderCellData(key, options, colIndex, rowIndex) {
489
- var _a;
490
- const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
491
- const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
492
- const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
493
- const params = (component === null || component === void 0 ? void 0 : component.params) || {};
494
- if (injectValue) {
495
- params.value = options.value;
496
- }
497
- return !!Tag ? (h(Tag, Object.assign({}, params, { onClick: (event) => {
431
+ this._setIndeterminateStatus();
432
+ }
433
+ _onSort(key) {
434
+ if (this.sortBy === key) {
435
+ this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
436
+ }
437
+ else {
438
+ this.sortDirection = 'asc';
439
+ }
440
+ this.sortBy = key;
441
+ this.sort.emit({ sortBy: this.sortBy, direction: this.sortDirection });
442
+ this._getData();
443
+ this._setIndeterminateStatus();
444
+ this._refresh();
445
+ }
446
+ _onToggleAdditionalData(event, value, row) {
447
+ if (!this._hasHiddenData ||
448
+ event.target.tagName === 'C-CHECKBOX')
449
+ return;
450
+ const isActive = this.singleExpansion
451
+ ? this._activeRows[0] === value
452
+ : this._activeRows.includes(value);
453
+ const { _hiddenData } = row, data = __rest(row, ["_hiddenData"]);
454
+ Object.keys(data).forEach((key) => {
455
+ data[key] = data[key].value;
456
+ });
457
+ _hiddenData.forEach((hiddenRow) => {
458
+ data[hiddenRow.id] = hiddenRow.value.value;
459
+ });
460
+ this.expand.emit({
461
+ active: !isActive,
462
+ row: data,
463
+ });
464
+ if (this.singleExpansion) {
465
+ this._activeRows = isActive ? [] : [value];
466
+ return;
467
+ }
468
+ if (isActive) {
469
+ this._activeRows = this._activeRows.filter((i) => i !== value);
470
+ return;
471
+ }
472
+ this._activeRows = [...this._activeRows, value];
473
+ }
474
+ _handleKeyUp(event, value, row) {
475
+ event.preventDefault();
476
+ if (event.key === 'Enter') {
477
+ this._onToggleAdditionalData(event, value, row);
478
+ }
479
+ }
480
+ _refresh() {
481
+ this.forceRender = !this.forceRender;
482
+ }
483
+ _renderAdditioanlDataRow(rowIndex, rowData = {}) {
484
+ return (this._hasHiddenData && (h("tr", { class: {
485
+ 'additional-data': true,
486
+ active: this._activeRows.includes(rowIndex),
487
+ } }, h("td", { colSpan: 100 }, h("div", null, h("ul", null, this._renderHiddenCells(rowIndex), this._renderHiddenHeaderChildren(rowIndex, rowData)))))));
488
+ }
489
+ _renderCellData(key, options, colIndex, rowIndex) {
498
490
  var _a;
499
- (_a = params === null || params === void 0 ? void 0 : params.onClick) === null || _a === void 0 ? void 0 : _a.call(params, {
500
- index: rowIndex,
501
- value: options.value,
502
- data: this.data[rowIndex],
503
- event,
504
- key,
491
+ const component = options.component || ((_a = this._headers[colIndex]) === null || _a === void 0 ? void 0 : _a.component);
492
+ const Tag = (component === null || component === void 0 ? void 0 : component.tag) || null;
493
+ const injectValue = !!(component === null || component === void 0 ? void 0 : component.injectValue);
494
+ const params = (component === null || component === void 0 ? void 0 : component.params) || {};
495
+ if (injectValue) {
496
+ params.value = options.value;
497
+ }
498
+ return !!Tag ? (h(Tag, Object.assign({}, params, { onClick: (event) => {
499
+ var _a;
500
+ (_a = params === null || params === void 0 ? void 0 : params.onClick) === null || _a === void 0 ? void 0 : _a.call(params, {
501
+ index: rowIndex,
502
+ value: options.value,
503
+ data: this.data[rowIndex],
504
+ event,
505
+ key,
506
+ });
507
+ } }), options.formattedValue || options.value)) : (options.formattedValue || options.value);
508
+ }
509
+ _renderCellChildren(options, index, key, data) {
510
+ return options.children.map((child) => {
511
+ var _a, _b, _c;
512
+ const Tag = (_a = child.component) === null || _a === void 0 ? void 0 : _a.tag;
513
+ const params = ((_b = child.component) === null || _b === void 0 ? void 0 : _b.params) || {};
514
+ const { _hiddenData = [] } = data, rest = __rest(data, ["_hiddenData"]);
515
+ const flatData = Object.assign(Object.assign({}, rest), _hiddenData.reduce((obj, row) => {
516
+ obj[row.id] = row.value;
517
+ return obj;
518
+ }, {}));
519
+ return !!Tag ? (h(Tag, Object.assign({}, params, (!(params === null || params === void 0 ? void 0 : params.onClick)
520
+ ? {}
521
+ : {
522
+ onClick: (event) => {
523
+ params.onClick({
524
+ value: options.value,
525
+ index,
526
+ event,
527
+ key,
528
+ data: flatData,
529
+ });
530
+ },
531
+ })), !!((_c = child.children) === null || _c === void 0 ? void 0 : _c.length)
532
+ ? this._renderCellChildren(child, index, key, data)
533
+ : child.value)) : (child.value);
505
534
  });
506
- } }), options.formattedValue || options.value)) : (options.formattedValue || options.value);
507
- }
508
- _renderCellChildren(options, index, key, data) {
509
- return options.children.map((child) => {
510
- var _a, _b, _c;
511
- const Tag = (_a = child.component) === null || _a === void 0 ? void 0 : _a.tag;
512
- const params = ((_b = child.component) === null || _b === void 0 ? void 0 : _b.params) || {};
513
- const { _hiddenData = [] } = data, rest = __rest(data, ["_hiddenData"]);
514
- const flatData = Object.assign(Object.assign({}, rest), _hiddenData.reduce((obj, row) => {
515
- obj[row.id] = row.value;
516
- return obj;
517
- }, {}));
518
- return !!Tag ? (h(Tag, Object.assign({}, params, (!(params === null || params === void 0 ? void 0 : params.onClick)
519
- ? {}
520
- : {
521
- onClick: (event) => {
522
- params.onClick({
523
- value: options.value,
524
- index,
525
- event,
526
- key,
527
- data: flatData,
528
- });
529
- },
530
- })), !!((_c = child.children) === null || _c === void 0 ? void 0 : _c.length)
531
- ? this._renderCellChildren(child, index, key, data)
532
- : child.value)) : (child.value);
533
- });
534
- }
535
- _renderExpansionIndicator(rowIndex, rowData = {}) {
536
- return (this._hasHiddenData && (h("td", null, h("div", { tabindex: "0", onKeyUp: (event) => this._handleKeyUp(event, rowIndex, rowData) }, h("svg", { width: "22", height: "22", viewBox: "0 0 24 24" }, h("path", { d: mdiChevronDown }))))));
537
- }
538
- _renderHiddenCells(index) {
539
- return this._data[index]._hiddenData
540
- .filter((d) => !this._extraHeaders.find((h) => h.key === d.id))
541
- .map(({ id, key, value: options }) => {
542
- const index = this._headers.findIndex((h) => h.key === id);
543
- return (h("li", null, !!key && (h("div", { class: "title" }, h("span", { class: "label" }, key, ":"), this._renderCellData(id, options, index, index))), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, index, id, {})))));
544
- });
545
- }
546
- _renderHiddenHeaderChildren(index, rowData) {
547
- return this._data[index]._hiddenData.map(({ id, key }) => {
548
- var _a;
549
- const headerIndex = this.headers.findIndex((h) => h.key === id);
550
- return (!!((_a = this.headers[headerIndex]) === null || _a === void 0 ? void 0 : _a.children) && (h("li", null, h("div", { class: "children" }, this._renderCellChildren(this.headers[headerIndex], index, key, rowData)))));
551
- });
552
- }
553
- _renderLoaderRow() {
554
- return (h("tr", null, h("td", { class: "loader", colSpan: 100 }, this.loading && (h("div", { class: "c-data-table__loader" }, h("div", { class: "loading-bar" }))))));
555
- }
556
- _renderRows() {
557
- return (!!this._data.length &&
558
- Object.values(this._data).map((rowData, rowIndex) => {
559
- let selectionValue = this._getSelectionValue(rowData, rowIndex);
560
- if (!this.selectionProperty && typeof selectionValue === 'number') {
561
- selectionValue = this._getIndex(selectionValue);
535
+ }
536
+ _renderExpansionIndicator(rowIndex, rowData = {}) {
537
+ return (this._hasHiddenData && (h("td", null, h("div", { tabindex: "0", onKeyUp: (event) => this._handleKeyUp(event, rowIndex, rowData) }, h("svg", { width: "22", height: "22", viewBox: "0 0 24 24" }, h("path", { d: mdiChevronDown }))))));
538
+ }
539
+ _renderHiddenCells(index) {
540
+ return this._data[index]._hiddenData
541
+ .filter((d) => !this._extraHeaders.find((h) => h.key === d.id))
542
+ .map(({ id, key, value: options }) => {
543
+ const index = this._headers.findIndex((h) => h.key === id);
544
+ return (h("li", null, !!key && (h("div", { class: "title" }, h("span", { class: "label" }, key, ":"), this._renderCellData(id, options, index, index))), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, index, id, {})))));
545
+ });
546
+ }
547
+ _renderHiddenHeaderChildren(index, rowData) {
548
+ return this._data[index]._hiddenData.map(({ id, key }) => {
549
+ var _a;
550
+ const headerIndex = this.headers.findIndex((h) => h.key === id);
551
+ return (!!((_a = this.headers[headerIndex]) === null || _a === void 0 ? void 0 : _a.children) && (h("li", null, h("div", { class: "children" }, this._renderCellChildren(this.headers[headerIndex], index, key, rowData)))));
552
+ });
553
+ }
554
+ _renderLoaderRow() {
555
+ return (h("tr", null, h("td", { class: "loader", colSpan: 100 }, this.loading && (h("div", { class: "c-data-table__loader" }, h("div", { class: "loading-bar" }))))));
556
+ }
557
+ _renderRows() {
558
+ return (!!this._data.length &&
559
+ Object.values(this._data).map((rowData, rowIndex) => {
560
+ let selectionValue = this._getSelectionValue(rowData, rowIndex);
561
+ if (!this.selectionProperty && typeof selectionValue === 'number') {
562
+ selectionValue = this._getIndex(selectionValue);
563
+ }
564
+ const isSelected = !!this._selections.includes(selectionValue);
565
+ return (h(Fragment, null, h("tr", { class: {
566
+ active: this._activeRows.includes(rowIndex),
567
+ parent: this._hasHiddenData,
568
+ selected: isSelected,
569
+ }, onClick: (event) => this._onToggleAdditionalData(event, rowIndex, rowData) }, this._renderSelectionCell(isSelected, selectionValue), this._renderExpansionIndicator(rowIndex, rowData), this._renderTableCells(rowIndex, rowData)), this._renderAdditioanlDataRow(rowIndex, rowData)));
570
+ }));
571
+ }
572
+ _renderSelectionCell(isSelected, selectionValue) {
573
+ return (this.selectable && (h("td", null, h("div", { class: "selection" }, h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
574
+ }
575
+ _renderSortIndicator(key) {
576
+ let iconPath = mdiSwapVertical;
577
+ if (key === this.sortBy && this.sortDirection === 'asc') {
578
+ iconPath = mdiArrowUpThin;
579
+ }
580
+ if (key === this.sortBy && this.sortDirection === 'desc') {
581
+ iconPath = mdiArrowDownThin;
582
+ }
583
+ return (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, h("path", { d: iconPath })));
584
+ }
585
+ _renderStatusTextRow() {
586
+ return (!this._data.length && (h("tr", null, h("td", { class: "info", colSpan: 100 }, h("div", null, this.loading ? this.loadingText : this.noDataText)))));
587
+ }
588
+ _renderTableBody() {
589
+ return (h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
590
+ }
591
+ _renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
592
+ var _a;
593
+ const header = this.headers.find((header) => header.key === key);
594
+ const isHidden = this.hiddenHeaders.includes(key);
595
+ return (!!header &&
596
+ !isHidden && (h("td", null, h("div", { "data-align": header === null || header === void 0 ? void 0 : header.align, "data-justify": header === null || header === void 0 ? void 0 : header.justify }, this._renderCellData(key, options, colIndex, rowIndex), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, rowIndex, key, rowData))), !!((_a = this.headers.find((header) => header.key === key)) === null || _a === void 0 ? void 0 : _a.children) && (h("div", { class: "children" }, this._renderCellChildren(this.headers.find((header) => header.key === key), rowIndex, key, rowData)))))));
597
+ }
598
+ _renderTableCells(rowIndex, rowData = {}) {
599
+ return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
600
+ }
601
+ _renderTableFooter() {
602
+ const footerStyles = this.horizontalScrolling
603
+ ? {
604
+ maxWidth: `${this.parentWidth}px`,
605
+ position: 'sticky',
606
+ left: '0',
607
+ }
608
+ : {};
609
+ return (!!this.pagination && (h("tfoot", null, h("tr", { ref: (el) => (this._footerElement = el) }, h("td", { colSpan: 100 }, h("div", { class: "c-data-table__footer", style: footerStyles }, h("c-pagination", Object.assign({}, this.footerOptions, { value: this.pagination, simple: this._isPaginationSimple, onChangeValue: (e) => this._onPaginationChange(e) }))))))));
610
+ }
611
+ _renderTableHeader() {
612
+ const indicatorRowStyles = this.horizontalScrolling
613
+ ? {
614
+ width: `${this.parentWidth - 8}px`,
615
+ position: 'sticky',
616
+ left: '4px',
617
+ }
618
+ : {};
619
+ return (h("thead", { class: { sticky: this.stickyHeader } }, h("tr", null, this.selectable && (h("th", { class: "selection" }, !this.singleSelection && (h("div", { class: "selection--heading" }, h("c-checkbox", { value: this._hasSelectionsOnPage(), indeterminate: this._isIndeterminate, "hide-details": true, onClick: (event) => this._onHeadingSelection(event), onKeyUp: (event) => this._onHeadingSelection(event) }))))), this._hasHiddenData && h("th", { class: "indicator" }), !!this._headers.length &&
620
+ this._headers.map((header) => {
621
+ const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
622
+ const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
623
+ style: Object.assign({}, (header.width && { minWidth: header.width })),
624
+ })), (isSortable && {
625
+ onClick: () => this._onSort(header.key),
626
+ onKeyUp: () => this._onSort(header.key),
627
+ }));
628
+ return (h("th", Object.assign({}, params), h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
629
+ })), this.horizontalScrolling && (h("tr", { class: "c-data-table__header-indicators" }, h("th", { colSpan: 100 }, h("div", { style: indicatorRowStyles }, this.firstCellHidden && (h("c-icon-button", { class: "first", size: "small", outlined: true, onClick: () => this._scrollLeft() }, h("c-icon", { path: mdiChevronLeft }))), h("c-spacer", null), this.lastCellHidden && (h("c-icon-button", { class: "last", size: "small", outlined: true, onClick: () => this._scrollRight() }, h("c-icon", { path: mdiChevronRight })))))))));
630
+ }
631
+ _scrollLeft() {
632
+ const leftBorder = this.element.getBoundingClientRect().left;
633
+ const hiddenHeaderKeys = this._headerKeys.filter((key) => {
634
+ var _a;
635
+ const headerCellLeftBorder = (_a = this._tableElement
636
+ .querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
637
+ return headerCellLeftBorder < leftBorder - 2;
638
+ });
639
+ if (hiddenHeaderKeys.length) {
640
+ if (hiddenHeaderKeys.length === 1) {
641
+ this._tableElement.scrollIntoView({
642
+ behavior: 'smooth',
643
+ block: 'nearest',
644
+ inline: 'start',
645
+ });
646
+ return;
647
+ }
648
+ this._tableElement
649
+ .querySelector(`[data-id="${hiddenHeaderKeys[hiddenHeaderKeys.length - 1]}"]`)
650
+ .scrollIntoView({ behavior: 'smooth', block: 'nearest' });
562
651
  }
563
- const isSelected = !!this._selections.includes(selectionValue);
564
- return (h(Fragment, null, h("tr", { class: {
565
- active: this._activeRows.includes(rowIndex),
566
- parent: this._hasHiddenData,
567
- selected: isSelected,
568
- }, onClick: (event) => this._onToggleAdditionalData(event, rowIndex, rowData) }, this._renderSelectionCell(isSelected, selectionValue), this._renderExpansionIndicator(rowIndex, rowData), this._renderTableCells(rowIndex, rowData)), this._renderAdditioanlDataRow(rowIndex, rowData)));
569
- }));
570
- }
571
- _renderSelectionCell(isSelected, selectionValue) {
572
- return (this.selectable && (h("td", null, h("div", { class: "selection" }, h("c-checkbox", { value: isSelected, "hide-details": true, onChangeValue: () => this._onSelection(selectionValue) })))));
573
- }
574
- _renderSortIndicator(key) {
575
- let iconPath = mdiSwapVertical;
576
- if (key === this.sortBy && this.sortDirection === 'asc') {
577
- iconPath = mdiArrowUpThin;
578
- }
579
- if (key === this.sortBy && this.sortDirection === 'desc') {
580
- iconPath = mdiArrowDownThin;
581
- }
582
- return (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", tabindex: 0 }, h("path", { d: iconPath })));
583
- }
584
- _renderStatusTextRow() {
585
- return (!this._data.length && (h("tr", null, h("td", { class: "info", colSpan: 100 }, h("div", null, this.loading ? this.loadingText : this.noDataText)))));
586
- }
587
- _renderTableBody() {
588
- return (h("tbody", null, this._renderLoaderRow(), this._renderStatusTextRow(), this._renderRows()));
589
- }
590
- _renderTableCell(key, options, colIndex, rowIndex, rowData = {}) {
591
- var _a;
592
- const header = this.headers.find((header) => header.key === key);
593
- const isHidden = this.hiddenHeaders.includes(key);
594
- return (!!header &&
595
- !isHidden && (h("td", null, h("div", { "data-align": header === null || header === void 0 ? void 0 : header.align, "data-justify": header === null || header === void 0 ? void 0 : header.justify }, this._renderCellData(key, options, colIndex, rowIndex), !!options.children && (h("div", { class: "children" }, this._renderCellChildren(options, rowIndex, key, rowData))), !!((_a = this.headers.find((header) => header.key === key)) === null || _a === void 0 ? void 0 : _a.children) && (h("div", { class: "children" }, this._renderCellChildren(this.headers.find((header) => header.key === key), rowIndex, key, rowData)))))));
596
- }
597
- _renderTableCells(rowIndex, rowData = {}) {
598
- return this._sortCellProperties(rowData).map(([key, options], index) => this._renderTableCell(key, options, index, rowIndex, rowData));
599
- }
600
- _renderTableFooter() {
601
- const footerStyles = this.horizontalScrolling
602
- ? {
603
- maxWidth: `${this.parentWidth}px`,
604
- position: 'sticky',
605
- left: '0',
606
- }
607
- : {};
608
- return (!!this.pagination && (h("tfoot", null, h("tr", { ref: (el) => (this._footerElement = el) }, h("td", { colSpan: 100 }, h("div", { class: "c-data-table__footer", style: footerStyles }, h("c-pagination", Object.assign({}, this.footerOptions, { value: this.pagination, simple: this._isPaginationSimple, onChangeValue: (e) => this._onPaginationChange(e) }))))))));
609
- }
610
- _renderTableHeader() {
611
- const indicatorRowStyles = this.horizontalScrolling
612
- ? {
613
- width: `${this.parentWidth - 8}px`,
614
- position: 'sticky',
615
- left: '4px',
616
- }
617
- : {};
618
- return (h("thead", { class: { sticky: this.stickyHeader } }, h("tr", null, this.selectable && (h("th", { class: "selection" }, !this.singleSelection && (h("div", { class: "selection--heading" }, h("c-checkbox", { value: this._hasSelectionsOnPage(), indeterminate: this._isIndeterminate, "hide-details": true, onClick: (event) => this._onHeadingSelection(event), onKeyUp: (event) => this._onHeadingSelection(event) }))))), this._hasHiddenData && h("th", { class: "indicator" }), !!this._headers.length &&
619
- this._headers.map((header) => {
620
- const isSortable = !!header.sortable || typeof header.sortable === 'undefined';
621
- const params = Object.assign(Object.assign({ 'data-id': header.key, ref: (el) => this._addHeaderRef(header.key, el) }, (!!header && {
622
- style: Object.assign({}, (header.width && { minWidth: header.width })),
623
- })), (isSortable && {
624
- onClick: () => this._onSort(header.key),
625
- onKeyUp: () => this._onSort(header.key),
626
- }));
627
- return (h("th", Object.assign({}, params), h("div", { class: { sortable: isSortable } }, header.value, isSortable && this._renderSortIndicator(header.key))));
628
- })), this.horizontalScrolling && (h("tr", { class: "c-data-table__header-indicators" }, h("th", { colSpan: 100 }, h("div", { style: indicatorRowStyles }, this.firstCellHidden && (h("c-icon-button", { class: "first", size: "small", outlined: true, onClick: () => this._scrollLeft() }, h("c-icon", { path: mdiChevronLeft }))), h("c-spacer", null), this.lastCellHidden && (h("c-icon-button", { class: "last", size: "small", outlined: true, onClick: () => this._scrollRight() }, h("c-icon", { path: mdiChevronRight })))))))));
629
- }
630
- _scrollLeft() {
631
- const leftBorder = this.element.getBoundingClientRect().left;
632
- const hiddenHeaderKeys = this._headerKeys.filter((key) => {
633
- var _a;
634
- const headerCellLeftBorder = (_a = this._tableElement
635
- .querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
636
- return headerCellLeftBorder < leftBorder - 2;
637
- });
638
- if (hiddenHeaderKeys.length) {
639
- if (hiddenHeaderKeys.length === 1) {
640
- this._tableElement.scrollIntoView({
641
- behavior: 'smooth',
642
- block: 'nearest',
643
- inline: 'start',
652
+ }
653
+ _scrollRight() {
654
+ const rightBorder = this.element.getBoundingClientRect().right;
655
+ const hiddenHeaderKeys = this._headerKeys.filter((key) => {
656
+ var _a;
657
+ const headerCellRightBorder = (_a = this._tableElement
658
+ .querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().right;
659
+ return headerCellRightBorder > rightBorder + 2;
644
660
  });
645
- return;
646
- }
647
- this._tableElement
648
- .querySelector(`[data-id="${hiddenHeaderKeys[hiddenHeaderKeys.length - 1]}"]`)
649
- .scrollIntoView({ behavior: 'smooth', block: 'nearest' });
650
- }
651
- }
652
- _scrollRight() {
653
- const rightBorder = this.element.getBoundingClientRect().right;
654
- const hiddenHeaderKeys = this._headerKeys.filter((key) => {
655
- var _a;
656
- const headerCellRightBorder = (_a = this._tableElement
657
- .querySelector(`[data-id="${key}"]`)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().right;
658
- return headerCellRightBorder > rightBorder + 2;
659
- });
660
- if (hiddenHeaderKeys.length) {
661
- this._tableElement
662
- .querySelector(`[data-id="${hiddenHeaderKeys[0]}"]`)
663
- .scrollIntoView({ behavior: 'smooth', block: 'nearest' });
664
- }
665
- }
666
- _sortCellProperties(row) {
667
- const sorted = Object.entries(row)
668
- .filter(([key]) => ![...this.hiddenHeaders, '_hiddenData'].includes(key))
669
- .sort(([keyA], [keyB]) => this._headerKeys.indexOf(keyA) - this._headerKeys.indexOf(keyB));
670
- return sorted;
671
- }
672
- _validateProps(data) {
673
- if (!!data &&
674
- !this._isValidated &&
675
- this.selectionProperty !== null &&
676
- !data[this.selectionProperty]) {
677
- console.warn(`[C-DATA-TABLE] Invalid selection property '${this.selectionProperty}'. Using row index as a fallback. This may lead to unexpected behavior.`);
678
- this._isValidated = true;
679
- }
680
- }
681
- render() {
682
- const tableClasses = {
683
- 'c-data-table': true,
684
- 'c-data-table--hoverable': this.selectable || this._hasHiddenData,
685
- 'c-data-table--scrollable': this.horizontalScrolling,
686
- };
687
- return (h(Host, null, h("div", { class: "c-data-table__wrapper" }, h("div", { class: "c-data-table__table-wrapper" }, h("table", { class: tableClasses, ref: (el) => (this._tableElement = el) }, h("colgroup", null, [
688
- ...(this.selectable ? ['_selection'] : []),
689
- ...(this.hiddenHeaders.length ? ['_hidden'] : []),
690
- ...this._headerKeys,
691
- ].map((key) => (h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())))));
692
- }
693
- get element() { return getElement(this); }
694
- static get watchers() { return {
695
- "hiddenHeaders": ["onHiddenHeaderChange"],
696
- "data": ["onDataChange"],
697
- "headers": ["onHeaderChange"],
698
- "singleSelection": ["onSingleSelectionChange"],
699
- "loading": ["onLoadingChange"]
700
- }; }
661
+ if (hiddenHeaderKeys.length) {
662
+ this._tableElement
663
+ .querySelector(`[data-id="${hiddenHeaderKeys[0]}"]`)
664
+ .scrollIntoView({ behavior: 'smooth', block: 'nearest' });
665
+ }
666
+ }
667
+ _sortCellProperties(row) {
668
+ const sorted = Object.entries(row)
669
+ .filter(([key]) => ![...this.hiddenHeaders, '_hiddenData'].includes(key))
670
+ .sort(([keyA], [keyB]) => this._headerKeys.indexOf(keyA) - this._headerKeys.indexOf(keyB));
671
+ return sorted;
672
+ }
673
+ _validateProps(data) {
674
+ if (!!data &&
675
+ !this._isValidated &&
676
+ this.selectionProperty !== null &&
677
+ !data[this.selectionProperty]) {
678
+ console.warn(`[C-DATA-TABLE] Invalid selection property '${this.selectionProperty}'. Using row index as a fallback. This may lead to unexpected behavior.`);
679
+ this._isValidated = true;
680
+ }
681
+ }
682
+ render() {
683
+ const tableClasses = {
684
+ 'c-data-table': true,
685
+ 'c-data-table--hoverable': this.selectable || this._hasHiddenData,
686
+ 'c-data-table--scrollable': this.horizontalScrolling,
687
+ };
688
+ return (h(Host, { key: 'e3d82ca6aa21a17a669fe2b99f415b70e3b058f4' }, h("div", { key: '8b6f0c0299749f59193d1331a3de3f766aab3241', class: "c-data-table__wrapper" }, h("div", { key: 'f8ca3c8408165baf842797bfa47d6edff97b5848', class: "c-data-table__table-wrapper" }, h("table", { key: 'ae3ba275192503a711336cf6cf8452db3554c307', class: tableClasses, ref: (el) => (this._tableElement = el) }, h("colgroup", { key: 'e7dede3de2d515ea7281d02a963260eb3f45be64' }, [
689
+ ...(this.selectable ? ['_selection'] : []),
690
+ ...(this.hiddenHeaders.length ? ['_hidden'] : []),
691
+ ...this._headerKeys,
692
+ ].map((key) => (h("col", { class: this.sortBy === key && 'sorted-column' })))), this._renderTableHeader(), this._renderTableBody(), !this.hideFooter && this._renderTableFooter())))));
693
+ }
694
+ get element() { return getElement(this); }
695
+ static get watchers() { return {
696
+ "hiddenHeaders": ["onHiddenHeaderChange"],
697
+ "data": ["onDataChange"],
698
+ "headers": ["onHeaderChange"],
699
+ "singleSelection": ["onSingleSelectionChange"],
700
+ "loading": ["onLoadingChange"]
701
+ }; }
701
702
  };
702
- CDataTable.style = cDataTableCss;
703
+ CDataTable.style = CDataTableStyle0;
703
704
 
704
705
  export { CDataTable as c_data_table };
705
706