mediacube-ui-v2 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/assets/iconsSprite.svg +1 -0
  3. package/dist/assets/img/img/no_table_data.png +0 -0
  4. package/dist/assets/img/img/no_user.png +0 -0
  5. package/dist/assets/tokens/json/animations.json.d.ts +8 -0
  6. package/dist/assets/tokens/json/border-radius.json.d.ts +26 -0
  7. package/dist/assets/tokens/json/box-shadows.json.d.ts +26 -0
  8. package/dist/assets/tokens/json/colors.json.d.ts +73 -0
  9. package/dist/assets/tokens/json/durations.json.d.ts +12 -0
  10. package/dist/assets/tokens/json/easings.json.d.ts +5 -0
  11. package/dist/assets/tokens/json/font-families.json.d.ts +6 -0
  12. package/dist/assets/tokens/json/font-sizes.json.d.ts +20 -0
  13. package/dist/assets/tokens/json/font-weights.json.d.ts +14 -0
  14. package/dist/assets/tokens/json/gradients.json.d.ts +15 -0
  15. package/dist/assets/tokens/json/index.d.ts +18 -0
  16. package/dist/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  17. package/dist/assets/tokens/json/line-heights.json.d.ts +20 -0
  18. package/dist/assets/tokens/json/media-queries.json.d.ts +28 -0
  19. package/dist/assets/tokens/json/opacities.json.d.ts +7 -0
  20. package/dist/assets/tokens/json/sizes.json.d.ts +44 -0
  21. package/dist/assets/tokens/json/spacings.json.d.ts +36 -0
  22. package/dist/assets/tokens/json/z-indexes.json.d.ts +14 -0
  23. package/dist/{types/components → components}/elements/McAvatar/McAvatar.vue.d.ts +5 -5
  24. package/dist/{types/components → components}/elements/McBadge/McBadge.vue.d.ts +3 -3
  25. package/dist/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
  26. package/dist/{types/components → components}/elements/McButton/McButton.vue.d.ts +12 -13
  27. package/dist/{types/components → components}/elements/McChip/McChip.vue.d.ts +6 -7
  28. package/dist/{types/components → components}/elements/McDatepicker/McDatepicker.vue.d.ts +1 -2
  29. package/dist/{types/components → components}/elements/McDraggable/McDraggable.vue.d.ts +4 -4
  30. package/dist/{types/components → components}/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
  31. package/dist/{types/components → components}/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
  32. package/dist/{types/components → components}/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
  33. package/dist/{types/components → components}/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
  34. package/dist/{types/components → components}/elements/McFieldSelect/McFieldSelect.vue.d.ts +11 -12
  35. package/dist/{types/components → components}/elements/McFieldText/McFieldText.vue.d.ts +9 -9
  36. package/dist/{types/components → components}/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
  37. package/dist/{types/components → components}/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
  38. package/dist/components/elements/McNodata/McNoData.vue.d.ts +110 -0
  39. package/dist/components/elements/McNotification/McNotification.vue.d.ts +124 -0
  40. package/dist/{types/components → components}/elements/McProgress/McProgress.vue.d.ts +5 -5
  41. package/dist/{types/components → components}/elements/McSeparator/McSeparator.vue.d.ts +4 -4
  42. package/dist/{types/components → components}/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
  43. package/dist/{types/components → components}/elements/McStack/McStack.vue.d.ts +4 -4
  44. package/dist/{types/components → components}/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
  45. package/dist/{types/components → components}/elements/McTitle/McTitle.vue.d.ts +7 -7
  46. package/dist/{types/components → components}/elements/McTooltip/McTooltip.vue.d.ts +6 -6
  47. package/dist/components/index.d.ts +61 -0
  48. package/dist/{types/components → components}/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
  49. package/dist/{types/components → components}/patterns/McCell/McCell.vue.d.ts +6 -6
  50. package/dist/{types/components → components}/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
  51. package/dist/{types/components → components}/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
  52. package/dist/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
  53. package/dist/{types/components → components}/patterns/McFilter/McFilter.vue.d.ts +6 -6
  54. package/dist/{types/components → components}/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
  55. package/dist/{types/components → components}/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
  56. package/dist/{types/components → components}/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
  57. package/dist/{types/components → components}/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
  58. package/dist/{types/components → components}/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
  59. package/dist/{types/components → components}/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
  60. package/dist/{types/components → components}/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
  61. package/dist/{types/components → components}/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
  62. package/dist/{types/components → components}/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
  63. package/dist/{types/components → components}/patterns/McPreview/McPreview.vue.d.ts +4 -4
  64. package/dist/components/patterns/McSideBar/McSideBar.vue.d.ts +292 -0
  65. package/dist/{types/components → components}/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
  66. package/dist/{types/components → components}/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +6 -6
  67. package/dist/{types/components → components}/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
  68. package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +123 -0
  69. package/dist/components/patterns/McTab/McTab.vue.d.ts +224 -0
  70. package/dist/{types/components → components}/patterns/McTabs/McTabs.vue.d.ts +7 -8
  71. package/dist/{types/components → components}/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
  72. package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +104 -0
  73. package/dist/{types/components → components}/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
  74. package/dist/{types/components → components}/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
  75. package/dist/{types/components → components}/templates/McModal/McModal.vue.d.ts +7 -7
  76. package/dist/{types/components → components}/templates/McModal/McModalContainer.vue.d.ts +5 -5
  77. package/dist/components/templates/McTable/McTable/McTable.vue.d.ts +295 -0
  78. package/dist/{types/components → components}/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
  79. package/dist/{types/components → components}/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
  80. package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
  81. package/dist/{types/components → components}/templates/McTable/McTableSort/McTableSort.vue.d.ts +7 -7
  82. package/dist/{types/components → components}/templates/McTopBar/McTopBar.vue.d.ts +4 -4
  83. package/dist/{types/components → components}/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
  84. package/dist/{types/composables → composables}/index.d.ts +1 -1
  85. package/dist/{types/composables → composables}/useDrawer.d.ts +1 -1
  86. package/dist/composables/useFieldErrors.d.ts +5 -0
  87. package/dist/{types/composables → composables}/useTooltip.d.ts +1 -1
  88. package/dist/index.cjs +1 -1
  89. package/dist/index.d.ts +10 -0
  90. package/dist/index.js +10522 -13
  91. package/dist/main.d.ts +0 -0
  92. package/dist/{types/mocks → mocks}/filterMocks.d.ts +1 -1
  93. package/dist/mocks/icons.json.d.ts +3 -0
  94. package/dist/{types/mocks → mocks}/sidebar.d.ts +1 -1
  95. package/dist/{types/mocks → mocks}/tableData.d.ts +1 -1
  96. package/dist/types/{types/IButton.d.ts → IButton.d.ts} +5 -5
  97. package/dist/types/{types/ICell.d.ts → ICell.d.ts} +1 -1
  98. package/dist/types/{types/IChip.d.ts → IChip.d.ts} +2 -2
  99. package/dist/types/{types/IDatepicker.d.ts → IDatepicker.d.ts} +1 -1
  100. package/dist/types/{types/IDirections.d.ts → IDirections.d.ts} +1 -1
  101. package/dist/types/{types/IDrawer.d.ts → IDrawer.d.ts} +2 -2
  102. package/dist/types/{types/IDropdown.d.ts → IDropdown.d.ts} +1 -1
  103. package/dist/types/{types/IFilter.d.ts → IFilter.d.ts} +1 -1
  104. package/dist/types/{types/IInput.d.ts → IInput.d.ts} +1 -1
  105. package/dist/types/{types/IModal.d.ts → IModal.d.ts} +2 -2
  106. package/dist/types/{types/IPreview.d.ts → IPreview.d.ts} +1 -1
  107. package/dist/types/{types/IRadio.d.ts → IRadio.d.ts} +1 -1
  108. package/dist/types/{types/IRadioGroup.d.ts → IRadioGroup.d.ts} +1 -1
  109. package/dist/types/{types/ISelect.d.ts → ISelect.d.ts} +1 -1
  110. package/dist/types/{types/ISideBar.d.ts → ISideBar.d.ts} +5 -5
  111. package/dist/types/{types/ITable.d.ts → ITable.d.ts} +2 -2
  112. package/dist/types/{types/ITabs.d.ts → ITabs.d.ts} +4 -4
  113. package/dist/types/{types/ITitle.d.ts → ITitle.d.ts} +1 -1
  114. package/dist/types/{types/ITooltip.d.ts → ITooltip.d.ts} +1 -1
  115. package/dist/types/index.d.ts +36 -9
  116. package/dist/types/{types/styles → styles}/Alignment.d.ts +1 -1
  117. package/dist/types/{types/styles → styles}/Grid.d.ts +1 -1
  118. package/dist/types/{types/styles → styles}/Weights.d.ts +1 -1
  119. package/dist/{types/utils → utils}/dayjs.d.ts +1 -2
  120. package/dist/{types/utils → utils}/mcGridColAdaptiveProps.d.ts +1 -1
  121. package/dist/{types/utils → utils}/mcTitleAdaptiveProps.d.ts +1 -1
  122. package/package.json +5 -3
  123. package/dist/App.vue.js +0 -54
  124. package/dist/assets/tokens/json/animations.json +0 -6
  125. package/dist/assets/tokens/json/border-radius.json +0 -24
  126. package/dist/assets/tokens/json/box-shadows.json +0 -24
  127. package/dist/assets/tokens/json/colors.json +0 -71
  128. package/dist/assets/tokens/json/durations.json +0 -10
  129. package/dist/assets/tokens/json/easings.json +0 -3
  130. package/dist/assets/tokens/json/font-families.json +0 -4
  131. package/dist/assets/tokens/json/font-sizes.json +0 -18
  132. package/dist/assets/tokens/json/font-weights.json +0 -12
  133. package/dist/assets/tokens/json/gradients.json +0 -13
  134. package/dist/assets/tokens/json/index.js +0 -18
  135. package/dist/assets/tokens/json/letter-spacings.json +0 -4
  136. package/dist/assets/tokens/json/line-heights.json +0 -18
  137. package/dist/assets/tokens/json/media-queries.json +0 -26
  138. package/dist/assets/tokens/json/opacities.json +0 -5
  139. package/dist/assets/tokens/json/sizes.json +0 -42
  140. package/dist/assets/tokens/json/spacings.json +0 -34
  141. package/dist/assets/tokens/json/z-indexes.json +0 -12
  142. package/dist/components/elements/McAvatar/McAvatar.vue.js +0 -412
  143. package/dist/components/elements/McBadge/McBadge.vue.js +0 -188
  144. package/dist/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
  145. package/dist/components/elements/McButton/McButton.vue.js +0 -1037
  146. package/dist/components/elements/McChip/McChip.vue.js +0 -326
  147. package/dist/components/elements/McCropper/McCropper.vue.js +0 -98
  148. package/dist/components/elements/McDatepicker/McDatepicker.vue.js +0 -1255
  149. package/dist/components/elements/McDraggable/McDraggable.vue.js +0 -280
  150. package/dist/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -542
  151. package/dist/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -489
  152. package/dist/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -471
  153. package/dist/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
  154. package/dist/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1440
  155. package/dist/components/elements/McFieldText/McFieldText.vue.js +0 -1404
  156. package/dist/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
  157. package/dist/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
  158. package/dist/components/elements/McNodata/McNoData.vue.js +0 -319
  159. package/dist/components/elements/McNotification/McNotification.vue.js +0 -367
  160. package/dist/components/elements/McProgress/McProgress.vue.js +0 -361
  161. package/dist/components/elements/McSeparator/McSeparator.vue.js +0 -325
  162. package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
  163. package/dist/components/elements/McStack/McStack.vue.js +0 -180
  164. package/dist/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -289
  165. package/dist/components/elements/McTitle/McTitle.vue.js +0 -468
  166. package/dist/components/elements/McTooltip/McTooltip.vue.js +0 -246
  167. package/dist/components/index.js +0 -73
  168. package/dist/components/patterns/McAccordion/McAccordion.vue.js +0 -120
  169. package/dist/components/patterns/McCell/McCell.vue.js +0 -197
  170. package/dist/components/patterns/McCollapse/McCollapse.vue.js +0 -315
  171. package/dist/components/patterns/McDropdown/McDropdown.vue.js +0 -366
  172. package/dist/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
  173. package/dist/components/patterns/McFilter/McFilter.vue.js +0 -1068
  174. package/dist/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -211
  175. package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -552
  176. package/dist/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
  177. package/dist/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
  178. package/dist/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -359
  179. package/dist/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
  180. package/dist/components/patterns/McGridCol/McGridCol.vue.js +0 -246
  181. package/dist/components/patterns/McGridRow/McGridRow.vue.js +0 -292
  182. package/dist/components/patterns/McOverlay/McOverlay.vue.js +0 -107
  183. package/dist/components/patterns/McPreview/McPreview.vue.js +0 -118
  184. package/dist/components/patterns/McSideBar/McSideBar.vue.js +0 -740
  185. package/dist/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
  186. package/dist/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -510
  187. package/dist/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -413
  188. package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -419
  189. package/dist/components/patterns/McTab/McTab.vue.js +0 -518
  190. package/dist/components/patterns/McTabs/McTabs.vue.js +0 -427
  191. package/dist/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
  192. package/dist/components/templates/McDrawer/McDrawer.vue.js +0 -304
  193. package/dist/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
  194. package/dist/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
  195. package/dist/components/templates/McModal/McModal.vue.js +0 -664
  196. package/dist/components/templates/McModal/McModalContainer.vue.js +0 -119
  197. package/dist/components/templates/McTable/McTable/McTable.vue.js +0 -862
  198. package/dist/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
  199. package/dist/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -119
  200. package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
  201. package/dist/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
  202. package/dist/components/templates/McTopBar/McTopBar.vue.js +0 -309
  203. package/dist/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
  204. package/dist/composables/index.js +0 -8
  205. package/dist/composables/useDrawer.js +0 -72
  206. package/dist/composables/useEncodeDecode.js +0 -25
  207. package/dist/composables/useFieldErrors.js +0 -20
  208. package/dist/composables/useHelper.js +0 -79
  209. package/dist/composables/useModal.js +0 -71
  210. package/dist/composables/useRandomNumber.js +0 -10
  211. package/dist/composables/useTooltip.js +0 -154
  212. package/dist/consts/table.js +0 -6
  213. package/dist/enums/Cell.js +0 -6
  214. package/dist/enums/Chip.js +0 -11
  215. package/dist/enums/Datepicker.js +0 -42
  216. package/dist/enums/Drawer.js +0 -5
  217. package/dist/enums/Dropdown.js +0 -12
  218. package/dist/enums/Filter.js +0 -14
  219. package/dist/enums/Grid.js +0 -24
  220. package/dist/enums/Input.js +0 -20
  221. package/dist/enums/Modal.js +0 -5
  222. package/dist/enums/Preview.js +0 -6
  223. package/dist/enums/Radio.js +0 -5
  224. package/dist/enums/RadioGroup.js +0 -5
  225. package/dist/enums/Select.js +0 -11
  226. package/dist/enums/Sidebar.js +0 -5
  227. package/dist/enums/Tab.js +0 -6
  228. package/dist/enums/Title.js +0 -21
  229. package/dist/enums/Tooltip.js +0 -15
  230. package/dist/enums/index.js +0 -22
  231. package/dist/enums/ui/Alignment.js +0 -6
  232. package/dist/enums/ui/Button.js +0 -24
  233. package/dist/enums/ui/Directions.js +0 -5
  234. package/dist/enums/ui/Weights.js +0 -7
  235. package/dist/main.js +0 -6
  236. package/dist/mocks/authUser.js +0 -162
  237. package/dist/mocks/categories.js +0 -107
  238. package/dist/mocks/filterMocks.js +0 -128
  239. package/dist/mocks/icons.json +0 -1
  240. package/dist/mocks/menuLangs.js +0 -19
  241. package/dist/mocks/sidebar.js +0 -125
  242. package/dist/mocks/tableData.js +0 -8180
  243. package/dist/types/App.vue.d.ts +0 -2
  244. package/dist/types/IButton.js +0 -1
  245. package/dist/types/ICell.js +0 -1
  246. package/dist/types/IChip.js +0 -1
  247. package/dist/types/ICollapse.js +0 -1
  248. package/dist/types/IDatepicker.js +0 -1
  249. package/dist/types/IDirections.js +0 -1
  250. package/dist/types/IDrawer.js +0 -1
  251. package/dist/types/IDropdown.js +0 -1
  252. package/dist/types/IFilter.js +0 -1
  253. package/dist/types/IGrid.js +0 -1
  254. package/dist/types/IInput.js +0 -1
  255. package/dist/types/IModal.js +0 -1
  256. package/dist/types/IPreview.js +0 -1
  257. package/dist/types/IRadio.js +0 -1
  258. package/dist/types/IRadioGroup.js +0 -1
  259. package/dist/types/IRoute.js +0 -1
  260. package/dist/types/ISelect.js +0 -1
  261. package/dist/types/ISideBar.js +0 -1
  262. package/dist/types/ITable.js +0 -1
  263. package/dist/types/ITabs.js +0 -1
  264. package/dist/types/ITitle.js +0 -1
  265. package/dist/types/ITooltip.js +0 -1
  266. package/dist/types/assets/tokens/json/index.d.ts +0 -18
  267. package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -14
  268. package/dist/types/components/elements/McCropper/McCropper.vue.d.ts +0 -2
  269. package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +0 -110
  270. package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +0 -124
  271. package/dist/types/components/index.d.ts +0 -70
  272. package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -22
  273. package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +0 -292
  274. package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +0 -123
  275. package/dist/types/components/patterns/McTab/McTab.vue.d.ts +0 -224
  276. package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +0 -104
  277. package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +0 -295
  278. package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -18
  279. package/dist/types/composables/useFieldErrors.d.ts +0 -5
  280. package/dist/types/index.js +0 -38
  281. package/dist/types/main.d.ts +0 -2
  282. package/dist/types/styles/Alignment.js +0 -1
  283. package/dist/types/styles/AvatarSizes.js +0 -3
  284. package/dist/types/styles/Colors.js +0 -3
  285. package/dist/types/styles/Durations.js +0 -3
  286. package/dist/types/styles/FontSizes.js +0 -3
  287. package/dist/types/styles/FontWeights.js +0 -3
  288. package/dist/types/styles/Grid.js +0 -1
  289. package/dist/types/styles/Icons.js +0 -2
  290. package/dist/types/styles/LineHeights.js +0 -3
  291. package/dist/types/styles/MediaQueries.js +0 -3
  292. package/dist/types/styles/Radiuses.js +0 -3
  293. package/dist/types/styles/Sizes.js +0 -3
  294. package/dist/types/styles/Spaces.js +0 -3
  295. package/dist/types/styles/Weights.js +0 -1
  296. package/dist/types/types/index.d.ts +0 -36
  297. package/dist/utils/dayjs.js +0 -18
  298. package/dist/utils/mcGridColAdaptiveProps.js +0 -10
  299. package/dist/utils/mcTitleAdaptiveProps.js +0 -10
  300. /package/dist/{types/composables → composables}/useEncodeDecode.d.ts +0 -0
  301. /package/dist/{types/composables → composables}/useHelper.d.ts +0 -0
  302. /package/dist/{types/composables → composables}/useModal.d.ts +0 -0
  303. /package/dist/{types/composables → composables}/useRandomNumber.d.ts +0 -0
  304. /package/dist/{types/consts → consts}/table.d.ts +0 -0
  305. /package/dist/{types/enums → enums}/Cell.d.ts +0 -0
  306. /package/dist/{types/enums → enums}/Chip.d.ts +0 -0
  307. /package/dist/{types/enums → enums}/Datepicker.d.ts +0 -0
  308. /package/dist/{types/enums → enums}/Drawer.d.ts +0 -0
  309. /package/dist/{types/enums → enums}/Dropdown.d.ts +0 -0
  310. /package/dist/{types/enums → enums}/Filter.d.ts +0 -0
  311. /package/dist/{types/enums → enums}/Grid.d.ts +0 -0
  312. /package/dist/{types/enums → enums}/Input.d.ts +0 -0
  313. /package/dist/{types/enums → enums}/Modal.d.ts +0 -0
  314. /package/dist/{types/enums → enums}/Preview.d.ts +0 -0
  315. /package/dist/{types/enums → enums}/Radio.d.ts +0 -0
  316. /package/dist/{types/enums → enums}/RadioGroup.d.ts +0 -0
  317. /package/dist/{types/enums → enums}/Select.d.ts +0 -0
  318. /package/dist/{types/enums → enums}/Sidebar.d.ts +0 -0
  319. /package/dist/{types/enums → enums}/Tab.d.ts +0 -0
  320. /package/dist/{types/enums → enums}/Title.d.ts +0 -0
  321. /package/dist/{types/enums → enums}/Tooltip.d.ts +0 -0
  322. /package/dist/{types/enums → enums}/index.d.ts +0 -0
  323. /package/dist/{types/enums → enums}/ui/Alignment.d.ts +0 -0
  324. /package/dist/{types/enums → enums}/ui/Button.d.ts +0 -0
  325. /package/dist/{types/enums → enums}/ui/Directions.d.ts +0 -0
  326. /package/dist/{types/enums → enums}/ui/Weights.d.ts +0 -0
  327. /package/dist/{types/mocks → mocks}/authUser.d.ts +0 -0
  328. /package/dist/{types/mocks → mocks}/categories.d.ts +0 -0
  329. /package/dist/{types/mocks → mocks}/menuLangs.d.ts +0 -0
  330. /package/dist/types/{types/ICollapse.d.ts → ICollapse.d.ts} +0 -0
  331. /package/dist/types/{types/IGrid.d.ts → IGrid.d.ts} +0 -0
  332. /package/dist/types/{types/IRoute.d.ts → IRoute.d.ts} +0 -0
  333. /package/dist/types/{types/styles → styles}/AvatarSizes.d.ts +0 -0
  334. /package/dist/types/{types/styles → styles}/Colors.d.ts +0 -0
  335. /package/dist/types/{types/styles → styles}/Durations.d.ts +0 -0
  336. /package/dist/types/{types/styles → styles}/FontSizes.d.ts +0 -0
  337. /package/dist/types/{types/styles → styles}/FontWeights.d.ts +0 -0
  338. /package/dist/types/{types/styles → styles}/Icons.d.ts +0 -0
  339. /package/dist/types/{types/styles → styles}/LineHeights.d.ts +0 -0
  340. /package/dist/types/{types/styles → styles}/MediaQueries.d.ts +0 -0
  341. /package/dist/types/{types/styles → styles}/Radiuses.d.ts +0 -0
  342. /package/dist/types/{types/styles → styles}/Sizes.d.ts +0 -0
  343. /package/dist/types/{types/styles → styles}/Spaces.d.ts +0 -0
