@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,565 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { t as e } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t } from "./warning-naSiE8G7.js";
|
|
4
|
+
import { Comment as n, Fragment as r, Text as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as ee, h as f, inject as p, isVNode as te, markRaw as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as ne, openBlock as b, provide as x, renderSlot as S, shallowReactive as C, shallowRef as w, unref as T, useAttrs as E, useId as re, useSlots as ie, useTemplateRef as ae, watch as D } from "vue";
|
|
5
|
+
import { IconRadio as O } from "@aifuxi/semi-icons-vue";
|
|
6
|
+
//#region bundled-foundation
|
|
7
|
+
var k = class extends e {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.handleFocusVisible = (e) => {
|
|
10
|
+
let { target: n } = e;
|
|
11
|
+
try {
|
|
12
|
+
n.matches(":focus-visible") && this._adapter.setFocusVisible(!0);
|
|
13
|
+
} catch {
|
|
14
|
+
t(!0, "Warning: [Semi Radio] The current browser does not support the focus-visible");
|
|
15
|
+
}
|
|
16
|
+
}, this.handleBlur = () => {
|
|
17
|
+
this._adapter.setFocusVisible(!1);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
init() {
|
|
21
|
+
let { children: e, extra: t, extraId: n, addonId: r } = this._adapter.getProps();
|
|
22
|
+
e && !r && this._adapter.setAddonId(), t && !n && this._adapter.setExtraId();
|
|
23
|
+
}
|
|
24
|
+
setHover(e) {
|
|
25
|
+
this._adapter.setHover(e);
|
|
26
|
+
}
|
|
27
|
+
setChecked(e) {
|
|
28
|
+
this._adapter.setChecked(e);
|
|
29
|
+
}
|
|
30
|
+
}, A = class extends e {
|
|
31
|
+
constructor(e) {
|
|
32
|
+
super({ ...e });
|
|
33
|
+
}
|
|
34
|
+
init() {
|
|
35
|
+
let e = this._adapter.getProp("checked"), t = this._adapter.getProp("defaultChecked");
|
|
36
|
+
this.setChecked(e || t);
|
|
37
|
+
}
|
|
38
|
+
setChecked(e) {
|
|
39
|
+
this._adapter.setNativeControlChecked(e);
|
|
40
|
+
}
|
|
41
|
+
getChecked() {
|
|
42
|
+
return this._adapter.getProp("checked");
|
|
43
|
+
}
|
|
44
|
+
handleChange(e) {
|
|
45
|
+
let t = "checked" in this.getProps(), { checked: n } = e.target, r = () => {
|
|
46
|
+
e.stopPropagation();
|
|
47
|
+
}, i = () => {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
}, a = {
|
|
50
|
+
target: {
|
|
51
|
+
...this.getProps(),
|
|
52
|
+
checked: n
|
|
53
|
+
},
|
|
54
|
+
stopPropagation: r,
|
|
55
|
+
preventDefault: i
|
|
56
|
+
};
|
|
57
|
+
t || this.setChecked(n), this._adapter.notifyChange(a);
|
|
58
|
+
}
|
|
59
|
+
destroy() {}
|
|
60
|
+
}, j = class extends e {
|
|
61
|
+
constructor(e) {
|
|
62
|
+
super({ ...e });
|
|
63
|
+
}
|
|
64
|
+
init() {
|
|
65
|
+
let e = this._getDisplayValue();
|
|
66
|
+
this._setValue(e);
|
|
67
|
+
}
|
|
68
|
+
_getDisplayValue() {
|
|
69
|
+
let { value: e, defaultValue: t } = this.getProps(), n;
|
|
70
|
+
return "value" in this.getProps() ? n = e : "defaultValue" in this.getProps() && (n = t), n;
|
|
71
|
+
}
|
|
72
|
+
handleChange(e) {
|
|
73
|
+
let t = this.getProp("mode"), n = this.getState("value"), { checked: r, value: i } = e.target, a = this._adapter.isInProps("value"), o = {
|
|
74
|
+
...e,
|
|
75
|
+
target: {
|
|
76
|
+
...e.target,
|
|
77
|
+
value: i
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
t === "advanced" && !r && (o.target.value = void 0), a || (t === "advanced" && !r ? this._setValue(void 0) : this._setValue(i)), (t === "advanced" || n !== i) && this._adapter.notifyChange(o);
|
|
81
|
+
}
|
|
82
|
+
handlePropValueChange(e) {
|
|
83
|
+
this._setValue(e);
|
|
84
|
+
}
|
|
85
|
+
_setValue(e) {
|
|
86
|
+
this._adapter.setValue(e);
|
|
87
|
+
}
|
|
88
|
+
destroy() {}
|
|
89
|
+
}, oe = d({
|
|
90
|
+
name: "RadioNodeRenderer",
|
|
91
|
+
props: { content: {
|
|
92
|
+
type: null,
|
|
93
|
+
default: void 0
|
|
94
|
+
} },
|
|
95
|
+
setup: (e) => () => e.content
|
|
96
|
+
}), se = Symbol("semi-radio-group"), ce = [
|
|
97
|
+
"autofocus",
|
|
98
|
+
"type",
|
|
99
|
+
"checked",
|
|
100
|
+
"disabled",
|
|
101
|
+
"name",
|
|
102
|
+
"aria-label",
|
|
103
|
+
"aria-labelledby",
|
|
104
|
+
"aria-describedby"
|
|
105
|
+
], le = ["id"], ue = ["id"], M = /* @__PURE__ */ d({
|
|
106
|
+
name: "Radio",
|
|
107
|
+
inheritAttrs: !1,
|
|
108
|
+
__name: "Radio",
|
|
109
|
+
props: {
|
|
110
|
+
addonClassName: {},
|
|
111
|
+
addonId: {},
|
|
112
|
+
addonStyle: {},
|
|
113
|
+
ariaLabel: {},
|
|
114
|
+
autoFocus: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
checked: { type: Boolean },
|
|
119
|
+
className: {},
|
|
120
|
+
defaultChecked: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !1
|
|
123
|
+
},
|
|
124
|
+
disabled: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: !1
|
|
127
|
+
},
|
|
128
|
+
displayMode: { default: "" },
|
|
129
|
+
extra: { type: [
|
|
130
|
+
Object,
|
|
131
|
+
String,
|
|
132
|
+
Number,
|
|
133
|
+
Boolean,
|
|
134
|
+
null,
|
|
135
|
+
Array
|
|
136
|
+
] },
|
|
137
|
+
extraId: {},
|
|
138
|
+
mode: { default: "" },
|
|
139
|
+
modelValue: { type: Boolean },
|
|
140
|
+
name: {},
|
|
141
|
+
prefixCls: {},
|
|
142
|
+
preventScroll: { type: Boolean },
|
|
143
|
+
style: {},
|
|
144
|
+
type: { default: "default" },
|
|
145
|
+
value: { type: [
|
|
146
|
+
String,
|
|
147
|
+
Number,
|
|
148
|
+
Boolean
|
|
149
|
+
] }
|
|
150
|
+
},
|
|
151
|
+
emits: [
|
|
152
|
+
"change",
|
|
153
|
+
"mouseenter",
|
|
154
|
+
"mouseleave",
|
|
155
|
+
"update:checked",
|
|
156
|
+
"update:modelValue"
|
|
157
|
+
],
|
|
158
|
+
setup(e, { expose: t, emit: n }) {
|
|
159
|
+
let r = e, i = n, d = E(), f = ie(), te = ee(), x = p(se, void 0), w = ae("input"), j = re().replaceAll(":", ""), M = /* @__PURE__ */ new Map();
|
|
160
|
+
function N(e) {
|
|
161
|
+
let t = e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), n = te?.vnode.props;
|
|
162
|
+
return !!(n && (Object.prototype.hasOwnProperty.call(n, e) || Object.prototype.hasOwnProperty.call(n, t)));
|
|
163
|
+
}
|
|
164
|
+
let P = a(() => N("checked")), F = a(() => N("modelValue")), I = a(() => P.value || F.value), L = a(() => P.value ? r.checked ?? !1 : r.modelValue ?? !1), R = a(() => f.default !== void 0), z = a(() => f.extra !== void 0 || !!r.extra), B = C({
|
|
165
|
+
hover: !1,
|
|
166
|
+
addonId: r.addonId,
|
|
167
|
+
extraId: r.extraId,
|
|
168
|
+
focusVisible: !1,
|
|
169
|
+
checked: I.value && !(P.value && r.checked === void 0) ? L.value : r.defaultChecked
|
|
170
|
+
}), V = a(() => x ? x.value.value === r.value : B.checked), H = C({ checked: V.value }), U = a(() => !!(r.disabled || x?.disabled.value)), W = a(() => x?.mode.value ?? r.mode), de = a(() => !x && r.type === "button"), G = a(() => x?.isButtonRadio.value ?? de.value), K = a(() => x?.isPureCardRadio.value ?? r.type === "pureCard"), q = a(() => x?.isCardRadio.value ?? (r.type === "card" || K.value)), J = a(() => x?.buttonSize.value), Y = a(() => r.prefixCls ?? x?.prefixCls.value ?? "semi-radio"), fe = a(() => q.value || K.value || G.value), X = a(() => r.name ?? x?.name.value), pe = a(() => [
|
|
171
|
+
d.class,
|
|
172
|
+
r.className,
|
|
173
|
+
Y.value,
|
|
174
|
+
U.value ? `${Y.value}-disabled` : void 0,
|
|
175
|
+
V.value ? `${Y.value}-checked` : void 0,
|
|
176
|
+
r.displayMode ? `${Y.value}-${r.displayMode}` : void 0,
|
|
177
|
+
de.value ? `${Y.value}-buttonRadioComponent` : void 0,
|
|
178
|
+
x?.isButtonRadio.value ? `${Y.value}-buttonRadioGroup` : void 0,
|
|
179
|
+
x?.isButtonRadio.value && J.value ? `${Y.value}-buttonRadioGroup-${J.value}` : void 0,
|
|
180
|
+
q.value ? `${Y.value}-cardRadioGroup` : void 0,
|
|
181
|
+
U.value && q.value ? `${Y.value}-cardRadioGroup_disabled` : void 0,
|
|
182
|
+
q.value && V.value && !U.value ? `${Y.value}-cardRadioGroup_checked` : void 0,
|
|
183
|
+
q.value && V.value && U.value ? `${Y.value}-cardRadioGroup_checked_disabled` : void 0,
|
|
184
|
+
q.value && !V.value && B.hover && !U.value ? `${Y.value}-cardRadioGroup_hover` : void 0,
|
|
185
|
+
B.focusVisible && (q.value || K.value) ? `${Y.value}-focus` : void 0
|
|
186
|
+
]), me = a(() => [
|
|
187
|
+
`${Y.value}-inner`,
|
|
188
|
+
H.checked ? `${Y.value}-inner-checked` : void 0,
|
|
189
|
+
G.value ? `${Y.value}-inner-buttonRadio` : void 0,
|
|
190
|
+
K.value ? `${Y.value}-inner-pureCardRadio` : void 0
|
|
191
|
+
]), he = a(() => [
|
|
192
|
+
B.focusVisible && !fe.value ? `${Y.value}-focus` : void 0,
|
|
193
|
+
B.focusVisible && !fe.value && !H.checked ? `${Y.value}-focus-border` : void 0,
|
|
194
|
+
G.value ? void 0 : `${Y.value}-inner-display`
|
|
195
|
+
]), ge = a(() => [
|
|
196
|
+
r.addonClassName,
|
|
197
|
+
G.value ? void 0 : `${Y.value}-addon`,
|
|
198
|
+
G.value ? `${Y.value}-addon-buttonRadio` : void 0,
|
|
199
|
+
G.value && V.value ? `${Y.value}-addon-buttonRadio-checked` : void 0,
|
|
200
|
+
G.value && U.value ? `${Y.value}-addon-buttonRadio-disabled` : void 0,
|
|
201
|
+
G.value && !V.value && !U.value && B.hover ? `${Y.value}-addon-buttonRadio-hover` : void 0,
|
|
202
|
+
G.value && J.value ? `${Y.value}-addon-buttonRadio-${J.value}` : void 0,
|
|
203
|
+
B.focusVisible && G.value ? `${Y.value}-focus` : void 0
|
|
204
|
+
]), _e = a(() => Object.fromEntries(Object.entries(d).filter(([e]) => e.startsWith("data-"))));
|
|
205
|
+
function ve() {
|
|
206
|
+
let e = {
|
|
207
|
+
defaultChecked: r.defaultChecked,
|
|
208
|
+
disabled: U.value,
|
|
209
|
+
children: R.value || void 0,
|
|
210
|
+
extra: z.value || void 0,
|
|
211
|
+
addonId: B.addonId,
|
|
212
|
+
extraId: B.extraId,
|
|
213
|
+
value: r.value
|
|
214
|
+
};
|
|
215
|
+
return I.value && (e.checked = L.value), e;
|
|
216
|
+
}
|
|
217
|
+
let Z = {
|
|
218
|
+
getContext: () => void 0,
|
|
219
|
+
getContexts: () => void 0,
|
|
220
|
+
getProp: (e) => ve()[e],
|
|
221
|
+
getProps: ve,
|
|
222
|
+
getState: (e) => B[e],
|
|
223
|
+
getStates: () => B,
|
|
224
|
+
setState: (e, t) => {
|
|
225
|
+
Object.assign(B, e), t?.();
|
|
226
|
+
},
|
|
227
|
+
getCache: (e) => M.get(e),
|
|
228
|
+
getCaches: () => M,
|
|
229
|
+
setCache: (e, t) => M.set(String(e), t),
|
|
230
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
231
|
+
persistEvent: () => void 0,
|
|
232
|
+
setHover: (e) => {
|
|
233
|
+
B.hover = e;
|
|
234
|
+
},
|
|
235
|
+
setChecked: (e) => {
|
|
236
|
+
B.checked = e;
|
|
237
|
+
},
|
|
238
|
+
setAddonId: () => {
|
|
239
|
+
B.addonId = r.addonId ?? `addon-${j}`;
|
|
240
|
+
},
|
|
241
|
+
setExtraId: () => {
|
|
242
|
+
B.extraId = r.extraId ?? `extra-${j}`;
|
|
243
|
+
},
|
|
244
|
+
setFocusVisible: (e) => {
|
|
245
|
+
B.focusVisible = e;
|
|
246
|
+
}
|
|
247
|
+
}, Q = m(new k(Z)), ye = {
|
|
248
|
+
...Z,
|
|
249
|
+
getProp: (e) => ({
|
|
250
|
+
...r,
|
|
251
|
+
checked: V.value,
|
|
252
|
+
disabled: U.value,
|
|
253
|
+
mode: W.value,
|
|
254
|
+
name: X.value
|
|
255
|
+
})[e],
|
|
256
|
+
getProps: () => ({
|
|
257
|
+
...r,
|
|
258
|
+
checked: V.value,
|
|
259
|
+
disabled: U.value,
|
|
260
|
+
mode: W.value,
|
|
261
|
+
name: X.value
|
|
262
|
+
}),
|
|
263
|
+
getState: (e) => H[e],
|
|
264
|
+
getStates: () => H,
|
|
265
|
+
setState: (e, t) => {
|
|
266
|
+
Object.assign(H, e), t?.();
|
|
267
|
+
},
|
|
268
|
+
setNativeControlChecked: (e) => {
|
|
269
|
+
H.checked = e;
|
|
270
|
+
},
|
|
271
|
+
notifyChange: (e) => be(e)
|
|
272
|
+
}, $ = m(new A(ye));
|
|
273
|
+
function be(e) {
|
|
274
|
+
x?.onChange(e), !x && !I.value && Q.setChecked(e.target.checked), i("change", e), i("update:checked", e.target.checked), i("update:modelValue", e.target.checked), (I.value || x) && g(() => {
|
|
275
|
+
w.value && (w.value.checked = V.value);
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
function xe(e) {
|
|
279
|
+
i("mouseenter", e), Q.setHover(!0);
|
|
280
|
+
}
|
|
281
|
+
function Se(e) {
|
|
282
|
+
i("mouseleave", e), Q.setHover(!1);
|
|
283
|
+
}
|
|
284
|
+
function Ce() {
|
|
285
|
+
w.value?.focus({ preventScroll: r.preventScroll });
|
|
286
|
+
}
|
|
287
|
+
function we() {
|
|
288
|
+
w.value?.blur();
|
|
289
|
+
}
|
|
290
|
+
return D(L, (e) => {
|
|
291
|
+
I.value && !x && Q.setChecked(e);
|
|
292
|
+
}), D(V, (e) => $.setChecked(e)), D(() => r.addonId, (e) => {
|
|
293
|
+
e !== void 0 && (B.addonId = e);
|
|
294
|
+
}), D(() => r.extraId, (e) => {
|
|
295
|
+
e !== void 0 && (B.extraId = e);
|
|
296
|
+
}), ne(() => {
|
|
297
|
+
Q.init(), $.init();
|
|
298
|
+
}), y(() => {
|
|
299
|
+
Q.destroy(), $.destroy();
|
|
300
|
+
}), t({
|
|
301
|
+
get input() {
|
|
302
|
+
return w.value;
|
|
303
|
+
},
|
|
304
|
+
focus: Ce,
|
|
305
|
+
blur: we
|
|
306
|
+
}), (e, t) => (b(), c("label", h(_e.value, {
|
|
307
|
+
class: pe.value,
|
|
308
|
+
style: r.style ?? T(d).style,
|
|
309
|
+
onMouseenter: xe,
|
|
310
|
+
onMouseleave: Se
|
|
311
|
+
}), [l("span", { class: _(me.value) }, [l("input", {
|
|
312
|
+
ref_key: "input",
|
|
313
|
+
ref: w,
|
|
314
|
+
autofocus: r.autoFocus,
|
|
315
|
+
type: W.value === "advanced" ? "checkbox" : "radio",
|
|
316
|
+
checked: T(H).checked,
|
|
317
|
+
disabled: U.value,
|
|
318
|
+
name: X.value,
|
|
319
|
+
"aria-label": r.ariaLabel,
|
|
320
|
+
"aria-labelledby": R.value ? T(B).addonId : void 0,
|
|
321
|
+
"aria-describedby": z.value ? T(B).extraId : void 0,
|
|
322
|
+
onChange: t[0] ||= (...e) => T($).handleChange && T($).handleChange(...e),
|
|
323
|
+
onFocus: t[1] ||= (...e) => T(Q).handleFocusVisible && T(Q).handleFocusVisible(...e),
|
|
324
|
+
onBlur: t[2] ||= (...e) => T(Q).handleBlur && T(Q).handleBlur(...e)
|
|
325
|
+
}, null, 40, ce), l("span", { class: _(he.value) }, [T(H).checked ? (b(), o(T(O), { key: 0 })) : s("", !0)], 2)], 2), R.value || z.value ? (b(), c("div", {
|
|
326
|
+
key: 0,
|
|
327
|
+
class: _([`${Y.value}-content`, q.value ? `${Y.value}-isCardRadioGroup_content` : void 0])
|
|
328
|
+
}, [R.value ? (b(), c("span", {
|
|
329
|
+
key: 0,
|
|
330
|
+
id: T(B).addonId,
|
|
331
|
+
class: _(ge.value),
|
|
332
|
+
style: v(r.addonStyle),
|
|
333
|
+
"x-semi-prop": "children"
|
|
334
|
+
}, [S(e.$slots, "default")], 14, le)) : s("", !0), z.value && !G.value ? (b(), c("div", {
|
|
335
|
+
key: 1,
|
|
336
|
+
id: T(B).extraId,
|
|
337
|
+
class: _(`${Y.value}-extra`),
|
|
338
|
+
"x-semi-prop": "extra"
|
|
339
|
+
}, [S(e.$slots, "extra", {}, () => [u(T(oe), { content: r.extra }, null, 8, ["content"])])], 10, ue)) : s("", !0)], 2)) : s("", !0)], 16));
|
|
340
|
+
}
|
|
341
|
+
}), N = ["horizontal", "vertical"], P = ["", "advanced"], F = [
|
|
342
|
+
"default",
|
|
343
|
+
"button",
|
|
344
|
+
"card",
|
|
345
|
+
"pureCard"
|
|
346
|
+
], I = [
|
|
347
|
+
"small",
|
|
348
|
+
"middle",
|
|
349
|
+
"large"
|
|
350
|
+
], L = d({
|
|
351
|
+
name: "RadioGroup",
|
|
352
|
+
inheritAttrs: !1,
|
|
353
|
+
props: {
|
|
354
|
+
ariaDescribedby: {
|
|
355
|
+
type: String,
|
|
356
|
+
default: void 0
|
|
357
|
+
},
|
|
358
|
+
ariaErrormessage: {
|
|
359
|
+
type: String,
|
|
360
|
+
default: void 0
|
|
361
|
+
},
|
|
362
|
+
ariaInvalid: {
|
|
363
|
+
type: [Boolean, String],
|
|
364
|
+
default: void 0
|
|
365
|
+
},
|
|
366
|
+
ariaLabel: {
|
|
367
|
+
type: String,
|
|
368
|
+
default: void 0
|
|
369
|
+
},
|
|
370
|
+
ariaLabelledby: {
|
|
371
|
+
type: String,
|
|
372
|
+
default: void 0
|
|
373
|
+
},
|
|
374
|
+
ariaRequired: {
|
|
375
|
+
type: [Boolean, String],
|
|
376
|
+
default: void 0
|
|
377
|
+
},
|
|
378
|
+
buttonSize: {
|
|
379
|
+
type: String,
|
|
380
|
+
default: "middle",
|
|
381
|
+
validator: (e) => I.includes(e)
|
|
382
|
+
},
|
|
383
|
+
className: {
|
|
384
|
+
type: String,
|
|
385
|
+
default: void 0
|
|
386
|
+
},
|
|
387
|
+
defaultValue: {
|
|
388
|
+
type: [
|
|
389
|
+
String,
|
|
390
|
+
Number,
|
|
391
|
+
Boolean
|
|
392
|
+
],
|
|
393
|
+
default: void 0
|
|
394
|
+
},
|
|
395
|
+
direction: {
|
|
396
|
+
type: String,
|
|
397
|
+
default: "horizontal",
|
|
398
|
+
validator: (e) => N.includes(e)
|
|
399
|
+
},
|
|
400
|
+
disabled: {
|
|
401
|
+
type: Boolean,
|
|
402
|
+
default: !1
|
|
403
|
+
},
|
|
404
|
+
id: {
|
|
405
|
+
type: String,
|
|
406
|
+
default: void 0
|
|
407
|
+
},
|
|
408
|
+
mode: {
|
|
409
|
+
type: String,
|
|
410
|
+
default: "",
|
|
411
|
+
validator: (e) => P.includes(e)
|
|
412
|
+
},
|
|
413
|
+
modelValue: {
|
|
414
|
+
type: [
|
|
415
|
+
String,
|
|
416
|
+
Number,
|
|
417
|
+
Boolean
|
|
418
|
+
],
|
|
419
|
+
default: void 0
|
|
420
|
+
},
|
|
421
|
+
name: {
|
|
422
|
+
type: String,
|
|
423
|
+
default: void 0
|
|
424
|
+
},
|
|
425
|
+
options: {
|
|
426
|
+
type: Array,
|
|
427
|
+
default: void 0
|
|
428
|
+
},
|
|
429
|
+
prefixCls: {
|
|
430
|
+
type: String,
|
|
431
|
+
default: void 0
|
|
432
|
+
},
|
|
433
|
+
style: {
|
|
434
|
+
type: [
|
|
435
|
+
String,
|
|
436
|
+
Object,
|
|
437
|
+
Array
|
|
438
|
+
],
|
|
439
|
+
default: void 0
|
|
440
|
+
},
|
|
441
|
+
type: {
|
|
442
|
+
type: String,
|
|
443
|
+
default: "default",
|
|
444
|
+
validator: (e) => F.includes(e)
|
|
445
|
+
},
|
|
446
|
+
value: {
|
|
447
|
+
type: [
|
|
448
|
+
String,
|
|
449
|
+
Number,
|
|
450
|
+
Boolean
|
|
451
|
+
],
|
|
452
|
+
default: void 0
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
emits: [
|
|
456
|
+
"change",
|
|
457
|
+
"update:value",
|
|
458
|
+
"update:modelValue"
|
|
459
|
+
],
|
|
460
|
+
setup(e, { attrs: t, emit: o, slots: s }) {
|
|
461
|
+
let c = ee(), l = /* @__PURE__ */ new Map();
|
|
462
|
+
function u(e) {
|
|
463
|
+
let t = e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), n = c?.vnode.props;
|
|
464
|
+
return !!(n && (Object.prototype.hasOwnProperty.call(n, e) || Object.prototype.hasOwnProperty.call(n, t)));
|
|
465
|
+
}
|
|
466
|
+
let d = a(() => u("value")), p = a(() => u("modelValue")), h = a(() => d.value || p.value), g = a(() => d.value ? e.value : e.modelValue), _ = w({ value: h.value ? g.value : e.defaultValue }), v = a(() => e.prefixCls ?? "semi-radioGroup"), b = a(() => e.type === "button"), S = a(() => e.type === "pureCard"), C = a(() => e.type === "card" || S.value);
|
|
467
|
+
function T() {
|
|
468
|
+
let t = {
|
|
469
|
+
defaultValue: e.defaultValue,
|
|
470
|
+
mode: e.mode
|
|
471
|
+
};
|
|
472
|
+
return h.value && (t.value = g.value), t;
|
|
473
|
+
}
|
|
474
|
+
let E = m(new j({
|
|
475
|
+
getContext: () => void 0,
|
|
476
|
+
getContexts: () => void 0,
|
|
477
|
+
getProp: (e) => T()[e],
|
|
478
|
+
getProps: T,
|
|
479
|
+
getState: (e) => _.value[e],
|
|
480
|
+
getStates: () => _.value,
|
|
481
|
+
setState: (e, t) => {
|
|
482
|
+
_.value = {
|
|
483
|
+
..._.value,
|
|
484
|
+
...e
|
|
485
|
+
}, t?.();
|
|
486
|
+
},
|
|
487
|
+
getCache: (e) => l.get(e),
|
|
488
|
+
getCaches: () => l,
|
|
489
|
+
setCache: (e, t) => l.set(String(e), t),
|
|
490
|
+
stopPropagation: (e) => e.stopPropagation?.(),
|
|
491
|
+
persistEvent: () => void 0,
|
|
492
|
+
isInProps: (e) => e === "value" && h.value,
|
|
493
|
+
setValue: (e) => {
|
|
494
|
+
_.value = { value: e };
|
|
495
|
+
},
|
|
496
|
+
notifyChange: (e) => {
|
|
497
|
+
let t = e, n = t.target.value;
|
|
498
|
+
o("change", t), o("update:value", n), o("update:modelValue", n);
|
|
499
|
+
}
|
|
500
|
+
})), re = a(() => _.value.value), ie = a(() => e.disabled), ae = a(() => e.mode), O = a(() => e.name || "default"), k = a(() => e.buttonSize), A = a(() => e.prefixCls);
|
|
501
|
+
x(se, {
|
|
502
|
+
value: re,
|
|
503
|
+
disabled: ie,
|
|
504
|
+
mode: ae,
|
|
505
|
+
name: O,
|
|
506
|
+
isButtonRadio: b,
|
|
507
|
+
isCardRadio: C,
|
|
508
|
+
isPureCardRadio: S,
|
|
509
|
+
buttonSize: k,
|
|
510
|
+
prefixCls: A,
|
|
511
|
+
onChange: (e) => E.handleChange(e)
|
|
512
|
+
}), D(g, (e, t) => {
|
|
513
|
+
h.value && (typeof e == "number" && Number.isNaN(e) && typeof t == "number" && Number.isNaN(t) || E.handlePropValueChange(e));
|
|
514
|
+
}), ne(() => E.init()), y(() => E.destroy());
|
|
515
|
+
function ce(t, n) {
|
|
516
|
+
return typeof t == "string" ? f(M, {
|
|
517
|
+
key: n,
|
|
518
|
+
disabled: e.disabled,
|
|
519
|
+
value: t,
|
|
520
|
+
prefixCls: e.prefixCls
|
|
521
|
+
}, () => t) : f(M, {
|
|
522
|
+
key: n,
|
|
523
|
+
disabled: t.disabled || e.disabled,
|
|
524
|
+
value: t.value,
|
|
525
|
+
extra: t.extra,
|
|
526
|
+
className: t.className,
|
|
527
|
+
style: t.style,
|
|
528
|
+
addonId: t.addonId,
|
|
529
|
+
addonStyle: t.addonStyle,
|
|
530
|
+
addonClassName: t.addonClassName,
|
|
531
|
+
extraId: t.extraId,
|
|
532
|
+
prefixCls: e.prefixCls
|
|
533
|
+
}, { default: () => f(oe, { content: t.label }) });
|
|
534
|
+
}
|
|
535
|
+
function le() {
|
|
536
|
+
return (s.default?.() ?? []).filter((e) => te(e) && e.type !== i && e.type !== n && e.type !== r);
|
|
537
|
+
}
|
|
538
|
+
return () => {
|
|
539
|
+
let n = Object.fromEntries(Object.entries(t).filter(([e]) => e.startsWith("data-"))), r = e.options ? e.options.map(ce) : le();
|
|
540
|
+
return f("div", {
|
|
541
|
+
...n,
|
|
542
|
+
id: e.id,
|
|
543
|
+
"aria-label": e.ariaLabel,
|
|
544
|
+
"aria-invalid": e.ariaInvalid,
|
|
545
|
+
"aria-errormessage": e.ariaErrormessage,
|
|
546
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
547
|
+
"aria-describedby": e.ariaDescribedby,
|
|
548
|
+
"aria-required": e.ariaRequired,
|
|
549
|
+
class: [
|
|
550
|
+
t.class,
|
|
551
|
+
e.className,
|
|
552
|
+
v.value,
|
|
553
|
+
`${v.value}-wrapper`,
|
|
554
|
+
b.value ? void 0 : `${v.value}-${e.direction}`,
|
|
555
|
+
!b.value && e.type === "default" ? `${v.value}-${e.direction}-default` : void 0,
|
|
556
|
+
!b.value && C.value ? `${v.value}-${e.direction}-card` : void 0,
|
|
557
|
+
b.value ? `${v.value}-buttonRadio` : void 0
|
|
558
|
+
],
|
|
559
|
+
style: e.style ?? t.style
|
|
560
|
+
}, r);
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
}), R = Object.assign(M, { Group: L });
|
|
564
|
+
//#endregion
|
|
565
|
+
export { P as a, N as i, L as n, F as o, I as r, R as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { RatingExposed, RatingProps, RatingSlots } from './types';
|
|
2
|
+
type __VLS_Slots = RatingSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<RatingProps, RatingExposed, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
click: (event: MouseEvent | KeyboardEvent, index: number) => any;
|
|
5
|
+
blur: (event: FocusEvent) => any;
|
|
6
|
+
change: (value: number) => any;
|
|
7
|
+
focus: (event: FocusEvent) => any;
|
|
8
|
+
"update:modelValue": (value: number) => any;
|
|
9
|
+
"update:value": (value: number) => any;
|
|
10
|
+
keyDown: (event: KeyboardEvent) => any;
|
|
11
|
+
hoverChange: (value: number | undefined) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<RatingProps> & Readonly<{
|
|
13
|
+
onClick?: (event: MouseEvent | KeyboardEvent, index: number) => any;
|
|
14
|
+
onBlur?: (event: FocusEvent) => any;
|
|
15
|
+
onChange?: (value: number) => any;
|
|
16
|
+
onFocus?: (event: FocusEvent) => any;
|
|
17
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
18
|
+
"onUpdate:value"?: (value: number) => any;
|
|
19
|
+
onKeyDown?: (event: KeyboardEvent) => any;
|
|
20
|
+
onHoverChange?: (value: number | undefined) => any;
|
|
21
|
+
}>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
size: import('./types').RatingSize;
|
|
24
|
+
prefixCls: string;
|
|
25
|
+
autoFocus: boolean;
|
|
26
|
+
defaultValue: number;
|
|
27
|
+
allowClear: boolean;
|
|
28
|
+
tabIndex: number;
|
|
29
|
+
count: number;
|
|
30
|
+
allowHalf: boolean;
|
|
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,33 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { RatingSize } from './types';
|
|
3
|
+
interface RatingItemProps {
|
|
4
|
+
allowHalf: boolean;
|
|
5
|
+
describedby?: string | undefined;
|
|
6
|
+
labelPrefix: string;
|
|
7
|
+
character?: VNodeChild;
|
|
8
|
+
count: number;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
index: number;
|
|
12
|
+
prefixCls: string;
|
|
13
|
+
preventScroll?: boolean | undefined;
|
|
14
|
+
size: RatingSize;
|
|
15
|
+
value: number;
|
|
16
|
+
}
|
|
17
|
+
interface RatingItemExposed {
|
|
18
|
+
getDomNode(): HTMLLIElement | null;
|
|
19
|
+
starFocus(): void;
|
|
20
|
+
}
|
|
21
|
+
declare const __VLS_export: import('vue').DefineComponent<RatingItemProps, RatingItemExposed, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
click: (event: MouseEvent | KeyboardEvent, index: number) => any;
|
|
23
|
+
blur: (event: FocusEvent) => any;
|
|
24
|
+
focus: (event: FocusEvent) => any;
|
|
25
|
+
hover: (event: MouseEvent, index: number) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<RatingItemProps> & Readonly<{
|
|
27
|
+
onClick?: (event: MouseEvent | KeyboardEvent, index: number) => any;
|
|
28
|
+
onBlur?: (event: FocusEvent) => any;
|
|
29
|
+
onFocus?: (event: FocusEvent) => any;
|
|
30
|
+
onHover?: (event: MouseEvent, index: number) => any;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => string | number | boolean | void | import('vue').VNodeArrayChildren | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<VNodeChild>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
content: VNodeChild;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { RatingProps } from './types';
|
|
3
|
+
export declare const Rating: DefineComponent<RatingProps>;
|
|
4
|
+
export { RATING_SIZES } from './types';
|
|
5
|
+
export type { RatingEmits, RatingExposed, RatingPresetSize, RatingProps, RatingSize, RatingSlots, } from './types';
|
|
6
|
+
export default Rating;
|