mediacube-ui-v2 0.0.38 → 0.0.39
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/assets/iconsSprite.svg +1 -0
- package/dist/assets/img/no_table_data.png +0 -0
- package/dist/assets/img/no_user.png +0 -0
- package/dist/mediacube-ui-v2.js +2479 -2339
- package/dist/mediacube-ui-v2.umd.cjs +4 -4
- package/dist/types/App.vue.d.ts +2 -0
- package/dist/types/assets/tokens/json/animations.json.d.ts +8 -0
- package/dist/types/assets/tokens/json/border-radius.json.d.ts +26 -0
- package/dist/types/assets/tokens/json/box-shadows.json.d.ts +26 -0
- package/dist/types/assets/tokens/json/colors.json.d.ts +73 -0
- package/dist/types/assets/tokens/json/durations.json.d.ts +12 -0
- package/dist/types/assets/tokens/json/easings.json.d.ts +5 -0
- package/dist/types/assets/tokens/json/font-families.json.d.ts +6 -0
- package/dist/types/assets/tokens/json/font-sizes.json.d.ts +20 -0
- package/dist/types/assets/tokens/json/font-weights.json.d.ts +14 -0
- package/dist/types/assets/tokens/json/gradients.json.d.ts +15 -0
- package/dist/types/assets/tokens/json/index.d.ts +18 -0
- package/dist/types/assets/tokens/json/letter-spacings.json.d.ts +6 -0
- package/dist/types/assets/tokens/json/line-heights.json.d.ts +20 -0
- package/dist/types/assets/tokens/json/media-queries.json.d.ts +28 -0
- package/dist/types/assets/tokens/json/opacities.json.d.ts +7 -0
- package/dist/types/assets/tokens/json/sizes.json.d.ts +44 -0
- package/dist/types/assets/tokens/json/spacings.json.d.ts +36 -0
- package/dist/types/assets/tokens/json/z-indexes.json.d.ts +14 -0
- package/dist/{src → types}/components/elements/McAvatar/McAvatar.vue.d.ts +5 -6
- package/dist/{src → types}/components/elements/McBadge/McBadge.vue.d.ts +3 -4
- package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
- package/dist/{src → types}/components/elements/McButton/McButton.vue.d.ts +9 -11
- package/dist/{src → types}/components/elements/McChip/McChip.vue.d.ts +6 -8
- package/dist/{src → types}/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -3
- package/dist/{src → types}/components/elements/McDraggable/McDraggable.vue.d.ts +4 -5
- package/dist/{src → types}/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -2
- package/dist/{src → types}/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -9
- package/dist/{src → types}/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -2
- package/dist/{src → types}/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -7
- package/dist/{src → types}/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -10
- package/dist/{src → types}/components/elements/McFieldText/McFieldText.vue.d.ts +9 -10
- package/dist/{src → types}/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -7
- package/dist/{src → types}/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -5
- package/dist/{src → types}/components/elements/McNodata/McNoData.vue.d.ts +5 -6
- package/dist/{src → types}/components/elements/McNotification/McNotification.vue.d.ts +5 -6
- package/dist/{src → types}/components/elements/McProgress/McProgress.vue.d.ts +5 -6
- package/dist/{src → types}/components/elements/McSeparator/McSeparator.vue.d.ts +4 -5
- package/dist/{src → types}/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -6
- package/dist/{src → types}/components/elements/McStack/McStack.vue.d.ts +4 -5
- package/dist/{src → types}/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -10
- package/dist/{src → types}/components/elements/McTitle/McTitle.vue.d.ts +7 -8
- package/dist/{src → types}/components/elements/McTooltip/McTooltip.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -5
- package/dist/{src → types}/components/patterns/McCell/McCell.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -8
- package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
- package/dist/{src → types}/components/patterns/McFilter/McFilter.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -5
- package/dist/{src → types}/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -6
- package/dist/{src → types}/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -5
- package/dist/{src → types}/components/patterns/McPreview/McPreview.vue.d.ts +4 -5
- package/dist/{src → types}/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -8
- package/dist/{src → types}/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -6
- package/dist/{src → types}/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -6
- package/dist/{src → types}/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -7
- package/dist/{src → types}/components/patterns/McTab/McTab.vue.d.ts +5 -6
- package/dist/{src → types}/components/patterns/McTabs/McTabs.vue.d.ts +7 -9
- package/dist/{src → types}/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -8
- package/dist/{src → types}/components/templates/McDrawer/McDrawer.vue.d.ts +7 -8
- package/dist/{src → types}/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -6
- package/dist/{src → types}/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -5
- package/dist/{src → types}/components/templates/McModal/McModal.vue.d.ts +7 -8
- package/dist/{src → types}/components/templates/McModal/McModalContainer.vue.d.ts +5 -6
- package/dist/{src → types}/components/templates/McTable/McTable/McTable.vue.d.ts +7 -8
- package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -7
- package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -5
- package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
- package/dist/{src → types}/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -7
- package/dist/{src → types}/components/templates/McTopBar/McTopBar.vue.d.ts +4 -5
- package/dist/{src → types}/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -5
- package/dist/{src/composables/index.js → types/composables/index.d.ts} +1 -1
- package/dist/{src → types}/composables/useDrawer.d.ts +1 -2
- package/dist/{src → types}/composables/useEncodeDecode.d.ts +0 -1
- package/dist/types/composables/useFieldErrors.d.ts +5 -0
- package/dist/{src → types}/composables/useHelper.d.ts +0 -1
- package/dist/{src → types}/composables/useModal.d.ts +0 -1
- package/dist/{src → types}/composables/useRandomNumber.d.ts +0 -1
- package/dist/{src → types}/composables/useTooltip.d.ts +1 -2
- package/dist/{src → types}/consts/table.d.ts +0 -1
- package/dist/{src → types}/enums/Cell.d.ts +0 -1
- package/dist/{src → types}/enums/Chip.d.ts +0 -1
- package/dist/{src → types}/enums/Datepicker.d.ts +0 -1
- package/dist/{src → types}/enums/Drawer.d.ts +0 -1
- package/dist/{src → types}/enums/Dropdown.d.ts +0 -1
- package/dist/{src → types}/enums/Filter.d.ts +0 -1
- package/dist/{src → types}/enums/Grid.d.ts +0 -1
- package/dist/{src → types}/enums/Input.d.ts +0 -1
- package/dist/{src → types}/enums/Modal.d.ts +0 -1
- package/dist/{src → types}/enums/Preview.d.ts +0 -1
- package/dist/{src → types}/enums/Radio.d.ts +0 -1
- package/dist/{src → types}/enums/RadioGroup.d.ts +0 -1
- package/dist/{src → types}/enums/Select.d.ts +0 -1
- package/dist/{src → types}/enums/Sidebar.d.ts +0 -1
- package/dist/{src → types}/enums/Tab.d.ts +0 -1
- package/dist/{src → types}/enums/Title.d.ts +0 -1
- package/dist/{src → types}/enums/Tooltip.d.ts +0 -1
- package/dist/{src/enums/index.js → types/enums/index.d.ts} +0 -1
- package/dist/{src → types}/enums/ui/Alignment.d.ts +0 -1
- package/dist/{src → types}/enums/ui/Button.d.ts +0 -1
- package/dist/{src → types}/enums/ui/Directions.d.ts +0 -1
- package/dist/{src → types}/enums/ui/Weights.d.ts +0 -1
- package/dist/{src → types}/index.d.ts +0 -2
- package/dist/types/main.d.ts +0 -0
- package/dist/{src → types}/mocks/authUser.d.ts +0 -1
- package/dist/{src → types}/mocks/categories.d.ts +0 -1
- package/dist/{src → types}/mocks/filterMocks.d.ts +1 -2
- package/dist/types/mocks/icons.json.d.ts +3 -0
- package/dist/{src → types}/mocks/menuLangs.d.ts +0 -1
- package/dist/{src → types}/mocks/sidebar.d.ts +1 -2
- package/dist/{src → types}/mocks/tableData.d.ts +1 -2
- package/dist/{src → types}/types/IButton.d.ts +5 -6
- package/dist/{src → types}/types/ICell.d.ts +1 -2
- package/dist/{src → types}/types/IChip.d.ts +2 -3
- package/dist/{src → types}/types/ICollapse.d.ts +0 -1
- package/dist/{src → types}/types/IDatepicker.d.ts +1 -2
- package/dist/{src → types}/types/IDirections.d.ts +1 -2
- package/dist/{src → types}/types/IDrawer.d.ts +2 -3
- package/dist/{src → types}/types/IDropdown.d.ts +1 -2
- package/dist/{src → types}/types/IFilter.d.ts +1 -2
- package/dist/{src → types}/types/IGrid.d.ts +0 -1
- package/dist/{src → types}/types/IInput.d.ts +1 -2
- package/dist/{src → types}/types/IModal.d.ts +2 -3
- package/dist/{src → types}/types/IPreview.d.ts +1 -2
- package/dist/{src → types}/types/IRadio.d.ts +1 -2
- package/dist/{src → types}/types/IRadioGroup.d.ts +1 -2
- package/dist/{src → types}/types/IRoute.d.ts +0 -1
- package/dist/{src → types}/types/ISelect.d.ts +1 -2
- package/dist/{src → types}/types/ISideBar.d.ts +5 -6
- package/dist/{src → types}/types/ITable.d.ts +2 -3
- package/dist/{src → types}/types/ITabs.d.ts +4 -5
- package/dist/{src → types}/types/ITitle.d.ts +1 -2
- package/dist/{src → types}/types/ITooltip.d.ts +1 -2
- package/dist/{src/types/index.js → types/types/index.d.ts} +0 -2
- package/dist/{src → types}/types/styles/Alignment.d.ts +1 -2
- package/dist/{src → types}/types/styles/AvatarSizes.d.ts +0 -1
- package/dist/{src → types}/types/styles/Colors.d.ts +0 -1
- package/dist/{src → types}/types/styles/Durations.d.ts +0 -1
- package/dist/{src → types}/types/styles/FontSizes.d.ts +0 -1
- package/dist/{src → types}/types/styles/FontWeights.d.ts +0 -1
- package/dist/{src → types}/types/styles/Grid.d.ts +1 -2
- package/dist/{src → types}/types/styles/Icons.d.ts +0 -1
- package/dist/{src → types}/types/styles/LineHeights.d.ts +0 -1
- package/dist/{src → types}/types/styles/MediaQueries.d.ts +0 -1
- package/dist/{src → types}/types/styles/Radiuses.d.ts +0 -1
- package/dist/{src → types}/types/styles/Sizes.d.ts +0 -1
- package/dist/{src → types}/types/styles/Spaces.d.ts +0 -1
- package/dist/types/types/styles/Weights.d.ts +2 -0
- package/dist/{src → types}/utils/dayjs.d.ts +0 -1
- package/dist/{src → types}/utils/mcGridColAdaptiveProps.d.ts +1 -2
- package/dist/{src → types}/utils/mcTitleAdaptiveProps.d.ts +1 -2
- package/package.json +12 -13
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/App.vue.d.ts.map +0 -1
- package/dist/src/App.vue.js +0 -54
- package/dist/src/assets/tokens/json/animations.json +0 -6
- package/dist/src/assets/tokens/json/border-radius.json +0 -24
- package/dist/src/assets/tokens/json/box-shadows.json +0 -24
- package/dist/src/assets/tokens/json/colors.json +0 -71
- package/dist/src/assets/tokens/json/durations.json +0 -10
- package/dist/src/assets/tokens/json/easings.json +0 -3
- package/dist/src/assets/tokens/json/font-families.json +0 -4
- package/dist/src/assets/tokens/json/font-sizes.json +0 -18
- package/dist/src/assets/tokens/json/font-weights.json +0 -12
- package/dist/src/assets/tokens/json/gradients.json +0 -13
- package/dist/src/assets/tokens/json/index.d.ts +0 -19
- package/dist/src/assets/tokens/json/index.d.ts.map +0 -1
- package/dist/src/assets/tokens/json/index.js +0 -18
- package/dist/src/assets/tokens/json/letter-spacings.json +0 -4
- package/dist/src/assets/tokens/json/line-heights.json +0 -18
- package/dist/src/assets/tokens/json/media-queries.json +0 -26
- package/dist/src/assets/tokens/json/opacities.json +0 -5
- package/dist/src/assets/tokens/json/sizes.json +0 -42
- package/dist/src/assets/tokens/json/spacings.json +0 -34
- package/dist/src/assets/tokens/json/z-indexes.json +0 -12
- package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McAvatar/McAvatar.vue.js +0 -412
- package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -15
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
- package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
- package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McChip/McChip.vue.js +0 -326
- package/dist/src/components/elements/McCropper/McCropper.vue.d.ts +0 -30
- package/dist/src/components/elements/McCropper/McCropper.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McCropper/McCropper.vue.js +0 -155
- package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McDatepicker/McDatepicker.vue.js +0 -1251
- package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
- package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
- package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
- package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
- package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
- package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
- package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
- package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
- package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
- package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
- package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
- package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
- package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
- package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
- package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
- package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
- package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
- package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +0 -1
- package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
- package/dist/src/components/index.d.ts +0 -70
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
- package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
- package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
- package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -23
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
- package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
- package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
- package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
- package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
- package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
- package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
- package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
- package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
- package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
- package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
- package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
- package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
- package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
- package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
- package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
- package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
- package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
- package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
- package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +0 -1
- package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
- package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
- package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
- package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
- package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
- package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
- package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
- package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
- package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -19
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
- package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
- package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
- package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +0 -1
- package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
- package/dist/src/composables/index.d.ts +0 -8
- package/dist/src/composables/index.d.ts.map +0 -1
- package/dist/src/composables/useDrawer.d.ts.map +0 -1
- package/dist/src/composables/useDrawer.js +0 -72
- package/dist/src/composables/useEncodeDecode.d.ts.map +0 -1
- package/dist/src/composables/useEncodeDecode.js +0 -25
- package/dist/src/composables/useFieldErrors.d.ts +0 -6
- package/dist/src/composables/useFieldErrors.d.ts.map +0 -1
- package/dist/src/composables/useFieldErrors.js +0 -20
- package/dist/src/composables/useHelper.d.ts.map +0 -1
- package/dist/src/composables/useHelper.js +0 -79
- package/dist/src/composables/useModal.d.ts.map +0 -1
- package/dist/src/composables/useModal.js +0 -71
- package/dist/src/composables/useRandomNumber.d.ts.map +0 -1
- package/dist/src/composables/useRandomNumber.js +0 -10
- package/dist/src/composables/useTooltip.d.ts.map +0 -1
- package/dist/src/composables/useTooltip.js +0 -154
- package/dist/src/consts/index.d.ts +0 -2
- package/dist/src/consts/index.d.ts.map +0 -1
- package/dist/src/consts/table.d.ts.map +0 -1
- package/dist/src/consts/table.js +0 -6
- package/dist/src/enums/Cell.d.ts.map +0 -1
- package/dist/src/enums/Cell.js +0 -6
- package/dist/src/enums/Chip.d.ts.map +0 -1
- package/dist/src/enums/Chip.js +0 -11
- package/dist/src/enums/Datepicker.d.ts.map +0 -1
- package/dist/src/enums/Datepicker.js +0 -42
- package/dist/src/enums/Drawer.d.ts.map +0 -1
- package/dist/src/enums/Drawer.js +0 -5
- package/dist/src/enums/Dropdown.d.ts.map +0 -1
- package/dist/src/enums/Dropdown.js +0 -12
- package/dist/src/enums/Filter.d.ts.map +0 -1
- package/dist/src/enums/Filter.js +0 -14
- package/dist/src/enums/Grid.d.ts.map +0 -1
- package/dist/src/enums/Grid.js +0 -24
- package/dist/src/enums/Input.d.ts.map +0 -1
- package/dist/src/enums/Input.js +0 -20
- package/dist/src/enums/Modal.d.ts.map +0 -1
- package/dist/src/enums/Modal.js +0 -5
- package/dist/src/enums/Preview.d.ts.map +0 -1
- package/dist/src/enums/Preview.js +0 -6
- package/dist/src/enums/Radio.d.ts.map +0 -1
- package/dist/src/enums/Radio.js +0 -5
- package/dist/src/enums/RadioGroup.d.ts.map +0 -1
- package/dist/src/enums/RadioGroup.js +0 -5
- package/dist/src/enums/Select.d.ts.map +0 -1
- package/dist/src/enums/Select.js +0 -11
- package/dist/src/enums/Sidebar.d.ts.map +0 -1
- package/dist/src/enums/Sidebar.js +0 -5
- package/dist/src/enums/Tab.d.ts.map +0 -1
- package/dist/src/enums/Tab.js +0 -6
- package/dist/src/enums/Title.d.ts.map +0 -1
- package/dist/src/enums/Title.js +0 -21
- package/dist/src/enums/Tooltip.d.ts.map +0 -1
- package/dist/src/enums/Tooltip.js +0 -15
- package/dist/src/enums/index.d.ts +0 -22
- package/dist/src/enums/index.d.ts.map +0 -1
- package/dist/src/enums/ui/Alignment.d.ts.map +0 -1
- package/dist/src/enums/ui/Alignment.js +0 -6
- package/dist/src/enums/ui/Button.d.ts.map +0 -1
- package/dist/src/enums/ui/Button.js +0 -24
- package/dist/src/enums/ui/Directions.d.ts.map +0 -1
- package/dist/src/enums/ui/Directions.js +0 -5
- package/dist/src/enums/ui/Weights.d.ts.map +0 -1
- package/dist/src/enums/ui/Weights.js +0 -7
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -17
- package/dist/src/main.d.ts +0 -3
- package/dist/src/main.d.ts.map +0 -1
- package/dist/src/main.js +0 -8
- package/dist/src/mocks/authUser.d.ts.map +0 -1
- package/dist/src/mocks/authUser.js +0 -162
- package/dist/src/mocks/categories.d.ts.map +0 -1
- package/dist/src/mocks/categories.js +0 -108
- package/dist/src/mocks/filterMocks.d.ts.map +0 -1
- package/dist/src/mocks/filterMocks.js +0 -128
- package/dist/src/mocks/icons.json +0 -1
- package/dist/src/mocks/menuLangs.d.ts.map +0 -1
- package/dist/src/mocks/menuLangs.js +0 -19
- package/dist/src/mocks/selectOptions.json +0 -111
- package/dist/src/mocks/sidebar.d.ts.map +0 -1
- package/dist/src/mocks/sidebar.js +0 -125
- package/dist/src/mocks/tableData.d.ts.map +0 -1
- package/dist/src/mocks/tableData.js +0 -8180
- package/dist/src/types/IButton.d.ts.map +0 -1
- package/dist/src/types/IButton.js +0 -1
- package/dist/src/types/ICell.d.ts.map +0 -1
- package/dist/src/types/ICell.js +0 -1
- package/dist/src/types/IChip.d.ts.map +0 -1
- package/dist/src/types/IChip.js +0 -1
- package/dist/src/types/ICollapse.d.ts.map +0 -1
- package/dist/src/types/ICollapse.js +0 -1
- package/dist/src/types/IDatepicker.d.ts.map +0 -1
- package/dist/src/types/IDatepicker.js +0 -1
- package/dist/src/types/IDirections.d.ts.map +0 -1
- package/dist/src/types/IDirections.js +0 -1
- package/dist/src/types/IDrawer.d.ts.map +0 -1
- package/dist/src/types/IDrawer.js +0 -1
- package/dist/src/types/IDropdown.d.ts.map +0 -1
- package/dist/src/types/IDropdown.js +0 -1
- package/dist/src/types/IFilter.d.ts.map +0 -1
- package/dist/src/types/IFilter.js +0 -1
- package/dist/src/types/IGrid.d.ts.map +0 -1
- package/dist/src/types/IGrid.js +0 -1
- package/dist/src/types/IInput.d.ts.map +0 -1
- package/dist/src/types/IInput.js +0 -1
- package/dist/src/types/IModal.d.ts.map +0 -1
- package/dist/src/types/IModal.js +0 -1
- package/dist/src/types/IPreview.d.ts.map +0 -1
- package/dist/src/types/IPreview.js +0 -1
- package/dist/src/types/IRadio.d.ts.map +0 -1
- package/dist/src/types/IRadio.js +0 -1
- package/dist/src/types/IRadioGroup.d.ts.map +0 -1
- package/dist/src/types/IRadioGroup.js +0 -1
- package/dist/src/types/IRoute.d.ts.map +0 -1
- package/dist/src/types/IRoute.js +0 -1
- package/dist/src/types/ISelect.d.ts.map +0 -1
- package/dist/src/types/ISelect.js +0 -1
- package/dist/src/types/ISideBar.d.ts.map +0 -1
- package/dist/src/types/ISideBar.js +0 -1
- package/dist/src/types/ITable.d.ts.map +0 -1
- package/dist/src/types/ITable.js +0 -1
- package/dist/src/types/ITabs.d.ts.map +0 -1
- package/dist/src/types/ITabs.js +0 -1
- package/dist/src/types/ITitle.d.ts.map +0 -1
- package/dist/src/types/ITitle.js +0 -1
- package/dist/src/types/ITooltip.d.ts.map +0 -1
- package/dist/src/types/ITooltip.js +0 -1
- package/dist/src/types/index.d.ts +0 -37
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/styles/Alignment.d.ts.map +0 -1
- package/dist/src/types/styles/Alignment.js +0 -1
- package/dist/src/types/styles/AvatarSizes.d.ts.map +0 -1
- package/dist/src/types/styles/AvatarSizes.js +0 -3
- package/dist/src/types/styles/Colors.d.ts.map +0 -1
- package/dist/src/types/styles/Colors.js +0 -3
- package/dist/src/types/styles/Durations.d.ts.map +0 -1
- package/dist/src/types/styles/Durations.js +0 -3
- package/dist/src/types/styles/FontSizes.d.ts.map +0 -1
- package/dist/src/types/styles/FontSizes.js +0 -3
- package/dist/src/types/styles/FontWeights.d.ts.map +0 -1
- package/dist/src/types/styles/FontWeights.js +0 -3
- package/dist/src/types/styles/Grid.d.ts.map +0 -1
- package/dist/src/types/styles/Grid.js +0 -1
- package/dist/src/types/styles/Icons.d.ts.map +0 -1
- package/dist/src/types/styles/Icons.js +0 -2
- package/dist/src/types/styles/LineHeights.d.ts.map +0 -1
- package/dist/src/types/styles/LineHeights.js +0 -3
- package/dist/src/types/styles/MediaQueries.d.ts.map +0 -1
- package/dist/src/types/styles/MediaQueries.js +0 -3
- package/dist/src/types/styles/Radiuses.d.ts.map +0 -1
- package/dist/src/types/styles/Radiuses.js +0 -3
- package/dist/src/types/styles/Sizes.d.ts.map +0 -1
- package/dist/src/types/styles/Sizes.js +0 -3
- package/dist/src/types/styles/Spaces.d.ts.map +0 -1
- package/dist/src/types/styles/Spaces.js +0 -3
- package/dist/src/types/styles/Weights.d.ts +0 -3
- package/dist/src/types/styles/Weights.d.ts.map +0 -1
- package/dist/src/types/styles/Weights.js +0 -1
- package/dist/src/utils/dayjs.d.ts.map +0 -1
- package/dist/src/utils/dayjs.js +0 -22
- package/dist/src/utils/index.d.ts +0 -3
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/mcGridColAdaptiveProps.d.ts.map +0 -1
- package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
- package/dist/src/utils/mcTitleAdaptiveProps.d.ts.map +0 -1
- package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{src/components/index.js → types/components/index.d.ts} +0 -0
- /package/dist/{src/consts/index.js → types/consts/index.d.ts} +0 -0
- /package/dist/{src/utils/index.js → types/utils/index.d.ts} +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { McSvgIcon } from '@/components';
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
4
|
-
const emit = defineEmits();
|
|
5
|
-
const props = defineProps({
|
|
6
|
-
sort: {
|
|
7
|
-
type: Object,
|
|
8
|
-
default: () => ({})
|
|
9
|
-
},
|
|
10
|
-
column: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const isActive = computed(() => {
|
|
16
|
-
return props.column === props.sort.sort_column;
|
|
17
|
-
});
|
|
18
|
-
const sortState = computed(() => {
|
|
19
|
-
switch (true) {
|
|
20
|
-
case props.sort.sort_direction === 'asc' && isActive.value:
|
|
21
|
-
return {
|
|
22
|
-
direction: 'asc',
|
|
23
|
-
next_direction: 'desc',
|
|
24
|
-
icon: 'arrow_downward'
|
|
25
|
-
};
|
|
26
|
-
case props.sort.sort_direction === 'desc' && isActive.value:
|
|
27
|
-
return {
|
|
28
|
-
direction: 'desc',
|
|
29
|
-
next_direction: 'asc',
|
|
30
|
-
icon: 'arrow_upward'
|
|
31
|
-
};
|
|
32
|
-
default:
|
|
33
|
-
return {
|
|
34
|
-
direction: null,
|
|
35
|
-
next_direction: 'asc',
|
|
36
|
-
icon: 'arrow_up_down'
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const handleSortChange = () => {
|
|
41
|
-
emit('change', {
|
|
42
|
-
sort_column: props.column,
|
|
43
|
-
sort_direction: sortState.value.next_direction
|
|
44
|
-
});
|
|
45
|
-
}; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
46
|
-
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
47
|
-
props: {
|
|
48
|
-
sort: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default: () => ({})
|
|
51
|
-
},
|
|
52
|
-
column: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: null
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
__typeEmits: {},
|
|
58
|
-
});
|
|
59
|
-
;
|
|
60
|
-
let __VLS_functionalComponentProps;
|
|
61
|
-
function __VLS_template() {
|
|
62
|
-
const __VLS_ctx = {};
|
|
63
|
-
const __VLS_localComponents = {
|
|
64
|
-
...{},
|
|
65
|
-
...{},
|
|
66
|
-
...__VLS_ctx,
|
|
67
|
-
};
|
|
68
|
-
let __VLS_components;
|
|
69
|
-
const __VLS_localDirectives = {
|
|
70
|
-
...{},
|
|
71
|
-
...__VLS_ctx,
|
|
72
|
-
};
|
|
73
|
-
let __VLS_directives;
|
|
74
|
-
let __VLS_styleScopedClasses;
|
|
75
|
-
// CSS variable injection
|
|
76
|
-
// CSS variable injection end
|
|
77
|
-
let __VLS_resolvedLocalAndGlobalComponents;
|
|
78
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onClick: (__VLS_ctx.handleSortChange) }, ...{ class: ("mc-table-sort") }, });
|
|
79
|
-
const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
80
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }));
|
|
83
|
-
const __VLS_2 = __VLS_1({ size: ("200"), name: ((__VLS_ctx.sortState.icon)), color: ((__VLS_ctx.isActive ? 'black' : 'gray')), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
84
|
-
__VLS_styleScopedClasses['mc-table-sort'];
|
|
85
|
-
var __VLS_slots;
|
|
86
|
-
var __VLS_inheritedAttrs;
|
|
87
|
-
const __VLS_refs = {};
|
|
88
|
-
var $refs;
|
|
89
|
-
var $el;
|
|
90
|
-
return {
|
|
91
|
-
attrs: {},
|
|
92
|
-
slots: __VLS_slots,
|
|
93
|
-
refs: $refs,
|
|
94
|
-
rootEl: $el,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
;
|
|
98
|
-
const __VLS_self = (await import('vue')).defineComponent({
|
|
99
|
-
setup() {
|
|
100
|
-
return {
|
|
101
|
-
McSvgIcon: McSvgIcon,
|
|
102
|
-
isActive: isActive,
|
|
103
|
-
sortState: sortState,
|
|
104
|
-
handleSortChange: handleSortChange,
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
__typeEmits: {},
|
|
108
|
-
props: {
|
|
109
|
-
sort: {
|
|
110
|
-
type: Object,
|
|
111
|
-
default: () => ({})
|
|
112
|
-
},
|
|
113
|
-
column: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: null
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
});
|
|
119
|
-
export default (await import('vue')).defineComponent({
|
|
120
|
-
setup() {
|
|
121
|
-
return {};
|
|
122
|
-
},
|
|
123
|
-
__typeEmits: {},
|
|
124
|
-
props: {
|
|
125
|
-
sort: {
|
|
126
|
-
type: Object,
|
|
127
|
-
default: () => ({})
|
|
128
|
-
},
|
|
129
|
-
column: {
|
|
130
|
-
type: String,
|
|
131
|
-
default: null
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
__typeEl: {},
|
|
135
|
-
});
|
|
136
|
-
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McTopBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/McTopBar/McTopBar.vue"],"names":[],"mappings":"AAoJA,OAAO,EAAE,KAAK,QAAQ,EAAO,MAAM,KAAK,CAAA;;IAyStC;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;;IA3BH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;AAQL,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { McAvatar, McButton, McSvgIcon, McSeparator, McDropdown } from '@/components';
|
|
2
|
-
import { ref } from 'vue';
|
|
3
|
-
import { ButtonSize, DropdownPositions, HorizontalAlignment } from '@/enums';
|
|
4
|
-
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
5
|
-
const props = defineProps({
|
|
6
|
-
/**
|
|
7
|
-
* Данные пользователя
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
user: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => ({})
|
|
13
|
-
},
|
|
14
|
-
/**
|
|
15
|
-
* Меню языков
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
menuLangs: {
|
|
19
|
-
type: Array,
|
|
20
|
-
default: () => []
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* Локализация или текст по умолчанию
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
defaultLang: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: 'Выберите язык'
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Текущая локализация
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
currentLang: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: null
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const menuLangsDD = ref(null);
|
|
40
|
-
const localesDropdownOpen = ref(false);
|
|
41
|
-
const userDropdownOpen = ref(false); /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
42
|
-
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
43
|
-
props: {
|
|
44
|
-
/**
|
|
45
|
-
* Данные пользователя
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
user: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default: () => ({})
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* Меню языков
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
menuLangs: {
|
|
57
|
-
type: Array,
|
|
58
|
-
default: () => []
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* Локализация или текст по умолчанию
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
defaultLang: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: 'Выберите язык'
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Текущая локализация
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
currentLang: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: null
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
;
|
|
79
|
-
let __VLS_functionalComponentProps;
|
|
80
|
-
function __VLS_template() {
|
|
81
|
-
const __VLS_ctx = {};
|
|
82
|
-
const __VLS_localComponents = {
|
|
83
|
-
...{},
|
|
84
|
-
...{},
|
|
85
|
-
...__VLS_ctx,
|
|
86
|
-
};
|
|
87
|
-
let __VLS_components;
|
|
88
|
-
const __VLS_localDirectives = {
|
|
89
|
-
...{},
|
|
90
|
-
...__VLS_ctx,
|
|
91
|
-
};
|
|
92
|
-
let __VLS_directives;
|
|
93
|
-
let __VLS_styleScopedClasses;
|
|
94
|
-
// CSS variable injection
|
|
95
|
-
// CSS variable injection end
|
|
96
|
-
let __VLS_resolvedLocalAndGlobalComponents;
|
|
97
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar") }, });
|
|
98
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__inner") }, });
|
|
99
|
-
if (__VLS_ctx.$slots.left) {
|
|
100
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__left") }, });
|
|
101
|
-
var __VLS_0 = {};
|
|
102
|
-
}
|
|
103
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-top-bar__right") }, });
|
|
104
|
-
var __VLS_1 = {};
|
|
105
|
-
if (__VLS_ctx.menuLangs && __VLS_ctx.menuLangs.length) {
|
|
106
|
-
const __VLS_2 = __VLS_resolvedLocalAndGlobalComponents.McDropdown;
|
|
107
|
-
/** @type { [typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, ] } */
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
const __VLS_3 = __VLS_asFunctionalComponent(__VLS_2, new __VLS_2({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }));
|
|
110
|
-
const __VLS_4 = __VLS_3({ ref: ("menuLangsDD"), items: ((__VLS_ctx.menuLangs)), modelValue: ((__VLS_ctx.localesDropdownOpen)), listMinWidth: ("auto"), ...{ class: ("mc-top-bar__menu-langs") }, }, ...__VLS_functionalComponentArgsRest(__VLS_3));
|
|
111
|
-
// @ts-ignore navigation for `const menuLangsDD = ref()`
|
|
112
|
-
__VLS_ctx.menuLangsDD;
|
|
113
|
-
var __VLS_8 = {};
|
|
114
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
115
|
-
{
|
|
116
|
-
const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_7.slots);
|
|
117
|
-
const __VLS_9 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
118
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({ variation: ("black-link"), uppercase: (true), }));
|
|
121
|
-
const __VLS_11 = __VLS_10({ variation: ("black-link"), uppercase: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
122
|
-
(__VLS_ctx.currentLang || __VLS_ctx.defaultLang);
|
|
123
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
124
|
-
{
|
|
125
|
-
const { "icon-append": __VLS_thisSlot } = __VLS_nonNullable(__VLS_14.slots);
|
|
126
|
-
const __VLS_15 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
127
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
128
|
-
// @ts-ignore
|
|
129
|
-
const __VLS_16 = __VLS_asFunctionalComponent(__VLS_15, new __VLS_15({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }));
|
|
130
|
-
const __VLS_17 = __VLS_16({ ...{ class: ("rotate") }, name: ("arrow_drop_down"), }, ...__VLS_functionalComponentArgsRest(__VLS_16));
|
|
131
|
-
}
|
|
132
|
-
var __VLS_14;
|
|
133
|
-
}
|
|
134
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
135
|
-
{
|
|
136
|
-
const { item: __VLS_thisSlot } = __VLS_nonNullable(__VLS_7.slots);
|
|
137
|
-
const [{ item }] = __VLS_getSlotParams(__VLS_thisSlot);
|
|
138
|
-
const __VLS_21 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
139
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
140
|
-
// @ts-ignore
|
|
141
|
-
const __VLS_22 = __VLS_asFunctionalComponent(__VLS_21, new __VLS_21({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }));
|
|
142
|
-
const __VLS_23 = __VLS_22({ to: ((item.to || item.href)), exact: ((item.exact)), variation: ("black-flat"), textAlign: ((__VLS_ctx.HorizontalAlignment.Left)), fullWidth: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_22));
|
|
143
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
144
|
-
{
|
|
145
|
-
const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_26.slots);
|
|
146
|
-
const __VLS_27 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
147
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
148
|
-
// @ts-ignore
|
|
149
|
-
const __VLS_28 = __VLS_asFunctionalComponent(__VLS_27, new __VLS_27({ name: `flag_${item.name.toLowerCase()}`, }));
|
|
150
|
-
const __VLS_29 = __VLS_28({ name: `flag_${item.name.toLowerCase()}`, }, ...__VLS_functionalComponentArgsRest(__VLS_28));
|
|
151
|
-
}
|
|
152
|
-
(item.name);
|
|
153
|
-
var __VLS_26;
|
|
154
|
-
}
|
|
155
|
-
var __VLS_7;
|
|
156
|
-
}
|
|
157
|
-
var __VLS_33 = {};
|
|
158
|
-
if (props.user) {
|
|
159
|
-
const __VLS_34 = __VLS_resolvedLocalAndGlobalComponents.McDropdown;
|
|
160
|
-
/** @type { [typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, typeof __VLS_components.McDropdown, typeof __VLS_components.mcDropdown, ] } */
|
|
161
|
-
// @ts-ignore
|
|
162
|
-
const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }));
|
|
163
|
-
const __VLS_36 = __VLS_35({ modelValue: ((__VLS_ctx.userDropdownOpen)), position: ((__VLS_ctx.DropdownPositions.Right)), }, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
164
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
165
|
-
{
|
|
166
|
-
const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_39.slots);
|
|
167
|
-
const __VLS_40 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
168
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
169
|
-
// @ts-ignore
|
|
170
|
-
const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }));
|
|
171
|
-
const __VLS_42 = __VLS_41({ variation: ("white-flat"), size: ((__VLS_ctx.ButtonSize.MCompact)), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
172
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
173
|
-
{
|
|
174
|
-
const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_45.slots);
|
|
175
|
-
const __VLS_46 = __VLS_resolvedLocalAndGlobalComponents.McAvatar;
|
|
176
|
-
/** @type { [typeof __VLS_components.McAvatar, typeof __VLS_components.mcAvatar, ] } */
|
|
177
|
-
// @ts-ignore
|
|
178
|
-
const __VLS_47 = __VLS_asFunctionalComponent(__VLS_46, new __VLS_46({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }));
|
|
179
|
-
const __VLS_48 = __VLS_47({ src: ((props.user.avatar)), rounded: (true), size: ("400"), }, ...__VLS_functionalComponentArgsRest(__VLS_47));
|
|
180
|
-
}
|
|
181
|
-
var __VLS_45;
|
|
182
|
-
}
|
|
183
|
-
var __VLS_52 = {};
|
|
184
|
-
var __VLS_39;
|
|
185
|
-
}
|
|
186
|
-
const __VLS_53 = __VLS_resolvedLocalAndGlobalComponents.McSeparator;
|
|
187
|
-
/** @type { [typeof __VLS_components.McSeparator, typeof __VLS_components.mcSeparator, ] } */
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
const __VLS_54 = __VLS_asFunctionalComponent(__VLS_53, new __VLS_53({ color: ("hover-gray"), indentTop: ("100"), }));
|
|
190
|
-
const __VLS_55 = __VLS_54({ color: ("hover-gray"), indentTop: ("100"), }, ...__VLS_functionalComponentArgsRest(__VLS_54));
|
|
191
|
-
var __VLS_59 = {};
|
|
192
|
-
__VLS_styleScopedClasses['mc-top-bar'];
|
|
193
|
-
__VLS_styleScopedClasses['mc-top-bar__inner'];
|
|
194
|
-
__VLS_styleScopedClasses['mc-top-bar__left'];
|
|
195
|
-
__VLS_styleScopedClasses['mc-top-bar__right'];
|
|
196
|
-
__VLS_styleScopedClasses['mc-top-bar__menu-langs'];
|
|
197
|
-
__VLS_styleScopedClasses['rotate'];
|
|
198
|
-
var __VLS_slots;
|
|
199
|
-
var __VLS_inheritedAttrs;
|
|
200
|
-
const __VLS_refs = {
|
|
201
|
-
"menuLangsDD": __VLS_8,
|
|
202
|
-
};
|
|
203
|
-
var $refs;
|
|
204
|
-
var $el;
|
|
205
|
-
return {
|
|
206
|
-
attrs: {},
|
|
207
|
-
slots: __VLS_slots,
|
|
208
|
-
refs: $refs,
|
|
209
|
-
rootEl: $el,
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
;
|
|
213
|
-
const __VLS_self = (await import('vue')).defineComponent({
|
|
214
|
-
setup() {
|
|
215
|
-
return {
|
|
216
|
-
McAvatar: McAvatar,
|
|
217
|
-
McButton: McButton,
|
|
218
|
-
McSvgIcon: McSvgIcon,
|
|
219
|
-
McSeparator: McSeparator,
|
|
220
|
-
McDropdown: McDropdown,
|
|
221
|
-
ButtonSize: ButtonSize,
|
|
222
|
-
DropdownPositions: DropdownPositions,
|
|
223
|
-
HorizontalAlignment: HorizontalAlignment,
|
|
224
|
-
menuLangsDD: menuLangsDD,
|
|
225
|
-
localesDropdownOpen: localesDropdownOpen,
|
|
226
|
-
userDropdownOpen: userDropdownOpen,
|
|
227
|
-
};
|
|
228
|
-
},
|
|
229
|
-
props: {
|
|
230
|
-
/**
|
|
231
|
-
* Данные пользователя
|
|
232
|
-
*
|
|
233
|
-
*/
|
|
234
|
-
user: {
|
|
235
|
-
type: Object,
|
|
236
|
-
default: () => ({})
|
|
237
|
-
},
|
|
238
|
-
/**
|
|
239
|
-
* Меню языков
|
|
240
|
-
*
|
|
241
|
-
*/
|
|
242
|
-
menuLangs: {
|
|
243
|
-
type: Array,
|
|
244
|
-
default: () => []
|
|
245
|
-
},
|
|
246
|
-
/**
|
|
247
|
-
* Локализация или текст по умолчанию
|
|
248
|
-
*
|
|
249
|
-
*/
|
|
250
|
-
defaultLang: {
|
|
251
|
-
type: String,
|
|
252
|
-
default: 'Выберите язык'
|
|
253
|
-
},
|
|
254
|
-
/**
|
|
255
|
-
* Текущая локализация
|
|
256
|
-
*
|
|
257
|
-
*/
|
|
258
|
-
currentLang: {
|
|
259
|
-
type: String,
|
|
260
|
-
default: null
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
});
|
|
264
|
-
const __VLS_component = (await import('vue')).defineComponent({
|
|
265
|
-
setup() {
|
|
266
|
-
return {};
|
|
267
|
-
},
|
|
268
|
-
props: {
|
|
269
|
-
/**
|
|
270
|
-
* Данные пользователя
|
|
271
|
-
*
|
|
272
|
-
*/
|
|
273
|
-
user: {
|
|
274
|
-
type: Object,
|
|
275
|
-
default: () => ({})
|
|
276
|
-
},
|
|
277
|
-
/**
|
|
278
|
-
* Меню языков
|
|
279
|
-
*
|
|
280
|
-
*/
|
|
281
|
-
menuLangs: {
|
|
282
|
-
type: Array,
|
|
283
|
-
default: () => []
|
|
284
|
-
},
|
|
285
|
-
/**
|
|
286
|
-
* Локализация или текст по умолчанию
|
|
287
|
-
*
|
|
288
|
-
*/
|
|
289
|
-
defaultLang: {
|
|
290
|
-
type: String,
|
|
291
|
-
default: 'Выберите язык'
|
|
292
|
-
},
|
|
293
|
-
/**
|
|
294
|
-
* Текущая локализация
|
|
295
|
-
*
|
|
296
|
-
*/
|
|
297
|
-
currentLang: {
|
|
298
|
-
type: String,
|
|
299
|
-
default: null
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
__typeEl: {},
|
|
303
|
-
});
|
|
304
|
-
export default {};
|
|
305
|
-
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"McVirtualScroll.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/McVirtualScroll/McVirtualScroll.vue"],"names":[],"mappings":"AAAA,OA8HO,EAAmC,KAAK,QAAQ,EAAY,MAAM,KAAK,CAAA;;IA2O5E;;SAEK;;;;;;IAML;;SAEK;;;;;IAKL;;SAEK;;;;;;IAML;;SAEK;;;;;;IAzBL;;SAEK;;;;;;IAML;;SAEK;;;;;IAKL;;SAEK;;;;;;IAML;;SAEK;;;;;;;;;;;;;;;AAQP,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { ref, onMounted, nextTick, watch, computed } from 'vue';
|
|
2
|
-
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
3
|
-
const props = defineProps({
|
|
4
|
-
/**
|
|
5
|
-
* Массив данных для рендеринга
|
|
6
|
-
* */
|
|
7
|
-
items: {
|
|
8
|
-
type: Array,
|
|
9
|
-
default: () => [],
|
|
10
|
-
required: true
|
|
11
|
-
},
|
|
12
|
-
/**
|
|
13
|
-
* Высота контейнера скролла
|
|
14
|
-
* */
|
|
15
|
-
containerHeight: {
|
|
16
|
-
type: Number,
|
|
17
|
-
required: true
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* Высота 1 элемента списка
|
|
21
|
-
* */
|
|
22
|
-
itemHeight: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 20,
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Буфер для подгрузки дополнительных элементов вне видимой области
|
|
29
|
-
* */
|
|
30
|
-
buffer: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: 1
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const containerRef = ref(null);
|
|
36
|
-
const scrollTop = ref(0);
|
|
37
|
-
const visibleItems = ref([]);
|
|
38
|
-
const totalHeight = ref(0);
|
|
39
|
-
const styles = computed(() => {
|
|
40
|
-
return {
|
|
41
|
-
height: `${props.containerHeight}px`,
|
|
42
|
-
overflowY: 'auto',
|
|
43
|
-
position: 'relative'
|
|
44
|
-
};
|
|
45
|
-
});
|
|
46
|
-
onMounted(() => {
|
|
47
|
-
calculateTotalHeight();
|
|
48
|
-
nextTick(calculateVisibleItems);
|
|
49
|
-
});
|
|
50
|
-
const calculateTotalHeight = () => {
|
|
51
|
-
totalHeight.value = props.items.length * props.itemHeight;
|
|
52
|
-
};
|
|
53
|
-
const calculateVisibleItems = () => {
|
|
54
|
-
const containerHeight = containerRef.value?.clientHeight || 0;
|
|
55
|
-
const startIndex = Math.floor(scrollTop.value / props.itemHeight);
|
|
56
|
-
const endIndex = Math.min(props.items.length - 1, Math.floor((scrollTop.value + containerHeight) / props.itemHeight));
|
|
57
|
-
const buffer = props.buffer || 5;
|
|
58
|
-
const result = [];
|
|
59
|
-
for (let i = Math.max(0, startIndex - buffer); i <= Math.min(endIndex + buffer, props.items.length - 1); i++) {
|
|
60
|
-
result.push({
|
|
61
|
-
key: i,
|
|
62
|
-
data: props.items[i],
|
|
63
|
-
index: i,
|
|
64
|
-
top: i * props.itemHeight
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
visibleItems.value = result;
|
|
68
|
-
};
|
|
69
|
-
const onScroll = () => {
|
|
70
|
-
scrollTop.value = containerRef.value?.scrollTop || 0;
|
|
71
|
-
requestAnimationFrame(calculateVisibleItems);
|
|
72
|
-
};
|
|
73
|
-
watch(() => props.items, () => {
|
|
74
|
-
calculateTotalHeight();
|
|
75
|
-
nextTick(calculateVisibleItems);
|
|
76
|
-
}); /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
77
|
-
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
78
|
-
props: {
|
|
79
|
-
/**
|
|
80
|
-
* Массив данных для рендеринга
|
|
81
|
-
* */
|
|
82
|
-
items: {
|
|
83
|
-
type: Array,
|
|
84
|
-
default: () => [],
|
|
85
|
-
required: true
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* Высота контейнера скролла
|
|
89
|
-
* */
|
|
90
|
-
containerHeight: {
|
|
91
|
-
type: Number,
|
|
92
|
-
required: true
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Высота 1 элемента списка
|
|
96
|
-
* */
|
|
97
|
-
itemHeight: {
|
|
98
|
-
type: Number,
|
|
99
|
-
default: 20,
|
|
100
|
-
required: true
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* Буфер для подгрузки дополнительных элементов вне видимой области
|
|
104
|
-
* */
|
|
105
|
-
buffer: {
|
|
106
|
-
type: Number,
|
|
107
|
-
default: 1
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
;
|
|
112
|
-
let __VLS_functionalComponentProps;
|
|
113
|
-
function __VLS_template() {
|
|
114
|
-
const __VLS_ctx = {};
|
|
115
|
-
const __VLS_localComponents = {
|
|
116
|
-
...{},
|
|
117
|
-
...{},
|
|
118
|
-
...__VLS_ctx,
|
|
119
|
-
};
|
|
120
|
-
let __VLS_components;
|
|
121
|
-
const __VLS_localDirectives = {
|
|
122
|
-
...{},
|
|
123
|
-
...__VLS_ctx,
|
|
124
|
-
};
|
|
125
|
-
let __VLS_directives;
|
|
126
|
-
let __VLS_styleScopedClasses;
|
|
127
|
-
// CSS variable injection
|
|
128
|
-
// CSS variable injection end
|
|
129
|
-
let __VLS_resolvedLocalAndGlobalComponents;
|
|
130
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onScroll: (__VLS_ctx.onScroll) }, ...{ class: ("mc-virtual-scroll") }, ref: ("containerRef"), ...{ style: ((__VLS_ctx.styles)) }, });
|
|
131
|
-
// @ts-ignore navigation for `const containerRef = ref()`
|
|
132
|
-
__VLS_ctx.containerRef;
|
|
133
|
-
for (const [item] of __VLS_getVForSourceType((__VLS_ctx.visibleItems))) {
|
|
134
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((`mc-virtual-scroll__item-${item.key}`)), ...{ class: ("mc-virtual-scroll__item") }, ...{ style: (({ top: `${item.top}px` })) }, });
|
|
135
|
-
var __VLS_0 = {
|
|
136
|
-
item: ((item.data)), index: ((item.index)),
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ style: (({ height: `${__VLS_ctx.totalHeight}px` })) }, });
|
|
140
|
-
__VLS_styleScopedClasses['mc-virtual-scroll'];
|
|
141
|
-
__VLS_styleScopedClasses['mc-virtual-scroll__item'];
|
|
142
|
-
var __VLS_slots;
|
|
143
|
-
var __VLS_inheritedAttrs;
|
|
144
|
-
const __VLS_refs = {
|
|
145
|
-
"containerRef": __VLS_nativeElements['div'],
|
|
146
|
-
};
|
|
147
|
-
var $refs;
|
|
148
|
-
var $el;
|
|
149
|
-
return {
|
|
150
|
-
attrs: {},
|
|
151
|
-
slots: __VLS_slots,
|
|
152
|
-
refs: $refs,
|
|
153
|
-
rootEl: $el,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
;
|
|
157
|
-
const __VLS_self = (await import('vue')).defineComponent({
|
|
158
|
-
setup() {
|
|
159
|
-
return {
|
|
160
|
-
containerRef: containerRef,
|
|
161
|
-
visibleItems: visibleItems,
|
|
162
|
-
totalHeight: totalHeight,
|
|
163
|
-
styles: styles,
|
|
164
|
-
onScroll: onScroll,
|
|
165
|
-
};
|
|
166
|
-
},
|
|
167
|
-
props: {
|
|
168
|
-
/**
|
|
169
|
-
* Массив данных для рендеринга
|
|
170
|
-
* */
|
|
171
|
-
items: {
|
|
172
|
-
type: Array,
|
|
173
|
-
default: () => [],
|
|
174
|
-
required: true
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* Высота контейнера скролла
|
|
178
|
-
* */
|
|
179
|
-
containerHeight: {
|
|
180
|
-
type: Number,
|
|
181
|
-
required: true
|
|
182
|
-
},
|
|
183
|
-
/**
|
|
184
|
-
* Высота 1 элемента списка
|
|
185
|
-
* */
|
|
186
|
-
itemHeight: {
|
|
187
|
-
type: Number,
|
|
188
|
-
default: 20,
|
|
189
|
-
required: true
|
|
190
|
-
},
|
|
191
|
-
/**
|
|
192
|
-
* Буфер для подгрузки дополнительных элементов вне видимой области
|
|
193
|
-
* */
|
|
194
|
-
buffer: {
|
|
195
|
-
type: Number,
|
|
196
|
-
default: 1
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
});
|
|
200
|
-
const __VLS_component = (await import('vue')).defineComponent({
|
|
201
|
-
setup() {
|
|
202
|
-
return {};
|
|
203
|
-
},
|
|
204
|
-
props: {
|
|
205
|
-
/**
|
|
206
|
-
* Массив данных для рендеринга
|
|
207
|
-
* */
|
|
208
|
-
items: {
|
|
209
|
-
type: Array,
|
|
210
|
-
default: () => [],
|
|
211
|
-
required: true
|
|
212
|
-
},
|
|
213
|
-
/**
|
|
214
|
-
* Высота контейнера скролла
|
|
215
|
-
* */
|
|
216
|
-
containerHeight: {
|
|
217
|
-
type: Number,
|
|
218
|
-
required: true
|
|
219
|
-
},
|
|
220
|
-
/**
|
|
221
|
-
* Высота 1 элемента списка
|
|
222
|
-
* */
|
|
223
|
-
itemHeight: {
|
|
224
|
-
type: Number,
|
|
225
|
-
default: 20,
|
|
226
|
-
required: true
|
|
227
|
-
},
|
|
228
|
-
/**
|
|
229
|
-
* Буфер для подгрузки дополнительных элементов вне видимой области
|
|
230
|
-
* */
|
|
231
|
-
buffer: {
|
|
232
|
-
type: Number,
|
|
233
|
-
default: 1
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
__typeEl: {},
|
|
237
|
-
});
|
|
238
|
-
export default {};
|
|
239
|
-
; /* PartiallyEnd: #4569/main.vue */
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { useDrawer } from './useDrawer';
|
|
2
|
-
export { UseEncodeDecode } from '@/composables/useEncodeDecode';
|
|
3
|
-
export { useFieldErrors } from './useFieldErrors';
|
|
4
|
-
export { useHelper } from './useHelper';
|
|
5
|
-
export { useModal } from './useModal';
|
|
6
|
-
export { useRandomNumber } from './useRandomNumber';
|
|
7
|
-
export { useTooltip } from './useTooltip';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|