@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,57 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
export declare const RATING_SIZES: readonly ["small", "default"];
|
|
3
|
+
export type RatingPresetSize = (typeof RATING_SIZES)[number];
|
|
4
|
+
export type RatingSize = RatingPresetSize | number;
|
|
5
|
+
export interface RatingProps {
|
|
6
|
+
ariaDescribedby?: string;
|
|
7
|
+
ariaErrormessage?: string;
|
|
8
|
+
ariaInvalid?: boolean;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
ariaLabelledby?: string;
|
|
11
|
+
ariaRequired?: boolean;
|
|
12
|
+
allowClear?: boolean;
|
|
13
|
+
allowHalf?: boolean;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
character?: VNodeChild;
|
|
16
|
+
className?: HTMLAttributes['class'];
|
|
17
|
+
count?: number;
|
|
18
|
+
defaultValue?: number;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
id?: string;
|
|
21
|
+
modelValue?: number | undefined;
|
|
22
|
+
prefixCls?: string;
|
|
23
|
+
preventScroll?: boolean;
|
|
24
|
+
size?: RatingSize;
|
|
25
|
+
style?: StyleValue;
|
|
26
|
+
tabIndex?: number;
|
|
27
|
+
tooltips?: string[];
|
|
28
|
+
value?: number | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface RatingEmits {
|
|
31
|
+
blur: [event: FocusEvent];
|
|
32
|
+
change: [value: number];
|
|
33
|
+
click: [event: MouseEvent | KeyboardEvent, index: number];
|
|
34
|
+
focus: [event: FocusEvent];
|
|
35
|
+
hoverChange: [value: number | undefined];
|
|
36
|
+
keyDown: [event: KeyboardEvent];
|
|
37
|
+
'update:modelValue': [value: number];
|
|
38
|
+
'update:value': [value: number];
|
|
39
|
+
}
|
|
40
|
+
export interface RatingSlots {
|
|
41
|
+
character?: () => VNodeChild;
|
|
42
|
+
}
|
|
43
|
+
export interface RatingExposed {
|
|
44
|
+
focus(): void;
|
|
45
|
+
blur(): void;
|
|
46
|
+
}
|
|
47
|
+
export interface RatingState {
|
|
48
|
+
value: number;
|
|
49
|
+
hoverValue: number | undefined;
|
|
50
|
+
focused: boolean;
|
|
51
|
+
clearedValue: number | null;
|
|
52
|
+
emptyStarFocusVisible: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface RatingItemState {
|
|
55
|
+
firstStarFocus: boolean;
|
|
56
|
+
secondStarFocus: boolean;
|
|
57
|
+
}
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { t as e } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t } from "./warning-naSiE8G7.js";
|
|
4
|
+
import { t as n } from "./Tooltip-Bq7HZwnS.js";
|
|
5
|
+
import { t as r } from "./config-context-CyynTtDb.js";
|
|
6
|
+
import { Fragment as i, cloneVNode as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, inject as m, isVNode as h, markRaw as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as ee, openBlock as x, reactive as S, renderList as C, unref as w, useAttrs as T, useSlots as E, useTemplateRef as D, watch as O, withCtx as k } from "vue";
|
|
7
|
+
import { IconStar as A } from "@aifuxi/semi-icons-vue";
|
|
8
|
+
//#region bundled-foundation
|
|
9
|
+
var j = class n extends e {
|
|
10
|
+
constructor(e) {
|
|
11
|
+
super({
|
|
12
|
+
...n.defaultAdapter,
|
|
13
|
+
...e
|
|
14
|
+
}), this.handleStarFocusVisible = (e) => {
|
|
15
|
+
let { target: n } = e, { count: r } = this.getProps();
|
|
16
|
+
try {
|
|
17
|
+
n.matches(":focus-visible") && this._adapter.setEmptyStarFocusVisible(!0);
|
|
18
|
+
} catch {
|
|
19
|
+
t(!0, "Warning: [Semi Rating] The current browser does not support the focus-visible");
|
|
20
|
+
}
|
|
21
|
+
}, this.handleStarBlur = (e) => {
|
|
22
|
+
let { emptyStarFocusVisible: t } = this.getStates();
|
|
23
|
+
t && this._adapter.setEmptyStarFocusVisible(!1);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
init() {
|
|
27
|
+
let { autoFocus: e, disabled: t } = this.getProps();
|
|
28
|
+
e && !t && this._adapter.focus();
|
|
29
|
+
}
|
|
30
|
+
_getScroll(e, t) {
|
|
31
|
+
let n = t ? e.pageYOffset : e.pageXOffset, r = t ? "scrollTop" : "scrollLeft";
|
|
32
|
+
if (typeof n != "number") {
|
|
33
|
+
let t = e.document;
|
|
34
|
+
n = t.documentElement[r], typeof n != "number" && (n = t.body[r]);
|
|
35
|
+
}
|
|
36
|
+
return n;
|
|
37
|
+
}
|
|
38
|
+
_getClientPosition(e) {
|
|
39
|
+
let t, n, r = e.ownerDocument, { body: i } = r, a = r && r.documentElement, o = e.getBoundingClientRect();
|
|
40
|
+
return t = o.left, n = o.top, t -= a.clientLeft || i.clientLeft || 0, n -= a.clientTop || i.clientTop || 0, {
|
|
41
|
+
left: t,
|
|
42
|
+
top: n
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
_getOffsetLeft(e) {
|
|
46
|
+
let t = this._getClientPosition(e), n = e.ownerDocument, r = n.defaultView || n.parentWindow;
|
|
47
|
+
return t.left += this._getScroll(r), t.left;
|
|
48
|
+
}
|
|
49
|
+
getStarValue(e, t) {
|
|
50
|
+
let { allowHalf: n } = this.getProps(), r = this._adapter.getContext("direction") === "rtl", i = e + 1;
|
|
51
|
+
if (n) {
|
|
52
|
+
let n = this._adapter.getStarDOM(e), a = this._getOffsetLeft(n), o = n.clientWidth;
|
|
53
|
+
(r && t - a > o / 2 || !r && t - a < o / 2) && (i -= .5);
|
|
54
|
+
}
|
|
55
|
+
return i;
|
|
56
|
+
}
|
|
57
|
+
handleHover(e, t) {
|
|
58
|
+
let n = this.getStarValue(t, e.pageX), { clearedValue: r, hoverValue: i } = this.getStates();
|
|
59
|
+
n !== i && n !== r && this._adapter.notifyHoverChange(n, null);
|
|
60
|
+
}
|
|
61
|
+
handleMouseLeave() {
|
|
62
|
+
this._adapter.notifyHoverChange(void 0, null);
|
|
63
|
+
}
|
|
64
|
+
handleClick(e, t) {
|
|
65
|
+
let { allowClear: n } = this.getProps(), { value: r } = this.getStates(), i = this.getStarValue(t, e.pageX), a = n ? i === r : !1;
|
|
66
|
+
this._adapter.updateValue(a ? 0 : i), a ? this._adapter.notifyHoverChange(void 0, i) : this._adapter.clearValue(null);
|
|
67
|
+
}
|
|
68
|
+
handleFocus(e) {
|
|
69
|
+
this._adapter.notifyFocus(e);
|
|
70
|
+
}
|
|
71
|
+
handleBlur(e) {
|
|
72
|
+
this._adapter.notifyBlur(e);
|
|
73
|
+
}
|
|
74
|
+
handleKeyDown(e, t) {
|
|
75
|
+
let { key: n } = e, { count: r, allowHalf: i } = this.getProps(), a = this._adapter.getContext("direction") === "rtl", o = i ? .5 : 1, s, c;
|
|
76
|
+
n === "ArrowRight" || n === "ArrowUp" ? s = t + (a ? -o : o) : (n === "ArrowLeft" || n === "ArrowDown") && (s = t + (a ? o : -o)), c = s > r ? 0 : s < 0 ? r : s, [
|
|
77
|
+
"ArrowRight",
|
|
78
|
+
"ArrowUp",
|
|
79
|
+
"ArrowLeft",
|
|
80
|
+
"ArrowDown"
|
|
81
|
+
].includes(n) && (this._adapter.notifyKeyDown(e), this._adapter.updateValue(c), this.changeFocusStar(c, e), e.preventDefault(), this._adapter.notifyHoverChange(void 0, null));
|
|
82
|
+
}
|
|
83
|
+
changeFocusStar(e, t) {
|
|
84
|
+
let { count: n, allowHalf: r, preventScroll: i, tooltips: a } = this.getProps(), o = Math.ceil(e) - 1, s = [...t.currentTarget.childNodes].map((e) => a ? e.childNodes[0].childNodes[0].childNodes : e.childNodes[0].childNodes);
|
|
85
|
+
o < 0 ? s[n][0].focus({ preventScroll: i }) : s[o][r ? e * 10 % 10 == 5 ? 0 : 1 : 0].focus({ preventScroll: i });
|
|
86
|
+
}
|
|
87
|
+
}, M = class n extends e {
|
|
88
|
+
constructor(e) {
|
|
89
|
+
super({
|
|
90
|
+
...n.defaultAdapter,
|
|
91
|
+
...e
|
|
92
|
+
}), this.handleFocusVisible = (e, n) => {
|
|
93
|
+
let { target: r } = e;
|
|
94
|
+
try {
|
|
95
|
+
r.matches(":focus-visible") && (n === "first" ? this._adapter.setFirstStarFocus(!0) : this._adapter.setSecondStarFocus(!0));
|
|
96
|
+
} catch {
|
|
97
|
+
t(!0, "Warning: [Semi Rating] The current browser does not support the focus-visible");
|
|
98
|
+
}
|
|
99
|
+
}, this.handleBlur = (e, t) => {
|
|
100
|
+
let { firstStarFocus: n, secondStarFocus: r } = this.getStates();
|
|
101
|
+
t === "first" ? n && this._adapter.setFirstStarFocus(!1) : r && this._adapter.setSecondStarFocus(!1);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}, N = f({
|
|
105
|
+
name: "RatingNodeRenderer",
|
|
106
|
+
props: { content: {
|
|
107
|
+
type: null,
|
|
108
|
+
default: void 0
|
|
109
|
+
} },
|
|
110
|
+
setup: (e) => () => h(e.content) ? a(e.content) : e.content
|
|
111
|
+
}), P = [
|
|
112
|
+
"aria-checked",
|
|
113
|
+
"aria-posinset",
|
|
114
|
+
"aria-setsize",
|
|
115
|
+
"aria-disabled",
|
|
116
|
+
"aria-label",
|
|
117
|
+
"aria-labelledby",
|
|
118
|
+
"aria-describedby",
|
|
119
|
+
"tabindex"
|
|
120
|
+
], F = [
|
|
121
|
+
"aria-checked",
|
|
122
|
+
"aria-posinset",
|
|
123
|
+
"aria-setsize",
|
|
124
|
+
"aria-disabled",
|
|
125
|
+
"aria-label",
|
|
126
|
+
"aria-labelledby",
|
|
127
|
+
"aria-describedby",
|
|
128
|
+
"tabindex"
|
|
129
|
+
], I = /* @__PURE__ */ f({
|
|
130
|
+
__name: "RatingItem",
|
|
131
|
+
props: {
|
|
132
|
+
allowHalf: { type: Boolean },
|
|
133
|
+
describedby: {},
|
|
134
|
+
labelPrefix: {},
|
|
135
|
+
character: { type: [
|
|
136
|
+
Object,
|
|
137
|
+
String,
|
|
138
|
+
Number,
|
|
139
|
+
Boolean,
|
|
140
|
+
null,
|
|
141
|
+
Array
|
|
142
|
+
] },
|
|
143
|
+
count: {},
|
|
144
|
+
disabled: { type: Boolean },
|
|
145
|
+
focused: { type: Boolean },
|
|
146
|
+
index: {},
|
|
147
|
+
prefixCls: {},
|
|
148
|
+
preventScroll: { type: Boolean },
|
|
149
|
+
size: {},
|
|
150
|
+
value: {}
|
|
151
|
+
},
|
|
152
|
+
emits: [
|
|
153
|
+
"blur",
|
|
154
|
+
"click",
|
|
155
|
+
"focus",
|
|
156
|
+
"hover"
|
|
157
|
+
],
|
|
158
|
+
setup(e, { expose: t, emit: n }) {
|
|
159
|
+
let r = e, i = n, a = D("root"), d = D("firstStar"), f = D("secondStar"), p = S({
|
|
160
|
+
firstStarFocus: !1,
|
|
161
|
+
secondStarFocus: !1
|
|
162
|
+
}), m = /* @__PURE__ */ new Map(), h = o(() => r.index + 1), _ = o(() => h.value - r.value), C = o(() => r.allowHalf && _.value < 1 && _.value > 0), T = o(() => `${(1 - _.value) * 100}%`), E = o(() => h.value <= r.value), O = o(() => r.index === r.count), k = o(() => typeof r.size == "number"), j = o(() => k.value ? {
|
|
163
|
+
width: `${r.size}px`,
|
|
164
|
+
height: `${r.size}px`,
|
|
165
|
+
fontSize: `${r.size}px`
|
|
166
|
+
} : void 0), I = o(() => [
|
|
167
|
+
r.prefixCls,
|
|
168
|
+
C.value ? `${r.prefixCls}-half` : void 0,
|
|
169
|
+
E.value ? `${r.prefixCls}-full` : void 0,
|
|
170
|
+
k.value ? void 0 : `${r.prefixCls}-${r.size}`
|
|
171
|
+
]), L = o(() => [
|
|
172
|
+
`${r.prefixCls}-wrapper`,
|
|
173
|
+
r.disabled ? `${r.prefixCls}-disabled` : void 0,
|
|
174
|
+
(p.firstStarFocus || p.secondStarFocus) && r.value !== 0 ? `${r.prefixCls.replace(/-star$/, "")}-focus` : void 0
|
|
175
|
+
]), R = o(() => r.allowHalf ? r.count * 2 + 1 : r.count + 1), z = o(() => !r.disabled && (r.value === r.index + 1 || O.value && r.value === 0) ? 0 : -1), B = g(new M({
|
|
176
|
+
getContext: () => void 0,
|
|
177
|
+
getContexts: () => void 0,
|
|
178
|
+
getProp: (e) => r[e],
|
|
179
|
+
getProps: () => r,
|
|
180
|
+
getState: (e) => p[e],
|
|
181
|
+
getStates: () => p,
|
|
182
|
+
setState: (e, t) => {
|
|
183
|
+
Object.assign(p, e), t?.();
|
|
184
|
+
},
|
|
185
|
+
getCache: (e) => m.get(e),
|
|
186
|
+
getCaches: () => m,
|
|
187
|
+
setCache: (e, t) => m.set(String(e), t),
|
|
188
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
189
|
+
persistEvent: () => void 0,
|
|
190
|
+
setFirstStarFocus: (e) => {
|
|
191
|
+
p.firstStarFocus = e;
|
|
192
|
+
},
|
|
193
|
+
setSecondStarFocus: (e) => {
|
|
194
|
+
p.secondStarFocus = e;
|
|
195
|
+
}
|
|
196
|
+
}));
|
|
197
|
+
function V(e, t) {
|
|
198
|
+
i("focus", e), B.handleFocusVisible(e, t);
|
|
199
|
+
}
|
|
200
|
+
function H(e, t) {
|
|
201
|
+
i("blur", e), B.handleBlur(e, t);
|
|
202
|
+
}
|
|
203
|
+
function U(e) {
|
|
204
|
+
(e.key === "Enter" || e.keyCode === 13) && i("click", e, r.index);
|
|
205
|
+
}
|
|
206
|
+
function W() {
|
|
207
|
+
(r.value - r.index === .5 ? d.value : f.value)?.focus({ preventScroll: r.preventScroll });
|
|
208
|
+
}
|
|
209
|
+
return ee(() => B.init()), b(() => B.destroy()), t({
|
|
210
|
+
getDomNode: () => a.value,
|
|
211
|
+
starFocus: W
|
|
212
|
+
}), (e, t) => (x(), l("li", {
|
|
213
|
+
ref_key: "root",
|
|
214
|
+
ref: a,
|
|
215
|
+
class: v(I.value),
|
|
216
|
+
style: y(j.value)
|
|
217
|
+
}, [u("div", {
|
|
218
|
+
class: v(L.value),
|
|
219
|
+
onClick: t[4] ||= (e) => !r.disabled && i("click", e, r.index),
|
|
220
|
+
onKeydown: t[5] ||= (e) => !r.disabled && U(e),
|
|
221
|
+
onMousemove: t[6] ||= (e) => !r.disabled && i("hover", e, r.index)
|
|
222
|
+
}, [r.allowHalf && !O.value ? (x(), l("div", {
|
|
223
|
+
key: 0,
|
|
224
|
+
ref_key: "firstStar",
|
|
225
|
+
ref: d,
|
|
226
|
+
role: "radio",
|
|
227
|
+
"aria-checked": r.value === r.index + .5,
|
|
228
|
+
"aria-posinset": 2 * r.index + 1,
|
|
229
|
+
"aria-setsize": R.value,
|
|
230
|
+
"aria-disabled": r.disabled,
|
|
231
|
+
"aria-label": `${r.index + .5} ${r.labelPrefix}s`,
|
|
232
|
+
"aria-labelledby": r.describedby,
|
|
233
|
+
"aria-describedby": r.describedby,
|
|
234
|
+
class: v([`${r.prefixCls}-first`, `${r.prefixCls.replace(/-star$/, "")}-no-focus`]),
|
|
235
|
+
style: y({ width: T.value }),
|
|
236
|
+
tabindex: !r.disabled && r.value === r.index + .5 ? 0 : -1,
|
|
237
|
+
onFocus: t[0] ||= (e) => V(e, "first"),
|
|
238
|
+
onBlur: t[1] ||= (e) => H(e, "first")
|
|
239
|
+
}, [r.character === void 0 ? (x(), s(w(A), {
|
|
240
|
+
key: 1,
|
|
241
|
+
size: k.value ? "inherit" : r.size === "small" ? "default" : "extra-large",
|
|
242
|
+
style: { display: "block" }
|
|
243
|
+
}, null, 8, ["size"])) : (x(), s(w(N), {
|
|
244
|
+
key: 0,
|
|
245
|
+
content: r.character
|
|
246
|
+
}, null, 8, ["content"]))], 46, P)) : c("", !0), u("div", {
|
|
247
|
+
ref_key: "secondStar",
|
|
248
|
+
ref: f,
|
|
249
|
+
role: "radio",
|
|
250
|
+
"aria-checked": O.value ? r.value === 0 : r.value === r.index + 1,
|
|
251
|
+
"aria-posinset": r.allowHalf ? 2 * (r.index + 1) : r.index + 1,
|
|
252
|
+
"aria-setsize": R.value,
|
|
253
|
+
"aria-disabled": r.disabled,
|
|
254
|
+
"aria-label": `${O.value ? 0 : r.index + 1} ${r.labelPrefix}${r.index === 0 ? "" : "s"}`,
|
|
255
|
+
"aria-labelledby": r.describedby,
|
|
256
|
+
"aria-describedby": r.describedby,
|
|
257
|
+
class: v([`${r.prefixCls}-second`, `${r.prefixCls.replace(/-star$/, "")}-no-focus`]),
|
|
258
|
+
tabindex: z.value,
|
|
259
|
+
"x-semi-prop": "character",
|
|
260
|
+
onFocus: t[2] ||= (e) => V(e, "second"),
|
|
261
|
+
onBlur: t[3] ||= (e) => H(e, "second")
|
|
262
|
+
}, [r.character === void 0 ? (x(), s(w(A), {
|
|
263
|
+
key: 1,
|
|
264
|
+
size: k.value ? "inherit" : r.size === "small" ? "default" : "extra-large",
|
|
265
|
+
style: { display: "block" }
|
|
266
|
+
}, null, 8, ["size"])) : (x(), s(w(N), {
|
|
267
|
+
key: 0,
|
|
268
|
+
content: r.character
|
|
269
|
+
}, null, 8, ["content"]))], 42, F)], 34)], 6));
|
|
270
|
+
}
|
|
271
|
+
}), L = [
|
|
272
|
+
"id",
|
|
273
|
+
"aria-label",
|
|
274
|
+
"aria-labelledby",
|
|
275
|
+
"aria-describedby",
|
|
276
|
+
"tabindex"
|
|
277
|
+
], R = /* @__PURE__ */ f({
|
|
278
|
+
name: "Rating",
|
|
279
|
+
inheritAttrs: !1,
|
|
280
|
+
__name: "Rating",
|
|
281
|
+
props: {
|
|
282
|
+
ariaDescribedby: {},
|
|
283
|
+
ariaErrormessage: {},
|
|
284
|
+
ariaInvalid: { type: Boolean },
|
|
285
|
+
ariaLabel: {},
|
|
286
|
+
ariaLabelledby: {},
|
|
287
|
+
ariaRequired: { type: Boolean },
|
|
288
|
+
allowClear: {
|
|
289
|
+
type: Boolean,
|
|
290
|
+
default: !0
|
|
291
|
+
},
|
|
292
|
+
allowHalf: {
|
|
293
|
+
type: Boolean,
|
|
294
|
+
default: !1
|
|
295
|
+
},
|
|
296
|
+
autoFocus: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: !1
|
|
299
|
+
},
|
|
300
|
+
character: { type: [
|
|
301
|
+
Object,
|
|
302
|
+
String,
|
|
303
|
+
Number,
|
|
304
|
+
Boolean,
|
|
305
|
+
null,
|
|
306
|
+
Array
|
|
307
|
+
] },
|
|
308
|
+
className: { type: [
|
|
309
|
+
Boolean,
|
|
310
|
+
null,
|
|
311
|
+
String,
|
|
312
|
+
Object,
|
|
313
|
+
Array
|
|
314
|
+
] },
|
|
315
|
+
count: { default: 5 },
|
|
316
|
+
defaultValue: { default: 0 },
|
|
317
|
+
disabled: {
|
|
318
|
+
type: Boolean,
|
|
319
|
+
default: !1
|
|
320
|
+
},
|
|
321
|
+
id: {},
|
|
322
|
+
modelValue: {},
|
|
323
|
+
prefixCls: { default: "semi-rating" },
|
|
324
|
+
preventScroll: { type: Boolean },
|
|
325
|
+
size: { default: "default" },
|
|
326
|
+
style: { type: [
|
|
327
|
+
Boolean,
|
|
328
|
+
null,
|
|
329
|
+
String,
|
|
330
|
+
Object,
|
|
331
|
+
Array
|
|
332
|
+
] },
|
|
333
|
+
tabIndex: { default: -1 },
|
|
334
|
+
tooltips: {},
|
|
335
|
+
value: {}
|
|
336
|
+
},
|
|
337
|
+
emits: [
|
|
338
|
+
"blur",
|
|
339
|
+
"change",
|
|
340
|
+
"click",
|
|
341
|
+
"focus",
|
|
342
|
+
"hoverChange",
|
|
343
|
+
"keyDown",
|
|
344
|
+
"update:modelValue",
|
|
345
|
+
"update:value"
|
|
346
|
+
],
|
|
347
|
+
setup(e, { expose: t, emit: a }) {
|
|
348
|
+
let c = e, f = a, h = T(), y = E(), A = p(), M = D("root"), N = m(r, void 0), P = o(() => N ? N.value : {
|
|
349
|
+
direction: "ltr",
|
|
350
|
+
getPopupContainer: void 0
|
|
351
|
+
});
|
|
352
|
+
function F(e) {
|
|
353
|
+
let t = A?.vnode.props, n = e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
354
|
+
return !!(t && (Object.prototype.hasOwnProperty.call(t, e) || Object.prototype.hasOwnProperty.call(t, n)));
|
|
355
|
+
}
|
|
356
|
+
let R = o(() => F("modelValue")), z = o(() => F("value")), B = o(() => R.value || z.value), V = o(() => R.value ? c.modelValue : z.value ? c.value : void 0), H = V.value === void 0 ? c.defaultValue : V.value, U = S({
|
|
357
|
+
value: H,
|
|
358
|
+
hoverValue: void 0,
|
|
359
|
+
focused: !1,
|
|
360
|
+
clearedValue: null,
|
|
361
|
+
emptyStarFocusVisible: !1
|
|
362
|
+
}), W = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), K = (e) => (t) => {
|
|
363
|
+
t && "$el" in t ? G.set(e, t) : G.delete(e);
|
|
364
|
+
}, q = o(() => {
|
|
365
|
+
let e = y.character?.();
|
|
366
|
+
return e?.length ? e : c.character || void 0;
|
|
367
|
+
}), J = o(() => c.ariaDescribedby ?? h["aria-describedby"]), te = o(() => c.ariaLabelledby ?? h["aria-labelledby"]), Y = o(() => (c.ariaLabel ?? h["aria-label"]) || (typeof c.character == "string" ? c.character : "star")), ne = o(() => `Rating: ${U.value} of ${c.count} ${Y.value}${U.value === 1 ? "" : "s"},`), X = o(() => U.hoverValue === void 0 ? U.value : U.hoverValue), re = o(() => [
|
|
368
|
+
h.class,
|
|
369
|
+
c.className,
|
|
370
|
+
c.prefixCls,
|
|
371
|
+
c.disabled ? `${c.prefixCls}-disabled` : void 0,
|
|
372
|
+
U.emptyStarFocusVisible ? `${c.prefixCls}-focus` : void 0
|
|
373
|
+
]), ie = o(() => Object.fromEntries(Object.entries(h).filter(([e]) => e.startsWith("data-"))));
|
|
374
|
+
function Z() {
|
|
375
|
+
return c;
|
|
376
|
+
}
|
|
377
|
+
let Q = {
|
|
378
|
+
getContext: (e) => e === "direction" ? P.value.direction : void 0,
|
|
379
|
+
getContexts: () => ({ direction: P.value.direction }),
|
|
380
|
+
getProp: (e) => Z()[e],
|
|
381
|
+
getProps: Z,
|
|
382
|
+
getState: (e) => U[e],
|
|
383
|
+
getStates: () => U,
|
|
384
|
+
setState: (e, t) => {
|
|
385
|
+
Object.assign(U, e), t?.();
|
|
386
|
+
},
|
|
387
|
+
getCache: (e) => W.get(e),
|
|
388
|
+
getCaches: () => W,
|
|
389
|
+
setCache: (e, t) => W.set(String(e), t),
|
|
390
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
391
|
+
persistEvent: () => void 0,
|
|
392
|
+
focus: () => {
|
|
393
|
+
if (c.disabled) return;
|
|
394
|
+
let e = Math.ceil(U.value) - 1;
|
|
395
|
+
G.get(e < 0 ? c.count : e)?.starFocus();
|
|
396
|
+
},
|
|
397
|
+
getStarDOM: (e) => G.get(e)?.getDomNode() ?? M.value,
|
|
398
|
+
notifyHoverChange: (e, t) => {
|
|
399
|
+
U.hoverValue = e, U.clearedValue = t, f("hoverChange", e);
|
|
400
|
+
},
|
|
401
|
+
updateValue: (e) => {
|
|
402
|
+
B.value || (U.value = e), f("change", e), f("update:modelValue", e), f("update:value", e);
|
|
403
|
+
},
|
|
404
|
+
clearValue: (e) => {
|
|
405
|
+
U.clearedValue = e;
|
|
406
|
+
},
|
|
407
|
+
notifyFocus: (e) => {
|
|
408
|
+
U.focused = !0, f("focus", e);
|
|
409
|
+
},
|
|
410
|
+
notifyBlur: (e) => {
|
|
411
|
+
U.focused = !1, f("blur", e);
|
|
412
|
+
},
|
|
413
|
+
notifyKeyDown: (e) => {
|
|
414
|
+
U.focused = !1, f("keyDown", e);
|
|
415
|
+
},
|
|
416
|
+
setEmptyStarFocusVisible: (e) => {
|
|
417
|
+
U.emptyStarFocusVisible = e;
|
|
418
|
+
}
|
|
419
|
+
}, $ = g(new j(Q));
|
|
420
|
+
function ae(e, t) {
|
|
421
|
+
!c.disabled && e === c.count && $.handleStarFocusVisible(t);
|
|
422
|
+
}
|
|
423
|
+
function oe(e, t) {
|
|
424
|
+
!c.disabled && e === c.count && $.handleStarBlur(t);
|
|
425
|
+
}
|
|
426
|
+
function se(e) {
|
|
427
|
+
let t = Math.ceil(e) - 1, n = G.get(t < 0 ? c.count : t)?.getDomNode(), r = t < 0 ? `.${c.prefixCls}-star-second` : c.allowHalf && e * 10 % 10 == 5 ? `.${c.prefixCls}-star-first` : `.${c.prefixCls}-star-second`;
|
|
428
|
+
n?.querySelector(r)?.focus({ preventScroll: c.preventScroll });
|
|
429
|
+
}
|
|
430
|
+
function ce(e) {
|
|
431
|
+
let t = c.allowHalf ? .5 : 1, n = P.value.direction === "rtl", r;
|
|
432
|
+
if (e.key === "ArrowRight" || e.key === "ArrowUp" ? r = U.value + (n ? -t : t) : (e.key === "ArrowLeft" || e.key === "ArrowDown") && (r = U.value + (n ? t : -t)), r === void 0) return;
|
|
433
|
+
let i = r > c.count ? 0 : r < 0 ? c.count : r;
|
|
434
|
+
Q.notifyKeyDown(e), Q.updateValue(i), se(i), e.preventDefault(), Q.notifyHoverChange(void 0, null);
|
|
435
|
+
}
|
|
436
|
+
function le() {
|
|
437
|
+
c.disabled || M.value?.focus({ preventScroll: c.preventScroll });
|
|
438
|
+
}
|
|
439
|
+
function ue() {
|
|
440
|
+
c.disabled || M.value?.blur();
|
|
441
|
+
}
|
|
442
|
+
return O(V, (e) => {
|
|
443
|
+
B.value && e !== void 0 && (U.value = e);
|
|
444
|
+
}), ee(() => $.init()), b(() => $.destroy()), t({
|
|
445
|
+
focus: le,
|
|
446
|
+
blur: ue
|
|
447
|
+
}), (e, t) => (x(), l("ul", _(ie.value, {
|
|
448
|
+
id: c.id,
|
|
449
|
+
ref_key: "root",
|
|
450
|
+
ref: M,
|
|
451
|
+
"aria-label": ne.value,
|
|
452
|
+
"aria-labelledby": te.value,
|
|
453
|
+
"aria-describedby": J.value,
|
|
454
|
+
class: re.value,
|
|
455
|
+
style: c.style,
|
|
456
|
+
tabindex: c.disabled ? -1 : c.tabIndex,
|
|
457
|
+
onMouseleave: t[4] ||= (e) => !c.disabled && w($).handleMouseLeave(),
|
|
458
|
+
onFocusin: t[5] ||= (e) => !c.disabled && w($).handleFocus(e),
|
|
459
|
+
onFocusout: t[6] ||= (e) => !c.disabled && w($).handleBlur(e),
|
|
460
|
+
onKeydown: t[7] ||= (e) => !c.disabled && ce(e)
|
|
461
|
+
}), [(x(!0), l(i, null, C(c.count + 1, (e) => (x(), l(i, { key: e - 1 }, [c.tooltips ? (x(), s(n, {
|
|
462
|
+
key: 0,
|
|
463
|
+
visible: U.hoverValue !== void 0 && U.hoverValue - 1 == e - 1,
|
|
464
|
+
trigger: "custom",
|
|
465
|
+
content: c.tooltips[e - 1] ?? ""
|
|
466
|
+
}, {
|
|
467
|
+
default: k(() => [u("span", { class: v(`${c.prefixCls}-star-outer`) }, [d(I, {
|
|
468
|
+
ref_for: !0,
|
|
469
|
+
ref: K(e - 1),
|
|
470
|
+
"allow-half": c.allowHalf,
|
|
471
|
+
describedby: J.value,
|
|
472
|
+
"label-prefix": Y.value,
|
|
473
|
+
character: q.value,
|
|
474
|
+
count: c.count,
|
|
475
|
+
disabled: c.disabled,
|
|
476
|
+
focused: U.focused,
|
|
477
|
+
index: e - 1,
|
|
478
|
+
"prefix-cls": `${c.prefixCls}-star`,
|
|
479
|
+
"prevent-scroll": c.preventScroll,
|
|
480
|
+
size: e - 1 === c.count ? 0 : c.size,
|
|
481
|
+
value: X.value,
|
|
482
|
+
onClick: t[0] ||= (e, t) => w($).handleClick(e, t),
|
|
483
|
+
onHover: t[1] ||= (e, t) => w($).handleHover(e, t),
|
|
484
|
+
onFocus: (t) => ae(e - 1, t),
|
|
485
|
+
onBlur: (t) => oe(e - 1, t)
|
|
486
|
+
}, null, 8, [
|
|
487
|
+
"allow-half",
|
|
488
|
+
"describedby",
|
|
489
|
+
"label-prefix",
|
|
490
|
+
"character",
|
|
491
|
+
"count",
|
|
492
|
+
"disabled",
|
|
493
|
+
"focused",
|
|
494
|
+
"index",
|
|
495
|
+
"prefix-cls",
|
|
496
|
+
"prevent-scroll",
|
|
497
|
+
"size",
|
|
498
|
+
"value",
|
|
499
|
+
"onFocus",
|
|
500
|
+
"onBlur"
|
|
501
|
+
])], 2)]),
|
|
502
|
+
_: 2
|
|
503
|
+
}, 1032, ["visible", "content"])) : (x(), s(I, {
|
|
504
|
+
key: 1,
|
|
505
|
+
ref_for: !0,
|
|
506
|
+
ref: K(e - 1),
|
|
507
|
+
"allow-half": c.allowHalf,
|
|
508
|
+
describedby: J.value,
|
|
509
|
+
"label-prefix": Y.value,
|
|
510
|
+
character: q.value,
|
|
511
|
+
count: c.count,
|
|
512
|
+
disabled: c.disabled,
|
|
513
|
+
focused: U.focused,
|
|
514
|
+
index: e - 1,
|
|
515
|
+
"prefix-cls": `${c.prefixCls}-star`,
|
|
516
|
+
"prevent-scroll": c.preventScroll,
|
|
517
|
+
size: e - 1 === c.count ? 0 : c.size,
|
|
518
|
+
value: X.value,
|
|
519
|
+
onClick: t[2] ||= (e, t) => w($).handleClick(e, t),
|
|
520
|
+
onHover: t[3] ||= (e, t) => w($).handleHover(e, t),
|
|
521
|
+
onFocus: (t) => ae(e - 1, t),
|
|
522
|
+
onBlur: (t) => oe(e - 1, t)
|
|
523
|
+
}, null, 8, [
|
|
524
|
+
"allow-half",
|
|
525
|
+
"describedby",
|
|
526
|
+
"label-prefix",
|
|
527
|
+
"character",
|
|
528
|
+
"count",
|
|
529
|
+
"disabled",
|
|
530
|
+
"focused",
|
|
531
|
+
"index",
|
|
532
|
+
"prefix-cls",
|
|
533
|
+
"prevent-scroll",
|
|
534
|
+
"size",
|
|
535
|
+
"value",
|
|
536
|
+
"onFocus",
|
|
537
|
+
"onBlur"
|
|
538
|
+
]))], 64))), 128))], 16, L));
|
|
539
|
+
}
|
|
540
|
+
}), z = ["small", "default"], B = R;
|
|
541
|
+
//#endregion
|
|
542
|
+
export { z as n, B as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ResizableProps, ResizableSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ResizableSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ResizableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
change: (size: import('./types').ResizeSize, event: MouseEvent | TouchEvent | Touch, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
5
|
+
resizeStart: (event: import('./types').ResizeStartPointer, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
6
|
+
resizeEnd: (size: import('./types').ResizeSize, event: import('./types').ResizeMoveEvent, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
7
|
+
"update:size": (size: import('./types').ResizeSize) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<ResizableProps> & Readonly<{
|
|
9
|
+
onChange?: (size: import('./types').ResizeSize, event: MouseEvent | TouchEvent | Touch, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
10
|
+
onResizeStart?: (event: import('./types').ResizeStartPointer, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
11
|
+
onResizeEnd?: (size: import('./types').ResizeSize, event: import('./types').ResizeMoveEvent, direction: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight") => any;
|
|
12
|
+
"onUpdate:size"?: (size: import('./types').ResizeSize) => any;
|
|
13
|
+
}>, {
|
|
14
|
+
grid: number | readonly [number, number];
|
|
15
|
+
scale: number;
|
|
16
|
+
ratio: number | readonly [number, number];
|
|
17
|
+
snapGap: number;
|
|
18
|
+
boundsByDirection: boolean;
|
|
19
|
+
lockAspectRatio: boolean | number;
|
|
20
|
+
lockAspectRatioExtraWidth: number;
|
|
21
|
+
lockAspectRatioExtraHeight: number;
|
|
22
|
+
enable: import('./types').ResizeEnable | false;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -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: null;
|
|
6
|
+
};
|
|
7
|
+
}>, () => string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | import('vue').VNodeArrayChildren | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<VNodeChild>;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
content: VNodeChild;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ResizeGroupProps, ResizeGroupSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ResizeGroupSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ResizeGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ResizeGroupProps> & Readonly<{}>, {
|
|
4
|
+
direction: import('./types').ResizeGroupDirection;
|
|
5
|
+
}, {}, {}, {}, 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,11 @@
|
|
|
1
|
+
import { ResizeHandlerSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ResizeHandlerSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, 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
|
+
};
|