mediacube-ui-v2 0.0.8 → 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.
- package/dist/App.vue.js +54 -0
- package/dist/assets/tokens/json/animations.json +6 -0
- package/dist/assets/tokens/json/border-radius.json +24 -0
- package/dist/assets/tokens/json/box-shadows.json +24 -0
- package/dist/assets/tokens/json/colors.json +71 -0
- package/dist/assets/tokens/json/durations.json +10 -0
- package/dist/assets/tokens/json/easings.json +3 -0
- package/dist/assets/tokens/json/font-families.json +4 -0
- package/dist/assets/tokens/json/font-sizes.json +18 -0
- package/dist/assets/tokens/json/font-weights.json +12 -0
- package/dist/assets/tokens/json/gradients.json +13 -0
- package/dist/assets/tokens/json/index.js +18 -0
- package/dist/assets/tokens/json/letter-spacings.json +4 -0
- package/dist/assets/tokens/json/line-heights.json +18 -0
- package/dist/assets/tokens/json/media-queries.json +26 -0
- package/dist/assets/tokens/json/opacities.json +5 -0
- package/dist/assets/tokens/json/sizes.json +42 -0
- package/dist/assets/tokens/json/spacings.json +34 -0
- package/dist/assets/tokens/json/z-indexes.json +12 -0
- package/dist/components/elements/McAvatar/McAvatar.vue.js +412 -0
- package/dist/components/elements/McBadge/McBadge.vue.js +188 -0
- package/dist/components/elements/McBottomLoader/McBottomLoader.vue.js +83 -0
- package/dist/components/elements/McButton/McButton.vue.js +1037 -0
- package/dist/components/elements/McChip/McChip.vue.js +326 -0
- package/dist/components/elements/McCropper/McCropper.vue.js +98 -0
- package/dist/components/elements/McDatepicker/McDatepicker.vue.js +1255 -0
- package/dist/components/elements/McDraggable/McDraggable.vue.js +280 -0
- package/dist/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +542 -0
- package/dist/components/elements/McFieldRadio/McFieldRadio.vue.js +489 -0
- package/dist/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +471 -0
- package/dist/components/elements/McFieldRange/McFieldRange.vue.js +547 -0
- package/dist/components/elements/McFieldSelect/McFieldSelect.vue.js +1440 -0
- package/dist/components/elements/McFieldText/McFieldText.vue.js +1404 -0
- package/dist/components/elements/McFieldToggle/McFieldToggle.vue.js +408 -0
- package/dist/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +192 -0
- package/dist/components/elements/McNodata/McNoData.vue.js +319 -0
- package/dist/components/elements/McNotification/McNotification.vue.js +367 -0
- package/dist/components/elements/McProgress/McProgress.vue.js +361 -0
- package/dist/components/elements/McSeparator/McSeparator.vue.js +325 -0
- package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.js +271 -0
- package/dist/components/elements/McStack/McStack.vue.js +180 -0
- package/dist/components/elements/McSvgIcon/McSvgIcon.vue.js +289 -0
- package/dist/components/elements/McTitle/McTitle.vue.js +468 -0
- package/dist/components/elements/McTooltip/McTooltip.vue.js +246 -0
- package/dist/components/index.js +73 -0
- package/dist/components/patterns/McAccordion/McAccordion.vue.js +120 -0
- package/dist/components/patterns/McCell/McCell.vue.js +197 -0
- package/dist/components/patterns/McCollapse/McCollapse.vue.js +315 -0
- package/dist/components/patterns/McDropdown/McDropdown.vue.js +366 -0
- package/dist/components/patterns/McDropdown/McDropdownPanel.vue.js +83 -0
- package/dist/components/patterns/McFilter/McFilter.vue.js +1068 -0
- package/dist/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +211 -0
- package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +552 -0
- package/dist/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +188 -0
- package/dist/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +238 -0
- package/dist/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +359 -0
- package/dist/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +171 -0
- package/dist/components/patterns/McGridCol/McGridCol.vue.js +246 -0
- package/dist/components/patterns/McGridRow/McGridRow.vue.js +292 -0
- package/dist/components/patterns/McOverlay/McOverlay.vue.js +107 -0
- package/dist/components/patterns/McPreview/McPreview.vue.js +118 -0
- package/dist/components/patterns/McSideBar/McSideBar.vue.js +740 -0
- package/dist/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +204 -0
- package/dist/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +510 -0
- package/dist/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +413 -0
- package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +419 -0
- package/dist/components/patterns/McTab/McTab.vue.js +518 -0
- package/dist/components/patterns/McTabs/McTabs.vue.js +427 -0
- package/dist/components/patterns/McWrapScroll/McWrapScroll.vue.js +422 -0
- package/dist/components/templates/McDrawer/McDrawer.vue.js +304 -0
- package/dist/components/templates/McDrawer/McDrawerContainer.vue.js +133 -0
- package/dist/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +134 -0
- package/dist/components/templates/McModal/McModal.vue.js +664 -0
- package/dist/components/templates/McModal/McModalContainer.vue.js +119 -0
- package/dist/components/templates/McTable/McTable/McTable.vue.js +862 -0
- package/dist/components/templates/McTable/McTableCard/McTableCard.vue.js +339 -0
- package/dist/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +119 -0
- package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +118 -0
- package/dist/components/templates/McTable/McTableSort/McTableSort.vue.js +136 -0
- package/dist/components/templates/McTopBar/McTopBar.vue.js +309 -0
- package/dist/components/templates/McVirtualScroll/McVirtualScroll.vue.js +239 -0
- package/dist/composables/index.js +8 -0
- package/dist/composables/useDrawer.js +72 -0
- package/dist/composables/useEncodeDecode.js +25 -0
- package/dist/composables/useFieldErrors.js +20 -0
- package/dist/composables/useHelper.js +79 -0
- package/dist/composables/useModal.js +71 -0
- package/dist/composables/useRandomNumber.js +10 -0
- package/dist/composables/useTooltip.js +154 -0
- package/dist/consts/table.js +6 -0
- package/dist/enums/Cell.js +6 -0
- package/dist/enums/Chip.js +11 -0
- package/dist/enums/Datepicker.js +42 -0
- package/dist/enums/Drawer.js +5 -0
- package/dist/enums/Dropdown.js +12 -0
- package/dist/enums/Filter.js +14 -0
- package/dist/enums/Grid.js +24 -0
- package/dist/enums/Input.js +20 -0
- package/dist/enums/Modal.js +5 -0
- package/dist/enums/Preview.js +6 -0
- package/dist/enums/Radio.js +5 -0
- package/dist/enums/RadioGroup.js +5 -0
- package/dist/enums/Select.js +11 -0
- package/dist/enums/Sidebar.js +5 -0
- package/dist/enums/Tab.js +6 -0
- package/dist/enums/Title.js +21 -0
- package/dist/enums/Tooltip.js +15 -0
- package/dist/enums/index.js +22 -0
- package/dist/enums/ui/Alignment.js +6 -0
- package/dist/enums/ui/Button.js +24 -0
- package/dist/enums/ui/Directions.js +5 -0
- package/dist/enums/ui/Weights.js +7 -0
- package/dist/index.js +13 -10522
- package/dist/main.js +6 -0
- package/dist/mocks/authUser.js +162 -0
- package/dist/mocks/categories.js +107 -0
- package/dist/mocks/filterMocks.js +128 -0
- package/dist/mocks/icons.json +1 -0
- package/dist/mocks/menuLangs.js +19 -0
- package/dist/mocks/sidebar.js +125 -0
- package/dist/mocks/tableData.js +8180 -0
- package/dist/types/App.vue.d.ts +2 -0
- package/dist/types/IButton.js +1 -0
- package/dist/types/ICell.js +1 -0
- package/dist/types/IChip.js +1 -0
- package/dist/types/ICollapse.js +1 -0
- package/dist/types/IDatepicker.js +1 -0
- package/dist/types/IDirections.js +1 -0
- package/dist/types/IDrawer.js +1 -0
- package/dist/types/IDropdown.js +1 -0
- package/dist/types/IFilter.js +1 -0
- package/dist/types/IGrid.js +1 -0
- package/dist/types/IInput.js +1 -0
- package/dist/types/IModal.js +1 -0
- package/dist/types/IPreview.js +1 -0
- package/dist/types/IRadio.js +1 -0
- package/dist/types/IRadioGroup.js +1 -0
- package/dist/types/IRoute.js +1 -0
- package/dist/types/ISelect.js +1 -0
- package/dist/types/ISideBar.js +1 -0
- package/dist/types/ITable.js +1 -0
- package/dist/types/ITabs.js +1 -0
- package/dist/types/ITitle.js +1 -0
- package/dist/types/ITooltip.js +1 -0
- package/dist/types/assets/tokens/json/index.d.ts +18 -0
- package/dist/{components → types/components}/elements/McAvatar/McAvatar.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McBadge/McBadge.vue.d.ts +3 -3
- package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
- package/dist/{components → types/components}/elements/McButton/McButton.vue.d.ts +13 -12
- package/dist/{components → types/components}/elements/McChip/McChip.vue.d.ts +7 -6
- package/dist/types/components/elements/McCropper/McCropper.vue.d.ts +2 -0
- package/dist/{components → types/components}/elements/McDatepicker/McDatepicker.vue.d.ts +2 -1
- package/dist/{components → types/components}/elements/McDraggable/McDraggable.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
- package/dist/{components → types/components}/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
- package/dist/{components → types/components}/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
- package/dist/{components → types/components}/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
- package/dist/{components → types/components}/elements/McFieldSelect/McFieldSelect.vue.d.ts +12 -11
- package/dist/{components → types/components}/elements/McFieldText/McFieldText.vue.d.ts +9 -9
- package/dist/{components → types/components}/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
- package/dist/{components → types/components}/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
- package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +110 -0
- package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +124 -0
- package/dist/{components → types/components}/elements/McProgress/McProgress.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McSeparator/McSeparator.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McStack/McStack.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
- package/dist/{components → types/components}/elements/McTitle/McTitle.vue.d.ts +7 -7
- package/dist/{components → types/components}/elements/McTooltip/McTooltip.vue.d.ts +6 -6
- package/dist/types/components/index.d.ts +70 -0
- package/dist/{components → types/components}/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McCell/McCell.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
- package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
- package/dist/{components → types/components}/patterns/McFilter/McFilter.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
- package/dist/{components → types/components}/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McPreview/McPreview.vue.d.ts +4 -4
- package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +292 -0
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
- package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +123 -0
- package/dist/types/components/patterns/McTab/McTab.vue.d.ts +224 -0
- package/dist/{components → types/components}/patterns/McTabs/McTabs.vue.d.ts +8 -7
- package/dist/{components → types/components}/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
- package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +104 -0
- package/dist/{components → types/components}/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
- package/dist/{components → types/components}/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
- package/dist/{components → types/components}/templates/McModal/McModal.vue.d.ts +7 -7
- package/dist/{components → types/components}/templates/McModal/McModalContainer.vue.d.ts +5 -5
- package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +295 -0
- package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
- package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
- package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
- package/dist/{components → types/components}/templates/McTable/McTableSort/McTableSort.vue.d.ts +7 -7
- package/dist/{components → types/components}/templates/McTopBar/McTopBar.vue.d.ts +4 -4
- package/dist/{components → types/components}/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
- package/dist/{composables → types/composables}/index.d.ts +1 -1
- package/dist/{composables → types/composables}/useDrawer.d.ts +1 -1
- package/dist/types/composables/useFieldErrors.d.ts +5 -0
- package/dist/{composables → types/composables}/useTooltip.d.ts +1 -1
- package/dist/types/index.d.ts +9 -36
- package/dist/types/index.js +38 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/{mocks → types/mocks}/filterMocks.d.ts +1 -1
- package/dist/{mocks → types/mocks}/sidebar.d.ts +1 -1
- package/dist/{mocks → types/mocks}/tableData.d.ts +1 -1
- package/dist/types/styles/Alignment.js +1 -0
- package/dist/types/styles/AvatarSizes.js +3 -0
- package/dist/types/styles/Colors.js +3 -0
- package/dist/types/styles/Durations.js +3 -0
- package/dist/types/styles/FontSizes.js +3 -0
- package/dist/types/styles/FontWeights.js +3 -0
- package/dist/types/styles/Grid.js +1 -0
- package/dist/types/styles/Icons.js +2 -0
- package/dist/types/styles/LineHeights.js +3 -0
- package/dist/types/styles/MediaQueries.js +3 -0
- package/dist/types/styles/Radiuses.js +3 -0
- package/dist/types/styles/Sizes.js +3 -0
- package/dist/types/styles/Spaces.js +3 -0
- package/dist/types/styles/Weights.js +1 -0
- package/dist/types/{IButton.d.ts → types/IButton.d.ts} +5 -5
- package/dist/types/{ICell.d.ts → types/ICell.d.ts} +1 -1
- package/dist/types/{IChip.d.ts → types/IChip.d.ts} +2 -2
- package/dist/types/{IDatepicker.d.ts → types/IDatepicker.d.ts} +1 -1
- package/dist/types/{IDirections.d.ts → types/IDirections.d.ts} +1 -1
- package/dist/types/{IDrawer.d.ts → types/IDrawer.d.ts} +2 -2
- package/dist/types/{IDropdown.d.ts → types/IDropdown.d.ts} +1 -1
- package/dist/types/{IFilter.d.ts → types/IFilter.d.ts} +1 -1
- package/dist/types/{IInput.d.ts → types/IInput.d.ts} +1 -1
- package/dist/types/{IModal.d.ts → types/IModal.d.ts} +2 -2
- package/dist/types/{IPreview.d.ts → types/IPreview.d.ts} +1 -1
- package/dist/types/{IRadio.d.ts → types/IRadio.d.ts} +1 -1
- package/dist/types/{IRadioGroup.d.ts → types/IRadioGroup.d.ts} +1 -1
- package/dist/types/{ISelect.d.ts → types/ISelect.d.ts} +1 -1
- package/dist/types/{ISideBar.d.ts → types/ISideBar.d.ts} +5 -5
- package/dist/types/{ITable.d.ts → types/ITable.d.ts} +2 -2
- package/dist/types/{ITabs.d.ts → types/ITabs.d.ts} +4 -4
- package/dist/types/{ITitle.d.ts → types/ITitle.d.ts} +1 -1
- package/dist/types/{ITooltip.d.ts → types/ITooltip.d.ts} +1 -1
- package/dist/types/types/index.d.ts +36 -0
- package/dist/types/{styles → types/styles}/Alignment.d.ts +1 -1
- package/dist/types/{styles → types/styles}/Grid.d.ts +1 -1
- package/dist/types/{styles → types/styles}/Weights.d.ts +1 -1
- package/dist/{utils → types/utils}/dayjs.d.ts +2 -1
- package/dist/{utils → types/utils}/mcGridColAdaptiveProps.d.ts +1 -1
- package/dist/{utils → types/utils}/mcTitleAdaptiveProps.d.ts +1 -1
- package/dist/utils/dayjs.js +18 -0
- package/dist/utils/mcGridColAdaptiveProps.js +10 -0
- package/dist/utils/mcTitleAdaptiveProps.js +10 -0
- package/package.json +7 -3
- package/dist/App.vue.d.ts +0 -2
- package/dist/assets/tokens/json/animations.json.d.ts +0 -8
- package/dist/assets/tokens/json/border-radius.json.d.ts +0 -26
- package/dist/assets/tokens/json/box-shadows.json.d.ts +0 -26
- package/dist/assets/tokens/json/colors.json.d.ts +0 -73
- package/dist/assets/tokens/json/durations.json.d.ts +0 -12
- package/dist/assets/tokens/json/easings.json.d.ts +0 -5
- package/dist/assets/tokens/json/font-families.json.d.ts +0 -6
- package/dist/assets/tokens/json/font-sizes.json.d.ts +0 -20
- package/dist/assets/tokens/json/font-weights.json.d.ts +0 -14
- package/dist/assets/tokens/json/gradients.json.d.ts +0 -15
- package/dist/assets/tokens/json/index.d.ts +0 -18
- package/dist/assets/tokens/json/letter-spacings.json.d.ts +0 -6
- package/dist/assets/tokens/json/line-heights.json.d.ts +0 -20
- package/dist/assets/tokens/json/media-queries.json.d.ts +0 -28
- package/dist/assets/tokens/json/opacities.json.d.ts +0 -7
- package/dist/assets/tokens/json/sizes.json.d.ts +0 -44
- package/dist/assets/tokens/json/spacings.json.d.ts +0 -36
- package/dist/assets/tokens/json/z-indexes.json.d.ts +0 -14
- package/dist/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -14
- package/dist/components/elements/McNodata/McNoData.vue.d.ts +0 -110
- package/dist/components/elements/McNotification/McNotification.vue.d.ts +0 -124
- package/dist/components/index.d.ts +0 -61
- package/dist/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -22
- package/dist/components/patterns/McSideBar/McSideBar.vue.d.ts +0 -292
- package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +0 -123
- package/dist/components/patterns/McTab/McTab.vue.d.ts +0 -224
- package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +0 -104
- package/dist/components/templates/McTable/McTable/McTable.vue.d.ts +0 -295
- package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -18
- package/dist/composables/useFieldErrors.d.ts +0 -5
- package/dist/index.d.ts +0 -9
- package/dist/main.d.ts +0 -0
- package/dist/mocks/icons.json.d.ts +0 -3
- /package/dist/{composables → types/composables}/useEncodeDecode.d.ts +0 -0
- /package/dist/{composables → types/composables}/useHelper.d.ts +0 -0
- /package/dist/{composables → types/composables}/useModal.d.ts +0 -0
- /package/dist/{composables → types/composables}/useRandomNumber.d.ts +0 -0
- /package/dist/{consts → types/consts}/table.d.ts +0 -0
- /package/dist/{enums → types/enums}/Cell.d.ts +0 -0
- /package/dist/{enums → types/enums}/Chip.d.ts +0 -0
- /package/dist/{enums → types/enums}/Datepicker.d.ts +0 -0
- /package/dist/{enums → types/enums}/Drawer.d.ts +0 -0
- /package/dist/{enums → types/enums}/Dropdown.d.ts +0 -0
- /package/dist/{enums → types/enums}/Filter.d.ts +0 -0
- /package/dist/{enums → types/enums}/Grid.d.ts +0 -0
- /package/dist/{enums → types/enums}/Input.d.ts +0 -0
- /package/dist/{enums → types/enums}/Modal.d.ts +0 -0
- /package/dist/{enums → types/enums}/Preview.d.ts +0 -0
- /package/dist/{enums → types/enums}/Radio.d.ts +0 -0
- /package/dist/{enums → types/enums}/RadioGroup.d.ts +0 -0
- /package/dist/{enums → types/enums}/Select.d.ts +0 -0
- /package/dist/{enums → types/enums}/Sidebar.d.ts +0 -0
- /package/dist/{enums → types/enums}/Tab.d.ts +0 -0
- /package/dist/{enums → types/enums}/Title.d.ts +0 -0
- /package/dist/{enums → types/enums}/Tooltip.d.ts +0 -0
- /package/dist/{enums → types/enums}/index.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Alignment.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Button.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Directions.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Weights.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/authUser.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/categories.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/menuLangs.d.ts +0 -0
- /package/dist/types/{ICollapse.d.ts → types/ICollapse.d.ts} +0 -0
- /package/dist/types/{IGrid.d.ts → types/IGrid.d.ts} +0 -0
- /package/dist/types/{IRoute.d.ts → types/IRoute.d.ts} +0 -0
- /package/dist/types/{styles → types/styles}/AvatarSizes.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Colors.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Durations.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/FontSizes.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/FontWeights.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Icons.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/LineHeights.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/MediaQueries.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Radiuses.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Sizes.d.ts +0 -0
- /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 };
|