mediacube-ui-v2 0.0.33 → 0.0.35
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/types/index.d.ts +1 -0
- package/dist/types/src/App.vue.d.ts +3 -0
- package/dist/{src → types/src}/App.vue.d.ts.map +1 -1
- package/dist/types/src/assets/tokens/json/animations.json.d.ts +8 -0
- package/dist/types/src/assets/tokens/json/border-radius.json.d.ts +26 -0
- package/dist/types/src/assets/tokens/json/box-shadows.json.d.ts +26 -0
- package/dist/types/src/assets/tokens/json/colors.json.d.ts +73 -0
- package/dist/types/src/assets/tokens/json/durations.json.d.ts +12 -0
- package/dist/types/src/assets/tokens/json/easings.json.d.ts +5 -0
- package/dist/types/src/assets/tokens/json/font-families.json.d.ts +6 -0
- package/dist/types/src/assets/tokens/json/font-sizes.json.d.ts +20 -0
- package/dist/types/src/assets/tokens/json/font-weights.json.d.ts +14 -0
- package/dist/types/src/assets/tokens/json/gradients.json.d.ts +15 -0
- package/dist/types/src/assets/tokens/json/index.d.ts +19 -0
- package/dist/types/src/assets/tokens/json/index.d.ts.map +1 -0
- package/dist/types/src/assets/tokens/json/letter-spacings.json.d.ts +6 -0
- package/dist/types/src/assets/tokens/json/line-heights.json.d.ts +20 -0
- package/dist/types/src/assets/tokens/json/media-queries.json.d.ts +28 -0
- package/dist/types/src/assets/tokens/json/opacities.json.d.ts +7 -0
- package/dist/types/src/assets/tokens/json/sizes.json.d.ts +44 -0
- package/dist/types/src/assets/tokens/json/spacings.json.d.ts +36 -0
- package/dist/types/src/assets/tokens/json/z-indexes.json.d.ts +14 -0
- package/dist/{src → types/src}/components/elements/McAvatar/McAvatar.vue.d.ts +5 -5
- package/dist/types/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McBadge/McBadge.vue.d.ts +3 -3
- package/dist/types/src/components/elements/McBadge/McBadge.vue.d.ts.map +1 -0
- package/dist/types/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +15 -0
- package/dist/types/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McButton/McButton.vue.d.ts +9 -10
- package/dist/types/src/components/elements/McButton/McButton.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McChip/McChip.vue.d.ts +6 -7
- package/dist/types/src/components/elements/McChip/McChip.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -2
- package/dist/types/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McDraggable/McDraggable.vue.d.ts +4 -4
- package/dist/types/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
- package/dist/types/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
- package/dist/types/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
- package/dist/types/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
- package/dist/types/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -9
- package/dist/types/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldText/McFieldText.vue.d.ts +9 -9
- package/dist/types/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
- package/dist/types/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
- package/dist/types/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McNodata/McNoData.vue.d.ts +5 -5
- package/dist/types/src/components/elements/McNodata/McNoData.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McNotification/McNotification.vue.d.ts +5 -5
- package/dist/types/src/components/elements/McNotification/McNotification.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McProgress/McProgress.vue.d.ts +5 -5
- package/dist/types/src/components/elements/McProgress/McProgress.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McSeparator/McSeparator.vue.d.ts +4 -4
- package/dist/types/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
- package/dist/types/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McStack/McStack.vue.d.ts +4 -4
- package/dist/types/src/components/elements/McStack/McStack.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
- package/dist/types/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McTitle/McTitle.vue.d.ts +7 -7
- package/dist/types/src/components/elements/McTitle/McTitle.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/elements/McTooltip/McTooltip.vue.d.ts +6 -6
- package/dist/types/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
- package/dist/types/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McCell/McCell.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McCell/McCell.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
- package/dist/types/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +1 -0
- package/dist/types/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +23 -0
- package/dist/types/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilter.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilter.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
- package/dist/types/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
- package/dist/types/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
- package/dist/types/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McPreview/McPreview.vue.d.ts +4 -4
- package/dist/types/src/components/patterns/McPreview/McPreview.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -7
- package/dist/types/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
- package/dist/types/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -5
- package/dist/types/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -6
- package/dist/types/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McTab/McTab.vue.d.ts +5 -5
- package/dist/types/src/components/patterns/McTab/McTab.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McTabs/McTabs.vue.d.ts +7 -8
- package/dist/types/src/components/patterns/McTabs/McTabs.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
- package/dist/types/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McDrawer/McDrawer.vue.d.ts +7 -7
- package/dist/types/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
- package/dist/types/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
- package/dist/types/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McModal/McModal.vue.d.ts +7 -7
- package/dist/types/src/components/templates/McModal/McModal.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McModal/McModalContainer.vue.d.ts +5 -5
- package/dist/types/src/components/templates/McModal/McModalContainer.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McTable/McTable/McTable.vue.d.ts +7 -7
- package/dist/types/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
- package/dist/types/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
- package/dist/types/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +1 -0
- package/dist/types/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +19 -0
- package/dist/types/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -6
- package/dist/types/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McTopBar/McTopBar.vue.d.ts +4 -4
- package/dist/types/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +1 -0
- package/dist/{src → types/src}/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
- package/dist/types/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +1 -0
- package/dist/{src/composables/index.js → types/src/composables/index.d.ts} +2 -1
- package/dist/types/src/composables/index.d.ts.map +1 -0
- package/dist/{src → types/src}/composables/useDrawer.d.ts +1 -1
- package/dist/types/src/composables/useDrawer.d.ts.map +1 -0
- package/dist/types/src/composables/useEncodeDecode.d.ts.map +1 -0
- package/dist/types/src/composables/useFieldErrors.d.ts +6 -0
- package/dist/types/src/composables/useFieldErrors.d.ts.map +1 -0
- package/dist/types/src/composables/useHelper.d.ts.map +1 -0
- package/dist/types/src/composables/useModal.d.ts.map +1 -0
- package/dist/types/src/composables/useRandomNumber.d.ts.map +1 -0
- package/dist/{src → types/src}/composables/useTooltip.d.ts +1 -1
- package/dist/types/src/composables/useTooltip.d.ts.map +1 -0
- package/dist/types/src/consts/index.d.ts.map +1 -0
- package/dist/types/src/consts/table.d.ts.map +1 -0
- package/dist/types/src/enums/Cell.d.ts.map +1 -0
- package/dist/types/src/enums/Chip.d.ts.map +1 -0
- package/dist/types/src/enums/Datepicker.d.ts.map +1 -0
- package/dist/types/src/enums/Drawer.d.ts.map +1 -0
- package/dist/types/src/enums/Dropdown.d.ts.map +1 -0
- package/dist/types/src/enums/Filter.d.ts.map +1 -0
- package/dist/types/src/enums/Grid.d.ts.map +1 -0
- package/dist/types/src/enums/Input.d.ts.map +1 -0
- package/dist/types/src/enums/Modal.d.ts.map +1 -0
- package/dist/types/src/enums/Preview.d.ts.map +1 -0
- package/dist/types/src/enums/Radio.d.ts.map +1 -0
- package/dist/types/src/enums/RadioGroup.d.ts.map +1 -0
- package/dist/types/src/enums/Select.d.ts.map +1 -0
- package/dist/types/src/enums/Sidebar.d.ts.map +1 -0
- package/dist/types/src/enums/Tab.d.ts.map +1 -0
- package/dist/types/src/enums/Title.d.ts.map +1 -0
- package/dist/types/src/enums/Tooltip.d.ts.map +1 -0
- package/dist/types/src/enums/index.d.ts.map +1 -0
- package/dist/types/src/enums/ui/Alignment.d.ts.map +1 -0
- package/dist/types/src/enums/ui/Button.d.ts.map +1 -0
- package/dist/types/src/enums/ui/Directions.d.ts.map +1 -0
- package/dist/types/src/enums/ui/Weights.d.ts.map +1 -0
- package/dist/{src → types/src}/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/main.d.ts.map +1 -0
- package/dist/types/src/mocks/authUser.d.ts.map +1 -0
- package/dist/types/src/mocks/categories.d.ts.map +1 -0
- package/dist/{src → types/src}/mocks/filterMocks.d.ts +1 -1
- package/dist/types/src/mocks/filterMocks.d.ts.map +1 -0
- package/dist/types/src/mocks/icons.json.d.ts +3 -0
- package/dist/types/src/mocks/menuLangs.d.ts.map +1 -0
- package/dist/{src → types/src}/mocks/sidebar.d.ts +1 -1
- package/dist/types/src/mocks/sidebar.d.ts.map +1 -0
- package/dist/{src → types/src}/mocks/tableData.d.ts +1 -1
- package/dist/types/src/mocks/tableData.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IButton.d.ts +5 -5
- package/dist/types/src/types/IButton.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ICell.d.ts +1 -1
- package/dist/types/src/types/ICell.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IChip.d.ts +2 -2
- package/dist/types/src/types/IChip.d.ts.map +1 -0
- package/dist/types/src/types/ICollapse.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IDatepicker.d.ts +1 -1
- package/dist/types/src/types/IDatepicker.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IDirections.d.ts +1 -1
- package/dist/types/src/types/IDirections.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IDrawer.d.ts +2 -2
- package/dist/types/src/types/IDrawer.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IDropdown.d.ts +1 -1
- package/dist/types/src/types/IDropdown.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IFilter.d.ts +1 -1
- package/dist/types/src/types/IFilter.d.ts.map +1 -0
- package/dist/types/src/types/IGrid.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IInput.d.ts +1 -1
- package/dist/types/src/types/IInput.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IModal.d.ts +2 -2
- package/dist/types/src/types/IModal.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IPreview.d.ts +1 -1
- package/dist/types/src/types/IPreview.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IRadio.d.ts +1 -1
- package/dist/types/src/types/IRadio.d.ts.map +1 -0
- package/dist/{src → types/src}/types/IRadioGroup.d.ts +1 -1
- package/dist/types/src/types/IRadioGroup.d.ts.map +1 -0
- package/dist/types/src/types/IRoute.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ISelect.d.ts +1 -1
- package/dist/types/src/types/ISelect.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ISideBar.d.ts +5 -5
- package/dist/types/src/types/ISideBar.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ITable.d.ts +2 -2
- package/dist/types/src/types/ITable.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ITabs.d.ts +4 -4
- package/dist/types/src/types/ITabs.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ITitle.d.ts +1 -1
- package/dist/types/src/types/ITitle.d.ts.map +1 -0
- package/dist/{src → types/src}/types/ITooltip.d.ts +1 -1
- package/dist/types/src/types/ITooltip.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/{src → types/src}/types/styles/Alignment.d.ts +1 -1
- package/dist/types/src/types/styles/Alignment.d.ts.map +1 -0
- package/dist/types/src/types/styles/AvatarSizes.d.ts.map +1 -0
- package/dist/types/src/types/styles/Colors.d.ts.map +1 -0
- package/dist/types/src/types/styles/Durations.d.ts.map +1 -0
- package/dist/types/src/types/styles/FontSizes.d.ts.map +1 -0
- package/dist/types/src/types/styles/FontWeights.d.ts.map +1 -0
- package/dist/{src → types/src}/types/styles/Grid.d.ts +1 -1
- package/dist/types/src/types/styles/Grid.d.ts.map +1 -0
- package/dist/{src → types/src}/types/styles/Icons.d.ts.map +1 -1
- package/dist/types/src/types/styles/LineHeights.d.ts.map +1 -0
- package/dist/types/src/types/styles/MediaQueries.d.ts.map +1 -0
- package/dist/types/src/types/styles/Radiuses.d.ts.map +1 -0
- package/dist/types/src/types/styles/Sizes.d.ts.map +1 -0
- package/dist/types/src/types/styles/Spaces.d.ts.map +1 -0
- package/dist/types/src/types/styles/Weights.d.ts +3 -0
- package/dist/types/src/types/styles/Weights.d.ts.map +1 -0
- package/dist/types/src/utils/dayjs.d.ts.map +1 -0
- package/dist/types/src/utils/index.d.ts.map +1 -0
- package/dist/{src → types/src}/utils/mcGridColAdaptiveProps.d.ts +1 -1
- package/dist/types/src/utils/mcGridColAdaptiveProps.d.ts.map +1 -0
- package/dist/{src → types/src}/utils/mcTitleAdaptiveProps.d.ts +1 -1
- package/dist/types/src/utils/mcTitleAdaptiveProps.d.ts.map +1 -0
- package/package.json +6 -5
- package/dist/mediacube-ui-v2.umd.js +0 -7
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/App.vue.js +0 -54
- package/dist/src/assets/iconsSprite.svg +0 -1
- package/dist/src/assets/img/no_table_data.png +0 -0
- package/dist/src/assets/img/no_user.png +0 -0
- 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.map +0 -1
- package/dist/src/components/index.js +0 -69
- 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.map +0 -1
- package/dist/src/consts/index.js +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.map +0 -1
- package/dist/src/enums/index.js +0 -22
- 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.map +0 -1
- package/dist/src/types/index.js +0 -38
- 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.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.map +0 -1
- package/dist/src/utils/index.js +0 -2
- 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/{mediacube-ui-v2.cjs.js → mediacube-ui-v2.cjs} +0 -0
- /package/dist/{mediacube-ui-v2.es.js → mediacube-ui-v2.js} +0 -0
- /package/dist/{src → types/src}/components/index.d.ts +0 -0
- /package/dist/{src → types/src}/composables/useEncodeDecode.d.ts +0 -0
- /package/dist/{src → types/src}/composables/useHelper.d.ts +0 -0
- /package/dist/{src → types/src}/composables/useModal.d.ts +0 -0
- /package/dist/{src → types/src}/composables/useRandomNumber.d.ts +0 -0
- /package/dist/{src → types/src}/consts/index.d.ts +0 -0
- /package/dist/{src → types/src}/consts/table.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Cell.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Chip.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Datepicker.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Drawer.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Dropdown.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Filter.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Grid.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Input.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Modal.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Preview.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Radio.d.ts +0 -0
- /package/dist/{src → types/src}/enums/RadioGroup.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Select.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Sidebar.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Tab.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Title.d.ts +0 -0
- /package/dist/{src → types/src}/enums/Tooltip.d.ts +0 -0
- /package/dist/{src → types/src}/enums/index.d.ts +0 -0
- /package/dist/{src → types/src}/enums/ui/Alignment.d.ts +0 -0
- /package/dist/{src → types/src}/enums/ui/Button.d.ts +0 -0
- /package/dist/{src → types/src}/enums/ui/Directions.d.ts +0 -0
- /package/dist/{src → types/src}/enums/ui/Weights.d.ts +0 -0
- /package/dist/{src → types/src}/mocks/authUser.d.ts +0 -0
- /package/dist/{src → types/src}/mocks/categories.d.ts +0 -0
- /package/dist/{src → types/src}/mocks/menuLangs.d.ts +0 -0
- /package/dist/{src → types/src}/types/ICollapse.d.ts +0 -0
- /package/dist/{src → types/src}/types/IGrid.d.ts +0 -0
- /package/dist/{src → types/src}/types/IRoute.d.ts +0 -0
- /package/dist/{src → types/src}/types/index.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/AvatarSizes.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Colors.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Durations.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/FontSizes.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/FontWeights.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Icons.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/LineHeights.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/MediaQueries.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Radiuses.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Sizes.d.ts +0 -0
- /package/dist/{src → types/src}/types/styles/Spaces.d.ts +0 -0
- /package/dist/{src → types/src}/utils/dayjs.d.ts +0 -0
- /package/dist/{src → types/src}/utils/index.d.ts +0 -0
|
@@ -1,1056 +0,0 @@
|
|
|
1
|
-
import { Teleport } from 'vue';
|
|
2
|
-
import { McSvgIcon, McButton, McTitle, McFieldSelect, McFieldText, McTooltip, McFilterTags, McFilterTypeRange, McFilterTypeDate, McFilterTypeText, McFilterTypeRelation, McChip } from '@/components';
|
|
3
|
-
import { defaultPlaceholders } from '@/mocks/filterMocks';
|
|
4
|
-
import { computed, onBeforeUnmount, onMounted, reactive, ref, watch, nextTick } from 'vue';
|
|
5
|
-
import { useHelper, UseEncodeDecode } from '@/composables';
|
|
6
|
-
import { ButtonSize, ChipSize, FilterRelations, FilterTypes, TooltipPositions, TooltipSizes } from '@/enums';
|
|
7
|
-
import { useLocalStorage } from '@vueuse/core';
|
|
8
|
-
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
9
|
-
const helper = useHelper();
|
|
10
|
-
const emit = defineEmits();
|
|
11
|
-
const props = defineProps({
|
|
12
|
-
/**
|
|
13
|
-
* Имя фильтра
|
|
14
|
-
* (для записи данных в стор)
|
|
15
|
-
*/
|
|
16
|
-
name: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* Значение фильтра
|
|
22
|
-
*/
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: Object,
|
|
25
|
-
required: true,
|
|
26
|
-
default: () => ({ filter: null, filter_name: null })
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* Типы фильтров
|
|
30
|
-
*/
|
|
31
|
-
filters: {
|
|
32
|
-
type: Array,
|
|
33
|
-
required: true,
|
|
34
|
-
default: () => []
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* Лоадинг кнопки применить фильтр
|
|
38
|
-
*/
|
|
39
|
-
buttonConfirmIsLoading: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Использовать ли teleport (для рендеринга вне компонента)
|
|
45
|
-
* Если да то необходимо создать блок с id="filterTeleportTarget" в который будет рендериться тело фильтра
|
|
46
|
-
*/
|
|
47
|
-
useTeleport: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* Доступен ли фильтр для открытия
|
|
53
|
-
*/
|
|
54
|
-
disabledOpen: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Нужно ли учитывать часовой пояс при работе с фильтром типа Date
|
|
60
|
-
* */
|
|
61
|
-
useTimezone: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Переводы плейсхолеров и текстов
|
|
67
|
-
*/
|
|
68
|
-
placeholders: {
|
|
69
|
-
type: Object,
|
|
70
|
-
default: () => ({})
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
const isOpen = ref(false);
|
|
74
|
-
// текущие значения фильтра filter / filter_name
|
|
75
|
-
const currentValues = ref({});
|
|
76
|
-
const currentValuesName = ref({});
|
|
77
|
-
//временные значения, до нажатия на кнопку применить фильтр
|
|
78
|
-
const temporaryFilter = ref({});
|
|
79
|
-
const temporaryFilterName = ref({});
|
|
80
|
-
// текущие выбранные значения в типе фильтра
|
|
81
|
-
const currentCondition = ref({});
|
|
82
|
-
const currentConditionName = ref({});
|
|
83
|
-
// значение выбранного фильтра из списка фильтров
|
|
84
|
-
const selectedOptionFilter = ref(null);
|
|
85
|
-
const activeTag = ref(null);
|
|
86
|
-
const placeholders = reactive(helper.deepMerge(defaultPlaceholders, props.placeholders));
|
|
87
|
-
const isDisableConfirmButton = computed(() => {
|
|
88
|
-
return helper.isEqual(computedModelValue.value.filter, currentValues.value);
|
|
89
|
-
});
|
|
90
|
-
const newPresetName = ref('');
|
|
91
|
-
const activePreset = ref(null);
|
|
92
|
-
const temporaryActivePreset = ref(null);
|
|
93
|
-
const filterLocalStorage = useLocalStorage('mcFilterPresets', {});
|
|
94
|
-
const presets = ref([]);
|
|
95
|
-
const computedModelValue = computed({
|
|
96
|
-
get() {
|
|
97
|
-
const { filter = null, filter_name = null } = props.modelValue || {};
|
|
98
|
-
return {
|
|
99
|
-
filter: filter,
|
|
100
|
-
filter_name: UseEncodeDecode.decode(filter_name)
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
set(val) {
|
|
104
|
-
const { filter = null, filter_name = {} } = val || {};
|
|
105
|
-
const payload = {
|
|
106
|
-
filter: filter,
|
|
107
|
-
filter_name: UseEncodeDecode.encode(filter_name)
|
|
108
|
-
};
|
|
109
|
-
emit('update:modelValue', payload);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
// выбранный фильтр из списка фильтров
|
|
113
|
-
const currentFilter = computed(() => {
|
|
114
|
-
return props.filters.find((f) => String(f.value) === String(selectedOptionFilter.value)) || {};
|
|
115
|
-
});
|
|
116
|
-
const isCurrentComponentIsRelation = computed(() => {
|
|
117
|
-
return currentFilter.value?.type === FilterTypes.Relation;
|
|
118
|
-
});
|
|
119
|
-
const isCurrentComponentIsDate = computed(() => {
|
|
120
|
-
return currentFilter.value?.type === FilterTypes.Date;
|
|
121
|
-
});
|
|
122
|
-
const isCurrentComponentIsText = computed(() => {
|
|
123
|
-
return currentFilter.value?.type === FilterTypes.Text;
|
|
124
|
-
});
|
|
125
|
-
const isCurrentComponentIsRange = computed(() => {
|
|
126
|
-
return currentFilter.value?.type === FilterTypes.Range;
|
|
127
|
-
});
|
|
128
|
-
// отфильтрованные быстрые фильтры
|
|
129
|
-
const fastFilters = computed(() => {
|
|
130
|
-
const selected = (currentValues.value && Object.keys(currentValues.value)) || [];
|
|
131
|
-
return props.filters.filter((f) => f.type === FilterTypes.Fast && !selected.includes(f.value));
|
|
132
|
-
});
|
|
133
|
-
// отфильтрованные фильтры кроме быстрых
|
|
134
|
-
const regularFilters = computed(() => {
|
|
135
|
-
return props.filters.filter((f) => f.type !== FilterTypes.Fast);
|
|
136
|
-
});
|
|
137
|
-
const visibilityToggleVariation = computed(() => {
|
|
138
|
-
return isOpen.value || !isDisableConfirmButton.value ? 'purple-invert' : 'black-flat';
|
|
139
|
-
});
|
|
140
|
-
// видна ли кнопка добавить фильтр
|
|
141
|
-
const hasButtonAdd = computed(() => {
|
|
142
|
-
return (!helper.isEmpty(currentCondition.value) && !!currentFilter.value && currentFilter.value.type !== FilterTypes.Fast);
|
|
143
|
-
});
|
|
144
|
-
// задизэйблена ли кнопка создать, для пресетов
|
|
145
|
-
const buttonCreateIsDisable = computed(() => {
|
|
146
|
-
return !newPresetName.value.trim();
|
|
147
|
-
});
|
|
148
|
-
onMounted(() => {
|
|
149
|
-
updatePresets();
|
|
150
|
-
window.addEventListener('storage', updatePresets);
|
|
151
|
-
init();
|
|
152
|
-
});
|
|
153
|
-
onBeforeUnmount(() => {
|
|
154
|
-
window.removeEventListener('storage', updatePresets);
|
|
155
|
-
});
|
|
156
|
-
const init = () => {
|
|
157
|
-
temporaryFilter.value = computedModelValue.value.filter;
|
|
158
|
-
temporaryFilterName.value = computedModelValue.value.filter_name;
|
|
159
|
-
currentValues.value = computedModelValue.value.filter;
|
|
160
|
-
currentValuesName.value = computedModelValue.value.filter_name;
|
|
161
|
-
};
|
|
162
|
-
const updatePresets = () => {
|
|
163
|
-
presets.value = filterLocalStorage.value[props.name] || [];
|
|
164
|
-
};
|
|
165
|
-
const handlerSetFastFilter = (tag) => {
|
|
166
|
-
const { relation, value } = tag;
|
|
167
|
-
const filterValue = relation ? { [relation]: tag.default } : tag.default;
|
|
168
|
-
selectedOptionFilter.value = value;
|
|
169
|
-
handleConditionChange({ value: filterValue, valueName: tag.name });
|
|
170
|
-
handleStoreTag();
|
|
171
|
-
};
|
|
172
|
-
const handleConditionChange = ({ value, valueName }) => {
|
|
173
|
-
currentCondition.value = value;
|
|
174
|
-
currentConditionName.value = valueName || '';
|
|
175
|
-
};
|
|
176
|
-
const handleStoreTag = () => {
|
|
177
|
-
activeTag.value ? editTag() : addTag();
|
|
178
|
-
};
|
|
179
|
-
const editTag = () => {
|
|
180
|
-
switch (currentFilter.value?.type) {
|
|
181
|
-
case FilterTypes.Relation: {
|
|
182
|
-
editRelationValue();
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
default: {
|
|
186
|
-
addSimpleValue();
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
activeTag.value = null;
|
|
191
|
-
};
|
|
192
|
-
const addTag = () => {
|
|
193
|
-
switch (currentFilter.value?.type) {
|
|
194
|
-
case FilterTypes.Relation: {
|
|
195
|
-
addRelationValue();
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
default: {
|
|
199
|
-
addSimpleValue();
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
activeTag.value = null;
|
|
204
|
-
};
|
|
205
|
-
const editRelationValue = () => {
|
|
206
|
-
if (activeTag.value) {
|
|
207
|
-
const tagRelationValue = activeTag.value.relationKey === FilterRelations.Exists ? [0] : [activeTag.value.value];
|
|
208
|
-
const tagRelation = {
|
|
209
|
-
[activeTag.value.category]: {
|
|
210
|
-
[activeTag.value.relationKey]: tagRelationValue
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
const selectedRelation = {
|
|
214
|
-
[selectedOptionFilter.value]: helper.cloneDeep(currentCondition.value)
|
|
215
|
-
};
|
|
216
|
-
if (helper.isEqual(selectedRelation, tagRelation)) {
|
|
217
|
-
/**
|
|
218
|
-
* Событие по возникшей ошибке
|
|
219
|
-
*/
|
|
220
|
-
emit('error', placeholders.messages.same_filter);
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
const { category, categoryName } = getCategoriesWithNewRelation();
|
|
225
|
-
if (activeTag.value) {
|
|
226
|
-
if (activeTag.value.relationKey === FilterRelations.Exists) {
|
|
227
|
-
delete category[activeTag.value.relationKey];
|
|
228
|
-
delete categoryName[activeTag.value.relationKey];
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
const numerableValues = category[activeTag.value.relationKey];
|
|
232
|
-
const index = numerableValues?.indexOf(String(activeTag.value.value)) ?? -1;
|
|
233
|
-
if (index !== -1) {
|
|
234
|
-
category?.[activeTag.value.relationKey]?.splice(index, 1);
|
|
235
|
-
helper.isEmpty(category[activeTag.value.relationKey]) && delete category[activeTag.value.relationKey];
|
|
236
|
-
delete categoryName?.[activeTag.value.relationKey]?.[activeTag.value.value];
|
|
237
|
-
helper.isEmpty(categoryName[activeTag.value.relationKey]) && delete categoryName[activeTag.value.relationKey];
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
setFilterValues(category, categoryName);
|
|
242
|
-
};
|
|
243
|
-
const addRelationValue = () => {
|
|
244
|
-
const { category, categoryName } = getCategoriesWithNewRelation();
|
|
245
|
-
setFilterValues(category, categoryName);
|
|
246
|
-
};
|
|
247
|
-
const getCategoriesWithNewRelation = () => {
|
|
248
|
-
const relationKeys = Object.keys(currentCondition.value);
|
|
249
|
-
const values = helper.cloneDeep(currentValues.value);
|
|
250
|
-
const valuesName = helper.cloneDeep(currentValuesName.value);
|
|
251
|
-
const selectedCategory = values[selectedOptionFilter.value];
|
|
252
|
-
const selectedCategoryName = valuesName[selectedOptionFilter.value];
|
|
253
|
-
selectedCategory &&
|
|
254
|
-
relationKeys.forEach((k) => {
|
|
255
|
-
if (k === FilterRelations.Exists) {
|
|
256
|
-
selectedCategory[FilterRelations.Exists] = 0;
|
|
257
|
-
selectedCategoryName[FilterRelations.Exists] = null;
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
//@ts-ignore
|
|
261
|
-
const conditionValue = currentCondition.value[k];
|
|
262
|
-
//@ts-ignore
|
|
263
|
-
const conditionName = currentConditionName.value[k];
|
|
264
|
-
if (k in selectedCategory) {
|
|
265
|
-
//@ts-ignore
|
|
266
|
-
selectedCategory[k] = helper.uniqWith([...selectedCategory[k], ...conditionValue], helper.isEqual);
|
|
267
|
-
selectedCategoryName[k] = {
|
|
268
|
-
...selectedCategoryName[k],
|
|
269
|
-
...conditionName
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
selectedCategory[k] = conditionValue;
|
|
274
|
-
selectedCategoryName[k] = conditionName;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
return { category: selectedCategory, categoryName: selectedCategoryName };
|
|
279
|
-
};
|
|
280
|
-
const setFilterValues = (val, valName) => {
|
|
281
|
-
const newVal = {
|
|
282
|
-
...currentValues.value,
|
|
283
|
-
[selectedOptionFilter.value]: val || currentCondition.value
|
|
284
|
-
};
|
|
285
|
-
if (helper.isEqual(currentValues.value, newVal)) {
|
|
286
|
-
/**
|
|
287
|
-
* Событие по возникшей ошибке
|
|
288
|
-
*/
|
|
289
|
-
emit('error', placeholders.messages.same_filter);
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
currentValues.value = newVal;
|
|
293
|
-
currentValuesName.value = {
|
|
294
|
-
...currentValuesName.value,
|
|
295
|
-
[selectedOptionFilter.value]: valName || currentConditionName.value
|
|
296
|
-
};
|
|
297
|
-
setEmptyCondition();
|
|
298
|
-
};
|
|
299
|
-
const setEmptyCondition = () => {
|
|
300
|
-
switch (currentFilter.value?.type) {
|
|
301
|
-
case FilterTypes.Text:
|
|
302
|
-
case FilterTypes.Relation:
|
|
303
|
-
handleConditionChange({ value: '' });
|
|
304
|
-
break;
|
|
305
|
-
case FilterTypes.Range:
|
|
306
|
-
case FilterTypes.Date:
|
|
307
|
-
handleConditionChange({ value: {} });
|
|
308
|
-
break;
|
|
309
|
-
default:
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
const addSimpleValue = () => {
|
|
314
|
-
if (currentFilter.value?.type === FilterTypes.Range && Object.keys(currentCondition.value || {}).length === 2) {
|
|
315
|
-
const _currentCondition = currentCondition.value;
|
|
316
|
-
if (_currentCondition.more && _currentCondition.less && _currentCondition.more > _currentCondition.less) {
|
|
317
|
-
/**
|
|
318
|
-
* Событие по возникшей ошибке
|
|
319
|
-
*/
|
|
320
|
-
emit('error', placeholders.messages.more_than);
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
setFilterValues(currentCondition.value, currentCondition.value);
|
|
325
|
-
};
|
|
326
|
-
const onTagsChange = (val) => {
|
|
327
|
-
activeTag.value = null;
|
|
328
|
-
if (helper.isEmpty(val)) {
|
|
329
|
-
currentValues.value = {};
|
|
330
|
-
currentValuesName.value = {};
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
currentValuesName.value = helper.cloneDeep(val);
|
|
334
|
-
setRelationsToArrayFormat(val);
|
|
335
|
-
};
|
|
336
|
-
const handleClearAllTags = () => {
|
|
337
|
-
temporaryFilter.value = {};
|
|
338
|
-
temporaryFilterName.value = {};
|
|
339
|
-
currentValues.value = {};
|
|
340
|
-
currentValuesName.value = {};
|
|
341
|
-
/**
|
|
342
|
-
* Событие по очистке выбранных фильтров из поля
|
|
343
|
-
*/
|
|
344
|
-
emit('clear', placeholders.messages.accidentally_cleared);
|
|
345
|
-
};
|
|
346
|
-
const setRelationsToArrayFormat = (obj) => {
|
|
347
|
-
const newObj = helper.cloneDeep(obj);
|
|
348
|
-
const relationKeys = [FilterRelations.Is, FilterRelations.IsNot];
|
|
349
|
-
for (let [categoryKey, categoryVal] of Object.entries(obj)) {
|
|
350
|
-
if (categoryVal.constructor === Object) {
|
|
351
|
-
for (let [key, val] of Object.entries(categoryVal)) {
|
|
352
|
-
if (relationKeys.includes(key) && val?.constructor === Object) {
|
|
353
|
-
newObj[categoryKey][key] = [...Object.keys(val)];
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
currentValues.value = newObj;
|
|
359
|
-
};
|
|
360
|
-
const onTagClick = (tag) => {
|
|
361
|
-
activeTag.value = (helper.isEqual(activeTag.value, tag) ? null : tag);
|
|
362
|
-
if (!activeTag.value) {
|
|
363
|
-
setEmptyCondition();
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
|
-
let condition = null;
|
|
367
|
-
let conditionName = null;
|
|
368
|
-
if (tag.relationKey) {
|
|
369
|
-
condition = {
|
|
370
|
-
[tag.relationKey]: tag.relationKey === FilterRelations.Exists ? [0] : [String(tag.value)]
|
|
371
|
-
};
|
|
372
|
-
conditionName = {
|
|
373
|
-
[tag.relationKey]: tag.relationKey === FilterRelations.Exists ? [0] : { [tag.value]: tag.title }
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
condition = tag.value?.constructor === Object ? tag.value : String(tag.value);
|
|
378
|
-
conditionName = tag.value;
|
|
379
|
-
}
|
|
380
|
-
selectedOptionFilter.value = tag.category;
|
|
381
|
-
nextTick(() => {
|
|
382
|
-
currentCondition.value = condition;
|
|
383
|
-
currentConditionName.value = conditionName;
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
const handleConfirm = () => {
|
|
387
|
-
/**
|
|
388
|
-
* Событие по изменению значения фильтра
|
|
389
|
-
*/
|
|
390
|
-
computedModelValue.value = {
|
|
391
|
-
filter: currentValues.value,
|
|
392
|
-
filter_name: currentValuesName.value
|
|
393
|
-
};
|
|
394
|
-
const payload = {
|
|
395
|
-
filter: currentValues.value,
|
|
396
|
-
filter_name: UseEncodeDecode.encode(currentValuesName.value)
|
|
397
|
-
};
|
|
398
|
-
emit('confirm', payload);
|
|
399
|
-
};
|
|
400
|
-
/**
|
|
401
|
-
* PRESETS BELOW
|
|
402
|
-
* */
|
|
403
|
-
const handlePresetMouseUp = (preset) => {
|
|
404
|
-
if (activePreset.value && activePreset.value.name === preset.name) {
|
|
405
|
-
activePreset.value = null;
|
|
406
|
-
currentValues.value = {};
|
|
407
|
-
currentValuesName.value = {};
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
activePreset.value = preset;
|
|
411
|
-
currentValues.value = helper.cloneDeep(preset.filter);
|
|
412
|
-
currentValuesName.value = helper.cloneDeep(preset.filter_name);
|
|
413
|
-
}
|
|
414
|
-
if (!isOpen.value) {
|
|
415
|
-
handleConfirm();
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
const handleDeletePreset = (preset) => {
|
|
419
|
-
const filteredPresets = filterLocalStorage.value[props.name]?.filter((p) => preset && p.name !== preset.name);
|
|
420
|
-
filterLocalStorage.value[props.name] = [...filteredPresets];
|
|
421
|
-
temporaryActivePreset.value = helper.cloneDeep(activePreset.value);
|
|
422
|
-
activePreset.value = null;
|
|
423
|
-
currentValues.value = {};
|
|
424
|
-
currentValuesName.value = {};
|
|
425
|
-
/**
|
|
426
|
-
* Событие по удалению пресета
|
|
427
|
-
*/
|
|
428
|
-
emit('delete-preset', placeholders.messages.accidentally_deleted);
|
|
429
|
-
};
|
|
430
|
-
const handleCreatePreset = () => {
|
|
431
|
-
if (filterLocalStorage.value[props.name] &&
|
|
432
|
-
filterLocalStorage.value[props.name].find((p) => p.name?.trim() === newPresetName.value?.trim())) {
|
|
433
|
-
emit('error', placeholders.messages.same_preset_name);
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
const preset = {
|
|
437
|
-
name: newPresetName.value?.trim(),
|
|
438
|
-
filter: helper.cloneDeep(currentValues.value),
|
|
439
|
-
filter_name: helper.cloneDeep(currentValuesName.value)
|
|
440
|
-
};
|
|
441
|
-
const currentPreset = filterLocalStorage.value[props.name];
|
|
442
|
-
if (currentPreset) {
|
|
443
|
-
filterLocalStorage.value[props.name] = [preset, ...currentPreset];
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
filterLocalStorage.value[props.name] = [preset];
|
|
447
|
-
}
|
|
448
|
-
newPresetName.value = '';
|
|
449
|
-
activePreset.value = { ...preset };
|
|
450
|
-
};
|
|
451
|
-
const getPresetButtonVariation = (preset) => {
|
|
452
|
-
return activePreset.value && activePreset.value.name === preset.name ? 'purple-invert' : 'gray-outline';
|
|
453
|
-
};
|
|
454
|
-
watch(() => props.modelValue, (val) => {
|
|
455
|
-
const filter_value = val || {
|
|
456
|
-
filter: null,
|
|
457
|
-
filter_name: null
|
|
458
|
-
};
|
|
459
|
-
currentValues.value = { ...filter_value.filter };
|
|
460
|
-
if (filter_value.filter_name) {
|
|
461
|
-
try {
|
|
462
|
-
currentValuesName.value = UseEncodeDecode.decode(filter_value.filter_name);
|
|
463
|
-
}
|
|
464
|
-
catch (e) {
|
|
465
|
-
console.error(`Can't parse filters`);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}, { deep: true });
|
|
469
|
-
watch(() => currentFilter.value, () => {
|
|
470
|
-
handleConditionChange({ value: '' });
|
|
471
|
-
}, { deep: true });
|
|
472
|
-
watch(() => currentValues.value, () => {
|
|
473
|
-
if (activePreset.value) {
|
|
474
|
-
const mappedPresets = filterLocalStorage.value[props.name].map((p) => {
|
|
475
|
-
if (activePreset.value && p.name === activePreset.value.name) {
|
|
476
|
-
return {
|
|
477
|
-
name: p.name,
|
|
478
|
-
filter: helper.cloneDeep(currentValues.value),
|
|
479
|
-
filter_name: helper.cloneDeep(currentValuesName.value)
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
return p;
|
|
483
|
-
});
|
|
484
|
-
filterLocalStorage.value[props.name] = [...mappedPresets];
|
|
485
|
-
}
|
|
486
|
-
}); /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
487
|
-
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
488
|
-
props: {
|
|
489
|
-
/**
|
|
490
|
-
* Имя фильтра
|
|
491
|
-
* (для записи данных в стор)
|
|
492
|
-
*/
|
|
493
|
-
name: {
|
|
494
|
-
type: String,
|
|
495
|
-
required: true
|
|
496
|
-
},
|
|
497
|
-
/**
|
|
498
|
-
* Значение фильтра
|
|
499
|
-
*/
|
|
500
|
-
modelValue: {
|
|
501
|
-
type: Object,
|
|
502
|
-
required: true,
|
|
503
|
-
default: () => ({ filter: null, filter_name: null })
|
|
504
|
-
},
|
|
505
|
-
/**
|
|
506
|
-
* Типы фильтров
|
|
507
|
-
*/
|
|
508
|
-
filters: {
|
|
509
|
-
type: Array,
|
|
510
|
-
required: true,
|
|
511
|
-
default: () => []
|
|
512
|
-
},
|
|
513
|
-
/**
|
|
514
|
-
* Лоадинг кнопки применить фильтр
|
|
515
|
-
*/
|
|
516
|
-
buttonConfirmIsLoading: {
|
|
517
|
-
type: Boolean,
|
|
518
|
-
default: false
|
|
519
|
-
},
|
|
520
|
-
/**
|
|
521
|
-
* Использовать ли teleport (для рендеринга вне компонента)
|
|
522
|
-
* Если да то необходимо создать блок с id="filterTeleportTarget" в который будет рендериться тело фильтра
|
|
523
|
-
*/
|
|
524
|
-
useTeleport: {
|
|
525
|
-
type: Boolean,
|
|
526
|
-
default: false
|
|
527
|
-
},
|
|
528
|
-
/**
|
|
529
|
-
* Доступен ли фильтр для открытия
|
|
530
|
-
*/
|
|
531
|
-
disabledOpen: {
|
|
532
|
-
type: Boolean,
|
|
533
|
-
default: false
|
|
534
|
-
},
|
|
535
|
-
/**
|
|
536
|
-
* Нужно ли учитывать часовой пояс при работе с фильтром типа Date
|
|
537
|
-
* */
|
|
538
|
-
useTimezone: {
|
|
539
|
-
type: Boolean,
|
|
540
|
-
default: false
|
|
541
|
-
},
|
|
542
|
-
/**
|
|
543
|
-
* Переводы плейсхолеров и текстов
|
|
544
|
-
*/
|
|
545
|
-
placeholders: {
|
|
546
|
-
type: Object,
|
|
547
|
-
default: () => ({})
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
__typeEmits: {},
|
|
551
|
-
});
|
|
552
|
-
;
|
|
553
|
-
let __VLS_functionalComponentProps;
|
|
554
|
-
function __VLS_template() {
|
|
555
|
-
const __VLS_ctx = {};
|
|
556
|
-
const __VLS_localComponents = {
|
|
557
|
-
...{},
|
|
558
|
-
...{},
|
|
559
|
-
...__VLS_ctx,
|
|
560
|
-
};
|
|
561
|
-
let __VLS_components;
|
|
562
|
-
const __VLS_localDirectives = {
|
|
563
|
-
...{},
|
|
564
|
-
...__VLS_ctx,
|
|
565
|
-
};
|
|
566
|
-
let __VLS_directives;
|
|
567
|
-
let __VLS_styleScopedClasses;
|
|
568
|
-
// CSS variable injection
|
|
569
|
-
// CSS variable injection end
|
|
570
|
-
let __VLS_resolvedLocalAndGlobalComponents;
|
|
571
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter") }, });
|
|
572
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__header") }, });
|
|
573
|
-
const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.McTooltip;
|
|
574
|
-
/** @type { [typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, ] } */
|
|
575
|
-
// @ts-ignore
|
|
576
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ content: ((__VLS_ctx.placeholders.main_tooltip)), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }));
|
|
577
|
-
const __VLS_2 = __VLS_1({ content: ((__VLS_ctx.placeholders.main_tooltip)), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
578
|
-
const __VLS_6 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
579
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
580
|
-
// @ts-ignore
|
|
581
|
-
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({ ...{ 'onClick': {} }, variation: ((__VLS_ctx.visibilityToggleVariation)), disabled: ((__VLS_ctx.disabledOpen)), bgFlat: ((__VLS_ctx.isOpen)), size: ((__VLS_ctx.ButtonSize.MCompact)), }));
|
|
582
|
-
const __VLS_8 = __VLS_7({ ...{ 'onClick': {} }, variation: ((__VLS_ctx.visibilityToggleVariation)), disabled: ((__VLS_ctx.disabledOpen)), bgFlat: ((__VLS_ctx.isOpen)), size: ((__VLS_ctx.ButtonSize.MCompact)), }, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
583
|
-
let __VLS_12;
|
|
584
|
-
const __VLS_13 = {
|
|
585
|
-
onClick: (...[$event]) => {
|
|
586
|
-
__VLS_ctx.isOpen = !__VLS_ctx.isOpen;
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
let __VLS_9;
|
|
590
|
-
let __VLS_10;
|
|
591
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
592
|
-
{
|
|
593
|
-
const { "icon-prepend": __VLS_thisSlot } = __VLS_nonNullable(__VLS_11.slots);
|
|
594
|
-
const __VLS_14 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
595
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
596
|
-
// @ts-ignore
|
|
597
|
-
const __VLS_15 = __VLS_asFunctionalComponent(__VLS_14, new __VLS_14({ name: ("filter_list"), }));
|
|
598
|
-
const __VLS_16 = __VLS_15({ name: ("filter_list"), }, ...__VLS_functionalComponentArgsRest(__VLS_15));
|
|
599
|
-
}
|
|
600
|
-
var __VLS_11;
|
|
601
|
-
__VLS_nonNullable(__VLS_5.slots).default;
|
|
602
|
-
var __VLS_5;
|
|
603
|
-
if (__VLS_ctx.presets) {
|
|
604
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__presets") }, });
|
|
605
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__presets-inner") }, });
|
|
606
|
-
for (const [preset] of __VLS_getVForSourceType((__VLS_ctx.presets))) {
|
|
607
|
-
const __VLS_20 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
608
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
609
|
-
// @ts-ignore
|
|
610
|
-
const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({ ...{ 'onMouseup': {} }, key: ((preset.name)), variation: ((__VLS_ctx.getPresetButtonVariation(preset))), secondaryColor: ("purple"), }));
|
|
611
|
-
const __VLS_22 = __VLS_21({ ...{ 'onMouseup': {} }, key: ((preset.name)), variation: ((__VLS_ctx.getPresetButtonVariation(preset))), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
612
|
-
let __VLS_26;
|
|
613
|
-
const __VLS_27 = {
|
|
614
|
-
onMouseup: (() => __VLS_ctx.handlePresetMouseUp(preset))
|
|
615
|
-
};
|
|
616
|
-
let __VLS_23;
|
|
617
|
-
let __VLS_24;
|
|
618
|
-
(preset.name);
|
|
619
|
-
__VLS_nonNullable(__VLS_25.slots).default;
|
|
620
|
-
var __VLS_25;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
if (__VLS_ctx.isOpen) {
|
|
624
|
-
const __VLS_28 = ((__VLS_ctx.useTeleport ? __VLS_ctx.Teleport : 'div'));
|
|
625
|
-
// @ts-ignore
|
|
626
|
-
const __VLS_29 = __VLS_asFunctionalComponent(__VLS_28, new __VLS_28({ to: ("#filterTeleportTarget"), }));
|
|
627
|
-
const __VLS_30 = __VLS_29({ to: ("#filterTeleportTarget"), }, ...__VLS_functionalComponentArgsRest(__VLS_29));
|
|
628
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body") }, });
|
|
629
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body-top") }, });
|
|
630
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body-top-left") }, });
|
|
631
|
-
const __VLS_34 = __VLS_resolvedLocalAndGlobalComponents.McFieldSelect;
|
|
632
|
-
/** @type { [typeof __VLS_components.McFieldSelect, typeof __VLS_components.mcFieldSelect, ] } */
|
|
633
|
-
// @ts-ignore
|
|
634
|
-
const __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({ modelValue: ((__VLS_ctx.selectedOptionFilter)), title: ((__VLS_ctx.placeholders.value)), options: ((__VLS_ctx.regularFilters)), placeholder: ((__VLS_ctx.placeholders.choose)), hideSelected: ((false)), ...{ class: ("mc-filter__main-select") }, name: ("filter_value_name"), }));
|
|
635
|
-
const __VLS_36 = __VLS_35({ modelValue: ((__VLS_ctx.selectedOptionFilter)), title: ((__VLS_ctx.placeholders.value)), options: ((__VLS_ctx.regularFilters)), placeholder: ((__VLS_ctx.placeholders.choose)), hideSelected: ((false)), ...{ class: ("mc-filter__main-select") }, name: ("filter_value_name"), }, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
636
|
-
if (__VLS_ctx.currentFilter) {
|
|
637
|
-
if (__VLS_ctx.isCurrentComponentIsRelation) {
|
|
638
|
-
const __VLS_40 = __VLS_resolvedLocalAndGlobalComponents.McFilterTypeRelation;
|
|
639
|
-
/** @type { [typeof __VLS_components.McFilterTypeRelation, typeof __VLS_components.mcFilterTypeRelation, ] } */
|
|
640
|
-
// @ts-ignore
|
|
641
|
-
const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }));
|
|
642
|
-
const __VLS_42 = __VLS_41({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
643
|
-
let __VLS_46;
|
|
644
|
-
const __VLS_47 = {
|
|
645
|
-
'onUpdate:modelValue': (__VLS_ctx.handleConditionChange)
|
|
646
|
-
};
|
|
647
|
-
let __VLS_43;
|
|
648
|
-
let __VLS_44;
|
|
649
|
-
var __VLS_45;
|
|
650
|
-
}
|
|
651
|
-
else if (__VLS_ctx.isCurrentComponentIsDate) {
|
|
652
|
-
const __VLS_48 = __VLS_resolvedLocalAndGlobalComponents.McFilterTypeDate;
|
|
653
|
-
/** @type { [typeof __VLS_components.McFilterTypeDate, typeof __VLS_components.mcFilterTypeDate, ] } */
|
|
654
|
-
// @ts-ignore
|
|
655
|
-
const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }));
|
|
656
|
-
const __VLS_50 = __VLS_49({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }, ...__VLS_functionalComponentArgsRest(__VLS_49));
|
|
657
|
-
let __VLS_54;
|
|
658
|
-
const __VLS_55 = {
|
|
659
|
-
'onUpdate:modelValue': (__VLS_ctx.handleConditionChange)
|
|
660
|
-
};
|
|
661
|
-
let __VLS_51;
|
|
662
|
-
let __VLS_52;
|
|
663
|
-
var __VLS_53;
|
|
664
|
-
}
|
|
665
|
-
else if (__VLS_ctx.isCurrentComponentIsText) {
|
|
666
|
-
const __VLS_56 = __VLS_resolvedLocalAndGlobalComponents.McFilterTypeText;
|
|
667
|
-
/** @type { [typeof __VLS_components.McFilterTypeText, typeof __VLS_components.mcFilterTypeText, ] } */
|
|
668
|
-
// @ts-ignore
|
|
669
|
-
const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }));
|
|
670
|
-
const __VLS_58 = __VLS_57({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }, ...__VLS_functionalComponentArgsRest(__VLS_57));
|
|
671
|
-
let __VLS_62;
|
|
672
|
-
const __VLS_63 = {
|
|
673
|
-
'onUpdate:modelValue': (__VLS_ctx.handleConditionChange)
|
|
674
|
-
};
|
|
675
|
-
let __VLS_59;
|
|
676
|
-
let __VLS_60;
|
|
677
|
-
var __VLS_61;
|
|
678
|
-
}
|
|
679
|
-
else if (__VLS_ctx.isCurrentComponentIsRange) {
|
|
680
|
-
const __VLS_64 = __VLS_resolvedLocalAndGlobalComponents.McFilterTypeRange;
|
|
681
|
-
/** @type { [typeof __VLS_components.McFilterTypeRange, typeof __VLS_components.mcFilterTypeRange, ] } */
|
|
682
|
-
// @ts-ignore
|
|
683
|
-
const __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }));
|
|
684
|
-
const __VLS_66 = __VLS_65({ ...{ 'onUpdate:modelValue': {} }, modelValue: __VLS_ctx.currentCondition, filter: __VLS_ctx.currentFilter, placeholders: ((__VLS_ctx.placeholders)), currentValues: ((!__VLS_ctx.activeTag ? __VLS_ctx.currentValues : {})), useTimezone: ((props.useTimezone)), }, ...__VLS_functionalComponentArgsRest(__VLS_65));
|
|
685
|
-
let __VLS_70;
|
|
686
|
-
const __VLS_71 = {
|
|
687
|
-
'onUpdate:modelValue': (__VLS_ctx.handleConditionChange)
|
|
688
|
-
};
|
|
689
|
-
let __VLS_67;
|
|
690
|
-
let __VLS_68;
|
|
691
|
-
var __VLS_69;
|
|
692
|
-
}
|
|
693
|
-
if (__VLS_ctx.hasButtonAdd) {
|
|
694
|
-
const __VLS_72 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
695
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
696
|
-
// @ts-ignore
|
|
697
|
-
const __VLS_73 = __VLS_asFunctionalComponent(__VLS_72, new __VLS_72({ ...{ 'onClick': {} }, variation: ("purple-outline"), }));
|
|
698
|
-
const __VLS_74 = __VLS_73({ ...{ 'onClick': {} }, variation: ("purple-outline"), }, ...__VLS_functionalComponentArgsRest(__VLS_73));
|
|
699
|
-
let __VLS_78;
|
|
700
|
-
const __VLS_79 = {
|
|
701
|
-
onClick: (__VLS_ctx.handleStoreTag)
|
|
702
|
-
};
|
|
703
|
-
let __VLS_75;
|
|
704
|
-
let __VLS_76;
|
|
705
|
-
(__VLS_ctx.placeholders.actions[__VLS_ctx.activeTag ? 'save' : 'add']);
|
|
706
|
-
__VLS_nonNullable(__VLS_77.slots).default;
|
|
707
|
-
var __VLS_77;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
const __VLS_80 = __VLS_resolvedLocalAndGlobalComponents.McFilterTags;
|
|
711
|
-
/** @type { [typeof __VLS_components.McFilterTags, typeof __VLS_components.mcFilterTags, ] } */
|
|
712
|
-
// @ts-ignore
|
|
713
|
-
const __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({ ...{ 'onTagChange': {} }, ...{ 'onTagClick': {} }, ...{ 'onClear': {} }, modelValue: ((__VLS_ctx.currentValuesName)), filters: ((__VLS_ctx.filters)), placeholders: ((__VLS_ctx.placeholders)), activeTag: ((__VLS_ctx.activeTag)), useTimezone: ((props.useTimezone)), }));
|
|
714
|
-
const __VLS_82 = __VLS_81({ ...{ 'onTagChange': {} }, ...{ 'onTagClick': {} }, ...{ 'onClear': {} }, modelValue: ((__VLS_ctx.currentValuesName)), filters: ((__VLS_ctx.filters)), placeholders: ((__VLS_ctx.placeholders)), activeTag: ((__VLS_ctx.activeTag)), useTimezone: ((props.useTimezone)), }, ...__VLS_functionalComponentArgsRest(__VLS_81));
|
|
715
|
-
let __VLS_86;
|
|
716
|
-
const __VLS_87 = {
|
|
717
|
-
onTagChange: ((payload) => __VLS_ctx.onTagsChange(payload))
|
|
718
|
-
};
|
|
719
|
-
const __VLS_88 = {
|
|
720
|
-
onTagClick: ((payload) => __VLS_ctx.onTagClick(payload))
|
|
721
|
-
};
|
|
722
|
-
const __VLS_89 = {
|
|
723
|
-
onClear: (__VLS_ctx.handleClearAllTags)
|
|
724
|
-
};
|
|
725
|
-
let __VLS_83;
|
|
726
|
-
let __VLS_84;
|
|
727
|
-
var __VLS_85;
|
|
728
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.section, __VLS_intrinsicElements.section)({ ...{ class: ("mc-filter__body-fast-tags-wrapper") }, });
|
|
729
|
-
for (const [tag, i] of __VLS_getVForSourceType((__VLS_ctx.fastFilters))) {
|
|
730
|
-
const __VLS_90 = __VLS_resolvedLocalAndGlobalComponents.McTooltip;
|
|
731
|
-
/** @type { [typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, ] } */
|
|
732
|
-
// @ts-ignore
|
|
733
|
-
const __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90({ key: ((i)), content: ((tag.description || '')), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }));
|
|
734
|
-
const __VLS_92 = __VLS_91({ key: ((i)), content: ((tag.description || '')), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_91));
|
|
735
|
-
const __VLS_96 = __VLS_resolvedLocalAndGlobalComponents.McChip;
|
|
736
|
-
/** @type { [typeof __VLS_components.McChip, typeof __VLS_components.mcChip, typeof __VLS_components.McChip, typeof __VLS_components.mcChip, ] } */
|
|
737
|
-
// @ts-ignore
|
|
738
|
-
const __VLS_97 = __VLS_asFunctionalComponent(__VLS_96, new __VLS_96({ ...{ 'onClick': {} }, variation: ("gray-outline"), textColor: ("black"), size: ((__VLS_ctx.ChipSize.S)), }));
|
|
739
|
-
const __VLS_98 = __VLS_97({ ...{ 'onClick': {} }, variation: ("gray-outline"), textColor: ("black"), size: ((__VLS_ctx.ChipSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_97));
|
|
740
|
-
let __VLS_102;
|
|
741
|
-
const __VLS_103 = {
|
|
742
|
-
onClick: (...[$event]) => {
|
|
743
|
-
if (!((__VLS_ctx.isOpen)))
|
|
744
|
-
return;
|
|
745
|
-
__VLS_ctx.handlerSetFastFilter(tag);
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
let __VLS_99;
|
|
749
|
-
let __VLS_100;
|
|
750
|
-
(tag.name);
|
|
751
|
-
__VLS_nonNullable(__VLS_101.slots).default;
|
|
752
|
-
var __VLS_101;
|
|
753
|
-
__VLS_nonNullable(__VLS_95.slots).default;
|
|
754
|
-
var __VLS_95;
|
|
755
|
-
}
|
|
756
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body-bottom") }, });
|
|
757
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body-bottom-left") }, });
|
|
758
|
-
const __VLS_104 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
759
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
760
|
-
// @ts-ignore
|
|
761
|
-
const __VLS_105 = __VLS_asFunctionalComponent(__VLS_104, new __VLS_104({ ...{ 'onClick': {} }, disabled: ((__VLS_ctx.isDisableConfirmButton)), loading: ((__VLS_ctx.buttonConfirmIsLoading)), size: ((__VLS_ctx.ButtonSize.S)), }));
|
|
762
|
-
const __VLS_106 = __VLS_105({ ...{ 'onClick': {} }, disabled: ((__VLS_ctx.isDisableConfirmButton)), loading: ((__VLS_ctx.buttonConfirmIsLoading)), size: ((__VLS_ctx.ButtonSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_105));
|
|
763
|
-
let __VLS_110;
|
|
764
|
-
const __VLS_111 = {
|
|
765
|
-
onClick: (__VLS_ctx.handleConfirm)
|
|
766
|
-
};
|
|
767
|
-
let __VLS_107;
|
|
768
|
-
let __VLS_108;
|
|
769
|
-
(__VLS_ctx.placeholders.actions.confirm);
|
|
770
|
-
__VLS_nonNullable(__VLS_109.slots).default;
|
|
771
|
-
var __VLS_109;
|
|
772
|
-
if (__VLS_ctx.activePreset) {
|
|
773
|
-
const __VLS_112 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
774
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
775
|
-
// @ts-ignore
|
|
776
|
-
const __VLS_113 = __VLS_asFunctionalComponent(__VLS_112, new __VLS_112({ ...{ 'onClick': {} }, variation: ("red-outline"), size: ((__VLS_ctx.ButtonSize.S)), }));
|
|
777
|
-
const __VLS_114 = __VLS_113({ ...{ 'onClick': {} }, variation: ("red-outline"), size: ((__VLS_ctx.ButtonSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_113));
|
|
778
|
-
let __VLS_118;
|
|
779
|
-
const __VLS_119 = {
|
|
780
|
-
onClick: (() => __VLS_ctx.handleDeletePreset(__VLS_ctx.activePreset))
|
|
781
|
-
};
|
|
782
|
-
let __VLS_115;
|
|
783
|
-
let __VLS_116;
|
|
784
|
-
(__VLS_ctx.placeholders.actions.delete_preset);
|
|
785
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
786
|
-
{
|
|
787
|
-
const { "icon-append": __VLS_thisSlot } = __VLS_nonNullable(__VLS_117.slots);
|
|
788
|
-
const __VLS_120 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
789
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
790
|
-
// @ts-ignore
|
|
791
|
-
const __VLS_121 = __VLS_asFunctionalComponent(__VLS_120, new __VLS_120({ name: ("delete"), size: ("250"), color: ("red"), }));
|
|
792
|
-
const __VLS_122 = __VLS_121({ name: ("delete"), size: ("250"), color: ("red"), }, ...__VLS_functionalComponentArgsRest(__VLS_121));
|
|
793
|
-
}
|
|
794
|
-
var __VLS_117;
|
|
795
|
-
}
|
|
796
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter__body-bottom-right") }, });
|
|
797
|
-
const __VLS_126 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
|
|
798
|
-
/** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
|
|
799
|
-
// @ts-ignore
|
|
800
|
-
const __VLS_127 = __VLS_asFunctionalComponent(__VLS_126, new __VLS_126({ ...{ class: ("mc-filter__preset-input-title") }, }));
|
|
801
|
-
const __VLS_128 = __VLS_127({ ...{ class: ("mc-filter__preset-input-title") }, }, ...__VLS_functionalComponentArgsRest(__VLS_127));
|
|
802
|
-
(__VLS_ctx.placeholders.create_preset);
|
|
803
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
804
|
-
{
|
|
805
|
-
const { "icon-append": __VLS_thisSlot } = __VLS_nonNullable(__VLS_131.slots);
|
|
806
|
-
const __VLS_132 = __VLS_resolvedLocalAndGlobalComponents.McTooltip;
|
|
807
|
-
/** @type { [typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, ] } */
|
|
808
|
-
// @ts-ignore
|
|
809
|
-
const __VLS_133 = __VLS_asFunctionalComponent(__VLS_132, new __VLS_132({ content: ((__VLS_ctx.placeholders.enter_preset_tooltip)), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }));
|
|
810
|
-
const __VLS_134 = __VLS_133({ content: ((__VLS_ctx.placeholders.enter_preset_tooltip)), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_133));
|
|
811
|
-
const __VLS_138 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
812
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
813
|
-
// @ts-ignore
|
|
814
|
-
const __VLS_139 = __VLS_asFunctionalComponent(__VLS_138, new __VLS_138({ name: ("help_solid"), size: ("250"), color: ("outline-gray"), }));
|
|
815
|
-
const __VLS_140 = __VLS_139({ name: ("help_solid"), size: ("250"), color: ("outline-gray"), }, ...__VLS_functionalComponentArgsRest(__VLS_139));
|
|
816
|
-
__VLS_nonNullable(__VLS_137.slots).default;
|
|
817
|
-
var __VLS_137;
|
|
818
|
-
}
|
|
819
|
-
var __VLS_131;
|
|
820
|
-
const __VLS_144 = __VLS_resolvedLocalAndGlobalComponents.McFieldText;
|
|
821
|
-
/** @type { [typeof __VLS_components.McFieldText, typeof __VLS_components.mcFieldText, ] } */
|
|
822
|
-
// @ts-ignore
|
|
823
|
-
const __VLS_145 = __VLS_asFunctionalComponent(__VLS_144, new __VLS_144({ modelValue: ((__VLS_ctx.newPresetName)), placeholder: ((__VLS_ctx.placeholders.enter_preset_name)), maxLength: ((20)), ...{ class: ("mc-filter__preset-input") }, name: ("preset_name"), }));
|
|
824
|
-
const __VLS_146 = __VLS_145({ modelValue: ((__VLS_ctx.newPresetName)), placeholder: ((__VLS_ctx.placeholders.enter_preset_name)), maxLength: ((20)), ...{ class: ("mc-filter__preset-input") }, name: ("preset_name"), }, ...__VLS_functionalComponentArgsRest(__VLS_145));
|
|
825
|
-
const __VLS_150 = __VLS_resolvedLocalAndGlobalComponents.McButton;
|
|
826
|
-
/** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
|
|
827
|
-
// @ts-ignore
|
|
828
|
-
const __VLS_151 = __VLS_asFunctionalComponent(__VLS_150, new __VLS_150({ ...{ 'onClick': {} }, disabled: ((__VLS_ctx.buttonCreateIsDisable)), variation: ("purple-outline"), size: ((__VLS_ctx.ButtonSize.S)), }));
|
|
829
|
-
const __VLS_152 = __VLS_151({ ...{ 'onClick': {} }, disabled: ((__VLS_ctx.buttonCreateIsDisable)), variation: ("purple-outline"), size: ((__VLS_ctx.ButtonSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_151));
|
|
830
|
-
let __VLS_156;
|
|
831
|
-
const __VLS_157 = {
|
|
832
|
-
onClick: (__VLS_ctx.handleCreatePreset)
|
|
833
|
-
};
|
|
834
|
-
let __VLS_153;
|
|
835
|
-
let __VLS_154;
|
|
836
|
-
(__VLS_ctx.placeholders.actions.create);
|
|
837
|
-
__VLS_nonNullable(__VLS_155.slots).default;
|
|
838
|
-
var __VLS_155;
|
|
839
|
-
__VLS_nonNullable(__VLS_33.slots).default;
|
|
840
|
-
var __VLS_33;
|
|
841
|
-
}
|
|
842
|
-
__VLS_styleScopedClasses['mc-filter'];
|
|
843
|
-
__VLS_styleScopedClasses['mc-filter__header'];
|
|
844
|
-
__VLS_styleScopedClasses['mc-filter__presets'];
|
|
845
|
-
__VLS_styleScopedClasses['mc-filter__presets-inner'];
|
|
846
|
-
__VLS_styleScopedClasses['mc-filter__body'];
|
|
847
|
-
__VLS_styleScopedClasses['mc-filter__body-top'];
|
|
848
|
-
__VLS_styleScopedClasses['mc-filter__body-top-left'];
|
|
849
|
-
__VLS_styleScopedClasses['mc-filter__main-select'];
|
|
850
|
-
__VLS_styleScopedClasses['mc-filter__body-fast-tags-wrapper'];
|
|
851
|
-
__VLS_styleScopedClasses['mc-filter__body-bottom'];
|
|
852
|
-
__VLS_styleScopedClasses['mc-filter__body-bottom-left'];
|
|
853
|
-
__VLS_styleScopedClasses['mc-filter__body-bottom-right'];
|
|
854
|
-
__VLS_styleScopedClasses['mc-filter__preset-input-title'];
|
|
855
|
-
__VLS_styleScopedClasses['mc-filter__preset-input'];
|
|
856
|
-
var __VLS_slots;
|
|
857
|
-
var __VLS_inheritedAttrs;
|
|
858
|
-
const __VLS_refs = {};
|
|
859
|
-
var $refs;
|
|
860
|
-
var $el;
|
|
861
|
-
return {
|
|
862
|
-
attrs: {},
|
|
863
|
-
slots: __VLS_slots,
|
|
864
|
-
refs: $refs,
|
|
865
|
-
rootEl: $el,
|
|
866
|
-
};
|
|
867
|
-
}
|
|
868
|
-
;
|
|
869
|
-
const __VLS_self = (await import('vue')).defineComponent({
|
|
870
|
-
setup() {
|
|
871
|
-
return {
|
|
872
|
-
Teleport: Teleport,
|
|
873
|
-
McSvgIcon: McSvgIcon,
|
|
874
|
-
McButton: McButton,
|
|
875
|
-
McTitle: McTitle,
|
|
876
|
-
McFieldSelect: McFieldSelect,
|
|
877
|
-
McFieldText: McFieldText,
|
|
878
|
-
McTooltip: McTooltip,
|
|
879
|
-
McFilterTags: McFilterTags,
|
|
880
|
-
McFilterTypeRange: McFilterTypeRange,
|
|
881
|
-
McFilterTypeDate: McFilterTypeDate,
|
|
882
|
-
McFilterTypeText: McFilterTypeText,
|
|
883
|
-
McFilterTypeRelation: McFilterTypeRelation,
|
|
884
|
-
McChip: McChip,
|
|
885
|
-
ButtonSize: ButtonSize,
|
|
886
|
-
ChipSize: ChipSize,
|
|
887
|
-
TooltipPositions: TooltipPositions,
|
|
888
|
-
TooltipSizes: TooltipSizes,
|
|
889
|
-
isOpen: isOpen,
|
|
890
|
-
currentValues: currentValues,
|
|
891
|
-
currentValuesName: currentValuesName,
|
|
892
|
-
currentCondition: currentCondition,
|
|
893
|
-
selectedOptionFilter: selectedOptionFilter,
|
|
894
|
-
activeTag: activeTag,
|
|
895
|
-
placeholders: placeholders,
|
|
896
|
-
isDisableConfirmButton: isDisableConfirmButton,
|
|
897
|
-
newPresetName: newPresetName,
|
|
898
|
-
activePreset: activePreset,
|
|
899
|
-
presets: presets,
|
|
900
|
-
currentFilter: currentFilter,
|
|
901
|
-
isCurrentComponentIsRelation: isCurrentComponentIsRelation,
|
|
902
|
-
isCurrentComponentIsDate: isCurrentComponentIsDate,
|
|
903
|
-
isCurrentComponentIsText: isCurrentComponentIsText,
|
|
904
|
-
isCurrentComponentIsRange: isCurrentComponentIsRange,
|
|
905
|
-
fastFilters: fastFilters,
|
|
906
|
-
regularFilters: regularFilters,
|
|
907
|
-
visibilityToggleVariation: visibilityToggleVariation,
|
|
908
|
-
hasButtonAdd: hasButtonAdd,
|
|
909
|
-
buttonCreateIsDisable: buttonCreateIsDisable,
|
|
910
|
-
handlerSetFastFilter: handlerSetFastFilter,
|
|
911
|
-
handleConditionChange: handleConditionChange,
|
|
912
|
-
handleStoreTag: handleStoreTag,
|
|
913
|
-
onTagsChange: onTagsChange,
|
|
914
|
-
handleClearAllTags: handleClearAllTags,
|
|
915
|
-
onTagClick: onTagClick,
|
|
916
|
-
handleConfirm: handleConfirm,
|
|
917
|
-
handlePresetMouseUp: handlePresetMouseUp,
|
|
918
|
-
handleDeletePreset: handleDeletePreset,
|
|
919
|
-
handleCreatePreset: handleCreatePreset,
|
|
920
|
-
getPresetButtonVariation: getPresetButtonVariation,
|
|
921
|
-
};
|
|
922
|
-
},
|
|
923
|
-
__typeEmits: {},
|
|
924
|
-
props: {
|
|
925
|
-
/**
|
|
926
|
-
* Имя фильтра
|
|
927
|
-
* (для записи данных в стор)
|
|
928
|
-
*/
|
|
929
|
-
name: {
|
|
930
|
-
type: String,
|
|
931
|
-
required: true
|
|
932
|
-
},
|
|
933
|
-
/**
|
|
934
|
-
* Значение фильтра
|
|
935
|
-
*/
|
|
936
|
-
modelValue: {
|
|
937
|
-
type: Object,
|
|
938
|
-
required: true,
|
|
939
|
-
default: () => ({ filter: null, filter_name: null })
|
|
940
|
-
},
|
|
941
|
-
/**
|
|
942
|
-
* Типы фильтров
|
|
943
|
-
*/
|
|
944
|
-
filters: {
|
|
945
|
-
type: Array,
|
|
946
|
-
required: true,
|
|
947
|
-
default: () => []
|
|
948
|
-
},
|
|
949
|
-
/**
|
|
950
|
-
* Лоадинг кнопки применить фильтр
|
|
951
|
-
*/
|
|
952
|
-
buttonConfirmIsLoading: {
|
|
953
|
-
type: Boolean,
|
|
954
|
-
default: false
|
|
955
|
-
},
|
|
956
|
-
/**
|
|
957
|
-
* Использовать ли teleport (для рендеринга вне компонента)
|
|
958
|
-
* Если да то необходимо создать блок с id="filterTeleportTarget" в который будет рендериться тело фильтра
|
|
959
|
-
*/
|
|
960
|
-
useTeleport: {
|
|
961
|
-
type: Boolean,
|
|
962
|
-
default: false
|
|
963
|
-
},
|
|
964
|
-
/**
|
|
965
|
-
* Доступен ли фильтр для открытия
|
|
966
|
-
*/
|
|
967
|
-
disabledOpen: {
|
|
968
|
-
type: Boolean,
|
|
969
|
-
default: false
|
|
970
|
-
},
|
|
971
|
-
/**
|
|
972
|
-
* Нужно ли учитывать часовой пояс при работе с фильтром типа Date
|
|
973
|
-
* */
|
|
974
|
-
useTimezone: {
|
|
975
|
-
type: Boolean,
|
|
976
|
-
default: false
|
|
977
|
-
},
|
|
978
|
-
/**
|
|
979
|
-
* Переводы плейсхолеров и текстов
|
|
980
|
-
*/
|
|
981
|
-
placeholders: {
|
|
982
|
-
type: Object,
|
|
983
|
-
default: () => ({})
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
});
|
|
987
|
-
export default (await import('vue')).defineComponent({
|
|
988
|
-
setup() {
|
|
989
|
-
return {};
|
|
990
|
-
},
|
|
991
|
-
__typeEmits: {},
|
|
992
|
-
props: {
|
|
993
|
-
/**
|
|
994
|
-
* Имя фильтра
|
|
995
|
-
* (для записи данных в стор)
|
|
996
|
-
*/
|
|
997
|
-
name: {
|
|
998
|
-
type: String,
|
|
999
|
-
required: true
|
|
1000
|
-
},
|
|
1001
|
-
/**
|
|
1002
|
-
* Значение фильтра
|
|
1003
|
-
*/
|
|
1004
|
-
modelValue: {
|
|
1005
|
-
type: Object,
|
|
1006
|
-
required: true,
|
|
1007
|
-
default: () => ({ filter: null, filter_name: null })
|
|
1008
|
-
},
|
|
1009
|
-
/**
|
|
1010
|
-
* Типы фильтров
|
|
1011
|
-
*/
|
|
1012
|
-
filters: {
|
|
1013
|
-
type: Array,
|
|
1014
|
-
required: true,
|
|
1015
|
-
default: () => []
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
* Лоадинг кнопки применить фильтр
|
|
1019
|
-
*/
|
|
1020
|
-
buttonConfirmIsLoading: {
|
|
1021
|
-
type: Boolean,
|
|
1022
|
-
default: false
|
|
1023
|
-
},
|
|
1024
|
-
/**
|
|
1025
|
-
* Использовать ли teleport (для рендеринга вне компонента)
|
|
1026
|
-
* Если да то необходимо создать блок с id="filterTeleportTarget" в который будет рендериться тело фильтра
|
|
1027
|
-
*/
|
|
1028
|
-
useTeleport: {
|
|
1029
|
-
type: Boolean,
|
|
1030
|
-
default: false
|
|
1031
|
-
},
|
|
1032
|
-
/**
|
|
1033
|
-
* Доступен ли фильтр для открытия
|
|
1034
|
-
*/
|
|
1035
|
-
disabledOpen: {
|
|
1036
|
-
type: Boolean,
|
|
1037
|
-
default: false
|
|
1038
|
-
},
|
|
1039
|
-
/**
|
|
1040
|
-
* Нужно ли учитывать часовой пояс при работе с фильтром типа Date
|
|
1041
|
-
* */
|
|
1042
|
-
useTimezone: {
|
|
1043
|
-
type: Boolean,
|
|
1044
|
-
default: false
|
|
1045
|
-
},
|
|
1046
|
-
/**
|
|
1047
|
-
* Переводы плейсхолеров и текстов
|
|
1048
|
-
*/
|
|
1049
|
-
placeholders: {
|
|
1050
|
-
type: Object,
|
|
1051
|
-
default: () => ({})
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
__typeEl: {},
|
|
1055
|
-
});
|
|
1056
|
-
; /* PartiallyEnd: #4569/main.vue */
|