@aifuxi/semi-ui-vue 0.1.0-alpha.0
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/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/Button-RCaDTqHh.js +249 -0
- package/dist/Collapsible-DeV0aJ4n.js +199 -0
- package/dist/Cropper-Dy1LPBDN.js +587 -0
- package/dist/Divider-BQmwhGfH.js +57 -0
- package/dist/Input-BYWFIgNn.js +593 -0
- package/dist/InputNumber-BaeViVtG.js +856 -0
- package/dist/Modal-BhmFYVFw.js +975 -0
- package/dist/Pagination-4JvS-gHR.js +572 -0
- package/dist/Progress-BulSV_JR.js +523 -0
- package/dist/SBOM.spdx.json +165 -0
- package/dist/SelectOption-Ce-Lst-e.js +1473 -0
- package/dist/Slider-w9sbxzBw.js +707 -0
- package/dist/Spin-CuFLkqev.js +222 -0
- package/dist/THIRD_PARTY_LICENSES/Semi-Design.txt +83 -0
- package/dist/THIRD_PARTY_LICENSES/async-validator.txt +9 -0
- package/dist/THIRD_PARTY_LICENSES/bezier-easing.txt +22 -0
- package/dist/THIRD_PARTY_LICENSES/date-fns-tz.txt +21 -0
- package/dist/THIRD_PARTY_LICENSES/date-fns.txt +21 -0
- package/dist/THIRD_PARTY_LICENSES/lodash.txt +47 -0
- package/dist/THIRD_PARTY_LICENSES/scroll-into-view-if-needed.txt +21 -0
- package/dist/THIRD_PARTY_NOTICES.md +23 -0
- package/dist/Tooltip-Bq7HZwnS.js +1321 -0
- package/dist/Tree-tqy5xBYJ.js +1275 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/anchor/Anchor.vue.d.ts +29 -0
- package/dist/anchor/AnchorLink.vue.d.ts +16 -0
- package/dist/anchor/AnchorNodeRenderer.d.ts +15 -0
- package/dist/anchor/anchor-context.d.ts +18 -0
- package/dist/anchor/index.d.ts +11 -0
- package/dist/anchor/index.js +2 -0
- package/dist/anchor/types.d.ts +43 -0
- package/dist/anchor-DW0p2t-I.js +503 -0
- package/dist/arrayMove-ByVCXfhS.js +7 -0
- package/dist/auto-complete/AutoComplete.vue.d.ts +33 -0
- package/dist/auto-complete/AutoCompleteNodeRenderer.d.ts +15 -0
- package/dist/auto-complete/AutoCompleteOption.vue.d.ts +19 -0
- package/dist/auto-complete/index.d.ts +10 -0
- package/dist/auto-complete/index.js +2 -0
- package/dist/auto-complete/types.d.ts +117 -0
- package/dist/auto-complete/use-auto-complete-foundation.d.ts +40 -0
- package/dist/auto-complete-BeahBlt9.js +765 -0
- package/dist/avatar/Avatar.vue.d.ts +26 -0
- package/dist/avatar/AvatarGroup.d.ts +54 -0
- package/dist/avatar/AvatarNodeRenderer.d.ts +15 -0
- package/dist/avatar/TopSlotSvg.vue.d.ts +7 -0
- package/dist/avatar/index.d.ts +10 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/types.d.ts +86 -0
- package/dist/avatar-B00xjEzD.js +551 -0
- package/dist/back-top/BackTop.vue.d.ts +19 -0
- package/dist/back-top/index.d.ts +3 -0
- package/dist/back-top/index.js +2 -0
- package/dist/back-top/types.d.ts +15 -0
- package/dist/back-top-C2XqUzoN.js +123 -0
- package/dist/badge/Badge.vue.d.ts +23 -0
- package/dist/badge/BadgeNodeRenderer.d.ts +15 -0
- package/dist/badge/index.d.ts +6 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/types.d.ts +29 -0
- package/dist/badge-gWsDkzyt.js +120 -0
- package/dist/banner/Banner.vue.d.ts +19 -0
- package/dist/banner/BannerNodeRenderer.d.ts +15 -0
- package/dist/banner/index.d.ts +6 -0
- package/dist/banner/index.js +2 -0
- package/dist/banner/types.d.ts +25 -0
- package/dist/banner-B3O4uDoR.js +220 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +129 -0
- package/dist/breadcrumb/BreadcrumbIconRenderer.d.ts +23 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +19 -0
- package/dist/breadcrumb/BreadcrumbNodeRenderer.d.ts +15 -0
- package/dist/breadcrumb/BreadcrumbPopover.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbPopoverArrow.vue.d.ts +3 -0
- package/dist/breadcrumb/breadcrumb-context.d.ts +9 -0
- package/dist/breadcrumb/index.d.ts +11 -0
- package/dist/breadcrumb/index.js +2 -0
- package/dist/breadcrumb/types.d.ts +72 -0
- package/dist/breadcrumb-BmBbFmGK.js +451 -0
- package/dist/button/Button.vue.d.ts +34 -0
- package/dist/button/ButtonAiLoadingIcon.vue.d.ts +3 -0
- package/dist/button/ButtonGroup.d.ts +69 -0
- package/dist/button/ButtonIconRenderer.d.ts +28 -0
- package/dist/button/ButtonLoadingIcon.vue.d.ts +3 -0
- package/dist/button/SplitButtonGroup.vue.d.ts +16 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +3 -0
- package/dist/button/types.d.ts +57 -0
- package/dist/button-Rcn5pYGh.js +134 -0
- package/dist/calendar/Calendar.vue.d.ts +29 -0
- package/dist/calendar/CalendarDay.vue.d.ts +3 -0
- package/dist/calendar/CalendarMonth.vue.d.ts +3 -0
- package/dist/calendar/CalendarNodeRenderer.d.ts +15 -0
- package/dist/calendar/CalendarTimeColumn.vue.d.ts +6 -0
- package/dist/calendar/CalendarWeek.vue.d.ts +8 -0
- package/dist/calendar/index.d.ts +6 -0
- package/dist/calendar/index.js +2 -0
- package/dist/calendar/types.d.ts +67 -0
- package/dist/calendar-CJTrr4y5.js +1172 -0
- package/dist/card/Card.vue.d.ts +16 -0
- package/dist/card/CardGroup.vue.d.ts +13 -0
- package/dist/card/CardMeta.vue.d.ts +11 -0
- package/dist/card/CardNodeRenderer.d.ts +15 -0
- package/dist/card/CardSkeleton.vue.d.ts +3 -0
- package/dist/card/card-content.d.ts +2 -0
- package/dist/card/index.d.ts +11 -0
- package/dist/card/index.js +2 -0
- package/dist/card/types.d.ts +56 -0
- package/dist/card-DwMOFi6_.js +348 -0
- package/dist/carousel/Carousel.vue.d.ts +29 -0
- package/dist/carousel/CarouselArrow.vue.d.ts +15 -0
- package/dist/carousel/CarouselIndicator.vue.d.ts +17 -0
- package/dist/carousel/CarouselItemRenderer.d.ts +34 -0
- package/dist/carousel/CarouselNodeRenderer.d.ts +15 -0
- package/dist/carousel/index.d.ts +6 -0
- package/dist/carousel/index.js +2 -0
- package/dist/carousel/types.d.ts +70 -0
- package/dist/carousel/use-carousel-foundation.d.ts +19 -0
- package/dist/carousel-B4WlIRJH.js +458 -0
- package/dist/cascader/Cascader.vue.d.ts +71 -0
- package/dist/cascader/CascaderNodeRenderer.d.ts +15 -0
- package/dist/cascader/CascaderPanel.vue.d.ts +36 -0
- package/dist/cascader/index.d.ts +6 -0
- package/dist/cascader/index.js +2 -0
- package/dist/cascader/types.d.ts +192 -0
- package/dist/cascader-Ch6clCeh.js +1525 -0
- package/dist/checkbox/Checkbox.vue.d.ts +19 -0
- package/dist/checkbox/CheckboxGroup.d.ts +161 -0
- package/dist/checkbox/CheckboxNodeRenderer.d.ts +15 -0
- package/dist/checkbox/checkbox-context.d.ts +11 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/types.d.ts +92 -0
- package/dist/checkbox-mJD1ou6k.js +479 -0
- package/dist/collapse/Collapse.vue.d.ts +140 -0
- package/dist/collapse/CollapseNodeRenderer.d.ts +15 -0
- package/dist/collapse/CollapsePanel.vue.d.ts +99 -0
- package/dist/collapse/collapse-context.d.ts +14 -0
- package/dist/collapse/index.d.ts +10 -0
- package/dist/collapse/index.js +2 -0
- package/dist/collapse/types.d.ts +50 -0
- package/dist/collapse-7YtQLWqt.js +278 -0
- package/dist/collapsible/Collapsible.vue.d.ts +136 -0
- package/dist/collapsible/index.d.ts +5 -0
- package/dist/collapsible/index.js +5 -0
- package/dist/collapsible/types.d.ts +28 -0
- package/dist/color-picker/AlphaSlider.vue.d.ts +14 -0
- package/dist/color-picker/ColorChooseArea.vue.d.ts +20 -0
- package/dist/color-picker/ColorDataPart.vue.d.ts +15 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +28 -0
- package/dist/color-picker/ColorPickerNodeRenderer.d.ts +17 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +37 -0
- package/dist/color-picker/ColorSlider.vue.d.ts +13 -0
- package/dist/color-picker/index.d.ts +10 -0
- package/dist/color-picker/index.js +2 -0
- package/dist/color-picker/types.d.ts +67 -0
- package/dist/color-picker-ChC7qsx0.js +885 -0
- package/dist/config-context-CyynTtDb.js +4 -0
- package/dist/config-provider/ConfigConsumer.vue.d.ts +11 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +16 -0
- package/dist/config-provider/config-context.d.ts +3 -0
- package/dist/config-provider/constants.d.ts +4 -0
- package/dist/config-provider/index.d.ts +13 -0
- package/dist/config-provider/index.js +3 -0
- package/dist/config-provider/semi-global.d.ts +6 -0
- package/dist/config-provider/types.d.ts +74 -0
- package/dist/config-provider/use-responsive-observe.d.ts +6 -0
- package/dist/config-provider-VMfNNSF1.js +188 -0
- package/dist/constants-BF9bZJyc.js +45 -0
- package/dist/constants-BNwzO87W.js +9 -0
- package/dist/cropper/Cropper.vue.d.ts +18 -0
- package/dist/cropper/index.d.ts +4 -0
- package/dist/cropper/index.js +5 -0
- package/dist/cropper/types.d.ts +51 -0
- package/dist/date-picker/DatePicker.vue.d.ts +41 -0
- package/dist/date-picker/DatePickerMonth.vue.d.ts +25 -0
- package/dist/date-picker/DatePickerNodeRenderer.d.ts +17 -0
- package/dist/date-picker/DatePickerPanel.vue.d.ts +33 -0
- package/dist/date-picker/index.d.ts +5 -0
- package/dist/date-picker/index.js +2 -0
- package/dist/date-picker/types.d.ts +211 -0
- package/dist/date-picker-B2lhlKHD.js +2207 -0
- package/dist/descriptions/Descriptions.vue.d.ts +96 -0
- package/dist/descriptions/DescriptionsItem.vue.d.ts +96 -0
- package/dist/descriptions/DescriptionsNodeRenderer.d.ts +15 -0
- package/dist/descriptions/descriptions-context.d.ts +7 -0
- package/dist/descriptions/index.d.ts +10 -0
- package/dist/descriptions/index.js +2 -0
- package/dist/descriptions/types.d.ts +45 -0
- package/dist/descriptions-BU6ahbge.js +272 -0
- package/dist/divider/Divider.vue.d.ts +15 -0
- package/dist/divider/DividerContentRenderer.d.ts +17 -0
- package/dist/divider/index.d.ts +3 -0
- package/dist/divider/index.js +3 -0
- package/dist/divider/types.d.ts +13 -0
- package/dist/divider-DA9U4uOl.js +8 -0
- package/dist/dropdown/Dropdown.vue.d.ts +23 -0
- package/dist/dropdown/DropdownDivider.vue.d.ts +4 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +28 -0
- package/dist/dropdown/DropdownMenu.vue.d.ts +11 -0
- package/dist/dropdown/DropdownNodeRenderer.d.ts +15 -0
- package/dist/dropdown/DropdownTitle.vue.d.ts +11 -0
- package/dist/dropdown/DropdownTriggerRenderer.d.ts +45 -0
- package/dist/dropdown/dropdown-context.d.ts +8 -0
- package/dist/dropdown/index.d.ts +17 -0
- package/dist/dropdown/index.js +2 -0
- package/dist/dropdown/types.d.ts +98 -0
- package/dist/dropdown-D0-UWd65.js +665 -0
- package/dist/empty/Empty.vue.d.ts +13 -0
- package/dist/empty/EmptyNodeRenderer.d.ts +15 -0
- package/dist/empty/index.d.ts +6 -0
- package/dist/empty/index.js +2 -0
- package/dist/empty/types.d.ts +27 -0
- package/dist/empty-Bpms8Z5w.js +152 -0
- package/dist/env-BeIzjQx7.js +4 -0
- package/dist/es-CAWQuPuV.js +93 -0
- package/dist/float-button/FloatButton.vue.d.ts +20 -0
- package/dist/float-button/FloatButtonBadge.vue.d.ts +18 -0
- package/dist/float-button/FloatButtonGroup.vue.d.ts +17 -0
- package/dist/float-button/FloatButtonNodeRenderer.d.ts +17 -0
- package/dist/float-button/index.d.ts +4 -0
- package/dist/float-button/index.js +2 -0
- package/dist/float-button/types.d.ts +59 -0
- package/dist/float-button-qU3b0WBX.js +190 -0
- package/dist/form/ArrayField.d.ts +24 -0
- package/dist/form/Form.vue.d.ts +38 -0
- package/dist/form/FormErrorMessage.vue.d.ts +4 -0
- package/dist/form/FormField.d.ts +9 -0
- package/dist/form/FormInputGroup.d.ts +62 -0
- package/dist/form/FormLabel.vue.d.ts +18 -0
- package/dist/form/FormNodeRenderer.d.ts +15 -0
- package/dist/form/FormSection.vue.d.ts +16 -0
- package/dist/form/FormSlot.d.ts +3 -0
- package/dist/form/form-context.d.ts +4 -0
- package/dist/form/index.d.ts +68 -0
- package/dist/form/index.js +3 -0
- package/dist/form/internal-types.d.ts +67 -0
- package/dist/form/types.d.ts +273 -0
- package/dist/form/use-form.d.ts +11 -0
- package/dist/form/with-form.d.ts +3 -0
- package/dist/form-CLhGuORQ.js +2030 -0
- package/dist/foundation-Cawx37mp.js +1819 -0
- package/dist/grid/Col.vue.d.ts +13 -0
- package/dist/grid/Row.vue.d.ts +14 -0
- package/dist/grid/grid-context.d.ts +6 -0
- package/dist/grid/index.d.ts +5 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/media-query.d.ts +2 -0
- package/dist/grid/types.d.ts +44 -0
- package/dist/grid-Cn2uBhRd.js +161 -0
- package/dist/highlight/Highlight.vue.d.ts +10 -0
- package/dist/highlight/HighlightNodeRenderer.d.ts +49 -0
- package/dist/highlight/index.d.ts +4 -0
- package/dist/highlight/index.js +2 -0
- package/dist/highlight/internal-types.d.ts +8 -0
- package/dist/highlight/types.d.ts +17 -0
- package/dist/highlight-DHX3RV0C.js +158 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/image/Image.vue.d.ts +21 -0
- package/dist/image/ImageNodeRenderer.d.ts +15 -0
- package/dist/image/ImagePreview.vue.d.ts +56 -0
- package/dist/image/ImagePreviewFooter.vue.d.ts +38 -0
- package/dist/image/ImagePreviewHeader.vue.d.ts +17 -0
- package/dist/image/ImagePreviewImage.vue.d.ts +27 -0
- package/dist/image/ImagePreviewInner.vue.d.ts +54 -0
- package/dist/image/image-context.d.ts +14 -0
- package/dist/image/index.d.ts +6 -0
- package/dist/image/index.js +2 -0
- package/dist/image/types.d.ts +183 -0
- package/dist/image-C-ifCh_9.js +1615 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +75 -0
- package/dist/input/Input.vue.d.ts +58 -0
- package/dist/input/InputGroup.d.ts +69 -0
- package/dist/input/InputNodeRenderer.d.ts +15 -0
- package/dist/input/TextArea.vue.d.ts +50 -0
- package/dist/input/index.d.ts +11 -0
- package/dist/input/index.js +2 -0
- package/dist/input/types.d.ts +168 -0
- package/dist/input-number/InputNumber.vue.d.ts +52 -0
- package/dist/input-number/index.d.ts +10 -0
- package/dist/input-number/index.js +5 -0
- package/dist/input-number/types.d.ts +56 -0
- package/dist/input-wf0nZCRS.js +747 -0
- package/dist/isBefore-BG1hiM9f.js +37 -0
- package/dist/isElement-Cx0AsIov.js +11 -0
- package/dist/isEnterPress-HTy0eCBp.js +8 -0
- package/dist/isNullOrUndefined-Cg6MZ8r3.js +6 -0
- package/dist/isPromise-D2v3Ejff.js +11 -0
- package/dist/keyCode-DMNg63wX.js +110 -0
- package/dist/layout/Layout.vue.d.ts +14 -0
- package/dist/layout/LayoutContent.vue.d.ts +14 -0
- package/dist/layout/LayoutFooter.vue.d.ts +14 -0
- package/dist/layout/LayoutHeader.vue.d.ts +14 -0
- package/dist/layout/LayoutSection.vue.d.ts +17 -0
- package/dist/layout/LayoutSider.vue.d.ts +18 -0
- package/dist/layout/index.d.ts +17 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/layout-context.d.ts +6 -0
- package/dist/layout/media-query.d.ts +4 -0
- package/dist/layout/types.d.ts +31 -0
- package/dist/layout-tq-_l_O3.js +171 -0
- package/dist/list/List.vue.d.ts +22 -0
- package/dist/list/ListItem.vue.d.ts +88 -0
- package/dist/list/ListNodeRenderer.d.ts +15 -0
- package/dist/list/ListSpin.vue.d.ts +16 -0
- package/dist/list/index.d.ts +10 -0
- package/dist/list/index.js +2 -0
- package/dist/list/list-context.d.ts +8 -0
- package/dist/list/types.d.ts +66 -0
- package/dist/list-DHIOE2Y-.js +387 -0
- package/dist/modal/ConfirmModal.vue.d.ts +14 -0
- package/dist/modal/Modal.vue.d.ts +15 -0
- package/dist/modal/ModalDefaultFooter.vue.d.ts +22 -0
- package/dist/modal/ModalDialog.vue.d.ts +53 -0
- package/dist/modal/ModalInnerContent.vue.d.ts +38 -0
- package/dist/modal/ModalNodeRenderer.d.ts +15 -0
- package/dist/modal/imperative.d.ts +9 -0
- package/dist/modal/index.d.ts +8 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/types.d.ts +92 -0
- package/dist/modal/use-modal.d.ts +2 -0
- package/dist/modal-YVolL7Hz.js +221 -0
- package/dist/navigation/CollapseButton.vue.d.ts +12 -0
- package/dist/navigation/NavFooter.vue.d.ts +15 -0
- package/dist/navigation/NavHeader.vue.d.ts +13 -0
- package/dist/navigation/NavItem.d.ts +177 -0
- package/dist/navigation/Navigation.vue.d.ts +29 -0
- package/dist/navigation/NavigationContextProvider.d.ts +16 -0
- package/dist/navigation/NavigationIconRenderer.d.ts +45 -0
- package/dist/navigation/NavigationItemTree.vue.d.ts +8 -0
- package/dist/navigation/NavigationNodeRenderer.d.ts +18 -0
- package/dist/navigation/SubNav.vue.d.ts +18 -0
- package/dist/navigation/index.d.ts +14 -0
- package/dist/navigation/index.js +2 -0
- package/dist/navigation/navigation-context.d.ts +35 -0
- package/dist/navigation/types.d.ts +177 -0
- package/dist/navigation-DF8R5jFK.js +1479 -0
- package/dist/notification/NotificationHost.vue.d.ts +7 -0
- package/dist/notification/NotificationNodeRenderer.d.ts +15 -0
- package/dist/notification/NotificationNotice.vue.d.ts +16 -0
- package/dist/notification/imperative.d.ts +12 -0
- package/dist/notification/index.d.ts +6 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/notification-store.d.ts +24 -0
- package/dist/notification/types.d.ts +63 -0
- package/dist/notification/use-notification.d.ts +2 -0
- package/dist/notification-DIsvgiIO.js +445 -0
- package/dist/overflow-list/OverflowList.vue.d.ts +131 -0
- package/dist/overflow-list/OverflowListNodeRenderer.d.ts +35 -0
- package/dist/overflow-list/index.d.ts +5 -0
- package/dist/overflow-list/index.js +2 -0
- package/dist/overflow-list/types.d.ts +35 -0
- package/dist/overflow-list-Df6ixrtB.js +413 -0
- package/dist/pagination/Pagination.vue.d.ts +25 -0
- package/dist/pagination/PaginationNodeRenderer.d.ts +15 -0
- package/dist/pagination/PaginationPopover.vue.d.ts +25 -0
- package/dist/pagination/PaginationRestList.vue.d.ts +11 -0
- package/dist/pagination/index.d.ts +3 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/types.d.ts +46 -0
- package/dist/pin-code/PinCode.vue.d.ts +20 -0
- package/dist/pin-code/index.d.ts +10 -0
- package/dist/pin-code/index.js +2 -0
- package/dist/pin-code/types.d.ts +25 -0
- package/dist/pin-code-wY5g0KLD.js +193 -0
- package/dist/popconfirm/Popconfirm.vue.d.ts +25 -0
- package/dist/popconfirm/PopconfirmNodeRenderer.d.ts +15 -0
- package/dist/popconfirm/index.d.ts +4 -0
- package/dist/popconfirm/index.js +2 -0
- package/dist/popconfirm/types.d.ts +57 -0
- package/dist/popconfirm-DQUtvI0A.js +389 -0
- package/dist/popover/Popover.vue.d.ts +23 -0
- package/dist/popover/PopoverArrow.vue.d.ts +10 -0
- package/dist/popover/index.d.ts +4 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/types.d.ts +35 -0
- package/dist/popover-hD77YpUM.js +292 -0
- package/dist/progress/Progress.vue.d.ts +24 -0
- package/dist/progress/ProgressCircle.vue.d.ts +26 -0
- package/dist/progress/ProgressLine.vue.d.ts +23 -0
- package/dist/progress/ProgressNodeRenderer.d.ts +15 -0
- package/dist/progress/index.d.ts +6 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/types.d.ts +44 -0
- package/dist/progress-DIIyWKKD.js +9 -0
- package/dist/radio/Radio.vue.d.ts +30 -0
- package/dist/radio/RadioGroup.d.ts +201 -0
- package/dist/radio/RadioNodeRenderer.d.ts +15 -0
- package/dist/radio/index.d.ts +10 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/radio-context.d.ts +15 -0
- package/dist/radio/types.d.ts +100 -0
- package/dist/radio-y9iAI359.js +565 -0
- package/dist/rating/Rating.vue.d.ts +39 -0
- package/dist/rating/RatingItem.vue.d.ts +33 -0
- package/dist/rating/RatingNodeRenderer.d.ts +17 -0
- package/dist/rating/index.d.ts +6 -0
- package/dist/rating/index.js +2 -0
- package/dist/rating/types.d.ts +57 -0
- package/dist/rating-CJkb4pkD.js +542 -0
- package/dist/resizable/Resizable.vue.d.ts +31 -0
- package/dist/resizable/ResizableNodeRenderer.d.ts +17 -0
- package/dist/resizable/ResizeGroup.vue.d.ts +13 -0
- package/dist/resizable/ResizeHandler.vue.d.ts +11 -0
- package/dist/resizable/ResizeItem.vue.d.ts +19 -0
- package/dist/resizable/SingleResizeHandle.vue.d.ts +21 -0
- package/dist/resizable/index.d.ts +6 -0
- package/dist/resizable/index.js +2 -0
- package/dist/resizable/resizable-context.d.ts +27 -0
- package/dist/resizable/types.d.ts +87 -0
- package/dist/resizable/use-resize-group.d.ts +21 -0
- package/dist/resizable/use-single-resize.d.ts +30 -0
- package/dist/resizable-CEB0ZdGT.js +814 -0
- package/dist/scroll-list/ScrollItem.vue.d.ts +21 -0
- package/dist/scroll-list/ScrollList.vue.d.ts +11 -0
- package/dist/scroll-list/ScrollListNodeRenderer.d.ts +15 -0
- package/dist/scroll-list/index.d.ts +10 -0
- package/dist/scroll-list/index.js +2 -0
- package/dist/scroll-list/types.d.ts +54 -0
- package/dist/scroll-list-BSXksNOR.js +466 -0
- package/dist/select/Select.vue.d.ts +39 -0
- package/dist/select/SelectFragment.d.ts +4 -0
- package/dist/select/SelectNodeRenderer.d.ts +15 -0
- package/dist/select/SelectOption.vue.d.ts +13 -0
- package/dist/select/SelectOptionCollector.d.ts +13 -0
- package/dist/select/SelectOptionGroup.vue.d.ts +14 -0
- package/dist/select/index.d.ts +12 -0
- package/dist/select/index.js +3 -0
- package/dist/select/types.d.ts +165 -0
- package/dist/select/use-select-foundation.d.ts +64 -0
- package/dist/select-BeM6gxAU.js +40 -0
- package/dist/side-sheet/SideSheet.vue.d.ts +19 -0
- package/dist/side-sheet/SideSheetContent.vue.d.ts +37 -0
- package/dist/side-sheet/SideSheetNodeRenderer.d.ts +15 -0
- package/dist/side-sheet/index.d.ts +4 -0
- package/dist/side-sheet/index.js +2 -0
- package/dist/side-sheet/types.d.ts +46 -0
- package/dist/side-sheet-9CBTk23r.js +542 -0
- package/dist/skeleton/Skeleton.vue.d.ts +15 -0
- package/dist/skeleton/SkeletonAvatar.vue.d.ts +9 -0
- package/dist/skeleton/SkeletonButton.vue.d.ts +7 -0
- package/dist/skeleton/SkeletonImage.vue.d.ts +7 -0
- package/dist/skeleton/SkeletonNodeRenderer.d.ts +15 -0
- package/dist/skeleton/SkeletonParagraph.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonTitle.vue.d.ts +7 -0
- package/dist/skeleton/index.d.ts +18 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton/types.d.ts +36 -0
- package/dist/skeleton-p61lfhoz.js +302 -0
- package/dist/slider/Slider.vue.d.ts +32 -0
- package/dist/slider/SliderFragment.d.ts +4 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/index.js +5 -0
- package/dist/slider/types.d.ts +57 -0
- package/dist/slider/use-slider-foundation.d.ts +47 -0
- package/dist/space/Space.vue.d.ts +16 -0
- package/dist/space/index.d.ts +3 -0
- package/dist/space/index.js +2 -0
- package/dist/space/types.d.ts +15 -0
- package/dist/space-DVnFbkCz.js +63 -0
- package/dist/spin/Spin.vue.d.ts +105 -0
- package/dist/spin/SpinNodeRenderer.d.ts +15 -0
- package/dist/spin/index.d.ts +6 -0
- package/dist/spin/index.js +2 -0
- package/dist/spin/types.d.ts +20 -0
- package/dist/spin-D-1P0WMW.js +9 -0
- package/dist/src-DNBBthjO.js +490 -0
- package/dist/steps/Step.vue.d.ts +22 -0
- package/dist/steps/Steps.vue.d.ts +24 -0
- package/dist/steps/StepsNodeRenderer.d.ts +17 -0
- package/dist/steps/index.d.ts +9 -0
- package/dist/steps/index.js +2 -0
- package/dist/steps/steps-context.d.ts +6 -0
- package/dist/steps/types.d.ts +54 -0
- package/dist/steps-6p04q-Lz.js +303 -0
- package/dist/switch/Switch.vue.d.ts +27 -0
- package/dist/switch/SwitchNodeRenderer.d.ts +15 -0
- package/dist/switch/SwitchSpin.vue.d.ts +7 -0
- package/dist/switch/index.d.ts +7 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/types.d.ts +28 -0
- package/dist/switch-Dte2Fl3l.js +284 -0
- package/dist/table/Table.vue.d.ts +29 -0
- package/dist/table/TableBody.vue.d.ts +70 -0
- package/dist/table/TableCell.vue.d.ts +37 -0
- package/dist/table/TableColumn.d.ts +81 -0
- package/dist/table/TableFilterMenu.vue.d.ts +18 -0
- package/dist/table/TableHeader.vue.d.ts +46 -0
- package/dist/table/TableNativeElement.d.ts +9 -0
- package/dist/table/TableNodeRenderer.d.ts +13 -0
- package/dist/table/TableSpin.vue.d.ts +16 -0
- package/dist/table/index.d.ts +13 -0
- package/dist/table/index.js +2 -0
- package/dist/table/table-utils.d.ts +43 -0
- package/dist/table/types.d.ts +323 -0
- package/dist/table-jZkHjf-W.js +2097 -0
- package/dist/tabs/TabBar.vue.d.ts +38 -0
- package/dist/tabs/TabItem.vue.d.ts +26 -0
- package/dist/tabs/TabPane.vue.d.ts +13 -0
- package/dist/tabs/Tabs.vue.d.ts +36 -0
- package/dist/tabs/TabsDropdown.vue.d.ts +27 -0
- package/dist/tabs/TabsNodeRenderer.d.ts +15 -0
- package/dist/tabs/index.d.ts +6 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/tabs-context.d.ts +12 -0
- package/dist/tabs/types.d.ts +110 -0
- package/dist/tabs-CezuYzIu.js +874 -0
- package/dist/tag/SplitTagGroup.d.ts +36 -0
- package/dist/tag/Tag.vue.d.ts +33 -0
- package/dist/tag/TagGroup.d.ts +115 -0
- package/dist/tag/TagNodeRenderer.d.ts +15 -0
- package/dist/tag/index.d.ts +8 -0
- package/dist/tag/index.js +2 -0
- package/dist/tag/types.d.ts +82 -0
- package/dist/tag-BPD0bELU.js +348 -0
- package/dist/tag-input/TagInput.vue.d.ts +51 -0
- package/dist/tag-input/TagInputNodeRenderer.d.ts +17 -0
- package/dist/tag-input/TagInputRestPopover.vue.d.ts +19 -0
- package/dist/tag-input/TagInputTag.vue.d.ts +27 -0
- package/dist/tag-input/index.d.ts +5 -0
- package/dist/tag-input/index.js +2 -0
- package/dist/tag-input/types.d.ts +95 -0
- package/dist/tag-input/use-tag-input-foundation.d.ts +47 -0
- package/dist/tag-input-SxUfNqF0.js +784 -0
- package/dist/time-picker/TimePicker.vue.d.ts +27 -0
- package/dist/time-picker/TimePickerColumn.vue.d.ts +29 -0
- package/dist/time-picker/TimePickerNodeRenderer.d.ts +17 -0
- package/dist/time-picker/TimePickerPanel.vue.d.ts +32 -0
- package/dist/time-picker/index.d.ts +5 -0
- package/dist/time-picker/index.js +2 -0
- package/dist/time-picker/types.d.ts +146 -0
- package/dist/time-picker/use-time-picker-foundation.d.ts +36 -0
- package/dist/time-picker-D6p36ea8.js +3587 -0
- package/dist/timeline/Timeline.vue.d.ts +69 -0
- package/dist/timeline/TimelineItem.vue.d.ts +100 -0
- package/dist/timeline/TimelineNodeRenderer.d.ts +15 -0
- package/dist/timeline/index.d.ts +10 -0
- package/dist/timeline/index.js +2 -0
- package/dist/timeline/types.d.ts +43 -0
- package/dist/timeline-2D5xCZsU.js +191 -0
- package/dist/toast/ToastHost.vue.d.ts +7 -0
- package/dist/toast/ToastIconRenderer.d.ts +17 -0
- package/dist/toast/ToastNodeRenderer.d.ts +15 -0
- package/dist/toast/ToastNotice.vue.d.ts +20 -0
- package/dist/toast/imperative.d.ts +3 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/toast-store.d.ts +30 -0
- package/dist/toast/types.d.ts +65 -0
- package/dist/toast/use-toast.d.ts +2 -0
- package/dist/toast-s8nFLf8t.js +523 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/TooltipArrow.vue.d.ts +8 -0
- package/dist/tooltip/TooltipNodeRenderer.d.ts +15 -0
- package/dist/tooltip/TooltipPortal.vue.d.ts +44 -0
- package/dist/tooltip/TooltipTriggerRenderer.d.ts +66 -0
- package/dist/tooltip/index.d.ts +5 -0
- package/dist/tooltip/index.js +3 -0
- package/dist/tooltip/types.d.ts +117 -0
- package/dist/tooltip/use-tooltip-foundation.d.ts +25 -0
- package/dist/tooltip-en9bvXRp.js +28 -0
- package/dist/transfer/Transfer.vue.d.ts +35 -0
- package/dist/transfer/TransferNodeRenderer.d.ts +15 -0
- package/dist/transfer/index.d.ts +5 -0
- package/dist/transfer/index.js +2 -0
- package/dist/transfer/types.d.ts +159 -0
- package/dist/transfer-Doq1sI9z.js +695 -0
- package/dist/tree/Tree.vue.d.ts +73 -0
- package/dist/tree/TreeNode.vue.d.ts +77 -0
- package/dist/tree/TreeNodeMotion.vue.d.ts +20 -0
- package/dist/tree/TreeNodeRenderer.d.ts +15 -0
- package/dist/tree/index.d.ts +9 -0
- package/dist/tree/index.js +5 -0
- package/dist/tree/types.d.ts +180 -0
- package/dist/tree-select/TreeSelect.vue.d.ts +76 -0
- package/dist/tree-select/TreeSelectNodeRenderer.d.ts +15 -0
- package/dist/tree-select/index.d.ts +6 -0
- package/dist/tree-select/index.js +2 -0
- package/dist/tree-select/types.d.ts +156 -0
- package/dist/tree-select-BIu6Owuq.js +1237 -0
- package/dist/treeUtil-IUdRJ6Ws.js +277 -0
- package/dist/typography/Numeral.vue.d.ts +32 -0
- package/dist/typography/Paragraph.vue.d.ts +30 -0
- package/dist/typography/Text.vue.d.ts +30 -0
- package/dist/typography/Title.vue.d.ts +28 -0
- package/dist/typography/Typography.vue.d.ts +13 -0
- package/dist/typography/TypographyBase.vue.d.ts +40 -0
- package/dist/typography/TypographyCopyable.vue.d.ts +29 -0
- package/dist/typography/TypographyDecorations.d.ts +34 -0
- package/dist/typography/TypographyNodeRenderer.d.ts +17 -0
- package/dist/typography/index.d.ts +17 -0
- package/dist/typography/index.js +2 -0
- package/dist/typography/types.d.ts +108 -0
- package/dist/typography/typography-locale.d.ts +5 -0
- package/dist/typography/typography-utils.d.ts +4 -0
- package/dist/typography-DF8KwKuL.js +914 -0
- package/dist/upload/Upload.vue.d.ts +69 -0
- package/dist/upload/UploadFileCard.vue.d.ts +4 -0
- package/dist/upload/UploadNodeRenderer.d.ts +15 -0
- package/dist/upload/index.d.ts +10 -0
- package/dist/upload/index.js +2 -0
- package/dist/upload/types.d.ts +250 -0
- package/dist/upload-BzdpoGJX.js +1777 -0
- package/dist/uuid-BUHV1G8U.js +21 -0
- package/dist/warning-naSiE8G7.js +6 -0
- package/dist/zh-CN-CCu7YvUA.js +1623 -0
- package/package.json +336 -0
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { h as e, t } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t as n } from "./config-context-CyynTtDb.js";
|
|
4
|
+
import { n as r } from "./config-provider-VMfNNSF1.js";
|
|
5
|
+
import { t as i } from "./Button-RCaDTqHh.js";
|
|
6
|
+
import { Fragment as a, cloneVNode as o, computed as s, createApp as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, h, inject as g, isVNode as _, markRaw as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, renderList as w, resolveDynamicComponent as T, shallowReactive as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
|
|
7
|
+
import { IconAlertCircle as ee, IconAlertTriangle as j, IconClose as M, IconInfoCircle as N, IconTickCircle as te } from "@aifuxi/semi-icons-vue";
|
|
8
|
+
//#region bundled-foundation
|
|
9
|
+
var P = class n extends t {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
super({
|
|
12
|
+
...n.defaultAdapter,
|
|
13
|
+
...e
|
|
14
|
+
}), this._timer = null, this._id = null;
|
|
15
|
+
}
|
|
16
|
+
init() {
|
|
17
|
+
this.startCloseTimer_(), this._id = this._adapter.getProp("id");
|
|
18
|
+
}
|
|
19
|
+
destroy() {
|
|
20
|
+
this.clearCloseTimer_();
|
|
21
|
+
}
|
|
22
|
+
startCloseTimer_() {
|
|
23
|
+
let t = this._adapter.getProp("duration");
|
|
24
|
+
t && (0, e.default)(t) && (this._timer = setTimeout(() => {
|
|
25
|
+
this.close();
|
|
26
|
+
}, t * 1e3));
|
|
27
|
+
}
|
|
28
|
+
close(e) {
|
|
29
|
+
e && e.stopPropagation(), this._adapter.notifyWrapperToRemove(this._id), this._adapter.notifyClose();
|
|
30
|
+
}
|
|
31
|
+
clearCloseTimer_() {
|
|
32
|
+
this._timer &&= (clearTimeout(this._timer), null);
|
|
33
|
+
}
|
|
34
|
+
restartCloseTimer() {
|
|
35
|
+
this.clearCloseTimer_(), this.startCloseTimer_();
|
|
36
|
+
}
|
|
37
|
+
}, F = class e extends t {
|
|
38
|
+
constructor(t) {
|
|
39
|
+
super({
|
|
40
|
+
...e.defaultAdapter,
|
|
41
|
+
...t
|
|
42
|
+
}), this.handleMouseInSideChange = (e) => {
|
|
43
|
+
this._adapter.handleMouseInSideChange(e);
|
|
44
|
+
}, this.getInputWrapperRect = () => this._adapter.getInputWrapperRect();
|
|
45
|
+
}
|
|
46
|
+
hasToast(e) {
|
|
47
|
+
return this._adapter.getState("list").map(({ id: e }) => e).includes(e);
|
|
48
|
+
}
|
|
49
|
+
addToast(e) {
|
|
50
|
+
let t = this._adapter.getState("list");
|
|
51
|
+
t.push(e), this._adapter.updateToast(t, [], []);
|
|
52
|
+
}
|
|
53
|
+
updateToast(e, t) {
|
|
54
|
+
let n = this._adapter.getState("list");
|
|
55
|
+
n = n.map((n) => n.id === e ? {
|
|
56
|
+
...n,
|
|
57
|
+
...t
|
|
58
|
+
} : n);
|
|
59
|
+
let r = n.filter(((t) => t.id === e));
|
|
60
|
+
this._adapter.updateToast(n, [], r);
|
|
61
|
+
}
|
|
62
|
+
removeToast(e) {
|
|
63
|
+
let t = this._adapter.getState("list"), n = [];
|
|
64
|
+
t = t.filter((t) => t.id !== e || (n.push(t), !1)), this._adapter.updateToast(t, n, []);
|
|
65
|
+
}
|
|
66
|
+
destroyAll() {
|
|
67
|
+
let e = this._adapter.getState("list");
|
|
68
|
+
e.length > 0 && this._adapter.updateToast([], e, []);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/toast/ToastIconRenderer.ts
|
|
73
|
+
function I(e) {
|
|
74
|
+
return !_(e) || typeof e.type == "string" ? !1 : e.type.elementType === "Icon";
|
|
75
|
+
}
|
|
76
|
+
var L = m({
|
|
77
|
+
name: "ToastIconRenderer",
|
|
78
|
+
props: { content: {
|
|
79
|
+
type: null,
|
|
80
|
+
default: void 0
|
|
81
|
+
} },
|
|
82
|
+
setup(e) {
|
|
83
|
+
return () => I(e.content) ? o(e.content, {
|
|
84
|
+
class: "semi-toast-icon",
|
|
85
|
+
size: "large"
|
|
86
|
+
}) : e.content;
|
|
87
|
+
}
|
|
88
|
+
}), R = m({
|
|
89
|
+
name: "ToastNodeRenderer",
|
|
90
|
+
props: { content: {
|
|
91
|
+
type: null,
|
|
92
|
+
default: void 0
|
|
93
|
+
} },
|
|
94
|
+
setup(e) {
|
|
95
|
+
return () => e.content;
|
|
96
|
+
}
|
|
97
|
+
}), z = ["aria-label"], B = { class: "semi-toast-content" }, V = {
|
|
98
|
+
key: 2,
|
|
99
|
+
class: "semi-toast-close-button"
|
|
100
|
+
}, ne = ["aria-label"], re = { class: "semi-toast-content" }, ie = {
|
|
101
|
+
key: 2,
|
|
102
|
+
class: "semi-toast-close-button"
|
|
103
|
+
}, H = /* @__PURE__ */ m({
|
|
104
|
+
name: "ToastNotice",
|
|
105
|
+
__name: "ToastNotice",
|
|
106
|
+
props: {
|
|
107
|
+
animationClass: {},
|
|
108
|
+
entry: {},
|
|
109
|
+
positionInList: {},
|
|
110
|
+
stack: { type: Boolean },
|
|
111
|
+
stackExpanded: { type: Boolean }
|
|
112
|
+
},
|
|
113
|
+
emits: ["animationEnd", "remove"],
|
|
114
|
+
setup(e, { emit: t }) {
|
|
115
|
+
let r = e, a = t, o = g(n, void 0), c = O("toast"), m = E({}), h = /* @__PURE__ */ new Map(), _ = v(new P({
|
|
116
|
+
getContext: () => void 0,
|
|
117
|
+
getContexts: () => void 0,
|
|
118
|
+
getProp: (e) => r.entry[e],
|
|
119
|
+
getProps: () => r.entry,
|
|
120
|
+
getState: (e) => m[e],
|
|
121
|
+
getStates: () => m,
|
|
122
|
+
setState: (e, t) => {
|
|
123
|
+
Object.assign(m, e), t?.();
|
|
124
|
+
},
|
|
125
|
+
getCache: (e) => h.get(e),
|
|
126
|
+
getCaches: () => h,
|
|
127
|
+
setCache: (e, t) => h.set(String(e), t),
|
|
128
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
129
|
+
persistEvent: () => void 0,
|
|
130
|
+
notifyWrapperToRemove: (e) => a("remove", e),
|
|
131
|
+
notifyClose: () => r.entry.onClose?.()
|
|
132
|
+
})), w = {
|
|
133
|
+
error: ee,
|
|
134
|
+
info: N,
|
|
135
|
+
success: te,
|
|
136
|
+
warning: j
|
|
137
|
+
}, F = s(() => r.entry.direction ?? o?.value.direction ?? "ltr"), I = s(() => w[r.entry.type]), H = s(() => r.entry.icon !== null && r.entry.icon !== void 0), U = s(() => [
|
|
138
|
+
"semi-toast",
|
|
139
|
+
`semi-toast-${r.entry.type}`,
|
|
140
|
+
r.entry.theme === "light" ? "semi-toast-light" : void 0,
|
|
141
|
+
F.value === "rtl" ? "semi-toast-rtl" : void 0,
|
|
142
|
+
r.entry.className,
|
|
143
|
+
r.animationClass
|
|
144
|
+
]), W = s(() => ({ maxWidth: typeof r.entry.textMaxWidth == "number" ? `${r.entry.textMaxWidth}px` : r.entry.textMaxWidth })), G = s(() => r.positionInList.length - r.positionInList.index - 1), K = s(() => [r.entry.style, { transform: `translate3d(0,0,${G.value * -10}px)` }]), q = s(() => !r.stackExpanded || !c.value ? { height: 0 } : { height: getComputedStyle(c.value).height });
|
|
145
|
+
function J(e) {
|
|
146
|
+
_.close(e);
|
|
147
|
+
}
|
|
148
|
+
function Y(e) {
|
|
149
|
+
e.target === e.currentTarget && a("animationEnd", r.entry.id);
|
|
150
|
+
}
|
|
151
|
+
return k(() => r.entry.revision, (e, t) => {
|
|
152
|
+
e !== t && _.restartCloseTimer();
|
|
153
|
+
}), S(() => _.init()), x(() => _.destroy()), (e, t) => r.stack ? (C(), d("div", {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: "semi-toast-zero-height-wrapper",
|
|
156
|
+
style: b(q.value)
|
|
157
|
+
}, [f("div", {
|
|
158
|
+
ref: "toast",
|
|
159
|
+
"aria-label": `${r.entry.type || "default"} type`,
|
|
160
|
+
class: y(U.value),
|
|
161
|
+
style: b(K.value),
|
|
162
|
+
role: "alert",
|
|
163
|
+
onAnimationend: Y,
|
|
164
|
+
onMouseenter: t[0] ||= (e) => D(_).clearCloseTimer_(),
|
|
165
|
+
onMouseleave: t[1] ||= (e) => D(_).startCloseTimer_()
|
|
166
|
+
}, [f("div", B, [
|
|
167
|
+
H.value ? (C(), l(D(L), {
|
|
168
|
+
key: 0,
|
|
169
|
+
content: r.entry.icon
|
|
170
|
+
}, null, 8, ["content"])) : I.value ? (C(), l(T(I.value), {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: y(["semi-toast-icon", `semi-toast-icon-${r.entry.type}`]),
|
|
173
|
+
size: "large"
|
|
174
|
+
}, null, 8, ["class"])) : u("", !0),
|
|
175
|
+
f("span", {
|
|
176
|
+
class: "semi-toast-content-text",
|
|
177
|
+
style: b(W.value),
|
|
178
|
+
"x-semi-prop": "content"
|
|
179
|
+
}, [p(D(R), { content: r.entry.content }, null, 8, ["content"])], 4),
|
|
180
|
+
r.entry.showClose ? (C(), d("div", V, [p(i, {
|
|
181
|
+
"aria-label": "Close",
|
|
182
|
+
size: "small",
|
|
183
|
+
theme: "borderless",
|
|
184
|
+
type: "tertiary",
|
|
185
|
+
onClick: J
|
|
186
|
+
}, {
|
|
187
|
+
icon: A(() => [p(D(M), { "x-semi-prop": "icon" })]),
|
|
188
|
+
_: 1
|
|
189
|
+
})])) : u("", !0)
|
|
190
|
+
])], 46, z)], 4)) : (C(), d("div", {
|
|
191
|
+
key: 1,
|
|
192
|
+
ref: "toast",
|
|
193
|
+
"aria-label": `${r.entry.type || "default"} type`,
|
|
194
|
+
class: y(U.value),
|
|
195
|
+
style: b(K.value),
|
|
196
|
+
role: "alert",
|
|
197
|
+
onAnimationend: Y,
|
|
198
|
+
onMouseenter: t[2] ||= (e) => D(_).clearCloseTimer_(),
|
|
199
|
+
onMouseleave: t[3] ||= (e) => D(_).startCloseTimer_()
|
|
200
|
+
}, [f("div", re, [
|
|
201
|
+
H.value ? (C(), l(D(L), {
|
|
202
|
+
key: 0,
|
|
203
|
+
content: r.entry.icon
|
|
204
|
+
}, null, 8, ["content"])) : I.value ? (C(), l(T(I.value), {
|
|
205
|
+
key: 1,
|
|
206
|
+
class: y(["semi-toast-icon", `semi-toast-icon-${r.entry.type}`]),
|
|
207
|
+
size: "large"
|
|
208
|
+
}, null, 8, ["class"])) : u("", !0),
|
|
209
|
+
f("span", {
|
|
210
|
+
class: "semi-toast-content-text",
|
|
211
|
+
style: b(W.value),
|
|
212
|
+
"x-semi-prop": "content"
|
|
213
|
+
}, [p(D(R), { content: r.entry.content }, null, 8, ["content"])], 4),
|
|
214
|
+
r.entry.showClose ? (C(), d("div", ie, [p(i, {
|
|
215
|
+
"aria-label": "Close",
|
|
216
|
+
size: "small",
|
|
217
|
+
theme: "borderless",
|
|
218
|
+
type: "tertiary",
|
|
219
|
+
onClick: J
|
|
220
|
+
}, {
|
|
221
|
+
icon: A(() => [p(D(M), { "x-semi-prop": "icon" })]),
|
|
222
|
+
_: 1
|
|
223
|
+
})])) : u("", !0)
|
|
224
|
+
])], 46, ne));
|
|
225
|
+
}
|
|
226
|
+
}), U = 340, W = class {
|
|
227
|
+
state = E({
|
|
228
|
+
list: [],
|
|
229
|
+
mouseInSide: !1,
|
|
230
|
+
removedItems: [],
|
|
231
|
+
updatedItems: []
|
|
232
|
+
});
|
|
233
|
+
animated;
|
|
234
|
+
stack = !1;
|
|
235
|
+
cache = /* @__PURE__ */ new Map();
|
|
236
|
+
innerWrapper;
|
|
237
|
+
removalTimers = /* @__PURE__ */ new Map();
|
|
238
|
+
foundation;
|
|
239
|
+
constructor(e) {
|
|
240
|
+
this.animated = e;
|
|
241
|
+
let t = {
|
|
242
|
+
getContext: () => void 0,
|
|
243
|
+
getContexts: () => void 0,
|
|
244
|
+
getProp: () => void 0,
|
|
245
|
+
getProps: () => ({}),
|
|
246
|
+
getState: (e) => this.state[e],
|
|
247
|
+
getStates: () => this.state,
|
|
248
|
+
setState: (e, t) => {
|
|
249
|
+
Object.assign(this.state, e), t?.();
|
|
250
|
+
},
|
|
251
|
+
getCache: (e) => this.cache.get(e),
|
|
252
|
+
getCaches: () => this.cache,
|
|
253
|
+
setCache: (e, t) => this.cache.set(String(e), t),
|
|
254
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
255
|
+
persistEvent: () => void 0,
|
|
256
|
+
updateToast: (e, t, n) => {
|
|
257
|
+
this.state.list = [...e], this.state.removedItems = t.map((e) => ({
|
|
258
|
+
...e,
|
|
259
|
+
phase: "leave"
|
|
260
|
+
})), this.state.updatedItems = [...n];
|
|
261
|
+
for (let e of this.state.removedItems) !this.animated || e.motion === !1 ? this.finishRemove(e.id) : this.scheduleRemovalFallback(e.id);
|
|
262
|
+
},
|
|
263
|
+
handleMouseInSideChange: (e) => {
|
|
264
|
+
this.state.mouseInSide = e;
|
|
265
|
+
},
|
|
266
|
+
getInputWrapperRect: () => this.innerWrapper?.getBoundingClientRect()
|
|
267
|
+
};
|
|
268
|
+
this.foundation = v(new F(t));
|
|
269
|
+
}
|
|
270
|
+
add(e) {
|
|
271
|
+
this.foundation.addToast(e);
|
|
272
|
+
}
|
|
273
|
+
has(e) {
|
|
274
|
+
return this.foundation.hasToast(e);
|
|
275
|
+
}
|
|
276
|
+
update(e, t) {
|
|
277
|
+
let n = this.state.list.find((t) => t.id === e);
|
|
278
|
+
n && this.foundation.updateToast(e, {
|
|
279
|
+
...t,
|
|
280
|
+
id: e,
|
|
281
|
+
phase: n.phase,
|
|
282
|
+
revision: n.revision + 1
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
remove(e) {
|
|
286
|
+
this.foundation.removeToast(e);
|
|
287
|
+
}
|
|
288
|
+
finishEnter(e) {
|
|
289
|
+
this.state.list = this.state.list.map((t) => t.id === e ? {
|
|
290
|
+
...t,
|
|
291
|
+
phase: "stable"
|
|
292
|
+
} : t);
|
|
293
|
+
}
|
|
294
|
+
finishRemove(e) {
|
|
295
|
+
let t = this.removalTimers.get(e);
|
|
296
|
+
t && clearTimeout(t), this.removalTimers.delete(e), this.state.removedItems = this.state.removedItems.filter((t) => t.id !== e);
|
|
297
|
+
}
|
|
298
|
+
setMouseInside(e) {
|
|
299
|
+
this.foundation.handleMouseInSideChange(e);
|
|
300
|
+
}
|
|
301
|
+
getInnerWrapperRect() {
|
|
302
|
+
return this.foundation.getInputWrapperRect();
|
|
303
|
+
}
|
|
304
|
+
setInnerWrapper(e) {
|
|
305
|
+
this.innerWrapper = e;
|
|
306
|
+
}
|
|
307
|
+
destroyAll() {
|
|
308
|
+
this.foundation.destroyAll();
|
|
309
|
+
}
|
|
310
|
+
destroy() {
|
|
311
|
+
for (let e of this.removalTimers.values()) clearTimeout(e);
|
|
312
|
+
this.removalTimers.clear(), this.state.list = [], this.state.removedItems = [], this.state.updatedItems = [], this.state.mouseInSide = !1, this.innerWrapper = void 0;
|
|
313
|
+
}
|
|
314
|
+
scheduleRemovalFallback(e) {
|
|
315
|
+
let t = this.removalTimers.get(e);
|
|
316
|
+
t && clearTimeout(t), this.removalTimers.set(e, setTimeout(() => this.finishRemove(e), U));
|
|
317
|
+
}
|
|
318
|
+
}, G = /* @__PURE__ */ m({
|
|
319
|
+
name: "ToastHost",
|
|
320
|
+
__name: "ToastHost",
|
|
321
|
+
props: { store: {} },
|
|
322
|
+
setup(e) {
|
|
323
|
+
let t = e, n = O("innerWrapper"), r = s(() => {
|
|
324
|
+
let e = [...t.store.state.list, ...t.store.state.removedItems];
|
|
325
|
+
return e.filter((t, n) => e.findIndex((e) => e.id === t.id) === n);
|
|
326
|
+
});
|
|
327
|
+
function i(e) {
|
|
328
|
+
if (!(!t.store.animated || !e.motion || e.phase === "stable")) return `semi-toast-animation-${e.phase === "leave" ? "hide" : "show"}`;
|
|
329
|
+
}
|
|
330
|
+
function o(e) {
|
|
331
|
+
e.phase === "leave" ? t.store.finishRemove(e.id) : t.store.finishEnter(e.id);
|
|
332
|
+
}
|
|
333
|
+
function c(e) {
|
|
334
|
+
t.store.remove(e);
|
|
335
|
+
}
|
|
336
|
+
function u() {
|
|
337
|
+
t.store.stack && t.store.setMouseInside(!0);
|
|
338
|
+
}
|
|
339
|
+
function f() {
|
|
340
|
+
t.store.stack && t.store.getInnerWrapperRect()?.height && t.store.setMouseInside(!1);
|
|
341
|
+
}
|
|
342
|
+
return k(n, (e) => {
|
|
343
|
+
t.store.setInnerWrapper(e ?? void 0);
|
|
344
|
+
}, { flush: "post" }), S(() => {
|
|
345
|
+
t.store.setInnerWrapper(n.value ?? void 0);
|
|
346
|
+
}), (e, s) => (C(), d("div", {
|
|
347
|
+
ref_key: "innerWrapper",
|
|
348
|
+
ref: n,
|
|
349
|
+
class: y(["semi-toast-innerWrapper", t.store.state.mouseInSide ? "semi-toast-innerWrapper-hover" : void 0]),
|
|
350
|
+
onMouseenter: u,
|
|
351
|
+
onMouseleave: f
|
|
352
|
+
}, [(C(!0), d(a, null, w(r.value, (e, n) => (C(), l(H, {
|
|
353
|
+
key: e.id,
|
|
354
|
+
"animation-class": i(e),
|
|
355
|
+
entry: e,
|
|
356
|
+
"position-in-list": {
|
|
357
|
+
length: r.value.length,
|
|
358
|
+
index: n
|
|
359
|
+
},
|
|
360
|
+
stack: t.store.stack,
|
|
361
|
+
"stack-expanded": t.store.state.mouseInSide,
|
|
362
|
+
onAnimationEnd: (t) => o(e),
|
|
363
|
+
onRemove: c
|
|
364
|
+
}, null, 8, [
|
|
365
|
+
"animation-class",
|
|
366
|
+
"entry",
|
|
367
|
+
"position-in-list",
|
|
368
|
+
"stack",
|
|
369
|
+
"stack-expanded",
|
|
370
|
+
"onAnimationEnd"
|
|
371
|
+
]))), 128))], 34));
|
|
372
|
+
}
|
|
373
|
+
}), K = 0;
|
|
374
|
+
function q() {
|
|
375
|
+
return K += 1, `semi_toast_${Date.now()}-${K}`;
|
|
376
|
+
}
|
|
377
|
+
function J() {
|
|
378
|
+
let e = v(new W(!1));
|
|
379
|
+
function t(t, n) {
|
|
380
|
+
let r = {
|
|
381
|
+
content: "",
|
|
382
|
+
duration: 3,
|
|
383
|
+
motion: !0,
|
|
384
|
+
showClose: !0,
|
|
385
|
+
stack: !1,
|
|
386
|
+
textMaxWidth: 450,
|
|
387
|
+
theme: "normal",
|
|
388
|
+
zIndex: 1010,
|
|
389
|
+
...n,
|
|
390
|
+
id: q(),
|
|
391
|
+
phase: "stable",
|
|
392
|
+
revision: 0,
|
|
393
|
+
type: t
|
|
394
|
+
};
|
|
395
|
+
return e.stack = !!r.stack, e.add(r), r.id;
|
|
396
|
+
}
|
|
397
|
+
return [{
|
|
398
|
+
close: (t) => {
|
|
399
|
+
let n = String(t);
|
|
400
|
+
return e.remove(n), n;
|
|
401
|
+
},
|
|
402
|
+
error: (e) => t("error", e),
|
|
403
|
+
info: (e) => t("info", e),
|
|
404
|
+
open: (e) => t("default", e),
|
|
405
|
+
success: (e) => t("success", e),
|
|
406
|
+
warning: (e) => t("warning", e)
|
|
407
|
+
}, v(m({
|
|
408
|
+
name: "ToastContextHolder",
|
|
409
|
+
setup: () => (x(() => e.destroy()), () => h(G, { store: e }))
|
|
410
|
+
}))];
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/toast/imperative.ts
|
|
414
|
+
var Y = {
|
|
415
|
+
content: "",
|
|
416
|
+
duration: 3,
|
|
417
|
+
motion: !0,
|
|
418
|
+
showClose: !0,
|
|
419
|
+
stack: !1,
|
|
420
|
+
textMaxWidth: 450,
|
|
421
|
+
theme: "normal",
|
|
422
|
+
zIndex: 1010
|
|
423
|
+
}, X = 0, Z = 0;
|
|
424
|
+
function ae() {
|
|
425
|
+
return X += 1, `toast-${Date.now()}-${X}`;
|
|
426
|
+
}
|
|
427
|
+
function oe(e) {
|
|
428
|
+
return typeof e == "string" ? { content: e } : e;
|
|
429
|
+
}
|
|
430
|
+
function Q(e, t) {
|
|
431
|
+
for (let n of [
|
|
432
|
+
"top",
|
|
433
|
+
"left",
|
|
434
|
+
"bottom",
|
|
435
|
+
"right"
|
|
436
|
+
]) if (n in t) {
|
|
437
|
+
let r = t[n];
|
|
438
|
+
e.style[n] = r === void 0 ? "" : typeof r == "number" ? `${r}px` : r;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function se(e) {
|
|
442
|
+
let t = { ...Y }, n, i = null;
|
|
443
|
+
function a(e) {
|
|
444
|
+
for (let n of [
|
|
445
|
+
"top",
|
|
446
|
+
"left",
|
|
447
|
+
"bottom",
|
|
448
|
+
"right"
|
|
449
|
+
]) if (n in e) {
|
|
450
|
+
let r = e[n];
|
|
451
|
+
r === void 0 ? delete t[n] : t[n] = r;
|
|
452
|
+
}
|
|
453
|
+
typeof e.zIndex == "number" && (t.zIndex = e.zIndex), typeof e.duration == "number" && (t.duration = e.duration), (e.theme === "normal" || e.theme === "light") && (t.theme = e.theme), typeof e.getPopupContainer == "function" && (t.getPopupContainer = e.getPopupContainer);
|
|
454
|
+
}
|
|
455
|
+
e && a(e);
|
|
456
|
+
function o(e) {
|
|
457
|
+
if (n) return Q(n.host, e), n;
|
|
458
|
+
if (typeof document > "u") throw Error("Toast imperative methods are only available in a browser.");
|
|
459
|
+
let t = document.createElement("div");
|
|
460
|
+
t.className = "semi-toast-wrapper", Z += 1, i = `semi-toast-wrapper-${Z}`, t.id = i, t.style.zIndex = String(e.zIndex), Q(t, e);
|
|
461
|
+
let r = e.getPopupContainer ? e.getPopupContainer() : document.body;
|
|
462
|
+
if (!r) throw Error("Toast getPopupContainer must return an HTMLElement.");
|
|
463
|
+
r.appendChild(t);
|
|
464
|
+
let a = v(new W(!0));
|
|
465
|
+
a.stack = !!e.stack, a.add(e);
|
|
466
|
+
let o = m({
|
|
467
|
+
name: "ImperativeToastRoot",
|
|
468
|
+
setup: () => () => h(G, { store: a })
|
|
469
|
+
}), s = c(o);
|
|
470
|
+
return s.mount(t), t.removeAttribute("data-v-app"), n = {
|
|
471
|
+
app: s,
|
|
472
|
+
host: t,
|
|
473
|
+
store: a
|
|
474
|
+
}, n;
|
|
475
|
+
}
|
|
476
|
+
function s(e, n) {
|
|
477
|
+
let i = oe(e), a = r.config.overrideDefaultProps?.Toast ?? {}, o = {
|
|
478
|
+
...t,
|
|
479
|
+
...a,
|
|
480
|
+
...i,
|
|
481
|
+
type: n
|
|
482
|
+
};
|
|
483
|
+
return {
|
|
484
|
+
...o,
|
|
485
|
+
id: o.id === void 0 ? ae() : String(o.id),
|
|
486
|
+
motion: o.motion ?? !0,
|
|
487
|
+
phase: "enter",
|
|
488
|
+
revision: 0,
|
|
489
|
+
type: n
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function l(e, t) {
|
|
493
|
+
let r = s(t, e), i = n === void 0, a = o(r);
|
|
494
|
+
return a.store.stack = !!r.stack, i || (a.store.has(r.id) ? a.store.update(r.id, r) : a.store.add(r)), r.id;
|
|
495
|
+
}
|
|
496
|
+
return {
|
|
497
|
+
close(e) {
|
|
498
|
+
let t = String(e);
|
|
499
|
+
return n?.store.remove(t), t;
|
|
500
|
+
},
|
|
501
|
+
config: a,
|
|
502
|
+
destroyAll() {
|
|
503
|
+
n && (n.store.destroyAll(), n.store.destroy(), n.app.unmount(), n.host.remove(), n = void 0, i = null);
|
|
504
|
+
},
|
|
505
|
+
error: (e) => l("error", e),
|
|
506
|
+
getWrapperId: () => i,
|
|
507
|
+
info: (e) => l("info", e),
|
|
508
|
+
success: (e) => l("success", e),
|
|
509
|
+
useToast: J,
|
|
510
|
+
warning: (e) => l("warning", e)
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
//#endregion
|
|
514
|
+
//#region src/toast/types.ts
|
|
515
|
+
var ce = [
|
|
516
|
+
"warning",
|
|
517
|
+
"success",
|
|
518
|
+
"info",
|
|
519
|
+
"error",
|
|
520
|
+
"default"
|
|
521
|
+
], le = ["normal", "light"], $ = { create: se }, ue = $.create();
|
|
522
|
+
//#endregion
|
|
523
|
+
export { J as a, ce as i, $ as n, le as r, ue as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TooltipExposed, TooltipProps, TooltipSlots } from './types';
|
|
2
|
+
type __VLS_Slots = TooltipSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<TooltipProps, TooltipExposed, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
afterClose: () => any;
|
|
5
|
+
clickOutside: (event: MouseEvent) => any;
|
|
6
|
+
escKeydown: (event: KeyboardEvent) => any;
|
|
7
|
+
visibleChange: (visible: boolean) => any;
|
|
8
|
+
"update:visible": (visible: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
10
|
+
onAfterClose?: () => any;
|
|
11
|
+
onClickOutside?: (event: MouseEvent) => any;
|
|
12
|
+
onEscKeydown?: (event: KeyboardEvent) => any;
|
|
13
|
+
onVisibleChange?: (visible: boolean) => any;
|
|
14
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
backgroundColor?: string | undefined;
|
|
3
|
+
placement: string;
|
|
4
|
+
prefixCls: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
content: {
|
|
9
|
+
type: PropType<VNodeChild>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
content: VNodeChild;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { TooltipInitialFocusRef, TooltipState } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
clickToHide: boolean;
|
|
5
|
+
content?: VNodeChild;
|
|
6
|
+
direction: 'ltr' | 'rtl';
|
|
7
|
+
initialFocusRef: TooltipInitialFocusRef;
|
|
8
|
+
motion: boolean;
|
|
9
|
+
popupClass?: unknown;
|
|
10
|
+
popupStyle?: StyleValue;
|
|
11
|
+
portalTarget: HTMLElement;
|
|
12
|
+
prefixCls: string;
|
|
13
|
+
role: string;
|
|
14
|
+
showArrow: boolean | VNodeChild;
|
|
15
|
+
state: TooltipState;
|
|
16
|
+
stopPropagation: boolean;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {
|
|
19
|
+
arrow?: () => VNodeChild;
|
|
20
|
+
content?: (props: {
|
|
21
|
+
initialFocusRef: TooltipInitialFocusRef;
|
|
22
|
+
}) => VNodeChild;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
keydown: (event: KeyboardEvent) => any;
|
|
26
|
+
hide: () => any;
|
|
27
|
+
animationEnd: (state: "enter" | "leave") => any;
|
|
28
|
+
animationStart: (state: "enter" | "leave") => any;
|
|
29
|
+
portalElement: (element: HTMLDivElement | null) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onKeydown?: (event: KeyboardEvent) => any;
|
|
32
|
+
onHide?: () => any;
|
|
33
|
+
onAnimationEnd?: (state: "enter" | "leave") => any;
|
|
34
|
+
onAnimationStart?: (state: "enter" | "leave") => any;
|
|
35
|
+
onPortalElement?: (element: HTMLDivElement | null) => any;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { TooltipTrigger } from './types';
|
|
3
|
+
type EventHandler = (...args: unknown[]) => void;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
eventSet: {
|
|
6
|
+
type: PropType<Record<string, EventHandler>>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
popupId: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
role: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
trigger: {
|
|
18
|
+
type: PropType<TooltipTrigger>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
visible: BooleanConstructor;
|
|
22
|
+
wrapWhenSpecial: BooleanConstructor;
|
|
23
|
+
wrapperClassName: {
|
|
24
|
+
type: null;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
setTriggerElement: {
|
|
28
|
+
type: PropType<(element: HTMLElement | null) => void>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
|
+
eventSet: {
|
|
35
|
+
type: PropType<Record<string, EventHandler>>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
popupId: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
role: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
trigger: {
|
|
47
|
+
type: PropType<TooltipTrigger>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
visible: BooleanConstructor;
|
|
51
|
+
wrapWhenSpecial: BooleanConstructor;
|
|
52
|
+
wrapperClassName: {
|
|
53
|
+
type: null;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
setTriggerElement: {
|
|
57
|
+
type: PropType<(element: HTMLElement | null) => void>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
visible: boolean;
|
|
62
|
+
wrapWhenSpecial: boolean;
|
|
63
|
+
wrapperClassName: any;
|
|
64
|
+
popupId: string;
|
|
65
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as Tooltip } from './Tooltip.vue';
|
|
2
|
+
export { Tooltip };
|
|
3
|
+
export { TOOLTIP_POSITIONS, TOOLTIP_TRIGGERS } from './types';
|
|
4
|
+
export type { TooltipArrowBounding, TooltipEmits, TooltipExposed, TooltipInitialFocusRef, TooltipMargin, TooltipPosition, TooltipProps, TooltipSlots, TooltipSpacing, TooltipTrigger, } from './types';
|
|
5
|
+
export default Tooltip;
|