mediacube-ui-v2 0.0.38 → 0.0.40

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 (487) hide show
  1. package/dist/assets/iconsSprite.svg +1 -0
  2. package/dist/assets/img/no_table_data.png +0 -0
  3. package/dist/assets/img/no_user.png +0 -0
  4. package/dist/mediacube-ui-v2.js +2479 -2339
  5. package/dist/mediacube-ui-v2.umd.cjs +4 -4
  6. package/dist/types/App.vue.d.ts +2 -0
  7. package/dist/types/assets/tokens/json/animations.json.d.ts +8 -0
  8. package/dist/types/assets/tokens/json/border-radius.json.d.ts +26 -0
  9. package/dist/types/assets/tokens/json/box-shadows.json.d.ts +26 -0
  10. package/dist/types/assets/tokens/json/colors.json.d.ts +73 -0
  11. package/dist/types/assets/tokens/json/durations.json.d.ts +12 -0
  12. package/dist/types/assets/tokens/json/easings.json.d.ts +5 -0
  13. package/dist/types/assets/tokens/json/font-families.json.d.ts +6 -0
  14. package/dist/types/assets/tokens/json/font-sizes.json.d.ts +20 -0
  15. package/dist/types/assets/tokens/json/font-weights.json.d.ts +14 -0
  16. package/dist/types/assets/tokens/json/gradients.json.d.ts +15 -0
  17. package/dist/types/assets/tokens/json/index.d.ts +18 -0
  18. package/dist/types/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  19. package/dist/types/assets/tokens/json/line-heights.json.d.ts +20 -0
  20. package/dist/types/assets/tokens/json/media-queries.json.d.ts +28 -0
  21. package/dist/types/assets/tokens/json/opacities.json.d.ts +7 -0
  22. package/dist/types/assets/tokens/json/sizes.json.d.ts +44 -0
  23. package/dist/types/assets/tokens/json/spacings.json.d.ts +36 -0
  24. package/dist/types/assets/tokens/json/z-indexes.json.d.ts +14 -0
  25. package/dist/{src → types}/components/elements/McAvatar/McAvatar.vue.d.ts +5 -6
  26. package/dist/{src → types}/components/elements/McBadge/McBadge.vue.d.ts +3 -4
  27. package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
  28. package/dist/{src → types}/components/elements/McButton/McButton.vue.d.ts +9 -11
  29. package/dist/{src → types}/components/elements/McChip/McChip.vue.d.ts +6 -8
  30. package/dist/{src → types}/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -3
  31. package/dist/{src → types}/components/elements/McDraggable/McDraggable.vue.d.ts +4 -5
  32. package/dist/{src → types}/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -2
  33. package/dist/{src → types}/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -9
  34. package/dist/{src → types}/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -2
  35. package/dist/{src → types}/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -7
  36. package/dist/{src → types}/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -10
  37. package/dist/{src → types}/components/elements/McFieldText/McFieldText.vue.d.ts +9 -10
  38. package/dist/{src → types}/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -7
  39. package/dist/{src → types}/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -5
  40. package/dist/{src → types}/components/elements/McNodata/McNoData.vue.d.ts +5 -6
  41. package/dist/{src → types}/components/elements/McNotification/McNotification.vue.d.ts +5 -6
  42. package/dist/{src → types}/components/elements/McProgress/McProgress.vue.d.ts +5 -6
  43. package/dist/{src → types}/components/elements/McSeparator/McSeparator.vue.d.ts +4 -5
  44. package/dist/{src → types}/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -6
  45. package/dist/{src → types}/components/elements/McStack/McStack.vue.d.ts +4 -5
  46. package/dist/{src → types}/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -10
  47. package/dist/{src → types}/components/elements/McTitle/McTitle.vue.d.ts +7 -8
  48. package/dist/{src → types}/components/elements/McTooltip/McTooltip.vue.d.ts +6 -7
  49. package/dist/{src → types}/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -5
  50. package/dist/{src → types}/components/patterns/McCell/McCell.vue.d.ts +6 -7
  51. package/dist/{src → types}/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -7
  52. package/dist/{src → types}/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -8
  53. package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
  54. package/dist/{src → types}/components/patterns/McFilter/McFilter.vue.d.ts +6 -7
  55. package/dist/{src → types}/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -7
  56. package/dist/{src → types}/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -7
  57. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -7
  58. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -7
  59. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -7
  60. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -7
  61. package/dist/{src → types}/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -5
  62. package/dist/{src → types}/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -6
  63. package/dist/{src → types}/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -5
  64. package/dist/{src → types}/components/patterns/McPreview/McPreview.vue.d.ts +4 -5
  65. package/dist/{src → types}/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -8
  66. package/dist/{src → types}/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -6
  67. package/dist/{src → types}/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -6
  68. package/dist/{src → types}/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -7
  69. package/dist/{src → types}/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -7
  70. package/dist/{src → types}/components/patterns/McTab/McTab.vue.d.ts +5 -6
  71. package/dist/{src → types}/components/patterns/McTabs/McTabs.vue.d.ts +7 -9
  72. package/dist/{src → types}/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -8
  73. package/dist/{src → types}/components/templates/McDrawer/McDrawer.vue.d.ts +7 -8
  74. package/dist/{src → types}/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -6
  75. package/dist/{src → types}/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -5
  76. package/dist/{src → types}/components/templates/McModal/McModal.vue.d.ts +7 -8
  77. package/dist/{src → types}/components/templates/McModal/McModalContainer.vue.d.ts +5 -6
  78. package/dist/{src → types}/components/templates/McTable/McTable/McTable.vue.d.ts +7 -8
  79. package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -7
  80. package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -5
  81. package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
  82. package/dist/{src → types}/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -7
  83. package/dist/{src → types}/components/templates/McTopBar/McTopBar.vue.d.ts +4 -5
  84. package/dist/{src → types}/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -5
  85. package/dist/{src/composables/index.js → types/composables/index.d.ts} +1 -1
  86. package/dist/{src → types}/composables/useDrawer.d.ts +1 -2
  87. package/dist/{src → types}/composables/useEncodeDecode.d.ts +0 -1
  88. package/dist/types/composables/useFieldErrors.d.ts +5 -0
  89. package/dist/{src → types}/composables/useHelper.d.ts +0 -1
  90. package/dist/{src → types}/composables/useModal.d.ts +0 -1
  91. package/dist/{src → types}/composables/useRandomNumber.d.ts +0 -1
  92. package/dist/{src → types}/composables/useTooltip.d.ts +1 -2
  93. package/dist/{src → types}/consts/table.d.ts +0 -1
  94. package/dist/{src → types}/enums/Cell.d.ts +0 -1
  95. package/dist/{src → types}/enums/Chip.d.ts +0 -1
  96. package/dist/{src → types}/enums/Datepicker.d.ts +0 -1
  97. package/dist/{src → types}/enums/Drawer.d.ts +0 -1
  98. package/dist/{src → types}/enums/Dropdown.d.ts +0 -1
  99. package/dist/{src → types}/enums/Filter.d.ts +0 -1
  100. package/dist/{src → types}/enums/Grid.d.ts +0 -1
  101. package/dist/{src → types}/enums/Input.d.ts +0 -1
  102. package/dist/{src → types}/enums/Modal.d.ts +0 -1
  103. package/dist/{src → types}/enums/Preview.d.ts +0 -1
  104. package/dist/{src → types}/enums/Radio.d.ts +0 -1
  105. package/dist/{src → types}/enums/RadioGroup.d.ts +0 -1
  106. package/dist/{src → types}/enums/Select.d.ts +0 -1
  107. package/dist/{src → types}/enums/Sidebar.d.ts +0 -1
  108. package/dist/{src → types}/enums/Tab.d.ts +0 -1
  109. package/dist/{src → types}/enums/Title.d.ts +0 -1
  110. package/dist/{src → types}/enums/Tooltip.d.ts +0 -1
  111. package/dist/{src/enums/index.js → types/enums/index.d.ts} +0 -1
  112. package/dist/{src → types}/enums/ui/Alignment.d.ts +0 -1
  113. package/dist/{src → types}/enums/ui/Button.d.ts +0 -1
  114. package/dist/{src → types}/enums/ui/Directions.d.ts +0 -1
  115. package/dist/{src → types}/enums/ui/Weights.d.ts +0 -1
  116. package/dist/{src → types}/index.d.ts +0 -2
  117. package/dist/types/main.d.ts +0 -0
  118. package/dist/{src → types}/mocks/authUser.d.ts +0 -1
  119. package/dist/{src → types}/mocks/categories.d.ts +0 -1
  120. package/dist/{src → types}/mocks/filterMocks.d.ts +1 -2
  121. package/dist/types/mocks/icons.json.d.ts +3 -0
  122. package/dist/{src → types}/mocks/menuLangs.d.ts +0 -1
  123. package/dist/{src → types}/mocks/sidebar.d.ts +1 -2
  124. package/dist/{src → types}/mocks/tableData.d.ts +1 -2
  125. package/dist/{src → types}/types/IButton.d.ts +5 -6
  126. package/dist/{src → types}/types/ICell.d.ts +1 -2
  127. package/dist/{src → types}/types/IChip.d.ts +2 -3
  128. package/dist/{src → types}/types/ICollapse.d.ts +0 -1
  129. package/dist/{src → types}/types/IDatepicker.d.ts +1 -2
  130. package/dist/{src → types}/types/IDirections.d.ts +1 -2
  131. package/dist/{src → types}/types/IDrawer.d.ts +2 -3
  132. package/dist/{src → types}/types/IDropdown.d.ts +1 -2
  133. package/dist/{src → types}/types/IFilter.d.ts +1 -2
  134. package/dist/{src → types}/types/IGrid.d.ts +0 -1
  135. package/dist/{src → types}/types/IInput.d.ts +1 -2
  136. package/dist/{src → types}/types/IModal.d.ts +2 -3
  137. package/dist/{src → types}/types/IPreview.d.ts +1 -2
  138. package/dist/{src → types}/types/IRadio.d.ts +1 -2
  139. package/dist/{src → types}/types/IRadioGroup.d.ts +1 -2
  140. package/dist/{src → types}/types/IRoute.d.ts +0 -1
  141. package/dist/{src → types}/types/ISelect.d.ts +1 -2
  142. package/dist/{src → types}/types/ISideBar.d.ts +5 -6
  143. package/dist/{src → types}/types/ITable.d.ts +2 -3
  144. package/dist/{src → types}/types/ITabs.d.ts +4 -5
  145. package/dist/{src → types}/types/ITitle.d.ts +1 -2
  146. package/dist/{src → types}/types/ITooltip.d.ts +1 -2
  147. package/dist/{src/types/index.js → types/types/index.d.ts} +0 -2
  148. package/dist/{src → types}/types/styles/Alignment.d.ts +1 -2
  149. package/dist/{src → types}/types/styles/AvatarSizes.d.ts +0 -1
  150. package/dist/{src → types}/types/styles/Colors.d.ts +0 -1
  151. package/dist/{src → types}/types/styles/Durations.d.ts +0 -1
  152. package/dist/{src → types}/types/styles/FontSizes.d.ts +0 -1
  153. package/dist/{src → types}/types/styles/FontWeights.d.ts +0 -1
  154. package/dist/{src → types}/types/styles/Grid.d.ts +1 -2
  155. package/dist/{src → types}/types/styles/Icons.d.ts +0 -1
  156. package/dist/{src → types}/types/styles/LineHeights.d.ts +0 -1
  157. package/dist/{src → types}/types/styles/MediaQueries.d.ts +0 -1
  158. package/dist/{src → types}/types/styles/Radiuses.d.ts +0 -1
  159. package/dist/{src → types}/types/styles/Sizes.d.ts +0 -1
  160. package/dist/{src → types}/types/styles/Spaces.d.ts +0 -1
  161. package/dist/types/types/styles/Weights.d.ts +2 -0
  162. package/dist/{src → types}/utils/dayjs.d.ts +0 -1
  163. package/dist/{src → types}/utils/mcGridColAdaptiveProps.d.ts +1 -2
  164. package/dist/{src → types}/utils/mcTitleAdaptiveProps.d.ts +1 -2
  165. package/package.json +12 -13
  166. package/dist/src/App.vue.d.ts +0 -3
  167. package/dist/src/App.vue.d.ts.map +0 -1
  168. package/dist/src/App.vue.js +0 -54
  169. package/dist/src/assets/tokens/json/animations.json +0 -6
  170. package/dist/src/assets/tokens/json/border-radius.json +0 -24
  171. package/dist/src/assets/tokens/json/box-shadows.json +0 -24
  172. package/dist/src/assets/tokens/json/colors.json +0 -71
  173. package/dist/src/assets/tokens/json/durations.json +0 -10
  174. package/dist/src/assets/tokens/json/easings.json +0 -3
  175. package/dist/src/assets/tokens/json/font-families.json +0 -4
  176. package/dist/src/assets/tokens/json/font-sizes.json +0 -18
  177. package/dist/src/assets/tokens/json/font-weights.json +0 -12
  178. package/dist/src/assets/tokens/json/gradients.json +0 -13
  179. package/dist/src/assets/tokens/json/index.d.ts +0 -19
  180. package/dist/src/assets/tokens/json/index.d.ts.map +0 -1
  181. package/dist/src/assets/tokens/json/index.js +0 -18
  182. package/dist/src/assets/tokens/json/letter-spacings.json +0 -4
  183. package/dist/src/assets/tokens/json/line-heights.json +0 -18
  184. package/dist/src/assets/tokens/json/media-queries.json +0 -26
  185. package/dist/src/assets/tokens/json/opacities.json +0 -5
  186. package/dist/src/assets/tokens/json/sizes.json +0 -42
  187. package/dist/src/assets/tokens/json/spacings.json +0 -34
  188. package/dist/src/assets/tokens/json/z-indexes.json +0 -12
  189. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +0 -1
  190. package/dist/src/components/elements/McAvatar/McAvatar.vue.js +0 -412
  191. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +0 -1
  192. package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
  193. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -15
  194. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +0 -1
  195. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
  196. package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +0 -1
  197. package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
  198. package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +0 -1
  199. package/dist/src/components/elements/McChip/McChip.vue.js +0 -326
  200. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts +0 -30
  201. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts.map +0 -1
  202. package/dist/src/components/elements/McCropper/McCropper.vue.js +0 -155
  203. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +0 -1
  204. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.js +0 -1251
  205. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +0 -1
  206. package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
  207. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +0 -1
  208. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
  209. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +0 -1
  210. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
  211. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +0 -1
  212. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
  213. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +0 -1
  214. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
  215. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +0 -1
  216. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
  217. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +0 -1
  218. package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
  219. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +0 -1
  220. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
  221. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +0 -1
  222. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
  223. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +0 -1
  224. package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
  225. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +0 -1
  226. package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
  227. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +0 -1
  228. package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
  229. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +0 -1
  230. package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
  231. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +0 -1
  232. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
  233. package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +0 -1
  234. package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
  235. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +0 -1
  236. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
  237. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +0 -1
  238. package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
  239. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +0 -1
  240. package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
  241. package/dist/src/components/index.d.ts +0 -70
  242. package/dist/src/components/index.d.ts.map +0 -1
  243. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +0 -1
  244. package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
  245. package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +0 -1
  246. package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
  247. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +0 -1
  248. package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
  249. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +0 -1
  250. package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
  251. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -23
  252. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +0 -1
  253. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
  254. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +0 -1
  255. package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
  256. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +0 -1
  257. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
  258. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +0 -1
  259. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
  260. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +0 -1
  261. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
  262. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +0 -1
  263. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
  264. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +0 -1
  265. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
  266. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +0 -1
  267. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
  268. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +0 -1
  269. package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
  270. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +0 -1
  271. package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
  272. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +0 -1
  273. package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
  274. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +0 -1
  275. package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
  276. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +0 -1
  277. package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
  278. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +0 -1
  279. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
  280. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +0 -1
  281. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
  282. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +0 -1
  283. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
  284. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +0 -1
  285. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
  286. package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +0 -1
  287. package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
  288. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +0 -1
  289. package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
  290. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +0 -1
  291. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
  292. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +0 -1
  293. package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
  294. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +0 -1
  295. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
  296. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +0 -1
  297. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
  298. package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +0 -1
  299. package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
  300. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +0 -1
  301. package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
  302. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +0 -1
  303. package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
  304. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +0 -1
  305. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
  306. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +0 -1
  307. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
  308. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -19
  309. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +0 -1
  310. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
  311. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +0 -1
  312. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
  313. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +0 -1
  314. package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
  315. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +0 -1
  316. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
  317. package/dist/src/composables/index.d.ts +0 -8
  318. package/dist/src/composables/index.d.ts.map +0 -1
  319. package/dist/src/composables/useDrawer.d.ts.map +0 -1
  320. package/dist/src/composables/useDrawer.js +0 -72
  321. package/dist/src/composables/useEncodeDecode.d.ts.map +0 -1
  322. package/dist/src/composables/useEncodeDecode.js +0 -25
  323. package/dist/src/composables/useFieldErrors.d.ts +0 -6
  324. package/dist/src/composables/useFieldErrors.d.ts.map +0 -1
  325. package/dist/src/composables/useFieldErrors.js +0 -20
  326. package/dist/src/composables/useHelper.d.ts.map +0 -1
  327. package/dist/src/composables/useHelper.js +0 -79
  328. package/dist/src/composables/useModal.d.ts.map +0 -1
  329. package/dist/src/composables/useModal.js +0 -71
  330. package/dist/src/composables/useRandomNumber.d.ts.map +0 -1
  331. package/dist/src/composables/useRandomNumber.js +0 -10
  332. package/dist/src/composables/useTooltip.d.ts.map +0 -1
  333. package/dist/src/composables/useTooltip.js +0 -154
  334. package/dist/src/consts/index.d.ts +0 -2
  335. package/dist/src/consts/index.d.ts.map +0 -1
  336. package/dist/src/consts/table.d.ts.map +0 -1
  337. package/dist/src/consts/table.js +0 -6
  338. package/dist/src/enums/Cell.d.ts.map +0 -1
  339. package/dist/src/enums/Cell.js +0 -6
  340. package/dist/src/enums/Chip.d.ts.map +0 -1
  341. package/dist/src/enums/Chip.js +0 -11
  342. package/dist/src/enums/Datepicker.d.ts.map +0 -1
  343. package/dist/src/enums/Datepicker.js +0 -42
  344. package/dist/src/enums/Drawer.d.ts.map +0 -1
  345. package/dist/src/enums/Drawer.js +0 -5
  346. package/dist/src/enums/Dropdown.d.ts.map +0 -1
  347. package/dist/src/enums/Dropdown.js +0 -12
  348. package/dist/src/enums/Filter.d.ts.map +0 -1
  349. package/dist/src/enums/Filter.js +0 -14
  350. package/dist/src/enums/Grid.d.ts.map +0 -1
  351. package/dist/src/enums/Grid.js +0 -24
  352. package/dist/src/enums/Input.d.ts.map +0 -1
  353. package/dist/src/enums/Input.js +0 -20
  354. package/dist/src/enums/Modal.d.ts.map +0 -1
  355. package/dist/src/enums/Modal.js +0 -5
  356. package/dist/src/enums/Preview.d.ts.map +0 -1
  357. package/dist/src/enums/Preview.js +0 -6
  358. package/dist/src/enums/Radio.d.ts.map +0 -1
  359. package/dist/src/enums/Radio.js +0 -5
  360. package/dist/src/enums/RadioGroup.d.ts.map +0 -1
  361. package/dist/src/enums/RadioGroup.js +0 -5
  362. package/dist/src/enums/Select.d.ts.map +0 -1
  363. package/dist/src/enums/Select.js +0 -11
  364. package/dist/src/enums/Sidebar.d.ts.map +0 -1
  365. package/dist/src/enums/Sidebar.js +0 -5
  366. package/dist/src/enums/Tab.d.ts.map +0 -1
  367. package/dist/src/enums/Tab.js +0 -6
  368. package/dist/src/enums/Title.d.ts.map +0 -1
  369. package/dist/src/enums/Title.js +0 -21
  370. package/dist/src/enums/Tooltip.d.ts.map +0 -1
  371. package/dist/src/enums/Tooltip.js +0 -15
  372. package/dist/src/enums/index.d.ts +0 -22
  373. package/dist/src/enums/index.d.ts.map +0 -1
  374. package/dist/src/enums/ui/Alignment.d.ts.map +0 -1
  375. package/dist/src/enums/ui/Alignment.js +0 -6
  376. package/dist/src/enums/ui/Button.d.ts.map +0 -1
  377. package/dist/src/enums/ui/Button.js +0 -24
  378. package/dist/src/enums/ui/Directions.d.ts.map +0 -1
  379. package/dist/src/enums/ui/Directions.js +0 -5
  380. package/dist/src/enums/ui/Weights.d.ts.map +0 -1
  381. package/dist/src/enums/ui/Weights.js +0 -7
  382. package/dist/src/index.d.ts.map +0 -1
  383. package/dist/src/index.js +0 -17
  384. package/dist/src/main.d.ts +0 -3
  385. package/dist/src/main.d.ts.map +0 -1
  386. package/dist/src/main.js +0 -8
  387. package/dist/src/mocks/authUser.d.ts.map +0 -1
  388. package/dist/src/mocks/authUser.js +0 -162
  389. package/dist/src/mocks/categories.d.ts.map +0 -1
  390. package/dist/src/mocks/categories.js +0 -108
  391. package/dist/src/mocks/filterMocks.d.ts.map +0 -1
  392. package/dist/src/mocks/filterMocks.js +0 -128
  393. package/dist/src/mocks/icons.json +0 -1
  394. package/dist/src/mocks/menuLangs.d.ts.map +0 -1
  395. package/dist/src/mocks/menuLangs.js +0 -19
  396. package/dist/src/mocks/selectOptions.json +0 -111
  397. package/dist/src/mocks/sidebar.d.ts.map +0 -1
  398. package/dist/src/mocks/sidebar.js +0 -125
  399. package/dist/src/mocks/tableData.d.ts.map +0 -1
  400. package/dist/src/mocks/tableData.js +0 -8180
  401. package/dist/src/types/IButton.d.ts.map +0 -1
  402. package/dist/src/types/IButton.js +0 -1
  403. package/dist/src/types/ICell.d.ts.map +0 -1
  404. package/dist/src/types/ICell.js +0 -1
  405. package/dist/src/types/IChip.d.ts.map +0 -1
  406. package/dist/src/types/IChip.js +0 -1
  407. package/dist/src/types/ICollapse.d.ts.map +0 -1
  408. package/dist/src/types/ICollapse.js +0 -1
  409. package/dist/src/types/IDatepicker.d.ts.map +0 -1
  410. package/dist/src/types/IDatepicker.js +0 -1
  411. package/dist/src/types/IDirections.d.ts.map +0 -1
  412. package/dist/src/types/IDirections.js +0 -1
  413. package/dist/src/types/IDrawer.d.ts.map +0 -1
  414. package/dist/src/types/IDrawer.js +0 -1
  415. package/dist/src/types/IDropdown.d.ts.map +0 -1
  416. package/dist/src/types/IDropdown.js +0 -1
  417. package/dist/src/types/IFilter.d.ts.map +0 -1
  418. package/dist/src/types/IFilter.js +0 -1
  419. package/dist/src/types/IGrid.d.ts.map +0 -1
  420. package/dist/src/types/IGrid.js +0 -1
  421. package/dist/src/types/IInput.d.ts.map +0 -1
  422. package/dist/src/types/IInput.js +0 -1
  423. package/dist/src/types/IModal.d.ts.map +0 -1
  424. package/dist/src/types/IModal.js +0 -1
  425. package/dist/src/types/IPreview.d.ts.map +0 -1
  426. package/dist/src/types/IPreview.js +0 -1
  427. package/dist/src/types/IRadio.d.ts.map +0 -1
  428. package/dist/src/types/IRadio.js +0 -1
  429. package/dist/src/types/IRadioGroup.d.ts.map +0 -1
  430. package/dist/src/types/IRadioGroup.js +0 -1
  431. package/dist/src/types/IRoute.d.ts.map +0 -1
  432. package/dist/src/types/IRoute.js +0 -1
  433. package/dist/src/types/ISelect.d.ts.map +0 -1
  434. package/dist/src/types/ISelect.js +0 -1
  435. package/dist/src/types/ISideBar.d.ts.map +0 -1
  436. package/dist/src/types/ISideBar.js +0 -1
  437. package/dist/src/types/ITable.d.ts.map +0 -1
  438. package/dist/src/types/ITable.js +0 -1
  439. package/dist/src/types/ITabs.d.ts.map +0 -1
  440. package/dist/src/types/ITabs.js +0 -1
  441. package/dist/src/types/ITitle.d.ts.map +0 -1
  442. package/dist/src/types/ITitle.js +0 -1
  443. package/dist/src/types/ITooltip.d.ts.map +0 -1
  444. package/dist/src/types/ITooltip.js +0 -1
  445. package/dist/src/types/index.d.ts +0 -37
  446. package/dist/src/types/index.d.ts.map +0 -1
  447. package/dist/src/types/styles/Alignment.d.ts.map +0 -1
  448. package/dist/src/types/styles/Alignment.js +0 -1
  449. package/dist/src/types/styles/AvatarSizes.d.ts.map +0 -1
  450. package/dist/src/types/styles/AvatarSizes.js +0 -3
  451. package/dist/src/types/styles/Colors.d.ts.map +0 -1
  452. package/dist/src/types/styles/Colors.js +0 -3
  453. package/dist/src/types/styles/Durations.d.ts.map +0 -1
  454. package/dist/src/types/styles/Durations.js +0 -3
  455. package/dist/src/types/styles/FontSizes.d.ts.map +0 -1
  456. package/dist/src/types/styles/FontSizes.js +0 -3
  457. package/dist/src/types/styles/FontWeights.d.ts.map +0 -1
  458. package/dist/src/types/styles/FontWeights.js +0 -3
  459. package/dist/src/types/styles/Grid.d.ts.map +0 -1
  460. package/dist/src/types/styles/Grid.js +0 -1
  461. package/dist/src/types/styles/Icons.d.ts.map +0 -1
  462. package/dist/src/types/styles/Icons.js +0 -2
  463. package/dist/src/types/styles/LineHeights.d.ts.map +0 -1
  464. package/dist/src/types/styles/LineHeights.js +0 -3
  465. package/dist/src/types/styles/MediaQueries.d.ts.map +0 -1
  466. package/dist/src/types/styles/MediaQueries.js +0 -3
  467. package/dist/src/types/styles/Radiuses.d.ts.map +0 -1
  468. package/dist/src/types/styles/Radiuses.js +0 -3
  469. package/dist/src/types/styles/Sizes.d.ts.map +0 -1
  470. package/dist/src/types/styles/Sizes.js +0 -3
  471. package/dist/src/types/styles/Spaces.d.ts.map +0 -1
  472. package/dist/src/types/styles/Spaces.js +0 -3
  473. package/dist/src/types/styles/Weights.d.ts +0 -3
  474. package/dist/src/types/styles/Weights.d.ts.map +0 -1
  475. package/dist/src/types/styles/Weights.js +0 -1
  476. package/dist/src/utils/dayjs.d.ts.map +0 -1
  477. package/dist/src/utils/dayjs.js +0 -22
  478. package/dist/src/utils/index.d.ts +0 -3
  479. package/dist/src/utils/index.d.ts.map +0 -1
  480. package/dist/src/utils/mcGridColAdaptiveProps.d.ts.map +0 -1
  481. package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
  482. package/dist/src/utils/mcTitleAdaptiveProps.d.ts.map +0 -1
  483. package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
  484. package/dist/tsconfig.tsbuildinfo +0 -1
  485. /package/dist/{src/components/index.js → types/components/index.d.ts} +0 -0
  486. /package/dist/{src/consts/index.js → types/consts/index.d.ts} +0 -0
  487. /package/dist/{src/utils/index.js → types/utils/index.d.ts} +0 -0
