@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,27 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
export declare const EMPTY_LAYOUTS: readonly ["vertical", "horizontal"];
|
|
3
|
+
export type EmptyLayout = (typeof EMPTY_LAYOUTS)[number];
|
|
4
|
+
export interface EmptySvgNode {
|
|
5
|
+
id?: string;
|
|
6
|
+
viewBox?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
}
|
|
9
|
+
export type EmptyImage = VNodeChild | EmptySvgNode;
|
|
10
|
+
export interface EmptyProps {
|
|
11
|
+
class?: HTMLAttributes['class'];
|
|
12
|
+
className?: HTMLAttributes['class'];
|
|
13
|
+
darkModeImage?: EmptyImage;
|
|
14
|
+
description?: VNodeChild;
|
|
15
|
+
image?: EmptyImage;
|
|
16
|
+
imageStyle?: StyleValue;
|
|
17
|
+
layout?: EmptyLayout;
|
|
18
|
+
style?: StyleValue;
|
|
19
|
+
title?: VNodeChild;
|
|
20
|
+
}
|
|
21
|
+
export interface EmptySlots {
|
|
22
|
+
default?: () => VNodeChild;
|
|
23
|
+
darkModeImage?: () => VNodeChild;
|
|
24
|
+
description?: () => VNodeChild;
|
|
25
|
+
image?: () => VNodeChild;
|
|
26
|
+
title?: () => VNodeChild;
|
|
27
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { l as e } from "./typography-DF8KwKuL.js";
|
|
2
|
+
import { Comment as t, Text as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, shallowRef as h, unref as g, useAttrs as _, useSlots as v, withCtx as y } from "vue";
|
|
3
|
+
//#region src/empty/EmptyNodeRenderer.ts
|
|
4
|
+
var b = l({
|
|
5
|
+
name: "EmptyNodeRenderer",
|
|
6
|
+
props: { content: {
|
|
7
|
+
type: null,
|
|
8
|
+
default: void 0
|
|
9
|
+
} },
|
|
10
|
+
setup: (e) => () => e.content
|
|
11
|
+
}), x = ["alt", "src"], S = {
|
|
12
|
+
key: 1,
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, C = ["xlink:href"], w = { class: "semi-empty-content" }, T = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "semi-empty-description",
|
|
17
|
+
"x-semi-prop": "description"
|
|
18
|
+
}, E = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "semi-empty-footer",
|
|
21
|
+
"x-semi-prop": "children"
|
|
22
|
+
}, D = /* @__PURE__ */ l({
|
|
23
|
+
name: "Empty",
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
__name: "Empty",
|
|
26
|
+
props: {
|
|
27
|
+
class: { type: [
|
|
28
|
+
Boolean,
|
|
29
|
+
null,
|
|
30
|
+
String,
|
|
31
|
+
Object,
|
|
32
|
+
Array
|
|
33
|
+
] },
|
|
34
|
+
className: { type: [
|
|
35
|
+
Boolean,
|
|
36
|
+
null,
|
|
37
|
+
String,
|
|
38
|
+
Object,
|
|
39
|
+
Array
|
|
40
|
+
] },
|
|
41
|
+
darkModeImage: { type: [
|
|
42
|
+
Object,
|
|
43
|
+
String,
|
|
44
|
+
Number,
|
|
45
|
+
Boolean,
|
|
46
|
+
null,
|
|
47
|
+
Array
|
|
48
|
+
] },
|
|
49
|
+
description: { type: [
|
|
50
|
+
Object,
|
|
51
|
+
String,
|
|
52
|
+
Number,
|
|
53
|
+
Boolean,
|
|
54
|
+
null,
|
|
55
|
+
Array
|
|
56
|
+
] },
|
|
57
|
+
image: { type: [
|
|
58
|
+
Object,
|
|
59
|
+
String,
|
|
60
|
+
Number,
|
|
61
|
+
Boolean,
|
|
62
|
+
null,
|
|
63
|
+
Array
|
|
64
|
+
] },
|
|
65
|
+
imageStyle: { type: [
|
|
66
|
+
Boolean,
|
|
67
|
+
null,
|
|
68
|
+
String,
|
|
69
|
+
Object,
|
|
70
|
+
Array
|
|
71
|
+
] },
|
|
72
|
+
layout: { default: "vertical" },
|
|
73
|
+
style: { type: [
|
|
74
|
+
Boolean,
|
|
75
|
+
null,
|
|
76
|
+
String,
|
|
77
|
+
Object,
|
|
78
|
+
Array
|
|
79
|
+
] },
|
|
80
|
+
title: { type: [
|
|
81
|
+
Object,
|
|
82
|
+
String,
|
|
83
|
+
Number,
|
|
84
|
+
Boolean,
|
|
85
|
+
null,
|
|
86
|
+
Array
|
|
87
|
+
] }
|
|
88
|
+
},
|
|
89
|
+
setup(l) {
|
|
90
|
+
let D = l, O = _(), k = v(), A = h(null), j = null, M = null;
|
|
91
|
+
function N(e) {
|
|
92
|
+
if (Array.isArray(e)) return !0;
|
|
93
|
+
if (e == null || e === !1 || e === "" || e === 0) return !1;
|
|
94
|
+
if (typeof e != "object") return !!e;
|
|
95
|
+
let r = e;
|
|
96
|
+
return r.type === t ? !1 : r.type !== n || N(r.children);
|
|
97
|
+
}
|
|
98
|
+
function P(e) {
|
|
99
|
+
return typeof e == "object" && !!e && !Array.isArray(e) && "id" in e;
|
|
100
|
+
}
|
|
101
|
+
let F = r(() => k.image?.() ?? D.image), I = r(() => k.darkModeImage?.() ?? D.darkModeImage), L = r(() => A.value === "dark" && N(I.value) ? I.value : F.value), R = r(() => typeof L.value == "string"), z = r(() => P(L.value) ? L.value : void 0), B = r(() => R.value || z.value ? void 0 : L.value), V = r(() => R.value || !!z.value || N(B.value)), H = r(() => k.title?.() ?? D.title), U = r(() => k.description?.() ?? D.description), W = r(() => k.default?.()), G = r(() => N(H.value)), K = r(() => N(U.value)), q = r(() => N(W.value)), J = r(() => typeof U.value == "string" ? U.value : "empty");
|
|
102
|
+
function Y() {
|
|
103
|
+
if (!j) return;
|
|
104
|
+
let e = j.getAttribute("theme-mode");
|
|
105
|
+
e !== A.value && (A.value = e);
|
|
106
|
+
}
|
|
107
|
+
return p(() => {
|
|
108
|
+
N(I.value) && (j = window.document.body, Y(), M = new MutationObserver((e) => {
|
|
109
|
+
e.some((e) => e.type === "attributes" && e.attributeName === "theme-mode") && Y();
|
|
110
|
+
}), M.observe(j, {
|
|
111
|
+
attributes: !0,
|
|
112
|
+
childList: !1,
|
|
113
|
+
subtree: !1
|
|
114
|
+
}));
|
|
115
|
+
}), f(() => {
|
|
116
|
+
M?.disconnect(), M = null, j = null;
|
|
117
|
+
}), (t, n) => (m(), o("div", u(g(O), {
|
|
118
|
+
class: ["semi-empty", [
|
|
119
|
+
D.class,
|
|
120
|
+
D.className,
|
|
121
|
+
`semi-empty-${D.layout}`
|
|
122
|
+
]],
|
|
123
|
+
style: D.style
|
|
124
|
+
}), [s("div", {
|
|
125
|
+
class: "semi-empty-image",
|
|
126
|
+
style: d(D.imageStyle),
|
|
127
|
+
"x-semi-prop": "image,darkModeImage"
|
|
128
|
+
}, [R.value ? (m(), o("img", {
|
|
129
|
+
key: 0,
|
|
130
|
+
alt: J.value,
|
|
131
|
+
src: L.value
|
|
132
|
+
}, null, 8, x)) : z.value ? (m(), o("svg", S, [s("use", { "xlink:href": `#${z.value.id}` }, null, 8, C)])) : (m(), i(g(b), {
|
|
133
|
+
key: 2,
|
|
134
|
+
content: B.value
|
|
135
|
+
}, null, 8, ["content"]))], 4), s("div", w, [
|
|
136
|
+
G.value ? (m(), i(g(e), {
|
|
137
|
+
key: 0,
|
|
138
|
+
class: "semi-empty-title",
|
|
139
|
+
heading: V.value ? 4 : 6,
|
|
140
|
+
style: d(V.value ? void 0 : { fontWeight: 400 }),
|
|
141
|
+
"x-semi-prop": "title"
|
|
142
|
+
}, {
|
|
143
|
+
default: y(() => [c(g(b), { content: H.value }, null, 8, ["content"])]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["heading", "style"])) : a("", !0),
|
|
146
|
+
K.value ? (m(), o("div", T, [c(g(b), { content: U.value }, null, 8, ["content"])])) : a("", !0),
|
|
147
|
+
q.value ? (m(), o("div", E, [c(g(b), { content: W.value }, null, 8, ["content"])])) : a("", !0)
|
|
148
|
+
])], 16));
|
|
149
|
+
}
|
|
150
|
+
}), O = ["vertical", "horizontal"], k = D;
|
|
151
|
+
//#endregion
|
|
152
|
+
export { O as n, k as t };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/compute-scroll-into-view@1.0.20/node_modules/compute-scroll-into-view/dist/index.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
return typeof e == "object" && !!e && e.nodeType === 1;
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
return (!t || e !== "hidden") && e !== "visible" && e !== "clip";
|
|
7
|
+
}
|
|
8
|
+
function n(e, n) {
|
|
9
|
+
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
10
|
+
var r = getComputedStyle(e, null);
|
|
11
|
+
return t(r.overflowY, n) || t(r.overflowX, n) || function(e) {
|
|
12
|
+
var t = function(e) {
|
|
13
|
+
if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
|
|
14
|
+
try {
|
|
15
|
+
return e.ownerDocument.defaultView.frameElement;
|
|
16
|
+
} catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
}(e);
|
|
20
|
+
return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
|
|
21
|
+
}(e);
|
|
22
|
+
}
|
|
23
|
+
return !1;
|
|
24
|
+
}
|
|
25
|
+
function r(e, t, n, r, i, a, o, s) {
|
|
26
|
+
return a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0;
|
|
27
|
+
}
|
|
28
|
+
var i = function(t, i) {
|
|
29
|
+
var a = window, o = i.scrollMode, s = i.block, c = i.inline, l = i.boundary, u = i.skipOverflowHiddenElements, d = typeof l == "function" ? l : function(e) {
|
|
30
|
+
return e !== l;
|
|
31
|
+
};
|
|
32
|
+
if (!e(t)) throw TypeError("Invalid target");
|
|
33
|
+
for (var f, p = document.scrollingElement || document.documentElement, m = [], h = t; e(h) && d(h);) {
|
|
34
|
+
if ((h = (f = h).parentElement ?? (f.getRootNode().host || null)) === p) {
|
|
35
|
+
m.push(h);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
h != null && h === document.body && n(h) && !n(document.documentElement) || h != null && n(h, u) && m.push(h);
|
|
39
|
+
}
|
|
40
|
+
for (var g = a.visualViewport ? a.visualViewport.width : innerWidth, _ = a.visualViewport ? a.visualViewport.height : innerHeight, v = window.scrollX || pageXOffset, y = window.scrollY || pageYOffset, b = t.getBoundingClientRect(), x = b.height, S = b.width, C = b.top, w = b.right, T = b.bottom, E = b.left, D = s === "start" || s === "nearest" ? C : s === "end" ? T : C + x / 2, O = c === "center" ? E + S / 2 : c === "end" ? w : E, k = [], A = 0; A < m.length; A++) {
|
|
41
|
+
var j = m[A], M = j.getBoundingClientRect(), N = M.height, P = M.width, F = M.top, I = M.right, L = M.bottom, R = M.left;
|
|
42
|
+
if (o === "if-needed" && C >= 0 && E >= 0 && T <= _ && w <= g && C >= F && T <= L && E >= R && w <= I) return k;
|
|
43
|
+
var z = getComputedStyle(j), B = parseInt(z.borderLeftWidth, 10), V = parseInt(z.borderTopWidth, 10), H = parseInt(z.borderRightWidth, 10), U = parseInt(z.borderBottomWidth, 10), W = 0, G = 0, K = "offsetWidth" in j ? j.offsetWidth - j.clientWidth - B - H : 0, q = "offsetHeight" in j ? j.offsetHeight - j.clientHeight - V - U : 0, J = "offsetWidth" in j ? j.offsetWidth === 0 ? 0 : P / j.offsetWidth : 0, Y = "offsetHeight" in j ? j.offsetHeight === 0 ? 0 : N / j.offsetHeight : 0;
|
|
44
|
+
if (p === j) W = s === "start" ? D : s === "end" ? D - _ : s === "nearest" ? r(y, y + _, _, V, U, y + D, y + D + x, x) : D - _ / 2, G = c === "start" ? O : c === "center" ? O - g / 2 : c === "end" ? O - g : r(v, v + g, g, B, H, v + O, v + O + S, S), W = Math.max(0, W + y), G = Math.max(0, G + v);
|
|
45
|
+
else {
|
|
46
|
+
W = s === "start" ? D - F - V : s === "end" ? D - L + U + q : s === "nearest" ? r(F, L, N, V, U + q, D, D + x, x) : D - (F + N / 2) + q / 2, G = c === "start" ? O - R - B : c === "center" ? O - (R + P / 2) + K / 2 : c === "end" ? O - I + H + K : r(R, I, P, B, H + K, O, O + S, S);
|
|
47
|
+
var X = j.scrollLeft, Z = j.scrollTop;
|
|
48
|
+
D += Z - (W = Math.max(0, Math.min(Z + W / Y, j.scrollHeight - N / Y + q))), O += X - (G = Math.max(0, Math.min(X + G / J, j.scrollWidth - P / J + K)));
|
|
49
|
+
}
|
|
50
|
+
k.push({
|
|
51
|
+
el: j,
|
|
52
|
+
top: W,
|
|
53
|
+
left: G
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return k;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../node_modules/.pnpm/scroll-into-view-if-needed@2.2.31/node_modules/scroll-into-view-if-needed/es/index.js
|
|
60
|
+
function a(e) {
|
|
61
|
+
return e === Object(e) && Object.keys(e).length !== 0;
|
|
62
|
+
}
|
|
63
|
+
function o(e, t) {
|
|
64
|
+
t === void 0 && (t = "auto");
|
|
65
|
+
var n = "scrollBehavior" in document.body.style;
|
|
66
|
+
e.forEach(function(e) {
|
|
67
|
+
var r = e.el, i = e.top, a = e.left;
|
|
68
|
+
r.scroll && n ? r.scroll({
|
|
69
|
+
top: i,
|
|
70
|
+
left: a,
|
|
71
|
+
behavior: t
|
|
72
|
+
}) : (r.scrollTop = i, r.scrollLeft = a);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function s(e) {
|
|
76
|
+
return e === !1 ? {
|
|
77
|
+
block: "end",
|
|
78
|
+
inline: "nearest"
|
|
79
|
+
} : a(e) ? e : {
|
|
80
|
+
block: "start",
|
|
81
|
+
inline: "nearest"
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function c(e, t) {
|
|
85
|
+
var n = e.isConnected || e.ownerDocument.documentElement.contains(e);
|
|
86
|
+
if (a(t) && typeof t.behavior == "function") return t.behavior(n ? i(e, t) : []);
|
|
87
|
+
if (n) {
|
|
88
|
+
var r = s(t);
|
|
89
|
+
return o(i(e, r), r.behavior);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { c as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FloatButtonProps, FloatButtonSlots } from './types';
|
|
2
|
+
type __VLS_Slots = FloatButtonSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<FloatButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
click: (event: MouseEvent) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<FloatButtonProps> & Readonly<{
|
|
6
|
+
onClick?: (event: MouseEvent) => any;
|
|
7
|
+
}>, {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
size: import('./types').FloatButtonSize;
|
|
10
|
+
colorful: boolean;
|
|
11
|
+
shape: import('./types').FloatButtonShape;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FloatButtonBadgeProps } 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<FloatButtonBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FloatButtonBadgeProps> & Readonly<{}>, {
|
|
7
|
+
type: import('./types').FloatButtonBadgeType;
|
|
8
|
+
dot: boolean;
|
|
9
|
+
theme: import('./types').FloatButtonBadgeTheme;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FloatButtonGroupProps, FloatButtonGroupSlots } from './types';
|
|
2
|
+
type __VLS_Slots = FloatButtonGroupSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<FloatButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
click: (value: string, event: MouseEvent) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<FloatButtonGroupProps> & Readonly<{
|
|
6
|
+
onClick?: (value: string, event: MouseEvent) => any;
|
|
7
|
+
}>, {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<VNodeChild>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
content: VNodeChild;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as FloatButton } from './FloatButton.vue';
|
|
2
|
+
export { default as FloatButtonGroup } from './FloatButtonGroup.vue';
|
|
3
|
+
export { FLOAT_BUTTON_BADGE_POSITIONS, FLOAT_BUTTON_BADGE_THEMES, FLOAT_BUTTON_BADGE_TYPES, FLOAT_BUTTON_SHAPES, FLOAT_BUTTON_SIZES, } from './types';
|
|
4
|
+
export type { FloatButtonBadgePosition, FloatButtonBadgeProps, FloatButtonBadgeTheme, FloatButtonBadgeType, FloatButtonEmits, FloatButtonGroupEmits, FloatButtonGroupItem, FloatButtonGroupProps, FloatButtonGroupSlots, FloatButtonProps, FloatButtonShape, FloatButtonSize, FloatButtonSlots, } from './types';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../float-button-qU3b0WBX.js";
|
|
2
|
+
export { o as FLOAT_BUTTON_BADGE_POSITIONS, n as FLOAT_BUTTON_BADGE_THEMES, i as FLOAT_BUTTON_BADGE_TYPES, t as FLOAT_BUTTON_SHAPES, e as FLOAT_BUTTON_SIZES, a as FloatButton, r as FloatButtonGroup };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CSSProperties, VNodeChild } from 'vue';
|
|
2
|
+
export declare const FLOAT_BUTTON_SHAPES: readonly ["square", "round"];
|
|
3
|
+
export declare const FLOAT_BUTTON_SIZES: readonly ["small", "default", "large"];
|
|
4
|
+
export declare const FLOAT_BUTTON_BADGE_TYPES: readonly ["primary", "secondary", "tertiary", "danger", "warning", "success"];
|
|
5
|
+
export declare const FLOAT_BUTTON_BADGE_THEMES: readonly ["solid", "light", "inverted"];
|
|
6
|
+
export declare const FLOAT_BUTTON_BADGE_POSITIONS: readonly ["leftTop", "leftBottom", "rightTop", "rightBottom"];
|
|
7
|
+
export type FloatButtonShape = (typeof FLOAT_BUTTON_SHAPES)[number];
|
|
8
|
+
export type FloatButtonSize = (typeof FLOAT_BUTTON_SIZES)[number];
|
|
9
|
+
export type FloatButtonBadgeType = (typeof FLOAT_BUTTON_BADGE_TYPES)[number];
|
|
10
|
+
export type FloatButtonBadgeTheme = (typeof FLOAT_BUTTON_BADGE_THEMES)[number];
|
|
11
|
+
export type FloatButtonBadgePosition = (typeof FLOAT_BUTTON_BADGE_POSITIONS)[number];
|
|
12
|
+
export interface FloatButtonBadgeProps {
|
|
13
|
+
count?: VNodeChild;
|
|
14
|
+
dot?: boolean;
|
|
15
|
+
type?: FloatButtonBadgeType;
|
|
16
|
+
theme?: FloatButtonBadgeTheme;
|
|
17
|
+
position?: FloatButtonBadgePosition;
|
|
18
|
+
overflowCount?: number;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
className?: string;
|
|
21
|
+
countClassName?: string;
|
|
22
|
+
countStyle?: CSSProperties;
|
|
23
|
+
onClick?: (event: MouseEvent) => unknown;
|
|
24
|
+
onMouseEnter?: (event: MouseEvent) => unknown;
|
|
25
|
+
onMouseLeave?: (event: MouseEvent) => unknown;
|
|
26
|
+
}
|
|
27
|
+
export interface FloatButtonProps {
|
|
28
|
+
shape?: FloatButtonShape;
|
|
29
|
+
colorful?: boolean;
|
|
30
|
+
icon?: VNodeChild;
|
|
31
|
+
href?: string;
|
|
32
|
+
target?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
size?: FloatButtonSize;
|
|
35
|
+
badge?: FloatButtonBadgeProps;
|
|
36
|
+
}
|
|
37
|
+
export interface FloatButtonEmits {
|
|
38
|
+
click: [event: MouseEvent];
|
|
39
|
+
}
|
|
40
|
+
export interface FloatButtonSlots {
|
|
41
|
+
icon?: () => unknown;
|
|
42
|
+
}
|
|
43
|
+
export interface FloatButtonGroupItem extends FloatButtonProps {
|
|
44
|
+
value?: string;
|
|
45
|
+
content?: VNodeChild;
|
|
46
|
+
}
|
|
47
|
+
export interface FloatButtonGroupProps {
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
items: readonly FloatButtonGroupItem[];
|
|
50
|
+
}
|
|
51
|
+
export interface FloatButtonGroupEmits {
|
|
52
|
+
click: [value: string, event: MouseEvent];
|
|
53
|
+
}
|
|
54
|
+
export interface FloatButtonGroupSlots {
|
|
55
|
+
item?: (props: {
|
|
56
|
+
item: FloatButtonGroupItem;
|
|
57
|
+
index: number;
|
|
58
|
+
}) => unknown;
|
|
59
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, h as c, mergeProps as l, normalizeClass as u, normalizeProps as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, unref as g, useAttrs as _, withCtx as v } from "vue";
|
|
2
|
+
//#region src/float-button/FloatButtonNodeRenderer.ts
|
|
3
|
+
var y = s({
|
|
4
|
+
name: "FloatButtonNodeRenderer",
|
|
5
|
+
props: { content: {
|
|
6
|
+
type: null,
|
|
7
|
+
default: void 0
|
|
8
|
+
} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
return () => c(e, null, [t.content]);
|
|
11
|
+
}
|
|
12
|
+
}), b = /* @__PURE__ */ s({
|
|
13
|
+
name: "FloatButtonBadge",
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
__name: "FloatButtonBadge",
|
|
16
|
+
props: {
|
|
17
|
+
count: { type: [
|
|
18
|
+
Object,
|
|
19
|
+
String,
|
|
20
|
+
Number,
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
Array
|
|
24
|
+
] },
|
|
25
|
+
dot: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
type: { default: "primary" },
|
|
30
|
+
theme: { default: "solid" },
|
|
31
|
+
position: {},
|
|
32
|
+
overflowCount: {},
|
|
33
|
+
style: {},
|
|
34
|
+
className: {},
|
|
35
|
+
countClassName: {},
|
|
36
|
+
countStyle: {},
|
|
37
|
+
onClick: {},
|
|
38
|
+
onMouseEnter: {},
|
|
39
|
+
onMouseLeave: {}
|
|
40
|
+
},
|
|
41
|
+
setup(e) {
|
|
42
|
+
let o = e, s = t(() => typeof o.count == "number" || typeof o.count == "string"), c = t(() => !!o.count && !s.value), l = t(() => o.count !== null && o.count !== void 0), d = t(() => o.position ?? "rightTop"), m = t(() => [
|
|
43
|
+
o.countClassName,
|
|
44
|
+
c.value ? null : `semi-badge-${o.type}`,
|
|
45
|
+
c.value ? null : `semi-badge-${o.theme}`,
|
|
46
|
+
`semi-badge-${d.value}`,
|
|
47
|
+
o.dot ? "semi-badge-dot" : null,
|
|
48
|
+
!o.dot && !c.value && l.value ? "semi-badge-count" : null,
|
|
49
|
+
c.value ? "semi-badge-custom" : null
|
|
50
|
+
]), _ = t(() => typeof o.count == "number" ? o.overflowCount && o.overflowCount < o.count ? `${o.overflowCount}+` : `${o.count}` : o.count);
|
|
51
|
+
return (e, t) => (p(), i("span", {
|
|
52
|
+
class: u(["semi-badge", o.className]),
|
|
53
|
+
onClick: t[0] ||= (e) => o.onClick?.(e),
|
|
54
|
+
onMouseenter: t[1] ||= (e) => o.onMouseEnter?.(e),
|
|
55
|
+
onMouseleave: t[2] ||= (e) => o.onMouseLeave?.(e)
|
|
56
|
+
}, [h(e.$slots, "default"), a("span", {
|
|
57
|
+
class: u(m.value),
|
|
58
|
+
style: f(o.style || o.countStyle),
|
|
59
|
+
"x-semi-prop": "count"
|
|
60
|
+
}, [o.dot ? r("", !0) : (p(), n(g(y), {
|
|
61
|
+
key: 0,
|
|
62
|
+
content: _.value
|
|
63
|
+
}, null, 8, ["content"]))], 6)], 34));
|
|
64
|
+
}
|
|
65
|
+
}), x = /* @__PURE__ */ s({
|
|
66
|
+
name: "FloatButton",
|
|
67
|
+
inheritAttrs: !1,
|
|
68
|
+
__name: "FloatButton",
|
|
69
|
+
props: {
|
|
70
|
+
shape: { default: "round" },
|
|
71
|
+
colorful: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: !1
|
|
74
|
+
},
|
|
75
|
+
icon: { type: [
|
|
76
|
+
Object,
|
|
77
|
+
String,
|
|
78
|
+
Number,
|
|
79
|
+
Boolean,
|
|
80
|
+
null,
|
|
81
|
+
Array
|
|
82
|
+
] },
|
|
83
|
+
href: {},
|
|
84
|
+
target: {},
|
|
85
|
+
disabled: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: !1
|
|
88
|
+
},
|
|
89
|
+
size: { default: "default" },
|
|
90
|
+
badge: {}
|
|
91
|
+
},
|
|
92
|
+
emits: ["click"],
|
|
93
|
+
setup(e, { emit: r }) {
|
|
94
|
+
let s = e, c = r, f = _(), m = t(() => Object.fromEntries(Object.entries(f).filter(([e]) => !["class", "style"].includes(e)))), x = t(() => [
|
|
95
|
+
"semi-floatButton",
|
|
96
|
+
`semi-floatButton-${s.size}`,
|
|
97
|
+
`semi-floatButton-${s.shape}`,
|
|
98
|
+
f.class
|
|
99
|
+
]), S = t(() => [
|
|
100
|
+
"semi-floatButton-body",
|
|
101
|
+
`semi-floatButton-${s.shape}`,
|
|
102
|
+
s.colorful ? "semi-floatButton-colorful" : null,
|
|
103
|
+
s.disabled ? "semi-floatButton-disabled" : null,
|
|
104
|
+
`semi-floatButton-${s.size}`
|
|
105
|
+
]);
|
|
106
|
+
function C(e) {
|
|
107
|
+
s.disabled || (s.href && typeof window < "u" && (s.target === "_blank" ? window.open(s.href, "_blank") : window.location.href = s.href), c("click", e));
|
|
108
|
+
}
|
|
109
|
+
return (e, t) => (p(), i("div", l(m.value, {
|
|
110
|
+
class: x.value,
|
|
111
|
+
style: g(f).style,
|
|
112
|
+
onClick: C
|
|
113
|
+
}), [s.badge ? (p(), n(b, d(l({ key: 0 }, s.badge)), {
|
|
114
|
+
default: v(() => [a("div", { class: u(S.value) }, [h(e.$slots, "icon", {}, () => [o(g(y), { content: s.icon }, null, 8, ["content"])])], 2)]),
|
|
115
|
+
_: 3
|
|
116
|
+
}, 16)) : (p(), i("div", {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: u(S.value)
|
|
119
|
+
}, [h(e.$slots, "icon", {}, () => [o(g(y), { content: s.icon }, null, 8, ["content"])])], 2))], 16));
|
|
120
|
+
}
|
|
121
|
+
}), S = ["data-value"], C = ["data-value"], w = /* @__PURE__ */ s({
|
|
122
|
+
name: "FloatButtonGroup",
|
|
123
|
+
inheritAttrs: !1,
|
|
124
|
+
__name: "FloatButtonGroup",
|
|
125
|
+
props: {
|
|
126
|
+
disabled: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: !1
|
|
129
|
+
},
|
|
130
|
+
items: {}
|
|
131
|
+
},
|
|
132
|
+
emits: ["click"],
|
|
133
|
+
setup(r, { emit: s }) {
|
|
134
|
+
let c = r, u = s, d = _(), f = t(() => [
|
|
135
|
+
"semi-floatButtonGroup",
|
|
136
|
+
c.disabled ? "semi-floatButtonGroup-disabled" : null,
|
|
137
|
+
d.class
|
|
138
|
+
]), x = t(() => Object.fromEntries(Object.entries(d).filter(([e]) => !["class", "style"].includes(e))));
|
|
139
|
+
function w(e) {
|
|
140
|
+
let t = e.target, n = t instanceof HTMLElement ? t.dataset.value : void 0;
|
|
141
|
+
u("click", n, e);
|
|
142
|
+
}
|
|
143
|
+
return (t, r) => (p(), i("div", l(x.value, {
|
|
144
|
+
class: f.value,
|
|
145
|
+
style: g(d).style,
|
|
146
|
+
onClick: w
|
|
147
|
+
}), [(p(!0), i(e, null, m(c.items, (r, s) => (p(), i(e, { key: s }, [r.badge ? (p(), n(b, l({
|
|
148
|
+
key: 0,
|
|
149
|
+
ref_for: !0
|
|
150
|
+
}, r.badge), {
|
|
151
|
+
default: v(() => [a("div", {
|
|
152
|
+
class: "semi-floatButtonGroup-item",
|
|
153
|
+
"data-value": r.value
|
|
154
|
+
}, [h(t.$slots, "item", {
|
|
155
|
+
item: r,
|
|
156
|
+
index: s
|
|
157
|
+
}, () => [o(g(y), { content: r.icon }, null, 8, ["content"]), o(g(y), { content: r.content }, null, 8, ["content"])])], 8, S)]),
|
|
158
|
+
_: 2
|
|
159
|
+
}, 1040)) : (p(), i("div", {
|
|
160
|
+
key: 1,
|
|
161
|
+
class: "semi-floatButtonGroup-item",
|
|
162
|
+
"data-value": r.value
|
|
163
|
+
}, [h(t.$slots, "item", {
|
|
164
|
+
item: r,
|
|
165
|
+
index: s
|
|
166
|
+
}, () => [o(g(y), { content: r.icon }, null, 8, ["content"]), o(g(y), { content: r.content }, null, 8, ["content"])])], 8, C))], 64))), 128))], 16));
|
|
167
|
+
}
|
|
168
|
+
}), T = ["square", "round"], E = [
|
|
169
|
+
"small",
|
|
170
|
+
"default",
|
|
171
|
+
"large"
|
|
172
|
+
], D = [
|
|
173
|
+
"primary",
|
|
174
|
+
"secondary",
|
|
175
|
+
"tertiary",
|
|
176
|
+
"danger",
|
|
177
|
+
"warning",
|
|
178
|
+
"success"
|
|
179
|
+
], O = [
|
|
180
|
+
"solid",
|
|
181
|
+
"light",
|
|
182
|
+
"inverted"
|
|
183
|
+
], k = [
|
|
184
|
+
"leftTop",
|
|
185
|
+
"leftBottom",
|
|
186
|
+
"rightTop",
|
|
187
|
+
"rightBottom"
|
|
188
|
+
];
|
|
189
|
+
//#endregion
|
|
190
|
+
export { E as a, T as i, O as n, w as o, D as r, x as s, k as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
field: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
initValue: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
}>, (() => null) | (() => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>[] | undefined), {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
field: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
initValue: {
|
|
18
|
+
type: ArrayConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
initValue: unknown[];
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FormApi, FormFieldError, FormProps, FormSlots, FormState } from './types';
|
|
2
|
+
type __VLS_Props = FormProps;
|
|
3
|
+
type __VLS_Slots = FormSlots;
|
|
4
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
5
|
+
formApi: import('vue').Raw<FormApi<Record<string, unknown>>>;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
change: (formState: FormState<Record<string, unknown>>) => any;
|
|
8
|
+
reset: () => any;
|
|
9
|
+
submit: (values: Record<string, unknown>, event?: Event | undefined) => any;
|
|
10
|
+
errorChange: (errors: Record<string, FormFieldError>, changedErrors: Record<string, FormFieldError>) => any;
|
|
11
|
+
submitFail: (errors: unknown, values: Record<string, unknown>, event?: Event | undefined) => any;
|
|
12
|
+
valueChange: (values: Record<string, unknown>, changedValues: Record<string, unknown>) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onChange?: (formState: FormState<Record<string, unknown>>) => any;
|
|
15
|
+
onReset?: () => any;
|
|
16
|
+
onSubmit?: (values: Record<string, unknown>, event?: Event | undefined) => any;
|
|
17
|
+
onErrorChange?: (errors: Record<string, FormFieldError>, changedErrors: Record<string, FormFieldError>) => any;
|
|
18
|
+
onSubmitFail?: (errors: unknown, values: Record<string, unknown>, event?: Event | undefined) => any;
|
|
19
|
+
onValueChange?: (values: Record<string, unknown>, changedValues: Record<string, unknown>) => any;
|
|
20
|
+
}>, {
|
|
21
|
+
layout: import('./types').FormLayout;
|
|
22
|
+
labelPosition: import('./types').FormLabelPosition;
|
|
23
|
+
trigger: import('./types').FormTrigger | import('./types').FormTrigger[];
|
|
24
|
+
extraTextPosition: "middle" | "bottom";
|
|
25
|
+
labelAlign: import('./types').FormLabelAlign;
|
|
26
|
+
stopValidateWithError: boolean;
|
|
27
|
+
allowEmpty: boolean;
|
|
28
|
+
autoScrollToError: boolean | import('./types').ScrollIntoViewOptions;
|
|
29
|
+
showValidateIcon: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|