mediacube-ui-v2 0.0.7 → 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.cjs +3 -3
- package/dist/index.js +13 -10584
- 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/style.css +1 -1
- 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/McCropper/McCropper.vue.d.ts +0 -28
- 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 -62
- 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,862 @@
|
|
|
1
|
+
import { computed, defineAsyncComponent, onBeforeUnmount, onMounted, reactive, ref, useSlots } from 'vue';
|
|
2
|
+
import { useHelper } from '@/composables/useHelper';
|
|
3
|
+
import { ChipSize, Weights } from '@/enums';
|
|
4
|
+
import { TABLE } from '@/consts/table';
|
|
5
|
+
import McInfinityLoadingTrigger from '@/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue';
|
|
6
|
+
import McTitle from '@/components/elements/McTitle/McTitle.vue';
|
|
7
|
+
import McChip from '@/components/elements/McChip/McChip.vue';
|
|
8
|
+
import McTableSort from '@/components/templates/McTable/McTableSort/McTableSort.vue';
|
|
9
|
+
import McTableSkeletonLoading from '@/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue';
|
|
10
|
+
import McNoData from '@/components/elements/McNodata/McNoData.vue';
|
|
11
|
+
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
12
|
+
const McBottomLoader = defineAsyncComponent(() => import('@/components/elements/McBottomLoader/McBottomLoader.vue'));
|
|
13
|
+
const McOverlay = defineAsyncComponent(() => import('@/components/patterns/McOverlay/McOverlay.vue'));
|
|
14
|
+
import { useThrottleFn } from '@vueuse/core';
|
|
15
|
+
//@ts-ignore
|
|
16
|
+
import noTableDataImg from '../../../../assets/img/no_table_data.png';
|
|
17
|
+
const defaultPlaceholders = {
|
|
18
|
+
no_data: 'No data',
|
|
19
|
+
loading: 'Loading...',
|
|
20
|
+
all_loaded: 'All loaded',
|
|
21
|
+
total: 'Total'
|
|
22
|
+
};
|
|
23
|
+
const emit = defineEmits();
|
|
24
|
+
/**
|
|
25
|
+
* Слоты
|
|
26
|
+
*
|
|
27
|
+
* #header-cell - Заголовок колонки, каждая колонка
|
|
28
|
+
* #`{column.field}-header-right` - Справа от заголовка колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
29
|
+
* #`{column.field}-total` - Тотал колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
30
|
+
* #column.field - Тело ячейки таблицы. Если не использовать слот, просто будут выводиться данные по названию поля
|
|
31
|
+
* #`{column.field}-right` - Справа от контента колонки, именной слот, работает по имени колонки, что бы добавлять в конкретную колонку
|
|
32
|
+
* №footer-cell - тотал колонки (строка внизу таблицы), каждая колонка
|
|
33
|
+
* */
|
|
34
|
+
const helper = useHelper();
|
|
35
|
+
const slots = useSlots();
|
|
36
|
+
const props = defineProps({
|
|
37
|
+
columns: {
|
|
38
|
+
type: Array,
|
|
39
|
+
required: true,
|
|
40
|
+
default: () => []
|
|
41
|
+
},
|
|
42
|
+
data: {
|
|
43
|
+
type: Array,
|
|
44
|
+
required: true,
|
|
45
|
+
default: () => []
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
|
|
49
|
+
* */
|
|
50
|
+
totals: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: () => ({})
|
|
53
|
+
},
|
|
54
|
+
sort: {
|
|
55
|
+
type: Object,
|
|
56
|
+
default: () => ({})
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Фиксировать ли первую колонку таблицы
|
|
60
|
+
* */
|
|
61
|
+
fixedFirstColumn: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: true
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Фиксировать ли последнюю колонку таблицы
|
|
67
|
+
* */
|
|
68
|
+
fixedLastColumn: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
|
|
74
|
+
* */
|
|
75
|
+
hasLoadMore: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: true
|
|
78
|
+
},
|
|
79
|
+
height: {
|
|
80
|
+
type: [Number, String],
|
|
81
|
+
default: 'auto'
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Высота строки в шапке
|
|
85
|
+
* */
|
|
86
|
+
headerRowHeight: {
|
|
87
|
+
type: Number,
|
|
88
|
+
default: TABLE.defaultHeaderHeight
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Высота строки в теле таблицы
|
|
92
|
+
* */
|
|
93
|
+
rowHeight: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: TABLE.defaultRowHeight
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Высота строки в подвале (строка с тоталами)
|
|
99
|
+
* */
|
|
100
|
+
footerRowHeight: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: TABLE.defaultFooterRowHeight
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
|
|
106
|
+
*/
|
|
107
|
+
skeletonLoading: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Лоадинг внизу таблицы
|
|
113
|
+
* */
|
|
114
|
+
bottomLoading: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: false
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Оверлей с затемнение на всю таблицу
|
|
120
|
+
* */
|
|
121
|
+
loading: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Переводы плейсхолеров и текстов
|
|
127
|
+
*/
|
|
128
|
+
placeholders: {
|
|
129
|
+
type: Object,
|
|
130
|
+
default: () => ({})
|
|
131
|
+
},
|
|
132
|
+
noDataIcon: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: null
|
|
135
|
+
},
|
|
136
|
+
noDataImg: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: noTableDataImg
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* Любые данные что бы передать их в карточку из таблицы
|
|
142
|
+
* */
|
|
143
|
+
toTableCardProps: {
|
|
144
|
+
type: Object,
|
|
145
|
+
default: () => ({})
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
const openCardState = ref({ state: false });
|
|
149
|
+
const mcTable = ref(null);
|
|
150
|
+
const hasData = computed(() => {
|
|
151
|
+
return !helper.isEmpty(props.data);
|
|
152
|
+
});
|
|
153
|
+
const hasTotals = computed(() => {
|
|
154
|
+
return !helper.isEmpty(props.totals);
|
|
155
|
+
});
|
|
156
|
+
const hasFixedColumn = computed(() => {
|
|
157
|
+
return props.fixedFirstColumn || props.fixedLastColumn;
|
|
158
|
+
});
|
|
159
|
+
const placeholders = reactive(helper.deepMerge(defaultPlaceholders, props.placeholders));
|
|
160
|
+
const shadows = reactive({
|
|
161
|
+
firstColHasShadow: false,
|
|
162
|
+
lastColHasShadow: false
|
|
163
|
+
});
|
|
164
|
+
const computedColumns = computed(() => {
|
|
165
|
+
const [first] = props.columns;
|
|
166
|
+
return (openCardState.value.state ? [first] : props.columns).map((column, index) => {
|
|
167
|
+
const fixedFirst = props.fixedFirstColumn && index === 0;
|
|
168
|
+
const fixedLast = props.fixedLastColumn && index === props.columns.length - 1;
|
|
169
|
+
return {
|
|
170
|
+
...column,
|
|
171
|
+
fixedFirst,
|
|
172
|
+
fixedLast,
|
|
173
|
+
style: {
|
|
174
|
+
...(column.width
|
|
175
|
+
? {
|
|
176
|
+
'--mc-table-cell-width': `${column.width}px`,
|
|
177
|
+
'--mc-table-cell-max-width': `${column.width}px`,
|
|
178
|
+
'--mc-table-cell-min-width': `${column.width}px`
|
|
179
|
+
}
|
|
180
|
+
: {
|
|
181
|
+
'--mc-table-cell-min-width': column.minWidth && `${column.minWidth}px`,
|
|
182
|
+
'--mc-table-cell-width': '100%'
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
const computedHeaderColumns = computed(() => {
|
|
189
|
+
return computedColumns.value.map((column) => ({
|
|
190
|
+
...column,
|
|
191
|
+
class: {
|
|
192
|
+
'mc-table__table_header-cell': true,
|
|
193
|
+
'mc-table__table_header-cell--fixed-first': column.fixedFirst,
|
|
194
|
+
'mc-table__table_header-cell--fixed-last': column.fixedLast,
|
|
195
|
+
'mc-table__table_header-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
196
|
+
'mc-table__table_header-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
197
|
+
}
|
|
198
|
+
}));
|
|
199
|
+
});
|
|
200
|
+
const computedBodyColumns = computed(() => {
|
|
201
|
+
return computedColumns.value.map((column) => ({
|
|
202
|
+
...column,
|
|
203
|
+
class: {
|
|
204
|
+
'mc-table__table_body-cell': true,
|
|
205
|
+
'mc-table__table_body-cell--fixed-first': column.fixedFirst,
|
|
206
|
+
'mc-table__table_body-cell--fixed-last': column.fixedLast,
|
|
207
|
+
'mc-table__table_body-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
208
|
+
'mc-table__table_body-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
209
|
+
}
|
|
210
|
+
}));
|
|
211
|
+
});
|
|
212
|
+
const computedFooterColumns = computed(() => {
|
|
213
|
+
return computedColumns.value.map((column) => ({
|
|
214
|
+
...column,
|
|
215
|
+
class: {
|
|
216
|
+
'mc-table__table_footer-cell': true,
|
|
217
|
+
'mc-table__table_footer-cell--fixed-first': column.fixedFirst,
|
|
218
|
+
'mc-table__table_footer-cell--fixed-last': column.fixedLast,
|
|
219
|
+
'mc-table__table_footer-cell--shadow-first': column.fixedFirst && shadows.firstColHasShadow,
|
|
220
|
+
'mc-table__table_footer-cell--shadow-last': column.fixedLast && shadows.lastColHasShadow
|
|
221
|
+
}
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
224
|
+
const containerStyle = computed(() => {
|
|
225
|
+
return {
|
|
226
|
+
'--mc-table-height': typeof props.height === 'number' ? `${props.height}px` : props.height,
|
|
227
|
+
'--mc-table-header-row-height': helper.isNumber(props.headerRowHeight) ? `${props.headerRowHeight}px` : '40px',
|
|
228
|
+
'--mc-table-row-height': helper.isNumber(props.rowHeight) ? `${props.rowHeight}px` : '40px',
|
|
229
|
+
'--mc-table-footer-row-height': helper.isNumber(props.footerRowHeight) ? `${props.footerRowHeight}px` : '40px'
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
const computedTableCardProps = computed(() => {
|
|
233
|
+
return {
|
|
234
|
+
tableColumns: props.columns,
|
|
235
|
+
tableData: props.data,
|
|
236
|
+
tableTotals: props.totals,
|
|
237
|
+
tableSort: props.sort,
|
|
238
|
+
tableHeaderRowHeight: props.headerRowHeight,
|
|
239
|
+
tableFooterRowHeight: props.footerRowHeight,
|
|
240
|
+
tableFixedFirstColumn: props.fixedFirstColumn,
|
|
241
|
+
tableCardProps: props.toTableCardProps
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
const onBodyScroll = useThrottleFn(() => {
|
|
245
|
+
if (mcTable.value) {
|
|
246
|
+
const { scrollLeft, scrollWidth, clientWidth } = mcTable.value;
|
|
247
|
+
const firstColShadow = props.fixedFirstColumn && scrollLeft > 0;
|
|
248
|
+
const lastColShadow = props.fixedLastColumn && scrollLeft + clientWidth < scrollWidth;
|
|
249
|
+
if (shadows.firstColHasShadow !== firstColShadow)
|
|
250
|
+
shadows.firstColHasShadow = firstColShadow;
|
|
251
|
+
if (shadows.lastColHasShadow !== lastColShadow)
|
|
252
|
+
shadows.lastColHasShadow = lastColShadow;
|
|
253
|
+
}
|
|
254
|
+
}, 10);
|
|
255
|
+
const addListeners = () => {
|
|
256
|
+
if (hasFixedColumn.value && mcTable.value) {
|
|
257
|
+
onBodyScroll();
|
|
258
|
+
mcTable.value.addEventListener('scroll', onBodyScroll);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const removeListeners = () => {
|
|
262
|
+
if (hasFixedColumn.value && mcTable.value)
|
|
263
|
+
mcTable.value.removeEventListener('scroll', onBodyScroll);
|
|
264
|
+
};
|
|
265
|
+
const handleRowClick = (row) => {
|
|
266
|
+
emit('row-click', row);
|
|
267
|
+
};
|
|
268
|
+
const handleSetCardState = (payload) => {
|
|
269
|
+
openCardState.value = payload;
|
|
270
|
+
emit('table-card-opened', payload);
|
|
271
|
+
};
|
|
272
|
+
onMounted(() => {
|
|
273
|
+
addListeners();
|
|
274
|
+
});
|
|
275
|
+
onBeforeUnmount(() => {
|
|
276
|
+
removeListeners();
|
|
277
|
+
}); /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
278
|
+
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
279
|
+
props: {
|
|
280
|
+
columns: {
|
|
281
|
+
type: Array,
|
|
282
|
+
required: true,
|
|
283
|
+
default: () => []
|
|
284
|
+
},
|
|
285
|
+
data: {
|
|
286
|
+
type: Array,
|
|
287
|
+
required: true,
|
|
288
|
+
default: () => []
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
|
|
292
|
+
* */
|
|
293
|
+
totals: {
|
|
294
|
+
type: Object,
|
|
295
|
+
default: () => ({})
|
|
296
|
+
},
|
|
297
|
+
sort: {
|
|
298
|
+
type: Object,
|
|
299
|
+
default: () => ({})
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Фиксировать ли первую колонку таблицы
|
|
303
|
+
* */
|
|
304
|
+
fixedFirstColumn: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
default: true
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Фиксировать ли последнюю колонку таблицы
|
|
310
|
+
* */
|
|
311
|
+
fixedLastColumn: {
|
|
312
|
+
type: Boolean,
|
|
313
|
+
default: false
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
|
|
317
|
+
* */
|
|
318
|
+
hasLoadMore: {
|
|
319
|
+
type: Boolean,
|
|
320
|
+
default: true
|
|
321
|
+
},
|
|
322
|
+
height: {
|
|
323
|
+
type: [Number, String],
|
|
324
|
+
default: 'auto'
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
* Высота строки в шапке
|
|
328
|
+
* */
|
|
329
|
+
headerRowHeight: {
|
|
330
|
+
type: Number,
|
|
331
|
+
default: TABLE.defaultHeaderHeight
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Высота строки в теле таблицы
|
|
335
|
+
* */
|
|
336
|
+
rowHeight: {
|
|
337
|
+
type: Number,
|
|
338
|
+
default: TABLE.defaultRowHeight
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* Высота строки в подвале (строка с тоталами)
|
|
342
|
+
* */
|
|
343
|
+
footerRowHeight: {
|
|
344
|
+
type: Number,
|
|
345
|
+
default: TABLE.defaultFooterRowHeight
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
* Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
|
|
349
|
+
*/
|
|
350
|
+
skeletonLoading: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
default: false
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Лоадинг внизу таблицы
|
|
356
|
+
* */
|
|
357
|
+
bottomLoading: {
|
|
358
|
+
type: Boolean,
|
|
359
|
+
default: false
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* Оверлей с затемнение на всю таблицу
|
|
363
|
+
* */
|
|
364
|
+
loading: {
|
|
365
|
+
type: Boolean,
|
|
366
|
+
default: false
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* Переводы плейсхолеров и текстов
|
|
370
|
+
*/
|
|
371
|
+
placeholders: {
|
|
372
|
+
type: Object,
|
|
373
|
+
default: () => ({})
|
|
374
|
+
},
|
|
375
|
+
noDataIcon: {
|
|
376
|
+
type: String,
|
|
377
|
+
default: null
|
|
378
|
+
},
|
|
379
|
+
noDataImg: {
|
|
380
|
+
type: String,
|
|
381
|
+
default: noTableDataImg
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
* Любые данные что бы передать их в карточку из таблицы
|
|
385
|
+
* */
|
|
386
|
+
toTableCardProps: {
|
|
387
|
+
type: Object,
|
|
388
|
+
default: () => ({})
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
__typeEmits: {},
|
|
392
|
+
});
|
|
393
|
+
;
|
|
394
|
+
let __VLS_functionalComponentProps;
|
|
395
|
+
function __VLS_template() {
|
|
396
|
+
const __VLS_ctx = {};
|
|
397
|
+
const __VLS_localComponents = {
|
|
398
|
+
...{},
|
|
399
|
+
...{},
|
|
400
|
+
...__VLS_ctx,
|
|
401
|
+
};
|
|
402
|
+
let __VLS_components;
|
|
403
|
+
const __VLS_localDirectives = {
|
|
404
|
+
...{},
|
|
405
|
+
...__VLS_ctx,
|
|
406
|
+
};
|
|
407
|
+
let __VLS_directives;
|
|
408
|
+
let __VLS_styleScopedClasses;
|
|
409
|
+
// CSS variable injection
|
|
410
|
+
// CSS variable injection end
|
|
411
|
+
let __VLS_resolvedLocalAndGlobalComponents;
|
|
412
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__container") }, ...{ style: ((__VLS_ctx.containerStyle)) }, });
|
|
413
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ref: ("mcTable"), ...{ class: ("mc-table") }, });
|
|
414
|
+
// @ts-ignore navigation for `const mcTable = ref()`
|
|
415
|
+
__VLS_ctx.mcTable;
|
|
416
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table") }, });
|
|
417
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header") }, });
|
|
418
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-row") }, });
|
|
419
|
+
for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedHeaderColumns))) {
|
|
420
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
|
|
421
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content") }, });
|
|
422
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content-left") }, });
|
|
423
|
+
if (column.sortable) {
|
|
424
|
+
// @ts-ignore
|
|
425
|
+
[McTableSort,];
|
|
426
|
+
// @ts-ignore
|
|
427
|
+
const __VLS_0 = __VLS_asFunctionalComponent(McTableSort, new McTableSort({ ...{ 'onChange': {} }, column: ((column.field)), sort: ((__VLS_ctx.sort)), }));
|
|
428
|
+
const __VLS_1 = __VLS_0({ ...{ 'onChange': {} }, column: ((column.field)), sort: ((__VLS_ctx.sort)), }, ...__VLS_functionalComponentArgsRest(__VLS_0));
|
|
429
|
+
let __VLS_5;
|
|
430
|
+
const __VLS_6 = {
|
|
431
|
+
onChange: ((val) => __VLS_ctx.emit('sort', val))
|
|
432
|
+
};
|
|
433
|
+
let __VLS_2;
|
|
434
|
+
let __VLS_3;
|
|
435
|
+
var __VLS_4;
|
|
436
|
+
}
|
|
437
|
+
var __VLS_7 = {
|
|
438
|
+
column: ((column)), cellIndex: ((cI)),
|
|
439
|
+
};
|
|
440
|
+
// @ts-ignore
|
|
441
|
+
[McTitle, McTitle,];
|
|
442
|
+
// @ts-ignore
|
|
443
|
+
const __VLS_8 = __VLS_asFunctionalComponent(McTitle, new McTitle({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), preLine: (true), }));
|
|
444
|
+
const __VLS_9 = __VLS_8({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), preLine: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
445
|
+
(column.header);
|
|
446
|
+
__VLS_nonNullable(__VLS_12.slots).default;
|
|
447
|
+
var __VLS_12;
|
|
448
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_header-cell_content-right") }, });
|
|
449
|
+
var __VLS_13 = {
|
|
450
|
+
column: ((column)), cellIndex: ((cI)),
|
|
451
|
+
};
|
|
452
|
+
var __VLS_14 = (`${column.field}-header-right`);
|
|
453
|
+
var __VLS_15 = {
|
|
454
|
+
column: ((column)), cellIndex: ((cI)),
|
|
455
|
+
};
|
|
456
|
+
var __VLS_16 = (`${column.field}-total`);
|
|
457
|
+
if (column.total) {
|
|
458
|
+
// @ts-ignore
|
|
459
|
+
[McChip,];
|
|
460
|
+
// @ts-ignore
|
|
461
|
+
const __VLS_17 = __VLS_asFunctionalComponent(McChip, new McChip({ title: ((column.total)), variation: ("hover-gray"), textColor: ("gray"), size: ((__VLS_ctx.ChipSize.S)), }));
|
|
462
|
+
const __VLS_18 = __VLS_17({ title: ((column.total)), variation: ("hover-gray"), textColor: ("gray"), size: ((__VLS_ctx.ChipSize.S)), }, ...__VLS_functionalComponentArgsRest(__VLS_17));
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body") }, });
|
|
466
|
+
if (props.skeletonLoading) {
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
[McTableSkeletonLoading,];
|
|
469
|
+
// @ts-ignore
|
|
470
|
+
const __VLS_22 = __VLS_asFunctionalComponent(McTableSkeletonLoading, new McTableSkeletonLoading({ columns: ((__VLS_ctx.computedBodyColumns)), }));
|
|
471
|
+
const __VLS_23 = __VLS_22({ columns: ((__VLS_ctx.computedBodyColumns)), }, ...__VLS_functionalComponentArgsRest(__VLS_22));
|
|
472
|
+
}
|
|
473
|
+
if (__VLS_ctx.hasData) {
|
|
474
|
+
for (const [row, rI] of __VLS_getVForSourceType((__VLS_ctx.data))) {
|
|
475
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ onClick: (() => __VLS_ctx.handleRowClick(row)) }, key: ((rI)), ...{ class: ("mc-table__table_body-row") }, ...{ class: (({ 'mc-table__table_body-row--active': String(__VLS_ctx.openCardState.id) === String(row.id) })) }, });
|
|
476
|
+
for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedBodyColumns))) {
|
|
477
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
|
|
478
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content") }, });
|
|
479
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content-left") }, });
|
|
480
|
+
var __VLS_27 = {
|
|
481
|
+
row: ((row)), rowIndex: ((rI)), column: ((column)), cellIndex: ((cI)), cellValue: ((row[column.field])),
|
|
482
|
+
};
|
|
483
|
+
var __VLS_28 = (column.field);
|
|
484
|
+
// @ts-ignore
|
|
485
|
+
[McTitle, McTitle,];
|
|
486
|
+
// @ts-ignore
|
|
487
|
+
const __VLS_29 = __VLS_asFunctionalComponent(McTitle, new McTitle({ textAlign: ((column.align)), ellipsis: (true), }));
|
|
488
|
+
const __VLS_30 = __VLS_29({ textAlign: ((column.align)), ellipsis: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_29));
|
|
489
|
+
(row[column.field]);
|
|
490
|
+
__VLS_nonNullable(__VLS_33.slots).default;
|
|
491
|
+
var __VLS_33;
|
|
492
|
+
if (__VLS_ctx.slots[`${column.field}-right`]) {
|
|
493
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_body-cell_content-right") }, });
|
|
494
|
+
var __VLS_34 = {};
|
|
495
|
+
var __VLS_35 = (`${column.field}-right`);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
// @ts-ignore
|
|
501
|
+
[McInfinityLoadingTrigger,];
|
|
502
|
+
// @ts-ignore
|
|
503
|
+
const __VLS_36 = __VLS_asFunctionalComponent(McInfinityLoadingTrigger, new McInfinityLoadingTrigger({ ...{ 'onLoading': {} }, active: ((props.hasLoadMore)), }));
|
|
504
|
+
const __VLS_37 = __VLS_36({ ...{ 'onLoading': {} }, active: ((props.hasLoadMore)), }, ...__VLS_functionalComponentArgsRest(__VLS_36));
|
|
505
|
+
let __VLS_41;
|
|
506
|
+
const __VLS_42 = {
|
|
507
|
+
onLoading: (...[$event]) => {
|
|
508
|
+
__VLS_ctx.emit('loading');
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
let __VLS_38;
|
|
512
|
+
let __VLS_39;
|
|
513
|
+
var __VLS_40;
|
|
514
|
+
if (__VLS_ctx.hasTotals) {
|
|
515
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_footer") }, });
|
|
516
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-table__table_footer-row") }, });
|
|
517
|
+
for (const [column, cI] of __VLS_getVForSourceType((__VLS_ctx.computedFooterColumns))) {
|
|
518
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ key: ((cI)), ...{ class: ((column.class)) }, ...{ style: ((column.style)) }, });
|
|
519
|
+
var __VLS_43 = {
|
|
520
|
+
column: ((column)), cellIndex: ((cI)), cellValue: ((__VLS_ctx.totals[column.field])),
|
|
521
|
+
};
|
|
522
|
+
// @ts-ignore
|
|
523
|
+
[McTitle, McTitle,];
|
|
524
|
+
// @ts-ignore
|
|
525
|
+
const __VLS_44 = __VLS_asFunctionalComponent(McTitle, new McTitle({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), }));
|
|
526
|
+
const __VLS_45 = __VLS_44({ textAlign: ((column.align)), weight: ((__VLS_ctx.Weights.SemiBold)), }, ...__VLS_functionalComponentArgsRest(__VLS_44));
|
|
527
|
+
(__VLS_ctx.totals[column.field]);
|
|
528
|
+
__VLS_nonNullable(__VLS_48.slots).default;
|
|
529
|
+
var __VLS_48;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
var __VLS_49 = {
|
|
533
|
+
...{ onSetTableCardState: (__VLS_ctx.handleSetCardState) }, ...(__VLS_ctx.computedTableCardProps),
|
|
534
|
+
};
|
|
535
|
+
const __VLS_50 = __VLS_resolvedLocalAndGlobalComponents.RouterView;
|
|
536
|
+
/** @type { [typeof __VLS_components.RouterView, typeof __VLS_components.routerView, ] } */
|
|
537
|
+
// @ts-ignore
|
|
538
|
+
const __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({ ...{ 'onSetTableCardState': {} }, ...(__VLS_ctx.computedTableCardProps), }));
|
|
539
|
+
const __VLS_52 = __VLS_51({ ...{ 'onSetTableCardState': {} }, ...(__VLS_ctx.computedTableCardProps), }, ...__VLS_functionalComponentArgsRest(__VLS_51));
|
|
540
|
+
let __VLS_56;
|
|
541
|
+
const __VLS_57 = {
|
|
542
|
+
onSetTableCardState: (__VLS_ctx.handleSetCardState)
|
|
543
|
+
};
|
|
544
|
+
let __VLS_53;
|
|
545
|
+
let __VLS_54;
|
|
546
|
+
var __VLS_55;
|
|
547
|
+
if (__VLS_ctx.bottomLoading) {
|
|
548
|
+
const __VLS_58 = __VLS_resolvedLocalAndGlobalComponents.McBottomLoader;
|
|
549
|
+
/** @type { [typeof __VLS_components.McBottomLoader, typeof __VLS_components.mcBottomLoader, ] } */
|
|
550
|
+
// @ts-ignore
|
|
551
|
+
const __VLS_59 = __VLS_asFunctionalComponent(__VLS_58, new __VLS_58({}));
|
|
552
|
+
const __VLS_60 = __VLS_59({}, ...__VLS_functionalComponentArgsRest(__VLS_59));
|
|
553
|
+
}
|
|
554
|
+
if (__VLS_ctx.loading) {
|
|
555
|
+
const __VLS_64 = __VLS_resolvedLocalAndGlobalComponents.McOverlay;
|
|
556
|
+
/** @type { [typeof __VLS_components.McOverlay, typeof __VLS_components.mcOverlay, ] } */
|
|
557
|
+
// @ts-ignore
|
|
558
|
+
const __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({}));
|
|
559
|
+
const __VLS_66 = __VLS_65({}, ...__VLS_functionalComponentArgsRest(__VLS_65));
|
|
560
|
+
}
|
|
561
|
+
if (!__VLS_ctx.hasData) {
|
|
562
|
+
// @ts-ignore
|
|
563
|
+
[McNoData,];
|
|
564
|
+
// @ts-ignore
|
|
565
|
+
const __VLS_70 = __VLS_asFunctionalComponent(McNoData, new McNoData({ variation: ("small"), title: ((__VLS_ctx.placeholders.no_data)), img: ((props.noDataImg)), icon: ((props.noDataIcon)), }));
|
|
566
|
+
const __VLS_71 = __VLS_70({ variation: ("small"), title: ((__VLS_ctx.placeholders.no_data)), img: ((props.noDataImg)), icon: ((props.noDataIcon)), }, ...__VLS_functionalComponentArgsRest(__VLS_70));
|
|
567
|
+
}
|
|
568
|
+
__VLS_styleScopedClasses['mc-table__container'];
|
|
569
|
+
__VLS_styleScopedClasses['mc-table'];
|
|
570
|
+
__VLS_styleScopedClasses['mc-table__table'];
|
|
571
|
+
__VLS_styleScopedClasses['mc-table__table_header'];
|
|
572
|
+
__VLS_styleScopedClasses['mc-table__table_header-row'];
|
|
573
|
+
__VLS_styleScopedClasses['mc-table__table_header-cell_content'];
|
|
574
|
+
__VLS_styleScopedClasses['mc-table__table_header-cell_content-left'];
|
|
575
|
+
__VLS_styleScopedClasses['mc-table__table_header-cell_content-right'];
|
|
576
|
+
__VLS_styleScopedClasses['mc-table__table_body'];
|
|
577
|
+
__VLS_styleScopedClasses['mc-table__table_body-row'];
|
|
578
|
+
__VLS_styleScopedClasses['mc-table__table_body-row--active'];
|
|
579
|
+
__VLS_styleScopedClasses['mc-table__table_body-cell_content'];
|
|
580
|
+
__VLS_styleScopedClasses['mc-table__table_body-cell_content-left'];
|
|
581
|
+
__VLS_styleScopedClasses['mc-table__table_body-cell_content-right'];
|
|
582
|
+
__VLS_styleScopedClasses['mc-table__table_footer'];
|
|
583
|
+
__VLS_styleScopedClasses['mc-table__table_footer-row'];
|
|
584
|
+
var __VLS_slots;
|
|
585
|
+
var __VLS_inheritedAttrs;
|
|
586
|
+
const __VLS_refs = {
|
|
587
|
+
"mcTable": __VLS_nativeElements['div'],
|
|
588
|
+
};
|
|
589
|
+
var $refs;
|
|
590
|
+
var $el;
|
|
591
|
+
return {
|
|
592
|
+
attrs: {},
|
|
593
|
+
slots: __VLS_slots,
|
|
594
|
+
refs: $refs,
|
|
595
|
+
rootEl: $el,
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
;
|
|
599
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
600
|
+
setup() {
|
|
601
|
+
return {
|
|
602
|
+
ChipSize: ChipSize,
|
|
603
|
+
Weights: Weights,
|
|
604
|
+
McInfinityLoadingTrigger: McInfinityLoadingTrigger,
|
|
605
|
+
McTitle: McTitle,
|
|
606
|
+
McChip: McChip,
|
|
607
|
+
McTableSort: McTableSort,
|
|
608
|
+
McTableSkeletonLoading: McTableSkeletonLoading,
|
|
609
|
+
McNoData: McNoData,
|
|
610
|
+
McBottomLoader: McBottomLoader,
|
|
611
|
+
McOverlay: McOverlay,
|
|
612
|
+
emit: emit,
|
|
613
|
+
slots: slots,
|
|
614
|
+
openCardState: openCardState,
|
|
615
|
+
mcTable: mcTable,
|
|
616
|
+
hasData: hasData,
|
|
617
|
+
hasTotals: hasTotals,
|
|
618
|
+
placeholders: placeholders,
|
|
619
|
+
computedHeaderColumns: computedHeaderColumns,
|
|
620
|
+
computedBodyColumns: computedBodyColumns,
|
|
621
|
+
computedFooterColumns: computedFooterColumns,
|
|
622
|
+
containerStyle: containerStyle,
|
|
623
|
+
computedTableCardProps: computedTableCardProps,
|
|
624
|
+
handleRowClick: handleRowClick,
|
|
625
|
+
handleSetCardState: handleSetCardState,
|
|
626
|
+
};
|
|
627
|
+
},
|
|
628
|
+
__typeEmits: {},
|
|
629
|
+
props: {
|
|
630
|
+
columns: {
|
|
631
|
+
type: Array,
|
|
632
|
+
required: true,
|
|
633
|
+
default: () => []
|
|
634
|
+
},
|
|
635
|
+
data: {
|
|
636
|
+
type: Array,
|
|
637
|
+
required: true,
|
|
638
|
+
default: () => []
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
|
|
642
|
+
* */
|
|
643
|
+
totals: {
|
|
644
|
+
type: Object,
|
|
645
|
+
default: () => ({})
|
|
646
|
+
},
|
|
647
|
+
sort: {
|
|
648
|
+
type: Object,
|
|
649
|
+
default: () => ({})
|
|
650
|
+
},
|
|
651
|
+
/**
|
|
652
|
+
* Фиксировать ли первую колонку таблицы
|
|
653
|
+
* */
|
|
654
|
+
fixedFirstColumn: {
|
|
655
|
+
type: Boolean,
|
|
656
|
+
default: true
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
* Фиксировать ли последнюю колонку таблицы
|
|
660
|
+
* */
|
|
661
|
+
fixedLastColumn: {
|
|
662
|
+
type: Boolean,
|
|
663
|
+
default: false
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
* Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
|
|
667
|
+
* */
|
|
668
|
+
hasLoadMore: {
|
|
669
|
+
type: Boolean,
|
|
670
|
+
default: true
|
|
671
|
+
},
|
|
672
|
+
height: {
|
|
673
|
+
type: [Number, String],
|
|
674
|
+
default: 'auto'
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
* Высота строки в шапке
|
|
678
|
+
* */
|
|
679
|
+
headerRowHeight: {
|
|
680
|
+
type: Number,
|
|
681
|
+
default: TABLE.defaultHeaderHeight
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
* Высота строки в теле таблицы
|
|
685
|
+
* */
|
|
686
|
+
rowHeight: {
|
|
687
|
+
type: Number,
|
|
688
|
+
default: TABLE.defaultRowHeight
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* Высота строки в подвале (строка с тоталами)
|
|
692
|
+
* */
|
|
693
|
+
footerRowHeight: {
|
|
694
|
+
type: Number,
|
|
695
|
+
default: TABLE.defaultFooterRowHeight
|
|
696
|
+
},
|
|
697
|
+
/**
|
|
698
|
+
* Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
|
|
699
|
+
*/
|
|
700
|
+
skeletonLoading: {
|
|
701
|
+
type: Boolean,
|
|
702
|
+
default: false
|
|
703
|
+
},
|
|
704
|
+
/**
|
|
705
|
+
* Лоадинг внизу таблицы
|
|
706
|
+
* */
|
|
707
|
+
bottomLoading: {
|
|
708
|
+
type: Boolean,
|
|
709
|
+
default: false
|
|
710
|
+
},
|
|
711
|
+
/**
|
|
712
|
+
* Оверлей с затемнение на всю таблицу
|
|
713
|
+
* */
|
|
714
|
+
loading: {
|
|
715
|
+
type: Boolean,
|
|
716
|
+
default: false
|
|
717
|
+
},
|
|
718
|
+
/**
|
|
719
|
+
* Переводы плейсхолеров и текстов
|
|
720
|
+
*/
|
|
721
|
+
placeholders: {
|
|
722
|
+
type: Object,
|
|
723
|
+
default: () => ({})
|
|
724
|
+
},
|
|
725
|
+
noDataIcon: {
|
|
726
|
+
type: String,
|
|
727
|
+
default: null
|
|
728
|
+
},
|
|
729
|
+
noDataImg: {
|
|
730
|
+
type: String,
|
|
731
|
+
default: noTableDataImg
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
* Любые данные что бы передать их в карточку из таблицы
|
|
735
|
+
* */
|
|
736
|
+
toTableCardProps: {
|
|
737
|
+
type: Object,
|
|
738
|
+
default: () => ({})
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
});
|
|
742
|
+
const __VLS_component = (await import('vue')).defineComponent({
|
|
743
|
+
setup() {
|
|
744
|
+
return {};
|
|
745
|
+
},
|
|
746
|
+
__typeEmits: {},
|
|
747
|
+
props: {
|
|
748
|
+
columns: {
|
|
749
|
+
type: Array,
|
|
750
|
+
required: true,
|
|
751
|
+
default: () => []
|
|
752
|
+
},
|
|
753
|
+
data: {
|
|
754
|
+
type: Array,
|
|
755
|
+
required: true,
|
|
756
|
+
default: () => []
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Тоталы таблицы (отображаются в футере), обьект ключи которого = поле field из массива колонок
|
|
760
|
+
* */
|
|
761
|
+
totals: {
|
|
762
|
+
type: Object,
|
|
763
|
+
default: () => ({})
|
|
764
|
+
},
|
|
765
|
+
sort: {
|
|
766
|
+
type: Object,
|
|
767
|
+
default: () => ({})
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
* Фиксировать ли первую колонку таблицы
|
|
771
|
+
* */
|
|
772
|
+
fixedFirstColumn: {
|
|
773
|
+
type: Boolean,
|
|
774
|
+
default: true
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* Фиксировать ли последнюю колонку таблицы
|
|
778
|
+
* */
|
|
779
|
+
fixedLastColumn: {
|
|
780
|
+
type: Boolean,
|
|
781
|
+
default: false
|
|
782
|
+
},
|
|
783
|
+
/**
|
|
784
|
+
* Есть ли у таблицы еще данные, если true, при полном пролистывании таблицы вниз, будет вызываться метод @loading
|
|
785
|
+
* */
|
|
786
|
+
hasLoadMore: {
|
|
787
|
+
type: Boolean,
|
|
788
|
+
default: true
|
|
789
|
+
},
|
|
790
|
+
height: {
|
|
791
|
+
type: [Number, String],
|
|
792
|
+
default: 'auto'
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* Высота строки в шапке
|
|
796
|
+
* */
|
|
797
|
+
headerRowHeight: {
|
|
798
|
+
type: Number,
|
|
799
|
+
default: TABLE.defaultHeaderHeight
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
* Высота строки в теле таблицы
|
|
803
|
+
* */
|
|
804
|
+
rowHeight: {
|
|
805
|
+
type: Number,
|
|
806
|
+
default: TABLE.defaultRowHeight
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
* Высота строки в подвале (строка с тоталами)
|
|
810
|
+
* */
|
|
811
|
+
footerRowHeight: {
|
|
812
|
+
type: Number,
|
|
813
|
+
default: TABLE.defaultFooterRowHeight
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
* Отрисовка всей таблицы и полоса загрузки в каждой ячейке (скелетная загрузка)
|
|
817
|
+
*/
|
|
818
|
+
skeletonLoading: {
|
|
819
|
+
type: Boolean,
|
|
820
|
+
default: false
|
|
821
|
+
},
|
|
822
|
+
/**
|
|
823
|
+
* Лоадинг внизу таблицы
|
|
824
|
+
* */
|
|
825
|
+
bottomLoading: {
|
|
826
|
+
type: Boolean,
|
|
827
|
+
default: false
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
* Оверлей с затемнение на всю таблицу
|
|
831
|
+
* */
|
|
832
|
+
loading: {
|
|
833
|
+
type: Boolean,
|
|
834
|
+
default: false
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* Переводы плейсхолеров и текстов
|
|
838
|
+
*/
|
|
839
|
+
placeholders: {
|
|
840
|
+
type: Object,
|
|
841
|
+
default: () => ({})
|
|
842
|
+
},
|
|
843
|
+
noDataIcon: {
|
|
844
|
+
type: String,
|
|
845
|
+
default: null
|
|
846
|
+
},
|
|
847
|
+
noDataImg: {
|
|
848
|
+
type: String,
|
|
849
|
+
default: noTableDataImg
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
* Любые данные что бы передать их в карточку из таблицы
|
|
853
|
+
* */
|
|
854
|
+
toTableCardProps: {
|
|
855
|
+
type: Object,
|
|
856
|
+
default: () => ({})
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
__typeEl: {},
|
|
860
|
+
});
|
|
861
|
+
export default {};
|
|
862
|
+
; /* PartiallyEnd: #4569/main.vue */
|