@@ -1,854 +0,0 @@
1
- import { computed, onBeforeUnmount, onMounted, reactive, ref, useSlots } from 'vue';
2
- import { useHelper } from '@/composables';
3
- import { ChipSize, Weights } from '@/enums';
4
- import { TABLE } from '@/consts/table';
5
- import { McInfinityLoadingTrigger, McTitle, McChip, McTableSort, McTableSkeletonLoading, McNoData, McBottomLoader, McOverlay } from '@/components';
6
- import { useThrottleFn } from '@vueuse/core';
7
- import { default as noTableDataImg } from '@/assets/img/no_table_data.png';
8
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
9
- const defaultPlaceholders = {
10
- no_data: 'No data',
11
- loading: 'Loading...',
12
- all_loaded: 'All loaded',
13
- total: 'Total'
14
- };
15
- const emit = defineEmits();
16
- /**
17
- * Слоты
18
- *
19
- * #header-cell - Заголовок колонки, каждая колонка
20
- * #`{column.field}-header-right` - Справа от заголовка колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
21
- * #`{column.field}-total` - Тотал колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
22
- * #column.field - Тело ячейки таблицы. Если не использовать слот, просто будут выводиться данные по названию поля
23
- * #`{column.field}-right` - Справа от контента колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
24
- * №footer-cell - тотал колонки (строка внизу таблицы), каждая колонка
25
- * */
26
- const helper = useHelper();
27
- const slots = useSlots();
28
- const props = defineProps({
29
- columns: {
30
- type: Array,
31
- required: true,
32
- default: () => []
33
- },
34
- data: {
35
- type: Array,
36
- required: true,
37
- default: () => []
38
- },
39
- /**
40
- * Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
41
- * */
42
- totals: {
43
- type: Object,
44
- default: () => ({})
45
- },
46
- sort: {
47
- type: Object,
48
- default: () => ({})
49
- },
50
- /**
51
- * Фиксировать ли первую колонку таблицы
52
- * */
53
- fixedFirstColumn: {
54
- type: Boolean,
55
- default: true
56
- },
57
- /**
58
- * Фиксировать ли последнюю колонку таблицы
59
- * */
60
- fixedLastColumn: {
61
- type: Boolean,
62
- default: false
63
- },
64
- /**
65
- * Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
66
- * */
67
- hasLoadMore: {
68
- type: Boolean,
69
- default: true
70
- },
71
- height: {
72
- type: [Number, String],
73
- default: 'auto'
74
- },
75
- /**
76
- * Высота строки в шапке
77
- * */
78
- headerRowHeight: {
79
- type: Number,
80
- default: TABLE.defaultHeaderHeight
81
- },
82
- /**
83
- * Высота строки в теле таблицы
84
- * */
85
- rowHeight: {
86
- type: Number,
87
- default: TABLE.defaultRowHeight
88
- },
89
- /**
90
- * Высота строки в подвале (строка с тоталами)
91
- * */
92
- footerRowHeight: {
93
- type: Number,
94
- default: TABLE.defaultFooterRowHeight
95
- },
96
- /**
97
- * Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
98
- */
99
- skeletonLoading: {
100
- type: Boolean,
101
- default: false
102
- },
103
- /**
104
- * Лоадинг внизу таблицы
105
- * */
106
- bottomLoading: {
107
- type: Boolean,
108
- default: false
109
- },
110
- /**
111
- * Оверлей с затемнение на всю таблицу
112
- * */
113
- loading: {
114
- type: Boolean,
115
- default: false
116
- },
117
- /**
118
- * Переводы плейсхолеров и текстов
119
- */
120
- placeholders: {
121
- type: Object,
122
- default: () => ({})
123
- },
124
- noDataIcon: {
125
- type: String,
126
- default: null
127
- },
128
- noDataImg: {
129
- type: String,
130
- default: noTableDataImg
131
- },
132
- /**
133
- * Любые данные что бы передать их в карточку из таблицы
134
- * */
135
- toTableCardProps: {
136
- type: Object,
137
- default: () => ({})
138
- }
139
- });
140
- const openCardState = ref({ state: false });
141
- const mcTable = ref(null);
142
- const hasData = computed(() => {
143
- return !helper.isEmpty(props.data);
144
- });
145
- const hasTotals = computed(() => {
146
- return !helper.isEmpty(props.totals);
147
- });
148
- const hasFixedColumn = computed(() => {
149
- return props.fixedFirstColumn || props.fixedLastColumn;
150
- });
151
- const placeholders = reactive(helper.deepMerge(defaultPlaceholders, props.placeholders));
152
- const shadows = reactive({
153
- firstColHasShadow: false,
154
- lastColHasShadow: false
155
- });
156
- const computedColumns = computed(() => {
157
- const [first] = props.columns;
158
- return (openCardState.value.state ? [first] : props.columns).map((column, index) => {
159
- const fixedFirst = props.fixedFirstColumn && index === 0;
160
- const fixedLast = props.fixedLastColumn && index === props.columns.length - 1;
161
- return {
162
- ...column,
163
- fixedFirst,
164
- fixedLast,
165
- style: {
166
- ...(column.width
167
- ? {
168
- '--mc-table-cell-width': `${column.width}px`,
169
- '--mc-table-cell-max-width': `${column.width}px`,
170
- '--mc-table-cell-min-width': `${column.width}px`
171
- }
172
- : {
173
- '--mc-table-cell-min-width': column.minWidth && `${column.minWidth}px`,
174
- '--mc-table-cell-width': '100%'
175
- })
176
- }
177
- };
178
- });
179
- });
180
- const computedHeaderColumns = computed(() => {
181
- return computedColumns.value.map((column) => ({
182
- ...column,
183
- class: {
184
- 'mc-table__table_header-cell': true,
185
- 'mc-table__table_header-cell--fixed-first': column.fixedFirst,
186
- 'mc-table__table_header-cell--fixed-last': column.fixedLast,
187
- 'mc-table__table_header-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
188
- 'mc-table__table_header-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
189
- }
190
- }));
191
- });
192
- const computedBodyColumns = computed(() => {
193
- return computedColumns.value.map((column) => ({
194
- ...column,
195
- class: {
196
- 'mc-table__table_body-cell': true,
197
- 'mc-table__table_body-cell--fixed-first': column.fixedFirst,
198
- 'mc-table__table_body-cell--fixed-last': column.fixedLast,
199
- 'mc-table__table_body-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
200
- 'mc-table__table_body-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
201
- }
202
- }));
203
- });
204
- const computedFooterColumns = computed(() => {
205
- return computedColumns.value.map((column) => ({
206
- ...column,
207
- class: {
208
- 'mc-table__table_footer-cell': true,
209
- 'mc-table__table_footer-cell--fixed-first': column.fixedFirst,
210
- 'mc-table__table_footer-cell--fixed-last': column.fixedLast,
211
- 'mc-table__table_footer-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
212
- 'mc-table__table_footer-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
213
- }
214
- }));
215
- });
216
- const containerStyle = computed(() => {
217
- return {
218
- '--mc-table-height': typeof props.height === 'number' ? `${props.height}px` : props.height,
219
- '--mc-table-header-row-height': helper.isNumber(props.headerRowHeight) ? `${props.headerRowHeight}px` : '40px',
220
- '--mc-table-row-height': helper.isNumber(props.rowHeight) ? `${props.rowHeight}px` : '40px',
221
- '--mc-table-footer-row-height': helper.isNumber(props.footerRowHeight) ? `${props.footerRowHeight}px` : '40px'
222
- };
223
- });
224
- const computedTableCardProps = computed(() => {
225
- return {
226
- tableColumns: props.columns,
227
- tableData: props.data,
228
- tableTotals: props.totals,
229
- tableSort: props.sort,
230
- tableHeaderRowHeight: props.headerRowHeight,
231
- tableFooterRowHeight: props.footerRowHeight,
232
- tableFixedFirstColumn: props.fixedFirstColumn,
233
- tableCardProps: props.toTableCardProps
234
- };
235
- });
236
- onMounted(() => {
237
- addListeners();
238
- });
239
- onBeforeUnmount(() => {
240
- removeListeners();
241
- });
242
- const onBodyScroll = useThrottleFn(() => {
243
- if (mcTable.value) {
244
- const { scrollLeft, scrollWidth, clientWidth } = mcTable.value;
245
- const firstColShadow = props.fixedFirstColumn && scrollLeft > 0;
246
- const lastColShadow = props.fixedLastColumn && scrollLeft + clientWidth < scrollWidth;
247
- if (shadows.firstColHasShadow !== firstColShadow)
248
- shadows.firstColHasShadow = firstColShadow;
249
- if (shadows.lastColHasShadow !== lastColShadow)
250
- shadows.lastColHasShadow = lastColShadow;
251
- }
252
- }, 10);
253
- const addListeners = () => {
254
- if (hasFixedColumn.value && mcTable.value) {
255
- onBodyScroll();
256
- mcTable.value.addEventListener('scroll', onBodyScroll);
257
- }
258
- };
259
- const removeListeners = () => {
260
- if (hasFixedColumn.value && mcTable.value)
261
- mcTable.value.removeEventListener('scroll', onBodyScroll);
262
- };
263
- const handleRowClick = (row) => {
264
- emit('row-click', row);
265
- };
266
- const handleSetCardState = (payload) => {
267
- openCardState.value = payload;
268
- emit('table-card-opened', payload);
269
- }; /* PartiallyEnd: #3632/scriptSetup.vue */
270
- const __VLS_fnComponent = (await import('vue')).defineComponent({
271
- props: {
272
- columns: {
273
- type: Array,
274
- required: true,
275
- default: () => []
276
- },
277
- data: {
278
- type: Array,
279
- required: true,
280
- default: () => []
281
- },
282
- /**
283
- * Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
284
- * */
285
- totals: {
286
- type: Object,
287
- default: () => ({})
288
- },
289
- sort: {
290
- type: Object,
291
- default: () => ({})
292
- },
293
- /**
294
- * Фиксировать ли первую колонку таблицы
295
- * */
296
- fixedFirstColumn: {
297
- type: Boolean,
298
- default: true
299
- },
300
- /**
301
- * Фиксировать ли последнюю колонку таблицы
302
- * */
303
- fixedLastColumn: {
304
- type: Boolean,
305
- default: false
306
- },
307
- /**
308
- * Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
309
- * */
310
- hasLoadMore: {
311
- type: Boolean,
312
- default: true
313
- },
314
- height: {
315
- type: [Number, String],
316
- default: 'auto'
317
- },
318
- /**
319
- * Высота строки в шапке
320
- * */
321
- headerRowHeight: {
322
- type: Number,
323
- default: TABLE.defaultHeaderHeight
324
- },
325
- /**
326
- * Высота строки в теле таблицы
327
- * */
328
- rowHeight: {
329
- type: Number,
330
- default: TABLE.defaultRowHeight
331
- },
332
- /**
333
- * Высота строки в подвале (строка с тоталами)
334
- * */
335
- footerRowHeight: {
336
- type: Number,
337
- default: TABLE.defaultFooterRowHeight
338
- },
339
- /**
340
- * Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
341
- */
342
- skeletonLoading: {
343
- type: Boolean,
344
- default: false
345
- },
346
- /**
347
- * Лоадинг внизу таблицы
348
- * */
349
- bottomLoading: {
350
- type: Boolean,
351
- default: false
352
- },
353
- /**
354
- * Оверлей с затемнение на всю таблицу
355
- * */
356
- loading: {
357
- type: Boolean,
358
- default: false
359
- },
360
- /**
361
- * Переводы плейсхолеров и текстов
362
- */
363
- placeholders: {
364
- type: Object,
365
- default: () => ({})
366
- },
367
- noDataIcon: {
368
- type: String,
369
- default: null
370
- },
371
- noDataImg: {
372
- type: String,
373
- default: noTableDataImg
374
- },
375
- /**
376
- * Любые данные что бы передать их в карточку из таблицы
377
- * */
378
- toTableCardProps: {
379
- type: Object,
380
- default: () => ({})
381
- }
382
- },
383
- __typeEmits: {},
384
- });
385
- ;
386
- let __VLS_functionalComponentProps;
387
- function __VLS_template() {
388
- const __VLS_ctx = {};
389
- const __VLS_localComponents = {
390
- ...{},
391
- ...{},
392
- ...__VLS_ctx,
393
- };
394
- let __VLS_components;
395
- const __VLS_localDirectives = {
396
- ...{},
397
- ...__VLS_ctx,
398
- };
399
- let __VLS_directives;
400
- let __VLS_styleScopedClasses;
401
- // CSS variable injection
402
- // CSS variable injection end
403
- let __VLS_resolvedLocalAndGlobalComponents;
404
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__container") }, ...{ style: ((__VLS_ctx.containerStyle)) }, });
405
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ref: ("mcTable"), ...{ class: ("mc-table") }, });
406
- // @ts-ignore navigation for `const mcTable = ref()`
407
- __VLS_ctx.mcTable;
408
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table") }, });
409
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header") }, });
410
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-row") }, });
411
- for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedHeaderColumns))) {
412
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
413
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content") }, });
414
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content-left") }, });
415
- if (column.sortable) {
416
- const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.McTableSort;
417
- /** @type { [typeof __VLS_components.McTableSort, typeof __VLS_components.mcTableSort, ] } */
418
- // @ts-ignore
419
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ 'onChange': {} }, column: ((column.field)), sort: ((__VLS_ctx.sort)), }));
420
- const __VLS_2 = __VLS_1({ ...{ 'onChange': {} }, column: ((column.field)), sort: ((__VLS_ctx.sort)), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
421
- let __VLS_6;
422
- const __VLS_7 = {
423
- onChange: ((val) => __VLS_ctx.emit('sort', val))
424
- };
425
- let __VLS_3;
426
- let __VLS_4;
427
- var __VLS_5;
428
- }
429
- var __VLS_8 = {
430
- column: ((column)), cellIndex: ((cI)),
431
- };
432
- const __VLS_9 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
433
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
434
- // @ts-ignore
435
- const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), preLine: (true), }));
436
- const __VLS_11 = __VLS_10({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), preLine: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_10));
437
- (column.header);
438
- __VLS_nonNullable(__VLS_14.slots).default;
439
- var __VLS_14;
440
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content-right") }, });
441
- var __VLS_15 = {
442
- column: ((column)), cellIndex: ((cI)),
443
- };
444
- var __VLS_16 = (`${column.field}-header-right`);
445
- var __VLS_17 = {
446
- column: ((column)), cellIndex: ((cI)),
447
- };
448
- var __VLS_18 = (`${column.field}-total`);
449
- if (column.total) {
450
- const __VLS_19 = __VLS_resolvedLocalAndGlobalComponents.McChip;
451
- /** @type { [typeof __VLS_components.McChip, typeof __VLS_components.mcChip, ] } */
452
- // @ts-ignore
453
- const __VLS_20 = __VLS_asFunctionalComponent(__VLS_19, new __VLS_19({ title: ((column.total)), variation: ("hover-gray"), textColor: ("gray"), size: ((__VLS_ctx.ChipSize.S)), }));
454
- const __VLS_21 = __VLS_20({ title: ((column.total)), variation: ("hover-gray"), textColor: ("gray"), size: ((__VLS_ctx.ChipSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_20));
455
- }
456
- }
457
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body") }, });
458
- if (props.skeletonLoading) {
459
- const __VLS_25 = __VLS_resolvedLocalAndGlobalComponents.McTableSkeletonLoading;
460
- /** @type { [typeof __VLS_components.McTableSkeletonLoading, typeof __VLS_components.mcTableSkeletonLoading, ] } */
461
- // @ts-ignore
462
- const __VLS_26 = __VLS_asFunctionalComponent(__VLS_25, new __VLS_25({ columns: ((__VLS_ctx.computedBodyColumns)), }));
463
- const __VLS_27 = __VLS_26({ columns: ((__VLS_ctx.computedBodyColumns)), }, ...__VLS_functionalComponentArgsRest(__VLS_26));
464
- }
465
- if (__VLS_ctx.hasData) {
466
- for (const [row, rI] of __VLS_getVForSourceType((__VLS_ctx.data))) {
467
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onClick: (() => __VLS_ctx.handleRowClick(row)) }, key: ((rI)), ...{ class: ("mc-table__table_body-row") }, ...{ class: (({ 'mc-table__table_body-row--active': String(__VLS_ctx.openCardState.id) === String(row.id) })) }, });
468
- for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedBodyColumns))) {
469
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
470
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content") }, });
471
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content-left") }, });
472
- var __VLS_31 = {
473
- row: ((row)), rowIndex: ((rI)), column: ((column)), cellIndex: ((cI)), cellValue: ((row[column.field])),
474
- };
475
- var __VLS_32 = (column.field);
476
- const __VLS_33 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
477
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
478
- // @ts-ignore
479
- const __VLS_34 = __VLS_asFunctionalComponent(__VLS_33, new __VLS_33({ textAlign: ((column.align)), ellipsis: (true), }));
480
- const __VLS_35 = __VLS_34({ textAlign: ((column.align)), ellipsis: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_34));
481
- (row[column.field]);
482
- __VLS_nonNullable(__VLS_38.slots).default;
483
- var __VLS_38;
484
- if (__VLS_ctx.slots[`${column.field}-right`]) {
485
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content-right") }, });
486
- var __VLS_39 = {};
487
- var __VLS_40 = (`${column.field}-right`);
488
- }
489
- }
490
- }
491
- }
492
- const __VLS_41 = __VLS_resolvedLocalAndGlobalComponents.McInfinityLoadingTrigger;
493
- /** @type { [typeof __VLS_components.McInfinityLoadingTrigger, typeof __VLS_components.mcInfinityLoadingTrigger, ] } */
494
- // @ts-ignore
495
- const __VLS_42 = __VLS_asFunctionalComponent(__VLS_41, new __VLS_41({ ...{ 'onLoading': {} }, active: ((props.hasLoadMore)), }));
496
- const __VLS_43 = __VLS_42({ ...{ 'onLoading': {} }, active: ((props.hasLoadMore)), }, ...__VLS_functionalComponentArgsRest(__VLS_42));
497
- let __VLS_47;
498
- const __VLS_48 = {
499
- onLoading: (...[$event]) => {
500
- __VLS_ctx.emit('loading');
501
- }
502
- };
503
- let __VLS_44;
504
- let __VLS_45;
505
- var __VLS_46;
506
- if (__VLS_ctx.hasTotals) {
507
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_footer") }, });
508
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_footer-row") }, });
509
- for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedFooterColumns))) {
510
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
511
- var __VLS_49 = {
512
- column: ((column)), cellIndex: ((cI)), cellValue: ((__VLS_ctx.totals[column.field])),
513
- };
514
- const __VLS_50 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
515
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
516
- // @ts-ignore
517
- const __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), }));
518
- const __VLS_52 = __VLS_51({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), }, ...__VLS_functionalComponentArgsRest(__VLS_51));
519
- (__VLS_ctx.totals[column.field]);
520
- __VLS_nonNullable(__VLS_55.slots).default;
521
- var __VLS_55;
522
- }
523
- }
524
- var __VLS_56 = {
525
- ...{ onSetTableCardState: (__VLS_ctx.handleSetCardState) }, ...(__VLS_ctx.computedTableCardProps),
526
- };
527
- const __VLS_57 = __VLS_resolvedLocalAndGlobalComponents.RouterView;
528
- /** @type { [typeof __VLS_components.RouterView, typeof __VLS_components.routerView, ] } */
529
- // @ts-ignore
530
- const __VLS_58 = __VLS_asFunctionalComponent(__VLS_57, new __VLS_57({ ...{ 'onSetTableCardState': {} }, ...(__VLS_ctx.computedTableCardProps), }));
531
- const __VLS_59 = __VLS_58({ ...{ 'onSetTableCardState': {} }, ...(__VLS_ctx.computedTableCardProps), }, ...__VLS_functionalComponentArgsRest(__VLS_58));
532
- let __VLS_63;
533
- const __VLS_64 = {
534
- onSetTableCardState: (__VLS_ctx.handleSetCardState)
535
- };
536
- let __VLS_60;
537
- let __VLS_61;
538
- var __VLS_62;
539
- if (__VLS_ctx.bottomLoading) {
540
- const __VLS_65 = __VLS_resolvedLocalAndGlobalComponents.McBottomLoader;
541
- /** @type { [typeof __VLS_components.McBottomLoader, typeof __VLS_components.mcBottomLoader, ] } */
542
- // @ts-ignore
543
- const __VLS_66 = __VLS_asFunctionalComponent(__VLS_65, new __VLS_65({}));
544
- const __VLS_67 = __VLS_66({}, ...__VLS_functionalComponentArgsRest(__VLS_66));
545
- }
546
- if (__VLS_ctx.loading) {
547
- const __VLS_71 = __VLS_resolvedLocalAndGlobalComponents.McOverlay;
548
- /** @type { [typeof __VLS_components.McOverlay, typeof __VLS_components.mcOverlay, ] } */
549
- // @ts-ignore
550
- const __VLS_72 = __VLS_asFunctionalComponent(__VLS_71, new __VLS_71({}));
551
- const __VLS_73 = __VLS_72({}, ...__VLS_functionalComponentArgsRest(__VLS_72));
552
- }
553
- if (!__VLS_ctx.hasData) {
554
- const __VLS_77 = __VLS_resolvedLocalAndGlobalComponents.McNoData;
555
- /** @type { [typeof __VLS_components.McNoData, typeof __VLS_components.mcNoData, ] } */
556
- // @ts-ignore
557
- const __VLS_78 = __VLS_asFunctionalComponent(__VLS_77, new __VLS_77({ variation: ("small"), title: ((__VLS_ctx.placeholders.no_data)), img: ((props.noDataImg)), icon: ((props.noDataIcon)), }));
558
- const __VLS_79 = __VLS_78({ variation: ("small"), title: ((__VLS_ctx.placeholders.no_data)), img: ((props.noDataImg)), icon: ((props.noDataIcon)), }, ...__VLS_functionalComponentArgsRest(__VLS_78));
559
- }
560
- __VLS_styleScopedClasses['mc-table__container'];
561
- __VLS_styleScopedClasses['mc-table'];
562
- __VLS_styleScopedClasses['mc-table__table'];
563
- __VLS_styleScopedClasses['mc-table__table_header'];
564
- __VLS_styleScopedClasses['mc-table__table_header-row'];
565
- __VLS_styleScopedClasses['mc-table__table_header-cell_content'];
566
- __VLS_styleScopedClasses['mc-table__table_header-cell_content-left'];
567
- __VLS_styleScopedClasses['mc-table__table_header-cell_content-right'];
568
- __VLS_styleScopedClasses['mc-table__table_body'];
569
- __VLS_styleScopedClasses['mc-table__table_body-row'];
570
- __VLS_styleScopedClasses['mc-table__table_body-row--active'];
571
- __VLS_styleScopedClasses['mc-table__table_body-cell_content'];
572
- __VLS_styleScopedClasses['mc-table__table_body-cell_content-left'];
573
- __VLS_styleScopedClasses['mc-table__table_body-cell_content-right'];
574
- __VLS_styleScopedClasses['mc-table__table_footer'];
575
- __VLS_styleScopedClasses['mc-table__table_footer-row'];
576
- var __VLS_slots;
577
- var __VLS_inheritedAttrs;
578
- const __VLS_refs = {
579
- "mcTable": __VLS_nativeElements['div'],
580
- };
581
- var $refs;
582
- var $el;
583
- return {
584
- attrs: {},
585
- slots: __VLS_slots,
586
- refs: $refs,
587
- rootEl: $el,
588
- };
589
- }
590
- ;
591
- const __VLS_self = (await import('vue')).defineComponent({
592
- setup() {
593
- return {
594
- ChipSize: ChipSize,
595
- Weights: Weights,
596
- McInfinityLoadingTrigger: McInfinityLoadingTrigger,
597
- McTitle: McTitle,
598
- McChip: McChip,
599
- McTableSort: McTableSort,
600
- McTableSkeletonLoading: McTableSkeletonLoading,
601
- McNoData: McNoData,
602
- McBottomLoader: McBottomLoader,
603
- McOverlay: McOverlay,
604
- emit: emit,
605
- slots: slots,
606
- openCardState: openCardState,
607
- mcTable: mcTable,
608
- hasData: hasData,
609
- hasTotals: hasTotals,
610
- placeholders: placeholders,
611
- computedHeaderColumns: computedHeaderColumns,
612
- computedBodyColumns: computedBodyColumns,
613
- computedFooterColumns: computedFooterColumns,
614
- containerStyle: containerStyle,
615
- computedTableCardProps: computedTableCardProps,
616
- handleRowClick: handleRowClick,
617
- handleSetCardState: handleSetCardState,
618
- };
619
- },
620
- __typeEmits: {},
621
- props: {
622
- columns: {
623
- type: Array,
624
- required: true,
625
- default: () => []
626
- },
627
- data: {
628
- type: Array,
629
- required: true,
630
- default: () => []
631
- },
632
- /**
633
- * Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
634
- * */
635
- totals: {
636
- type: Object,
637
- default: () => ({})
638
- },
639
- sort: {
640
- type: Object,
641
- default: () => ({})
642
- },
643
- /**
644
- * Фиксировать ли первую колонку таблицы
645
- * */
646
- fixedFirstColumn: {
647
- type: Boolean,
648
- default: true
649
- },
650
- /**
651
- * Фиксировать ли последнюю колонку таблицы
652
- * */
653
- fixedLastColumn: {
654
- type: Boolean,
655
- default: false
656
- },
657
- /**
658
- * Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
659
- * */
660
- hasLoadMore: {
661
- type: Boolean,
662
- default: true
663
- },
664
- height: {
665
- type: [Number, String],
666
- default: 'auto'
667
- },
668
- /**
669
- * Высота строки в шапке
670
- * */
671
- headerRowHeight: {
672
- type: Number,
673
- default: TABLE.defaultHeaderHeight
674
- },
675
- /**
676
- * Высота строки в теле таблицы
677
- * */
678
- rowHeight: {
679
- type: Number,
680
- default: TABLE.defaultRowHeight
681
- },
682
- /**
683
- * Высота строки в подвале (строка с тоталами)
684
- * */
685
- footerRowHeight: {
686
- type: Number,
687
- default: TABLE.defaultFooterRowHeight
688
- },
689
- /**
690
- * Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
691
- */
692
- skeletonLoading: {
693
- type: Boolean,
694
- default: false
695
- },
696
- /**
697
- * Лоадинг внизу таблицы
698
- * */
699
- bottomLoading: {
700
- type: Boolean,
701
- default: false
702
- },
703
- /**
704
- * Оверлей с затемнение на всю таблицу
705
- * */
706
- loading: {
707
- type: Boolean,
708
- default: false
709
- },
710
- /**
711
- * Переводы плейсхолеров и текстов
712
- */
713
- placeholders: {
714
- type: Object,
715
- default: () => ({})
716
- },
717
- noDataIcon: {
718
- type: String,
719
- default: null
720
- },
721
- noDataImg: {
722
- type: String,
723
- default: noTableDataImg
724
- },
725
- /**
726
- * Любые данные что бы передать их в карточку из таблицы
727
- * */
728
- toTableCardProps: {
729
- type: Object,
730
- default: () => ({})
731
- }
732
- },
733
- });
734
- const __VLS_component = (await import('vue')).defineComponent({
735
- setup() {
736
- return {};
737
- },
738
- __typeEmits: {},
739
- props: {
740
- columns: {
741
- type: Array,
742
- required: true,
743
- default: () => []
744
- },
745
- data: {
746
- type: Array,
747
- required: true,
748
- default: () => []
749
- },
750
- /**
751
- * Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
752
- * */
753
- totals: {
754
- type: Object,
755
- default: () => ({})
756
- },
757
- sort: {
758
- type: Object,
759
- default: () => ({})
760
- },
761
- /**
762
- * Фиксировать ли первую колонку таблицы
763
- * */
764
- fixedFirstColumn: {
765
- type: Boolean,
766
- default: true
767
- },
768
- /**
769
- * Фиксировать ли последнюю колонку таблицы
770
- * */
771
- fixedLastColumn: {
772
- type: Boolean,
773
- default: false
774
- },
775
- /**
776
- * Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
777
- * */
778
- hasLoadMore: {
779
- type: Boolean,
780
- default: true
781
- },
782
- height: {
783
- type: [Number, String],
784
- default: 'auto'
785
- },
786
- /**
787
- * Высота строки в шапке
788
- * */
789
- headerRowHeight: {
790
- type: Number,
791
- default: TABLE.defaultHeaderHeight
792
- },
793
- /**
794
- * Высота строки в теле таблицы
795
- * */
796
- rowHeight: {
797
- type: Number,
798
- default: TABLE.defaultRowHeight
799
- },
800
- /**
801
- * Высота строки в подвале (строка с тоталами)
802
- * */
803
- footerRowHeight: {
804
- type: Number,
805
- default: TABLE.defaultFooterRowHeight
806
- },
807
- /**
808
- * Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
809
- */
810
- skeletonLoading: {
811
- type: Boolean,
812
- default: false
813
- },
814
- /**
815
- * Лоадинг внизу таблицы
816
- * */
817
- bottomLoading: {
818
- type: Boolean,
819
- default: false
820
- },
821
- /**
822
- * Оверлей с затемнение на всю таблицу
823
- * */
824
- loading: {
825
- type: Boolean,
826
- default: false
827
- },
828
- /**
829
- * Переводы плейсхолеров и текстов
830
- */
831
- placeholders: {
832
- type: Object,
833
- default: () => ({})
834
- },
835
- noDataIcon: {
836
- type: String,
837
- default: null
838
- },
839
- noDataImg: {
840
- type: String,
841
- default: noTableDataImg
842
- },
843
- /**
844
- * Любые данные что бы передать их в карточку из таблицы
845
- * */
846
- toTableCardProps: {
847
- type: Object,
848
- default: () => ({})
849
- }
850
- },
851
- __typeEl: {},
852
- });
853
- export default {};
854
- ; /* PartiallyEnd: #4569/main.vue */