vueless 0.0.9 → 0.0.10

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 (359) hide show
  1. package/package.json +1 -1
  2. package/readme/README.md +0 -8
  3. package/src/composable.ui/index.js +0 -395
  4. package/src/service.storybook/index.js +0 -91
  5. package/src/service.tailwind/index.js +0 -103
  6. package/src/service.ui/index.js +0 -193
  7. package/src/ui.button/Docs.mdx +0 -16
  8. package/src/ui.button/composables/attrs.composable.js +0 -41
  9. package/src/ui.button/configs/default.config.js +0 -165
  10. package/src/ui.button/constants/index.js +0 -5
  11. package/src/ui.button/index.stories.js +0 -166
  12. package/src/ui.button/index.vue +0 -151
  13. package/src/ui.button-link/Docs.mdx +0 -16
  14. package/src/ui.button-link/composables/attrs.composable.js +0 -99
  15. package/src/ui.button-link/configs/default.config.js +0 -80
  16. package/src/ui.button-link/constants/index.js +0 -5
  17. package/src/ui.button-link/index.stories.js +0 -158
  18. package/src/ui.button-link/index.vue +0 -226
  19. package/src/ui.button-toggle/Docs.mdx +0 -16
  20. package/src/ui.button-toggle/composables/attrs.composable.js +0 -16
  21. package/src/ui.button-toggle/configs/default.config.js +0 -12
  22. package/src/ui.button-toggle/constants/index.js +0 -7
  23. package/src/ui.button-toggle/index.stories.js +0 -155
  24. package/src/ui.button-toggle/index.vue +0 -128
  25. package/src/ui.button-toggle-item/Docs.mdx +0 -16
  26. package/src/ui.button-toggle-item/composables/attrs.composable.js +0 -53
  27. package/src/ui.button-toggle-item/configs/default.config.js +0 -58
  28. package/src/ui.button-toggle-item/constants/index.js +0 -5
  29. package/src/ui.button-toggle-item/index.stories.js +0 -77
  30. package/src/ui.button-toggle-item/index.vue +0 -147
  31. package/src/ui.container-accordion/composables/attrs.composable.js +0 -45
  32. package/src/ui.container-accordion/configs/default.config.js +0 -32
  33. package/src/ui.container-accordion/constants/index.js +0 -5
  34. package/src/ui.container-accordion/index.stories.js +0 -89
  35. package/src/ui.container-accordion/index.vue +0 -95
  36. package/src/ui.container-card/Docs.mdx +0 -16
  37. package/src/ui.container-card/composable/attrs.composable.js +0 -56
  38. package/src/ui.container-card/configs/default.config.js +0 -31
  39. package/src/ui.container-card/constants/index.js +0 -5
  40. package/src/ui.container-card/index.stories.js +0 -170
  41. package/src/ui.container-card/index.vue +0 -146
  42. package/src/ui.container-divider/Docs.mdx +0 -16
  43. package/src/ui.container-divider/composables/attrs.composable.js +0 -65
  44. package/src/ui.container-divider/configs/default.config.js +0 -79
  45. package/src/ui.container-divider/constants/index.js +0 -5
  46. package/src/ui.container-divider/index.stories.js +0 -124
  47. package/src/ui.container-divider/index.vue +0 -138
  48. package/src/ui.container-group/Docs.mdx +0 -16
  49. package/src/ui.container-group/composables/attrs.composable.js +0 -44
  50. package/src/ui.container-group/configs/default.config.js +0 -29
  51. package/src/ui.container-group/constants/index.js +0 -5
  52. package/src/ui.container-group/index.stories.js +0 -88
  53. package/src/ui.container-group/index.vue +0 -106
  54. package/src/ui.container-groups/Docs.mdx +0 -16
  55. package/src/ui.container-groups/composables/attrs.composable.js +0 -12
  56. package/src/ui.container-groups/configs/default.config.js +0 -3
  57. package/src/ui.container-groups/index.stories.js +0 -45
  58. package/src/ui.container-groups/index.vue +0 -33
  59. package/src/ui.container-modal/Docs.mdx +0 -16
  60. package/src/ui.container-modal/composables/attrs.composable.js +0 -90
  61. package/src/ui.container-modal/configs/default.config.js +0 -69
  62. package/src/ui.container-modal/constants/index.js +0 -5
  63. package/src/ui.container-modal/index.stories.js +0 -170
  64. package/src/ui.container-modal/index.vue +0 -336
  65. package/src/ui.container-modal-confirm/Docs.mdx +0 -16
  66. package/src/ui.container-modal-confirm/composable/attrs.composable.js +0 -20
  67. package/src/ui.container-modal-confirm/configs/default.config.js +0 -15
  68. package/src/ui.container-modal-confirm/constants/index.js +0 -5
  69. package/src/ui.container-modal-confirm/index.stories.js +0 -209
  70. package/src/ui.container-modal-confirm/index.vue +0 -182
  71. package/src/ui.container-page/Docs.mdx +0 -16
  72. package/src/ui.container-page/composables/attrs.composable.js +0 -96
  73. package/src/ui.container-page/configs/default.config.js +0 -71
  74. package/src/ui.container-page/constants/index.js +0 -5
  75. package/src/ui.container-page/index.stories.js +0 -147
  76. package/src/ui.container-page/index.vue +0 -275
  77. package/src/ui.container-row/Docs.mdx +0 -16
  78. package/src/ui.container-row/composables/attrs.composable.js +0 -23
  79. package/src/ui.container-row/configs/default.config.js +0 -14
  80. package/src/ui.container-row/constants/index.js +0 -5
  81. package/src/ui.container-row/index.stories.js +0 -81
  82. package/src/ui.container-row/index.vue +0 -45
  83. package/src/ui.data-list/composables/attrs.composable.js +0 -45
  84. package/src/ui.data-list/configs/default.config.js +0 -32
  85. package/src/ui.data-list/constants/index.js +0 -5
  86. package/src/ui.data-list/index.stories.js +0 -91
  87. package/src/ui.data-list/index.vue +0 -259
  88. package/src/ui.data-table/Docs.mdx +0 -16
  89. package/src/ui.data-table/composables/attrs.composable.js +0 -188
  90. package/src/ui.data-table/configs/default.config.js +0 -88
  91. package/src/ui.data-table/constants/index.js +0 -5
  92. package/src/ui.data-table/index.stories.js +0 -261
  93. package/src/ui.data-table/index.vue +0 -730
  94. package/src/ui.data-table/services/table.service.js +0 -15
  95. package/src/ui.data-table-cell/composables/attrs.composable.js +0 -24
  96. package/src/ui.data-table-cell/configs/default.config.js +0 -19
  97. package/src/ui.data-table-cell/constants/index.js +0 -5
  98. package/src/ui.data-table-cell/index.vue +0 -44
  99. package/src/ui.dropdown-badge/Docs.mdx +0 -16
  100. package/src/ui.dropdown-badge/composables/attrs.composable.js +0 -63
  101. package/src/ui.dropdown-badge/configs/default.config.js +0 -34
  102. package/src/ui.dropdown-badge/constants/index.js +0 -5
  103. package/src/ui.dropdown-badge/index.stories.js +0 -126
  104. package/src/ui.dropdown-badge/index.vue +0 -234
  105. package/src/ui.dropdown-button/Docs.mdx +0 -16
  106. package/src/ui.dropdown-button/composables/attrs.composable.js +0 -63
  107. package/src/ui.dropdown-button/configs/default.config.js +0 -37
  108. package/src/ui.dropdown-button/constants/index.js +0 -14
  109. package/src/ui.dropdown-button/index.stories.js +0 -158
  110. package/src/ui.dropdown-button/index.vue +0 -271
  111. package/src/ui.dropdown-item/Docs.mdx +0 -16
  112. package/src/ui.dropdown-item/composables/attrs.composable.js +0 -13
  113. package/src/ui.dropdown-item/configs/default.config.js +0 -16
  114. package/src/ui.dropdown-item/index.stories.js +0 -30
  115. package/src/ui.dropdown-item/index.vue +0 -53
  116. package/src/ui.dropdown-link/Docs.mdx +0 -16
  117. package/src/ui.dropdown-link/composables/attrs.composable.js +0 -65
  118. package/src/ui.dropdown-link/configs/default.config.js +0 -37
  119. package/src/ui.dropdown-link/constants/index.js +0 -5
  120. package/src/ui.dropdown-link/index.stories.js +0 -127
  121. package/src/ui.dropdown-link/index.vue +0 -261
  122. package/src/ui.dropdown-list/Docs.mdx +0 -16
  123. package/src/ui.dropdown-list/composables/attrs.composable.js +0 -93
  124. package/src/ui.dropdown-list/composables/usePointer.js +0 -77
  125. package/src/ui.dropdown-list/configs/default.config.js +0 -74
  126. package/src/ui.dropdown-list/constants/index.js +0 -5
  127. package/src/ui.dropdown-list/index.stories.js +0 -76
  128. package/src/ui.dropdown-list/index.vue +0 -284
  129. package/src/ui.form-calendar/Docs.mdx +0 -52
  130. package/src/ui.form-calendar/components/DayView.vue +0 -268
  131. package/src/ui.form-calendar/components/MonthView.vue +0 -114
  132. package/src/ui.form-calendar/components/YearView.vue +0 -118
  133. package/src/ui.form-calendar/composables/attrs.composable.js +0 -106
  134. package/src/ui.form-calendar/configs/default.config.js +0 -125
  135. package/src/ui.form-calendar/constants/index.js +0 -71
  136. package/src/ui.form-calendar/index.stories.js +0 -59
  137. package/src/ui.form-calendar/index.vue +0 -743
  138. package/src/ui.form-calendar/services/calendar.service.js +0 -189
  139. package/src/ui.form-calendar/services/date.service.js +0 -282
  140. package/src/ui.form-calendar/services/formatting.service.js +0 -180
  141. package/src/ui.form-checkbox/Docs.mdx +0 -16
  142. package/src/ui.form-checkbox/composables/attrs.composable.js +0 -57
  143. package/src/ui.form-checkbox/configs/default.config.js +0 -69
  144. package/src/ui.form-checkbox/constants/index.js +0 -5
  145. package/src/ui.form-checkbox/index.stories.js +0 -147
  146. package/src/ui.form-checkbox/index.vue +0 -242
  147. package/src/ui.form-checkbox-group/Docs.mdx +0 -16
  148. package/src/ui.form-checkbox-group/composables/attrs.composable.js +0 -17
  149. package/src/ui.form-checkbox-group/configs/default.config.js +0 -5
  150. package/src/ui.form-checkbox-group/constants/index.js +0 -5
  151. package/src/ui.form-checkbox-group/index.stories.js +0 -45
  152. package/src/ui.form-checkbox-group/index.vue +0 -145
  153. package/src/ui.form-checkbox-multi-state/Docs.mdx +0 -16
  154. package/src/ui.form-checkbox-multi-state/composables/attrs.composable.js +0 -24
  155. package/src/ui.form-checkbox-multi-state/configs/default.config.js +0 -9
  156. package/src/ui.form-checkbox-multi-state/constants/index.js +0 -5
  157. package/src/ui.form-checkbox-multi-state/index.stories.js +0 -59
  158. package/src/ui.form-checkbox-multi-state/index.vue +0 -134
  159. package/src/ui.form-color-picker/composables/attrs.composable.js +0 -44
  160. package/src/ui.form-color-picker/configs/default.config.js +0 -52
  161. package/src/ui.form-color-picker/constants/index.js +0 -5
  162. package/src/ui.form-color-picker/index.stories.js +0 -63
  163. package/src/ui.form-color-picker/index.vue +0 -171
  164. package/src/ui.form-date-picker/Docs.mdx +0 -52
  165. package/src/ui.form-date-picker/composables/attrs.composable.js +0 -22
  166. package/src/ui.form-date-picker/configs/default.config.js +0 -26
  167. package/src/ui.form-date-picker/constants/index.js +0 -5
  168. package/src/ui.form-date-picker/index.stories.js +0 -132
  169. package/src/ui.form-date-picker/index.vue +0 -256
  170. package/src/ui.form-date-picker-range/composables/attrs.composable.js +0 -100
  171. package/src/ui.form-date-picker-range/configs/default.config.js +0 -172
  172. package/src/ui.form-date-picker-range/constants/index.js +0 -23
  173. package/src/ui.form-date-picker-range/index.stories.js +0 -135
  174. package/src/ui.form-date-picker-range/index.vue +0 -937
  175. package/src/ui.form-date-picker-range/services/dateRange.service.js +0 -116
  176. package/src/ui.form-date-picker-range/services/validation.service.js +0 -22
  177. package/src/ui.form-input/Docs.mdx +0 -16
  178. package/src/ui.form-input/assets/fonts/text-security-disc.woff +0 -0
  179. package/src/ui.form-input/composables/attrs.composable.js +0 -66
  180. package/src/ui.form-input/configs/default.config.js +0 -72
  181. package/src/ui.form-input/constants/index.js +0 -5
  182. package/src/ui.form-input/index.stories.js +0 -166
  183. package/src/ui.form-input/index.vue +0 -388
  184. package/src/ui.form-input-file/composables/attrs.composable.js +0 -82
  185. package/src/ui.form-input-file/configs/default.config.js +0 -59
  186. package/src/ui.form-input-file/constants/index.js +0 -5
  187. package/src/ui.form-input-file/index.stories.js +0 -86
  188. package/src/ui.form-input-file/index.vue +0 -387
  189. package/src/ui.form-input-money/Docs.mdx +0 -16
  190. package/src/ui.form-input-money/composables/attrs.composable.js +0 -13
  191. package/src/ui.form-input-money/composables/useFormatCurrency.js +0 -82
  192. package/src/ui.form-input-money/configs/default.config.js +0 -16
  193. package/src/ui.form-input-money/constants/index.js +0 -5
  194. package/src/ui.form-input-money/index.stories.js +0 -126
  195. package/src/ui.form-input-money/index.vue +0 -263
  196. package/src/ui.form-input-money/services/format.service.js +0 -72
  197. package/src/ui.form-input-number/Docs.mdx +0 -16
  198. package/src/ui.form-input-number/composables/attrs.composable.js +0 -47
  199. package/src/ui.form-input-number/configs/default.config.js +0 -33
  200. package/src/ui.form-input-number/constants/index.js +0 -5
  201. package/src/ui.form-input-number/index.stories.js +0 -103
  202. package/src/ui.form-input-number/index.vue +0 -162
  203. package/src/ui.form-input-rating/composables/attrs.composable.js +0 -34
  204. package/src/ui.form-input-rating/configs/default.config.js +0 -25
  205. package/src/ui.form-input-rating/constants/index.js +0 -5
  206. package/src/ui.form-input-rating/index.stories.js +0 -108
  207. package/src/ui.form-input-rating/index.vue +0 -186
  208. package/src/ui.form-input-search/composables/attrs.composable.js +0 -21
  209. package/src/ui.form-input-search/configs/default.config.js +0 -20
  210. package/src/ui.form-input-search/constants/index.js +0 -5
  211. package/src/ui.form-input-search/index.stories.js +0 -90
  212. package/src/ui.form-input-search/index.vue +0 -215
  213. package/src/ui.form-label/Docs.mdx +0 -16
  214. package/src/ui.form-label/composables/attrs.composable.js +0 -65
  215. package/src/ui.form-label/configs/default.config.js +0 -95
  216. package/src/ui.form-label/constants/index.js +0 -13
  217. package/src/ui.form-label/index.stories.js +0 -107
  218. package/src/ui.form-label/index.vue +0 -170
  219. package/src/ui.form-radio/Docs.mdx +0 -16
  220. package/src/ui.form-radio/composables/attrs.composable.js +0 -34
  221. package/src/ui.form-radio/configs/default.config.js +0 -47
  222. package/src/ui.form-radio/constants/index.js +0 -5
  223. package/src/ui.form-radio/index.stories.js +0 -71
  224. package/src/ui.form-radio/index.vue +0 -170
  225. package/src/ui.form-radio-card/Docs.mdx +0 -16
  226. package/src/ui.form-radio-card/composables/attrs.composable.js +0 -35
  227. package/src/ui.form-radio-card/configs/default.config.js +0 -25
  228. package/src/ui.form-radio-card/constants/index.js +0 -5
  229. package/src/ui.form-radio-card/index.stories.js +0 -149
  230. package/src/ui.form-radio-card/index.vue +0 -160
  231. package/src/ui.form-radio-card/services/variant.service.js +0 -15
  232. package/src/ui.form-radio-group/Docs.mdx +0 -16
  233. package/src/ui.form-radio-group/composables/attrs.composable.js +0 -27
  234. package/src/ui.form-radio-group/configs/default.config.js +0 -18
  235. package/src/ui.form-radio-group/constants/index.js +0 -5
  236. package/src/ui.form-radio-group/index.stories.js +0 -42
  237. package/src/ui.form-radio-group/index.vue +0 -128
  238. package/src/ui.form-select/Docs.mdx +0 -16
  239. package/src/ui.form-select/composables/attrs.composable.js +0 -172
  240. package/src/ui.form-select/configs/default.config.js +0 -138
  241. package/src/ui.form-select/constants/index.js +0 -19
  242. package/src/ui.form-select/index.stories.js +0 -339
  243. package/src/ui.form-select/index.vue +0 -722
  244. package/src/ui.form-select/services/select.service.js +0 -98
  245. package/src/ui.form-switch/composables/attrs.composable.js +0 -77
  246. package/src/ui.form-switch/configs/default.config.js +0 -76
  247. package/src/ui.form-switch/constants/index.js +0 -5
  248. package/src/ui.form-switch/index.stories.js +0 -93
  249. package/src/ui.form-switch/index.vue +0 -199
  250. package/src/ui.form-switch/services/variant.service.js +0 -31
  251. package/src/ui.form-textarea/Docs.mdx +0 -16
  252. package/src/ui.form-textarea/composables/attrs.composable.js +0 -52
  253. package/src/ui.form-textarea/configs/default.config.js +0 -68
  254. package/src/ui.form-textarea/constants/index.js +0 -5
  255. package/src/ui.form-textarea/index.stories.js +0 -151
  256. package/src/ui.form-textarea/index.vue +0 -284
  257. package/src/ui.image-avatar/composables/attrs.composable.js +0 -34
  258. package/src/ui.image-avatar/configs/default.config.js +0 -42
  259. package/src/ui.image-avatar/constants/index.js +0 -5
  260. package/src/ui.image-avatar/default-avatar.png +0 -0
  261. package/src/ui.image-avatar/index.stories.js +0 -107
  262. package/src/ui.image-avatar/index.vue +0 -121
  263. package/src/ui.image-icon/Docs.mdx +0 -16
  264. package/src/ui.image-icon/composables/attrs.composable.js +0 -65
  265. package/src/ui.image-icon/configs/default.config.js +0 -90
  266. package/src/ui.image-icon/constants/index.js +0 -5
  267. package/src/ui.image-icon/index.stories.js +0 -110
  268. package/src/ui.image-icon/index.vue +0 -233
  269. package/src/ui.image-logo/composables/attrs.composable.js +0 -41
  270. package/src/ui.image-logo/configs/default.config.js +0 -38
  271. package/src/ui.image-logo/constants/index.js +0 -5
  272. package/src/ui.image-logo/index.stories.js +0 -84
  273. package/src/ui.image-logo/index.vue +0 -98
  274. package/src/ui.loader-rendering/index.vue +0 -72
  275. package/src/ui.loader-rendering/store/index.js +0 -17
  276. package/src/ui.loader-top/components/TopProgress.vue +0 -277
  277. package/src/ui.loader-top/index.vue +0 -221
  278. package/src/ui.loader-top/store/index.js +0 -59
  279. package/src/ui.navigation-pagination/composables/attrs.composable.js +0 -41
  280. package/src/ui.navigation-pagination/configs/default.config.js +0 -24
  281. package/src/ui.navigation-pagination/constants/index.js +0 -8
  282. package/src/ui.navigation-pagination/index.stories.js +0 -52
  283. package/src/ui.navigation-pagination/index.vue +0 -276
  284. package/src/ui.navigation-stepper/composables/attrs.composable.js +0 -25
  285. package/src/ui.navigation-stepper/configs/default.config.js +0 -13
  286. package/src/ui.navigation-stepper/constants/index.js +0 -5
  287. package/src/ui.navigation-stepper/index.stories.js +0 -30
  288. package/src/ui.navigation-stepper/index.vue +0 -126
  289. package/src/ui.navigation-tab/composables/attrs.composable.js +0 -30
  290. package/src/ui.navigation-tab/configs/default.config.js +0 -22
  291. package/src/ui.navigation-tab/constants/index.js +0 -5
  292. package/src/ui.navigation-tab/index.stories.js +0 -57
  293. package/src/ui.navigation-tab/index.vue +0 -85
  294. package/src/ui.navigation-tabs/composables/attrs.composable.js +0 -24
  295. package/src/ui.navigation-tabs/configs/default.config.js +0 -14
  296. package/src/ui.navigation-tabs/constants/index.js +0 -5
  297. package/src/ui.navigation-tabs/index.stories.js +0 -69
  298. package/src/ui.navigation-tabs/index.vue +0 -99
  299. package/src/ui.notify/index.sto_ries.js +0 -102
  300. package/src/ui.notify/index.vue +0 -248
  301. package/src/ui.notify/services/index.js +0 -87
  302. package/src/ui.other-dot/composables/attrs.composable.js +0 -32
  303. package/src/ui.other-dot/configs/default.config.js +0 -21
  304. package/src/ui.other-dot/constants/index.js +0 -5
  305. package/src/ui.other-dot/index.stories.js +0 -77
  306. package/src/ui.other-dot/index.vue +0 -52
  307. package/src/ui.other-loader/composables/attrs.composable.js +0 -51
  308. package/src/ui.other-loader/configs/default.config.js +0 -47
  309. package/src/ui.other-loader/constants/index.js +0 -5
  310. package/src/ui.other-loader/index.stories.js +0 -78
  311. package/src/ui.other-loader/index.vue +0 -136
  312. package/src/ui.text-alert/composables/attrs.composable.js +0 -48
  313. package/src/ui.text-alert/configs/default.config.js +0 -51
  314. package/src/ui.text-alert/constatns/index.js +0 -5
  315. package/src/ui.text-alert/index.stories.js +0 -157
  316. package/src/ui.text-alert/index.vue +0 -122
  317. package/src/ui.text-badge/Docs.mdx +0 -16
  318. package/src/ui.text-badge/composables/attrs.composable.js +0 -49
  319. package/src/ui.text-badge/configs/default.config.js +0 -51
  320. package/src/ui.text-badge/constants/index.js +0 -5
  321. package/src/ui.text-badge/index.stories.js +0 -190
  322. package/src/ui.text-badge/index.vue +0 -120
  323. package/src/ui.text-block/composables/attrs.composable.js +0 -31
  324. package/src/ui.text-block/configs/default.config.js +0 -35
  325. package/src/ui.text-block/constatns/index.js +0 -5
  326. package/src/ui.text-block/index.stories.js +0 -112
  327. package/src/ui.text-block/index.vue +0 -76
  328. package/src/ui.text-empty/Docs.mdx +0 -16
  329. package/src/ui.text-empty/composables/attrs.composable.js +0 -43
  330. package/src/ui.text-empty/configs/default.config.js +0 -30
  331. package/src/ui.text-empty/constants/index.js +0 -5
  332. package/src/ui.text-empty/index.stories.js +0 -106
  333. package/src/ui.text-empty/index.vue +0 -95
  334. package/src/ui.text-file/composables/attrs.composable.js +0 -37
  335. package/src/ui.text-file/configs/default.config.js +0 -15
  336. package/src/ui.text-file/index.stories.js +0 -29
  337. package/src/ui.text-file/index.vue +0 -93
  338. package/src/ui.text-files/composables/attrs.composable.js +0 -19
  339. package/src/ui.text-files/configs/default.config.js +0 -9
  340. package/src/ui.text-files/constants/index.js +0 -5
  341. package/src/ui.text-files/index.stories.js +0 -32
  342. package/src/ui.text-files/index.vue +0 -87
  343. package/src/ui.text-header/Docs.mdx +0 -16
  344. package/src/ui.text-header/composables/attrs.composable.js +0 -34
  345. package/src/ui.text-header/configs/default.config.js +0 -45
  346. package/src/ui.text-header/constants/index.js +0 -5
  347. package/src/ui.text-header/index.stories.js +0 -106
  348. package/src/ui.text-header/index.vue +0 -83
  349. package/src/ui.text-money/Docs.mdx +0 -16
  350. package/src/ui.text-money/assets/credit.svg +0 -7
  351. package/src/ui.text-money/assets/debit.svg +0 -12
  352. package/src/ui.text-money/composables/attrs.composable.js +0 -65
  353. package/src/ui.text-money/configs/default.config.js +0 -69
  354. package/src/ui.text-money/constants/index.js +0 -7
  355. package/src/ui.text-money/index.stories.js +0 -265
  356. package/src/ui.text-money/index.vue +0 -204
  357. package/src/ui.text-money/services/money.services.js +0 -24
  358. package/src/ui.viewport/index.vue +0 -78
  359. package/src/ui.viewport/store/index.js +0 -47
