@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,451 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { t as e } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t } from "./isEnterPress-HTy0eCBp.js";
|
|
4
|
+
import { t as n } from "./Tooltip-Bq7HZwnS.js";
|
|
5
|
+
import { u as r } from "./typography-DF8KwKuL.js";
|
|
6
|
+
import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { Comment as a, Fragment as o, Text as s, cloneVNode as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, h as _, inject as v, isVNode as y, markRaw as b, mergeProps as x, normalizeClass as ee, normalizeStyle as S, onBeforeUnmount as C, onMounted as w, openBlock as T, provide as E, renderSlot as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as te, unref as A, useAttrs as ne, useSlots as j, withCtx as M } from "vue";
|
|
8
|
+
import { IconMore as N } from "@aifuxi/semi-icons-vue";
|
|
9
|
+
//#region bundled-foundation
|
|
10
|
+
var P = class extends e {
|
|
11
|
+
constructor(e) {
|
|
12
|
+
super({ ...e });
|
|
13
|
+
}
|
|
14
|
+
handleClick(e, t) {
|
|
15
|
+
this._adapter.notifyClick(e, t);
|
|
16
|
+
}
|
|
17
|
+
handleExpand(e) {
|
|
18
|
+
this._adapter.expandCollapsed(e);
|
|
19
|
+
}
|
|
20
|
+
handleExpandEnterPress(e) {
|
|
21
|
+
t(e) && this.handleExpand(e);
|
|
22
|
+
}
|
|
23
|
+
genRoutes(e) {
|
|
24
|
+
return e.map((e) => {
|
|
25
|
+
if (typeof e != "object") return {
|
|
26
|
+
name: e,
|
|
27
|
+
_origin: { name: e }
|
|
28
|
+
};
|
|
29
|
+
let t = {};
|
|
30
|
+
return t._origin = e, {
|
|
31
|
+
...t,
|
|
32
|
+
...e
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}, F = class extends e {
|
|
37
|
+
constructor(e) {
|
|
38
|
+
super({ ...e });
|
|
39
|
+
}
|
|
40
|
+
handleClick(e, t) {
|
|
41
|
+
this._adapter.notifyClick(e, t), this._adapter.notifyParent(e, t);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/breadcrumb/BreadcrumbIconRenderer.ts
|
|
46
|
+
function I(e, t) {
|
|
47
|
+
return Array.isArray(e) ? e.map((e) => I(e, t)) : y(e) ? c(e, {
|
|
48
|
+
class: [e.props?.class, "semi-breadcrumb-item-icon"],
|
|
49
|
+
size: t
|
|
50
|
+
}) : e;
|
|
51
|
+
}
|
|
52
|
+
var L = g({
|
|
53
|
+
name: "BreadcrumbIconRenderer",
|
|
54
|
+
props: {
|
|
55
|
+
compact: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: !0
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
type: null,
|
|
61
|
+
default: void 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
setup: (e) => () => I(e.content, e.compact ? "small" : "default")
|
|
65
|
+
}), R = g({
|
|
66
|
+
name: "BreadcrumbNodeRenderer",
|
|
67
|
+
props: { content: {
|
|
68
|
+
type: null,
|
|
69
|
+
default: void 0
|
|
70
|
+
} },
|
|
71
|
+
setup: (e) => () => e.content
|
|
72
|
+
}), z = Symbol("semi-breadcrumb-context"), B = ["aria-current"], V = {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: "semi-breadcrumb-item-title"
|
|
75
|
+
}, H = {
|
|
76
|
+
key: 2,
|
|
77
|
+
class: "semi-breadcrumb-item-title semi-breadcrumb-item-title-inline"
|
|
78
|
+
}, U = {
|
|
79
|
+
key: 1,
|
|
80
|
+
class: "semi-breadcrumb-separator"
|
|
81
|
+
}, W = /* @__PURE__ */ g({
|
|
82
|
+
name: "BreadcrumbItem",
|
|
83
|
+
inheritAttrs: !1,
|
|
84
|
+
__name: "BreadcrumbItem",
|
|
85
|
+
props: {
|
|
86
|
+
active: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
className: {},
|
|
91
|
+
href: {},
|
|
92
|
+
icon: { type: [
|
|
93
|
+
Object,
|
|
94
|
+
String,
|
|
95
|
+
Number,
|
|
96
|
+
Boolean,
|
|
97
|
+
null,
|
|
98
|
+
Array
|
|
99
|
+
] },
|
|
100
|
+
noLink: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: !1
|
|
103
|
+
},
|
|
104
|
+
route: {},
|
|
105
|
+
separator: { type: [
|
|
106
|
+
Object,
|
|
107
|
+
String,
|
|
108
|
+
Number,
|
|
109
|
+
Boolean,
|
|
110
|
+
null,
|
|
111
|
+
Array
|
|
112
|
+
] },
|
|
113
|
+
shouldRenderSeparator: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: !0
|
|
116
|
+
},
|
|
117
|
+
style: {}
|
|
118
|
+
},
|
|
119
|
+
emits: ["click"],
|
|
120
|
+
setup(e, { emit: t }) {
|
|
121
|
+
let n = e, i = t, c = ne(), p = j(), g = {
|
|
122
|
+
width: 150,
|
|
123
|
+
ellipsisPos: "end"
|
|
124
|
+
}, _ = v(z, {
|
|
125
|
+
compact: l(() => !0),
|
|
126
|
+
separator: l(() => "/"),
|
|
127
|
+
showTooltip: l(() => g),
|
|
128
|
+
onClick: () => void 0
|
|
129
|
+
});
|
|
130
|
+
function E(e) {
|
|
131
|
+
let t = [], n = (e) => {
|
|
132
|
+
if (Array.isArray(e)) {
|
|
133
|
+
e.forEach(n);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (!y(e) || e.type === a) {
|
|
137
|
+
e != null && typeof e != "boolean" && t.push(e);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (e.type === o && Array.isArray(e.children)) {
|
|
141
|
+
e.children.forEach((e) => n(e));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
(e.type !== s || String(e.children ?? "").trim() !== "") && t.push(e);
|
|
145
|
+
};
|
|
146
|
+
return e.forEach(n), t;
|
|
147
|
+
}
|
|
148
|
+
let D = l(() => E(p.default?.() ?? [])), k = l(() => {
|
|
149
|
+
if (D.value.length !== 1) return;
|
|
150
|
+
let e = D.value[0];
|
|
151
|
+
return typeof e == "string" ? e.trim() : y(e) && e.type === s ? String(e.children ?? "").trim() : void 0;
|
|
152
|
+
}), N = l(() => p.icon?.() ?? n.icon), P = l(() => n.href !== null && n.href !== void 0), I = l(() => n.active || !P.value ? "span" : "a"), W = l(() => [
|
|
153
|
+
"semi-breadcrumb-item",
|
|
154
|
+
n.active ? "semi-breadcrumb-item-active" : null,
|
|
155
|
+
n.noLink ? null : "semi-breadcrumb-item-link"
|
|
156
|
+
]), G = l(() => Object.fromEntries(Object.entries(c).filter(([e]) => !["class", "style"].includes(e)))), K = l(() => p.separator ? p.separator() : n.separator || _.separator.value), q = l(() => {
|
|
157
|
+
let e = _.showTooltip.value;
|
|
158
|
+
if (!e) return {
|
|
159
|
+
ellipsisPos: "end",
|
|
160
|
+
opts: void 0,
|
|
161
|
+
width: 150
|
|
162
|
+
};
|
|
163
|
+
let t = typeof e == "object" ? e : {};
|
|
164
|
+
return {
|
|
165
|
+
ellipsisPos: t.ellipsisPos ?? "end",
|
|
166
|
+
opts: {
|
|
167
|
+
autoAdjustOverflow: !0,
|
|
168
|
+
position: "top",
|
|
169
|
+
...t.opts ?? {}
|
|
170
|
+
},
|
|
171
|
+
width: t.width ?? 150
|
|
172
|
+
};
|
|
173
|
+
}), J = l(() => typeof q.value.width == "number" ? `${q.value.width}px` : q.value.width), Y = l(() => ({
|
|
174
|
+
pos: q.value.ellipsisPos,
|
|
175
|
+
showTooltip: q.value.opts ? { opts: q.value.opts } : !1
|
|
176
|
+
}));
|
|
177
|
+
function X() {
|
|
178
|
+
if (n.route) return n.route;
|
|
179
|
+
let e = { name: k.value ?? D.value };
|
|
180
|
+
return n.href !== null && n.href !== void 0 && (e.href = n.href), e;
|
|
181
|
+
}
|
|
182
|
+
let Z = b(new F({
|
|
183
|
+
notifyClick: (e, t) => i("click", e, t),
|
|
184
|
+
notifyParent: (e, t) => _.onClick(e, t)
|
|
185
|
+
}));
|
|
186
|
+
w(() => Z.init()), C(() => Z.destroy());
|
|
187
|
+
function Q(e) {
|
|
188
|
+
Z.handleClick(X(), e);
|
|
189
|
+
}
|
|
190
|
+
return (t, n) => (T(), f("span", x(G.value, {
|
|
191
|
+
"aria-current": e.active ? "page" : void 0,
|
|
192
|
+
class: [
|
|
193
|
+
"semi-breadcrumb-item-wrap",
|
|
194
|
+
e.className,
|
|
195
|
+
A(c).class
|
|
196
|
+
],
|
|
197
|
+
style: [e.style, A(c).style]
|
|
198
|
+
}), [(T(), u(O(I.value), {
|
|
199
|
+
class: ee(W.value),
|
|
200
|
+
href: e.href,
|
|
201
|
+
onClick: Q
|
|
202
|
+
}, {
|
|
203
|
+
default: M(() => [N.value !== void 0 && N.value !== null ? (T(), u(A(L), {
|
|
204
|
+
key: 0,
|
|
205
|
+
compact: A(_).compact.value,
|
|
206
|
+
content: N.value
|
|
207
|
+
}, null, 8, ["compact", "content"])) : d("", !0), k.value ? (T(), f("span", V, [h(r, {
|
|
208
|
+
ellipsis: Y.value,
|
|
209
|
+
size: A(_).compact.value ? "small" : "normal",
|
|
210
|
+
style: S({ maxWidth: J.value })
|
|
211
|
+
}, {
|
|
212
|
+
default: M(() => [m(te(k.value), 1)]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, [
|
|
215
|
+
"ellipsis",
|
|
216
|
+
"size",
|
|
217
|
+
"style"
|
|
218
|
+
])])) : D.value.length ? (T(), f("span", H, [h(A(R), { content: D.value }, null, 8, ["content"])])) : d("", !0)]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["class", "href"])), e.shouldRenderSeparator ? (T(), f(o, { key: 0 }, [t.$slots.separator || e.separator ? (T(), u(A(R), {
|
|
221
|
+
key: 0,
|
|
222
|
+
content: K.value
|
|
223
|
+
}, null, 8, ["content"])) : (T(), f("span", U, [h(A(R), { content: K.value }, null, 8, ["content"])]))], 64)) : d("", !0)], 16, B));
|
|
224
|
+
}
|
|
225
|
+
}), G = {}, K = {
|
|
226
|
+
"aria-hidden": "true",
|
|
227
|
+
class: "semi-popover-icon-arrow",
|
|
228
|
+
width: "24",
|
|
229
|
+
height: "8",
|
|
230
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
231
|
+
};
|
|
232
|
+
function q(e, t) {
|
|
233
|
+
return T(), f("svg", K, [...t[0] ||= [p("path", {
|
|
234
|
+
d: "M0 0.5L0 1.5C4 1.5 5.5 3 7.5 5S10 8 12 8 14.5 7 16.5 5 20 1.5 24 1.5V0.5H0Z",
|
|
235
|
+
style: { fill: "var(--semi-color-border)" }
|
|
236
|
+
}, null, -1), p("path", {
|
|
237
|
+
d: "M0 0V1C4 1 5.5 2 7.5 4S10 7 12 7 14.5 6 16.5 4 20 1 24 1V0H0Z",
|
|
238
|
+
style: { fill: "var(--semi-color-bg-3)" }
|
|
239
|
+
}, null, -1)]]);
|
|
240
|
+
}
|
|
241
|
+
var J = /*#__PURE__*/ i(G, [["render", q]]), Y = { class: "semi-popover" }, X = { class: "semi-popover-content" }, Z = /* @__PURE__ */ g({
|
|
242
|
+
name: "BreadcrumbPopover",
|
|
243
|
+
__name: "BreadcrumbPopover",
|
|
244
|
+
props: { content: { type: [
|
|
245
|
+
Object,
|
|
246
|
+
String,
|
|
247
|
+
Number,
|
|
248
|
+
Boolean,
|
|
249
|
+
null,
|
|
250
|
+
Array
|
|
251
|
+
] } },
|
|
252
|
+
setup(e) {
|
|
253
|
+
return (t, r) => (T(), u(n, {
|
|
254
|
+
"arrow-bounding": {
|
|
255
|
+
width: 24,
|
|
256
|
+
height: 8,
|
|
257
|
+
offsetX: 0,
|
|
258
|
+
offsetY: 6
|
|
259
|
+
},
|
|
260
|
+
"auto-adjust-overflow": "",
|
|
261
|
+
"close-on-esc": "",
|
|
262
|
+
"disable-focus-listener": "",
|
|
263
|
+
"guard-focus": "",
|
|
264
|
+
position: "bottom",
|
|
265
|
+
"prefix-cls": "semi-popover",
|
|
266
|
+
"return-focus-on-close": "",
|
|
267
|
+
"show-arrow": !0,
|
|
268
|
+
spacing: 10,
|
|
269
|
+
style: { padding: "12px" },
|
|
270
|
+
trigger: "hover",
|
|
271
|
+
"z-index": 1030
|
|
272
|
+
}, {
|
|
273
|
+
content: M(() => [p("div", Y, [p("div", X, [h(A(R), { content: e.content }, null, 8, ["content"])])])]),
|
|
274
|
+
arrow: M(() => [h(J)]),
|
|
275
|
+
default: M(() => [D(t.$slots, "default")]),
|
|
276
|
+
_: 3
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
}), Q = ["default", "popover"];
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/breadcrumb/Breadcrumb.ts
|
|
282
|
+
function $(e) {
|
|
283
|
+
let t = [], n = (e) => {
|
|
284
|
+
if (Array.isArray(e)) {
|
|
285
|
+
e.forEach(n);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (!(!y(e) || e.type === a) && (e.type !== s || String(e.children ?? "").trim() !== "")) {
|
|
289
|
+
if (e.type === o && Array.isArray(e.children)) {
|
|
290
|
+
e.children.forEach((e) => n(e));
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
t.push(e);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
return e.forEach(n), t;
|
|
297
|
+
}
|
|
298
|
+
var re = g({
|
|
299
|
+
name: "Breadcrumb",
|
|
300
|
+
inheritAttrs: !1,
|
|
301
|
+
props: {
|
|
302
|
+
activeIndex: {
|
|
303
|
+
type: Number,
|
|
304
|
+
default: void 0
|
|
305
|
+
},
|
|
306
|
+
autoCollapse: {
|
|
307
|
+
type: Boolean,
|
|
308
|
+
default: !0
|
|
309
|
+
},
|
|
310
|
+
className: {
|
|
311
|
+
type: String,
|
|
312
|
+
default: void 0
|
|
313
|
+
},
|
|
314
|
+
compact: {
|
|
315
|
+
type: Boolean,
|
|
316
|
+
default: !0
|
|
317
|
+
},
|
|
318
|
+
maxItemCount: {
|
|
319
|
+
type: Number,
|
|
320
|
+
default: 4
|
|
321
|
+
},
|
|
322
|
+
moreType: {
|
|
323
|
+
type: String,
|
|
324
|
+
default: "default",
|
|
325
|
+
validator: (e) => Q.includes(e)
|
|
326
|
+
},
|
|
327
|
+
renderItem: {
|
|
328
|
+
type: Function,
|
|
329
|
+
default: void 0
|
|
330
|
+
},
|
|
331
|
+
renderMore: {
|
|
332
|
+
type: Function,
|
|
333
|
+
default: void 0
|
|
334
|
+
},
|
|
335
|
+
routes: {
|
|
336
|
+
type: Array,
|
|
337
|
+
default: () => []
|
|
338
|
+
},
|
|
339
|
+
separator: {
|
|
340
|
+
type: null,
|
|
341
|
+
default: "/"
|
|
342
|
+
},
|
|
343
|
+
showTooltip: {
|
|
344
|
+
type: [Boolean, Object],
|
|
345
|
+
default: () => ({
|
|
346
|
+
width: 150,
|
|
347
|
+
ellipsisPos: "end"
|
|
348
|
+
})
|
|
349
|
+
},
|
|
350
|
+
style: {
|
|
351
|
+
type: Object,
|
|
352
|
+
default: void 0
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
emits: { click: (e, t) => !0 },
|
|
356
|
+
setup(e, { attrs: t, emit: n, slots: r }) {
|
|
357
|
+
let i = k(!0), a = b(new P({
|
|
358
|
+
notifyClick: (e, t) => n("click", e, t),
|
|
359
|
+
expandCollapsed: () => {
|
|
360
|
+
i.value = !1;
|
|
361
|
+
}
|
|
362
|
+
})), o = l(() => r.separator?.() ?? e.separator);
|
|
363
|
+
E(z, {
|
|
364
|
+
compact: l(() => e.compact),
|
|
365
|
+
separator: o,
|
|
366
|
+
showTooltip: l(() => e.showTooltip),
|
|
367
|
+
onClick: (e, t) => a.handleClick(e, t)
|
|
368
|
+
}), w(() => a.init()), C(() => a.destroy());
|
|
369
|
+
let s = (e) => a.handleExpand(e);
|
|
370
|
+
function u(e) {
|
|
371
|
+
let t = [];
|
|
372
|
+
return e.forEach((n, r) => {
|
|
373
|
+
t.push(n), r !== e.length - 1 && t.push(_("span", {
|
|
374
|
+
class: "semi-breadcrumb-restItem",
|
|
375
|
+
key: `rest-separator-${r}`
|
|
376
|
+
}, [o.value]));
|
|
377
|
+
}), t;
|
|
378
|
+
}
|
|
379
|
+
function d(t) {
|
|
380
|
+
return r.more ? r.more({
|
|
381
|
+
expand: s,
|
|
382
|
+
items: t
|
|
383
|
+
}) : e.renderMore ? e.renderMore(t) : e.moreType === "popover" ? _(Z, { content: u(t) }, { default: () => _(N) }) : _(N);
|
|
384
|
+
}
|
|
385
|
+
function f(t, n) {
|
|
386
|
+
let r = t.slice(1, n - e.maxItemCount + 1);
|
|
387
|
+
return _("span", {
|
|
388
|
+
class: "semi-breadcrumb-collapse",
|
|
389
|
+
key: `more-${n}`
|
|
390
|
+
}, [_("span", { class: "semi-breadcrumb-item-wrap" }, [_("span", {
|
|
391
|
+
"aria-label": "Expand breadcrumb items",
|
|
392
|
+
class: ["semi-breadcrumb-item", "semi-breadcrumb-item-more"],
|
|
393
|
+
onClick: (e) => a.handleExpand(e),
|
|
394
|
+
onKeypress: (e) => a.handleExpandEnterPress(e),
|
|
395
|
+
role: "button",
|
|
396
|
+
tabindex: 0
|
|
397
|
+
}, [d(r)]), _("span", {
|
|
398
|
+
class: "semi-breadcrumb-separator",
|
|
399
|
+
"x-semi-prop": "separator"
|
|
400
|
+
}, [o.value])])]);
|
|
401
|
+
}
|
|
402
|
+
function p(t, n, i) {
|
|
403
|
+
let o = a.genRoutes(e.routes), s = o.length - e.maxItemCount;
|
|
404
|
+
return o.map((a, c) => {
|
|
405
|
+
let { _origin: l, ...u } = a, d = c > 0 && c <= s, f = r.item ? r.item({
|
|
406
|
+
index: c,
|
|
407
|
+
route: l
|
|
408
|
+
}) : e.renderItem ? e.renderItem(l, c) : a.name, p = l.key;
|
|
409
|
+
return _(W, {
|
|
410
|
+
...u,
|
|
411
|
+
active: e.activeIndex === void 0 ? c === o.length - 1 : e.activeIndex === c,
|
|
412
|
+
key: p === void 0 ? `item-${String(a.name ?? a.path ?? "")}-${c}` : String(p),
|
|
413
|
+
route: l,
|
|
414
|
+
shouldRenderSeparator: c !== o.length - 1 && !(t && (n || i) && d)
|
|
415
|
+
}, { default: () => f });
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
function m(t, n, i) {
|
|
419
|
+
let a = $(r.default?.() ?? []), o = a.length - e.maxItemCount;
|
|
420
|
+
return a.map((r, s) => {
|
|
421
|
+
let l = s > 0 && s <= o;
|
|
422
|
+
return r.type === W ? c(r, {
|
|
423
|
+
active: e.activeIndex === void 0 ? s === a.length - 1 : e.activeIndex === s,
|
|
424
|
+
key: `${s}-item`,
|
|
425
|
+
shouldRenderSeparator: s !== a.length - 1 && !(t && (n || i) && l)
|
|
426
|
+
}) : (console.warn("[Semi Breadcrumb]: Only accepts Breadcrumb.Item as its children"), r);
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
function h() {
|
|
430
|
+
let t = e.routes.length ? e.routes.length : $(r.default?.() ?? []).length, n = e.autoCollapse && t > e.maxItemCount && i.value, a = !!(r.more || e.renderMore), o = e.moreType === "popover", s = e.routes.length ? p(n, a, o) : m(n, a, o);
|
|
431
|
+
if (!n) return s;
|
|
432
|
+
let c = [...s];
|
|
433
|
+
return c.splice(1, t - e.maxItemCount, f(s, t)), c;
|
|
434
|
+
}
|
|
435
|
+
return () => {
|
|
436
|
+
let { class: n, style: r, ...i } = t;
|
|
437
|
+
return _("nav", x(i, {
|
|
438
|
+
"aria-label": t["aria-label"] ?? "Breadcrumb",
|
|
439
|
+
class: [
|
|
440
|
+
"semi-breadcrumb-wrapper",
|
|
441
|
+
e.compact ? "semi-breadcrumb-wrapper-compact" : "semi-breadcrumb-wrapper-loose",
|
|
442
|
+
e.className,
|
|
443
|
+
n
|
|
444
|
+
],
|
|
445
|
+
style: [e.style, r]
|
|
446
|
+
}), h());
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}), ie = Object.assign(re, { Item: W });
|
|
450
|
+
//#endregion
|
|
451
|
+
export { z as i, Q as n, W as r, ie as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ButtonProps, ButtonSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ButtonSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
click: (event: MouseEvent) => any;
|
|
5
|
+
mousedown: (event: MouseEvent) => any;
|
|
6
|
+
mouseenter: (event: MouseEvent) => any;
|
|
7
|
+
mouseleave: (event: MouseEvent) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
|
+
onClick?: (event: MouseEvent) => any;
|
|
10
|
+
onMousedown?: (event: MouseEvent) => any;
|
|
11
|
+
onMouseenter?: (event: MouseEvent) => any;
|
|
12
|
+
onMouseleave?: (event: MouseEvent) => any;
|
|
13
|
+
}>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
size: import('./types').ButtonSize;
|
|
16
|
+
type: import('./types').ButtonType;
|
|
17
|
+
prefixCls: string;
|
|
18
|
+
circle: boolean;
|
|
19
|
+
block: boolean;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
colorful: boolean;
|
|
22
|
+
htmlType: import('./types').ButtonHtmlType;
|
|
23
|
+
iconPosition: import('./types').ButtonIconPosition;
|
|
24
|
+
noHorizontalPadding: import('./types').ButtonNoHorizontalPadding;
|
|
25
|
+
theme: import('./types').ButtonTheme;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { ButtonSize, ButtonTheme, ButtonType } from './types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
colorful: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
prefixCls: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<ButtonSize>;
|
|
18
|
+
default: string;
|
|
19
|
+
validator: (value: string) => boolean;
|
|
20
|
+
};
|
|
21
|
+
theme: {
|
|
22
|
+
type: PropType<ButtonTheme>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
validator: (value: string) => boolean;
|
|
25
|
+
};
|
|
26
|
+
type: {
|
|
27
|
+
type: PropType<ButtonType>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
validator: (value: string) => boolean;
|
|
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
|
+
colorful: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
prefixCls: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<ButtonSize>;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
theme: {
|
|
52
|
+
type: PropType<ButtonTheme>;
|
|
53
|
+
default: undefined;
|
|
54
|
+
validator: (value: string) => boolean;
|
|
55
|
+
};
|
|
56
|
+
type: {
|
|
57
|
+
type: PropType<ButtonType>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
validator: (value: string) => boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
size: "small" | "default" | "large";
|
|
64
|
+
type: "primary" | "secondary" | "danger" | "warning" | "tertiary";
|
|
65
|
+
prefixCls: string;
|
|
66
|
+
colorful: boolean;
|
|
67
|
+
theme: "light" | "solid" | "borderless" | "outline";
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Fragment, PropType, VNode } from 'vue';
|
|
2
|
+
import { ButtonIconFill } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Vue templates cannot inject the colorful fill contract into arbitrary icon slot VNodes.
|
|
5
|
+
* Keep the render-function boundary isolated here so Button.vue remains declarative.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
fill: {
|
|
9
|
+
type: PropType<ButtonIconFill>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
nodes: {
|
|
13
|
+
type: PropType<readonly VNode[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}>, () => VNode<typeof Fragment>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
fill: {
|
|
18
|
+
type: PropType<ButtonIconFill>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
nodes: {
|
|
22
|
+
type: PropType<readonly VNode[]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
fill: ButtonIconFill;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SplitButtonGroupProps } from './types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<SplitButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SplitButtonGroupProps> & Readonly<{}>, {
|
|
7
|
+
prefixCls: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Button } from './Button.vue';
|
|
2
|
+
export { default as ButtonGroup } from './ButtonGroup';
|
|
3
|
+
export { default as SplitButtonGroup } from './SplitButtonGroup.vue';
|
|
4
|
+
export { BUTTON_HTML_TYPES, BUTTON_ICON_POSITIONS, BUTTON_SIZES, BUTTON_THEMES, BUTTON_TYPES, } from './types';
|
|
5
|
+
export type { ButtonEmits, ButtonGroupProps, ButtonHorizontalPadding, ButtonHtmlType, ButtonIconFill, ButtonIconPosition, ButtonIconSize, ButtonNoHorizontalPadding, ButtonProps, ButtonSize, ButtonSlots, ButtonTheme, ButtonType, SplitButtonGroupProps, } from './types';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { t as e } from "../Button-RCaDTqHh.js";
|
|
2
|
+
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../button-Rcn5pYGh.js";
|
|
3
|
+
export { a as BUTTON_HTML_TYPES, n as BUTTON_ICON_POSITIONS, t as BUTTON_SIZES, i as BUTTON_THEMES, o as BUTTON_TYPES, e as Button, r as ButtonGroup, s as SplitButtonGroup };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue } from 'vue';
|
|
2
|
+
export declare const BUTTON_SIZES: readonly ["default", "small", "large"];
|
|
3
|
+
export declare const BUTTON_THEMES: readonly ["solid", "borderless", "light", "outline"];
|
|
4
|
+
export declare const BUTTON_TYPES: readonly ["primary", "secondary", "tertiary", "warning", "danger"];
|
|
5
|
+
export declare const BUTTON_HTML_TYPES: readonly ["button", "reset", "submit"];
|
|
6
|
+
export declare const BUTTON_ICON_POSITIONS: readonly ["left", "right"];
|
|
7
|
+
export type ButtonSize = (typeof BUTTON_SIZES)[number];
|
|
8
|
+
export type ButtonTheme = (typeof BUTTON_THEMES)[number];
|
|
9
|
+
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
10
|
+
export type ButtonHtmlType = (typeof BUTTON_HTML_TYPES)[number];
|
|
11
|
+
export type ButtonIconPosition = (typeof BUTTON_ICON_POSITIONS)[number];
|
|
12
|
+
export type ButtonIconSize = 'inherit' | 'extra-small' | 'small' | 'default' | 'large' | 'extra-large';
|
|
13
|
+
export type ButtonHorizontalPadding = 'left' | 'right';
|
|
14
|
+
export type ButtonNoHorizontalPadding = boolean | ButtonHorizontalPadding | readonly ButtonHorizontalPadding[];
|
|
15
|
+
export type ButtonIconFill = string | readonly string[];
|
|
16
|
+
export interface ButtonProps {
|
|
17
|
+
block?: boolean;
|
|
18
|
+
circle?: boolean;
|
|
19
|
+
colorful?: boolean;
|
|
20
|
+
contentClass?: HTMLAttributes['class'];
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
htmlType?: ButtonHtmlType;
|
|
23
|
+
iconPosition?: ButtonIconPosition;
|
|
24
|
+
iconSize?: ButtonIconSize;
|
|
25
|
+
iconStyle?: StyleValue;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
noHorizontalPadding?: ButtonNoHorizontalPadding;
|
|
28
|
+
prefixCls?: string;
|
|
29
|
+
size?: ButtonSize;
|
|
30
|
+
theme?: ButtonTheme;
|
|
31
|
+
type?: ButtonType;
|
|
32
|
+
}
|
|
33
|
+
export interface ButtonSlots {
|
|
34
|
+
default?: () => unknown;
|
|
35
|
+
icon?: (props: {
|
|
36
|
+
fill: ButtonIconFill | undefined;
|
|
37
|
+
iconSize: ButtonIconSize | undefined;
|
|
38
|
+
iconStyle: StyleValue | undefined;
|
|
39
|
+
}) => unknown;
|
|
40
|
+
}
|
|
41
|
+
export interface ButtonEmits {
|
|
42
|
+
click: [event: MouseEvent];
|
|
43
|
+
mousedown: [event: MouseEvent];
|
|
44
|
+
mouseenter: [event: MouseEvent];
|
|
45
|
+
mouseleave: [event: MouseEvent];
|
|
46
|
+
}
|
|
47
|
+
export interface ButtonGroupProps {
|
|
48
|
+
colorful?: boolean;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
prefixCls?: string;
|
|
51
|
+
size?: ButtonSize;
|
|
52
|
+
theme?: ButtonTheme;
|
|
53
|
+
type?: ButtonType;
|
|
54
|
+
}
|
|
55
|
+
export interface SplitButtonGroupProps {
|
|
56
|
+
prefixCls?: string;
|
|
57
|
+
}
|