mediacube-ui-v2 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.js +54 -0
- package/dist/assets/tokens/json/animations.json +6 -0
- package/dist/assets/tokens/json/border-radius.json +24 -0
- package/dist/assets/tokens/json/box-shadows.json +24 -0
- package/dist/assets/tokens/json/colors.json +71 -0
- package/dist/assets/tokens/json/durations.json +10 -0
- package/dist/assets/tokens/json/easings.json +3 -0
- package/dist/assets/tokens/json/font-families.json +4 -0
- package/dist/assets/tokens/json/font-sizes.json +18 -0
- package/dist/assets/tokens/json/font-weights.json +12 -0
- package/dist/assets/tokens/json/gradients.json +13 -0
- package/dist/assets/tokens/json/index.js +18 -0
- package/dist/assets/tokens/json/letter-spacings.json +4 -0
- package/dist/assets/tokens/json/line-heights.json +18 -0
- package/dist/assets/tokens/json/media-queries.json +26 -0
- package/dist/assets/tokens/json/opacities.json +5 -0
- package/dist/assets/tokens/json/sizes.json +42 -0
- package/dist/assets/tokens/json/spacings.json +34 -0
- package/dist/assets/tokens/json/z-indexes.json +12 -0
- package/dist/components/elements/McAvatar/McAvatar.vue.js +412 -0
- package/dist/components/elements/McBadge/McBadge.vue.js +188 -0
- package/dist/components/elements/McBottomLoader/McBottomLoader.vue.js +83 -0
- package/dist/components/elements/McButton/McButton.vue.js +1037 -0
- package/dist/components/elements/McChip/McChip.vue.js +326 -0
- package/dist/components/elements/McCropper/McCropper.vue.js +98 -0
- package/dist/components/elements/McDatepicker/McDatepicker.vue.js +1255 -0
- package/dist/components/elements/McDraggable/McDraggable.vue.js +280 -0
- package/dist/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +542 -0
- package/dist/components/elements/McFieldRadio/McFieldRadio.vue.js +489 -0
- package/dist/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +471 -0
- package/dist/components/elements/McFieldRange/McFieldRange.vue.js +547 -0
- package/dist/components/elements/McFieldSelect/McFieldSelect.vue.js +1440 -0
- package/dist/components/elements/McFieldText/McFieldText.vue.js +1404 -0
- package/dist/components/elements/McFieldToggle/McFieldToggle.vue.js +408 -0
- package/dist/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +192 -0
- package/dist/components/elements/McNodata/McNoData.vue.js +319 -0
- package/dist/components/elements/McNotification/McNotification.vue.js +367 -0
- package/dist/components/elements/McProgress/McProgress.vue.js +361 -0
- package/dist/components/elements/McSeparator/McSeparator.vue.js +325 -0
- package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.js +271 -0
- package/dist/components/elements/McStack/McStack.vue.js +180 -0
- package/dist/components/elements/McSvgIcon/McSvgIcon.vue.js +289 -0
- package/dist/components/elements/McTitle/McTitle.vue.js +468 -0
- package/dist/components/elements/McTooltip/McTooltip.vue.js +246 -0
- package/dist/components/index.js +73 -0
- package/dist/components/patterns/McAccordion/McAccordion.vue.js +120 -0
- package/dist/components/patterns/McCell/McCell.vue.js +197 -0
- package/dist/components/patterns/McCollapse/McCollapse.vue.js +315 -0
- package/dist/components/patterns/McDropdown/McDropdown.vue.js +366 -0
- package/dist/components/patterns/McDropdown/McDropdownPanel.vue.js +83 -0
- package/dist/components/patterns/McFilter/McFilter.vue.js +1068 -0
- package/dist/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +211 -0
- package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +552 -0
- package/dist/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +188 -0
- package/dist/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +238 -0
- package/dist/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +359 -0
- package/dist/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +171 -0
- package/dist/components/patterns/McGridCol/McGridCol.vue.js +246 -0
- package/dist/components/patterns/McGridRow/McGridRow.vue.js +292 -0
- package/dist/components/patterns/McOverlay/McOverlay.vue.js +107 -0
- package/dist/components/patterns/McPreview/McPreview.vue.js +118 -0
- package/dist/components/patterns/McSideBar/McSideBar.vue.js +740 -0
- package/dist/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +204 -0
- package/dist/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +510 -0
- package/dist/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +413 -0
- package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +419 -0
- package/dist/components/patterns/McTab/McTab.vue.js +518 -0
- package/dist/components/patterns/McTabs/McTabs.vue.js +427 -0
- package/dist/components/patterns/McWrapScroll/McWrapScroll.vue.js +422 -0
- package/dist/components/templates/McDrawer/McDrawer.vue.js +304 -0
- package/dist/components/templates/McDrawer/McDrawerContainer.vue.js +133 -0
- package/dist/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +134 -0
- package/dist/components/templates/McModal/McModal.vue.js +664 -0
- package/dist/components/templates/McModal/McModalContainer.vue.js +119 -0
- package/dist/components/templates/McTable/McTable/McTable.vue.js +862 -0
- package/dist/components/templates/McTable/McTableCard/McTableCard.vue.js +339 -0
- package/dist/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +119 -0
- package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +118 -0
- package/dist/components/templates/McTable/McTableSort/McTableSort.vue.js +136 -0
- package/dist/components/templates/McTopBar/McTopBar.vue.js +309 -0
- package/dist/components/templates/McVirtualScroll/McVirtualScroll.vue.js +239 -0
- package/dist/composables/index.js +8 -0
- package/dist/composables/useDrawer.js +72 -0
- package/dist/composables/useEncodeDecode.js +25 -0
- package/dist/composables/useFieldErrors.js +20 -0
- package/dist/composables/useHelper.js +79 -0
- package/dist/composables/useModal.js +71 -0
- package/dist/composables/useRandomNumber.js +10 -0
- package/dist/composables/useTooltip.js +154 -0
- package/dist/consts/table.js +6 -0
- package/dist/enums/Cell.js +6 -0
- package/dist/enums/Chip.js +11 -0
- package/dist/enums/Datepicker.js +42 -0
- package/dist/enums/Drawer.js +5 -0
- package/dist/enums/Dropdown.js +12 -0
- package/dist/enums/Filter.js +14 -0
- package/dist/enums/Grid.js +24 -0
- package/dist/enums/Input.js +20 -0
- package/dist/enums/Modal.js +5 -0
- package/dist/enums/Preview.js +6 -0
- package/dist/enums/Radio.js +5 -0
- package/dist/enums/RadioGroup.js +5 -0
- package/dist/enums/Select.js +11 -0
- package/dist/enums/Sidebar.js +5 -0
- package/dist/enums/Tab.js +6 -0
- package/dist/enums/Title.js +21 -0
- package/dist/enums/Tooltip.js +15 -0
- package/dist/enums/index.js +22 -0
- package/dist/enums/ui/Alignment.js +6 -0
- package/dist/enums/ui/Button.js +24 -0
- package/dist/enums/ui/Directions.js +5 -0
- package/dist/enums/ui/Weights.js +7 -0
- package/dist/index.js +13 -10522
- package/dist/main.js +6 -0
- package/dist/mocks/authUser.js +162 -0
- package/dist/mocks/categories.js +107 -0
- package/dist/mocks/filterMocks.js +128 -0
- package/dist/mocks/icons.json +1 -0
- package/dist/mocks/menuLangs.js +19 -0
- package/dist/mocks/sidebar.js +125 -0
- package/dist/mocks/tableData.js +8180 -0
- package/dist/types/App.vue.d.ts +2 -0
- package/dist/types/IButton.js +1 -0
- package/dist/types/ICell.js +1 -0
- package/dist/types/IChip.js +1 -0
- package/dist/types/ICollapse.js +1 -0
- package/dist/types/IDatepicker.js +1 -0
- package/dist/types/IDirections.js +1 -0
- package/dist/types/IDrawer.js +1 -0
- package/dist/types/IDropdown.js +1 -0
- package/dist/types/IFilter.js +1 -0
- package/dist/types/IGrid.js +1 -0
- package/dist/types/IInput.js +1 -0
- package/dist/types/IModal.js +1 -0
- package/dist/types/IPreview.js +1 -0
- package/dist/types/IRadio.js +1 -0
- package/dist/types/IRadioGroup.js +1 -0
- package/dist/types/IRoute.js +1 -0
- package/dist/types/ISelect.js +1 -0
- package/dist/types/ISideBar.js +1 -0
- package/dist/types/ITable.js +1 -0
- package/dist/types/ITabs.js +1 -0
- package/dist/types/ITitle.js +1 -0
- package/dist/types/ITooltip.js +1 -0
- package/dist/types/assets/tokens/json/index.d.ts +18 -0
- package/dist/{components → types/components}/elements/McAvatar/McAvatar.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McBadge/McBadge.vue.d.ts +3 -3
- package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
- package/dist/{components → types/components}/elements/McButton/McButton.vue.d.ts +13 -12
- package/dist/{components → types/components}/elements/McChip/McChip.vue.d.ts +7 -6
- package/dist/types/components/elements/McCropper/McCropper.vue.d.ts +2 -0
- package/dist/{components → types/components}/elements/McDatepicker/McDatepicker.vue.d.ts +2 -1
- package/dist/{components → types/components}/elements/McDraggable/McDraggable.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
- package/dist/{components → types/components}/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
- package/dist/{components → types/components}/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
- package/dist/{components → types/components}/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
- package/dist/{components → types/components}/elements/McFieldSelect/McFieldSelect.vue.d.ts +12 -11
- package/dist/{components → types/components}/elements/McFieldText/McFieldText.vue.d.ts +9 -9
- package/dist/{components → types/components}/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
- package/dist/{components → types/components}/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
- package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +110 -0
- package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +124 -0
- package/dist/{components → types/components}/elements/McProgress/McProgress.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McSeparator/McSeparator.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
- package/dist/{components → types/components}/elements/McStack/McStack.vue.d.ts +4 -4
- package/dist/{components → types/components}/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
- package/dist/{components → types/components}/elements/McTitle/McTitle.vue.d.ts +7 -7
- package/dist/{components → types/components}/elements/McTooltip/McTooltip.vue.d.ts +6 -6
- package/dist/types/components/index.d.ts +70 -0
- package/dist/{components → types/components}/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McCell/McCell.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
- package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
- package/dist/{components → types/components}/patterns/McFilter/McFilter.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
- package/dist/{components → types/components}/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
- package/dist/{components → types/components}/patterns/McPreview/McPreview.vue.d.ts +4 -4
- package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +292 -0
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +6 -6
- package/dist/{components → types/components}/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
- package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +123 -0
- package/dist/types/components/patterns/McTab/McTab.vue.d.ts +224 -0
- package/dist/{components → types/components}/patterns/McTabs/McTabs.vue.d.ts +8 -7
- package/dist/{components → types/components}/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
- package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +104 -0
- package/dist/{components → types/components}/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
- package/dist/{components → types/components}/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
- package/dist/{components → types/components}/templates/McModal/McModal.vue.d.ts +7 -7
- package/dist/{components → types/components}/templates/McModal/McModalContainer.vue.d.ts +5 -5
- package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +295 -0
- package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
- package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
- package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
- package/dist/{components → types/components}/templates/McTable/McTableSort/McTableSort.vue.d.ts +7 -7
- package/dist/{components → types/components}/templates/McTopBar/McTopBar.vue.d.ts +4 -4
- package/dist/{components → types/components}/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
- package/dist/{composables → types/composables}/index.d.ts +1 -1
- package/dist/{composables → types/composables}/useDrawer.d.ts +1 -1
- package/dist/types/composables/useFieldErrors.d.ts +5 -0
- package/dist/{composables → types/composables}/useTooltip.d.ts +1 -1
- package/dist/types/index.d.ts +9 -36
- package/dist/types/index.js +38 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/{mocks → types/mocks}/filterMocks.d.ts +1 -1
- package/dist/{mocks → types/mocks}/sidebar.d.ts +1 -1
- package/dist/{mocks → types/mocks}/tableData.d.ts +1 -1
- package/dist/types/styles/Alignment.js +1 -0
- package/dist/types/styles/AvatarSizes.js +3 -0
- package/dist/types/styles/Colors.js +3 -0
- package/dist/types/styles/Durations.js +3 -0
- package/dist/types/styles/FontSizes.js +3 -0
- package/dist/types/styles/FontWeights.js +3 -0
- package/dist/types/styles/Grid.js +1 -0
- package/dist/types/styles/Icons.js +2 -0
- package/dist/types/styles/LineHeights.js +3 -0
- package/dist/types/styles/MediaQueries.js +3 -0
- package/dist/types/styles/Radiuses.js +3 -0
- package/dist/types/styles/Sizes.js +3 -0
- package/dist/types/styles/Spaces.js +3 -0
- package/dist/types/styles/Weights.js +1 -0
- package/dist/types/{IButton.d.ts → types/IButton.d.ts} +5 -5
- package/dist/types/{ICell.d.ts → types/ICell.d.ts} +1 -1
- package/dist/types/{IChip.d.ts → types/IChip.d.ts} +2 -2
- package/dist/types/{IDatepicker.d.ts → types/IDatepicker.d.ts} +1 -1
- package/dist/types/{IDirections.d.ts → types/IDirections.d.ts} +1 -1
- package/dist/types/{IDrawer.d.ts → types/IDrawer.d.ts} +2 -2
- package/dist/types/{IDropdown.d.ts → types/IDropdown.d.ts} +1 -1
- package/dist/types/{IFilter.d.ts → types/IFilter.d.ts} +1 -1
- package/dist/types/{IInput.d.ts → types/IInput.d.ts} +1 -1
- package/dist/types/{IModal.d.ts → types/IModal.d.ts} +2 -2
- package/dist/types/{IPreview.d.ts → types/IPreview.d.ts} +1 -1
- package/dist/types/{IRadio.d.ts → types/IRadio.d.ts} +1 -1
- package/dist/types/{IRadioGroup.d.ts → types/IRadioGroup.d.ts} +1 -1
- package/dist/types/{ISelect.d.ts → types/ISelect.d.ts} +1 -1
- package/dist/types/{ISideBar.d.ts → types/ISideBar.d.ts} +5 -5
- package/dist/types/{ITable.d.ts → types/ITable.d.ts} +2 -2
- package/dist/types/{ITabs.d.ts → types/ITabs.d.ts} +4 -4
- package/dist/types/{ITitle.d.ts → types/ITitle.d.ts} +1 -1
- package/dist/types/{ITooltip.d.ts → types/ITooltip.d.ts} +1 -1
- package/dist/types/types/index.d.ts +36 -0
- package/dist/types/{styles → types/styles}/Alignment.d.ts +1 -1
- package/dist/types/{styles → types/styles}/Grid.d.ts +1 -1
- package/dist/types/{styles → types/styles}/Weights.d.ts +1 -1
- package/dist/{utils → types/utils}/dayjs.d.ts +2 -1
- package/dist/{utils → types/utils}/mcGridColAdaptiveProps.d.ts +1 -1
- package/dist/{utils → types/utils}/mcTitleAdaptiveProps.d.ts +1 -1
- package/dist/utils/dayjs.js +18 -0
- package/dist/utils/mcGridColAdaptiveProps.js +10 -0
- package/dist/utils/mcTitleAdaptiveProps.js +10 -0
- package/package.json +7 -3
- package/dist/App.vue.d.ts +0 -2
- package/dist/assets/tokens/json/animations.json.d.ts +0 -8
- package/dist/assets/tokens/json/border-radius.json.d.ts +0 -26
- package/dist/assets/tokens/json/box-shadows.json.d.ts +0 -26
- package/dist/assets/tokens/json/colors.json.d.ts +0 -73
- package/dist/assets/tokens/json/durations.json.d.ts +0 -12
- package/dist/assets/tokens/json/easings.json.d.ts +0 -5
- package/dist/assets/tokens/json/font-families.json.d.ts +0 -6
- package/dist/assets/tokens/json/font-sizes.json.d.ts +0 -20
- package/dist/assets/tokens/json/font-weights.json.d.ts +0 -14
- package/dist/assets/tokens/json/gradients.json.d.ts +0 -15
- package/dist/assets/tokens/json/index.d.ts +0 -18
- package/dist/assets/tokens/json/letter-spacings.json.d.ts +0 -6
- package/dist/assets/tokens/json/line-heights.json.d.ts +0 -20
- package/dist/assets/tokens/json/media-queries.json.d.ts +0 -28
- package/dist/assets/tokens/json/opacities.json.d.ts +0 -7
- package/dist/assets/tokens/json/sizes.json.d.ts +0 -44
- package/dist/assets/tokens/json/spacings.json.d.ts +0 -36
- package/dist/assets/tokens/json/z-indexes.json.d.ts +0 -14
- package/dist/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -14
- package/dist/components/elements/McNodata/McNoData.vue.d.ts +0 -110
- package/dist/components/elements/McNotification/McNotification.vue.d.ts +0 -124
- package/dist/components/index.d.ts +0 -61
- package/dist/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -22
- package/dist/components/patterns/McSideBar/McSideBar.vue.d.ts +0 -292
- package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +0 -123
- package/dist/components/patterns/McTab/McTab.vue.d.ts +0 -224
- package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +0 -104
- package/dist/components/templates/McTable/McTable/McTable.vue.d.ts +0 -295
- package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -18
- package/dist/composables/useFieldErrors.d.ts +0 -5
- package/dist/index.d.ts +0 -9
- package/dist/main.d.ts +0 -0
- package/dist/mocks/icons.json.d.ts +0 -3
- /package/dist/{composables → types/composables}/useEncodeDecode.d.ts +0 -0
- /package/dist/{composables → types/composables}/useHelper.d.ts +0 -0
- /package/dist/{composables → types/composables}/useModal.d.ts +0 -0
- /package/dist/{composables → types/composables}/useRandomNumber.d.ts +0 -0
- /package/dist/{consts → types/consts}/table.d.ts +0 -0
- /package/dist/{enums → types/enums}/Cell.d.ts +0 -0
- /package/dist/{enums → types/enums}/Chip.d.ts +0 -0
- /package/dist/{enums → types/enums}/Datepicker.d.ts +0 -0
- /package/dist/{enums → types/enums}/Drawer.d.ts +0 -0
- /package/dist/{enums → types/enums}/Dropdown.d.ts +0 -0
- /package/dist/{enums → types/enums}/Filter.d.ts +0 -0
- /package/dist/{enums → types/enums}/Grid.d.ts +0 -0
- /package/dist/{enums → types/enums}/Input.d.ts +0 -0
- /package/dist/{enums → types/enums}/Modal.d.ts +0 -0
- /package/dist/{enums → types/enums}/Preview.d.ts +0 -0
- /package/dist/{enums → types/enums}/Radio.d.ts +0 -0
- /package/dist/{enums → types/enums}/RadioGroup.d.ts +0 -0
- /package/dist/{enums → types/enums}/Select.d.ts +0 -0
- /package/dist/{enums → types/enums}/Sidebar.d.ts +0 -0
- /package/dist/{enums → types/enums}/Tab.d.ts +0 -0
- /package/dist/{enums → types/enums}/Title.d.ts +0 -0
- /package/dist/{enums → types/enums}/Tooltip.d.ts +0 -0
- /package/dist/{enums → types/enums}/index.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Alignment.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Button.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Directions.d.ts +0 -0
- /package/dist/{enums → types/enums}/ui/Weights.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/authUser.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/categories.d.ts +0 -0
- /package/dist/{mocks → types/mocks}/menuLangs.d.ts +0 -0
- /package/dist/types/{ICollapse.d.ts → types/ICollapse.d.ts} +0 -0
- /package/dist/types/{IGrid.d.ts → types/IGrid.d.ts} +0 -0
- /package/dist/types/{IRoute.d.ts → types/IRoute.d.ts} +0 -0
- /package/dist/types/{styles → types/styles}/AvatarSizes.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Colors.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Durations.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/FontSizes.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/FontWeights.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Icons.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/LineHeights.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/MediaQueries.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Radiuses.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Sizes.d.ts +0 -0
- /package/dist/types/{styles → types/styles}/Spaces.d.ts +0 -0
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import { dayjs } from '@/utils/dayjs';
|
|
2
|
+
import McButton from '@/components/elements/McButton/McButton.vue';
|
|
3
|
+
import McTooltip from '@/components/elements/McTooltip/McTooltip.vue';
|
|
4
|
+
import McTitle from '@/components/elements/McTitle/McTitle.vue';
|
|
5
|
+
import McGridRow from '@/components/patterns/McGridRow/McGridRow.vue';
|
|
6
|
+
import McGridCol from '@/components/patterns/McGridCol/McGridCol.vue';
|
|
7
|
+
import McFilterChip from '@/components/patterns/McFilter/McFilterChip/McFilterChip.vue';
|
|
8
|
+
import { computed, ref, watch } from 'vue';
|
|
9
|
+
import { useRandomNumber } from '@/composables/useRandomNumber';
|
|
10
|
+
import { TooltipPositions, TooltipSizes } from '@/enums';
|
|
11
|
+
import { useHelper } from '@/composables/useHelper';
|
|
12
|
+
import { FilterRelations, FilterTypes } from '@/enums/Filter';
|
|
13
|
+
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
14
|
+
const helper = useHelper();
|
|
15
|
+
const randomNumber = useRandomNumber();
|
|
16
|
+
const emit = defineEmits();
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
/**
|
|
19
|
+
* Данные фильтра
|
|
20
|
+
*/
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* Типы фильтров
|
|
27
|
+
*/
|
|
28
|
+
filters: {
|
|
29
|
+
type: Array,
|
|
30
|
+
required: true,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Переводы локализаций
|
|
35
|
+
*/
|
|
36
|
+
placeholders: {
|
|
37
|
+
type: Object,
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Активный тэг
|
|
42
|
+
*/
|
|
43
|
+
activeTag: {
|
|
44
|
+
type: Object,
|
|
45
|
+
default: () => ({})
|
|
46
|
+
},
|
|
47
|
+
useTimezone: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const simpleValues = ref({});
|
|
53
|
+
const relationValues = ref({});
|
|
54
|
+
const prettyActiveTag = ref(null);
|
|
55
|
+
const fastFilterTags = computed(() => {
|
|
56
|
+
return simpleTags.value.filter((st) => st && st.type === FilterTypes.Fast);
|
|
57
|
+
});
|
|
58
|
+
const tagsWithoutFast = computed(() => {
|
|
59
|
+
return simpleTags.value.filter((st) => st && st.type !== FilterTypes.Fast);
|
|
60
|
+
});
|
|
61
|
+
const simpleTags = computed(() => {
|
|
62
|
+
const tags = [];
|
|
63
|
+
!helper.isEmpty(simpleValues.value) &&
|
|
64
|
+
Object.entries(simpleValues.value).forEach(([key, value]) => {
|
|
65
|
+
const _key = key;
|
|
66
|
+
let _value = value;
|
|
67
|
+
const filter = props.filters.find((f) => f.value === _key) || {};
|
|
68
|
+
if (filter && filter.type === FilterTypes.Fast) {
|
|
69
|
+
tags.push({
|
|
70
|
+
id: randomNumber.timestamp(5),
|
|
71
|
+
categoryName: filter?.name,
|
|
72
|
+
category: _key,
|
|
73
|
+
type: FilterTypes.Fast
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
else if (filter) {
|
|
77
|
+
_value = value;
|
|
78
|
+
const from = _value.more ? `${props.placeholders.from} ${getFormattedVal(_value.more, filter)}` : '';
|
|
79
|
+
const to = _value.less
|
|
80
|
+
? `${props.placeholders.to} ${getFormattedVal(filter.type === FilterTypes.Date
|
|
81
|
+
? props.useTimezone
|
|
82
|
+
? dayjs(_value.less).subtract(1, 'days').format()
|
|
83
|
+
: dayjs(_value.less).format()
|
|
84
|
+
: _value.less, filter)}`
|
|
85
|
+
: '';
|
|
86
|
+
const space = from && to ? ' ' : '';
|
|
87
|
+
const title = typeof value === 'object' ? `${from}${space}${to}`.toLowerCase() : value;
|
|
88
|
+
tags.push({
|
|
89
|
+
id: randomNumber.timestamp(5),
|
|
90
|
+
categoryName: filter?.name,
|
|
91
|
+
title,
|
|
92
|
+
value,
|
|
93
|
+
category: _key
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return tags;
|
|
98
|
+
});
|
|
99
|
+
const relationRows = computed(() => {
|
|
100
|
+
let tags = [];
|
|
101
|
+
if (!helper.isEmpty(relationValues.value)) {
|
|
102
|
+
tags = Object.entries(relationValues.value).map(([relationKey, relationVal]) => {
|
|
103
|
+
const _relationKey = relationKey;
|
|
104
|
+
const _relationVal = relationVal;
|
|
105
|
+
if (relationKey === FilterRelations.Exists) {
|
|
106
|
+
const empties = Object.keys(_relationVal).map((key) => {
|
|
107
|
+
const filter = props.filters.find((f) => f.value === key);
|
|
108
|
+
return {
|
|
109
|
+
id: randomNumber.timestamp(5),
|
|
110
|
+
categoryName: filter?.name,
|
|
111
|
+
value: key,
|
|
112
|
+
category: key,
|
|
113
|
+
relationKey,
|
|
114
|
+
closable: true
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
const head = {
|
|
118
|
+
id: randomNumber.timestamp(5),
|
|
119
|
+
categoryName: props.placeholders.actions.empty,
|
|
120
|
+
relationKey: FilterRelations.Exists
|
|
121
|
+
};
|
|
122
|
+
return [head, ...empties];
|
|
123
|
+
}
|
|
124
|
+
const values = [];
|
|
125
|
+
Object.entries(_relationVal).forEach(([categoryKey, categoryVal]) => {
|
|
126
|
+
const _categoryKey = categoryKey;
|
|
127
|
+
const _categoryVal = categoryVal;
|
|
128
|
+
const filter = props.filters.find((f) => f.value === _categoryKey) || {};
|
|
129
|
+
Object.entries(_categoryVal).forEach(([key, val]) => {
|
|
130
|
+
values.push({
|
|
131
|
+
id: randomNumber.timestamp(5),
|
|
132
|
+
categoryName: filter?.name,
|
|
133
|
+
title: val,
|
|
134
|
+
value: key,
|
|
135
|
+
category: _categoryKey,
|
|
136
|
+
relationKey,
|
|
137
|
+
closable: true
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
const head = {
|
|
142
|
+
id: randomNumber.timestamp(5),
|
|
143
|
+
//@ts-ignore
|
|
144
|
+
categoryName: props.placeholders.actions?.[_relationKey],
|
|
145
|
+
relationKey
|
|
146
|
+
};
|
|
147
|
+
return [head, ...values];
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return tags.filter((t) => t.length > 1);
|
|
151
|
+
});
|
|
152
|
+
const hasButtonClear = computed(() => {
|
|
153
|
+
return relationRows.value.length || simpleTags.value.length;
|
|
154
|
+
});
|
|
155
|
+
const splitTags = (value) => {
|
|
156
|
+
simpleValues.value = {};
|
|
157
|
+
relationValues.value = {};
|
|
158
|
+
if (helper.isEmpty(value))
|
|
159
|
+
return;
|
|
160
|
+
addInitTags(value);
|
|
161
|
+
};
|
|
162
|
+
const addInitTags = (parentVal, parentKey) => {
|
|
163
|
+
const relationKeys = [FilterRelations.Is, FilterRelations.IsNot, FilterRelations.Exists];
|
|
164
|
+
for (let [key, val] of Object.entries(parentVal)) {
|
|
165
|
+
if (relationKeys.includes(key)) {
|
|
166
|
+
relationValues.value[key] = {
|
|
167
|
+
...(relationValues.value[key] || {}),
|
|
168
|
+
...(parentKey ? { [parentKey]: val } : {})
|
|
169
|
+
};
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if (val.constructor !== Object && parentKey) {
|
|
173
|
+
simpleValues.value[parentKey] = parentVal;
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
const filter = props.filters.find((f) => f.value === key);
|
|
177
|
+
if (filter && filter.type === FilterTypes.Fast) {
|
|
178
|
+
simpleValues.value[key] = { value: key };
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
val && addInitTags(val, key);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const onTagClick = (tag) => {
|
|
185
|
+
prettyActiveTag.value = helper.isEqual(prettyActiveTag.value, tag) ? null : tag;
|
|
186
|
+
/**
|
|
187
|
+
* Событие по клику на тэг
|
|
188
|
+
*/
|
|
189
|
+
emit('tag-click', tag);
|
|
190
|
+
};
|
|
191
|
+
const onTagClose = (tag, relationKey) => {
|
|
192
|
+
const value = helper.cloneDeep(props.modelValue);
|
|
193
|
+
switch (relationKey) {
|
|
194
|
+
case FilterRelations.Exists:
|
|
195
|
+
delete value[tag.category][relationKey];
|
|
196
|
+
break;
|
|
197
|
+
case FilterRelations.Is:
|
|
198
|
+
case FilterRelations.IsNot:
|
|
199
|
+
//@ts-ignore
|
|
200
|
+
delete value[tag.category][relationKey][tag.value];
|
|
201
|
+
if (helper.isEmpty(value[tag.category][relationKey])) {
|
|
202
|
+
delete value[tag.category][relationKey];
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
delete value[tag.category];
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
if (helper.isEmpty(value[tag.category])) {
|
|
210
|
+
delete value[tag.category];
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Событие по изменению набора тэгов
|
|
214
|
+
*/
|
|
215
|
+
emit('tag-change', value);
|
|
216
|
+
};
|
|
217
|
+
const handleClear = () => {
|
|
218
|
+
/**
|
|
219
|
+
* Событие по очистке всех тэгов
|
|
220
|
+
*/
|
|
221
|
+
emit('clear');
|
|
222
|
+
};
|
|
223
|
+
const getFormattedVal = (val, filter) => {
|
|
224
|
+
switch (filter.type) {
|
|
225
|
+
case FilterTypes.Date:
|
|
226
|
+
return dayjs(val).format('DD.MM.YYYY');
|
|
227
|
+
case FilterTypes.Range:
|
|
228
|
+
return getFormattedNum(val);
|
|
229
|
+
default:
|
|
230
|
+
return val;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
const getFormattedNum = (num) => {
|
|
234
|
+
return num;
|
|
235
|
+
};
|
|
236
|
+
const checkTagIsActive = (tag) => {
|
|
237
|
+
return helper.isEqual(prettyActiveTag.value, tag);
|
|
238
|
+
};
|
|
239
|
+
watch(() => props.modelValue, (val) => {
|
|
240
|
+
splitTags(val);
|
|
241
|
+
}, { deep: true, immediate: true });
|
|
242
|
+
watch(() => props.activeTag, (val) => {
|
|
243
|
+
prettyActiveTag.value = val;
|
|
244
|
+
}, { immediate: true }); /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
245
|
+
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
246
|
+
props: {
|
|
247
|
+
/**
|
|
248
|
+
* Данные фильтра
|
|
249
|
+
*/
|
|
250
|
+
modelValue: {
|
|
251
|
+
type: Object,
|
|
252
|
+
default: () => ({})
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Типы фильтров
|
|
256
|
+
*/
|
|
257
|
+
filters: {
|
|
258
|
+
type: Array,
|
|
259
|
+
required: true,
|
|
260
|
+
default: () => []
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
* Переводы локализаций
|
|
264
|
+
*/
|
|
265
|
+
placeholders: {
|
|
266
|
+
type: Object,
|
|
267
|
+
required: true
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Активный тэг
|
|
271
|
+
*/
|
|
272
|
+
activeTag: {
|
|
273
|
+
type: Object,
|
|
274
|
+
default: () => ({})
|
|
275
|
+
},
|
|
276
|
+
useTimezone: {
|
|
277
|
+
type: Boolean,
|
|
278
|
+
default: true
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
__typeEmits: {},
|
|
282
|
+
});
|
|
283
|
+
;
|
|
284
|
+
let __VLS_functionalComponentProps;
|
|
285
|
+
function __VLS_template() {
|
|
286
|
+
const __VLS_ctx = {};
|
|
287
|
+
const __VLS_localComponents = {
|
|
288
|
+
...{},
|
|
289
|
+
...{},
|
|
290
|
+
...__VLS_ctx,
|
|
291
|
+
};
|
|
292
|
+
let __VLS_components;
|
|
293
|
+
const __VLS_localDirectives = {
|
|
294
|
+
...{},
|
|
295
|
+
...__VLS_ctx,
|
|
296
|
+
};
|
|
297
|
+
let __VLS_directives;
|
|
298
|
+
let __VLS_styleScopedClasses;
|
|
299
|
+
// CSS variable injection
|
|
300
|
+
// CSS variable injection end
|
|
301
|
+
let __VLS_resolvedLocalAndGlobalComponents;
|
|
302
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter-tags") }, });
|
|
303
|
+
// @ts-ignore
|
|
304
|
+
[McTitle, McTitle,];
|
|
305
|
+
// @ts-ignore
|
|
306
|
+
const __VLS_0 = __VLS_asFunctionalComponent(McTitle, new McTitle({}));
|
|
307
|
+
const __VLS_1 = __VLS_0({}, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
308
|
+
(props.placeholders.added_filters);
|
|
309
|
+
__VLS_nonNullable(__VLS_4.slots).default;
|
|
310
|
+
var __VLS_4;
|
|
311
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter-tags__body") }, });
|
|
312
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter-tags__body-left") }, });
|
|
313
|
+
if (__VLS_ctx.tagsWithoutFast.length) {
|
|
314
|
+
// @ts-ignore
|
|
315
|
+
[McGridRow, McGridRow,];
|
|
316
|
+
// @ts-ignore
|
|
317
|
+
const __VLS_5 = __VLS_asFunctionalComponent(McGridRow, new McGridRow({ gutterX: ((4)), gutterY: ((8)), }));
|
|
318
|
+
const __VLS_6 = __VLS_5({ gutterX: ((4)), gutterY: ((8)), }, ...__VLS_functionalComponentArgsRest(__VLS_5));
|
|
319
|
+
for (const [tag] of __VLS_getVForSourceType((__VLS_ctx.tagsWithoutFast))) {
|
|
320
|
+
// @ts-ignore
|
|
321
|
+
[McGridCol, McGridCol,];
|
|
322
|
+
// @ts-ignore
|
|
323
|
+
const __VLS_10 = __VLS_asFunctionalComponent(McGridCol, new McGridCol({ key: ((tag.id)), }));
|
|
324
|
+
const __VLS_11 = __VLS_10({ key: ((tag.id)), }, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
[McFilterChip,];
|
|
327
|
+
// @ts-ignore
|
|
328
|
+
const __VLS_15 = __VLS_asFunctionalComponent(McFilterChip, new McFilterChip({ ...{ 'onClick': {} }, ...{ 'onClose': {} }, tag: ((tag)), isActive: ((__VLS_ctx.checkTagIsActive(tag))), closable: (true), }));
|
|
329
|
+
const __VLS_16 = __VLS_15({ ...{ 'onClick': {} }, ...{ 'onClose': {} }, tag: ((tag)), isActive: ((__VLS_ctx.checkTagIsActive(tag))), closable: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_15));
|
|
330
|
+
let __VLS_20;
|
|
331
|
+
const __VLS_21 = {
|
|
332
|
+
onClick: (() => __VLS_ctx.onTagClick(tag))
|
|
333
|
+
};
|
|
334
|
+
const __VLS_22 = {
|
|
335
|
+
onClose: (() => __VLS_ctx.onTagClose(tag))
|
|
336
|
+
};
|
|
337
|
+
let __VLS_17;
|
|
338
|
+
let __VLS_18;
|
|
339
|
+
var __VLS_19;
|
|
340
|
+
__VLS_nonNullable(__VLS_14.slots).default;
|
|
341
|
+
var __VLS_14;
|
|
342
|
+
}
|
|
343
|
+
__VLS_nonNullable(__VLS_9.slots).default;
|
|
344
|
+
var __VLS_9;
|
|
345
|
+
}
|
|
346
|
+
if (__VLS_ctx.relationRows.length) {
|
|
347
|
+
for (const [row, index] of __VLS_getVForSourceType((__VLS_ctx.relationRows))) {
|
|
348
|
+
// @ts-ignore
|
|
349
|
+
[McGridRow, McGridRow,];
|
|
350
|
+
// @ts-ignore
|
|
351
|
+
const __VLS_23 = __VLS_asFunctionalComponent(McGridRow, new McGridRow({ key: ((index)), gutterX: ((4)), gutterY: ((8)), }));
|
|
352
|
+
const __VLS_24 = __VLS_23({ key: ((index)), gutterX: ((4)), gutterY: ((8)), }, ...__VLS_functionalComponentArgsRest(__VLS_23));
|
|
353
|
+
for (const [tag] of __VLS_getVForSourceType((row))) {
|
|
354
|
+
// @ts-ignore
|
|
355
|
+
[McGridCol, McGridCol,];
|
|
356
|
+
// @ts-ignore
|
|
357
|
+
const __VLS_28 = __VLS_asFunctionalComponent(McGridCol, new McGridCol({ key: ((tag.id)), }));
|
|
358
|
+
const __VLS_29 = __VLS_28({ key: ((tag.id)), }, ...__VLS_functionalComponentArgsRest(__VLS_28));
|
|
359
|
+
// @ts-ignore
|
|
360
|
+
[McFilterChip,];
|
|
361
|
+
// @ts-ignore
|
|
362
|
+
const __VLS_33 = __VLS_asFunctionalComponent(McFilterChip, new McFilterChip({ ...{ 'onClick': {} }, ...{ 'onClose': {} }, tag: ((tag)), isActive: ((__VLS_ctx.checkTagIsActive(tag))), closable: ((tag.closable)), }));
|
|
363
|
+
const __VLS_34 = __VLS_33({ ...{ 'onClick': {} }, ...{ 'onClose': {} }, tag: ((tag)), isActive: ((__VLS_ctx.checkTagIsActive(tag))), closable: ((tag.closable)), }, ...__VLS_functionalComponentArgsRest(__VLS_33));
|
|
364
|
+
let __VLS_38;
|
|
365
|
+
const __VLS_39 = {
|
|
366
|
+
onClick: (() => __VLS_ctx.onTagClick(tag))
|
|
367
|
+
};
|
|
368
|
+
const __VLS_40 = {
|
|
369
|
+
onClose: (() => __VLS_ctx.onTagClose(tag, row[0].relationKey))
|
|
370
|
+
};
|
|
371
|
+
let __VLS_35;
|
|
372
|
+
let __VLS_36;
|
|
373
|
+
var __VLS_37;
|
|
374
|
+
__VLS_nonNullable(__VLS_32.slots).default;
|
|
375
|
+
var __VLS_32;
|
|
376
|
+
}
|
|
377
|
+
__VLS_nonNullable(__VLS_27.slots).default;
|
|
378
|
+
var __VLS_27;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (__VLS_ctx.fastFilterTags.length) {
|
|
382
|
+
// @ts-ignore
|
|
383
|
+
[McGridRow, McGridRow,];
|
|
384
|
+
// @ts-ignore
|
|
385
|
+
const __VLS_41 = __VLS_asFunctionalComponent(McGridRow, new McGridRow({ gutterX: ((4)), gutterY: ((8)), }));
|
|
386
|
+
const __VLS_42 = __VLS_41({ gutterX: ((4)), gutterY: ((8)), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
|
|
387
|
+
for (const [tag] of __VLS_getVForSourceType((__VLS_ctx.fastFilterTags))) {
|
|
388
|
+
// @ts-ignore
|
|
389
|
+
[McGridCol, McGridCol,];
|
|
390
|
+
// @ts-ignore
|
|
391
|
+
const __VLS_46 = __VLS_asFunctionalComponent(McGridCol, new McGridCol({ key: ((tag.id)), }));
|
|
392
|
+
const __VLS_47 = __VLS_46({ key: ((tag.id)), }, ...__VLS_functionalComponentArgsRest(__VLS_46));
|
|
393
|
+
// @ts-ignore
|
|
394
|
+
[McTooltip, McTooltip,];
|
|
395
|
+
// @ts-ignore
|
|
396
|
+
const __VLS_51 = __VLS_asFunctionalComponent(McTooltip, new McTooltip({ content: ((tag.description || '')), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }));
|
|
397
|
+
const __VLS_52 = __VLS_51({ content: ((tag.description || '')), placement: ((__VLS_ctx.TooltipPositions.Top)), size: ((__VLS_ctx.TooltipSizes.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_51));
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
[McFilterChip,];
|
|
400
|
+
// @ts-ignore
|
|
401
|
+
const __VLS_56 = __VLS_asFunctionalComponent(McFilterChip, new McFilterChip({ ...{ 'onClose': {} }, tag: ((tag)), closable: (true), }));
|
|
402
|
+
const __VLS_57 = __VLS_56({ ...{ 'onClose': {} }, tag: ((tag)), closable: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_56));
|
|
403
|
+
let __VLS_61;
|
|
404
|
+
const __VLS_62 = {
|
|
405
|
+
onClose: (() => __VLS_ctx.onTagClose(tag))
|
|
406
|
+
};
|
|
407
|
+
let __VLS_58;
|
|
408
|
+
let __VLS_59;
|
|
409
|
+
var __VLS_60;
|
|
410
|
+
__VLS_nonNullable(__VLS_55.slots).default;
|
|
411
|
+
var __VLS_55;
|
|
412
|
+
__VLS_nonNullable(__VLS_50.slots).default;
|
|
413
|
+
var __VLS_50;
|
|
414
|
+
}
|
|
415
|
+
__VLS_nonNullable(__VLS_45.slots).default;
|
|
416
|
+
var __VLS_45;
|
|
417
|
+
}
|
|
418
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-filter-tags__body-right") }, });
|
|
419
|
+
if (__VLS_ctx.hasButtonClear) {
|
|
420
|
+
// @ts-ignore
|
|
421
|
+
[McButton, McButton,];
|
|
422
|
+
// @ts-ignore
|
|
423
|
+
const __VLS_63 = __VLS_asFunctionalComponent(McButton, new McButton({ ...{ 'onClick': {} }, variation: ("dark-gray-outline"), }));
|
|
424
|
+
const __VLS_64 = __VLS_63({ ...{ 'onClick': {} }, variation: ("dark-gray-outline"), }, ...__VLS_functionalComponentArgsRest(__VLS_63));
|
|
425
|
+
let __VLS_68;
|
|
426
|
+
const __VLS_69 = {
|
|
427
|
+
onClick: (__VLS_ctx.handleClear)
|
|
428
|
+
};
|
|
429
|
+
let __VLS_65;
|
|
430
|
+
let __VLS_66;
|
|
431
|
+
(__VLS_ctx.placeholders.actions.clear);
|
|
432
|
+
__VLS_nonNullable(__VLS_67.slots).default;
|
|
433
|
+
var __VLS_67;
|
|
434
|
+
}
|
|
435
|
+
__VLS_styleScopedClasses['mc-filter-tags'];
|
|
436
|
+
__VLS_styleScopedClasses['mc-filter-tags__body'];
|
|
437
|
+
__VLS_styleScopedClasses['mc-filter-tags__body-left'];
|
|
438
|
+
__VLS_styleScopedClasses['mc-filter-tags__body-right'];
|
|
439
|
+
var __VLS_slots;
|
|
440
|
+
var __VLS_inheritedAttrs;
|
|
441
|
+
const __VLS_refs = {};
|
|
442
|
+
var $refs;
|
|
443
|
+
var $el;
|
|
444
|
+
return {
|
|
445
|
+
attrs: {},
|
|
446
|
+
slots: __VLS_slots,
|
|
447
|
+
refs: $refs,
|
|
448
|
+
rootEl: $el,
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
;
|
|
452
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
453
|
+
setup() {
|
|
454
|
+
return {
|
|
455
|
+
McButton: McButton,
|
|
456
|
+
McTooltip: McTooltip,
|
|
457
|
+
McTitle: McTitle,
|
|
458
|
+
McGridRow: McGridRow,
|
|
459
|
+
McGridCol: McGridCol,
|
|
460
|
+
McFilterChip: McFilterChip,
|
|
461
|
+
TooltipPositions: TooltipPositions,
|
|
462
|
+
TooltipSizes: TooltipSizes,
|
|
463
|
+
fastFilterTags: fastFilterTags,
|
|
464
|
+
tagsWithoutFast: tagsWithoutFast,
|
|
465
|
+
relationRows: relationRows,
|
|
466
|
+
hasButtonClear: hasButtonClear,
|
|
467
|
+
onTagClick: onTagClick,
|
|
468
|
+
onTagClose: onTagClose,
|
|
469
|
+
handleClear: handleClear,
|
|
470
|
+
checkTagIsActive: checkTagIsActive,
|
|
471
|
+
};
|
|
472
|
+
},
|
|
473
|
+
__typeEmits: {},
|
|
474
|
+
props: {
|
|
475
|
+
/**
|
|
476
|
+
* Данные фильтра
|
|
477
|
+
*/
|
|
478
|
+
modelValue: {
|
|
479
|
+
type: Object,
|
|
480
|
+
default: () => ({})
|
|
481
|
+
},
|
|
482
|
+
/**
|
|
483
|
+
* Типы фильтров
|
|
484
|
+
*/
|
|
485
|
+
filters: {
|
|
486
|
+
type: Array,
|
|
487
|
+
required: true,
|
|
488
|
+
default: () => []
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
* Переводы локализаций
|
|
492
|
+
*/
|
|
493
|
+
placeholders: {
|
|
494
|
+
type: Object,
|
|
495
|
+
required: true
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
* Активный тэг
|
|
499
|
+
*/
|
|
500
|
+
activeTag: {
|
|
501
|
+
type: Object,
|
|
502
|
+
default: () => ({})
|
|
503
|
+
},
|
|
504
|
+
useTimezone: {
|
|
505
|
+
type: Boolean,
|
|
506
|
+
default: true
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
});
|
|
510
|
+
export default (await import('vue')).defineComponent({
|
|
511
|
+
setup() {
|
|
512
|
+
return {};
|
|
513
|
+
},
|
|
514
|
+
__typeEmits: {},
|
|
515
|
+
props: {
|
|
516
|
+
/**
|
|
517
|
+
* Данные фильтра
|
|
518
|
+
*/
|
|
519
|
+
modelValue: {
|
|
520
|
+
type: Object,
|
|
521
|
+
default: () => ({})
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* Типы фильтров
|
|
525
|
+
*/
|
|
526
|
+
filters: {
|
|
527
|
+
type: Array,
|
|
528
|
+
required: true,
|
|
529
|
+
default: () => []
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* Переводы локализаций
|
|
533
|
+
*/
|
|
534
|
+
placeholders: {
|
|
535
|
+
type: Object,
|
|
536
|
+
required: true
|
|
537
|
+
},
|
|
538
|
+
/**
|
|
539
|
+
* Активный тэг
|
|
540
|
+
*/
|
|
541
|
+
activeTag: {
|
|
542
|
+
type: Object,
|
|
543
|
+
default: () => ({})
|
|
544
|
+
},
|
|
545
|
+
useTimezone: {
|
|
546
|
+
type: Boolean,
|
|
547
|
+
default: true
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
__typeEl: {},
|
|
551
|
+
});
|
|
552
|
+
; /* PartiallyEnd: #4569/main.vue */
|