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,136 +0,0 @@
1
- import { McSvgIcon } from '@/components';
2
- import { computed } from 'vue';
3
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
4
- const emit = defineEmits();
5
- const props = defineProps({
6
- sort: {
7
- type: Object,
8
- default: () => ({})
9
- },
10
- column: {
11
- type: String,
12
- default: null
13
- }
14
- });
15
- const isActive = computed(() => {
16
- return props.column === props.sort.sort_column;
17
- });
18
- const sortState = computed(() => {
19
- switch (true) {
20
- case props.sort.sort_direction === 'asc' && isActive.value:
21
- return {
22
- direction: 'asc',
23
- next_direction: 'desc',
24
- icon: 'arrow_downward'
25
- };
26
- case props.sort.sort_direction === 'desc' && isActive.value:
27
- return {
28
- direction: 'desc',
29
- next_direction: 'asc',
30
- icon: 'arrow_upward'
31
- };
32
- default:
33
- return {
34
- direction: null,
35
- next_direction: 'asc',
36
- icon: 'arrow_up_down'
37
- };
38
- }
39
- });
40
- const handleSortChange = () => {
41
- emit('change', {
42
- sort_column: props.column,
43
- sort_direction: sortState.value.next_direction
44
- });
45
- }; /* PartiallyEnd: #3632/scriptSetup.vue */
46
- const __VLS_fnComponent = (await import('vue')).defineComponent({
47
- props: {
48
- sort: {
49
- type: Object,
50
- default: () => ({})
51
- },
52
- column: {
53
- type: String,
54
- default: null
55
- }
56
- },
57
- __typeEmits: {},
58
- });
59
- ;
60
- let __VLS_functionalComponentProps;
61
- function __VLS_template() {
62
- const __VLS_ctx = {};
63
- const __VLS_localComponents = {
64
- ...{},
65
- ...{},
66
- ...__VLS_ctx,
67
- };
68
- let __VLS_components;
69
- const __VLS_localDirectives = {
70
- ...{},
71
- ...__VLS_ctx,
72
- };
73
- let __VLS_directives;
74
- let __VLS_styleScopedClasses;
75
- // CSS variable injection
76
- // CSS variable injection end
77
- let __VLS_resolvedLocalAndGlobalComponents;
78
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onClick: (__VLS_ctx.handleSortChange) }, ...{ class: ("mc-table-sort") }, });
79
- const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
80
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
81
- // @ts-ignore
82
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }));
83
- const __VLS_2 = __VLS_1({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
84
- __VLS_styleScopedClasses['mc-table-sort'];
85
- var __VLS_slots;
86
- var __VLS_inheritedAttrs;
87
- const __VLS_refs = {};
88
- var $refs;
89
- var $el;
90
- return {
91
- attrs: {},
92
- slots: __VLS_slots,
93
- refs: $refs,
94
- rootEl: $el,
95
- };
96
- }
97
- ;
98
- const __VLS_self = (await import('vue')).defineComponent({
99
- setup() {
100
- return {
101
- McSvgIcon: McSvgIcon,
102
- isActive: isActive,
103
- sortState: sortState,
104
- handleSortChange: handleSortChange,
105
- };
106
- },
107
- __typeEmits: {},
108
- props: {
109
- sort: {
110
- type: Object,
111
- default: () => ({})
112
- },
113
- column: {
114
- type: String,
115
- default: null
116
- }
117
- },
118
- });
119
- export default (await import('vue')).defineComponent({
120
- setup() {
121
- return {};
122
- },
123
- __typeEmits: {},
124
- props: {
125
- sort: {
126
- type: Object,
127
- default: () => ({})
128
- },
129
- column: {
130
- type: String,
131
- default: null
132
- }
133
- },
134
- __typeEl: {},
135
- });
136
- ; /* PartiallyEnd: #4569/main.vue */
@@ -1,305 +0,0 @@
1
- import { McAvatar, McButton, McSvgIcon, McSeparator, McDropdown } from '@/components';
2
- import { ref } from 'vue';
3
- import { ButtonSize, DropdownPositions, HorizontalAlignment } from '@/enums';
4
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
5
- const props = defineProps({
6
- /**
7
- * Данные пользователя
8
- *
9
- */
10
- user: {
11
- type: Object,
12
- default: () => ({})
13
- },
14
- /**
15
- * Меню языков
16
- *
17
- */
18
- menuLangs: {
19
- type: Array,
20
- default: () => []
21
- },
22
- /**
23
- * Локализация или текст по умолчанию
24
- *
25
- */
26
- defaultLang: {
27
- type: String,
28
- default: 'Выберите язык'
29
- },
30
- /**
31
- * Текущая локализация
32
- *
33
- */
34
- currentLang: {
35
- type: String,
36
- default: null
37
- }
38
- });
39
- const menuLangsDD = ref(null);
40
- const localesDropdownOpen = ref(false);
41
- const userDropdownOpen = ref(false); /* PartiallyEnd: #3632/scriptSetup.vue */
42
- const __VLS_fnComponent = (await import('vue')).defineComponent({
43
- props: {
44
- /**
45
- * Данные пользователя
46
- *
47
- */
48
- user: {
49
- type: Object,
50
- default: () => ({})
51
- },
52
- /**
53
- * Меню языков
54
- *
55
- */
56
- menuLangs: {
57
- type: Array,
58
- default: () => []
59
- },
60
- /**
61
- * Локализация или текст по умолчанию
62
- *
63
- */
64
- defaultLang: {
65
- type: String,
66
- default: 'Выберите язык'
67
- },
68
- /**
69
- * Текущая локализация
70
- *
71
- */
72
- currentLang: {
73
- type: String,
74
- default: null
75
- }
76
- },
77
- });
78
- ;
79
- let __VLS_functionalComponentProps;
80
- function __VLS_template() {
81
- const __VLS_ctx = {};
82
- const __VLS_localComponents = {
83
- ...{},
84
- ...{},
85
- ...__VLS_ctx,
86
- };
87
- let __VLS_components;
88
- const __VLS_localDirectives = {
89
- ...{},
90
- ...__VLS_ctx,
91
- };
92
- let __VLS_directives;
93
- let __VLS_styleScopedClasses;
94
- // CSS variable injection
95
- // CSS variable injection end
96
- let __VLS_resolvedLocalAndGlobalComponents;
97
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar") }, });
98
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__inner") }, });
99
- if (__VLS_ctx.$slots.left) {
100
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__left") }, });
101
- var __VLS_0 = {};
102
- }
103
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__right") }, });
104
- var __VLS_1 = {};
105
- if (__VLS_ctx.menuLangs && __VLS_ctx.menuLangs.length) {
106
- const __VLS_2 = __VLS_resolvedLocalAndGlobalComponents.McDropdown;
107
- /** @type { [typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, ] } */
108
- // @ts-ignore
109
- const __VLS_3 = __VLS_asFunctionalComponent(__VLS_2, new __VLS_2({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }));
110
- const __VLS_4 = __VLS_3({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }, ...__VLS_functionalComponentArgsRest(__VLS_3));
111
- // @ts-ignore navigation for `const menuLangsDD = ref()`
112
- __VLS_ctx.menuLangsDD;
113
- var __VLS_8 = {};
114
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
115
- {
116
- const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_7.slots);
117
- const __VLS_9 = __VLS_resolvedLocalAndGlobalComponents.McButton;
118
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
119
- // @ts-ignore
120
- const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({ variation: ("black-link"), uppercase: (true), }));
121
- const __VLS_11 = __VLS_10({ variation: ("black-link"), uppercase: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_10));
122
- (__VLS_ctx.currentLang || __VLS_ctx.defaultLang);
123
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
124
- {
125
- const { "icon-append": __VLS_thisSlot } = __VLS_nonNullable(__VLS_14.slots);
126
- const __VLS_15 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
127
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
128
- // @ts-ignore
129
- const __VLS_16 = __VLS_asFunctionalComponent(__VLS_15, new __VLS_15({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }));
130
- const __VLS_17 = __VLS_16({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }, ...__VLS_functionalComponentArgsRest(__VLS_16));
131
- }
132
- var __VLS_14;
133
- }
134
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
135
- {
136
- const { item: __VLS_thisSlot } = __VLS_nonNullable(__VLS_7.slots);
137
- const [{ item }] = __VLS_getSlotParams(__VLS_thisSlot);
138
- const __VLS_21 = __VLS_resolvedLocalAndGlobalComponents.McButton;
139
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
140
- // @ts-ignore
141
- const __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }));
142
- const __VLS_23 = __VLS_22({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_22));
143
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
144
- {
145
- const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_26.slots);
146
- const __VLS_27 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
147
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
148
- // @ts-ignore
149
- const __VLS_28 = __VLS_asFunctionalComponent(__VLS_27, new __VLS_27({ name: `flag_${item.name.toLowerCase()}`, }));
150
- const __VLS_29 = __VLS_28({ name: `flag_${item.name.toLowerCase()}`, }, ...__VLS_functionalComponentArgsRest(__VLS_28));
151
- }
152
- (item.name);
153
- var __VLS_26;
154
- }
155
- var __VLS_7;
156
- }
157
- var __VLS_33 = {};
158
- if (props.user) {
159
- const __VLS_34 = __VLS_resolvedLocalAndGlobalComponents.McDropdown;
160
- /** @type { [typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, ] } */
161
- // @ts-ignore
162
- const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }));
163
- const __VLS_36 = __VLS_35({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }, ...__VLS_functionalComponentArgsRest(__VLS_35));
164
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
165
- {
166
- const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_39.slots);
167
- const __VLS_40 = __VLS_resolvedLocalAndGlobalComponents.McButton;
168
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
169
- // @ts-ignore
170
- const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }));
171
- const __VLS_42 = __VLS_41({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
172
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
173
- {
174
- const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_45.slots);
175
- const __VLS_46 = __VLS_resolvedLocalAndGlobalComponents.McAvatar;
176
- /** @type { [typeof __VLS_components.McAvatar, typeof __VLS_components.mcAvatar, ] } */
177
- // @ts-ignore
178
- const __VLS_47 = __VLS_asFunctionalComponent(__VLS_46, new __VLS_46({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }));
179
- const __VLS_48 = __VLS_47({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }, ...__VLS_functionalComponentArgsRest(__VLS_47));
180
- }
181
- var __VLS_45;
182
- }
183
- var __VLS_52 = {};
184
- var __VLS_39;
185
- }
186
- const __VLS_53 = __VLS_resolvedLocalAndGlobalComponents.McSeparator;
187
- /** @type { [typeof __VLS_components.McSeparator, typeof __VLS_components.mcSeparator, ] } */
188
- // @ts-ignore
189
- const __VLS_54 = __VLS_asFunctionalComponent(__VLS_53, new __VLS_53({ color: ("hover-gray"), indentTop: ("100"), }));
190
- const __VLS_55 = __VLS_54({ color: ("hover-gray"), indentTop: ("100"), }, ...__VLS_functionalComponentArgsRest(__VLS_54));
191
- var __VLS_59 = {};
192
- __VLS_styleScopedClasses['mc-top-bar'];
193
- __VLS_styleScopedClasses['mc-top-bar__inner'];
194
- __VLS_styleScopedClasses['mc-top-bar__left'];
195
- __VLS_styleScopedClasses['mc-top-bar__right'];
196
- __VLS_styleScopedClasses['mc-top-bar__menu-langs'];
197
- __VLS_styleScopedClasses['rotate'];
198
- var __VLS_slots;
199
- var __VLS_inheritedAttrs;
200
- const __VLS_refs = {
201
- "menuLangsDD": __VLS_8,
202
- };
203
- var $refs;
204
- var $el;
205
- return {
206
- attrs: {},
207
- slots: __VLS_slots,
208
- refs: $refs,
209
- rootEl: $el,
210
- };
211
- }
212
- ;
213
- const __VLS_self = (await import('vue')).defineComponent({
214
- setup() {
215
- return {
216
- McAvatar: McAvatar,
217
- McButton: McButton,
218
- McSvgIcon: McSvgIcon,
219
- McSeparator: McSeparator,
220
- McDropdown: McDropdown,
221
- ButtonSize: ButtonSize,
222
- DropdownPositions: DropdownPositions,
223
- HorizontalAlignment: HorizontalAlignment,
224
- menuLangsDD: menuLangsDD,
225
- localesDropdownOpen: localesDropdownOpen,
226
- userDropdownOpen: userDropdownOpen,
227
- };
228
- },
229
- props: {
230
- /**
231
- * Данные пользователя
232
- *
233
- */
234
- user: {
235
- type: Object,
236
- default: () => ({})
237
- },
238
- /**
239
- * Меню языков
240
- *
241
- */
242
- menuLangs: {
243
- type: Array,
244
- default: () => []
245
- },
246
- /**
247
- * Локализация или текст по умолчанию
248
- *
249
- */
250
- defaultLang: {
251
- type: String,
252
- default: 'Выберите язык'
253
- },
254
- /**
255
- * Текущая локализация
256
- *
257
- */
258
- currentLang: {
259
- type: String,
260
- default: null
261
- }
262
- },
263
- });
264
- const __VLS_component = (await import('vue')).defineComponent({
265
- setup() {
266
- return {};
267
- },
268
- props: {
269
- /**
270
- * Данные пользователя
271
- *
272
- */
273
- user: {
274
- type: Object,
275
- default: () => ({})
276
- },
277
- /**
278
- * Меню языков
279
- *
280
- */
281
- menuLangs: {
282
- type: Array,
283
- default: () => []
284
- },
285
- /**
286
- * Локализация или текст по умолчанию
287
- *
288
- */
289
- defaultLang: {
290
- type: String,
291
- default: 'Выберите язык'
292
- },
293
- /**
294
- * Текущая локализация
295
- *
296
- */
297
- currentLang: {
298
- type: String,
299
- default: null
300
- }
301
- },
302
- __typeEl: {},
303
- });
304
- export default {};
305
- ; /* PartiallyEnd: #4569/main.vue */
@@ -1,239 +0,0 @@
1
- import { ref, onMounted, nextTick, watch, computed } from 'vue';
2
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
3
- const props = defineProps({
4
- /**
5
- * Массив данных для рендеринга
6
- * */
7
- items: {
8
- type: Array,
9
- default: () => [],
10
- required: true
11
- },
12
- /**
13
- * Высота контейнера скролла
14
- * */
15
- containerHeight: {
16
- type: Number,
17
- required: true
18
- },
19
- /**
20
- * Высота 1 элемента списка
21
- * */
22
- itemHeight: {
23
- type: Number,
24
- default: 20,
25
- required: true
26
- },
27
- /**
28
- * Буфер для подгрузки дополнительных элементов вне видимой области
29
- * */
30
- buffer: {
31
- type: Number,
32
- default: 1
33
- }
34
- });
35
- const containerRef = ref(null);
36
- const scrollTop = ref(0);
37
- const visibleItems = ref([]);
38
- const totalHeight = ref(0);
39
- const styles = computed(() => {
40
- return {
41
- height: `${props.containerHeight}px`,
42
- overflowY: 'auto',
43
- position: 'relative'
44
- };
45
- });
46
- onMounted(() => {
47
- calculateTotalHeight();
48
- nextTick(calculateVisibleItems);
49
- });
50
- const calculateTotalHeight = () => {
51
- totalHeight.value = props.items.length * props.itemHeight;
52
- };
53
- const calculateVisibleItems = () => {
54
- const containerHeight = containerRef.value?.clientHeight || 0;
55
- const startIndex = Math.floor(scrollTop.value / props.itemHeight);
56
- const endIndex = Math.min(props.items.length - 1, Math.floor((scrollTop.value + containerHeight) / props.itemHeight));
57
- const buffer = props.buffer || 5;
58
- const result = [];
59
- for (let i = Math.max(0, startIndex - buffer); i <= Math.min(endIndex + buffer, props.items.length - 1); i++) {
60
- result.push({
61
- key: i,
62
- data: props.items[i],
63
- index: i,
64
- top: i * props.itemHeight
65
- });
66
- }
67
- visibleItems.value = result;
68
- };
69
- const onScroll = () => {
70
- scrollTop.value = containerRef.value?.scrollTop || 0;
71
- requestAnimationFrame(calculateVisibleItems);
72
- };
73
- watch(() => props.items, () => {
74
- calculateTotalHeight();
75
- nextTick(calculateVisibleItems);
76
- }); /* PartiallyEnd: #3632/scriptSetup.vue */
77
- const __VLS_fnComponent = (await import('vue')).defineComponent({
78
- props: {
79
- /**
80
- * Массив данных для рендеринга
81
- * */
82
- items: {
83
- type: Array,
84
- default: () => [],
85
- required: true
86
- },
87
- /**
88
- * Высота контейнера скролла
89
- * */
90
- containerHeight: {
91
- type: Number,
92
- required: true
93
- },
94
- /**
95
- * Высота 1 элемента списка
96
- * */
97
- itemHeight: {
98
- type: Number,
99
- default: 20,
100
- required: true
101
- },
102
- /**
103
- * Буфер для подгрузки дополнительных элементов вне видимой области
104
- * */
105
- buffer: {
106
- type: Number,
107
- default: 1
108
- }
109
- },
110
- });
111
- ;
112
- let __VLS_functionalComponentProps;
113
- function __VLS_template() {
114
- const __VLS_ctx = {};
115
- const __VLS_localComponents = {
116
- ...{},
117
- ...{},
118
- ...__VLS_ctx,
119
- };
120
- let __VLS_components;
121
- const __VLS_localDirectives = {
122
- ...{},
123
- ...__VLS_ctx,
124
- };
125
- let __VLS_directives;
126
- let __VLS_styleScopedClasses;
127
- // CSS variable injection
128
- // CSS variable injection end
129
- let __VLS_resolvedLocalAndGlobalComponents;
130
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onScroll: (__VLS_ctx.onScroll) }, ...{ class: ("mc-virtual-scroll") }, ref: ("containerRef"), ...{ style: ((__VLS_ctx.styles)) }, });
131
- // @ts-ignore navigation for `const containerRef = ref()`
132
- __VLS_ctx.containerRef;
133
- for (const [item] of __VLS_getVForSourceType((__VLS_ctx.visibleItems))) {
134
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((`mc-virtual-scroll__item-${item.key}`)), ...{ class: ("mc-virtual-scroll__item") }, ...{ style: (({ top: `${item.top}px` })) }, });
135
- var __VLS_0 = {
136
- item: ((item.data)), index: ((item.index)),
137
- };
138
- }
139
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ style: (({ height: `${__VLS_ctx.totalHeight}px` })) }, });
140
- __VLS_styleScopedClasses['mc-virtual-scroll'];
141
- __VLS_styleScopedClasses['mc-virtual-scroll__item'];
142
- var __VLS_slots;
143
- var __VLS_inheritedAttrs;
144
- const __VLS_refs = {
145
- "containerRef": __VLS_nativeElements['div'],
146
- };
147
- var $refs;
148
- var $el;
149
- return {
150
- attrs: {},
151
- slots: __VLS_slots,
152
- refs: $refs,
153
- rootEl: $el,
154
- };
155
- }
156
- ;
157
- const __VLS_self = (await import('vue')).defineComponent({
158
- setup() {
159
- return {
160
- containerRef: containerRef,
161
- visibleItems: visibleItems,
162
- totalHeight: totalHeight,
163
- styles: styles,
164
- onScroll: onScroll,
165
- };
166
- },
167
- props: {
168
- /**
169
- * Массив данных для рендеринга
170
- * */
171
- items: {
172
- type: Array,
173
- default: () => [],
174
- required: true
175
- },
176
- /**
177
- * Высота контейнера скролла
178
- * */
179
- containerHeight: {
180
- type: Number,
181
- required: true
182
- },
183
- /**
184
- * Высота 1 элемента списка
185
- * */
186
- itemHeight: {
187
- type: Number,
188
- default: 20,
189
- required: true
190
- },
191
- /**
192
- * Буфер для подгрузки дополнительных элементов вне видимой области
193
- * */
194
- buffer: {
195
- type: Number,
196
- default: 1
197
- }
198
- },
199
- });
200
- const __VLS_component = (await import('vue')).defineComponent({
201
- setup() {
202
- return {};
203
- },
204
- props: {
205
- /**
206
- * Массив данных для рендеринга
207
- * */
208
- items: {
209
- type: Array,
210
- default: () => [],
211
- required: true
212
- },
213
- /**
214
- * Высота контейнера скролла
215
- * */
216
- containerHeight: {
217
- type: Number,
218
- required: true
219
- },
220
- /**
221
- * Высота 1 элемента списка
222
- * */
223
- itemHeight: {
224
- type: Number,
225
- default: 20,
226
- required: true
227
- },
228
- /**
229
- * Буфер для подгрузки дополнительных элементов вне видимой области
230
- * */
231
- buffer: {
232
- type: Number,
233
- default: 1
234
- }
235
- },
236
- __typeEl: {},
237
- });
238
- export default {};
239
- ; /* PartiallyEnd: #4569/main.vue */
@@ -1,7 +0,0 @@
1
- export { useDrawer } from './useDrawer';
2
- export { UseEncodeDecode } from '@/composables/useEncodeDecode';
3
- export { useFieldErrors } from './useFieldErrors';
4
- export { useHelper } from './useHelper';
5
- export { useModal } from './useModal';
6
- export { useRandomNumber } from './useRandomNumber';
7
- export { useTooltip } from './useTooltip';