mediacube-ui-v2 0.0.7 → 0.0.9

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