@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,277 @@
|
|
|
1
|
+
import { A as e, S as t, d as n, g as r, m as i, s as a, v as o, x as s, y as c } from "./foundation-Cawx37mp.js";
|
|
2
|
+
import { t as l } from "./env-BeIzjQx7.js";
|
|
3
|
+
`${l}`, `${l}`;
|
|
4
|
+
var u = {
|
|
5
|
+
EXPAND_ACTION: [
|
|
6
|
+
!1,
|
|
7
|
+
"click",
|
|
8
|
+
"doubleClick"
|
|
9
|
+
],
|
|
10
|
+
JSON_KEY_SPLIT: "_SEMI_TREE_SPLIT_"
|
|
11
|
+
}, d = .45;
|
|
12
|
+
function f(e, t) {
|
|
13
|
+
return `${e}-${t}`;
|
|
14
|
+
}
|
|
15
|
+
function p(e) {
|
|
16
|
+
return !(0, i.default)(e) && !(0, o.default)(e);
|
|
17
|
+
}
|
|
18
|
+
function m(e, n, r, i = !1) {
|
|
19
|
+
let c = [], l = !!i, u = (0, a.default)(r, "key", "key"), d = (0, a.default)(r, "children", "children");
|
|
20
|
+
if ((0, o.default)(e)) return [];
|
|
21
|
+
function p(e, a = null) {
|
|
22
|
+
return e.map((m, h) => {
|
|
23
|
+
let g = f(a ? a.pos : "0", h), _ = m[u], v = {};
|
|
24
|
+
r && Object.entries((0, s.default)(r, "children")).forEach(([e, t]) => {
|
|
25
|
+
let n = m[t];
|
|
26
|
+
!(0, o.default)(n) && (v[e] = n);
|
|
27
|
+
});
|
|
28
|
+
let y = {
|
|
29
|
+
...(0, t.default)(m, [
|
|
30
|
+
"key",
|
|
31
|
+
"label",
|
|
32
|
+
"value",
|
|
33
|
+
"icon",
|
|
34
|
+
"disabled",
|
|
35
|
+
"isLeaf"
|
|
36
|
+
]),
|
|
37
|
+
...v,
|
|
38
|
+
parent: a,
|
|
39
|
+
pos: g,
|
|
40
|
+
children: null,
|
|
41
|
+
data: m,
|
|
42
|
+
_innerDataTag: !0,
|
|
43
|
+
isEnd: [...a ? a.isEnd : [], h === e.length - 1]
|
|
44
|
+
}, b = typeof i == "boolean";
|
|
45
|
+
return (!l || !b && i.has(_)) && c.push(y), y.children = n.has(_) && (!l || !b && i.has(_)) ? p(m[d] || [], y) : [], y;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return p(e), c;
|
|
49
|
+
}
|
|
50
|
+
function h(e) {
|
|
51
|
+
let t = [], n = (e, t, i, a) => {
|
|
52
|
+
let o = [...i, e], s = {
|
|
53
|
+
key: o.join(u.JSON_KEY_SPLIT),
|
|
54
|
+
label: e,
|
|
55
|
+
value: t
|
|
56
|
+
};
|
|
57
|
+
if ((0, r.default)(t)) {
|
|
58
|
+
let e = [];
|
|
59
|
+
Object.entries(t).forEach((t) => {
|
|
60
|
+
n(t[0], t[1], o, e);
|
|
61
|
+
}), s.children = e;
|
|
62
|
+
}
|
|
63
|
+
a.push(s);
|
|
64
|
+
};
|
|
65
|
+
return Object.entries(e).forEach((e) => n(e[0], e[1], [], t)), t;
|
|
66
|
+
}
|
|
67
|
+
function g(e, t, n) {
|
|
68
|
+
let r = (0, a.default)(n, "key", "key"), i = (0, a.default)(n, "children", "children"), o = (n, s, c) => {
|
|
69
|
+
let l = n ? n[i] : e, u = n ? f(c.pos, s) : "0";
|
|
70
|
+
if (n) {
|
|
71
|
+
let e = (0, a.default)(n, r, null);
|
|
72
|
+
t({
|
|
73
|
+
data: { ...n },
|
|
74
|
+
ind: s,
|
|
75
|
+
pos: u,
|
|
76
|
+
key: e === null ? u : e,
|
|
77
|
+
parentPos: c.node ? c.pos : null,
|
|
78
|
+
level: Number(c.level) + 1
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
l && l.forEach((e, t) => {
|
|
82
|
+
o(e, t, {
|
|
83
|
+
node: n,
|
|
84
|
+
pos: u,
|
|
85
|
+
level: c ? Number(c.level) + 1 : -1
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
o(null);
|
|
90
|
+
}
|
|
91
|
+
function _(e, t) {
|
|
92
|
+
let n = {}, r = {}, i = {}, o = {
|
|
93
|
+
posEntities: n,
|
|
94
|
+
keyEntities: r,
|
|
95
|
+
valueEntities: i
|
|
96
|
+
}, s = (0, a.default)(t, "value", "value");
|
|
97
|
+
return g(e, (e) => {
|
|
98
|
+
let { pos: t, key: o, parentPos: c } = e, l = { ...e }, u = (0, a.default)(l, `data.${s}`, null);
|
|
99
|
+
u !== null && (i[u] = o), n[t] = l, r[o] = l, l.parent = n[c], l.parent && (l.parent.children = l.parent.children || [], l.parent.children.push(l));
|
|
100
|
+
}, t), o;
|
|
101
|
+
}
|
|
102
|
+
function v(e, t, r = !1) {
|
|
103
|
+
if (!p(e)) return [];
|
|
104
|
+
if (!r && Array.isArray(e) ? e = e.length ? [e[0]] : [] : Array.isArray(e) || (e = [e]), (0, n.default)(t)) return e;
|
|
105
|
+
let i = [];
|
|
106
|
+
return e.forEach((e) => {
|
|
107
|
+
e in t ? i.push(t[e]) : e && i.push(e);
|
|
108
|
+
}), i;
|
|
109
|
+
}
|
|
110
|
+
function y(e, t, n = !0) {
|
|
111
|
+
let r = [], i = (e) => {
|
|
112
|
+
if (!e) return;
|
|
113
|
+
let { children: n } = e;
|
|
114
|
+
p(n) && n.forEach((e) => {
|
|
115
|
+
r.push(e.key), i(t[e.key]);
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return e.forEach((e) => {
|
|
119
|
+
n && r.push(e), i(t[e]);
|
|
120
|
+
}), r;
|
|
121
|
+
}
|
|
122
|
+
function b(e, t, n = []) {
|
|
123
|
+
let r = [];
|
|
124
|
+
return e && e.forEach((e) => {
|
|
125
|
+
let i = t[e];
|
|
126
|
+
i && i.children && i.children.forEach((e) => {
|
|
127
|
+
(!n.length || !n.includes(e.key)) && r.push(e.key);
|
|
128
|
+
});
|
|
129
|
+
}), r;
|
|
130
|
+
}
|
|
131
|
+
function x(t, n, r = !0) {
|
|
132
|
+
let i = [];
|
|
133
|
+
return t.forEach((e) => {
|
|
134
|
+
n[e] && n[e].parent && i.push(n[e].parent.key);
|
|
135
|
+
}), b((0, e.default)(i), n, r ? [] : t);
|
|
136
|
+
}
|
|
137
|
+
function S(e, t, n = !0) {
|
|
138
|
+
let r = [], i = (e) => {
|
|
139
|
+
e.parent && (r.push(e.parent.key), i(e.parent));
|
|
140
|
+
};
|
|
141
|
+
return e.forEach((e) => {
|
|
142
|
+
t[e] && i(t[e]), n && r.push(e);
|
|
143
|
+
}), r;
|
|
144
|
+
}
|
|
145
|
+
function C(e, t) {
|
|
146
|
+
let n = {};
|
|
147
|
+
return e.forEach((e) => {
|
|
148
|
+
if (!t[e]) return;
|
|
149
|
+
let { level: r } = t[e];
|
|
150
|
+
n[r] ? n[r].push(e) : n[r] = [e];
|
|
151
|
+
}), n;
|
|
152
|
+
}
|
|
153
|
+
function w(e, t) {
|
|
154
|
+
let r = Array.isArray(e) ? e : [e], i = y(r, t, !0), a = /* @__PURE__ */ new Set([...i]), o = /* @__PURE__ */ new Set([]), s = [], l = C(r, t), u = (e) => {
|
|
155
|
+
let { key: n, parent: r, level: i } = e;
|
|
156
|
+
if (!r || s.includes(n)) return;
|
|
157
|
+
let c = x([n], t);
|
|
158
|
+
if (s = [...s, ...c], c.every((e) => a.has(e))) a.add(r.key), i - 1 in l && i ? l[i - 1].push(r.key) : l[i - 1] = [r.key];
|
|
159
|
+
else {
|
|
160
|
+
let e = S([n], t, !1);
|
|
161
|
+
o = /* @__PURE__ */ new Set([...o, ...e]);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
for (; !(0, n.default)(l);) {
|
|
165
|
+
let e = (0, c.default)(Object.keys(l).map((e) => Number(e)));
|
|
166
|
+
l[e].forEach((e) => u(t[e])), delete l[e];
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
checkedKeys: a,
|
|
170
|
+
halfCheckedKeys: o
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function T(e = [], t, n = !0) {
|
|
174
|
+
if (Array.isArray(e) || (e = [e]), n) {
|
|
175
|
+
let n = S(e, t, !0);
|
|
176
|
+
return new Set(n);
|
|
177
|
+
}
|
|
178
|
+
return new Set(e);
|
|
179
|
+
}
|
|
180
|
+
function E(e, t, n, r) {
|
|
181
|
+
let i = v(e, r, n);
|
|
182
|
+
return new Set(S(i, t, !1));
|
|
183
|
+
}
|
|
184
|
+
function D(e, t, n, r) {
|
|
185
|
+
if (!n) return !0;
|
|
186
|
+
let i = n, a = t;
|
|
187
|
+
return typeof n == "boolean" && (i = (e, t) => {
|
|
188
|
+
let n = e.toLowerCase();
|
|
189
|
+
return t?.toString().toLowerCase().includes(n);
|
|
190
|
+
}), r && (a = t[r]), i(e, a, t);
|
|
191
|
+
}
|
|
192
|
+
function O(e) {
|
|
193
|
+
return Array.isArray(e) ? e : [e];
|
|
194
|
+
}
|
|
195
|
+
function k(e, t, n = !1, r) {
|
|
196
|
+
let i = [], a = new Set(e);
|
|
197
|
+
return n ? e.forEach((e) => {
|
|
198
|
+
t[e] && !p(t[e].children) && i.push(e), !t[e] && r && i.push(e);
|
|
199
|
+
}) : e.forEach((e) => {
|
|
200
|
+
if (!t[e]) {
|
|
201
|
+
r && i.push(e);
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
let { parent: n } = t[e];
|
|
205
|
+
n && a.has(n.key) || i.push(e);
|
|
206
|
+
}), i;
|
|
207
|
+
}
|
|
208
|
+
function A(e, t, n) {
|
|
209
|
+
let r = [], i = (e) => {
|
|
210
|
+
n[e].children && n[e].children.forEach((e) => {
|
|
211
|
+
let { key: n } = e;
|
|
212
|
+
r.push(n), t.has(n) && i(n);
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
return i(e), r;
|
|
216
|
+
}
|
|
217
|
+
function j(e, t, n, r) {
|
|
218
|
+
let i = y([e], t, !0), a = t[e];
|
|
219
|
+
n = /* @__PURE__ */ new Set([...n, e]);
|
|
220
|
+
let o = (e) => {
|
|
221
|
+
if (!e.parent) return;
|
|
222
|
+
let { key: i } = e;
|
|
223
|
+
if (x([i], t).every((e) => n.has(e))) {
|
|
224
|
+
let t = e.parent;
|
|
225
|
+
n.add(t.key), o(t);
|
|
226
|
+
} else {
|
|
227
|
+
let e = S([i], t, !1);
|
|
228
|
+
r = /* @__PURE__ */ new Set([...r, ...e]);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
return o(a), {
|
|
232
|
+
checkedKeys: /* @__PURE__ */ new Set([...n, ...i]),
|
|
233
|
+
halfCheckedKeys: r
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function M(e, t, n, r) {
|
|
237
|
+
let i = y([e], t, !0), a = t[e];
|
|
238
|
+
i.forEach((e) => {
|
|
239
|
+
n.has(e) && n.delete(e), r.has(e) && r.delete(e);
|
|
240
|
+
});
|
|
241
|
+
let o = (e) => {
|
|
242
|
+
let i = e.parent;
|
|
243
|
+
if (!i || !n.has(i.key) && !r.has(i.key)) return;
|
|
244
|
+
let { key: a } = e, s = x([a], t).some((e) => n.has(e) || r.has(e)), c = S([a], t, !1);
|
|
245
|
+
s ? c.forEach((e) => {
|
|
246
|
+
n.has(e) && (n.delete(e), r.add(e));
|
|
247
|
+
}) : (n.has(i.key) && n.delete(i.key), r.has(i.key) && r.delete(i.key), o(i));
|
|
248
|
+
};
|
|
249
|
+
return a && o(a), {
|
|
250
|
+
checkedKeys: n,
|
|
251
|
+
halfCheckedKeys: r
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function N(e, t) {
|
|
255
|
+
let n = (0, a.default)(t, "value", "value"), r = (0, a.default)(t, "key", "key");
|
|
256
|
+
return Array.isArray(e) ? e.map((e) => (0, a.default)(e, n, e[r])) : (0, a.default)(e, n, e[r]);
|
|
257
|
+
}
|
|
258
|
+
function P(e, t, n) {
|
|
259
|
+
return t && p(e) ? N(e, n) : e;
|
|
260
|
+
}
|
|
261
|
+
function F(e, t) {
|
|
262
|
+
let n = (0, a.default)(t, "disabled", "disabled"), { checkedKeys: r } = w(Object.keys(e).filter((t) => e[t].data[n]), e);
|
|
263
|
+
return r;
|
|
264
|
+
}
|
|
265
|
+
function I(e, t) {
|
|
266
|
+
let { clientY: n } = e, { top: r, bottom: i, height: a } = t.nodeInstance.getBoundingClientRect();
|
|
267
|
+
return n <= r + a * d ? -1 : +(n >= i - a * d);
|
|
268
|
+
}
|
|
269
|
+
function L(e, t) {
|
|
270
|
+
return y([e], t, !0);
|
|
271
|
+
}
|
|
272
|
+
function R(e, t) {
|
|
273
|
+
let n = e.split("-");
|
|
274
|
+
return t + Number(n[n.length - 1]);
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
277
|
+
export { u as S, A as _, R as a, P as b, E as c, D as d, S as f, L as g, m as h, F as i, _ as l, v as m, j as n, I as o, y as p, M as r, T as s, w as t, h as u, N as v, O as x, k as y };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NumeralProps, TypographyContentSlots } from './types';
|
|
2
|
+
type __VLS_Slots = TypographyContentSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<NumeralProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
5
|
+
expand: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<NumeralProps> & Readonly<{
|
|
7
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
8
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
component: import('./types').TypographyComponent;
|
|
11
|
+
copyable: boolean | import('./types').TypographyCopyableConfig;
|
|
12
|
+
delete: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
link: import('./types').TypographyLink;
|
|
15
|
+
mark: boolean;
|
|
16
|
+
size: import('./types').TypographySize;
|
|
17
|
+
strong: boolean;
|
|
18
|
+
type: import('./types').TypographyType;
|
|
19
|
+
underline: boolean;
|
|
20
|
+
code: boolean;
|
|
21
|
+
rule: import('./types').TypographyNumeralRule;
|
|
22
|
+
precision: number;
|
|
23
|
+
truncate: import('./types').TypographyTruncate;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ParagraphProps, TypographyActionSlots } from './types';
|
|
2
|
+
type __VLS_Slots = TypographyActionSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
5
|
+
expand: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<ParagraphProps> & Readonly<{
|
|
7
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
8
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
spacing: import('./types').TypographySpacing;
|
|
11
|
+
component: import('./types').TypographyComponent;
|
|
12
|
+
copyable: boolean | import('./types').TypographyCopyableConfig;
|
|
13
|
+
delete: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
ellipsis: boolean | import('./types').TypographyEllipsis;
|
|
16
|
+
link: import('./types').TypographyLink;
|
|
17
|
+
mark: boolean;
|
|
18
|
+
size: import('./types').TypographySize;
|
|
19
|
+
strong: boolean;
|
|
20
|
+
type: import('./types').TypographyType;
|
|
21
|
+
underline: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TextProps, TypographyContentSlots } from './types';
|
|
2
|
+
type __VLS_Slots = TypographyContentSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<TextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
5
|
+
expand: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<TextProps> & Readonly<{
|
|
7
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
8
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
component: import('./types').TypographyComponent;
|
|
11
|
+
copyable: boolean | import('./types').TypographyCopyableConfig;
|
|
12
|
+
delete: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
ellipsis: boolean | import('./types').TypographyEllipsis;
|
|
15
|
+
link: import('./types').TypographyLink;
|
|
16
|
+
mark: boolean;
|
|
17
|
+
size: import('./types').TypographySize;
|
|
18
|
+
strong: boolean;
|
|
19
|
+
type: import('./types').TypographyType;
|
|
20
|
+
underline: boolean;
|
|
21
|
+
code: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TitleProps, TypographyActionSlots } from './types';
|
|
2
|
+
type __VLS_Slots = TypographyActionSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<TitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
5
|
+
expand: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<TitleProps> & Readonly<{
|
|
7
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
8
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
9
|
+
}>, {
|
|
10
|
+
copyable: boolean | import('./types').TypographyCopyableConfig;
|
|
11
|
+
delete: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
ellipsis: boolean | import('./types').TypographyEllipsis;
|
|
14
|
+
link: import('./types').TypographyLink;
|
|
15
|
+
mark: boolean;
|
|
16
|
+
strong: boolean;
|
|
17
|
+
type: import('./types').TypographyType;
|
|
18
|
+
underline: boolean;
|
|
19
|
+
heading: import('./types').TypographyHeading;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TypographyProps, TypographySlots } from './types';
|
|
2
|
+
type __VLS_Slots = TypographySlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<TypographyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyProps> & Readonly<{}>, {
|
|
4
|
+
component: import('./types').TypographyComponent;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { TypographyBaseProps, TypographyContentSlots, TypographyCopyableConfig, TypographyEllipsis, TypographyHeading, TypographySize } from './types';
|
|
3
|
+
type __VLS_Props = TypographyBaseProps & {
|
|
4
|
+
code?: boolean;
|
|
5
|
+
headingTag?: `h${TypographyHeading}`;
|
|
6
|
+
heading?: TypographyHeading;
|
|
7
|
+
paragraph?: boolean;
|
|
8
|
+
content?: VNodeChild[];
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = TypographyContentSlots;
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
13
|
+
expand: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
16
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => any;
|
|
17
|
+
}>, {
|
|
18
|
+
spacing: import('./types').TypographySpacing;
|
|
19
|
+
component: import('./types').TypographyComponent;
|
|
20
|
+
copyable: boolean | TypographyCopyableConfig;
|
|
21
|
+
delete: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
ellipsis: boolean | TypographyEllipsis;
|
|
24
|
+
link: import('./types').TypographyLink;
|
|
25
|
+
mark: boolean;
|
|
26
|
+
size: TypographySize;
|
|
27
|
+
strong: boolean;
|
|
28
|
+
type: import('./types').TypographyType;
|
|
29
|
+
underline: boolean;
|
|
30
|
+
code: boolean;
|
|
31
|
+
paragraph: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TypographyCopyableConfig } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
config: TypographyCopyableConfig;
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
icon?: (props: {
|
|
8
|
+
copied: boolean;
|
|
9
|
+
copy: (event: MouseEvent | KeyboardEvent) => void;
|
|
10
|
+
}) => unknown;
|
|
11
|
+
copied?: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
declare function copy(event: MouseEvent | KeyboardEvent): void;
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
+
copy: typeof copy;
|
|
16
|
+
copied: import('vue').ShallowRef<boolean, boolean>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
copy: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => any;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TypographyLink } from './types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
mark: BooleanConstructor;
|
|
5
|
+
code: BooleanConstructor;
|
|
6
|
+
underline: BooleanConstructor;
|
|
7
|
+
strong: BooleanConstructor;
|
|
8
|
+
delete: BooleanConstructor;
|
|
9
|
+
disabled: BooleanConstructor;
|
|
10
|
+
link: {
|
|
11
|
+
type: PropType<TypographyLink>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import('vue').VNodeArrayChildren, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
mark: BooleanConstructor;
|
|
16
|
+
code: BooleanConstructor;
|
|
17
|
+
underline: BooleanConstructor;
|
|
18
|
+
strong: BooleanConstructor;
|
|
19
|
+
delete: BooleanConstructor;
|
|
20
|
+
disabled: BooleanConstructor;
|
|
21
|
+
link: {
|
|
22
|
+
type: PropType<TypographyLink>;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
delete: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
link: TypographyLink;
|
|
29
|
+
mark: boolean;
|
|
30
|
+
strong: boolean;
|
|
31
|
+
underline: boolean;
|
|
32
|
+
code: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
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: null;
|
|
6
|
+
};
|
|
7
|
+
}>, () => string | number | boolean | void | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | import('vue').VNodeArrayChildren | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<VNodeChild>;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
content: VNodeChild;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as TypographyBase } from './Typography.vue';
|
|
2
|
+
import { default as Numeral } from './Numeral.vue';
|
|
3
|
+
import { default as Paragraph } from './Paragraph.vue';
|
|
4
|
+
import { default as Text } from './Text.vue';
|
|
5
|
+
import { default as Title } from './Title.vue';
|
|
6
|
+
export type TypographyCompoundComponent = typeof TypographyBase & {
|
|
7
|
+
Text: typeof Text;
|
|
8
|
+
Title: typeof Title;
|
|
9
|
+
Paragraph: typeof Paragraph;
|
|
10
|
+
Numeral: typeof Numeral;
|
|
11
|
+
};
|
|
12
|
+
export declare const Typography: TypographyCompoundComponent;
|
|
13
|
+
export { Numeral, Paragraph, Text, Title };
|
|
14
|
+
export { DEFAULT_TYPOGRAPHY_LOCALE, EN_US_TYPOGRAPHY_LOCALE, typographyLocaleKey, } from './typography-locale';
|
|
15
|
+
export { TYPOGRAPHY_HEADINGS, TYPOGRAPHY_NUMERAL_RULES, TYPOGRAPHY_SIZES, TYPOGRAPHY_SPACINGS, TYPOGRAPHY_TRUNCATE_MODES, TYPOGRAPHY_TYPES, TYPOGRAPHY_WEIGHTS, } from './types';
|
|
16
|
+
export type { NumeralProps, ParagraphProps, TextProps, TitleProps, TypographyBaseProps, TypographyComponent, TypographyContentSlots, TypographyCopyableConfig, TypographyEllipsis, TypographyEmits, TypographyHeading, TypographyLink, TypographyLocale, TypographyNumeralRule, TypographyProps, TypographyShowTooltip, TypographySize, TypographySlots, TypographySpacing, TypographyTooltipOptions, TypographyTruncate, TypographyType, TypographyWeight, } from './types';
|
|
17
|
+
export default Typography;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "../typography-DF8KwKuL.js";
|
|
2
|
+
export { u as DEFAULT_TYPOGRAPHY_LOCALE, s as EN_US_TYPOGRAPHY_LOCALE, r as Numeral, n as Paragraph, c as TYPOGRAPHY_HEADINGS, d as TYPOGRAPHY_NUMERAL_RULES, a as TYPOGRAPHY_SIZES, e as TYPOGRAPHY_SPACINGS, l as TYPOGRAPHY_TRUNCATE_MODES, f as TYPOGRAPHY_TYPES, t as TYPOGRAPHY_WEIGHTS, m as Text, o as Title, p as Typography, p as default, i as typographyLocaleKey };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Component, CSSProperties, VNodeChild } from 'vue';
|
|
2
|
+
export declare const TYPOGRAPHY_TYPES: readonly ["primary", "secondary", "danger", "warning", "success", "tertiary", "quaternary"];
|
|
3
|
+
export declare const TYPOGRAPHY_SIZES: readonly ["normal", "small", "inherit"];
|
|
4
|
+
export declare const TYPOGRAPHY_SPACINGS: readonly ["normal", "extended"];
|
|
5
|
+
export declare const TYPOGRAPHY_HEADINGS: readonly [1, 2, 3, 4, 5, 6];
|
|
6
|
+
export declare const TYPOGRAPHY_WEIGHTS: readonly ["light", "regular", "medium", "semibold", "bold", "default"];
|
|
7
|
+
export declare const TYPOGRAPHY_NUMERAL_RULES: readonly ["text", "numbers", "bytes-decimal", "bytes-binary", "percentages", "exponential"];
|
|
8
|
+
export declare const TYPOGRAPHY_TRUNCATE_MODES: readonly ["ceil", "floor", "round"];
|
|
9
|
+
export type TypographyType = (typeof TYPOGRAPHY_TYPES)[number];
|
|
10
|
+
export type TypographySize = (typeof TYPOGRAPHY_SIZES)[number];
|
|
11
|
+
export type TypographySpacing = (typeof TYPOGRAPHY_SPACINGS)[number];
|
|
12
|
+
export type TypographyHeading = (typeof TYPOGRAPHY_HEADINGS)[number];
|
|
13
|
+
export type TypographyWeight = (typeof TYPOGRAPHY_WEIGHTS)[number] | number;
|
|
14
|
+
export type TypographyNumeralRule = (typeof TYPOGRAPHY_NUMERAL_RULES)[number];
|
|
15
|
+
export type TypographyTruncate = (typeof TYPOGRAPHY_TRUNCATE_MODES)[number];
|
|
16
|
+
export type TypographyComponent = string | Component;
|
|
17
|
+
export type TypographyLink = boolean | Record<string, unknown>;
|
|
18
|
+
export interface TypographyLocale {
|
|
19
|
+
copy: string;
|
|
20
|
+
copied: string;
|
|
21
|
+
expand: string;
|
|
22
|
+
collapse: string;
|
|
23
|
+
}
|
|
24
|
+
export interface TypographyTooltipOptions {
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface TypographyShowTooltip {
|
|
30
|
+
type?: 'tooltip' | 'popover' | (string & {});
|
|
31
|
+
opts?: TypographyTooltipOptions;
|
|
32
|
+
}
|
|
33
|
+
export interface TypographyEllipsis {
|
|
34
|
+
collapseText?: string;
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
expandText?: string;
|
|
37
|
+
expandable?: boolean;
|
|
38
|
+
pos?: 'end' | 'middle';
|
|
39
|
+
rows?: number;
|
|
40
|
+
showTooltip?: boolean | TypographyShowTooltip;
|
|
41
|
+
suffix?: string;
|
|
42
|
+
onExpand?: (expanded: boolean, event: MouseEvent | KeyboardEvent) => void;
|
|
43
|
+
}
|
|
44
|
+
export interface TypographyCopyableConfig {
|
|
45
|
+
content?: string;
|
|
46
|
+
copyTip?: VNodeChild;
|
|
47
|
+
successTip?: VNodeChild;
|
|
48
|
+
icon?: VNodeChild | undefined;
|
|
49
|
+
duration?: number;
|
|
50
|
+
onCopy?: (event: MouseEvent | KeyboardEvent, content: string, result: boolean) => void;
|
|
51
|
+
render?: (copied: boolean, copy: (event: MouseEvent | KeyboardEvent) => void, config: TypographyCopyableConfig) => VNodeChild;
|
|
52
|
+
}
|
|
53
|
+
export interface TypographyBaseProps {
|
|
54
|
+
component?: TypographyComponent;
|
|
55
|
+
copyable?: boolean | TypographyCopyableConfig;
|
|
56
|
+
delete?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
ellipsis?: boolean | TypographyEllipsis;
|
|
59
|
+
icon?: VNodeChild;
|
|
60
|
+
link?: TypographyLink;
|
|
61
|
+
mark?: boolean;
|
|
62
|
+
size?: TypographySize;
|
|
63
|
+
spacing?: TypographySpacing;
|
|
64
|
+
strong?: boolean;
|
|
65
|
+
type?: TypographyType;
|
|
66
|
+
underline?: boolean;
|
|
67
|
+
weight?: TypographyWeight | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface TypographyProps {
|
|
70
|
+
component?: TypographyComponent;
|
|
71
|
+
}
|
|
72
|
+
export interface TypographySlots {
|
|
73
|
+
default?: () => unknown;
|
|
74
|
+
}
|
|
75
|
+
export interface TypographyActionSlots extends TypographySlots {
|
|
76
|
+
copyIcon?: (props: {
|
|
77
|
+
copied: boolean;
|
|
78
|
+
copy: (event: MouseEvent | KeyboardEvent) => void;
|
|
79
|
+
}) => unknown;
|
|
80
|
+
copied?: () => unknown;
|
|
81
|
+
tooltip?: (props: {
|
|
82
|
+
content: string;
|
|
83
|
+
}) => unknown;
|
|
84
|
+
}
|
|
85
|
+
export interface TypographyContentSlots extends TypographyActionSlots {
|
|
86
|
+
icon?: () => unknown;
|
|
87
|
+
}
|
|
88
|
+
export interface TextProps extends Omit<TypographyBaseProps, 'spacing' | 'weight'> {
|
|
89
|
+
code?: boolean;
|
|
90
|
+
weight?: number;
|
|
91
|
+
}
|
|
92
|
+
export interface TitleProps extends Omit<TypographyBaseProps, 'icon' | 'size' | 'spacing'> {
|
|
93
|
+
heading?: TypographyHeading;
|
|
94
|
+
}
|
|
95
|
+
export interface ParagraphProps extends Omit<TypographyBaseProps, 'icon' | 'weight'> {
|
|
96
|
+
spacing?: TypographySpacing;
|
|
97
|
+
}
|
|
98
|
+
export interface NumeralProps extends Omit<TypographyBaseProps, 'ellipsis' | 'spacing'> {
|
|
99
|
+
code?: boolean;
|
|
100
|
+
rule?: TypographyNumeralRule;
|
|
101
|
+
precision?: number;
|
|
102
|
+
truncate?: TypographyTruncate;
|
|
103
|
+
parser?: (value: string) => string;
|
|
104
|
+
}
|
|
105
|
+
export interface TypographyEmits {
|
|
106
|
+
copy: [event: MouseEvent | KeyboardEvent, content: string, result: boolean];
|
|
107
|
+
expand: [expanded: boolean, event: MouseEvent | KeyboardEvent];
|
|
108
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionKey, MaybeRef } from 'vue';
|
|
2
|
+
import { TypographyLocale } from './types';
|
|
3
|
+
export declare const DEFAULT_TYPOGRAPHY_LOCALE: Readonly<TypographyLocale>;
|
|
4
|
+
export declare const EN_US_TYPOGRAPHY_LOCALE: Readonly<TypographyLocale>;
|
|
5
|
+
export declare const typographyLocaleKey: InjectionKey<MaybeRef<TypographyLocale>>;
|