@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,7 @@
|
|
|
1
|
+
import { NotificationStore } from './notification-store';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
store: NotificationStore;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
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,16 @@
|
|
|
1
|
+
import { ConfigDirection } from '../config-provider';
|
|
2
|
+
import { NotificationEntry } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
animationClass?: string | undefined;
|
|
5
|
+
direction: ConfigDirection;
|
|
6
|
+
entry: NotificationEntry;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
animationEnd: (id: string) => any;
|
|
10
|
+
remove: (id: string) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onAnimationEnd?: (id: string) => any;
|
|
13
|
+
onRemove?: (id: string) => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NotificationConfig, NotificationId, NotificationOptions } from './types';
|
|
2
|
+
export declare const imperativeMethods: {
|
|
3
|
+
close(id: NotificationId): NotificationId;
|
|
4
|
+
error: (options: NotificationOptions) => string;
|
|
5
|
+
info: (options: NotificationOptions) => string;
|
|
6
|
+
open: (options: NotificationOptions) => string;
|
|
7
|
+
success: (options: NotificationOptions) => string;
|
|
8
|
+
warning: (options: NotificationOptions) => string;
|
|
9
|
+
};
|
|
10
|
+
export declare function config(options: NotificationConfig): void;
|
|
11
|
+
export declare function destroyAll(): void;
|
|
12
|
+
export declare function resetNotificationForTests(): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useNotification } from './use-notification';
|
|
2
|
+
import { NotificationStaticMethods } from './types';
|
|
3
|
+
export declare const Notification: NotificationStaticMethods;
|
|
4
|
+
export default Notification;
|
|
5
|
+
export { useNotification };
|
|
6
|
+
export { NOTIFICATION_POSITIONS, NOTIFICATION_THEMES, NOTIFICATION_TYPES, type NotificationConfig, type NotificationId, type NotificationMethod, type NotificationMethods, type NotificationOptions, type NotificationPosition, type NotificationStaticMethods, type NotificationTheme, type NotificationType, type NotificationUseResult, } from './types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NotificationEntry, NotificationId, NotificationOptions } from './types';
|
|
2
|
+
interface NotificationListState {
|
|
3
|
+
notices: NotificationEntry[];
|
|
4
|
+
removedItems: NotificationEntry[];
|
|
5
|
+
updatedItems: NotificationEntry[];
|
|
6
|
+
}
|
|
7
|
+
export declare class NotificationStore {
|
|
8
|
+
private readonly animated;
|
|
9
|
+
readonly state: import('vue').ShallowReactive<NotificationListState>;
|
|
10
|
+
private readonly cache;
|
|
11
|
+
private readonly removalTimers;
|
|
12
|
+
private readonly foundation;
|
|
13
|
+
constructor(animated: boolean);
|
|
14
|
+
add(entry: NotificationEntry): void;
|
|
15
|
+
has(id: NotificationId): boolean;
|
|
16
|
+
update(id: NotificationId, options: NotificationOptions): void;
|
|
17
|
+
remove(id: NotificationId): void;
|
|
18
|
+
finishEnter(id: NotificationId): void;
|
|
19
|
+
finishRemove(id: NotificationId): void;
|
|
20
|
+
destroyAll(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
private scheduleRemovalFallback;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { ConfigDirection } from '../config-provider';
|
|
3
|
+
export declare const NOTIFICATION_POSITIONS: readonly ["top", "topLeft", "topRight", "bottom", "bottomLeft", "bottomRight"];
|
|
4
|
+
export declare const NOTIFICATION_TYPES: readonly ["warning", "success", "info", "error", "default"];
|
|
5
|
+
export declare const NOTIFICATION_THEMES: readonly ["normal", "light"];
|
|
6
|
+
export type NotificationPosition = (typeof NOTIFICATION_POSITIONS)[number];
|
|
7
|
+
export type NotificationType = (typeof NOTIFICATION_TYPES)[number];
|
|
8
|
+
export type NotificationTheme = (typeof NOTIFICATION_THEMES)[number];
|
|
9
|
+
export type NotificationId = string;
|
|
10
|
+
export interface NotificationOptions {
|
|
11
|
+
className?: HTMLAttributes['class'];
|
|
12
|
+
content?: VNodeChild;
|
|
13
|
+
direction?: ConfigDirection;
|
|
14
|
+
duration?: number;
|
|
15
|
+
getPopupContainer?: () => HTMLElement;
|
|
16
|
+
icon?: VNodeChild;
|
|
17
|
+
id?: NotificationId;
|
|
18
|
+
onClick?: (event: MouseEvent) => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
onCloseClick?: (id: NotificationId) => void;
|
|
21
|
+
position?: NotificationPosition;
|
|
22
|
+
showClose?: boolean;
|
|
23
|
+
style?: StyleValue;
|
|
24
|
+
theme?: NotificationTheme;
|
|
25
|
+
title?: VNodeChild;
|
|
26
|
+
type?: NotificationType;
|
|
27
|
+
zIndex?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface NotificationConfig {
|
|
30
|
+
bottom?: number | string;
|
|
31
|
+
direction?: ConfigDirection;
|
|
32
|
+
duration?: number;
|
|
33
|
+
left?: number | string;
|
|
34
|
+
position?: NotificationPosition;
|
|
35
|
+
right?: number | string;
|
|
36
|
+
top?: number | string;
|
|
37
|
+
zIndex?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface NotificationEntry extends NotificationOptions {
|
|
40
|
+
bottom?: number | string;
|
|
41
|
+
id: NotificationId;
|
|
42
|
+
left?: number | string;
|
|
43
|
+
phase: 'enter' | 'stable' | 'leave';
|
|
44
|
+
revision: number;
|
|
45
|
+
right?: number | string;
|
|
46
|
+
top?: number | string;
|
|
47
|
+
type: NotificationType;
|
|
48
|
+
}
|
|
49
|
+
export type NotificationMethod = (options: NotificationOptions) => NotificationId;
|
|
50
|
+
export interface NotificationMethods {
|
|
51
|
+
close: (id: NotificationId) => NotificationId;
|
|
52
|
+
error: NotificationMethod;
|
|
53
|
+
info: NotificationMethod;
|
|
54
|
+
open: NotificationMethod;
|
|
55
|
+
success: NotificationMethod;
|
|
56
|
+
warning: NotificationMethod;
|
|
57
|
+
}
|
|
58
|
+
export type NotificationUseResult = readonly [NotificationMethods, Component];
|
|
59
|
+
export interface NotificationStaticMethods extends NotificationMethods {
|
|
60
|
+
config: (config: NotificationConfig) => void;
|
|
61
|
+
destroyAll: () => void;
|
|
62
|
+
useNotification: () => NotificationUseResult;
|
|
63
|
+
}
|
|
@@ -0,0 +1,445 @@
|
|
|
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 { Comment as a, Fragment as o, Text as s, computed as c, createApp as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, h as g, inject 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, watch as ee, withCtx as O } from "vue";
|
|
7
|
+
import { IconAlertCircle as k, IconAlertTriangle as A, IconClose as j, IconInfoCircle as M, IconTickCircle as N } 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.getProp("id");
|
|
18
|
+
}
|
|
19
|
+
destroy() {
|
|
20
|
+
this._clearCloseTimer();
|
|
21
|
+
}
|
|
22
|
+
_startCloseTimer() {
|
|
23
|
+
let t = this.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 extends t {
|
|
38
|
+
addNotice(e) {
|
|
39
|
+
let t = this._adapter.getNotices();
|
|
40
|
+
this._adapter.updateNotices([e, ...t]);
|
|
41
|
+
}
|
|
42
|
+
has(e) {
|
|
43
|
+
return this._adapter.getNotices().some((t) => t.id === e);
|
|
44
|
+
}
|
|
45
|
+
update(e, t) {
|
|
46
|
+
let n = this._adapter.getNotices();
|
|
47
|
+
n = n.map((n) => n.id === e ? {
|
|
48
|
+
...n,
|
|
49
|
+
...t
|
|
50
|
+
} : n);
|
|
51
|
+
let r = n.filter((t) => t.id === e);
|
|
52
|
+
this._adapter.updateNotices(n, [], r);
|
|
53
|
+
}
|
|
54
|
+
removeNotice(e) {
|
|
55
|
+
let t = this._adapter.getNotices(), n = [];
|
|
56
|
+
t = t.filter((t) => t.id !== e || (n.push(t), !1)), this._adapter.updateNotices(t, n);
|
|
57
|
+
}
|
|
58
|
+
destroyAll() {
|
|
59
|
+
let e = this._adapter.getNotices();
|
|
60
|
+
e.length > 0 && this._adapter.updateNotices([], e);
|
|
61
|
+
}
|
|
62
|
+
}, I = h({
|
|
63
|
+
name: "NotificationNodeRenderer",
|
|
64
|
+
props: { content: {
|
|
65
|
+
type: [
|
|
66
|
+
String,
|
|
67
|
+
Number,
|
|
68
|
+
Boolean,
|
|
69
|
+
Array,
|
|
70
|
+
Object
|
|
71
|
+
],
|
|
72
|
+
default: void 0
|
|
73
|
+
} },
|
|
74
|
+
setup(e) {
|
|
75
|
+
return () => e.content;
|
|
76
|
+
}
|
|
77
|
+
}), L = ["aria-labelledby"], te = { class: "semi-notification-notice-inner" }, ne = { class: "semi-notification-notice-content-wrapper" }, re = ["id"], ie = {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "semi-notification-notice-content",
|
|
80
|
+
"x-semi-prop": "content"
|
|
81
|
+
}, R = /* @__PURE__ */ h({
|
|
82
|
+
name: "NotificationNotice",
|
|
83
|
+
__name: "NotificationNotice",
|
|
84
|
+
props: {
|
|
85
|
+
animationClass: {},
|
|
86
|
+
direction: {},
|
|
87
|
+
entry: {}
|
|
88
|
+
},
|
|
89
|
+
emits: ["animationEnd", "remove"],
|
|
90
|
+
setup(e, { emit: t }) {
|
|
91
|
+
let n = e, r = t, o = E({ visible: !0 }), l = /* @__PURE__ */ new Map(), h = v(new P({
|
|
92
|
+
getContext: () => void 0,
|
|
93
|
+
getContexts: () => void 0,
|
|
94
|
+
getProp: (e) => n.entry[e],
|
|
95
|
+
getProps: () => n.entry,
|
|
96
|
+
getState: (e) => o[e],
|
|
97
|
+
getStates: () => o,
|
|
98
|
+
setState: (e, t) => {
|
|
99
|
+
Object.assign(o, e), t?.();
|
|
100
|
+
},
|
|
101
|
+
getCache: (e) => l.get(e),
|
|
102
|
+
getCaches: () => l,
|
|
103
|
+
setCache: (e, t) => l.set(String(e), t),
|
|
104
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
105
|
+
persistEvent: () => void 0,
|
|
106
|
+
notifyWrapperToRemove: (e) => r("remove", e),
|
|
107
|
+
notifyClose: () => n.entry.onClose?.()
|
|
108
|
+
})), g = {
|
|
109
|
+
error: k,
|
|
110
|
+
info: M,
|
|
111
|
+
success: N,
|
|
112
|
+
warning: A
|
|
113
|
+
}, _ = c(() => g[n.entry.type]), w = c(() => !!n.entry.icon), F = c(() => w.value || !!_.value), R = c(() => `semi-notification-title-${n.entry.id.replace(/[^a-zA-Z0-9_-]/g, "-")}`);
|
|
114
|
+
function z(e) {
|
|
115
|
+
if (Array.isArray(e)) return !0;
|
|
116
|
+
if (e == null || e === !1 || e === "" || e === 0) return !1;
|
|
117
|
+
if (typeof e != "object") return !!e;
|
|
118
|
+
let t = e;
|
|
119
|
+
return t.type === a ? !1 : t.type !== s || z(t.children);
|
|
120
|
+
}
|
|
121
|
+
let B = c(() => z(n.entry.title)), V = c(() => z(n.entry.content)), H = c(() => [
|
|
122
|
+
"semi-notification-notice",
|
|
123
|
+
F.value ? "semi-notification-notice-icon-show" : void 0,
|
|
124
|
+
`semi-notification-notice-${n.entry.type}`,
|
|
125
|
+
n.entry.theme === "light" ? "semi-notification-notice-light" : void 0,
|
|
126
|
+
n.direction === "rtl" ? "semi-notification-notice-rtl" : void 0,
|
|
127
|
+
n.entry.className,
|
|
128
|
+
n.animationClass
|
|
129
|
+
]);
|
|
130
|
+
function U(e) {
|
|
131
|
+
n.entry.onCloseClick?.(n.entry.id), h.close(e);
|
|
132
|
+
}
|
|
133
|
+
function W() {
|
|
134
|
+
r("animationEnd", n.entry.id);
|
|
135
|
+
}
|
|
136
|
+
return ee(() => n.entry.revision, (e, t) => {
|
|
137
|
+
e !== t && h.restartCloseTimer();
|
|
138
|
+
}), S(() => h.init()), x(() => h.destroy()), (e, t) => (C(), f("div", {
|
|
139
|
+
class: y(H.value),
|
|
140
|
+
style: b(n.entry.style),
|
|
141
|
+
"aria-labelledby": R.value,
|
|
142
|
+
role: "alert",
|
|
143
|
+
onAnimationend: W,
|
|
144
|
+
onClick: t[0] ||= (e) => n.entry.onClick?.(e),
|
|
145
|
+
onMouseenter: t[1] ||= (e) => D(h)._clearCloseTimer(),
|
|
146
|
+
onMouseleave: t[2] ||= (e) => D(h)._startCloseTimer()
|
|
147
|
+
}, [p("div", null, [F.value ? (C(), f("div", {
|
|
148
|
+
key: 0,
|
|
149
|
+
class: y(["semi-notification-notice-icon", `semi-notification-notice-${n.entry.type}`]),
|
|
150
|
+
"x-semi-prop": "icon"
|
|
151
|
+
}, [w.value ? (C(), u(D(I), {
|
|
152
|
+
key: 0,
|
|
153
|
+
content: n.entry.icon
|
|
154
|
+
}, null, 8, ["content"])) : (C(), u(T(_.value), {
|
|
155
|
+
key: 1,
|
|
156
|
+
size: "large"
|
|
157
|
+
}))], 2)) : d("", !0)]), p("div", te, [p("div", ne, [B.value ? (C(), f("div", {
|
|
158
|
+
key: 0,
|
|
159
|
+
id: R.value,
|
|
160
|
+
class: "semi-notification-notice-title",
|
|
161
|
+
"x-semi-prop": "title"
|
|
162
|
+
}, [m(D(I), { content: n.entry.title }, null, 8, ["content"])], 8, re)) : d("", !0), V.value ? (C(), f("div", ie, [m(D(I), { content: n.entry.content }, null, 8, ["content"])])) : d("", !0)]), n.entry.showClose === !1 ? d("", !0) : (C(), u(i, {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "semi-notification-notice-icon-close",
|
|
165
|
+
size: "small",
|
|
166
|
+
theme: "borderless",
|
|
167
|
+
type: "tertiary",
|
|
168
|
+
onClick: U
|
|
169
|
+
}, {
|
|
170
|
+
icon: O(() => [m(D(j))]),
|
|
171
|
+
_: 1
|
|
172
|
+
}))])], 46, L));
|
|
173
|
+
}
|
|
174
|
+
}), z = 340, B = class {
|
|
175
|
+
animated;
|
|
176
|
+
state = E({
|
|
177
|
+
notices: [],
|
|
178
|
+
removedItems: [],
|
|
179
|
+
updatedItems: []
|
|
180
|
+
});
|
|
181
|
+
cache = /* @__PURE__ */ new Map();
|
|
182
|
+
removalTimers = /* @__PURE__ */ new Map();
|
|
183
|
+
foundation;
|
|
184
|
+
constructor(e) {
|
|
185
|
+
this.animated = e;
|
|
186
|
+
let t = {
|
|
187
|
+
getContext: () => void 0,
|
|
188
|
+
getContexts: () => void 0,
|
|
189
|
+
getProp: () => void 0,
|
|
190
|
+
getProps: () => ({}),
|
|
191
|
+
getState: (e) => this.state[e],
|
|
192
|
+
getStates: () => this.state,
|
|
193
|
+
setState: (e, t) => {
|
|
194
|
+
Object.assign(this.state, e), t?.();
|
|
195
|
+
},
|
|
196
|
+
getCache: (e) => this.cache.get(e),
|
|
197
|
+
getCaches: () => this.cache,
|
|
198
|
+
setCache: (e, t) => this.cache.set(String(e), t),
|
|
199
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
200
|
+
persistEvent: () => void 0,
|
|
201
|
+
getNotices: () => this.state.notices,
|
|
202
|
+
updateNotices: (e, t = [], n = []) => {
|
|
203
|
+
this.state.notices = e.map((e) => ({
|
|
204
|
+
...e,
|
|
205
|
+
phase: this.animated ? e.phase : "stable"
|
|
206
|
+
})), this.state.removedItems = t.map((e) => ({
|
|
207
|
+
...e,
|
|
208
|
+
phase: "leave"
|
|
209
|
+
})), this.state.updatedItems = n;
|
|
210
|
+
for (let e of this.state.removedItems) this.animated ? this.scheduleRemovalFallback(e.id) : this.finishRemove(e.id);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
this.foundation = v(new F(t));
|
|
214
|
+
}
|
|
215
|
+
add(e) {
|
|
216
|
+
this.foundation.addNotice(e);
|
|
217
|
+
}
|
|
218
|
+
has(e) {
|
|
219
|
+
return this.foundation.has(e);
|
|
220
|
+
}
|
|
221
|
+
update(e, t) {
|
|
222
|
+
let n = this.state.notices.find((t) => t.id === e);
|
|
223
|
+
n && this.foundation.update(e, {
|
|
224
|
+
...t,
|
|
225
|
+
id: e,
|
|
226
|
+
phase: n.phase,
|
|
227
|
+
revision: n.revision + 1
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
remove(e) {
|
|
231
|
+
this.foundation.removeNotice(e);
|
|
232
|
+
}
|
|
233
|
+
finishEnter(e) {
|
|
234
|
+
this.state.notices = this.state.notices.map((t) => t.id === e ? {
|
|
235
|
+
...t,
|
|
236
|
+
phase: "stable"
|
|
237
|
+
} : t);
|
|
238
|
+
}
|
|
239
|
+
finishRemove(e) {
|
|
240
|
+
let t = this.removalTimers.get(e);
|
|
241
|
+
t && clearTimeout(t), this.removalTimers.delete(e), this.state.removedItems = this.state.removedItems.filter((t) => t.id !== e);
|
|
242
|
+
}
|
|
243
|
+
destroyAll() {
|
|
244
|
+
this.foundation.destroyAll();
|
|
245
|
+
}
|
|
246
|
+
destroy() {
|
|
247
|
+
for (let e of this.removalTimers.values()) clearTimeout(e);
|
|
248
|
+
this.removalTimers.clear(), this.state.notices = [], this.state.removedItems = [], this.state.updatedItems = [];
|
|
249
|
+
}
|
|
250
|
+
scheduleRemovalFallback(e) {
|
|
251
|
+
let t = this.removalTimers.get(e);
|
|
252
|
+
t && clearTimeout(t), this.removalTimers.set(e, setTimeout(() => this.finishRemove(e), z));
|
|
253
|
+
}
|
|
254
|
+
}, V = [
|
|
255
|
+
"top",
|
|
256
|
+
"topLeft",
|
|
257
|
+
"topRight",
|
|
258
|
+
"bottom",
|
|
259
|
+
"bottomLeft",
|
|
260
|
+
"bottomRight"
|
|
261
|
+
], H = [
|
|
262
|
+
"warning",
|
|
263
|
+
"success",
|
|
264
|
+
"info",
|
|
265
|
+
"error",
|
|
266
|
+
"default"
|
|
267
|
+
], U = ["normal", "light"], W = ["placement"], G = /* @__PURE__ */ h({
|
|
268
|
+
name: "NotificationHost",
|
|
269
|
+
__name: "NotificationHost",
|
|
270
|
+
props: { store: {} },
|
|
271
|
+
setup(e) {
|
|
272
|
+
let t = e, r = _(n, void 0), i = c(() => {
|
|
273
|
+
let e = {
|
|
274
|
+
top: [],
|
|
275
|
+
topLeft: [],
|
|
276
|
+
topRight: [],
|
|
277
|
+
bottom: [],
|
|
278
|
+
bottomLeft: [],
|
|
279
|
+
bottomRight: []
|
|
280
|
+
}, n = [...t.store.state.notices, ...t.store.state.removedItems].filter((e, t, n) => n.findIndex((t) => t.id === e.id) === t);
|
|
281
|
+
for (let t of n) {
|
|
282
|
+
let n = t.direction ?? r?.value.direction ?? "ltr";
|
|
283
|
+
e[t.position ?? (n === "rtl" ? "topLeft" : "topRight")].push({
|
|
284
|
+
direction: n,
|
|
285
|
+
entry: t
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
return e;
|
|
289
|
+
});
|
|
290
|
+
function a(e) {
|
|
291
|
+
let t = e[0]?.entry;
|
|
292
|
+
if (!t) return {};
|
|
293
|
+
let n = {};
|
|
294
|
+
for (let e of [
|
|
295
|
+
"top",
|
|
296
|
+
"left",
|
|
297
|
+
"bottom",
|
|
298
|
+
"right"
|
|
299
|
+
]) {
|
|
300
|
+
let r = t[e];
|
|
301
|
+
r !== void 0 && (n[e] = typeof r == "number" ? `${r}px` : r);
|
|
302
|
+
}
|
|
303
|
+
return n;
|
|
304
|
+
}
|
|
305
|
+
function s(e, t) {
|
|
306
|
+
if (e.phase !== "stable") return `semi-notification-notice-animation-${e.phase === "leave" ? "hide" : "show"}_${t}`;
|
|
307
|
+
}
|
|
308
|
+
function l(e) {
|
|
309
|
+
e.phase === "leave" ? t.store.finishRemove(e.id) : t.store.finishEnter(e.id);
|
|
310
|
+
}
|
|
311
|
+
function p(e) {
|
|
312
|
+
t.store.remove(e);
|
|
313
|
+
}
|
|
314
|
+
return (e, t) => (C(!0), f(o, null, w(D(V), (e) => (C(), f(o, { key: e }, [i.value[e].length ? (C(), f("div", {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "semi-notification-list",
|
|
317
|
+
placement: e,
|
|
318
|
+
style: b(a(i.value[e]))
|
|
319
|
+
}, [(C(!0), f(o, null, w(i.value[e], (t) => (C(), u(R, {
|
|
320
|
+
key: t.entry.id,
|
|
321
|
+
"animation-class": s(t.entry, e),
|
|
322
|
+
direction: t.direction,
|
|
323
|
+
entry: t.entry,
|
|
324
|
+
onAnimationEnd: (e) => l(t.entry),
|
|
325
|
+
onRemove: p
|
|
326
|
+
}, null, 8, [
|
|
327
|
+
"animation-class",
|
|
328
|
+
"direction",
|
|
329
|
+
"entry",
|
|
330
|
+
"onAnimationEnd"
|
|
331
|
+
]))), 128))], 12, W)) : d("", !0)], 64))), 128));
|
|
332
|
+
}
|
|
333
|
+
}), K = {
|
|
334
|
+
content: "",
|
|
335
|
+
duration: 3,
|
|
336
|
+
position: "topRight",
|
|
337
|
+
title: "",
|
|
338
|
+
zIndex: 1010
|
|
339
|
+
}, q, J = 0, Y = 0;
|
|
340
|
+
function ae(e = "notification") {
|
|
341
|
+
return J += 1, `${e}-${Date.now()}-${J}`;
|
|
342
|
+
}
|
|
343
|
+
function oe(e) {
|
|
344
|
+
if (q) return q;
|
|
345
|
+
if (typeof document > "u") throw Error("Notification imperative methods are only available in a browser.");
|
|
346
|
+
let t = document.createElement("div");
|
|
347
|
+
t.className = "semi-notification-wrapper", Y += 1, t.id = `semi-notification-wrapper-${Y}`, t.style.zIndex = String(typeof e.zIndex == "number" ? e.zIndex : K.zIndex), (e.getPopupContainer?.() ?? document.body).appendChild(t);
|
|
348
|
+
let n = v(new B(!0)), r = h({
|
|
349
|
+
name: "ImperativeNotificationRoot",
|
|
350
|
+
setup: () => () => g(G, { store: n })
|
|
351
|
+
}), i = l(r);
|
|
352
|
+
return i.mount(t), t.removeAttribute("data-v-app"), q = {
|
|
353
|
+
app: i,
|
|
354
|
+
host: t,
|
|
355
|
+
store: n
|
|
356
|
+
}, q;
|
|
357
|
+
}
|
|
358
|
+
function se(e, t) {
|
|
359
|
+
let n = r.config.overrideDefaultProps?.Notification ?? {}, i = {
|
|
360
|
+
...K,
|
|
361
|
+
...n,
|
|
362
|
+
...e,
|
|
363
|
+
type: t
|
|
364
|
+
};
|
|
365
|
+
return {
|
|
366
|
+
...i,
|
|
367
|
+
id: i.id ?? ae(),
|
|
368
|
+
phase: "enter",
|
|
369
|
+
revision: 0,
|
|
370
|
+
type: t
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function X(e, t) {
|
|
374
|
+
let n = se(t, e), r = oe(n);
|
|
375
|
+
return r.store.has(n.id) ? r.store.update(n.id, n) : r.store.add(n), n.id;
|
|
376
|
+
}
|
|
377
|
+
var ce = {
|
|
378
|
+
close(e) {
|
|
379
|
+
return q?.store.remove(e), e;
|
|
380
|
+
},
|
|
381
|
+
error: (e) => X("error", e),
|
|
382
|
+
info: (e) => X("info", e),
|
|
383
|
+
open: (e) => X("default", e),
|
|
384
|
+
success: (e) => X("success", e),
|
|
385
|
+
warning: (e) => X("warning", e)
|
|
386
|
+
};
|
|
387
|
+
function Z(e) {
|
|
388
|
+
for (let t of [
|
|
389
|
+
"top",
|
|
390
|
+
"left",
|
|
391
|
+
"bottom",
|
|
392
|
+
"right"
|
|
393
|
+
]) if (t in e) {
|
|
394
|
+
let n = e[t];
|
|
395
|
+
n === void 0 ? delete K[t] : K[t] = n;
|
|
396
|
+
}
|
|
397
|
+
typeof e.zIndex == "number" && (K.zIndex = e.zIndex), typeof e.duration == "number" && (K.duration = e.duration), typeof e.position == "string" && (K.position = e.position);
|
|
398
|
+
}
|
|
399
|
+
function le() {
|
|
400
|
+
q &&= (q.store.destroyAll(), q.store.destroy(), q.app.unmount(), q.host.remove(), void 0);
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/notification/use-notification.ts
|
|
404
|
+
var Q = 0;
|
|
405
|
+
function ue() {
|
|
406
|
+
return Q += 1, `semi_notice_${Date.now()}-${Q}`;
|
|
407
|
+
}
|
|
408
|
+
function $() {
|
|
409
|
+
let e = v(new B(!1));
|
|
410
|
+
function t(t, n) {
|
|
411
|
+
let r = {
|
|
412
|
+
content: "",
|
|
413
|
+
duration: 3,
|
|
414
|
+
position: "topRight",
|
|
415
|
+
title: "",
|
|
416
|
+
zIndex: 1010,
|
|
417
|
+
...n,
|
|
418
|
+
id: ue(),
|
|
419
|
+
phase: "stable",
|
|
420
|
+
revision: 0,
|
|
421
|
+
type: t
|
|
422
|
+
};
|
|
423
|
+
return e.add(r), r.id;
|
|
424
|
+
}
|
|
425
|
+
return [{
|
|
426
|
+
close: (t) => (e.remove(t), t),
|
|
427
|
+
error: (e) => t("error", e),
|
|
428
|
+
info: (e) => t("info", e),
|
|
429
|
+
open: (e) => t("default", e),
|
|
430
|
+
success: (e) => t("success", e),
|
|
431
|
+
warning: (e) => t("warning", e)
|
|
432
|
+
}, v(h({
|
|
433
|
+
name: "NotificationContextHolder",
|
|
434
|
+
setup: () => (x(() => e.destroy()), () => g(G, { store: e }))
|
|
435
|
+
}))];
|
|
436
|
+
}
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/notification/index.ts
|
|
439
|
+
var de = Object.assign({}, ce, {
|
|
440
|
+
config: Z,
|
|
441
|
+
destroyAll: le,
|
|
442
|
+
useNotification: $
|
|
443
|
+
});
|
|
444
|
+
//#endregion
|
|
445
|
+
export { H as a, U as i, $ as n, V as r, de as t };
|