mediacube-ui-v2 0.0.33 → 0.0.34
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/src/App.vue.d.ts +1 -1
- package/dist/src/App.vue.d.ts.map +1 -1
- package/dist/src/assets/tokens/json/animations.json.d.ts +8 -0
- package/dist/src/assets/tokens/json/border-radius.json.d.ts +26 -0
- package/dist/src/assets/tokens/json/box-shadows.json.d.ts +26 -0
- package/dist/src/assets/tokens/json/colors.json.d.ts +73 -0
- package/dist/src/assets/tokens/json/durations.json.d.ts +12 -0
- package/dist/src/assets/tokens/json/easings.json.d.ts +5 -0
- package/dist/src/assets/tokens/json/font-families.json.d.ts +6 -0
- package/dist/src/assets/tokens/json/font-sizes.json.d.ts +20 -0
- package/dist/src/assets/tokens/json/font-weights.json.d.ts +14 -0
- package/dist/src/assets/tokens/json/gradients.json.d.ts +15 -0
- package/dist/src/assets/tokens/json/index.d.ts +17 -17
- package/dist/src/assets/tokens/json/letter-spacings.json.d.ts +6 -0
- package/dist/src/assets/tokens/json/line-heights.json.d.ts +20 -0
- package/dist/src/assets/tokens/json/media-queries.json.d.ts +28 -0
- package/dist/src/assets/tokens/json/opacities.json.d.ts +7 -0
- package/dist/src/assets/tokens/json/sizes.json.d.ts +44 -0
- package/dist/src/assets/tokens/json/spacings.json.d.ts +36 -0
- package/dist/src/assets/tokens/json/z-indexes.json.d.ts +14 -0
- package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts +5 -5
- package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McBadge/McBadge.vue.d.ts +3 -3
- package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +3 -3
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McButton/McButton.vue.d.ts +9 -10
- package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McChip/McChip.vue.d.ts +6 -7
- package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -2
- package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts +4 -4
- package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
- package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
- package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
- package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
- package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -9
- package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts +9 -9
- package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
- package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
- package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McNodata/McNoData.vue.d.ts +5 -5
- package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McNotification/McNotification.vue.d.ts +5 -5
- package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McProgress/McProgress.vue.d.ts +5 -5
- package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts +4 -4
- package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
- package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McStack/McStack.vue.d.ts +4 -4
- package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
- package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McTitle/McTitle.vue.d.ts +7 -7
- package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +1 -1
- package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts +6 -6
- package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
- package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McCell/McCell.vue.d.ts +6 -6
- package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
- package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
- package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +4 -4
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
- package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
- package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
- package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
- package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts +4 -4
- package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -7
- package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
- package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -5
- package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
- package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -6
- package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McTab/McTab.vue.d.ts +5 -5
- package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts +7 -8
- package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +1 -1
- package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
- package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts +7 -7
- package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
- package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
- package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McModal/McModal.vue.d.ts +7 -7
- package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts +5 -5
- package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts +7 -7
- package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
- package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
- package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +5 -5
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -6
- package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts +4 -4
- package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +1 -1
- package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
- package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +1 -1
- package/dist/src/composables/index.d.ts +1 -1
- package/dist/src/composables/useDrawer.d.ts +1 -1
- package/dist/src/composables/useFieldErrors.d.ts +2 -2
- package/dist/src/composables/useTooltip.d.ts +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/main.d.ts +0 -2
- package/dist/src/mocks/filterMocks.d.ts +1 -1
- package/dist/src/mocks/icons.json.d.ts +3 -0
- package/dist/src/mocks/sidebar.d.ts +1 -1
- package/dist/src/mocks/tableData.d.ts +1 -1
- package/dist/src/types/IButton.d.ts +5 -5
- package/dist/src/types/ICell.d.ts +1 -1
- package/dist/src/types/IChip.d.ts +2 -2
- package/dist/src/types/IDatepicker.d.ts +1 -1
- package/dist/src/types/IDirections.d.ts +1 -1
- package/dist/src/types/IDrawer.d.ts +2 -2
- package/dist/src/types/IDropdown.d.ts +1 -1
- package/dist/src/types/IFilter.d.ts +1 -1
- package/dist/src/types/IInput.d.ts +1 -1
- package/dist/src/types/IModal.d.ts +2 -2
- package/dist/src/types/IPreview.d.ts +1 -1
- package/dist/src/types/IRadio.d.ts +1 -1
- package/dist/src/types/IRadioGroup.d.ts +1 -1
- package/dist/src/types/ISelect.d.ts +1 -1
- package/dist/src/types/ISideBar.d.ts +5 -5
- package/dist/src/types/ITable.d.ts +2 -2
- package/dist/src/types/ITabs.d.ts +4 -4
- package/dist/src/types/ITitle.d.ts +1 -1
- package/dist/src/types/ITooltip.d.ts +1 -1
- package/dist/src/types/styles/Alignment.d.ts +1 -1
- package/dist/src/types/styles/Grid.d.ts +1 -1
- package/dist/src/types/styles/Weights.d.ts +1 -1
- package/dist/src/utils/mcGridColAdaptiveProps.d.ts +1 -1
- package/dist/src/utils/mcTitleAdaptiveProps.d.ts +1 -1
- package/package.json +2 -3
- package/dist/mediacube-ui-v2.umd.js +0 -7
- package/dist/src/App.vue.js +0 -54
- package/dist/src/assets/tokens/json/animations.json +0 -6
- package/dist/src/assets/tokens/json/border-radius.json +0 -24
- package/dist/src/assets/tokens/json/box-shadows.json +0 -24
- package/dist/src/assets/tokens/json/colors.json +0 -71
- package/dist/src/assets/tokens/json/durations.json +0 -10
- package/dist/src/assets/tokens/json/easings.json +0 -3
- package/dist/src/assets/tokens/json/font-families.json +0 -4
- package/dist/src/assets/tokens/json/font-sizes.json +0 -18
- package/dist/src/assets/tokens/json/font-weights.json +0 -12
- package/dist/src/assets/tokens/json/gradients.json +0 -13
- package/dist/src/assets/tokens/json/index.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.js +0 -412
- package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
- package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
- package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
- 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.js +0 -1251
- package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
- package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
- package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
- package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
- package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
- package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
- package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
- package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
- package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
- package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
- package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
- package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
- package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
- package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
- package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
- package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
- package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
- package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
- package/dist/src/components/index.js +0 -69
- package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
- package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
- package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
- package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
- package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
- package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
- package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
- package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
- package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
- package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
- package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
- package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
- package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
- package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
- package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
- package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
- package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
- package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
- package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
- package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
- package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
- package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
- package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
- package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
- package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
- package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
- package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
- package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
- package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
- package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
- package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
- package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
- package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
- package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
- package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
- package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
- package/dist/src/composables/index.js +0 -7
- package/dist/src/composables/useDrawer.js +0 -72
- package/dist/src/composables/useEncodeDecode.js +0 -25
- package/dist/src/composables/useFieldErrors.js +0 -20
- package/dist/src/composables/useHelper.js +0 -79
- package/dist/src/composables/useModal.js +0 -71
- package/dist/src/composables/useRandomNumber.js +0 -10
- package/dist/src/composables/useTooltip.js +0 -154
- package/dist/src/consts/index.js +0 -1
- package/dist/src/consts/table.js +0 -6
- package/dist/src/enums/Cell.js +0 -6
- package/dist/src/enums/Chip.js +0 -11
- package/dist/src/enums/Datepicker.js +0 -42
- package/dist/src/enums/Drawer.js +0 -5
- package/dist/src/enums/Dropdown.js +0 -12
- package/dist/src/enums/Filter.js +0 -14
- package/dist/src/enums/Grid.js +0 -24
- package/dist/src/enums/Input.js +0 -20
- package/dist/src/enums/Modal.js +0 -5
- package/dist/src/enums/Preview.js +0 -6
- package/dist/src/enums/Radio.js +0 -5
- package/dist/src/enums/RadioGroup.js +0 -5
- package/dist/src/enums/Select.js +0 -11
- package/dist/src/enums/Sidebar.js +0 -5
- package/dist/src/enums/Tab.js +0 -6
- package/dist/src/enums/Title.js +0 -21
- package/dist/src/enums/Tooltip.js +0 -15
- package/dist/src/enums/index.js +0 -22
- package/dist/src/enums/ui/Alignment.js +0 -6
- package/dist/src/enums/ui/Button.js +0 -24
- package/dist/src/enums/ui/Directions.js +0 -5
- package/dist/src/enums/ui/Weights.js +0 -7
- package/dist/src/index.js +0 -17
- package/dist/src/main.js +0 -8
- package/dist/src/mocks/authUser.js +0 -162
- package/dist/src/mocks/categories.js +0 -108
- package/dist/src/mocks/filterMocks.js +0 -128
- package/dist/src/mocks/icons.json +0 -1
- package/dist/src/mocks/menuLangs.js +0 -19
- package/dist/src/mocks/selectOptions.json +0 -111
- package/dist/src/mocks/sidebar.js +0 -125
- package/dist/src/mocks/tableData.js +0 -8180
- package/dist/src/types/IButton.js +0 -1
- package/dist/src/types/ICell.js +0 -1
- package/dist/src/types/IChip.js +0 -1
- package/dist/src/types/ICollapse.js +0 -1
- package/dist/src/types/IDatepicker.js +0 -1
- package/dist/src/types/IDirections.js +0 -1
- package/dist/src/types/IDrawer.js +0 -1
- package/dist/src/types/IDropdown.js +0 -1
- package/dist/src/types/IFilter.js +0 -1
- package/dist/src/types/IGrid.js +0 -1
- package/dist/src/types/IInput.js +0 -1
- package/dist/src/types/IModal.js +0 -1
- package/dist/src/types/IPreview.js +0 -1
- package/dist/src/types/IRadio.js +0 -1
- package/dist/src/types/IRadioGroup.js +0 -1
- package/dist/src/types/IRoute.js +0 -1
- package/dist/src/types/ISelect.js +0 -1
- package/dist/src/types/ISideBar.js +0 -1
- package/dist/src/types/ITable.js +0 -1
- package/dist/src/types/ITabs.js +0 -1
- package/dist/src/types/ITitle.js +0 -1
- package/dist/src/types/ITooltip.js +0 -1
- package/dist/src/types/index.js +0 -38
- package/dist/src/types/styles/Alignment.js +0 -1
- package/dist/src/types/styles/AvatarSizes.js +0 -3
- package/dist/src/types/styles/Colors.js +0 -3
- package/dist/src/types/styles/Durations.js +0 -3
- package/dist/src/types/styles/FontSizes.js +0 -3
- package/dist/src/types/styles/FontWeights.js +0 -3
- package/dist/src/types/styles/Grid.js +0 -1
- package/dist/src/types/styles/Icons.js +0 -2
- package/dist/src/types/styles/LineHeights.js +0 -3
- package/dist/src/types/styles/MediaQueries.js +0 -3
- package/dist/src/types/styles/Radiuses.js +0 -3
- package/dist/src/types/styles/Sizes.js +0 -3
- package/dist/src/types/styles/Spaces.js +0 -3
- package/dist/src/types/styles/Weights.js +0 -1
- package/dist/src/utils/dayjs.js +0 -22
- package/dist/src/utils/index.js +0 -2
- package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
- package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,1037 +0,0 @@
|
|
|
1
|
-
import { computed, ref } from 'vue';
|
|
2
|
-
import { Colors } from '@/types/styles/Colors';
|
|
3
|
-
import { FontWeights } from '@/types/styles/FontWeights';
|
|
4
|
-
import { useTooltip } from '@/composables';
|
|
5
|
-
import { TooltipPositions, TooltipSizes } from '@/enums/Tooltip';
|
|
6
|
-
import { McSvgIcon } from '@/components';
|
|
7
|
-
import { ButtonModifiers } from '@/enums';
|
|
8
|
-
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
9
|
-
const vTooltip = useTooltip();
|
|
10
|
-
const buttonTooltip = computed(() => {
|
|
11
|
-
let payload = {};
|
|
12
|
-
if (props.tooltip) {
|
|
13
|
-
payload = {
|
|
14
|
-
content: props.tooltip,
|
|
15
|
-
size: TooltipSizes.M,
|
|
16
|
-
placement: props.tooltipPlacement || TooltipPositions.Top,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
return payload;
|
|
20
|
-
});
|
|
21
|
-
const props = defineProps({
|
|
22
|
-
/**
|
|
23
|
-
* Если нужна ссылка внутри приложения:
|
|
24
|
-
*/
|
|
25
|
-
to: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* Если нужна обычная ссылка:
|
|
30
|
-
* `https://mediacube.agency/`
|
|
31
|
-
*/
|
|
32
|
-
href: {
|
|
33
|
-
type: String,
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* По умолчанию ожидается использование в `Nuxt`
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
nuxt: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: true
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Отключенное состояние
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
disabled: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* Дизэйблить не меняя внешнего вида
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
inactive: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: false
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Индикация загрузки
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
loading: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: false
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* Индикация загрузки
|
|
69
|
-
* вращением иконки
|
|
70
|
-
*/
|
|
71
|
-
iconLoading: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* Типы:
|
|
77
|
-
* `button, submit, reset`
|
|
78
|
-
*/
|
|
79
|
-
type: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: null
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* Дизайн:
|
|
85
|
-
* `purple, red, purple-outline, purple-invert, purple-flat и т.д.`
|
|
86
|
-
*/
|
|
87
|
-
variation: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: 'purple'
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* Размеры:
|
|
93
|
-
* `xs, xs-compact, s, s-compact, m, m-compact, l, l-compact`
|
|
94
|
-
*/
|
|
95
|
-
size: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: 'm'
|
|
98
|
-
},
|
|
99
|
-
/**
|
|
100
|
-
* Тень
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
shadow: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: false
|
|
106
|
-
},
|
|
107
|
-
/**
|
|
108
|
-
* Круглая (применимо для *-compact size)
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
rounded: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
default: false
|
|
114
|
-
},
|
|
115
|
-
/**
|
|
116
|
-
* Закругленная
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
|
-
semiRounded: {
|
|
120
|
-
type: Boolean,
|
|
121
|
-
default: false
|
|
122
|
-
},
|
|
123
|
-
/**
|
|
124
|
-
* Позиция текста внутри кнопки:
|
|
125
|
-
* `left, center, right`
|
|
126
|
-
*/
|
|
127
|
-
textAlign: {
|
|
128
|
-
type: String,
|
|
129
|
-
default: 'center'
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
* На всю ширину
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
135
|
-
fullWidth: {
|
|
136
|
-
type: Boolean,
|
|
137
|
-
default: false
|
|
138
|
-
},
|
|
139
|
-
/**
|
|
140
|
-
* Если нужно активное состояние
|
|
141
|
-
*
|
|
142
|
-
*/
|
|
143
|
-
isActive: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
default: false
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
* exact
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
151
|
-
exact: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: false
|
|
154
|
-
},
|
|
155
|
-
/**
|
|
156
|
-
* Заглавные буквы
|
|
157
|
-
*/
|
|
158
|
-
uppercase: {
|
|
159
|
-
type: Boolean,
|
|
160
|
-
default: false
|
|
161
|
-
},
|
|
162
|
-
/**
|
|
163
|
-
* Тег по умолчанию
|
|
164
|
-
*/
|
|
165
|
-
defaultTag: {
|
|
166
|
-
type: String,
|
|
167
|
-
default: 'button'
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* Если нужен другой цвет при взаимодействии
|
|
171
|
-
*/
|
|
172
|
-
secondaryColor: {
|
|
173
|
-
type: String,
|
|
174
|
-
default: null
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* Если нужна подчёркнутая ссылка
|
|
178
|
-
*/
|
|
179
|
-
underlineLink: {
|
|
180
|
-
type: Boolean,
|
|
181
|
-
default: false
|
|
182
|
-
},
|
|
183
|
-
/**
|
|
184
|
-
* Если нужен постоянный
|
|
185
|
-
* фон у типа 'flat'
|
|
186
|
-
*/
|
|
187
|
-
bgFlat: {
|
|
188
|
-
type: Boolean,
|
|
189
|
-
default: false
|
|
190
|
-
},
|
|
191
|
-
/**
|
|
192
|
-
* Жирность шрифта:
|
|
193
|
-
* `normal, medium, semi-bold`
|
|
194
|
-
*/
|
|
195
|
-
weight: {
|
|
196
|
-
type: String,
|
|
197
|
-
default: 'semi-bold'
|
|
198
|
-
},
|
|
199
|
-
/**
|
|
200
|
-
* Тултип при наличии
|
|
201
|
-
*/
|
|
202
|
-
tooltip: {
|
|
203
|
-
type: String,
|
|
204
|
-
default: null
|
|
205
|
-
},
|
|
206
|
-
tooltipPlacement: {
|
|
207
|
-
type: String,
|
|
208
|
-
default: null,
|
|
209
|
-
},
|
|
210
|
-
/**
|
|
211
|
-
* Атрибут tabindex для главного элемента
|
|
212
|
-
*
|
|
213
|
-
*/
|
|
214
|
-
tabindex: {
|
|
215
|
-
type: [String, Number]
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
const mcButton = ref(null);
|
|
219
|
-
const emit = defineEmits(['blur', 'click']);
|
|
220
|
-
const classes = computed(() => {
|
|
221
|
-
return {
|
|
222
|
-
[`mc-button--variation-${props.variation}`]: !!props.variation,
|
|
223
|
-
[`mc-button--size-${props.size}`]: !!props.size,
|
|
224
|
-
[`mc-button--text-align-${props.textAlign}`]: !!props.textAlign,
|
|
225
|
-
'mc-button--loading': !!props.loading,
|
|
226
|
-
'mc-button--icon-loading': !!props.iconLoading,
|
|
227
|
-
'mc-button--is-active': !!props.isActive,
|
|
228
|
-
'mc-button--disabled': !!props.disabled,
|
|
229
|
-
'mc-button--rounded': props.rounded && /-compact$/.test(props.size),
|
|
230
|
-
'mc-button--semi-rounded': !!props.semiRounded,
|
|
231
|
-
'mc-button--full-width': !!props.fullWidth,
|
|
232
|
-
'mc-button--uppercase': !!props.uppercase,
|
|
233
|
-
'mc-button--shadow': !!props.shadow,
|
|
234
|
-
'mc-button--secondary-color': !!props.secondaryColor,
|
|
235
|
-
'mc-button--underline-link': !!props.underlineLink,
|
|
236
|
-
'mc-button--bg-flat': !!props.bgFlat,
|
|
237
|
-
[`mc-button--type-${buttonVariation.value.type}`]: !!buttonVariation.value.type,
|
|
238
|
-
'mc-button--inactive': !!props.inactive
|
|
239
|
-
};
|
|
240
|
-
});
|
|
241
|
-
const buttonVariation = computed(() => {
|
|
242
|
-
const variation = props.variation;
|
|
243
|
-
const texts = variation.split('-');
|
|
244
|
-
const currentStyle = texts[texts.length - 1];
|
|
245
|
-
let color = variation.replace(`-${currentStyle}`, '');
|
|
246
|
-
switch (currentStyle) {
|
|
247
|
-
case ButtonModifiers.Link:
|
|
248
|
-
case ButtonModifiers.Flat:
|
|
249
|
-
case ButtonModifiers.Outline:
|
|
250
|
-
case ButtonModifiers.Invert: {
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
default: {
|
|
254
|
-
color = variation;
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return {
|
|
259
|
-
color: color,
|
|
260
|
-
type: currentStyle
|
|
261
|
-
};
|
|
262
|
-
});
|
|
263
|
-
const styles = computed(() => {
|
|
264
|
-
let hoverBrightness;
|
|
265
|
-
let textColor;
|
|
266
|
-
switch (buttonVariation.value.type) {
|
|
267
|
-
case ButtonModifiers.Link:
|
|
268
|
-
case ButtonModifiers.Flat:
|
|
269
|
-
case ButtonModifiers.Outline:
|
|
270
|
-
case ButtonModifiers.Invert: {
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
default: {
|
|
274
|
-
switch (buttonVariation.value.color) {
|
|
275
|
-
case 'yellow':
|
|
276
|
-
case 'white': {
|
|
277
|
-
hoverBrightness = '0.9';
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
case 'toxic': {
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
default: {
|
|
284
|
-
textColor = 'white';
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return {
|
|
291
|
-
'--mc-button-secondary-color': props.secondaryColor && Colors[props.secondaryColor],
|
|
292
|
-
'--mc-button-background-color': props.variation && Colors[buttonVariation.value.color],
|
|
293
|
-
'--mc-button-font-weight': props.weight && FontWeights[props.weight],
|
|
294
|
-
'--mc-button-hover-brightness': hoverBrightness,
|
|
295
|
-
'--mc-button-text-color': textColor && Colors[textColor]
|
|
296
|
-
};
|
|
297
|
-
});
|
|
298
|
-
const tag = computed(() => {
|
|
299
|
-
if (props.to) {
|
|
300
|
-
return props.nuxt ? 'nuxt-link' : 'router-link';
|
|
301
|
-
}
|
|
302
|
-
else if (props.href) {
|
|
303
|
-
return 'a';
|
|
304
|
-
}
|
|
305
|
-
return props.defaultTag;
|
|
306
|
-
});
|
|
307
|
-
const isVariationLink = computed(() => {
|
|
308
|
-
return buttonVariation.value.type === ButtonModifiers.Link;
|
|
309
|
-
});
|
|
310
|
-
const tagBind = computed(() => {
|
|
311
|
-
let result = {
|
|
312
|
-
to: props.to,
|
|
313
|
-
href: props.href,
|
|
314
|
-
disabled: false,
|
|
315
|
-
rel: '',
|
|
316
|
-
type: props.type,
|
|
317
|
-
tabindex: props.tabindex
|
|
318
|
-
};
|
|
319
|
-
if (props.to) {
|
|
320
|
-
delete result.href;
|
|
321
|
-
}
|
|
322
|
-
else if (props.href) {
|
|
323
|
-
delete result.to;
|
|
324
|
-
}
|
|
325
|
-
else if (props.disabled || props.loading) {
|
|
326
|
-
result.disabled = true;
|
|
327
|
-
}
|
|
328
|
-
if (isVariationLink.value)
|
|
329
|
-
result.rel = 'noreferrer';
|
|
330
|
-
return result;
|
|
331
|
-
});
|
|
332
|
-
const handleBlur = (e) => {
|
|
333
|
-
emit('blur', e);
|
|
334
|
-
};
|
|
335
|
-
const handleClick = (e) => {
|
|
336
|
-
emit('click', e);
|
|
337
|
-
}; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
338
|
-
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
339
|
-
props: {
|
|
340
|
-
/**
|
|
341
|
-
* Если нужна ссылка внутри приложения:
|
|
342
|
-
*/
|
|
343
|
-
to: {
|
|
344
|
-
type: String,
|
|
345
|
-
},
|
|
346
|
-
/**
|
|
347
|
-
* Если нужна обычная ссылка:
|
|
348
|
-
* `https://mediacube.agency/`
|
|
349
|
-
*/
|
|
350
|
-
href: {
|
|
351
|
-
type: String,
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* По умолчанию ожидается использование в `Nuxt`
|
|
355
|
-
*
|
|
356
|
-
*/
|
|
357
|
-
nuxt: {
|
|
358
|
-
type: Boolean,
|
|
359
|
-
default: true
|
|
360
|
-
},
|
|
361
|
-
/**
|
|
362
|
-
* Отключенное состояние
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
disabled: {
|
|
366
|
-
type: Boolean,
|
|
367
|
-
default: false
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
* Дизэйблить не меняя внешнего вида
|
|
371
|
-
*
|
|
372
|
-
*/
|
|
373
|
-
inactive: {
|
|
374
|
-
type: Boolean,
|
|
375
|
-
default: false
|
|
376
|
-
},
|
|
377
|
-
/**
|
|
378
|
-
* Индикация загрузки
|
|
379
|
-
*
|
|
380
|
-
*/
|
|
381
|
-
loading: {
|
|
382
|
-
type: Boolean,
|
|
383
|
-
default: false
|
|
384
|
-
},
|
|
385
|
-
/**
|
|
386
|
-
* Индикация загрузки
|
|
387
|
-
* вращением иконки
|
|
388
|
-
*/
|
|
389
|
-
iconLoading: {
|
|
390
|
-
type: Boolean,
|
|
391
|
-
default: false
|
|
392
|
-
},
|
|
393
|
-
/**
|
|
394
|
-
* Типы:
|
|
395
|
-
* `button, submit, reset`
|
|
396
|
-
*/
|
|
397
|
-
type: {
|
|
398
|
-
type: String,
|
|
399
|
-
default: null
|
|
400
|
-
},
|
|
401
|
-
/**
|
|
402
|
-
* Дизайн:
|
|
403
|
-
* `purple, red, purple-outline, purple-invert, purple-flat и т.д.`
|
|
404
|
-
*/
|
|
405
|
-
variation: {
|
|
406
|
-
type: String,
|
|
407
|
-
default: 'purple'
|
|
408
|
-
},
|
|
409
|
-
/**
|
|
410
|
-
* Размеры:
|
|
411
|
-
* `xs, xs-compact, s, s-compact, m, m-compact, l, l-compact`
|
|
412
|
-
*/
|
|
413
|
-
size: {
|
|
414
|
-
type: String,
|
|
415
|
-
default: 'm'
|
|
416
|
-
},
|
|
417
|
-
/**
|
|
418
|
-
* Тень
|
|
419
|
-
*
|
|
420
|
-
*/
|
|
421
|
-
shadow: {
|
|
422
|
-
type: Boolean,
|
|
423
|
-
default: false
|
|
424
|
-
},
|
|
425
|
-
/**
|
|
426
|
-
* Круглая (применимо для *-compact size)
|
|
427
|
-
*
|
|
428
|
-
*/
|
|
429
|
-
rounded: {
|
|
430
|
-
type: Boolean,
|
|
431
|
-
default: false
|
|
432
|
-
},
|
|
433
|
-
/**
|
|
434
|
-
* Закругленная
|
|
435
|
-
*
|
|
436
|
-
*/
|
|
437
|
-
semiRounded: {
|
|
438
|
-
type: Boolean,
|
|
439
|
-
default: false
|
|
440
|
-
},
|
|
441
|
-
/**
|
|
442
|
-
* Позиция текста внутри кнопки:
|
|
443
|
-
* `left, center, right`
|
|
444
|
-
*/
|
|
445
|
-
textAlign: {
|
|
446
|
-
type: String,
|
|
447
|
-
default: 'center'
|
|
448
|
-
},
|
|
449
|
-
/**
|
|
450
|
-
* На всю ширину
|
|
451
|
-
*
|
|
452
|
-
*/
|
|
453
|
-
fullWidth: {
|
|
454
|
-
type: Boolean,
|
|
455
|
-
default: false
|
|
456
|
-
},
|
|
457
|
-
/**
|
|
458
|
-
* Если нужно активное состояние
|
|
459
|
-
*
|
|
460
|
-
*/
|
|
461
|
-
isActive: {
|
|
462
|
-
type: Boolean,
|
|
463
|
-
default: false
|
|
464
|
-
},
|
|
465
|
-
/**
|
|
466
|
-
* exact
|
|
467
|
-
*
|
|
468
|
-
*/
|
|
469
|
-
exact: {
|
|
470
|
-
type: Boolean,
|
|
471
|
-
default: false
|
|
472
|
-
},
|
|
473
|
-
/**
|
|
474
|
-
* Заглавные буквы
|
|
475
|
-
*/
|
|
476
|
-
uppercase: {
|
|
477
|
-
type: Boolean,
|
|
478
|
-
default: false
|
|
479
|
-
},
|
|
480
|
-
/**
|
|
481
|
-
* Тег по умолчанию
|
|
482
|
-
*/
|
|
483
|
-
defaultTag: {
|
|
484
|
-
type: String,
|
|
485
|
-
default: 'button'
|
|
486
|
-
},
|
|
487
|
-
/**
|
|
488
|
-
* Если нужен другой цвет при взаимодействии
|
|
489
|
-
*/
|
|
490
|
-
secondaryColor: {
|
|
491
|
-
type: String,
|
|
492
|
-
default: null
|
|
493
|
-
},
|
|
494
|
-
/**
|
|
495
|
-
* Если нужна подчёркнутая ссылка
|
|
496
|
-
*/
|
|
497
|
-
underlineLink: {
|
|
498
|
-
type: Boolean,
|
|
499
|
-
default: false
|
|
500
|
-
},
|
|
501
|
-
/**
|
|
502
|
-
* Если нужен постоянный
|
|
503
|
-
* фон у типа 'flat'
|
|
504
|
-
*/
|
|
505
|
-
bgFlat: {
|
|
506
|
-
type: Boolean,
|
|
507
|
-
default: false
|
|
508
|
-
},
|
|
509
|
-
/**
|
|
510
|
-
* Жирность шрифта:
|
|
511
|
-
* `normal, medium, semi-bold`
|
|
512
|
-
*/
|
|
513
|
-
weight: {
|
|
514
|
-
type: String,
|
|
515
|
-
default: 'semi-bold'
|
|
516
|
-
},
|
|
517
|
-
/**
|
|
518
|
-
* Тултип при наличии
|
|
519
|
-
*/
|
|
520
|
-
tooltip: {
|
|
521
|
-
type: String,
|
|
522
|
-
default: null
|
|
523
|
-
},
|
|
524
|
-
tooltipPlacement: {
|
|
525
|
-
type: String,
|
|
526
|
-
default: null,
|
|
527
|
-
},
|
|
528
|
-
/**
|
|
529
|
-
* Атрибут tabindex для главного элемента
|
|
530
|
-
*
|
|
531
|
-
*/
|
|
532
|
-
tabindex: {
|
|
533
|
-
type: [String, Number]
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
emits: {},
|
|
537
|
-
});
|
|
538
|
-
;
|
|
539
|
-
let __VLS_functionalComponentProps;
|
|
540
|
-
function __VLS_template() {
|
|
541
|
-
const __VLS_ctx = {};
|
|
542
|
-
const __VLS_localComponents = {
|
|
543
|
-
...{},
|
|
544
|
-
...{},
|
|
545
|
-
...__VLS_ctx,
|
|
546
|
-
};
|
|
547
|
-
let __VLS_components;
|
|
548
|
-
const __VLS_localDirectives = {
|
|
549
|
-
...{},
|
|
550
|
-
...__VLS_ctx,
|
|
551
|
-
};
|
|
552
|
-
let __VLS_directives;
|
|
553
|
-
let __VLS_styleScopedClasses;
|
|
554
|
-
// CSS variable injection
|
|
555
|
-
// CSS variable injection end
|
|
556
|
-
let __VLS_resolvedLocalAndGlobalComponents;
|
|
557
|
-
const __VLS_0 = ((__VLS_ctx.tag));
|
|
558
|
-
// @ts-ignore
|
|
559
|
-
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ 'onBlur': {} }, ...{ 'onClick': {} }, ref: ((__VLS_ctx.mcButton)), ...({ ...__VLS_ctx.tagBind }), ...{ class: ("mc-button") }, ...{ class: ((__VLS_ctx.classes)) }, exact: ((__VLS_ctx.exact)), ...{ style: ((__VLS_ctx.styles)) }, }));
|
|
560
|
-
const __VLS_2 = __VLS_1({ ...{ 'onBlur': {} }, ...{ 'onClick': {} }, ref: ((__VLS_ctx.mcButton)), ...({ ...__VLS_ctx.tagBind }), ...{ class: ("mc-button") }, ...{ class: ((__VLS_ctx.classes)) }, exact: ((__VLS_ctx.exact)), ...{ style: ((__VLS_ctx.styles)) }, }, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
561
|
-
__VLS_asFunctionalDirective(__VLS_directives.vTooltip)(null, { ...__VLS_directiveBindingRestFields, modifiers: {}, value: (__VLS_ctx.buttonTooltip) }, null, null);
|
|
562
|
-
var __VLS_6 = {};
|
|
563
|
-
let __VLS_7;
|
|
564
|
-
const __VLS_8 = {
|
|
565
|
-
onBlur: (__VLS_ctx.handleBlur)
|
|
566
|
-
};
|
|
567
|
-
const __VLS_9 = {
|
|
568
|
-
onClick: (__VLS_ctx.handleClick)
|
|
569
|
-
};
|
|
570
|
-
let __VLS_3;
|
|
571
|
-
let __VLS_4;
|
|
572
|
-
if (__VLS_ctx.$slots['icon-prepend']) {
|
|
573
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({ ...{ class: ("mc-button__prepend") }, });
|
|
574
|
-
var __VLS_10 = {};
|
|
575
|
-
}
|
|
576
|
-
if (__VLS_ctx.loading) {
|
|
577
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({ ...{ class: ("mc-button__loader") }, });
|
|
578
|
-
const __VLS_11 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
|
|
579
|
-
/** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
|
|
580
|
-
// @ts-ignore
|
|
581
|
-
const __VLS_12 = __VLS_asFunctionalComponent(__VLS_11, new __VLS_11({ ...{ class: ("mc-button__loader-icon") }, type: ("div"), name: ("loader"), }));
|
|
582
|
-
const __VLS_13 = __VLS_12({ ...{ class: ("mc-button__loader-icon") }, type: ("div"), name: ("loader"), }, ...__VLS_functionalComponentArgsRest(__VLS_12));
|
|
583
|
-
}
|
|
584
|
-
if (__VLS_ctx.$slots.default) {
|
|
585
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({ ...{ class: ("mc-button__text") }, });
|
|
586
|
-
var __VLS_17 = {};
|
|
587
|
-
}
|
|
588
|
-
if (__VLS_ctx.$slots['icon-append']) {
|
|
589
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({ ...{ class: ("mc-button__append") }, });
|
|
590
|
-
var __VLS_18 = {};
|
|
591
|
-
}
|
|
592
|
-
if (!__VLS_ctx.isVariationLink) {
|
|
593
|
-
__VLS_elementAsFunction(__VLS_intrinsicElements.div)({ ...{ class: ("mc-button__background") }, });
|
|
594
|
-
}
|
|
595
|
-
__VLS_nonNullable(__VLS_5.slots).default;
|
|
596
|
-
var __VLS_5;
|
|
597
|
-
__VLS_styleScopedClasses['mc-button'];
|
|
598
|
-
__VLS_styleScopedClasses['mc-button__prepend'];
|
|
599
|
-
__VLS_styleScopedClasses['mc-button__loader'];
|
|
600
|
-
__VLS_styleScopedClasses['mc-button__loader-icon'];
|
|
601
|
-
__VLS_styleScopedClasses['mc-button__text'];
|
|
602
|
-
__VLS_styleScopedClasses['mc-button__append'];
|
|
603
|
-
__VLS_styleScopedClasses['mc-button__background'];
|
|
604
|
-
var __VLS_slots;
|
|
605
|
-
var __VLS_inheritedAttrs;
|
|
606
|
-
const __VLS_refs = {};
|
|
607
|
-
var $refs;
|
|
608
|
-
var $el;
|
|
609
|
-
return {
|
|
610
|
-
attrs: {},
|
|
611
|
-
slots: __VLS_slots,
|
|
612
|
-
refs: $refs,
|
|
613
|
-
rootEl: $el,
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
;
|
|
617
|
-
const __VLS_self = (await import('vue')).defineComponent({
|
|
618
|
-
setup() {
|
|
619
|
-
return {
|
|
620
|
-
McSvgIcon: McSvgIcon,
|
|
621
|
-
vTooltip: vTooltip,
|
|
622
|
-
buttonTooltip: buttonTooltip,
|
|
623
|
-
mcButton: mcButton,
|
|
624
|
-
classes: classes,
|
|
625
|
-
styles: styles,
|
|
626
|
-
tag: tag,
|
|
627
|
-
isVariationLink: isVariationLink,
|
|
628
|
-
tagBind: tagBind,
|
|
629
|
-
handleBlur: handleBlur,
|
|
630
|
-
handleClick: handleClick,
|
|
631
|
-
};
|
|
632
|
-
},
|
|
633
|
-
emits: {},
|
|
634
|
-
props: {
|
|
635
|
-
/**
|
|
636
|
-
* Если нужна ссылка внутри приложения:
|
|
637
|
-
*/
|
|
638
|
-
to: {
|
|
639
|
-
type: String,
|
|
640
|
-
},
|
|
641
|
-
/**
|
|
642
|
-
* Если нужна обычная ссылка:
|
|
643
|
-
* `https://mediacube.agency/`
|
|
644
|
-
*/
|
|
645
|
-
href: {
|
|
646
|
-
type: String,
|
|
647
|
-
},
|
|
648
|
-
/**
|
|
649
|
-
* По умолчанию ожидается использование в `Nuxt`
|
|
650
|
-
*
|
|
651
|
-
*/
|
|
652
|
-
nuxt: {
|
|
653
|
-
type: Boolean,
|
|
654
|
-
default: true
|
|
655
|
-
},
|
|
656
|
-
/**
|
|
657
|
-
* Отключенное состояние
|
|
658
|
-
*
|
|
659
|
-
*/
|
|
660
|
-
disabled: {
|
|
661
|
-
type: Boolean,
|
|
662
|
-
default: false
|
|
663
|
-
},
|
|
664
|
-
/**
|
|
665
|
-
* Дизэйблить не меняя внешнего вида
|
|
666
|
-
*
|
|
667
|
-
*/
|
|
668
|
-
inactive: {
|
|
669
|
-
type: Boolean,
|
|
670
|
-
default: false
|
|
671
|
-
},
|
|
672
|
-
/**
|
|
673
|
-
* Индикация загрузки
|
|
674
|
-
*
|
|
675
|
-
*/
|
|
676
|
-
loading: {
|
|
677
|
-
type: Boolean,
|
|
678
|
-
default: false
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* Индикация загрузки
|
|
682
|
-
* вращением иконки
|
|
683
|
-
*/
|
|
684
|
-
iconLoading: {
|
|
685
|
-
type: Boolean,
|
|
686
|
-
default: false
|
|
687
|
-
},
|
|
688
|
-
/**
|
|
689
|
-
* Типы:
|
|
690
|
-
* `button, submit, reset`
|
|
691
|
-
*/
|
|
692
|
-
type: {
|
|
693
|
-
type: String,
|
|
694
|
-
default: null
|
|
695
|
-
},
|
|
696
|
-
/**
|
|
697
|
-
* Дизайн:
|
|
698
|
-
* `purple, red, purple-outline, purple-invert, purple-flat и т.д.`
|
|
699
|
-
*/
|
|
700
|
-
variation: {
|
|
701
|
-
type: String,
|
|
702
|
-
default: 'purple'
|
|
703
|
-
},
|
|
704
|
-
/**
|
|
705
|
-
* Размеры:
|
|
706
|
-
* `xs, xs-compact, s, s-compact, m, m-compact, l, l-compact`
|
|
707
|
-
*/
|
|
708
|
-
size: {
|
|
709
|
-
type: String,
|
|
710
|
-
default: 'm'
|
|
711
|
-
},
|
|
712
|
-
/**
|
|
713
|
-
* Тень
|
|
714
|
-
*
|
|
715
|
-
*/
|
|
716
|
-
shadow: {
|
|
717
|
-
type: Boolean,
|
|
718
|
-
default: false
|
|
719
|
-
},
|
|
720
|
-
/**
|
|
721
|
-
* Круглая (применимо для *-compact size)
|
|
722
|
-
*
|
|
723
|
-
*/
|
|
724
|
-
rounded: {
|
|
725
|
-
type: Boolean,
|
|
726
|
-
default: false
|
|
727
|
-
},
|
|
728
|
-
/**
|
|
729
|
-
* Закругленная
|
|
730
|
-
*
|
|
731
|
-
*/
|
|
732
|
-
semiRounded: {
|
|
733
|
-
type: Boolean,
|
|
734
|
-
default: false
|
|
735
|
-
},
|
|
736
|
-
/**
|
|
737
|
-
* Позиция текста внутри кнопки:
|
|
738
|
-
* `left, center, right`
|
|
739
|
-
*/
|
|
740
|
-
textAlign: {
|
|
741
|
-
type: String,
|
|
742
|
-
default: 'center'
|
|
743
|
-
},
|
|
744
|
-
/**
|
|
745
|
-
* На всю ширину
|
|
746
|
-
*
|
|
747
|
-
*/
|
|
748
|
-
fullWidth: {
|
|
749
|
-
type: Boolean,
|
|
750
|
-
default: false
|
|
751
|
-
},
|
|
752
|
-
/**
|
|
753
|
-
* Если нужно активное состояние
|
|
754
|
-
*
|
|
755
|
-
*/
|
|
756
|
-
isActive: {
|
|
757
|
-
type: Boolean,
|
|
758
|
-
default: false
|
|
759
|
-
},
|
|
760
|
-
/**
|
|
761
|
-
* exact
|
|
762
|
-
*
|
|
763
|
-
*/
|
|
764
|
-
exact: {
|
|
765
|
-
type: Boolean,
|
|
766
|
-
default: false
|
|
767
|
-
},
|
|
768
|
-
/**
|
|
769
|
-
* Заглавные буквы
|
|
770
|
-
*/
|
|
771
|
-
uppercase: {
|
|
772
|
-
type: Boolean,
|
|
773
|
-
default: false
|
|
774
|
-
},
|
|
775
|
-
/**
|
|
776
|
-
* Тег по умолчанию
|
|
777
|
-
*/
|
|
778
|
-
defaultTag: {
|
|
779
|
-
type: String,
|
|
780
|
-
default: 'button'
|
|
781
|
-
},
|
|
782
|
-
/**
|
|
783
|
-
* Если нужен другой цвет при взаимодействии
|
|
784
|
-
*/
|
|
785
|
-
secondaryColor: {
|
|
786
|
-
type: String,
|
|
787
|
-
default: null
|
|
788
|
-
},
|
|
789
|
-
/**
|
|
790
|
-
* Если нужна подчёркнутая ссылка
|
|
791
|
-
*/
|
|
792
|
-
underlineLink: {
|
|
793
|
-
type: Boolean,
|
|
794
|
-
default: false
|
|
795
|
-
},
|
|
796
|
-
/**
|
|
797
|
-
* Если нужен постоянный
|
|
798
|
-
* фон у типа 'flat'
|
|
799
|
-
*/
|
|
800
|
-
bgFlat: {
|
|
801
|
-
type: Boolean,
|
|
802
|
-
default: false
|
|
803
|
-
},
|
|
804
|
-
/**
|
|
805
|
-
* Жирность шрифта:
|
|
806
|
-
* `normal, medium, semi-bold`
|
|
807
|
-
*/
|
|
808
|
-
weight: {
|
|
809
|
-
type: String,
|
|
810
|
-
default: 'semi-bold'
|
|
811
|
-
},
|
|
812
|
-
/**
|
|
813
|
-
* Тултип при наличии
|
|
814
|
-
*/
|
|
815
|
-
tooltip: {
|
|
816
|
-
type: String,
|
|
817
|
-
default: null
|
|
818
|
-
},
|
|
819
|
-
tooltipPlacement: {
|
|
820
|
-
type: String,
|
|
821
|
-
default: null,
|
|
822
|
-
},
|
|
823
|
-
/**
|
|
824
|
-
* Атрибут tabindex для главного элемента
|
|
825
|
-
*
|
|
826
|
-
*/
|
|
827
|
-
tabindex: {
|
|
828
|
-
type: [String, Number]
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
});
|
|
832
|
-
const __VLS_component = (await import('vue')).defineComponent({
|
|
833
|
-
setup() {
|
|
834
|
-
return {};
|
|
835
|
-
},
|
|
836
|
-
emits: {},
|
|
837
|
-
props: {
|
|
838
|
-
/**
|
|
839
|
-
* Если нужна ссылка внутри приложения:
|
|
840
|
-
*/
|
|
841
|
-
to: {
|
|
842
|
-
type: String,
|
|
843
|
-
},
|
|
844
|
-
/**
|
|
845
|
-
* Если нужна обычная ссылка:
|
|
846
|
-
* `https://mediacube.agency/`
|
|
847
|
-
*/
|
|
848
|
-
href: {
|
|
849
|
-
type: String,
|
|
850
|
-
},
|
|
851
|
-
/**
|
|
852
|
-
* По умолчанию ожидается использование в `Nuxt`
|
|
853
|
-
*
|
|
854
|
-
*/
|
|
855
|
-
nuxt: {
|
|
856
|
-
type: Boolean,
|
|
857
|
-
default: true
|
|
858
|
-
},
|
|
859
|
-
/**
|
|
860
|
-
* Отключенное состояние
|
|
861
|
-
*
|
|
862
|
-
*/
|
|
863
|
-
disabled: {
|
|
864
|
-
type: Boolean,
|
|
865
|
-
default: false
|
|
866
|
-
},
|
|
867
|
-
/**
|
|
868
|
-
* Дизэйблить не меняя внешнего вида
|
|
869
|
-
*
|
|
870
|
-
*/
|
|
871
|
-
inactive: {
|
|
872
|
-
type: Boolean,
|
|
873
|
-
default: false
|
|
874
|
-
},
|
|
875
|
-
/**
|
|
876
|
-
* Индикация загрузки
|
|
877
|
-
*
|
|
878
|
-
*/
|
|
879
|
-
loading: {
|
|
880
|
-
type: Boolean,
|
|
881
|
-
default: false
|
|
882
|
-
},
|
|
883
|
-
/**
|
|
884
|
-
* Индикация загрузки
|
|
885
|
-
* вращением иконки
|
|
886
|
-
*/
|
|
887
|
-
iconLoading: {
|
|
888
|
-
type: Boolean,
|
|
889
|
-
default: false
|
|
890
|
-
},
|
|
891
|
-
/**
|
|
892
|
-
* Типы:
|
|
893
|
-
* `button, submit, reset`
|
|
894
|
-
*/
|
|
895
|
-
type: {
|
|
896
|
-
type: String,
|
|
897
|
-
default: null
|
|
898
|
-
},
|
|
899
|
-
/**
|
|
900
|
-
* Дизайн:
|
|
901
|
-
* `purple, red, purple-outline, purple-invert, purple-flat и т.д.`
|
|
902
|
-
*/
|
|
903
|
-
variation: {
|
|
904
|
-
type: String,
|
|
905
|
-
default: 'purple'
|
|
906
|
-
},
|
|
907
|
-
/**
|
|
908
|
-
* Размеры:
|
|
909
|
-
* `xs, xs-compact, s, s-compact, m, m-compact, l, l-compact`
|
|
910
|
-
*/
|
|
911
|
-
size: {
|
|
912
|
-
type: String,
|
|
913
|
-
default: 'm'
|
|
914
|
-
},
|
|
915
|
-
/**
|
|
916
|
-
* Тень
|
|
917
|
-
*
|
|
918
|
-
*/
|
|
919
|
-
shadow: {
|
|
920
|
-
type: Boolean,
|
|
921
|
-
default: false
|
|
922
|
-
},
|
|
923
|
-
/**
|
|
924
|
-
* Круглая (применимо для *-compact size)
|
|
925
|
-
*
|
|
926
|
-
*/
|
|
927
|
-
rounded: {
|
|
928
|
-
type: Boolean,
|
|
929
|
-
default: false
|
|
930
|
-
},
|
|
931
|
-
/**
|
|
932
|
-
* Закругленная
|
|
933
|
-
*
|
|
934
|
-
*/
|
|
935
|
-
semiRounded: {
|
|
936
|
-
type: Boolean,
|
|
937
|
-
default: false
|
|
938
|
-
},
|
|
939
|
-
/**
|
|
940
|
-
* Позиция текста внутри кнопки:
|
|
941
|
-
* `left, center, right`
|
|
942
|
-
*/
|
|
943
|
-
textAlign: {
|
|
944
|
-
type: String,
|
|
945
|
-
default: 'center'
|
|
946
|
-
},
|
|
947
|
-
/**
|
|
948
|
-
* На всю ширину
|
|
949
|
-
*
|
|
950
|
-
*/
|
|
951
|
-
fullWidth: {
|
|
952
|
-
type: Boolean,
|
|
953
|
-
default: false
|
|
954
|
-
},
|
|
955
|
-
/**
|
|
956
|
-
* Если нужно активное состояние
|
|
957
|
-
*
|
|
958
|
-
*/
|
|
959
|
-
isActive: {
|
|
960
|
-
type: Boolean,
|
|
961
|
-
default: false
|
|
962
|
-
},
|
|
963
|
-
/**
|
|
964
|
-
* exact
|
|
965
|
-
*
|
|
966
|
-
*/
|
|
967
|
-
exact: {
|
|
968
|
-
type: Boolean,
|
|
969
|
-
default: false
|
|
970
|
-
},
|
|
971
|
-
/**
|
|
972
|
-
* Заглавные буквы
|
|
973
|
-
*/
|
|
974
|
-
uppercase: {
|
|
975
|
-
type: Boolean,
|
|
976
|
-
default: false
|
|
977
|
-
},
|
|
978
|
-
/**
|
|
979
|
-
* Тег по умолчанию
|
|
980
|
-
*/
|
|
981
|
-
defaultTag: {
|
|
982
|
-
type: String,
|
|
983
|
-
default: 'button'
|
|
984
|
-
},
|
|
985
|
-
/**
|
|
986
|
-
* Если нужен другой цвет при взаимодействии
|
|
987
|
-
*/
|
|
988
|
-
secondaryColor: {
|
|
989
|
-
type: String,
|
|
990
|
-
default: null
|
|
991
|
-
},
|
|
992
|
-
/**
|
|
993
|
-
* Если нужна подчёркнутая ссылка
|
|
994
|
-
*/
|
|
995
|
-
underlineLink: {
|
|
996
|
-
type: Boolean,
|
|
997
|
-
default: false
|
|
998
|
-
},
|
|
999
|
-
/**
|
|
1000
|
-
* Если нужен постоянный
|
|
1001
|
-
* фон у типа 'flat'
|
|
1002
|
-
*/
|
|
1003
|
-
bgFlat: {
|
|
1004
|
-
type: Boolean,
|
|
1005
|
-
default: false
|
|
1006
|
-
},
|
|
1007
|
-
/**
|
|
1008
|
-
* Жирность шрифта:
|
|
1009
|
-
* `normal, medium, semi-bold`
|
|
1010
|
-
*/
|
|
1011
|
-
weight: {
|
|
1012
|
-
type: String,
|
|
1013
|
-
default: 'semi-bold'
|
|
1014
|
-
},
|
|
1015
|
-
/**
|
|
1016
|
-
* Тултип при наличии
|
|
1017
|
-
*/
|
|
1018
|
-
tooltip: {
|
|
1019
|
-
type: String,
|
|
1020
|
-
default: null
|
|
1021
|
-
},
|
|
1022
|
-
tooltipPlacement: {
|
|
1023
|
-
type: String,
|
|
1024
|
-
default: null,
|
|
1025
|
-
},
|
|
1026
|
-
/**
|
|
1027
|
-
* Атрибут tabindex для главного элемента
|
|
1028
|
-
*
|
|
1029
|
-
*/
|
|
1030
|
-
tabindex: {
|
|
1031
|
-
type: [String, Number]
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
__typeEl: {},
|
|
1035
|
-
});
|
|
1036
|
-
export default {};
|
|
1037
|
-
; /* PartiallyEnd: #4569/main.vue */
|