ep-craft 0.1.34 → 0.1.36
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/components/breadcrumb/EpBreadcrumb.vue.d.ts +15 -0
- package/dist/components/breadcrumb/EpBreadcrumb.vue.js +41 -0
- package/dist/components/breadcrumb/EpBreadcrumb2.vue.js +4 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +28 -0
- package/dist/components/breadcrumb/breadcrumb.js +21 -0
- package/dist/components/breadcrumb/constants.d.ts +3 -0
- package/dist/components/breadcrumb/constants.js +4 -0
- package/dist/components/breadcrumb/index.d.ts +20 -2
- package/dist/components/breadcrumb/index.js +10 -4
- package/dist/components/breadcrumb/instance.d.ts +2 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.d.ts +15 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem.vue.js +58 -0
- package/dist/components/breadcrumb-item/EpBreadcrumbItem2.vue.js +4 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +23 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +19 -0
- package/dist/components/breadcrumb-item/index.d.ts +11 -2
- package/dist/components/breadcrumb-item/index.js +8 -4
- package/dist/components/breadcrumb-item/instance.d.ts +2 -0
- package/dist/components/carousel/EpCarousel.vue.d.ts +39 -0
- package/dist/components/carousel/EpCarousel.vue.js +227 -0
- package/dist/components/carousel/EpCarousel2.vue.js +4 -0
- package/dist/components/carousel/carousel.d.ts +86 -0
- package/dist/components/carousel/carousel.js +113 -0
- package/dist/components/carousel/constants.d.ts +32 -0
- package/dist/components/carousel/constants.js +5 -0
- package/dist/components/carousel/index.d.ts +28 -2
- package/dist/components/carousel/index.js +11 -4
- package/dist/components/carousel/instance.d.ts +8 -0
- package/dist/components/carousel/use-carousel.d.ts +41 -0
- package/dist/components/carousel/use-carousel.js +200 -0
- package/dist/components/carousel-item/EpCarouselItem.vue.d.ts +16 -0
- package/dist/components/carousel-item/EpCarouselItem.vue.js +74 -0
- package/dist/components/carousel-item/EpCarouselItem2.vue.js +4 -0
- package/dist/components/carousel-item/carousel-item.d.ts +22 -0
- package/dist/components/carousel-item/carousel-item.js +22 -0
- package/dist/components/carousel-item/index.d.ts +14 -2
- package/dist/components/carousel-item/index.js +9 -4
- package/dist/components/carousel-item/use-carousel-item.d.ts +14 -0
- package/dist/components/carousel-item/use-carousel-item.js +79 -0
- package/dist/components/cascader/EpCascader.vue.d.ts +232 -0
- package/dist/components/cascader/EpCascader.vue.js +757 -0
- package/dist/components/cascader/EpCascader2.vue.js +4 -0
- package/dist/components/cascader/cascader.d.ts +313 -0
- package/dist/components/cascader/cascader.js +210 -0
- package/dist/components/cascader/index.d.ts +17 -2
- package/dist/components/cascader/index.js +9 -3
- package/dist/components/cascader/instances.d.ts +2 -0
- package/dist/components/cascader-panel/EpCascaderMenu.vue.d.ts +32 -0
- package/dist/components/cascader-panel/EpCascaderMenu.vue.js +204 -0
- package/dist/components/cascader-panel/EpCascaderMenu2.vue.js +4 -0
- package/dist/components/cascader-panel/EpCascaderNode.vue.d.ts +11 -0
- package/dist/components/cascader-panel/EpCascaderNode.vue.js +134 -0
- package/dist/components/cascader-panel/EpCascaderNode2.vue.js +4 -0
- package/dist/components/cascader-panel/EpCascaderPanel.vue.d.ts +290 -0
- package/dist/components/cascader-panel/EpCascaderPanel.vue.js +266 -0
- package/dist/components/cascader-panel/EpCascaderPanel2.vue.js +4 -0
- package/dist/components/cascader-panel/config.d.ts +102 -0
- package/dist/components/cascader-panel/config.js +136 -0
- package/dist/components/cascader-panel/index.d.ts +17 -2
- package/dist/components/cascader-panel/index.js +21 -4
- package/dist/components/cascader-panel/instance.d.ts +4 -0
- package/dist/components/cascader-panel/node-content.d.ts +14 -0
- package/dist/components/cascader-panel/node-content.js +50 -0
- package/dist/components/cascader-panel/node.d.ts +50 -0
- package/dist/components/cascader-panel/node.js +75 -0
- package/dist/components/cascader-panel/store.d.ts +17 -0
- package/dist/components/cascader-panel/store.js +49 -0
- package/dist/components/cascader-panel/types.d.ts +64 -0
- package/dist/components/cascader-panel/types.js +4 -0
- package/dist/components/cascader-panel/utils.d.ts +4 -0
- package/dist/components/cascader-panel/utils.js +26 -0
- package/dist/components/checkbox/EpCheckbox.vue.d.ts +1 -1
- package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +1 -1
- package/dist/components/checkbox-group/index.js +4 -3
- package/dist/components/col/EpCol.vue.d.ts +24 -0
- package/dist/components/col/EpCol.vue.js +61 -0
- package/dist/components/col/EpCol2.vue.js +4 -0
- package/dist/components/col/col.d.ts +71 -0
- package/dist/components/col/col.js +79 -0
- package/dist/components/col/index.d.ts +10 -2
- package/dist/components/col/index.js +5 -4
- package/dist/components/collapse/EpCollapse.vue.d.ts +27 -0
- package/dist/components/collapse/EpCollapse.vue.js +30 -0
- package/dist/components/collapse/EpCollapse2.vue.js +4 -0
- package/dist/components/collapse/collapse.d.ts +47 -0
- package/dist/components/collapse/collapse.js +46 -0
- package/dist/components/collapse/constants.d.ts +7 -0
- package/dist/components/collapse/constants.js +4 -0
- package/dist/components/collapse/index.d.ts +21 -2
- package/dist/components/collapse/index.js +11 -3
- package/dist/components/collapse/instance.d.ts +2 -0
- package/dist/components/collapse/use-collapse-item.d.ts +21 -0
- package/dist/components/collapse/use-collapse-item.js +66 -0
- package/dist/components/collapse/use-collapse.d.ts +9 -0
- package/dist/components/collapse/use-collapse.js +72 -0
- package/dist/components/collapse-item/EpCollapseItem.vue.d.ts +27 -0
- package/dist/components/collapse-item/EpCollapseItem.vue.js +102 -0
- package/dist/components/collapse-item/EpCollapseItem2.vue.js +4 -0
- package/dist/components/collapse-item/collapse-item.d.ts +34 -0
- package/dist/components/collapse-item/collapse-item.js +34 -0
- package/dist/components/collapse-item/index.d.ts +11 -2
- package/dist/components/collapse-item/index.js +8 -4
- package/dist/components/collapse-item/instance.d.ts +2 -0
- package/dist/components/collapse-transition/index.js +4 -3
- package/dist/components/color-picker/EpColorPicker.vue.d.ts +53 -0
- package/dist/components/color-picker/EpColorPicker.vue.js +318 -0
- package/dist/components/color-picker/EpColorPicker2.vue.js +4 -0
- package/dist/components/color-picker/color-picker.d.ts +240 -0
- package/dist/components/color-picker/color-picker.js +124 -0
- package/dist/components/color-picker/index.d.ts +16 -2
- package/dist/components/color-picker/index.js +11 -4
- package/dist/components/color-picker-panel/EpColorPickerPanel.vue.d.ts +413 -0
- package/dist/components/color-picker-panel/EpColorPickerPanel.vue.js +142 -0
- package/dist/components/color-picker-panel/EpColorPickerPanel2.vue.js +4 -0
- package/dist/components/color-picker-panel/color-picker-panel.d.ts +91 -0
- package/dist/components/color-picker-panel/color-picker-panel.js +71 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.d.ts +19 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.js +92 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpHueSlider.vue.d.ts +20 -0
- package/dist/components/color-picker-panel/components/EpHueSlider.vue.js +84 -0
- package/dist/components/color-picker-panel/components/EpHueSlider2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpPredefine.vue.d.ts +3 -0
- package/dist/components/color-picker-panel/components/EpPredefine.vue.js +39 -0
- package/dist/components/color-picker-panel/components/EpPredefine2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpSvPanel.vue.d.ts +8 -0
- package/dist/components/color-picker-panel/components/EpSvPanel.vue.js +67 -0
- package/dist/components/color-picker-panel/components/EpSvPanel2.vue.js +4 -0
- package/dist/components/color-picker-panel/composables/use-common-color.d.ts +11 -0
- package/dist/components/color-picker-panel/composables/use-common-color.js +23 -0
- package/dist/components/color-picker-panel/composables/use-predefine.d.ts +14 -0
- package/dist/components/color-picker-panel/composables/use-predefine.js +66 -0
- package/dist/components/color-picker-panel/composables/use-slider.d.ts +35 -0
- package/dist/components/color-picker-panel/composables/use-slider.js +152 -0
- package/dist/components/color-picker-panel/composables/use-sv-panel.d.ts +25 -0
- package/dist/components/color-picker-panel/composables/use-sv-panel.js +123 -0
- package/dist/components/color-picker-panel/index.d.ts +4 -0
- package/dist/components/color-picker-panel/props/predefine.d.ts +36 -0
- package/dist/components/color-picker-panel/props/slider.d.ts +39 -0
- package/dist/components/color-picker-panel/props/sv-panel.d.ts +22 -0
- package/dist/components/color-picker-panel/utils/color.d.ts +28 -0
- package/dist/components/color-picker-panel/utils/color.js +62 -0
- package/dist/components/color-picker-panel/utils/draggable.d.ts +6 -0
- package/dist/components/color-picker-panel/utils/draggable.js +23 -0
- package/dist/components/descriptions/EpDescriptions.vue.d.ts +20 -0
- package/dist/components/descriptions/EpDescriptions.vue.js +100 -0
- package/dist/components/descriptions/EpDescriptions2.vue.js +4 -0
- package/dist/components/descriptions/EpDescriptionsRow.vue.d.ts +5 -0
- package/dist/components/descriptions/EpDescriptionsRow.vue.js +56 -0
- package/dist/components/descriptions/EpDescriptionsRow2.vue.js +4 -0
- package/dist/components/descriptions/constants.d.ts +1 -0
- package/dist/components/descriptions/constants.js +4 -0
- package/dist/components/descriptions/description.d.ts +66 -0
- package/dist/components/descriptions/description.js +61 -0
- package/dist/components/descriptions/descriptions-cell.d.ts +31 -0
- package/dist/components/descriptions/descriptions-cell.js +133 -0
- package/dist/components/descriptions/descriptions-row.d.ts +10 -0
- package/dist/components/descriptions/descriptions.type.d.ts +29 -0
- package/dist/components/descriptions/index.d.ts +22 -2
- package/dist/components/descriptions/index.js +9 -3
- package/dist/components/descriptions/token.d.ts +3 -0
- package/dist/components/descriptions/token.js +4 -0
- package/dist/components/descriptions-item/description-item.d.ts +84 -0
- package/dist/components/descriptions-item/description-item.js +87 -0
- package/dist/components/descriptions-item/index.d.ts +14 -2
- package/dist/components/descriptions-item/index.js +6 -4
- package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown-item2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +2 -2
- package/dist/components/dropdown/src/dropdown2.vue.js +2 -2
- package/dist/components/image/EpImage.vue.d.ts +63 -0
- package/dist/components/image/EpImage.vue.js +207 -0
- package/dist/components/image/EpImage2.vue.js +4 -0
- package/dist/components/image/image.d.ts +132 -0
- package/dist/components/image/image.js +132 -0
- package/dist/components/image/index.d.ts +11 -2
- package/dist/components/image/index.js +9 -4
- package/dist/components/image/instance.d.ts +2 -0
- package/dist/components/image-viewer/EpImageViewer.vue.d.ts +61 -0
- package/dist/components/image-viewer/EpImageViewer.vue.js +421 -0
- package/dist/components/image-viewer/EpImageViewer2.vue.js +4 -0
- package/dist/components/image-viewer/image-viewer.d.ts +100 -0
- package/dist/components/image-viewer/image-viewer.js +99 -0
- package/dist/components/image-viewer/index.d.ts +11 -2
- package/dist/components/image-viewer/index.js +9 -4
- package/dist/components/image-viewer/instance.d.ts +2 -0
- package/dist/components/input-number/index.js +3 -2
- package/dist/components/mention/EpMention.vue.d.ts +430 -0
- package/dist/components/mention/EpMention.vue.js +303 -0
- package/dist/components/mention/EpMention2.vue.js +4 -0
- package/dist/components/mention/EpMentionDropdown.vue.d.ts +34 -0
- package/dist/components/mention/EpMentionDropdown.vue.js +140 -0
- package/dist/components/mention/EpMentionDropdown2.vue.js +4 -0
- package/dist/components/mention/helper.d.ts +32 -0
- package/dist/components/mention/helper.js +112 -0
- package/dist/components/mention/index.d.ts +13 -2
- package/dist/components/mention/index.js +11 -4
- package/dist/components/mention/mention-dropdown.d.ts +21 -0
- package/dist/components/mention/mention-dropdown.js +22 -0
- package/dist/components/mention/mention.d.ts +313 -0
- package/dist/components/mention/mention.js +123 -0
- package/dist/components/mention/types.d.ts +19 -0
- package/dist/components/radio/index.js +4 -3
- package/dist/components/rate/EpRate.vue.d.ts +32 -0
- package/dist/components/rate/EpRate.vue.js +229 -0
- package/dist/components/rate/EpRate2.vue.js +4 -0
- package/dist/components/rate/index.d.ts +15 -2
- package/dist/components/rate/index.js +7 -4
- package/dist/components/rate/rate.d.ts +131 -0
- package/dist/components/rate/rate.js +158 -0
- package/dist/components/roving-focus-group/index.js +2 -2
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +19 -11
- package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +11 -19
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +76 -18
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +18 -76
- package/dist/components/row/EpRow.vue.d.ts +17 -0
- package/dist/components/row/EpRow.vue.js +50 -0
- package/dist/components/row/EpRow2.vue.js +4 -0
- package/dist/components/row/constants.d.ts +5 -0
- package/dist/components/row/constants.js +4 -0
- package/dist/components/row/index.d.ts +12 -2
- package/dist/components/row/index.js +7 -4
- package/dist/components/row/row.d.ts +41 -0
- package/dist/components/row/row.js +49 -0
- package/dist/components/segmented/EpSegmented.vue.d.ts +22 -0
- package/dist/components/segmented/EpSegmented.vue.js +136 -0
- package/dist/components/segmented/EpSegmented2.vue.js +4 -0
- package/dist/components/segmented/index.d.ts +14 -2
- package/dist/components/segmented/index.js +11 -4
- package/dist/components/segmented/segmented.d.ts +85 -0
- package/dist/components/segmented/segmented.js +85 -0
- package/dist/components/segmented/types.d.ts +1 -0
- package/dist/components/select/index.d.ts +4 -2
- package/dist/components/select/index.js +3 -2
- package/dist/components/select/select2.vue.js +60 -61
- package/dist/components/select-v2/src/select.vue.d.ts +1 -1
- package/dist/components/skeleton/EpSkeleton.vue.d.ts +24 -0
- package/dist/components/skeleton/EpSkeleton.vue.js +56 -0
- package/dist/components/skeleton/EpSkeleton2.vue.js +4 -0
- package/dist/components/skeleton/index.d.ts +16 -2
- package/dist/components/skeleton/index.js +9 -3
- package/dist/components/skeleton/skeleton.d.ts +53 -0
- package/dist/components/skeleton/skeleton.js +39 -0
- package/dist/components/skeleton-item/EpSkeletonItem.vue.d.ts +5 -0
- package/dist/components/skeleton-item/EpSkeletonItem.vue.js +31 -0
- package/dist/components/skeleton-item/EpSkeletonItem2.vue.js +4 -0
- package/dist/components/skeleton-item/index.d.ts +8 -2
- package/dist/components/skeleton-item/index.js +7 -3
- package/dist/components/skeleton-item/skeleton-item.d.ts +19 -0
- package/dist/components/skeleton-item/skeleton-item.js +26 -0
- package/dist/components/slider/EpSlider.vue.d.ts +175 -0
- package/dist/components/slider/EpSlider.vue.js +211 -0
- package/dist/components/slider/EpSlider2.vue.js +4 -0
- package/dist/components/slider/EpSliderButton.vue.d.ts +26 -0
- package/dist/components/slider/EpSliderButton.vue.js +103 -0
- package/dist/components/slider/EpSliderButton2.vue.js +4 -0
- package/dist/components/slider/button.d.ts +28 -0
- package/dist/components/slider/button.js +28 -0
- package/dist/components/slider/composables/index.d.ts +7 -0
- package/dist/components/slider/composables/use-lifecycle.d.ts +4 -0
- package/dist/components/slider/composables/use-lifecycle.js +20 -0
- package/dist/components/slider/composables/use-marks.d.ts +7 -0
- package/dist/components/slider/composables/use-marks.js +30 -0
- package/dist/components/slider/composables/use-slide.d.ts +23 -0
- package/dist/components/slider/composables/use-slide.js +92 -0
- package/dist/components/slider/composables/use-slider-button.d.ts +18 -0
- package/dist/components/slider/composables/use-slider-button.js +179 -0
- package/dist/components/slider/composables/use-stops.d.ts +8 -0
- package/dist/components/slider/composables/use-stops.js +23 -0
- package/dist/components/slider/composables/use-watch.d.ts +4 -0
- package/dist/components/slider/composables/use-watch.js +42 -0
- package/dist/components/slider/constants.d.ts +17 -0
- package/dist/components/slider/constants.js +4 -0
- package/dist/components/slider/index.d.ts +18 -2
- package/dist/components/slider/index.js +10 -4
- package/dist/components/slider/marker.d.ts +64 -0
- package/dist/components/slider/marker.js +40 -0
- package/dist/components/slider/slider.d.ts +80 -0
- package/dist/components/slider/slider.js +170 -0
- package/dist/components/step/EpStep.vue.d.ts +38 -0
- package/dist/components/step/EpStep.vue.js +157 -0
- package/dist/components/step/EpStep2.vue.js +4 -0
- package/dist/components/step/index.d.ts +12 -2
- package/dist/components/step/index.js +8 -3
- package/dist/components/step/step.d.ts +42 -0
- package/dist/components/step/step.js +39 -0
- package/dist/components/steps/EpSteps.vue.d.ts +23 -0
- package/dist/components/steps/EpSteps.vue.js +57 -0
- package/dist/components/steps/EpSteps2.vue.js +4 -0
- package/dist/components/steps/index.d.ts +20 -2
- package/dist/components/steps/index.js +8 -4
- package/dist/components/steps/steps.d.ts +69 -0
- package/dist/components/steps/steps.js +66 -0
- package/dist/components/steps/tokens.d.ts +1 -0
- package/dist/components/steps/tokens.js +4 -0
- package/dist/components/switch/EpSwitch.vue.d.ts +50 -0
- package/dist/components/switch/EpSwitch.vue.js +251 -0
- package/dist/components/switch/EpSwitch2.vue.js +4 -0
- package/dist/components/switch/index.d.ts +15 -2
- package/dist/components/switch/index.js +10 -4
- package/dist/components/switch/switch.d.ts +157 -0
- package/dist/components/switch/switch.js +145 -0
- package/dist/components/table/src/filter-panel.vue.d.ts +3 -3
- package/dist/components/table/src/table-header/index.d.ts +3 -3
- package/dist/components/text/index.d.ts +4 -2
- package/dist/components/text/index.js +7 -4
- package/dist/components/text/src/text.d.ts +43 -0
- package/dist/components/text/src/text.js +45 -0
- package/dist/components/text/src/text.vue.d.ts +17 -0
- package/dist/components/text/src/text.vue.js +63 -0
- package/dist/components/text/src/text2.vue.js +4 -0
- package/dist/components/time-select/EpTimeSelect.vue.d.ts +38 -0
- package/dist/components/time-select/EpTimeSelect.vue.js +154 -0
- package/dist/components/time-select/EpTimeSelect2.vue.js +4 -0
- package/dist/components/time-select/index.d.ts +17 -2
- package/dist/components/time-select/index.js +12 -4
- package/dist/components/time-select/time-select.d.ts +143 -0
- package/dist/components/time-select/time-select.js +139 -0
- package/dist/components/time-select/utils.d.ts +11 -0
- package/dist/components/time-select/utils.js +39 -0
- package/dist/components/timeline/index.d.ts +21 -2
- package/dist/components/timeline/index.js +10 -3
- package/dist/components/timeline/instance.d.ts +2 -0
- package/dist/components/timeline/timeline.d.ts +20 -0
- package/dist/components/timeline/timeline.js +53 -0
- package/dist/components/timeline/tokens.d.ts +7 -0
- package/dist/components/timeline/tokens.js +4 -0
- package/dist/components/timeline-item/EpTimelineItem.vue.d.ts +21 -0
- package/dist/components/timeline-item/EpTimelineItem.vue.js +94 -0
- package/dist/components/timeline-item/EpTimelineItem2.vue.js +4 -0
- package/dist/components/timeline-item/index.d.ts +12 -2
- package/dist/components/timeline-item/index.js +7 -3
- package/dist/components/timeline-item/instance.d.ts +2 -0
- package/dist/components/timeline-item/timeline-item.d.ts +63 -0
- package/dist/components/timeline-item/timeline-item.js +64 -0
- package/dist/components/tour/EpTour.vue.d.ts +40 -0
- package/dist/components/tour/EpTour.vue.js +174 -0
- package/dist/components/tour/EpTour2.vue.js +4 -0
- package/dist/components/tour/EpTourContent.vue.d.ts +23 -0
- package/dist/components/tour/EpTourContent.vue.js +72 -0
- package/dist/components/tour/EpTourContent2.vue.js +4 -0
- package/dist/components/tour/EpTourMask.vue.d.ts +7 -0
- package/dist/components/tour/EpTourMask.vue.js +76 -0
- package/dist/components/tour/EpTourMask2.vue.js +4 -0
- package/dist/components/tour/constants.d.ts +10 -0
- package/dist/components/tour/constants.js +4 -0
- package/dist/components/tour/content.d.ts +49 -0
- package/dist/components/tour/content.js +70 -0
- package/dist/components/tour/helper.d.ts +36 -0
- package/dist/components/tour/helper.js +161 -0
- package/dist/components/tour/index.d.ts +28 -2
- package/dist/components/tour/index.js +19 -4
- package/dist/components/tour/mask.d.ts +43 -0
- package/dist/components/tour/steps.d.ts +19 -0
- package/dist/components/tour/steps.js +35 -0
- package/dist/components/tour/tour.d.ts +136 -0
- package/dist/components/tour/tour.js +120 -0
- package/dist/components/tour/types.d.ts +21 -0
- package/dist/components/tour-step/EpTourStep.vue.d.ts +25 -0
- package/dist/components/tour-step/EpTourStep.vue.js +179 -0
- package/dist/components/tour-step/EpTourStep2.vue.js +4 -0
- package/dist/components/tour-step/index.d.ts +13 -2
- package/dist/components/tour-step/index.js +10 -4
- package/dist/components/tour-step/step.d.ts +120 -0
- package/dist/components/tour-step/step.js +91 -0
- package/dist/components/transfer/EpTransfer.vue.d.ts +36 -0
- package/dist/components/transfer/EpTransfer.vue.js +195 -0
- package/dist/components/transfer/EpTransfer2.vue.js +4 -0
- package/dist/components/transfer/EpTransferPanel.vue.d.ts +24 -0
- package/dist/components/transfer/EpTransferPanel.vue.js +191 -0
- package/dist/components/transfer/EpTransferPanel2.vue.js +4 -0
- package/dist/components/transfer/composables/index.d.ts +5 -0
- package/dist/components/transfer/composables/use-check.d.ts +286 -0
- package/dist/components/transfer/composables/use-check.js +89 -0
- package/dist/components/transfer/composables/use-checked-change.d.ts +6 -0
- package/dist/components/transfer/composables/use-checked-change.js +12 -0
- package/dist/components/transfer/composables/use-computed-data.d.ts +5 -0
- package/dist/components/transfer/composables/use-computed-data.js +26 -0
- package/dist/components/transfer/composables/use-move.d.ts +6 -0
- package/dist/components/transfer/composables/use-move.js +27 -0
- package/dist/components/transfer/composables/use-props-alias.d.ts +8 -0
- package/dist/components/transfer/composables/use-props-alias.js +15 -0
- package/dist/components/transfer/index.d.ts +19 -2
- package/dist/components/transfer/index.js +13 -4
- package/dist/components/transfer/transfer-panel.d.ts +63 -0
- package/dist/components/transfer/transfer-panel.js +32 -0
- package/dist/components/transfer/transfer.d.ts +136 -0
- package/dist/components/transfer/transfer.js +130 -0
- package/dist/components/tree/index.d.ts +7 -2
- package/dist/components/tree/index.js +8 -4
- package/dist/components/tree/src/instance.d.ts +2 -0
- package/dist/components/tree/src/model/node.d.ts +63 -0
- package/dist/components/tree/src/model/node.js +263 -0
- package/dist/components/tree/src/model/tree-store.d.ts +51 -0
- package/dist/components/tree/src/model/tree-store.js +223 -0
- package/dist/components/tree/src/model/useDragNode.d.ts +459 -0
- package/dist/components/tree/src/model/useDragNode.js +98 -0
- package/dist/components/tree/src/model/useKeydown.d.ts +7 -0
- package/dist/components/tree/src/model/useKeydown.js +93 -0
- package/dist/components/tree/src/model/useNodeExpandEventBroadcast.d.ts +9 -0
- package/dist/components/tree/src/model/useNodeExpandEventBroadcast.js +27 -0
- package/dist/components/tree/src/model/util.d.ts +7 -0
- package/dist/components/tree/src/model/util.js +19 -0
- package/dist/components/tree/src/tokens.d.ts +3 -0
- package/dist/components/tree/src/tokens.js +6 -0
- package/dist/components/tree/src/tree-node-content.vue.d.ts +14 -0
- package/dist/components/tree/src/tree-node-content.vue.js +43 -0
- package/dist/components/tree/src/tree-node-content2.vue.js +4 -0
- package/dist/components/tree/src/tree-node.vue.d.ts +377 -0
- package/dist/components/tree/src/tree-node.vue.js +108 -0
- package/dist/components/tree/src/tree-node2.vue.js +166 -0
- package/dist/components/tree/src/tree.d.ts +103 -0
- package/dist/components/tree/src/tree.js +99 -0
- package/dist/components/tree/src/tree.type.d.ts +112 -0
- package/dist/components/tree/src/tree.vue.d.ts +1745 -0
- package/dist/components/tree/src/tree.vue.js +48 -0
- package/dist/components/tree/src/tree2.vue.js +192 -0
- package/dist/components/tree-select/index.d.ts +3 -2
- package/dist/components/tree-select/index.js +7 -4
- package/dist/components/tree-select/src/cache-options.d.ts +20 -0
- package/dist/components/tree-select/src/cache-options.js +36 -0
- package/dist/components/tree-select/src/instance.d.ts +6 -0
- package/dist/components/tree-select/src/select.d.ts +11 -0
- package/dist/components/tree-select/src/select.js +92 -0
- package/dist/components/tree-select/src/tree-select-option.d.ts +364 -0
- package/dist/components/tree-select/src/tree-select-option.js +32 -0
- package/dist/components/tree-select/src/tree-select.vue.d.ts +412 -0
- package/dist/components/tree-select/src/tree-select.vue.js +96 -0
- package/dist/components/tree-select/src/tree-select2.vue.js +4 -0
- package/dist/components/tree-select/src/tree.d.ts +12 -0
- package/dist/components/tree-select/src/tree.js +179 -0
- package/dist/components/tree-select/src/utils.d.ts +10 -0
- package/dist/components/tree-select/src/utils.js +49 -0
- package/dist/components/upload/src/upload-content.vue.d.ts +2 -2
- package/dist/components/upload/src/upload.vue.d.ts +2 -2
- package/dist/constants/column-alignment.js +4 -0
- package/dist/ep-craft.js +367 -279
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-lockscreen/index.d.ts +11 -0
- package/dist/hooks/use-lockscreen/index.js +34 -0
- package/dist/hooks/use-throttle-render/index.d.ts +7 -0
- package/dist/hooks/use-throttle-render/index.js +31 -0
- package/dist/index.d.ts +98 -0
- package/dist/utils/arrays.js +4 -3
- package/dist/utils/dom/aria.js +23 -13
- package/dist/utils/dom/scroll.js +61 -46
- package/dist/utils/vue/icon.js +17 -14
- package/dist/utils/vue/validator.js +5 -0
- package/dist/utils/vue/vnode.js +24 -12
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +86 -5
- package/package.json +3 -2
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { TourContentProps } from './content';
|
|
2
|
+
import type { CSSProperties, ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
import type { IconPropType } from '@element-plus/utils';
|
|
4
|
+
import type Tour from './EpTour.vue';
|
|
5
|
+
import type { TourGap, TourMask } from './types';
|
|
6
|
+
export interface TourProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description open tour
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @description what is the current step
|
|
13
|
+
*/
|
|
14
|
+
current?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @description whether to show the arrow
|
|
17
|
+
*/
|
|
18
|
+
showArrow?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description whether to show a close button
|
|
21
|
+
*/
|
|
22
|
+
showClose?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description custom close icon
|
|
25
|
+
*/
|
|
26
|
+
closeIcon?: IconPropType;
|
|
27
|
+
/**
|
|
28
|
+
* @description position of the guide card relative to the target element
|
|
29
|
+
*/
|
|
30
|
+
placement?: TourContentProps['placement'];
|
|
31
|
+
/**
|
|
32
|
+
* @description custom style for content
|
|
33
|
+
*/
|
|
34
|
+
contentStyle?: CSSProperties;
|
|
35
|
+
/**
|
|
36
|
+
* @description whether to enable masking, change mask style and fill color by pass custom props
|
|
37
|
+
*/
|
|
38
|
+
mask?: TourMask;
|
|
39
|
+
/**
|
|
40
|
+
* @description transparent gap between mask and target
|
|
41
|
+
*/
|
|
42
|
+
gap?: TourGap;
|
|
43
|
+
/**
|
|
44
|
+
* @description tour's zIndex
|
|
45
|
+
*/
|
|
46
|
+
zIndex?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @description support pass custom scrollIntoView options
|
|
49
|
+
*/
|
|
50
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
51
|
+
/**
|
|
52
|
+
* @description type, affects the background color and text color
|
|
53
|
+
*/
|
|
54
|
+
type?: 'default' | 'primary';
|
|
55
|
+
/**
|
|
56
|
+
* @description which element the TourContent appends to
|
|
57
|
+
*/
|
|
58
|
+
appendTo?: string | HTMLElement;
|
|
59
|
+
/**
|
|
60
|
+
* @description whether the Tour can be closed by pressing ESC
|
|
61
|
+
*/
|
|
62
|
+
closeOnPressEscape?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @description whether the target element can be clickable, when using mask
|
|
65
|
+
*/
|
|
66
|
+
targetAreaClickable?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Removed after 3.0.0, Use `TourProps` instead.
|
|
70
|
+
*/
|
|
71
|
+
export declare const tourProps: {
|
|
72
|
+
modelValue: BooleanConstructor;
|
|
73
|
+
current: {
|
|
74
|
+
readonly type: import("vue").PropType<number>;
|
|
75
|
+
readonly required: false;
|
|
76
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
77
|
+
__epPropKey: true;
|
|
78
|
+
};
|
|
79
|
+
showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
80
|
+
showClose: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
81
|
+
closeIcon: {
|
|
82
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
87
|
+
placement: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | (((new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement)) | null)[], "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
88
|
+
contentStyle: {
|
|
89
|
+
readonly type: import("vue").PropType<CSSProperties>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
};
|
|
94
|
+
mask: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
95
|
+
style?: CSSProperties;
|
|
96
|
+
color?: string;
|
|
97
|
+
}) | (() => TourMask) | (((new (...args: any[]) => boolean | {
|
|
98
|
+
style?: CSSProperties;
|
|
99
|
+
color?: string;
|
|
100
|
+
}) | (() => TourMask)) | null)[], unknown, unknown, boolean, boolean>;
|
|
101
|
+
gap: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => TourGap) | (() => TourGap) | (((new (...args: any[]) => TourGap) | (() => TourGap)) | null)[], unknown, unknown, () => {
|
|
102
|
+
offset: number;
|
|
103
|
+
radius: number;
|
|
104
|
+
}, boolean>;
|
|
105
|
+
zIndex: {
|
|
106
|
+
readonly type: import("vue").PropType<number>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
+
__epPropKey: true;
|
|
110
|
+
};
|
|
111
|
+
scrollIntoViewOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, () => {
|
|
112
|
+
block: string;
|
|
113
|
+
}, boolean>;
|
|
114
|
+
type: {
|
|
115
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "default" | "primary") | (() => "default" | "primary") | (((new (...args: any[]) => "default" | "primary") | (() => "default" | "primary")) | null)[], unknown, unknown>>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
};
|
|
120
|
+
appendTo: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown, string, boolean>;
|
|
121
|
+
closeOnPressEscape: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
122
|
+
targetAreaClickable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Removed after 3.0.0, Use `TourProps` instead.
|
|
126
|
+
*/
|
|
127
|
+
export type TourPropsPublic = ExtractPublicPropTypes<typeof tourProps>;
|
|
128
|
+
export type TourInstance = InstanceType<typeof Tour> & unknown;
|
|
129
|
+
export declare const tourEmits: {
|
|
130
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
131
|
+
"update:current": (current: number) => boolean;
|
|
132
|
+
close: (current: number) => boolean;
|
|
133
|
+
finish: () => boolean;
|
|
134
|
+
change: (current: number) => boolean;
|
|
135
|
+
};
|
|
136
|
+
export type TourEmits = typeof tourEmits;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { isNumber as o, isBoolean as r } from "../../utils/types.js";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@vue/shared";
|
|
5
|
+
import { UPDATE_MODEL_EVENT as p } from "../../constants/event.js";
|
|
6
|
+
import { iconPropType as l } from "../../utils/vue/icon.js";
|
|
7
|
+
import "vue";
|
|
8
|
+
import { buildProps as n, definePropType as t } from "../../utils/vue/props/runtime.js";
|
|
9
|
+
import { tourContentProps as a } from "./content.js";
|
|
10
|
+
const B = n({
|
|
11
|
+
/**
|
|
12
|
+
* @description open tour
|
|
13
|
+
*/
|
|
14
|
+
modelValue: Boolean,
|
|
15
|
+
/**
|
|
16
|
+
* @description what is the current step
|
|
17
|
+
*/
|
|
18
|
+
current: {
|
|
19
|
+
type: Number
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @description whether to show the arrow
|
|
23
|
+
*/
|
|
24
|
+
showArrow: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @description whether to show a close button
|
|
30
|
+
*/
|
|
31
|
+
showClose: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* @description custom close icon
|
|
37
|
+
*/
|
|
38
|
+
closeIcon: {
|
|
39
|
+
type: l
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* @description position of the guide card relative to the target element
|
|
43
|
+
*/
|
|
44
|
+
placement: a.placement,
|
|
45
|
+
/**
|
|
46
|
+
* @description custom style for content
|
|
47
|
+
*/
|
|
48
|
+
contentStyle: {
|
|
49
|
+
type: t([Object])
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @description whether to enable masking, change mask style and fill color by pass custom props
|
|
53
|
+
*/
|
|
54
|
+
mask: {
|
|
55
|
+
type: t([Boolean, Object]),
|
|
56
|
+
default: !0
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @description transparent gap between mask and target
|
|
60
|
+
*/
|
|
61
|
+
gap: {
|
|
62
|
+
type: t(Object),
|
|
63
|
+
default: () => ({
|
|
64
|
+
offset: 6,
|
|
65
|
+
radius: 2
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* @description tour's zIndex
|
|
70
|
+
*/
|
|
71
|
+
zIndex: {
|
|
72
|
+
type: Number
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @description support pass custom scrollIntoView options
|
|
76
|
+
*/
|
|
77
|
+
scrollIntoViewOptions: {
|
|
78
|
+
type: t([Boolean, Object]),
|
|
79
|
+
default: () => ({
|
|
80
|
+
block: "center"
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* @description type, affects the background color and text color
|
|
85
|
+
*/
|
|
86
|
+
type: {
|
|
87
|
+
type: t(String)
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @description which element the TourContent appends to
|
|
91
|
+
*/
|
|
92
|
+
appendTo: {
|
|
93
|
+
type: t([String, Object]),
|
|
94
|
+
default: "body"
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* @description whether the Tour can be closed by pressing ESC
|
|
98
|
+
*/
|
|
99
|
+
closeOnPressEscape: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !0
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* @description whether the target element can be clickable, when using mask
|
|
105
|
+
*/
|
|
106
|
+
targetAreaClickable: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
}
|
|
110
|
+
}), O = {
|
|
111
|
+
[p]: (e) => r(e),
|
|
112
|
+
"update:current": (e) => o(e),
|
|
113
|
+
close: (e) => o(e),
|
|
114
|
+
finish: () => !0,
|
|
115
|
+
change: (e) => o(e)
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
O as tourEmits,
|
|
119
|
+
B as tourProps
|
|
120
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ButtonProps } from '../button';
|
|
2
|
+
import type { CSSProperties, VNode } from 'vue';
|
|
3
|
+
export type TourMask = boolean | {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface TourGap {
|
|
8
|
+
offset?: number | [number, number];
|
|
9
|
+
radius?: number;
|
|
10
|
+
}
|
|
11
|
+
export type TourBtnProps = {
|
|
12
|
+
children?: VNode | string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
} & Partial<ButtonProps> & Record<string, any>;
|
|
15
|
+
export interface PosInfo {
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
height: number;
|
|
19
|
+
width: number;
|
|
20
|
+
radius: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TourStepProps } from './step';
|
|
2
|
+
declare var __VLS_9: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
header?: (props: typeof __VLS_9) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_11) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<TourStepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
close: () => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<TourStepProps> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
mask: import("../tour").TourMask;
|
|
14
|
+
placement: import("@floating-ui/dom").Placement;
|
|
15
|
+
scrollIntoViewOptions: boolean | ScrollIntoViewOptions;
|
|
16
|
+
showArrow: boolean;
|
|
17
|
+
showClose: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as H, inject as J, watch as Q, computed as x, onMounted as W, onBeforeUnmount as X, openBlock as s, createElementBlock as d, Fragment as S, normalizeClass as r, unref as e, createVNode as Y, withCtx as y, createBlock as f, resolveDynamicComponent as N, createCommentVNode as C, createElementVNode as u, renderSlot as V, toDisplayString as v, renderList as Z, mergeProps as I, createTextVNode as O } from "vue";
|
|
2
|
+
import { EVENT_CODE as T } from "../../constants/aria.js";
|
|
3
|
+
import { omit as _ } from "lodash-unified";
|
|
4
|
+
import { EpButton as D } from "../button/index.js";
|
|
5
|
+
import { ElIcon as ee } from "../icon/index.js";
|
|
6
|
+
import "@vue/shared";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import { getEventCode as te } from "../../utils/dom/event.js";
|
|
9
|
+
import { CloseComponents as oe } from "../../utils/vue/icon.js";
|
|
10
|
+
import { useLocale as ne } from "../../hooks/use-locale/index.js";
|
|
11
|
+
import "../../hooks/use-size/index.js";
|
|
12
|
+
import "@popperjs/core";
|
|
13
|
+
import "../../hooks/use-z-index/index.js";
|
|
14
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
15
|
+
import "../../hooks/use-aria/index.js";
|
|
16
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
17
|
+
import "../../hooks/use-empty-values/index.js";
|
|
18
|
+
import { tourStepEmits as re } from "./step.js";
|
|
19
|
+
import { tourKey as le } from "../tour/helper.js";
|
|
20
|
+
import { TOUR_STEP_NAME as se } from "../tour/constants.js";
|
|
21
|
+
const ie = ["aria-label"], Ne = /* @__PURE__ */ H({
|
|
22
|
+
name: se,
|
|
23
|
+
__name: "EpTourStep",
|
|
24
|
+
props: {
|
|
25
|
+
target: {},
|
|
26
|
+
title: {},
|
|
27
|
+
description: {},
|
|
28
|
+
showClose: { type: Boolean, default: void 0 },
|
|
29
|
+
closeIcon: {},
|
|
30
|
+
showArrow: { type: Boolean, default: void 0 },
|
|
31
|
+
placement: { default: "bottom" },
|
|
32
|
+
mask: { type: [Boolean, Object], default: void 0 },
|
|
33
|
+
contentStyle: {},
|
|
34
|
+
prevButtonProps: {},
|
|
35
|
+
nextButtonProps: {},
|
|
36
|
+
scrollIntoViewOptions: { type: Boolean, default: void 0 },
|
|
37
|
+
type: {}
|
|
38
|
+
},
|
|
39
|
+
emits: re,
|
|
40
|
+
setup(i, { emit: F }) {
|
|
41
|
+
const a = i, L = F, { Close: z } = oe, { t: p } = ne(), {
|
|
42
|
+
currentStep: M,
|
|
43
|
+
current: n,
|
|
44
|
+
total: m,
|
|
45
|
+
showClose: h,
|
|
46
|
+
closeIcon: j,
|
|
47
|
+
mergedType: k,
|
|
48
|
+
ns: o,
|
|
49
|
+
slots: B,
|
|
50
|
+
updateModelValue: A,
|
|
51
|
+
onClose: K,
|
|
52
|
+
onFinish: U
|
|
53
|
+
} = J(le);
|
|
54
|
+
Q(
|
|
55
|
+
a,
|
|
56
|
+
(t) => {
|
|
57
|
+
M.value = t;
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
immediate: !0
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
const $ = x(() => a.showClose ?? h.value), R = x(
|
|
64
|
+
() => a.closeIcon ?? j.value ?? z
|
|
65
|
+
), w = (t) => {
|
|
66
|
+
if (t)
|
|
67
|
+
return _(t, ["children", "onClick"]);
|
|
68
|
+
}, E = () => {
|
|
69
|
+
var t, c;
|
|
70
|
+
n.value -= 1, (t = a.prevButtonProps) != null && t.onClick && ((c = a.prevButtonProps) == null || c.onClick());
|
|
71
|
+
}, b = () => {
|
|
72
|
+
var t;
|
|
73
|
+
n.value >= m.value - 1 ? q() : n.value += 1, (t = a.nextButtonProps) != null && t.onClick && a.nextButtonProps.onClick();
|
|
74
|
+
}, q = () => {
|
|
75
|
+
P(), U();
|
|
76
|
+
}, P = () => {
|
|
77
|
+
A(!1), K(), L("close");
|
|
78
|
+
}, g = (t) => {
|
|
79
|
+
const c = t.target;
|
|
80
|
+
if (c != null && c.isContentEditable) return;
|
|
81
|
+
switch (te(t)) {
|
|
82
|
+
case T.left:
|
|
83
|
+
t.preventDefault(), n.value > 0 && E();
|
|
84
|
+
break;
|
|
85
|
+
case T.right:
|
|
86
|
+
t.preventDefault(), b();
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return W(() => {
|
|
91
|
+
window.addEventListener("keydown", g);
|
|
92
|
+
}), X(() => {
|
|
93
|
+
window.removeEventListener("keydown", g);
|
|
94
|
+
}), (t, c) => (s(), d(S, null, [
|
|
95
|
+
$.value ? (s(), d("button", {
|
|
96
|
+
key: 0,
|
|
97
|
+
"aria-label": e(p)("el.tour.close"),
|
|
98
|
+
class: r(e(o).e("closebtn")),
|
|
99
|
+
type: "button",
|
|
100
|
+
onClick: P
|
|
101
|
+
}, [
|
|
102
|
+
Y(e(ee), {
|
|
103
|
+
class: r(e(o).e("close"))
|
|
104
|
+
}, {
|
|
105
|
+
default: y(() => [
|
|
106
|
+
(s(), f(N(R.value)))
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["class"])
|
|
110
|
+
], 10, ie)) : C("", !0),
|
|
111
|
+
u("header", {
|
|
112
|
+
class: r([e(o).e("header"), { "show-close": e(h) }])
|
|
113
|
+
}, [
|
|
114
|
+
V(t.$slots, "header", {}, () => [
|
|
115
|
+
u("span", {
|
|
116
|
+
role: "heading",
|
|
117
|
+
class: r(e(o).e("title"))
|
|
118
|
+
}, v(i.title), 3)
|
|
119
|
+
])
|
|
120
|
+
], 2),
|
|
121
|
+
u("div", {
|
|
122
|
+
class: r(e(o).e("body"))
|
|
123
|
+
}, [
|
|
124
|
+
V(t.$slots, "default", {}, () => [
|
|
125
|
+
u("span", null, v(i.description), 1)
|
|
126
|
+
])
|
|
127
|
+
], 2),
|
|
128
|
+
u("footer", {
|
|
129
|
+
class: r(e(o).e("footer"))
|
|
130
|
+
}, [
|
|
131
|
+
u("div", {
|
|
132
|
+
class: r(e(o).b("indicators"))
|
|
133
|
+
}, [
|
|
134
|
+
e(B).indicators ? (s(), f(N(e(B).indicators), {
|
|
135
|
+
key: 0,
|
|
136
|
+
current: e(n),
|
|
137
|
+
total: e(m)
|
|
138
|
+
}, null, 8, ["current", "total"])) : (s(!0), d(S, { key: 1 }, Z(e(m), (l, G) => (s(), d("span", {
|
|
139
|
+
key: l,
|
|
140
|
+
class: r([e(o).b("indicator"), e(o).is("active", G === e(n))])
|
|
141
|
+
}, null, 2))), 128))
|
|
142
|
+
], 2),
|
|
143
|
+
u("div", {
|
|
144
|
+
class: r(e(o).b("buttons"))
|
|
145
|
+
}, [
|
|
146
|
+
e(n) > 0 ? (s(), f(e(D), I({
|
|
147
|
+
key: 0,
|
|
148
|
+
size: "small",
|
|
149
|
+
type: e(k)
|
|
150
|
+
}, w(i.prevButtonProps), { onClick: E }), {
|
|
151
|
+
default: y(() => {
|
|
152
|
+
var l;
|
|
153
|
+
return [
|
|
154
|
+
O(v(((l = i.prevButtonProps) == null ? void 0 : l.children) ?? e(p)("el.tour.previous")), 1)
|
|
155
|
+
];
|
|
156
|
+
}),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 16, ["type"])) : C("", !0),
|
|
159
|
+
e(n) <= e(m) - 1 ? (s(), f(e(D), I({
|
|
160
|
+
key: 1,
|
|
161
|
+
size: "small",
|
|
162
|
+
type: e(k) === "primary" ? "default" : "primary"
|
|
163
|
+
}, w(i.nextButtonProps), { onClick: b }), {
|
|
164
|
+
default: y(() => {
|
|
165
|
+
var l;
|
|
166
|
+
return [
|
|
167
|
+
O(v(((l = i.nextButtonProps) == null ? void 0 : l.children) ?? (e(n) === e(m) - 1 ? e(p)("el.tour.finish") : e(p)("el.tour.next"))), 1)
|
|
168
|
+
];
|
|
169
|
+
}),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 16, ["type"])) : C("", !0)
|
|
172
|
+
], 2)
|
|
173
|
+
], 2)
|
|
174
|
+
], 64));
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export {
|
|
178
|
+
Ne as default
|
|
179
|
+
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpTourStep from './EpTourStep.vue';
|
|
3
|
+
/**
|
|
4
|
+
* tour-step 自持 barrel(vendor-batch-3 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 子项组件名取 `tour/constants.ts` 的 `TOUR_STEP_NAME`(值为 `'EpTourStep'`),
|
|
7
|
+
* 父组件 `steps.ts` 按同一常量过滤步骤 vnode。两侧不各自维护字面量,故改名
|
|
8
|
+
* 不会让识别再次失效。
|
|
9
|
+
*
|
|
10
|
+
* 不导出 `ElTourStep` 别名。
|
|
11
|
+
*/
|
|
12
|
+
export declare const EpTourStep: typeof _EpTourStep & Plugin;
|
|
4
13
|
export default EpTourStep;
|
|
14
|
+
export { tourStepEmits, tourStepProps } from './step';
|
|
15
|
+
export type { TourStepEmits, TourStepProps, TourStepPropsPublic, } from './step';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
|
+
import o from "./EpTourStep.vue.js";
|
|
3
|
+
import { tourStepEmits as i, tourStepProps as f } from "./step.js";
|
|
4
|
+
const e = t(
|
|
5
|
+
o,
|
|
6
|
+
"ep-tour-step"
|
|
7
|
+
);
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
e as EpTourStep,
|
|
10
|
+
i as tourStepEmits,
|
|
11
|
+
f as tourStepProps
|
|
6
12
|
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { CSSProperties, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { IconPropType } from '@element-plus/utils';
|
|
3
|
+
import type { TourBtnProps, TourMask } from '../tour/types';
|
|
4
|
+
import type { TourContentProps } from '../tour/content';
|
|
5
|
+
export interface TourStepProps {
|
|
6
|
+
/**
|
|
7
|
+
* @description get the element the guide card points to. empty makes it show in center of screen
|
|
8
|
+
*/
|
|
9
|
+
target?: string | HTMLElement | (() => HTMLElement | null) | null;
|
|
10
|
+
/**
|
|
11
|
+
* @description the title of the tour content
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description description
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @description whether to show a close button
|
|
20
|
+
*/
|
|
21
|
+
showClose?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @description custom close icon, default is Close
|
|
24
|
+
*/
|
|
25
|
+
closeIcon?: IconPropType;
|
|
26
|
+
/**
|
|
27
|
+
* @description whether to show the arrow
|
|
28
|
+
*/
|
|
29
|
+
showArrow?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @description position of the guide card relative to the target element
|
|
32
|
+
*/
|
|
33
|
+
placement?: TourContentProps['placement'];
|
|
34
|
+
/**
|
|
35
|
+
* @description whether to enable masking, change mask style and fill color by pass custom props
|
|
36
|
+
*/
|
|
37
|
+
mask?: TourMask;
|
|
38
|
+
/**
|
|
39
|
+
* @description custom style for content
|
|
40
|
+
*/
|
|
41
|
+
contentStyle?: CSSProperties;
|
|
42
|
+
/**
|
|
43
|
+
* @description properties of the previous button
|
|
44
|
+
*/
|
|
45
|
+
prevButtonProps?: TourBtnProps;
|
|
46
|
+
/**
|
|
47
|
+
* @description properties of the Next button
|
|
48
|
+
*/
|
|
49
|
+
nextButtonProps?: TourBtnProps;
|
|
50
|
+
/**
|
|
51
|
+
* @description support pass custom scrollIntoView options
|
|
52
|
+
*/
|
|
53
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
54
|
+
/**
|
|
55
|
+
* @description type, affects the background color and text color
|
|
56
|
+
*/
|
|
57
|
+
type?: 'default' | 'primary';
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Removed after 3.0.0, Use `TourStepProps` instead.
|
|
61
|
+
*/
|
|
62
|
+
export declare const tourStepProps: {
|
|
63
|
+
target: {
|
|
64
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement | (() => HTMLElement | null)) | (() => string | HTMLElement | (() => HTMLElement | null) | null) | (((new (...args: any[]) => string | HTMLElement | (() => HTMLElement | null)) | (() => string | HTMLElement | (() => HTMLElement | null) | null)) | null)[], unknown, unknown>>;
|
|
65
|
+
readonly required: false;
|
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
+
__epPropKey: true;
|
|
68
|
+
};
|
|
69
|
+
title: StringConstructor;
|
|
70
|
+
description: StringConstructor;
|
|
71
|
+
showClose: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
72
|
+
closeIcon: {
|
|
73
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
+
__epPropKey: true;
|
|
77
|
+
};
|
|
78
|
+
showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
79
|
+
placement: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | (((new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement)) | null)[], "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
80
|
+
mask: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
81
|
+
style?: CSSProperties;
|
|
82
|
+
color?: string;
|
|
83
|
+
}) | (() => TourMask) | (((new (...args: any[]) => boolean | {
|
|
84
|
+
style?: CSSProperties;
|
|
85
|
+
color?: string;
|
|
86
|
+
}) | (() => TourMask)) | null)[], unknown, unknown, undefined, boolean>;
|
|
87
|
+
contentStyle: {
|
|
88
|
+
readonly type: import("vue").PropType<CSSProperties>;
|
|
89
|
+
readonly required: false;
|
|
90
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
|
+
__epPropKey: true;
|
|
92
|
+
};
|
|
93
|
+
prevButtonProps: {
|
|
94
|
+
readonly type: import("vue").PropType<TourBtnProps>;
|
|
95
|
+
readonly required: false;
|
|
96
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
+
__epPropKey: true;
|
|
98
|
+
};
|
|
99
|
+
nextButtonProps: {
|
|
100
|
+
readonly type: import("vue").PropType<TourBtnProps>;
|
|
101
|
+
readonly required: false;
|
|
102
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
+
__epPropKey: true;
|
|
104
|
+
};
|
|
105
|
+
scrollIntoViewOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, undefined, boolean>;
|
|
106
|
+
type: {
|
|
107
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "default" | "primary") | (() => "default" | "primary") | (((new (...args: any[]) => "default" | "primary") | (() => "default" | "primary")) | null)[], unknown, unknown>>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Removed after 3.0.0, Use `TourStepProps` instead.
|
|
115
|
+
*/
|
|
116
|
+
export type TourStepPropsPublic = ExtractPublicPropTypes<typeof tourStepProps>;
|
|
117
|
+
export declare const tourStepEmits: {
|
|
118
|
+
close: () => boolean;
|
|
119
|
+
};
|
|
120
|
+
export type TourStepEmits = typeof tourStepEmits;
|