@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,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
direction: 'ltr' | 'rtl';
|
|
3
|
+
pages: number[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
select: (page: number) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onSelect?: (page: number) => any;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, VNodeChild } from 'vue';
|
|
2
|
+
import { TooltipPosition } from '../tooltip';
|
|
3
|
+
export type PaginationSize = 'small' | 'default';
|
|
4
|
+
export type PaginationPage = number | '...';
|
|
5
|
+
export type PaginationPageList = PaginationPage[];
|
|
6
|
+
export interface PaginationLocale {
|
|
7
|
+
pageSize: string;
|
|
8
|
+
total: string;
|
|
9
|
+
jumpTo: string;
|
|
10
|
+
page: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PaginationProps {
|
|
13
|
+
class?: HTMLAttributes['class'];
|
|
14
|
+
className?: string;
|
|
15
|
+
currentPage?: number;
|
|
16
|
+
defaultCurrentPage?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
hideOnSinglePage?: boolean;
|
|
19
|
+
hoverShowPageSelect?: boolean;
|
|
20
|
+
modelValue?: number;
|
|
21
|
+
nextText?: VNodeChild;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
pageSizeOpts?: number[];
|
|
24
|
+
popoverPosition?: TooltipPosition;
|
|
25
|
+
popoverZIndex?: number;
|
|
26
|
+
preventPageChangeOnPageSizeChange?: boolean;
|
|
27
|
+
prevText?: VNodeChild;
|
|
28
|
+
showQuickJumper?: boolean;
|
|
29
|
+
showSizeChanger?: boolean;
|
|
30
|
+
showTotal?: boolean;
|
|
31
|
+
size?: PaginationSize;
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
total?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface PaginationEmits {
|
|
36
|
+
change: [currentPage: number, pageSize: number];
|
|
37
|
+
pageChange: [currentPage: number];
|
|
38
|
+
pageSizeChange: [pageSize: number];
|
|
39
|
+
'update:currentPage': [currentPage: number];
|
|
40
|
+
'update:modelValue': [currentPage: number];
|
|
41
|
+
'update:pageSize': [pageSize: number];
|
|
42
|
+
}
|
|
43
|
+
export interface PaginationSlots {
|
|
44
|
+
next?: () => VNodeChild;
|
|
45
|
+
prev?: () => VNodeChild;
|
|
46
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PinCodeExposed, PinCodeProps } from './types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<PinCodeProps, PinCodeExposed, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
change: (value: string) => any;
|
|
4
|
+
"update:modelValue": (value: string) => any;
|
|
5
|
+
"update:value": (value: string) => any;
|
|
6
|
+
complete: (value: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<PinCodeProps> & Readonly<{
|
|
8
|
+
onChange?: (value: string) => any;
|
|
9
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
10
|
+
"onUpdate:value"?: (value: string) => any;
|
|
11
|
+
onComplete?: (value: string) => any;
|
|
12
|
+
}>, {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
size: import('..').InputSize;
|
|
15
|
+
autoFocus: boolean;
|
|
16
|
+
count: number;
|
|
17
|
+
format: import('./types').PinCodeFormat;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentOptionsMixin, DefineComponent } from 'vue';
|
|
2
|
+
import { PinCodeEmits, PinCodeProps } from './types';
|
|
3
|
+
type PinCodeComponentEmits = {
|
|
4
|
+
[EventName in keyof PinCodeEmits]: (...args: PinCodeEmits[EventName]) => void;
|
|
5
|
+
};
|
|
6
|
+
type EmptyComponentOptions = Record<never, never>;
|
|
7
|
+
export type PinCodeComponent = DefineComponent<PinCodeProps, EmptyComponentOptions, EmptyComponentOptions, EmptyComponentOptions, EmptyComponentOptions, ComponentOptionsMixin, ComponentOptionsMixin, PinCodeComponentEmits>;
|
|
8
|
+
export declare const PinCode: PinCodeComponent;
|
|
9
|
+
export type { PinCodeEmits, PinCodeExposed, PinCodeFormat, PinCodeProps } from './types';
|
|
10
|
+
export default PinCode;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue } from 'vue';
|
|
2
|
+
import { InputSize } from '../input';
|
|
3
|
+
export type PinCodeFormat = 'number' | 'mixed' | RegExp | ((character: string) => boolean);
|
|
4
|
+
export interface PinCodeProps {
|
|
5
|
+
autoFocus?: boolean;
|
|
6
|
+
className?: HTMLAttributes['class'];
|
|
7
|
+
count?: number;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
format?: PinCodeFormat;
|
|
11
|
+
modelValue?: string | undefined;
|
|
12
|
+
size?: InputSize;
|
|
13
|
+
style?: StyleValue;
|
|
14
|
+
value?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface PinCodeEmits {
|
|
17
|
+
change: [value: string];
|
|
18
|
+
complete: [value: string];
|
|
19
|
+
'update:modelValue': [value: string];
|
|
20
|
+
'update:value': [value: string];
|
|
21
|
+
}
|
|
22
|
+
export interface PinCodeExposed {
|
|
23
|
+
blur(index: number): void;
|
|
24
|
+
focus(index: number): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { t as e } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t } from "./input-wf0nZCRS.js";
|
|
4
|
+
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, defineComponent as o, getCurrentInstance as s, markRaw as c, mergeProps as l, nextTick as u, openBlock as d, renderList as f, shallowReactive as p, unref as m, useAttrs as h, watch as g } from "vue";
|
|
5
|
+
//#region bundled-foundation
|
|
6
|
+
var _ = class t extends e {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
super({ ...e }), this.handleCurrentActiveIndexChange = (e, t) => {
|
|
9
|
+
t === "focus" && this._adapter.onCurrentActiveIndexChange(e);
|
|
10
|
+
}, this.completeSingleInput = async (e, t) => {
|
|
11
|
+
let n = this._isInProps("value");
|
|
12
|
+
await this._adapter.onCurrentActiveIndexChange(e + 1);
|
|
13
|
+
let r = [...this.getState("valueList")];
|
|
14
|
+
r[e] = t, this._adapter.notifyValueChange(r), n || await this.updateValueList(r);
|
|
15
|
+
let i = this.getProp("count");
|
|
16
|
+
e + 1 > i - 1 ? (this._adapter.changeSpecificInputFocusState(e, "blur"), this.getProp("onComplete")?.(r.join(""))) : this._adapter.changeSpecificInputFocusState(e + 1, "focus");
|
|
17
|
+
}, this.validateValue = (e = "") => {
|
|
18
|
+
let n = this.getProp("format"), r = (e) => !0;
|
|
19
|
+
return typeof n == "string" ? n === "number" ? r = (e) => e.length === 0 || t.numberReg.test(e) : n === "mixed" && (r = (e) => e.length === 0 || t.mixedReg.test(e)) : n instanceof RegExp ? r = (e) => n.test(e) : typeof n == "function" && (r = n), r(e);
|
|
20
|
+
}, this.updateValueList = async (e) => {
|
|
21
|
+
this._adapter.updateValueList(e);
|
|
22
|
+
}, this.handlePaste = async (e, t) => {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
let n = e.clipboardData.getData("text"), r = this.getProp("count");
|
|
25
|
+
for (let e = t, i = 0; e < r && i < n.length; e++, i++) {
|
|
26
|
+
let t = n[i];
|
|
27
|
+
if (this.validateValue(t)) await this.completeSingleInput(e, t);
|
|
28
|
+
else break;
|
|
29
|
+
}
|
|
30
|
+
}, this.handleKeyDownOnSingleInput = (e, t) => {
|
|
31
|
+
let n = [...this.getState("valueList")];
|
|
32
|
+
e.key === "Backspace" ? (n[t] = "", this.updateValueList(n), this._adapter.notifyValueChange(n), this._adapter.changeSpecificInputFocusState(Math.max(0, t - 1), "focus"), e.preventDefault()) : e.key === "Delete" ? (n[t] = "", this.updateValueList(n), this._adapter.notifyValueChange(n), this._adapter.changeSpecificInputFocusState(Math.min(n.length - 1, t + 1), "focus"), e.preventDefault()) : e.key === "ArrowLeft" ? (this._adapter.changeSpecificInputFocusState(Math.max(0, t - 1), "focus"), e.preventDefault()) : e.key === "ArrowRight" && (this._adapter.changeSpecificInputFocusState(Math.min(n.length - 1, t + 1), "focus"), e.preventDefault());
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static {
|
|
36
|
+
this.numberReg = /^\d*$/;
|
|
37
|
+
}
|
|
38
|
+
static {
|
|
39
|
+
this.mixedReg = /^[0-9a-zA-Z]$/;
|
|
40
|
+
}
|
|
41
|
+
}, v = /* @__PURE__ */ o({
|
|
42
|
+
name: "PinCode",
|
|
43
|
+
inheritAttrs: !1,
|
|
44
|
+
__name: "PinCode",
|
|
45
|
+
props: {
|
|
46
|
+
autoFocus: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !0
|
|
49
|
+
},
|
|
50
|
+
className: { type: [
|
|
51
|
+
Boolean,
|
|
52
|
+
null,
|
|
53
|
+
String,
|
|
54
|
+
Object,
|
|
55
|
+
Array
|
|
56
|
+
] },
|
|
57
|
+
count: { default: 6 },
|
|
58
|
+
defaultValue: {},
|
|
59
|
+
disabled: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
format: {
|
|
64
|
+
type: [String, Function],
|
|
65
|
+
default: "number"
|
|
66
|
+
},
|
|
67
|
+
modelValue: {},
|
|
68
|
+
size: { default: "default" },
|
|
69
|
+
style: { type: [
|
|
70
|
+
Boolean,
|
|
71
|
+
null,
|
|
72
|
+
String,
|
|
73
|
+
Object,
|
|
74
|
+
Array
|
|
75
|
+
] },
|
|
76
|
+
value: {}
|
|
77
|
+
},
|
|
78
|
+
emits: [
|
|
79
|
+
"change",
|
|
80
|
+
"complete",
|
|
81
|
+
"update:modelValue",
|
|
82
|
+
"update:value"
|
|
83
|
+
],
|
|
84
|
+
setup(e, { expose: o, emit: v }) {
|
|
85
|
+
let y = e, b = v, x = h(), S = s(), C = [], w = /* @__PURE__ */ new Map();
|
|
86
|
+
function T(e) {
|
|
87
|
+
let t = e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), n = S?.vnode.props;
|
|
88
|
+
return !!(n && (Object.prototype.hasOwnProperty.call(n, e) || Object.prototype.hasOwnProperty.call(n, t)));
|
|
89
|
+
}
|
|
90
|
+
let E = r(() => T("value")), D = r(() => T("modelValue")), O = r(() => E.value || D.value), k = r(() => E.value ? y.value : y.modelValue), A = k.value || y.defaultValue, j = p({
|
|
91
|
+
valueList: A ? A.split("") : [],
|
|
92
|
+
currentActiveIndex: 0
|
|
93
|
+
}), M = r(() => [
|
|
94
|
+
x.class,
|
|
95
|
+
y.className,
|
|
96
|
+
"semi-pincode-wrapper"
|
|
97
|
+
]), N = r(() => [y.style, x.style]), P = r(() => Object.fromEntries(Object.entries(x).filter(([e]) => e !== "class" && e !== "style")));
|
|
98
|
+
function F() {
|
|
99
|
+
let e = {
|
|
100
|
+
...y,
|
|
101
|
+
onComplete: (e) => b("complete", e)
|
|
102
|
+
};
|
|
103
|
+
return O.value ? e.value = k.value : delete e.value, e;
|
|
104
|
+
}
|
|
105
|
+
let I = c(new _({
|
|
106
|
+
getContext: () => void 0,
|
|
107
|
+
getContexts: () => void 0,
|
|
108
|
+
getProp: (e) => F()[e],
|
|
109
|
+
getProps: F,
|
|
110
|
+
getState: (e) => j[e],
|
|
111
|
+
getStates: () => j,
|
|
112
|
+
setState: (e, t) => {
|
|
113
|
+
Object.assign(j, e), t?.();
|
|
114
|
+
},
|
|
115
|
+
getCache: (e) => w.get(e),
|
|
116
|
+
getCaches: () => w,
|
|
117
|
+
setCache: (e, t) => w.set(String(e), t),
|
|
118
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
119
|
+
persistEvent: () => void 0,
|
|
120
|
+
onCurrentActiveIndexChange: async (e) => {
|
|
121
|
+
j.currentActiveIndex = e, await u();
|
|
122
|
+
},
|
|
123
|
+
notifyValueChange: (e) => {
|
|
124
|
+
let t = e.join("");
|
|
125
|
+
b("change", t), b("update:value", t), b("update:modelValue", t);
|
|
126
|
+
},
|
|
127
|
+
changeSpecificInputFocusState: (e, t) => {
|
|
128
|
+
t === "focus" ? C[e]?.focus() : C[e]?.blur();
|
|
129
|
+
},
|
|
130
|
+
updateValueList: async (e) => {
|
|
131
|
+
j.valueList = e, await u();
|
|
132
|
+
}
|
|
133
|
+
}));
|
|
134
|
+
function L(e, t) {
|
|
135
|
+
C[e] = t;
|
|
136
|
+
}
|
|
137
|
+
function R(e) {
|
|
138
|
+
let t = C[e];
|
|
139
|
+
t?.focus(), t?.input?.setSelectionRange(1, 1);
|
|
140
|
+
}
|
|
141
|
+
function z(e) {
|
|
142
|
+
C[e]?.blur();
|
|
143
|
+
}
|
|
144
|
+
function B(e, t, n) {
|
|
145
|
+
if ("isComposing" in t && t.isComposing) return;
|
|
146
|
+
let r = e[e.length - 1];
|
|
147
|
+
I.validateValue(r) && I.completeSingleInput(n, r);
|
|
148
|
+
}
|
|
149
|
+
let V = r(() => Array.from({ length: y.count }, (e, t) => (e, n) => B(e, n, t)));
|
|
150
|
+
function H(e, t) {
|
|
151
|
+
I.handlePaste(e, t);
|
|
152
|
+
}
|
|
153
|
+
function U(e, t) {
|
|
154
|
+
I.handleKeyDownOnSingleInput(e, t);
|
|
155
|
+
}
|
|
156
|
+
return g(k, (e) => {
|
|
157
|
+
O.value && I.updateValueList((e || "").split(""));
|
|
158
|
+
}), o({
|
|
159
|
+
focus: R,
|
|
160
|
+
blur: z
|
|
161
|
+
}), (e, r) => (d(), a("div", l(P.value, {
|
|
162
|
+
class: M.value,
|
|
163
|
+
style: N.value
|
|
164
|
+
}), [(d(!0), a(n, null, f(y.count, (e) => (d(), i(m(t), {
|
|
165
|
+
key: `input-${e - 1}`,
|
|
166
|
+
ref_for: !0,
|
|
167
|
+
ref: (t) => L(e - 1, t),
|
|
168
|
+
"auto-focus": y.autoFocus && e === 1,
|
|
169
|
+
inputmode: y.format === "number" ? "numeric" : "text",
|
|
170
|
+
value: m(j).valueList[e - 1],
|
|
171
|
+
size: y.size,
|
|
172
|
+
disabled: y.disabled,
|
|
173
|
+
onBlur: (t) => m(I).handleCurrentActiveIndexChange(e - 1, "blur"),
|
|
174
|
+
onFocus: (t) => m(I).handleCurrentActiveIndexChange(e - 1, "focus"),
|
|
175
|
+
onPaste: (t) => H(t, e - 1),
|
|
176
|
+
onKeydown: (t) => U(t, e - 1),
|
|
177
|
+
onChange: V.value[e - 1]
|
|
178
|
+
}, null, 8, [
|
|
179
|
+
"auto-focus",
|
|
180
|
+
"inputmode",
|
|
181
|
+
"value",
|
|
182
|
+
"size",
|
|
183
|
+
"disabled",
|
|
184
|
+
"onBlur",
|
|
185
|
+
"onFocus",
|
|
186
|
+
"onPaste",
|
|
187
|
+
"onKeydown",
|
|
188
|
+
"onChange"
|
|
189
|
+
]))), 128))], 16));
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
//#endregion
|
|
193
|
+
export { v as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PopconfirmProps, PopconfirmSlots } from './types';
|
|
2
|
+
type __VLS_Slots = PopconfirmSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<PopconfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
cancel: (event: MouseEvent) => any;
|
|
5
|
+
clickOutside: (event: MouseEvent) => any;
|
|
6
|
+
escKeydown: (event: KeyboardEvent) => any;
|
|
7
|
+
visibleChange: (visible: boolean) => any;
|
|
8
|
+
"update:visible": (visible: boolean) => any;
|
|
9
|
+
confirm: (event: MouseEvent) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
|
|
11
|
+
onCancel?: (event: MouseEvent) => any;
|
|
12
|
+
onClickOutside?: (event: MouseEvent) => any;
|
|
13
|
+
onEscKeydown?: (event: KeyboardEvent) => any;
|
|
14
|
+
onVisibleChange?: (visible: boolean) => any;
|
|
15
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
16
|
+
onConfirm?: (event: MouseEvent) => any;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
content: {
|
|
9
|
+
type: PropType<VNodeChild>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
content: VNodeChild;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as Popconfirm } from './Popconfirm.vue';
|
|
2
|
+
export { Popconfirm };
|
|
3
|
+
export default Popconfirm;
|
|
4
|
+
export type { PopconfirmActionHandler, PopconfirmActionResult, PopconfirmButtonProps, PopconfirmEmits, PopconfirmLocale, PopconfirmProps, PopconfirmSlots, } from './types';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { ButtonProps, ButtonType } from '../button';
|
|
3
|
+
import { PopoverProps } from '../popover';
|
|
4
|
+
import { TooltipInitialFocusRef } from '../tooltip';
|
|
5
|
+
export type PopconfirmActionResult = Promise<unknown> | void;
|
|
6
|
+
export type PopconfirmActionHandler = (event: MouseEvent) => PopconfirmActionResult;
|
|
7
|
+
export interface PopconfirmButtonProps extends ButtonProps {
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
class?: HTMLAttributes['class'];
|
|
10
|
+
className?: HTMLAttributes['class'];
|
|
11
|
+
onClick?: (event: MouseEvent) => void;
|
|
12
|
+
style?: StyleValue;
|
|
13
|
+
[attribute: `aria-${string}`]: unknown;
|
|
14
|
+
[attribute: `data-${string}`]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface PopconfirmLocale {
|
|
17
|
+
cancel: string;
|
|
18
|
+
confirm: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PopconfirmProps extends Omit<PopoverProps, 'class' | 'className' | 'content' | 'position' | 'prefixCls' | 'style' | 'trigger' | 'zIndex'> {
|
|
21
|
+
cancelButtonProps?: PopconfirmButtonProps;
|
|
22
|
+
cancelText?: string;
|
|
23
|
+
cancelType?: ButtonType;
|
|
24
|
+
class?: HTMLAttributes['class'];
|
|
25
|
+
className?: HTMLAttributes['class'];
|
|
26
|
+
content?: VNodeChild;
|
|
27
|
+
defaultVisible?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
icon?: VNodeChild;
|
|
30
|
+
okButtonProps?: PopconfirmButtonProps;
|
|
31
|
+
okText?: string;
|
|
32
|
+
okType?: ButtonType;
|
|
33
|
+
position?: PopoverProps['position'];
|
|
34
|
+
prefixCls?: string;
|
|
35
|
+
showCloseIcon?: boolean;
|
|
36
|
+
style?: StyleValue;
|
|
37
|
+
title?: VNodeChild;
|
|
38
|
+
trigger?: PopoverProps['trigger'];
|
|
39
|
+
visible?: boolean;
|
|
40
|
+
zIndex?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface PopconfirmEmits {
|
|
43
|
+
cancel: [event: MouseEvent];
|
|
44
|
+
clickOutside: [event: MouseEvent];
|
|
45
|
+
confirm: [event: MouseEvent];
|
|
46
|
+
escKeydown: [event: KeyboardEvent];
|
|
47
|
+
visibleChange: [visible: boolean];
|
|
48
|
+
'update:visible': [visible: boolean];
|
|
49
|
+
}
|
|
50
|
+
export interface PopconfirmSlots {
|
|
51
|
+
content?: (props: {
|
|
52
|
+
initialFocusRef: TooltipInitialFocusRef;
|
|
53
|
+
}) => VNodeChild;
|
|
54
|
+
default?: () => VNodeChild;
|
|
55
|
+
icon?: () => VNodeChild;
|
|
56
|
+
title?: () => VNodeChild;
|
|
57
|
+
}
|