@@ -1,730 +0,0 @@
1
- <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
3
- <div
4
- v-show="isShownStickyOrActionsHeader"
5
- ref="headerStickyRow"
6
- :style="tableRowWidthStyle"
7
- v-bind="customHeaderAttrs"
8
- >
9
- <UCheckbox
10
- v-if="selectable"
11
- v-model="selectAll"
12
- size="sm"
13
- :partial="!isSelectedAllRows"
14
- :data-cy="`${dataCy}-select-all`"
15
- v-bind="selectAllCheckboxAttrs"
16
- />
17
-
18
- <template v-if="selectedRows.length">
19
- <div v-bind="selectedRowsCountAttrs" v-text="selectedRows.length" />
20
-
21
- <!-- @slot Use it to add actions instead table head (it appears when you select rows in table). -->
22
- <slot name="thead-actions" :selected-rows="selectedRows" />
23
- </template>
24
-
25
- <template v-else>
26
- <div
27
- v-for="(column, index) in columns"
28
- :key="index"
29
- v-bind="customHeaderItemAttrs(column.thClass)"
30
- >
31
- <template v-if="hasSlotContent($slots[`thead-${column.key}`])">
32
- <!-- @slot Use it to customise table column. -->
33
- <slot :name="`thead-${column.key}`" :label="column.label" />
34
- </template>
35
-
36
- <template v-else>
37
- {{ column.label }}
38
- </template>
39
-
40
- <!-- @slot Use it to add content after table column. -->
41
- <slot :name="`thead-${column.key}-after`" />
42
- </div>
43
- </template>
44
-
45
- <!-- TODO: Change to loaders config after laoader refactoring -->
46
- <ULoaderTop
47
- v-if="resource && isHeaderSticky"
48
- :resource-names="resource"
49
- position="absolute"
50
- v-bind="headerStickyLoaderAttrs"
51
- />
52
- </div>
53
-
54
- <div ref="tableWrapper" v-bind="tableWrapperAttrs">
55
- <table v-bind="tableAttrs">
56
- <thead v-bind="headerAttrs" :style="tableRowWidthStyle">
57
- <tr v-if="hasSlotContent($slots['before-header-row'])" v-bind="headerRowAttrs">
58
- <slot name="before-header-row" />
59
- </tr>
60
-
61
- <tr ref="headerRow" v-bind="headerRowCellAttrs">
62
- <th v-if="selectable" v-bind="headerCellAttrs(config.headerCheckboxWrapper)">
63
- <UCheckbox
64
- v-model="selectAll"
65
- size="sm"
66
- :partial="!isSelectedAllRows"
67
- :data-cy="`${dataCy}-select-all`"
68
- v-bind="headerSelectAllCheckboxAttrs"
69
- />
70
- </th>
71
-
72
- <th
73
- v-for="(column, index) in normalizedColumns"
74
- :key="index"
75
- v-bind="headerCellAttrs(column.thClass)"
76
- >
77
- <template v-if="hasSlotContent($slots[`thead-${column.key}`])">
78
- <!-- @slot Use it to customise table column. -->
79
- <slot :name="`thead-${column.key}`" :label="column.label" />
80
- </template>
81
-
82
- <template v-else>
83
- {{ column.label }}
84
- </template>
85
-
86
- <!-- @slot Use it to add content after table column. -->
87
- <slot :name="`thead-${column.key}-after`" />
88
- </th>
89
- </tr>
90
-
91
- <!-- TODO: Change to loaders config after laoader refactoring -->
92
- <ULoaderTop
93
- v-if="resource"
94
- :resource-names="resource"
95
- position="absolute"
96
- v-bind="tableLoaderAttrs"
97
- />
98
- </thead>
99
-
100
- <tbody v-if="tableRows.length" v-bind="bodyAttrs">
101
- <template v-for="(row, rowIndex) in tableRows" :key="row.id">
102
- <tr v-if="rowIndex === firstRow" v-bind="beforeFirstRowAttrs">
103
- <UTableCell
104
- v-if="hasSlotContent($slots['before-first-row'])"
105
- :colspan="colsCount"
106
- :compact="compact"
107
- v-bind="beforeFirstRowCellAttrs"
108
- >
109
- <!-- @slot Use it to add something before first row. -->
110
- <slot name="before-first-row" />
111
- </UTableCell>
112
-
113
- <td v-else :colspan="colsCount" v-bind="beforeFirstRowCellAttrs" />
114
- </tr>
115
-
116
- <tr
117
- v-if="isShownDateSeparator(rowIndex) && row.date"
118
- v-bind="dateSeparatorRowAttrs(rowIndex)"
119
- >
120
- <td :colspan="colsCount">
121
- <UDivider
122
- size="xs"
123
- :label="getDateSeparatorLabel(row.date.separatorDate)"
124
- v-bind="dateSeparatorAttrs"
125
- />
126
- </td>
127
- </tr>
128
-
129
- <tr
130
- v-if="!isShownRow(row)"
131
- v-bind="bodyRowAttrs(rowClass(row))"
132
- :data-cy="`${dataCy}-row`"
133
- @click="onClickRow(row)"
134
- >
135
- <td v-if="selectable" :data-id="row.id" v-bind="checkboxBodyWrapperCellAttrs">
136
- <UCheckbox
137
- v-model="selectedRows"
138
- :value="row.id"
139
- size="sm"
140
- :data-cy="`${dataCy}-table-body-checkbox`"
141
- v-bind="tableCheckboxAttrs"
142
- @click.stop
143
- />
144
- </td>
145
-
146
- <UTableCell
147
- v-for="(value, key, index) in TableService.getFilteredRow(row, columns)"
148
- :key="index"
149
- :compact="compact"
150
- v-bind="bodyCellAttrs(getTdClass(key))"
151
- >
152
- <template v-if="Boolean($slots[`cell-${key}`])">
153
- <div
154
- :style="setLeftMargin(row.nestedLevel)"
155
- v-bind="toggleButtonWrapperAttrs(index)"
156
- @click="onClickShowItem(row)"
157
- >
158
- <div v-if="isShownIcon({ index, row })" v-bind="toggleItemButtonAttrs">
159
- <UIcon
160
- v-if="row.isHidden"
161
- :name="config.expandIconName"
162
- interactive
163
- size="xs"
164
- :color="isIconActive(row)"
165
- v-bind="expandIconAttrs"
166
- />
167
-
168
- <UIcon
169
- v-else
170
- :name="config.collapseIconName"
171
- interactive
172
- size="xs"
173
- v-bind="collapseIconAttrs"
174
- />
175
- </div>
176
- <!-- @slot Use it to customise table cell item (in whole column). -->
177
- <slot :name="`cell-${key}`" :value="value" :row="row" />
178
- </div>
179
- </template>
180
-
181
- <template v-else-if="Boolean($slots['cell-other'])">
182
- <slot name="cell-other" :value="value" :row="row" />
183
- </template>
184
-
185
- <template v-else-if="value.hasOwnProperty('secondaryRow')">
186
- <div :data-cy="`${dataCy}-${key}-cell`">
187
- {{ value.primaryRow || HYPHEN_SYMBOL }}
188
- </div>
189
-
190
- <div v-bind="secondaryRowAttrs">
191
- <template v-if="Array.isArray(value.secondaryRow)">
192
- <div v-for="(secondaryRow, idx) in value.secondaryRow" :key="idx">
193
- <span v-bind="secondaryRowEmptyAttrs">
194
- {{ secondaryRow }}
195
- </span>
196
- </div>
197
- </template>
198
-
199
- <template v-else>
200
- {{ value.secondaryRow }}
201
- </template>
202
- </div>
203
- </template>
204
-
205
- <template v-else>
206
- <div :data-cy="`${dataCy}-${key}-cell`">
207
- {{ value || HYPHEN_SYMBOL }}
208
- </div>
209
- </template>
210
- </UTableCell>
211
- </tr>
212
-
213
- <tr v-if="rowIndex === lastRow" v-bind="afterLastRowAttrs">
214
- <UTableCell
215
- v-if="hasSlotContent(slots['after-last-row'])"
216
- :compact="compact"
217
- :colspan="colsCount"
218
- v-bind="afterLastRowCellAttrs"
219
- >
220
- <!-- @slot Use it to add something after last row. -->
221
- <slot name="after-last-row" />
222
- </UTableCell>
223
-
224
- <td v-else :colspan="colsCount" v-bind="afterLastRowCellAttrs" />
225
- </tr>
226
- </template>
227
- </tbody>
228
-
229
- <tbody v-else>
230
- <tr>
231
- <td :colspan="colsCount">
232
- <slot name="empty-table-msg">
233
- <UEmpty
234
- size="sm"
235
- :description="emptyTableMsg"
236
- :data-cy="`${dataCy}-empty`"
237
- v-bind="emptyAttrs"
238
- />
239
- </slot>
240
- </td>
241
- </tr>
242
- </tbody>
243
-
244
- <tfoot v-if="hasSlotContent($slots['tfoot'])" v-bind="footerClassesAttrs">
245
- <tr ref="footerRow" v-bind="footerRowAttrs">
246
- <UTableCell v-if="selectable" :compact="compact" v-bind="footerCellAttrs" />
247
-
248
- <!-- @slot Use it to add something in table footer. -->
249
- <slot name="tfoot" :cols-count="colsCount" />
250
- </tr>
251
-
252
- <tr ref="footerStickyRow" :style="tableRowWidthStyle" v-bind="footerStickyRowAttrs">
253
- <UTableCell v-if="selectable" :compact="compact" v-bind="footerCellAttrs" />
254
-
255
- <!-- @slot Use it to add something in table footer. -->
256
- <slot name="tfoot" :cols-count="colsCount" />
257
- </tr>
258
- </tfoot>
259
- </table>
260
- </div>
261
- </div>
262
- </template>
263
-
264
- <script setup>
265
- import {
266
- ref,
267
- computed,
268
- watch,
269
- useSlots,
270
- onMounted,
271
- onUpdated,
272
- nextTick,
273
- onBeforeUnmount,
274
- } from "vue";
275
-
276
- import UIcon from "../ui.image-icon";
277
- import UEmpty from "../ui.text-empty";
278
- import UDivider from "../ui.container-divider";
279
- import UCheckbox from "../ui.form-checkbox";
280
- import ULoaderTop from "../ui.loader-top";
281
- import UTableCell from "../ui.data-table-cell";
282
-
283
- import UIService from "../service.ui";
284
-
285
- import defaultConfig from "./configs/default.config";
286
- import TableService from "./services/table.service";
287
-
288
- import { HYPHEN_SYMBOL, PX_IN_REM } from "../service.ui";
289
- import { UTable } from "./constants";
290
- import { useAttrs } from "./composables/attrs.composable";
291
-
292
- /* Should be a string for correct web-types gen */
293
- defineOptions({ name: "UTable", inheritAttrs: false });
294
-
295
- const props = defineProps({
296
- /**
297
- * Table columns.
298
- */
299
- columns: {
300
- type: Array,
301
- required: true,
302
- },
303
-
304
- /**
305
- * Table rows data.
306
- */
307
- rows: {
308
- type: Array,
309
- required: true,
310
- },
311
-
312
- /**
313
- * Show/hide date divider or set label for specific date.
314
- */
315
- dateDivider: {
316
- type: [Array, Boolean],
317
- default: false,
318
- },
319
-
320
- /**
321
- * Enable selecting table rows.
322
- */
323
- selectable: {
324
- type: Boolean,
325
- default: UIService.get(defaultConfig, UTable).default.selectable,
326
- },
327
-
328
- /**
329
- * Makes the table compact (fewer spacings).
330
- */
331
- compact: {
332
- type: Boolean,
333
- default: UIService.get(defaultConfig, UTable).default.compact,
334
- },
335
-
336
- /**
337
- * Set header sticky.
338
- */
339
- stickyHeader: {
340
- type: Boolean,
341
- default: UIService.get(defaultConfig, UTable).default.stickyHeader,
342
- },
343
-
344
- /**
345
- * Set footer sticky.
346
- */
347
- stickyFooter: {
348
- type: Boolean,
349
- default: UIService.get(defaultConfig, UTable).default.stickyFooter,
350
- },
351
-
352
- /**
353
- * Enable nesting rows.
354
- */
355
- nesting: {
356
- type: Boolean,
357
- default: UIService.get(defaultConfig, UTable).default.nesting,
358
- },
359
-
360
- /**
361
- * Sets the nesting level from which folding button need to be shown.
362
- */
363
- nestingFrom: {
364
- type: Number,
365
- default: UIService.get(defaultConfig, UTable).default.nestingFrom,
366
- },
367
-
368
- /**
369
- * Indicate if filters applied.
370
- */
371
- filters: {
372
- type: Boolean,
373
- default: false,
374
- },
375
-
376
- /**
377
- * Set loader resource name to activate table top loader exact for that resource.
378
- */
379
- resource: {
380
- type: String,
381
- default: "",
382
- },
383
-
384
- /**
385
- * Component ui config object.
386
- */
387
- config: {
388
- type: Object,
389
- default: () => ({}),
390
- },
391
-
392
- /**
393
- * Data-cy attribute for automated testing.
394
- */
395
- dataCy: {
396
- type: String,
397
- default: "",
398
- },
399
- });
400
-
401
- const emit = defineEmits(["clickRow", "update:rows"]);
402
-
403
- defineExpose({ clearSelectedItems });
404
-
405
- const slots = useSlots();
406
-
407
- const selectAll = ref(false);
408
- const canSelectAll = ref(true);
409
- const selectedRows = ref([]);
410
- const tableRows = ref([]);
411
- const hiddenIds = ref([]);
412
- const firstRow = ref(0);
413
- const tableWidth = ref(0);
414
- const tableHeight = ref(0);
415
- const pagePositionY = ref(0);
416
-
417
- const headerRow = ref(null);
418
- const footerRow = ref(null);
419
- const tableWrapper = ref(null);
420
- const footerStickyRow = ref(null);
421
- const headerStickyRow = ref(null);
422
-
423
- const isHeaderSticky = computed(() => {
424
- return !isShownHeaderPosition.value;
425
- });
426
-
427
- const isFooterSticky = computed(
428
- () =>
429
- window.innerHeight < tableHeight.value &&
430
- props.stickyFooter &&
431
- !isShownFooterPosition.value &&
432
- isCheckedMoreOneTableItems.value,
433
- );
434
-
435
- const {
436
- config,
437
- wrapperAttrs,
438
- customHeaderItemAttrs,
439
- customHeaderAttrs,
440
- tableWrapperAttrs,
441
- headerRowCellAttrs,
442
- afterLastRowAttrs,
443
- afterLastRowCellAttrs,
444
- beforeFirstRowAttrs,
445
- beforeFirstRowCellAttrs,
446
- bodyRowAttrs,
447
- footerClassesAttrs,
448
- dateSeparatorRowAttrs,
449
- toggleButtonWrapperAttrs,
450
- headerCellAttrs,
451
- bodyCellAttrs,
452
- checkboxBodyWrapperCellAttrs,
453
- footerCellAttrs,
454
- selectAllCheckboxAttrs,
455
- headerSelectAllCheckboxAttrs,
456
- tableCheckboxAttrs,
457
- collapseIconAttrs,
458
- expandIconAttrs,
459
- emptyAttrs,
460
- dateSeparatorAttrs,
461
- selectedRowsCountAttrs,
462
- headerStickyLoaderAttrs,
463
- tableAttrs,
464
- headerRowAttrs,
465
- tableLoaderAttrs,
466
- bodyAttrs,
467
- toggleItemButtonAttrs,
468
- secondaryRowAttrs,
469
- secondaryRowEmptyAttrs,
470
- footerRowAttrs,
471
- footerStickyRowAttrs,
472
- hasSlotContent,
473
- headerAttrs,
474
- } = useAttrs(props, { selectedRows, isHeaderSticky, tableRows, isFooterSticky });
475
-
476
- const normalizedColumns = computed(() => TableService.normalizeColumns(props.columns));
477
-
478
- const isSelectedAllRows = computed(() => {
479
- return selectedRows.value.length === tableRows.value.length;
480
- });
481
-
482
- const colsCount = computed(() => {
483
- return props.columns.length + 1;
484
- });
485
-
486
- const lastRow = computed(() => {
487
- return props.rows.length - 1;
488
- });
489
-
490
- const isShownStickyOrActionsHeader = computed(() => {
491
- return isHeaderSticky.value || selectedRows.value.length;
492
- });
493
-
494
- const isShownHeaderPosition = computed(() => {
495
- const positionForFixHeader = headerRow.value?.getBoundingClientRect().top + window.scrollY || 0;
496
-
497
- return positionForFixHeader >= pagePositionY.value;
498
- });
499
-
500
- const isShownFooterPosition = computed(() => {
501
- const pageBottom = pagePositionY.value + window.innerHeight;
502
- const positionForFixFooter = footerRow.value?.getBoundingClientRect().bottom + window.scrollY;
503
-
504
- return pageBottom >= positionForFixFooter;
505
- });
506
-
507
- const isCheckedMoreOneTableItems = computed(() => {
508
- return tableRows.value.filter((item) => item.isChecked).length > 1;
509
- });
510
-
511
- const tableRowWidthStyle = computed(() => ({ width: `${tableWidth.value / PX_IN_REM}rem` }));
512
-
513
- const hasContentBeforeFirstRowSlot = computed(() => {
514
- return hasSlotContent(slots["before-first-row"])
515
- ? slots["before-first-row"]()?.some((item) => !!item.type?.render)
516
- : false;
517
- });
518
-
519
- const emptyTableMsg = computed(() => {
520
- return props.filters ? config.value.i18n.noResultsForFilters : config.value.i18n.noItems;
521
- });
522
-
523
- watch(selectAll, onChangeSelectAll, { deep: true });
524
- watch(selectedRows, onChangeSelectedRows, { deep: true });
525
- watch(tableRows, () => emit("update:rows", tableRows), { deep: true });
526
- watch(() => tableRows.value.length, updateSelectedRows);
527
- watch(() => props.rows, synchronizeTableItemsWithProps, { deep: true });
528
- watch(isHeaderSticky, setHeaderItemsWidth);
529
- watch(isFooterSticky, (newValue) =>
530
- newValue ? nextTick(setFooterItemsWidth) : setFooterItemsWidth(true),
531
- );
532
- watch(
533
- () => selectedRows.value.length,
534
- () => {
535
- tableRows.value = tableRows.value.map((row) => {
536
- row.isChecked = selectedRows.value.includes(row.id);
537
-
538
- return row;
539
- });
540
- },
541
- );
542
-
543
- tableRows.value = props.rows;
544
-
545
- onMounted(() => {
546
- document.addEventListener("keyup", onKeyupClearCheckbox);
547
- document.addEventListener("scroll", onScrollGetPosition, { passive: true });
548
- window.addEventListener("resize", onWindowResizeSetWidth);
549
- });
550
-
551
- onUpdated(() => {
552
- tableHeight.value = tableWrapper.value?.offsetHeight;
553
- tableWidth.value = tableWrapper.value?.offsetWidth;
554
- });
555
-
556
- onBeforeUnmount(() => {
557
- document.removeEventListener("keyup", onKeyupClearCheckbox);
558
- document.removeEventListener("scroll", onScrollGetPosition);
559
- window.removeEventListener("resize", onWindowResizeSetWidth);
560
- });
561
-
562
- function onWindowResizeSetWidth() {
563
- tableWidth.value = tableWrapper.value.offsetWidth;
564
-
565
- setHeaderItemsWidth();
566
- setFooterItemsWidth();
567
- }
568
-
569
- function isShownIcon({ index, row }) {
570
- const isChildren = row.childrenIds?.length > 0;
571
- const isWithinNestingLevel = row.nestedLevel >= props.nestingFrom;
572
-
573
- const isFirstRow = index === 0;
574
-
575
- return isFirstRow && (isChildren || row.isNestingRow) && props.nesting && isWithinNestingLevel;
576
- }
577
-
578
- function isIconActive(row) {
579
- return !row.childrenIds?.length ? "grayscale" : "";
580
- }
581
-
582
- function onClickShowItem(row) {
583
- if (!props.nesting || !row.childrenIds.length) return;
584
- const [firstElement] = row.childrenIds;
585
-
586
- row.isHidden = !row.isHidden;
587
-
588
- if (row.isHidden && row.childrenIds.length) {
589
- hiddenIds.value.push(...row.childrenIds);
590
- } else {
591
- hiddenIds.value =
592
- row.nestedLevel === props.nestingFromLevel
593
- ? row.childrenIds.filter((item) => !hiddenIds.value.includes(item))
594
- : hiddenIds.value.filter((item) => item !== firstElement);
595
- }
596
- }
597
-
598
- function getDateSeparatorLabel(separatorDate) {
599
- return Array.isArray(props.dateDivider)
600
- ? props.dateDivider.find((dateItem) => dateItem.date === separatorDate)?.label || separatorDate
601
- : separatorDate;
602
- }
603
-
604
- function setLeftMargin(nestedLevel) {
605
- return { marginLeft: `${nestedLevel * 1.5}rem` };
606
- }
607
-
608
- function isShownRow(row) {
609
- if (hiddenIds.value.includes(row.id)) {
610
- row.isHidden = true;
611
- }
612
-
613
- return hiddenIds.value.includes(row.id);
614
- }
615
-
616
- function setFooterItemsWidth(setNullWidth) {
617
- const ZERO_WIDTH = 0;
618
-
619
- if (!props.stickyFooter) return;
620
-
621
- const mainFooterItems = [...footerRow.value.children];
622
- const stickyFooterItems = [...footerStickyRow.value.children];
623
-
624
- stickyFooterItems.forEach((item, index) => {
625
- item.style.width = setNullWidth
626
- ? `${ZERO_WIDTH}rem`
627
- : `${mainFooterItems[index].offsetWidth / PX_IN_REM}rem`;
628
- });
629
- }
630
-
631
- function setHeaderItemsWidth() {
632
- if (selectedRows.value.length) return;
633
-
634
- const mainHeaderItems = [...(headerRow.value?.children || [])];
635
- const stickyHeaderItems = [...(headerStickyRow.value?.children || [])];
636
-
637
- stickyHeaderItems.forEach((item, index) => {
638
- item.style.width = `${mainHeaderItems[index]?.offsetWidth / PX_IN_REM}rem`;
639
- });
640
- }
641
-
642
- function onScrollGetPosition() {
643
- pagePositionY.value = window.scrollY;
644
- }
645
-
646
- function onKeyupClearCheckbox(event) {
647
- const escKeyCode = 27;
648
-
649
- if (event.keyCode === escKeyCode && props.selectable) {
650
- selectedRows.value = [];
651
- }
652
- }
653
-
654
- function synchronizeTableItemsWithProps() {
655
- if (!props.rows.length || props.rows.length !== tableRows.value.length) {
656
- selectedRows.value = [];
657
- }
658
-
659
- tableRows.value = props.rows;
660
-
661
- tableRows.value.forEach((item) => {
662
- if (props.nesting && item.isHidden && item.childrenIds?.length) {
663
- hiddenIds.value.push(...item.childrenIds);
664
- }
665
- });
666
- }
667
-
668
- function updateSelectedRows() {
669
- selectedRows.value = tableRows.value.filter((row) => row.isChecked).map((row) => row.id);
670
- }
671
-
672
- function isShownDateSeparator(rowIndex) {
673
- const prevIndex = rowIndex ? rowIndex - 1 : rowIndex;
674
- const nextIndex = rowIndex ? rowIndex + 1 : rowIndex;
675
- const prevItem = tableRows.value[prevIndex];
676
- const nextItem = tableRows.value[nextIndex];
677
- const currentItem = tableRows.value[rowIndex];
678
-
679
- if (rowIndex === 0) {
680
- return hasContentBeforeFirstRowSlot.value;
681
- }
682
-
683
- const isPrevSameDate = prevItem?.date?.primaryRow === currentItem?.date?.primaryRow;
684
- const isNextSameDate = nextItem?.date?.primaryRow === currentItem?.date?.primaryRow;
685
-
686
- return isPrevSameDate && !isNextSameDate && props.dateDivider;
687
- }
688
-
689
- function rowClass(row) {
690
- return selectedRows.value.includes(row.id) ? config.value.checkedRow : "";
691
- }
692
-
693
- function onClickRow(row) {
694
- emit("clickRow", row);
695
- }
696
-
697
- function getTdClass(key) {
698
- return props.columns.find((column) => column.key === key)?.tdClass;
699
- }
700
-
701
- function onChangeSelectAll(selectAll) {
702
- if (selectAll && canSelectAll.value) {
703
- selectedRows.value = tableRows.value.map((item) => item.id);
704
-
705
- tableRows.value.forEach((item) => (item.isChecked = true));
706
- } else if (!selectAll) {
707
- selectedRows.value = [];
708
-
709
- tableRows.value.forEach((item) => (item.isChecked = false));
710
- }
711
-
712
- canSelectAll.value = true;
713
- }
714
-
715
- function onChangeSelectedRows(selectedRows) {
716
- if (selectedRows.length) {
717
- canSelectAll.value = false;
718
-
719
- isCheckedMoreOneTableItems.value ? setFooterItemsWidth() : "";
720
- } else {
721
- nextTick(setHeaderItemsWidth);
722
- }
723
-
724
- selectAll.value = !!selectedRows.length;
725
- }
726
-
727
- function clearSelectedItems() {
728
- selectedRows.value = [];
729
- }
730
- </script>