@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,21 @@
|
|
|
1
|
+
import { ScrollItemData, ScrollItemExposed, ScrollItemProps, ScrollItemSelectData } from './types';
|
|
2
|
+
declare const __VLS_export: <Item extends ScrollItemData = ScrollItemData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ScrollItemProps<Item> & {
|
|
4
|
+
onSelect?: (data: ScrollItemSelectData<Item>) => any;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<ScrollItemExposed>) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "select", data: ScrollItemSelectData<Item>) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ScrollListProps, ScrollListSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ScrollListSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ScrollListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScrollListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
content: {
|
|
9
|
+
type: PropType<VNodeChild>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
content: VNodeChild;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { default as ScrollListBase } from './ScrollList.vue';
|
|
3
|
+
import { ScrollItemProps } from './types';
|
|
4
|
+
export type ScrollListCompoundComponent = typeof ScrollListBase & {
|
|
5
|
+
Item: DefineComponent<ScrollItemProps>;
|
|
6
|
+
};
|
|
7
|
+
export declare const ScrollItem: DefineComponent<ScrollItemProps>;
|
|
8
|
+
export declare const ScrollList: ScrollListCompoundComponent;
|
|
9
|
+
export default ScrollList;
|
|
10
|
+
export { SCROLL_ITEM_MODES, type ScrollItemData, type ScrollItemEmits, type ScrollItemExposed, type ScrollItemMode, type ScrollItemProps, type ScrollItemSelectData, type ScrollListProps, type ScrollListSlots, type ScrollMotion, type ScrollMotionObject, } from './types';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
export declare const SCROLL_ITEM_MODES: readonly ["normal", "wheel"];
|
|
3
|
+
export type ScrollItemMode = (typeof SCROLL_ITEM_MODES)[number];
|
|
4
|
+
export interface ScrollMotionObject {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export type ScrollMotion = boolean | ScrollMotionObject | ((props: Record<string, unknown>) => ScrollMotionObject);
|
|
8
|
+
export interface ScrollItemData {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
text?: string;
|
|
11
|
+
transform?: (value: unknown, text: string) => unknown;
|
|
12
|
+
value: unknown;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export type ScrollItemSelectData<Item extends ScrollItemData = ScrollItemData> = Item & {
|
|
16
|
+
index: number;
|
|
17
|
+
type?: number | string;
|
|
18
|
+
};
|
|
19
|
+
export interface ScrollListProps {
|
|
20
|
+
bodyHeight?: number | string;
|
|
21
|
+
class?: HTMLAttributes['class'];
|
|
22
|
+
className?: HTMLAttributes['class'];
|
|
23
|
+
footer?: VNodeChild;
|
|
24
|
+
header?: VNodeChild;
|
|
25
|
+
prefixCls?: string;
|
|
26
|
+
style?: StyleValue;
|
|
27
|
+
}
|
|
28
|
+
export interface ScrollListSlots {
|
|
29
|
+
default?: () => VNodeChild;
|
|
30
|
+
footer?: () => VNodeChild;
|
|
31
|
+
header?: () => VNodeChild;
|
|
32
|
+
}
|
|
33
|
+
export interface ScrollItemProps<Item extends ScrollItemData = ScrollItemData> {
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
class?: HTMLAttributes['class'];
|
|
36
|
+
className?: HTMLAttributes['class'];
|
|
37
|
+
cycled?: boolean;
|
|
38
|
+
list?: Item[];
|
|
39
|
+
mode?: ScrollItemMode;
|
|
40
|
+
motion?: ScrollMotion;
|
|
41
|
+
selectedIndex?: number;
|
|
42
|
+
style?: StyleValue;
|
|
43
|
+
transform?: (value: unknown, text: string) => unknown;
|
|
44
|
+
type?: number | string;
|
|
45
|
+
}
|
|
46
|
+
export interface ScrollItemEmits<Item extends ScrollItemData = ScrollItemData> {
|
|
47
|
+
select: [data: ScrollItemSelectData<Item>];
|
|
48
|
+
}
|
|
49
|
+
export interface ScrollItemExposed {
|
|
50
|
+
scrollToCenter(selectedNode?: HTMLElement, scrollWrapper?: HTMLElement, duration?: number): void;
|
|
51
|
+
scrollToIndex(selectedIndex?: number, duration?: number): void;
|
|
52
|
+
scrollToNode(node: HTMLElement, duration?: number): void;
|
|
53
|
+
scrollToPos(targetTop: number, duration?: number): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { t as e } from "./src-DNBBthjO.js";
|
|
2
|
+
import { a as t, o as n, t as r, w as i } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t as a } from "./env-BeIzjQx7.js";
|
|
4
|
+
import { t as o } from "./isElement-Cx0AsIov.js";
|
|
5
|
+
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, markRaw as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as ee, onMounted as y, openBlock as b, renderList as x, renderSlot as S, shallowReactive as C, toDisplayString as w, unref as T, useAttrs as E, useSlots as D, useTemplateRef as O, watch as k } from "vue";
|
|
6
|
+
//#region bundled-foundation
|
|
7
|
+
function A(e, ...t) {
|
|
8
|
+
for (let n of t) e.appendChild(n);
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
function j(e, ...t) {
|
|
12
|
+
if (e.children && e.children.length) {
|
|
13
|
+
let n = e.children[0];
|
|
14
|
+
for (let r of t) e.insertBefore(r, n);
|
|
15
|
+
} else A(e, ...t);
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region bundled-foundation
|
|
20
|
+
var M = class extends r {
|
|
21
|
+
constructor(...e) {
|
|
22
|
+
super(...e), this._cachedSelectedNode = null;
|
|
23
|
+
}
|
|
24
|
+
selectIndex(e, t) {
|
|
25
|
+
let { type: n, list: r } = this.getProps();
|
|
26
|
+
if (e > -1 && Array.isArray(r) && r.length && o(t)) {
|
|
27
|
+
let i = e % r.length, a = r[i], o = t.children[e];
|
|
28
|
+
this._adapter.setSelectedNode(o), this._adapter.notifySelectItem({
|
|
29
|
+
...a,
|
|
30
|
+
value: a.value,
|
|
31
|
+
type: n,
|
|
32
|
+
index: i
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
selectNode(e, t) {
|
|
37
|
+
let { type: r, list: i } = this.getProps();
|
|
38
|
+
if (o(e) && o(t)) {
|
|
39
|
+
let a = (0, n.default)(t.children, (t) => t === e) % i.length, o = (0, n.default)(t.children, (e) => e === this._cachedSelectedNode) % i.length, s = i[a];
|
|
40
|
+
this._adapter.setSelectedNode(e), this._adapter.scrollToCenter(e), this._cachedSelectedNode !== e && (this._cachedSelectedNode = e, o !== a && this._adapter.notifySelectItem({
|
|
41
|
+
...s,
|
|
42
|
+
value: s.value,
|
|
43
|
+
type: r,
|
|
44
|
+
index: a
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
shouldAppend(e, t, n = 2) {
|
|
49
|
+
if (o(e) && o(t)) {
|
|
50
|
+
let r = e.querySelectorAll("li"), i = r[r.length - 1], { list: a } = this.getProps();
|
|
51
|
+
if (i) {
|
|
52
|
+
let e = t.getBoundingClientRect(), r = i.getBoundingClientRect(), o = r.height * a.length;
|
|
53
|
+
if (o <= 0) return 0;
|
|
54
|
+
let s = r.top, c = 0;
|
|
55
|
+
for (; s <= e.top + e.height * n;) c += 1, s += o;
|
|
56
|
+
return c;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return !1;
|
|
60
|
+
}
|
|
61
|
+
shouldPrepend(e, t, n = 2) {
|
|
62
|
+
if (o(e) && o(t)) {
|
|
63
|
+
let r = e.querySelectorAll("li")[0], { list: i } = this.getProps();
|
|
64
|
+
if (r) {
|
|
65
|
+
let e = t.getBoundingClientRect(), a = r.getBoundingClientRect(), o = a.height * i.length;
|
|
66
|
+
if (o <= 0) return 0;
|
|
67
|
+
let s = a.top, c = 0;
|
|
68
|
+
for (; s + a.height >= e.top - e.height * n;) c += 1, s -= o;
|
|
69
|
+
return c;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return 0;
|
|
73
|
+
}
|
|
74
|
+
initWheelList(e, t, n) {
|
|
75
|
+
let { list: r } = this.getProps();
|
|
76
|
+
if (o(t) && o(e) && r && r.length) {
|
|
77
|
+
let a = e.children;
|
|
78
|
+
(0, i.default)(a, 0, r.length);
|
|
79
|
+
let o = this.shouldPrepend(e, t), s = this.shouldAppend(e, t);
|
|
80
|
+
this._adapter.setState({
|
|
81
|
+
prependCount: o,
|
|
82
|
+
appendCount: s
|
|
83
|
+
}, n);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
adjustInfiniteList(e, t, n) {
|
|
87
|
+
let { list: r } = this.getProps();
|
|
88
|
+
if (o(t) && o(e) && r && r.length) {
|
|
89
|
+
let n = e.querySelectorAll("li"), a = n.length, o = this.shouldPrepend(e, t, 1), s = this.shouldAppend(e, t, 1);
|
|
90
|
+
if (o) for (let t = 0; t < o; t++) j(e, ...(0, i.default)(n, a - r.length * (t + 1), a - r.length * t));
|
|
91
|
+
if (s) for (let t = 0; t < s; t++) A(e, ...(0, i.default)(n, t * r.length, (t + 1) * r.length));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
getNearestNodeInfo(e, t) {
|
|
95
|
+
if (o(e) && o(t)) {
|
|
96
|
+
let n = t.getBoundingClientRect().top, r = e.querySelectorAll("li"), i = null, a = -1, o = Infinity;
|
|
97
|
+
return Array.from(r).map((e, t) => {
|
|
98
|
+
let r = e.getBoundingClientRect().top, s = Math.abs(r - n);
|
|
99
|
+
s < o && !this._adapter.isDisabledIndex(t) && (o = s, i = e, a = t);
|
|
100
|
+
}), {
|
|
101
|
+
nearestNode: i,
|
|
102
|
+
nearestIndex: a
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
getTargetNode(e, n) {
|
|
107
|
+
if (e && o(n)) {
|
|
108
|
+
let r = e.target, i = n.querySelectorAll("li"), a = this.getProp("list"), o = Array.isArray(a) ? a.length : 0, s = -1, c = -1, l = null, u = (0, t.default)(i, (e, t) => {
|
|
109
|
+
if (e === r || e.contains(r)) return s = t, o > 0 && (c = t % o), !0;
|
|
110
|
+
});
|
|
111
|
+
return c > -1 && (l = a[c]), {
|
|
112
|
+
targetNode: u,
|
|
113
|
+
targetIndex: s,
|
|
114
|
+
indexInList: c,
|
|
115
|
+
infoInList: l
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
}, te = (t, n, r) => {
|
|
121
|
+
let i = new e({
|
|
122
|
+
from: { scrollTop: t.scrollTop },
|
|
123
|
+
to: { scrollTop: n }
|
|
124
|
+
}, { duration: r });
|
|
125
|
+
return i.on("frame", ({ scrollTop: e }) => {
|
|
126
|
+
t.scrollTop = e;
|
|
127
|
+
}), i;
|
|
128
|
+
}, N = {
|
|
129
|
+
PREFIX: `${a}-scrolllist`,
|
|
130
|
+
SELECTED: `${a}-scrolllist-item-selected`
|
|
131
|
+
}, P = {
|
|
132
|
+
DEFAULT_ITEM_HEIGHT: 36,
|
|
133
|
+
DEFAULT_SCROLL_DURATION: 120
|
|
134
|
+
}, F = ["aria-label"], I = ["aria-disabled", "onClick"], L = ["aria-label"], R = ["aria-disabled"], z = /* @__PURE__ */ p({
|
|
135
|
+
inheritAttrs: !1,
|
|
136
|
+
__name: "ScrollItem",
|
|
137
|
+
props: {
|
|
138
|
+
ariaLabel: {},
|
|
139
|
+
class: { type: [
|
|
140
|
+
Boolean,
|
|
141
|
+
null,
|
|
142
|
+
String,
|
|
143
|
+
Object,
|
|
144
|
+
Array
|
|
145
|
+
] },
|
|
146
|
+
className: { type: [
|
|
147
|
+
Boolean,
|
|
148
|
+
null,
|
|
149
|
+
String,
|
|
150
|
+
Object,
|
|
151
|
+
Array
|
|
152
|
+
] },
|
|
153
|
+
cycled: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
default: !1
|
|
156
|
+
},
|
|
157
|
+
list: { default: () => [] },
|
|
158
|
+
mode: { default: "wheel" },
|
|
159
|
+
motion: {
|
|
160
|
+
type: [
|
|
161
|
+
Boolean,
|
|
162
|
+
Object,
|
|
163
|
+
Function
|
|
164
|
+
],
|
|
165
|
+
default: !0
|
|
166
|
+
},
|
|
167
|
+
selectedIndex: { default: 0 },
|
|
168
|
+
style: { type: [
|
|
169
|
+
Boolean,
|
|
170
|
+
null,
|
|
171
|
+
String,
|
|
172
|
+
Object,
|
|
173
|
+
Array
|
|
174
|
+
] },
|
|
175
|
+
transform: {},
|
|
176
|
+
type: {}
|
|
177
|
+
},
|
|
178
|
+
emits: ["select"],
|
|
179
|
+
setup(e, { expose: t, emit: n }) {
|
|
180
|
+
let r = e, i = n, a = O("wrapper"), o = O("list"), l = O("selector"), f = C({
|
|
181
|
+
appendCount: 0,
|
|
182
|
+
prependCount: 0
|
|
183
|
+
}), p = /* @__PURE__ */ new Map(), h = null, S = null, T = null, E, D, A = () => ({
|
|
184
|
+
...r,
|
|
185
|
+
cycled: r.cycled,
|
|
186
|
+
list: r.list,
|
|
187
|
+
mode: r.mode,
|
|
188
|
+
motion: r.motion,
|
|
189
|
+
selectedIndex: r.selectedIndex
|
|
190
|
+
});
|
|
191
|
+
function j(e) {
|
|
192
|
+
return !!(e && typeof e == "object" && e.disabled);
|
|
193
|
+
}
|
|
194
|
+
function z(e) {
|
|
195
|
+
return r.list.length === 0 || e < 0 ? !1 : j(r.list[e % r.list.length]);
|
|
196
|
+
}
|
|
197
|
+
function B(e) {
|
|
198
|
+
e && (S = e);
|
|
199
|
+
}
|
|
200
|
+
let V = m(new M({
|
|
201
|
+
getContext: () => void 0,
|
|
202
|
+
getContexts: () => ({}),
|
|
203
|
+
getProp: (e) => A()[e],
|
|
204
|
+
getProps: A,
|
|
205
|
+
getState: (e) => f[e],
|
|
206
|
+
getStates: () => f,
|
|
207
|
+
setState: (e, t) => {
|
|
208
|
+
Object.assign(f, e), t && g(t);
|
|
209
|
+
},
|
|
210
|
+
getCache: (e) => p.get(e),
|
|
211
|
+
getCaches: () => p,
|
|
212
|
+
setCache: (e, t) => p.set(e, t),
|
|
213
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
214
|
+
persistEvent: () => void 0,
|
|
215
|
+
setPrependCount: (e) => {
|
|
216
|
+
f.prependCount = e;
|
|
217
|
+
},
|
|
218
|
+
setAppendCount: (e) => {
|
|
219
|
+
f.appendCount = e;
|
|
220
|
+
},
|
|
221
|
+
isDisabledIndex: z,
|
|
222
|
+
setSelectedNode: B,
|
|
223
|
+
notifySelectItem: (e) => i("select", e),
|
|
224
|
+
scrollToCenter: (e, t, n) => Q(e, t, n)
|
|
225
|
+
})), H = c(() => {
|
|
226
|
+
let e = (e) => r.list.map((t, n) => ({
|
|
227
|
+
item: t,
|
|
228
|
+
key: `${e}${n}`,
|
|
229
|
+
sourceIndex: n
|
|
230
|
+
})), t = [];
|
|
231
|
+
for (let n = f.prependCount - 1; n >= 0; --n) t.push(...e(`pre_${n}_`));
|
|
232
|
+
t.push(...e(""));
|
|
233
|
+
for (let n = 0; n < f.appendCount; n += 1) t.push(...e(`app_${n}_`));
|
|
234
|
+
return t;
|
|
235
|
+
});
|
|
236
|
+
function U(e, t) {
|
|
237
|
+
let n = e.text == null ? e.value : e.text;
|
|
238
|
+
if (t !== r.selectedIndex) return n;
|
|
239
|
+
let i = typeof e.transform == "function" ? e.transform : r.transform;
|
|
240
|
+
return typeof i == "function" ? i(e.value, e.text ?? "") : n;
|
|
241
|
+
}
|
|
242
|
+
function W(e, t) {
|
|
243
|
+
return r.list.length > 0 ? e % r.list.length === t % r.list.length : void 0;
|
|
244
|
+
}
|
|
245
|
+
function G(e) {
|
|
246
|
+
return e && o.value ? [...o.value.children].indexOf(e) : -1;
|
|
247
|
+
}
|
|
248
|
+
function K(e) {
|
|
249
|
+
return o.value ? e > -1 ? o.value.children[e] ?? null : [...o.value.children].find((e, t) => !z(t)) ?? null : null;
|
|
250
|
+
}
|
|
251
|
+
function q(e, t, n) {
|
|
252
|
+
if (!e || !n || r.list.length === 0) return e;
|
|
253
|
+
let i = t % r.list.length, a = G(e) + i;
|
|
254
|
+
for (; a < 0;) a += r.list.length;
|
|
255
|
+
return i ? K(a) : e;
|
|
256
|
+
}
|
|
257
|
+
function J(e, t = N.SELECTED) {
|
|
258
|
+
let n = o.value, r = e ?? h;
|
|
259
|
+
!n || !r || ([...n.children].forEach((e) => e.classList.remove(t)), r.classList.add(t));
|
|
260
|
+
}
|
|
261
|
+
function Y(e, t = P.DEFAULT_SCROLL_DURATION) {
|
|
262
|
+
let n = a.value;
|
|
263
|
+
if (n) {
|
|
264
|
+
if (t && r.motion) {
|
|
265
|
+
if (T?.destroy(), n.scrollTop === e) {
|
|
266
|
+
r.mode === "wheel" && o.value && l.value && J(V.getNearestNodeInfo(o.value, l.value).nearestNode);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
T = te(n, e, t), T.on("rest", () => {
|
|
270
|
+
r.mode === "wheel" && o.value && l.value && J(V.getNearestNodeInfo(o.value, l.value).nearestNode);
|
|
271
|
+
}), T.start();
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
n.scrollTop = e;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function X(e, t = P.DEFAULT_SCROLL_DURATION) {
|
|
278
|
+
let n = a.value, r = o.value;
|
|
279
|
+
if (!n || !r || !e) return;
|
|
280
|
+
let i = e.offsetHeight || P.DEFAULT_ITEM_HEIGHT;
|
|
281
|
+
Y((e.offsetTop || r.children.length * i / 2) - (n.offsetHeight - i) / 2, t);
|
|
282
|
+
}
|
|
283
|
+
function Z(e = r.selectedIndex, t = P.DEFAULT_SCROLL_DURATION) {
|
|
284
|
+
h && X(h, t);
|
|
285
|
+
}
|
|
286
|
+
function Q(e = h, t = a.value, n = P.DEFAULT_SCROLL_DURATION) {
|
|
287
|
+
if (!e || !t) return;
|
|
288
|
+
let r = t.getBoundingClientRect(), i = e.getBoundingClientRect();
|
|
289
|
+
Y(t.scrollTop + (i.top - (r.top + r.height / 2 - i.height / 2)), n);
|
|
290
|
+
}
|
|
291
|
+
function ne(e) {
|
|
292
|
+
z(e) || !o.value || V.selectIndex(e, o.value);
|
|
293
|
+
}
|
|
294
|
+
function re(e) {
|
|
295
|
+
!e || !o.value || (h = e, V.selectNode(e, o.value));
|
|
296
|
+
}
|
|
297
|
+
function $(e) {
|
|
298
|
+
D !== void 0 && clearTimeout(D), D = setTimeout(() => re(e), 1e3 / 60 * 2);
|
|
299
|
+
}
|
|
300
|
+
function ie() {
|
|
301
|
+
if (!o.value || !l.value || !a.value) return;
|
|
302
|
+
let e = V.getNearestNodeInfo(o.value, l.value).nearestNode;
|
|
303
|
+
r.cycled && E === void 0 && (E = requestAnimationFrame(() => {
|
|
304
|
+
E = void 0, o.value && a.value && e && V.adjustInfiniteList(o.value, a.value, e);
|
|
305
|
+
})), $(e);
|
|
306
|
+
}
|
|
307
|
+
function ae(e) {
|
|
308
|
+
if (e.stopImmediatePropagation?.(), !o.value) return;
|
|
309
|
+
let t = V.getTargetNode(e, o.value);
|
|
310
|
+
t?.targetNode && t.infoInList && !t.infoInList.disabled && $(t.targetNode);
|
|
311
|
+
}
|
|
312
|
+
function oe() {
|
|
313
|
+
V.init(), h = K(typeof r.selectedIndex == "number" && r.selectedIndex > -1 ? r.selectedIndex : 0), S = h, h && (r.mode === "wheel" && r.cycled && o.value && a.value ? V.initWheelList(o.value, a.value, () => {
|
|
314
|
+
h && X(h, 0);
|
|
315
|
+
}) : X(h, 0));
|
|
316
|
+
}
|
|
317
|
+
return k(() => r.selectedIndex, (e, t) => {
|
|
318
|
+
t !== void 0 && (W(G(S), e) || (S = q(h, e - t, o.value)), h = S, Z(e));
|
|
319
|
+
}, { flush: "post" }), y(() => void g(oe)), ee(() => {
|
|
320
|
+
D !== void 0 && clearTimeout(D), E !== void 0 && cancelAnimationFrame(E), T?.destroy(), V.destroy();
|
|
321
|
+
}), t({
|
|
322
|
+
scrollToCenter: Q,
|
|
323
|
+
scrollToIndex: Z,
|
|
324
|
+
scrollToNode: X,
|
|
325
|
+
scrollToPos: Y
|
|
326
|
+
}), (e, t) => r.mode === "normal" ? (b(), u("div", {
|
|
327
|
+
key: 0,
|
|
328
|
+
ref_key: "wrapper",
|
|
329
|
+
ref: a,
|
|
330
|
+
class: _([
|
|
331
|
+
"semi-scrolllist-item",
|
|
332
|
+
r.className,
|
|
333
|
+
r.class
|
|
334
|
+
]),
|
|
335
|
+
style: v(r.style)
|
|
336
|
+
}, [d("ul", {
|
|
337
|
+
ref: "list",
|
|
338
|
+
role: "listbox",
|
|
339
|
+
"aria-label": r.ariaLabel,
|
|
340
|
+
"aria-multiselectable": !1
|
|
341
|
+
}, [(b(!0), u(s, null, x(r.list, (e, t) => (b(), u("li", {
|
|
342
|
+
key: t,
|
|
343
|
+
class: _([t === r.selectedIndex ? "semi-scrolllist-item-sel" : void 0, e.disabled ? "semi-scrolllist-item-disabled" : void 0]),
|
|
344
|
+
role: "option",
|
|
345
|
+
"aria-disabled": e.disabled,
|
|
346
|
+
onClick: (e) => ne(t)
|
|
347
|
+
}, w(U(e, t)), 11, I))), 128))], 8, F)], 6)) : (b(), u("div", {
|
|
348
|
+
key: 1,
|
|
349
|
+
class: _([
|
|
350
|
+
"semi-scrolllist-item-wheel",
|
|
351
|
+
r.className,
|
|
352
|
+
r.class
|
|
353
|
+
]),
|
|
354
|
+
style: v(r.style)
|
|
355
|
+
}, [
|
|
356
|
+
t[0] ||= d("div", { class: "semi-scrolllist-shade semi-scrolllist-shade-pre" }, null, -1),
|
|
357
|
+
d("div", {
|
|
358
|
+
ref_key: "selector",
|
|
359
|
+
ref: l,
|
|
360
|
+
class: "semi-scrolllist-selector"
|
|
361
|
+
}, null, 512),
|
|
362
|
+
t[1] ||= d("div", { class: "semi-scrolllist-shade semi-scrolllist-shade-post" }, null, -1),
|
|
363
|
+
d("div", {
|
|
364
|
+
ref_key: "wrapper",
|
|
365
|
+
ref: a,
|
|
366
|
+
class: _(["semi-scrolllist-list-outer", r.cycled ? void 0 : "semi-scrolllist-list-outer-nocycle"]),
|
|
367
|
+
onScroll: ie
|
|
368
|
+
}, [d("ul", {
|
|
369
|
+
ref: "list",
|
|
370
|
+
role: "listbox",
|
|
371
|
+
"aria-label": r.ariaLabel,
|
|
372
|
+
"aria-multiselectable": !1,
|
|
373
|
+
onClick: ae
|
|
374
|
+
}, [(b(!0), u(s, null, x(H.value, (e) => (b(), u("li", {
|
|
375
|
+
key: e.key,
|
|
376
|
+
class: _(e.item.disabled ? "semi-scrolllist-item-disabled" : void 0),
|
|
377
|
+
role: "option",
|
|
378
|
+
"aria-disabled": e.item.disabled
|
|
379
|
+
}, w(U(e.item, e.sourceIndex)), 11, R))), 128))], 8, L)], 34)
|
|
380
|
+
], 6));
|
|
381
|
+
}
|
|
382
|
+
}), B = p({
|
|
383
|
+
name: "ScrollListNodeRenderer",
|
|
384
|
+
props: { content: {
|
|
385
|
+
type: null,
|
|
386
|
+
default: void 0
|
|
387
|
+
} },
|
|
388
|
+
setup(e) {
|
|
389
|
+
return () => e.content;
|
|
390
|
+
}
|
|
391
|
+
}), V = ["x-semi-prop"], H = ["x-semi-prop"], U = /* @__PURE__ */ p({
|
|
392
|
+
inheritAttrs: !1,
|
|
393
|
+
__name: "ScrollList",
|
|
394
|
+
props: {
|
|
395
|
+
bodyHeight: {},
|
|
396
|
+
class: { type: [
|
|
397
|
+
Boolean,
|
|
398
|
+
null,
|
|
399
|
+
String,
|
|
400
|
+
Object,
|
|
401
|
+
Array
|
|
402
|
+
] },
|
|
403
|
+
className: { type: [
|
|
404
|
+
Boolean,
|
|
405
|
+
null,
|
|
406
|
+
String,
|
|
407
|
+
Object,
|
|
408
|
+
Array
|
|
409
|
+
] },
|
|
410
|
+
footer: { type: [
|
|
411
|
+
Object,
|
|
412
|
+
String,
|
|
413
|
+
Number,
|
|
414
|
+
Boolean,
|
|
415
|
+
null,
|
|
416
|
+
Array
|
|
417
|
+
] },
|
|
418
|
+
header: { type: [
|
|
419
|
+
Object,
|
|
420
|
+
String,
|
|
421
|
+
Number,
|
|
422
|
+
Boolean,
|
|
423
|
+
null,
|
|
424
|
+
Array
|
|
425
|
+
] },
|
|
426
|
+
prefixCls: {},
|
|
427
|
+
style: { type: [
|
|
428
|
+
Boolean,
|
|
429
|
+
null,
|
|
430
|
+
String,
|
|
431
|
+
Object,
|
|
432
|
+
Array
|
|
433
|
+
] }
|
|
434
|
+
},
|
|
435
|
+
setup(e) {
|
|
436
|
+
let t = e, n = E(), r = D(), i = c(() => t.prefixCls || "semi-scrolllist"), a = c(() => Object.fromEntries(Object.entries(n).filter(([e]) => e.startsWith("data-")))), o = c(() => n["x-semi-header-alias"] ?? "header"), s = c(() => n["x-semi-footer-alias"] ?? "footer"), p = c(() => !!(r.header || t.header)), m = c(() => !!(r.footer || t.footer)), g = c(() => typeof t.bodyHeight == "number" ? `${t.bodyHeight}px` : t.bodyHeight || "");
|
|
437
|
+
return (e, n) => (b(), u("div", h({
|
|
438
|
+
class: [
|
|
439
|
+
i.value,
|
|
440
|
+
t.className,
|
|
441
|
+
t.class
|
|
442
|
+
],
|
|
443
|
+
style: t.style
|
|
444
|
+
}, a.value), [
|
|
445
|
+
p.value ? (b(), u("div", {
|
|
446
|
+
key: 0,
|
|
447
|
+
class: _(`${i.value}-header`)
|
|
448
|
+
}, [d("div", {
|
|
449
|
+
class: _(`${i.value}-header-title`),
|
|
450
|
+
"x-semi-prop": o.value
|
|
451
|
+
}, [S(e.$slots, "header", {}, () => [f(T(B), { content: t.header }, null, 8, ["content"])])], 10, V), d("div", { class: _(`${i.value}-line`) }, null, 2)], 2)) : l("", !0),
|
|
452
|
+
d("div", {
|
|
453
|
+
class: _(`${i.value}-body`),
|
|
454
|
+
style: v({ height: g.value }),
|
|
455
|
+
"x-semi-prop": "children"
|
|
456
|
+
}, [S(e.$slots, "default")], 6),
|
|
457
|
+
m.value ? (b(), u("div", {
|
|
458
|
+
key: 1,
|
|
459
|
+
class: _(`${i.value}-footer`),
|
|
460
|
+
"x-semi-prop": s.value
|
|
461
|
+
}, [S(e.$slots, "footer", {}, () => [f(T(B), { content: t.footer }, null, 8, ["content"])])], 10, H)) : l("", !0)
|
|
462
|
+
], 16));
|
|
463
|
+
}
|
|
464
|
+
}), W = ["normal", "wheel"], G = z, K = Object.assign(U, { Item: G });
|
|
465
|
+
//#endregion
|
|
466
|
+
export { K as n, W as r, G as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SelectExposed, SelectProps, SelectSlots } from './types';
|
|
2
|
+
type __VLS_Slots = SelectSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<SelectProps, SelectExposed, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
clear: () => any;
|
|
5
|
+
search: (value: string, event?: Event | undefined) => any;
|
|
6
|
+
select: (value: import('./types').SelectPrimitive | undefined, option: import('./types').SelectOptionProps) => any;
|
|
7
|
+
blur: (event: FocusEvent) => any;
|
|
8
|
+
change: (value: import('./types').SelectModelValue) => any;
|
|
9
|
+
focus: (event: FocusEvent) => any;
|
|
10
|
+
"update:modelValue": (value: import('./types').SelectModelValue) => any;
|
|
11
|
+
"update:value": (value: import('./types').SelectModelValue) => any;
|
|
12
|
+
create: (option: import('./types').SelectOptionProps) => any;
|
|
13
|
+
deselect: (value: import('./types').SelectPrimitive | undefined, option: import('./types').SelectOptionProps) => any;
|
|
14
|
+
dropdownVisibleChange: (visible: boolean) => any;
|
|
15
|
+
exceed: (option: import('./types').SelectOptionProps) => any;
|
|
16
|
+
listScroll: (event: Event) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
|
|
18
|
+
onClear?: () => any;
|
|
19
|
+
onSearch?: (value: string, event?: Event | undefined) => any;
|
|
20
|
+
onSelect?: (value: import('./types').SelectPrimitive | undefined, option: import('./types').SelectOptionProps) => any;
|
|
21
|
+
onBlur?: (event: FocusEvent) => any;
|
|
22
|
+
onChange?: (value: import('./types').SelectModelValue) => any;
|
|
23
|
+
onFocus?: (event: FocusEvent) => any;
|
|
24
|
+
"onUpdate:modelValue"?: (value: import('./types').SelectModelValue) => any;
|
|
25
|
+
"onUpdate:value"?: (value: import('./types').SelectModelValue) => any;
|
|
26
|
+
onCreate?: (option: import('./types').SelectOptionProps) => any;
|
|
27
|
+
onDeselect?: (value: import('./types').SelectPrimitive | undefined, option: import('./types').SelectOptionProps) => any;
|
|
28
|
+
onDropdownVisibleChange?: (visible: boolean) => any;
|
|
29
|
+
onExceed?: (option: import('./types').SelectOptionProps) => any;
|
|
30
|
+
onListScroll?: (event: Event) => any;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
content: {
|
|
9
|
+
type: PropType<VNodeChild>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
content: VNodeChild;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
collect: {
|
|
4
|
+
type: PropType<(nodes: VNodeChild) => void>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
collect: {
|
|
9
|
+
type: PropType<(nodes: VNodeChild) => void>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|