@@ -1,136 +0,0 @@
1
- import McSvgIcon from '@/components/elements/McSvgIcon/McSvgIcon.vue';
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
- // @ts-ignore
80
- [McSvgIcon,];
81
- // @ts-ignore
82
- const __VLS_0 = __VLS_asFunctionalComponent(McSvgIcon, new McSvgIcon({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }));
83
- const __VLS_1 = __VLS_0({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }, ...__VLS_functionalComponentArgsRest(__VLS_0));
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,309 +0,0 @@
1
- import McAvatar from '@/components/elements/McAvatar/McAvatar.vue';
2
- import McButton from '@/components/elements/McButton/McButton.vue';
3
- import McSvgIcon from '@/components/elements/McSvgIcon/McSvgIcon.vue';
4
- import McSeparator from '@/components/elements/McSeparator/McSeparator.vue';
5
- import McDropdown from '@/components/patterns/McDropdown/McDropdown.vue';
6
- import { ref } from 'vue';
7
- import { ButtonSize, DropdownPositions, HorizontalAlignment } from '@/enums';
8
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
9
- const props = defineProps({
10
- /**
11
- * Данные пользователя
12
- *
13
- */
14
- user: {
15
- type: Object,
16
- default: () => ({})
17
- },
18
- /**
19
- * Меню языков
20
- *
21
- */
22
- menuLangs: {
23
- type: Array,
24
- default: () => []
25
- },
26
- /**
27
- * Локализация или текст по умолчанию
28
- *
29
- */
30
- defaultLang: {
31
- type: String,
32
- default: 'Выберите язык'
33
- },
34
- /**
35
- * Текущая локализация
36
- *
37
- */
38
- currentLang: {
39
- type: String,
40
- default: null
41
- }
42
- });
43
- const menuLangsDD = ref(null);
44
- const localesDropdownOpen = ref(false);
45
- const userDropdownOpen = ref(false); /* PartiallyEnd: #3632/scriptSetup.vue */
46
- const __VLS_fnComponent = (await import('vue')).defineComponent({
47
- props: {
48
- /**
49
- * Данные пользователя
50
- *
51
- */
52
- user: {
53
- type: Object,
54
- default: () => ({})
55
- },
56
- /**
57
- * Меню языков
58
- *
59
- */
60
- menuLangs: {
61
- type: Array,
62
- default: () => []
63
- },
64
- /**
65
- * Локализация или текст по умолчанию
66
- *
67
- */
68
- defaultLang: {
69
- type: String,
70
- default: 'Выберите язык'
71
- },
72
- /**
73
- * Текущая локализация
74
- *
75
- */
76
- currentLang: {
77
- type: String,
78
- default: null
79
- }
80
- },
81
- });
82
- ;
83
- let __VLS_functionalComponentProps;
84
- function __VLS_template() {
85
- const __VLS_ctx = {};
86
- const __VLS_localComponents = {
87
- ...{},
88
- ...{},
89
- ...__VLS_ctx,
90
- };
91
- let __VLS_components;
92
- const __VLS_localDirectives = {
93
- ...{},
94
- ...__VLS_ctx,
95
- };
96
- let __VLS_directives;
97
- let __VLS_styleScopedClasses;
98
- // CSS variable injection
99
- // CSS variable injection end
100
- let __VLS_resolvedLocalAndGlobalComponents;
101
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar") }, });
102
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__inner") }, });
103
- if (__VLS_ctx.$slots.left) {
104
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__left") }, });
105
- var __VLS_0 = {};
106
- }
107
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__right") }, });
108
- var __VLS_1 = {};
109
- if (__VLS_ctx.menuLangs && __VLS_ctx.menuLangs.length) {
110
- // @ts-ignore
111
- [McDropdown, McDropdown,];
112
- // @ts-ignore
113
- const __VLS_2 = __VLS_asFunctionalComponent(McDropdown, new McDropdown({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }));
114
- const __VLS_3 = __VLS_2({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }, ...__VLS_functionalComponentArgsRest(__VLS_2));
115
- // @ts-ignore navigation for `const menuLangsDD = ref()`
116
- __VLS_ctx.menuLangsDD;
117
- var __VLS_7 = {};
118
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
119
- {
120
- const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_6.slots);
121
- // @ts-ignore
122
- [McButton, McButton,];
123
- // @ts-ignore
124
- const __VLS_8 = __VLS_asFunctionalComponent(McButton, new McButton({ variation: ("black-link"), uppercase: (true), }));
125
- const __VLS_9 = __VLS_8({ variation: ("black-link"), uppercase: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_8));
126
- (__VLS_ctx.currentLang || __VLS_ctx.defaultLang);
127
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
128
- {
129
- const { "icon-append": __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
130
- // @ts-ignore
131
- [McSvgIcon,];
132
- // @ts-ignore
133
- const __VLS_13 = __VLS_asFunctionalComponent(McSvgIcon, new McSvgIcon({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }));
134
- const __VLS_14 = __VLS_13({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }, ...__VLS_functionalComponentArgsRest(__VLS_13));
135
- }
136
- var __VLS_12;
137
- }
138
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
139
- {
140
- const { item: __VLS_thisSlot } = __VLS_nonNullable(__VLS_6.slots);
141
- const [{ item }] = __VLS_getSlotParams(__VLS_thisSlot);
142
- // @ts-ignore
143
- [McButton, McButton,];
144
- // @ts-ignore
145
- const __VLS_18 = __VLS_asFunctionalComponent(McButton, new McButton({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }));
146
- const __VLS_19 = __VLS_18({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_18));
147
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
148
- {
149
- const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_22.slots);
150
- // @ts-ignore
151
- [McSvgIcon,];
152
- // @ts-ignore
153
- const __VLS_23 = __VLS_asFunctionalComponent(McSvgIcon, new McSvgIcon({ name: `flag_${item.name.toLowerCase()}`, }));
154
- const __VLS_24 = __VLS_23({ name: `flag_${item.name.toLowerCase()}`, }, ...__VLS_functionalComponentArgsRest(__VLS_23));
155
- }
156
- (item.name);
157
- var __VLS_22;
158
- }
159
- var __VLS_6;
160
- }
161
- var __VLS_28 = {};
162
- if (props.user) {
163
- // @ts-ignore
164
- [McDropdown, McDropdown,];
165
- // @ts-ignore
166
- const __VLS_29 = __VLS_asFunctionalComponent(McDropdown, new McDropdown({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }));
167
- const __VLS_30 = __VLS_29({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }, ...__VLS_functionalComponentArgsRest(__VLS_29));
168
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
169
- {
170
- const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_33.slots);
171
- // @ts-ignore
172
- [McButton, McButton,];
173
- // @ts-ignore
174
- const __VLS_34 = __VLS_asFunctionalComponent(McButton, new McButton({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }));
175
- const __VLS_35 = __VLS_34({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }, ...__VLS_functionalComponentArgsRest(__VLS_34));
176
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
177
- {
178
- const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_38.slots);
179
- // @ts-ignore
180
- [McAvatar,];
181
- // @ts-ignore
182
- const __VLS_39 = __VLS_asFunctionalComponent(McAvatar, new McAvatar({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }));
183
- const __VLS_40 = __VLS_39({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }, ...__VLS_functionalComponentArgsRest(__VLS_39));
184
- }
185
- var __VLS_38;
186
- }
187
- var __VLS_44 = {};
188
- var __VLS_33;
189
- }
190
- // @ts-ignore
191
- [McSeparator,];
192
- // @ts-ignore
193
- const __VLS_45 = __VLS_asFunctionalComponent(McSeparator, new McSeparator({ color: ("hover-gray"), indentTop: ("100"), }));
194
- const __VLS_46 = __VLS_45({ color: ("hover-gray"), indentTop: ("100"), }, ...__VLS_functionalComponentArgsRest(__VLS_45));
195
- var __VLS_50 = {};
196
- __VLS_styleScopedClasses['mc-top-bar'];
197
- __VLS_styleScopedClasses['mc-top-bar__inner'];
198
- __VLS_styleScopedClasses['mc-top-bar__left'];
199
- __VLS_styleScopedClasses['mc-top-bar__right'];
200
- __VLS_styleScopedClasses['mc-top-bar__menu-langs'];
201
- __VLS_styleScopedClasses['rotate'];
202
- var __VLS_slots;
203
- var __VLS_inheritedAttrs;
204
- const __VLS_refs = {
205
- "menuLangsDD": __VLS_7,
206
- };
207
- var $refs;
208
- var $el;
209
- return {
210
- attrs: {},
211
- slots: __VLS_slots,
212
- refs: $refs,
213
- rootEl: $el,
214
- };
215
- }
216
- ;
217
- const __VLS_self = (await import('vue')).defineComponent({
218
- setup() {
219
- return {
220
- McAvatar: McAvatar,
221
- McButton: McButton,
222
- McSvgIcon: McSvgIcon,
223
- McSeparator: McSeparator,
224
- McDropdown: McDropdown,
225
- ButtonSize: ButtonSize,
226
- DropdownPositions: DropdownPositions,
227
- HorizontalAlignment: HorizontalAlignment,
228
- menuLangsDD: menuLangsDD,
229
- localesDropdownOpen: localesDropdownOpen,
230
- userDropdownOpen: userDropdownOpen,
231
- };
232
- },
233
- props: {
234
- /**
235
- * Данные пользователя
236
- *
237
- */
238
- user: {
239
- type: Object,
240
- default: () => ({})
241
- },
242
- /**
243
- * Меню языков
244
- *
245
- */
246
- menuLangs: {
247
- type: Array,
248
- default: () => []
249
- },
250
- /**
251
- * Локализация или текст по умолчанию
252
- *
253
- */
254
- defaultLang: {
255
- type: String,
256
- default: 'Выберите язык'
257
- },
258
- /**
259
- * Текущая локализация
260
- *
261
- */
262
- currentLang: {
263
- type: String,
264
- default: null
265
- }
266
- },
267
- });
268
- const __VLS_component = (await import('vue')).defineComponent({
269
- setup() {
270
- return {};
271
- },
272
- props: {
273
- /**
274
- * Данные пользователя
275
- *
276
- */
277
- user: {
278
- type: Object,
279
- default: () => ({})
280
- },
281
- /**
282
- * Меню языков
283
- *
284
- */
285
- menuLangs: {
286
- type: Array,
287
- default: () => []
288
- },
289
- /**
290
- * Локализация или текст по умолчанию
291
- *
292
- */
293
- defaultLang: {
294
- type: String,
295
- default: 'Выберите язык'
296
- },
297
- /**
298
- * Текущая локализация
299
- *
300
- */
301
- currentLang: {
302
- type: String,
303
- default: null
304
- }
305
- },
306
- __typeEl: {},
307
- });
308
- export default {};
309
- ; /* 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
- const calculateTotalHeight = () => {
47
- totalHeight.value = props.items.length * props.itemHeight;
48
- };
49
- const calculateVisibleItems = () => {
50
- const containerHeight = containerRef.value?.clientHeight || 0;
51
- const startIndex = Math.floor(scrollTop.value / props.itemHeight);
52
- const endIndex = Math.min(props.items.length - 1, Math.floor((scrollTop.value + containerHeight) / props.itemHeight));
53
- const buffer = props.buffer || 5;
54
- const result = [];
55
- for (let i = Math.max(0, startIndex - buffer); i <= Math.min(endIndex + buffer, props.items.length - 1); i++) {
56
- result.push({
57
- key: i,
58
- data: props.items[i],
59
- index: i,
60
- top: i * props.itemHeight
61
- });
62
- }
63
- visibleItems.value = result;
64
- };
65
- const onScroll = () => {
66
- scrollTop.value = containerRef.value?.scrollTop || 0;
67
- requestAnimationFrame(calculateVisibleItems);
68
- };
69
- onMounted(() => {
70
- calculateTotalHeight();
71
- nextTick(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,8 +0,0 @@
1
- import { useModal } from './useModal';
2
- import { useDrawer } from './useDrawer';
3
- import { useTooltip } from './useTooltip';
4
- import { useRandomNumber } from './useRandomNumber';
5
- import { useFieldErrors } from './useFieldErrors';
6
- import { useHelper } from './useHelper';
7
- import { UseEncodeDecode } from '@/composables/useEncodeDecode';
8
- export { useModal, useDrawer, useTooltip, useRandomNumber, useFieldErrors, useHelper, UseEncodeDecode };