mediacube-ui-v2 0.0.33 → 0.0.34

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 (344) hide show
  1. package/dist/src/App.vue.d.ts +1 -1
  2. package/dist/src/App.vue.d.ts.map +1 -1
  3. package/dist/src/assets/tokens/json/animations.json.d.ts +8 -0
  4. package/dist/src/assets/tokens/json/border-radius.json.d.ts +26 -0
  5. package/dist/src/assets/tokens/json/box-shadows.json.d.ts +26 -0
  6. package/dist/src/assets/tokens/json/colors.json.d.ts +73 -0
  7. package/dist/src/assets/tokens/json/durations.json.d.ts +12 -0
  8. package/dist/src/assets/tokens/json/easings.json.d.ts +5 -0
  9. package/dist/src/assets/tokens/json/font-families.json.d.ts +6 -0
  10. package/dist/src/assets/tokens/json/font-sizes.json.d.ts +20 -0
  11. package/dist/src/assets/tokens/json/font-weights.json.d.ts +14 -0
  12. package/dist/src/assets/tokens/json/gradients.json.d.ts +15 -0
  13. package/dist/src/assets/tokens/json/index.d.ts +17 -17
  14. package/dist/src/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  15. package/dist/src/assets/tokens/json/line-heights.json.d.ts +20 -0
  16. package/dist/src/assets/tokens/json/media-queries.json.d.ts +28 -0
  17. package/dist/src/assets/tokens/json/opacities.json.d.ts +7 -0
  18. package/dist/src/assets/tokens/json/sizes.json.d.ts +44 -0
  19. package/dist/src/assets/tokens/json/spacings.json.d.ts +36 -0
  20. package/dist/src/assets/tokens/json/z-indexes.json.d.ts +14 -0
  21. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts +5 -5
  22. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +1 -1
  23. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts +3 -3
  24. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +1 -1
  25. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +3 -3
  26. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +1 -1
  27. package/dist/src/components/elements/McButton/McButton.vue.d.ts +9 -10
  28. package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +1 -1
  29. package/dist/src/components/elements/McChip/McChip.vue.d.ts +6 -7
  30. package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +1 -1
  31. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -2
  32. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +1 -1
  33. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts +4 -4
  34. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +1 -1
  35. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
  36. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +1 -1
  37. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
  38. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +1 -1
  39. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
  40. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +1 -1
  41. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
  42. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +1 -1
  43. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -9
  44. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +1 -1
  45. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts +9 -9
  46. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +1 -1
  47. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
  48. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +1 -1
  49. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
  50. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +1 -1
  51. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts +5 -5
  52. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +1 -1
  53. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts +5 -5
  54. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +1 -1
  55. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts +5 -5
  56. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +1 -1
  57. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts +4 -4
  58. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +1 -1
  59. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
  60. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +1 -1
  61. package/dist/src/components/elements/McStack/McStack.vue.d.ts +4 -4
  62. package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +1 -1
  63. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
  64. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +1 -1
  65. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts +7 -7
  66. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +1 -1
  67. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts +6 -6
  68. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +1 -1
  69. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
  70. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +1 -1
  71. package/dist/src/components/patterns/McCell/McCell.vue.d.ts +6 -6
  72. package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +1 -1
  73. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
  74. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +1 -1
  75. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
  76. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +1 -1
  77. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +4 -4
  78. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +1 -1
  79. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts +6 -6
  80. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +1 -1
  81. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
  82. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +1 -1
  83. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
  84. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +1 -1
  85. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
  86. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +1 -1
  87. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
  88. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +1 -1
  89. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
  90. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +1 -1
  91. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
  92. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +1 -1
  93. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
  94. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +1 -1
  95. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
  96. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +1 -1
  97. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
  98. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +1 -1
  99. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts +4 -4
  100. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +1 -1
  101. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -7
  102. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +1 -1
  103. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
  104. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +1 -1
  105. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -5
  106. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +1 -1
  107. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
  108. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +1 -1
  109. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -6
  110. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +1 -1
  111. package/dist/src/components/patterns/McTab/McTab.vue.d.ts +5 -5
  112. package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +1 -1
  113. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts +7 -8
  114. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +1 -1
  115. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
  116. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +1 -1
  117. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts +7 -7
  118. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +1 -1
  119. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
  120. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +1 -1
  121. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
  122. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +1 -1
  123. package/dist/src/components/templates/McModal/McModal.vue.d.ts +7 -7
  124. package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +1 -1
  125. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts +5 -5
  126. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +1 -1
  127. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts +7 -7
  128. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +1 -1
  129. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
  130. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +1 -1
  131. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
  132. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +1 -1
  133. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +5 -5
  134. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +1 -1
  135. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -6
  136. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +1 -1
  137. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts +4 -4
  138. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +1 -1
  139. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
  140. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +1 -1
  141. package/dist/src/composables/index.d.ts +1 -1
  142. package/dist/src/composables/useDrawer.d.ts +1 -1
  143. package/dist/src/composables/useFieldErrors.d.ts +2 -2
  144. package/dist/src/composables/useTooltip.d.ts +1 -1
  145. package/dist/src/index.d.ts +2 -2
  146. package/dist/src/index.d.ts.map +1 -1
  147. package/dist/src/main.d.ts +0 -2
  148. package/dist/src/mocks/filterMocks.d.ts +1 -1
  149. package/dist/src/mocks/icons.json.d.ts +3 -0
  150. package/dist/src/mocks/sidebar.d.ts +1 -1
  151. package/dist/src/mocks/tableData.d.ts +1 -1
  152. package/dist/src/types/IButton.d.ts +5 -5
  153. package/dist/src/types/ICell.d.ts +1 -1
  154. package/dist/src/types/IChip.d.ts +2 -2
  155. package/dist/src/types/IDatepicker.d.ts +1 -1
  156. package/dist/src/types/IDirections.d.ts +1 -1
  157. package/dist/src/types/IDrawer.d.ts +2 -2
  158. package/dist/src/types/IDropdown.d.ts +1 -1
  159. package/dist/src/types/IFilter.d.ts +1 -1
  160. package/dist/src/types/IInput.d.ts +1 -1
  161. package/dist/src/types/IModal.d.ts +2 -2
  162. package/dist/src/types/IPreview.d.ts +1 -1
  163. package/dist/src/types/IRadio.d.ts +1 -1
  164. package/dist/src/types/IRadioGroup.d.ts +1 -1
  165. package/dist/src/types/ISelect.d.ts +1 -1
  166. package/dist/src/types/ISideBar.d.ts +5 -5
  167. package/dist/src/types/ITable.d.ts +2 -2
  168. package/dist/src/types/ITabs.d.ts +4 -4
  169. package/dist/src/types/ITitle.d.ts +1 -1
  170. package/dist/src/types/ITooltip.d.ts +1 -1
  171. package/dist/src/types/styles/Alignment.d.ts +1 -1
  172. package/dist/src/types/styles/Grid.d.ts +1 -1
  173. package/dist/src/types/styles/Weights.d.ts +1 -1
  174. package/dist/src/utils/mcGridColAdaptiveProps.d.ts +1 -1
  175. package/dist/src/utils/mcTitleAdaptiveProps.d.ts +1 -1
  176. package/package.json +2 -3
  177. package/dist/mediacube-ui-v2.umd.js +0 -7
  178. package/dist/src/App.vue.js +0 -54
  179. package/dist/src/assets/tokens/json/animations.json +0 -6
  180. package/dist/src/assets/tokens/json/border-radius.json +0 -24
  181. package/dist/src/assets/tokens/json/box-shadows.json +0 -24
  182. package/dist/src/assets/tokens/json/colors.json +0 -71
  183. package/dist/src/assets/tokens/json/durations.json +0 -10
  184. package/dist/src/assets/tokens/json/easings.json +0 -3
  185. package/dist/src/assets/tokens/json/font-families.json +0 -4
  186. package/dist/src/assets/tokens/json/font-sizes.json +0 -18
  187. package/dist/src/assets/tokens/json/font-weights.json +0 -12
  188. package/dist/src/assets/tokens/json/gradients.json +0 -13
  189. package/dist/src/assets/tokens/json/index.js +0 -18
  190. package/dist/src/assets/tokens/json/letter-spacings.json +0 -4
  191. package/dist/src/assets/tokens/json/line-heights.json +0 -18
  192. package/dist/src/assets/tokens/json/media-queries.json +0 -26
  193. package/dist/src/assets/tokens/json/opacities.json +0 -5
  194. package/dist/src/assets/tokens/json/sizes.json +0 -42
  195. package/dist/src/assets/tokens/json/spacings.json +0 -34
  196. package/dist/src/assets/tokens/json/z-indexes.json +0 -12
  197. package/dist/src/components/elements/McAvatar/McAvatar.vue.js +0 -412
  198. package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
  199. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
  200. package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
  201. package/dist/src/components/elements/McChip/McChip.vue.js +0 -326
  202. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts +0 -30
  203. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts.map +0 -1
  204. package/dist/src/components/elements/McCropper/McCropper.vue.js +0 -155
  205. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.js +0 -1251
  206. package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
  207. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
  208. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
  209. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
  210. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
  211. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
  212. package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
  213. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
  214. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
  215. package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
  216. package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
  217. package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
  218. package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
  219. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
  220. package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
  221. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
  222. package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
  223. package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
  224. package/dist/src/components/index.js +0 -69
  225. package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
  226. package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
  227. package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
  228. package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
  229. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
  230. package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
  231. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
  232. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
  233. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
  234. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
  235. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
  236. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
  237. package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
  238. package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
  239. package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
  240. package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
  241. package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
  242. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
  243. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
  244. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
  245. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
  246. package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
  247. package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
  248. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
  249. package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
  250. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
  251. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
  252. package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
  253. package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
  254. package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
  255. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
  256. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
  257. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
  258. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
  259. package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
  260. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
  261. package/dist/src/composables/index.js +0 -7
  262. package/dist/src/composables/useDrawer.js +0 -72
  263. package/dist/src/composables/useEncodeDecode.js +0 -25
  264. package/dist/src/composables/useFieldErrors.js +0 -20
  265. package/dist/src/composables/useHelper.js +0 -79
  266. package/dist/src/composables/useModal.js +0 -71
  267. package/dist/src/composables/useRandomNumber.js +0 -10
  268. package/dist/src/composables/useTooltip.js +0 -154
  269. package/dist/src/consts/index.js +0 -1
  270. package/dist/src/consts/table.js +0 -6
  271. package/dist/src/enums/Cell.js +0 -6
  272. package/dist/src/enums/Chip.js +0 -11
  273. package/dist/src/enums/Datepicker.js +0 -42
  274. package/dist/src/enums/Drawer.js +0 -5
  275. package/dist/src/enums/Dropdown.js +0 -12
  276. package/dist/src/enums/Filter.js +0 -14
  277. package/dist/src/enums/Grid.js +0 -24
  278. package/dist/src/enums/Input.js +0 -20
  279. package/dist/src/enums/Modal.js +0 -5
  280. package/dist/src/enums/Preview.js +0 -6
  281. package/dist/src/enums/Radio.js +0 -5
  282. package/dist/src/enums/RadioGroup.js +0 -5
  283. package/dist/src/enums/Select.js +0 -11
  284. package/dist/src/enums/Sidebar.js +0 -5
  285. package/dist/src/enums/Tab.js +0 -6
  286. package/dist/src/enums/Title.js +0 -21
  287. package/dist/src/enums/Tooltip.js +0 -15
  288. package/dist/src/enums/index.js +0 -22
  289. package/dist/src/enums/ui/Alignment.js +0 -6
  290. package/dist/src/enums/ui/Button.js +0 -24
  291. package/dist/src/enums/ui/Directions.js +0 -5
  292. package/dist/src/enums/ui/Weights.js +0 -7
  293. package/dist/src/index.js +0 -17
  294. package/dist/src/main.js +0 -8
  295. package/dist/src/mocks/authUser.js +0 -162
  296. package/dist/src/mocks/categories.js +0 -108
  297. package/dist/src/mocks/filterMocks.js +0 -128
  298. package/dist/src/mocks/icons.json +0 -1
  299. package/dist/src/mocks/menuLangs.js +0 -19
  300. package/dist/src/mocks/selectOptions.json +0 -111
  301. package/dist/src/mocks/sidebar.js +0 -125
  302. package/dist/src/mocks/tableData.js +0 -8180
  303. package/dist/src/types/IButton.js +0 -1
  304. package/dist/src/types/ICell.js +0 -1
  305. package/dist/src/types/IChip.js +0 -1
  306. package/dist/src/types/ICollapse.js +0 -1
  307. package/dist/src/types/IDatepicker.js +0 -1
  308. package/dist/src/types/IDirections.js +0 -1
  309. package/dist/src/types/IDrawer.js +0 -1
  310. package/dist/src/types/IDropdown.js +0 -1
  311. package/dist/src/types/IFilter.js +0 -1
  312. package/dist/src/types/IGrid.js +0 -1
  313. package/dist/src/types/IInput.js +0 -1
  314. package/dist/src/types/IModal.js +0 -1
  315. package/dist/src/types/IPreview.js +0 -1
  316. package/dist/src/types/IRadio.js +0 -1
  317. package/dist/src/types/IRadioGroup.js +0 -1
  318. package/dist/src/types/IRoute.js +0 -1
  319. package/dist/src/types/ISelect.js +0 -1
  320. package/dist/src/types/ISideBar.js +0 -1
  321. package/dist/src/types/ITable.js +0 -1
  322. package/dist/src/types/ITabs.js +0 -1
  323. package/dist/src/types/ITitle.js +0 -1
  324. package/dist/src/types/ITooltip.js +0 -1
  325. package/dist/src/types/index.js +0 -38
  326. package/dist/src/types/styles/Alignment.js +0 -1
  327. package/dist/src/types/styles/AvatarSizes.js +0 -3
  328. package/dist/src/types/styles/Colors.js +0 -3
  329. package/dist/src/types/styles/Durations.js +0 -3
  330. package/dist/src/types/styles/FontSizes.js +0 -3
  331. package/dist/src/types/styles/FontWeights.js +0 -3
  332. package/dist/src/types/styles/Grid.js +0 -1
  333. package/dist/src/types/styles/Icons.js +0 -2
  334. package/dist/src/types/styles/LineHeights.js +0 -3
  335. package/dist/src/types/styles/MediaQueries.js +0 -3
  336. package/dist/src/types/styles/Radiuses.js +0 -3
  337. package/dist/src/types/styles/Sizes.js +0 -3
  338. package/dist/src/types/styles/Spaces.js +0 -3
  339. package/dist/src/types/styles/Weights.js +0 -1
  340. package/dist/src/utils/dayjs.js +0 -22
  341. package/dist/src/utils/index.js +0 -2
  342. package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
  343. package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
  344. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -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 */