@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,914 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { Fragment as e, Teleport as t, Text as n, cloneVNode as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, h as m, inject as h, isVNode as g, mergeProps as _, nextTick as v, normalizeClass as ee, normalizeProps as y, normalizeStyle as te, onBeforeUnmount as ne, onMounted as b, onUpdated as x, openBlock as S, provide as re, renderSlot as C, resolveDynamicComponent as ie, shallowRef as w, toDisplayString as T, unref as E, useAttrs as ae, useSlots as D, withCtx as O } from "vue";
|
|
3
|
+
import { IconCopy as oe, IconTick as k } from "@aifuxi/semi-icons-vue";
|
|
4
|
+
//#region bundled-foundation
|
|
5
|
+
var A = class {
|
|
6
|
+
constructor(e, t, n, r, i) {
|
|
7
|
+
this.ruleMethods = {
|
|
8
|
+
"bytes-decimal": (e) => {
|
|
9
|
+
let t = [
|
|
10
|
+
"B",
|
|
11
|
+
"KB",
|
|
12
|
+
"MB",
|
|
13
|
+
"GB",
|
|
14
|
+
"TB",
|
|
15
|
+
"PB",
|
|
16
|
+
"EB",
|
|
17
|
+
"ZB",
|
|
18
|
+
"YB"
|
|
19
|
+
], n = 0;
|
|
20
|
+
for (; e >= 1e3;) e /= 1e3, n++;
|
|
21
|
+
return `${this.truncatePrecision(e)} ${t[n]}`;
|
|
22
|
+
},
|
|
23
|
+
"bytes-binary": (e) => {
|
|
24
|
+
let t = [
|
|
25
|
+
"B",
|
|
26
|
+
"KiB",
|
|
27
|
+
"MiB",
|
|
28
|
+
"GiB",
|
|
29
|
+
"TiB",
|
|
30
|
+
"PiB",
|
|
31
|
+
"EiB",
|
|
32
|
+
"ZiB",
|
|
33
|
+
"YiB"
|
|
34
|
+
], n = 0;
|
|
35
|
+
for (; e >= 1024;) e /= 1024, n++;
|
|
36
|
+
return `${this.truncatePrecision(e)} ${t[n]}`;
|
|
37
|
+
},
|
|
38
|
+
percentages: (e) => `${this.truncatePrecision(e * 100)}%`,
|
|
39
|
+
exponential: (e) => {
|
|
40
|
+
let t = e.toExponential(this.precision + 2).split("e");
|
|
41
|
+
return `${this.truncatePrecision(Number(t[0]))}e${t[1]}`;
|
|
42
|
+
}
|
|
43
|
+
}, this.truncateMethods = {
|
|
44
|
+
ceil: Math.ceil,
|
|
45
|
+
floor: Math.floor,
|
|
46
|
+
round: Math.round
|
|
47
|
+
}, this.isDiyParser = i !== void 0, this.content = e, this.rule = t, this.precision = n, this.truncate = r, this.parser = i;
|
|
48
|
+
}
|
|
49
|
+
format() {
|
|
50
|
+
return this.isDiyParser ? this.parser(this.content) : this.rule === "text" ? j(this.content).map((e) => M(e) ? this.truncatePrecision(e) : e).join("") : this.rule === "numbers" ? j(this.content).filter((e) => M(e)).map((e) => this.truncatePrecision(e)).join(",") : j(this.content).map((e) => M(e) ? this.ruleMethods[this.rule](Number(e)) : e).join("");
|
|
51
|
+
}
|
|
52
|
+
truncatePrecision(e) {
|
|
53
|
+
let t = this.truncateMethods[this.truncate](Number(e) * 10 ** this.precision) / 10 ** this.precision, n = t.toString().split(".");
|
|
54
|
+
if (n.length === 1) return t.toFixed(this.precision);
|
|
55
|
+
let r = n[1].length;
|
|
56
|
+
return r < this.precision ? `${n[0]}.${n[1]}${"0".repeat(this.precision - r)}` : t.toString();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
function j(e) {
|
|
60
|
+
return e.match(/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g) || [];
|
|
61
|
+
}
|
|
62
|
+
function M(e) {
|
|
63
|
+
return !(isNaN(Number(e)) || e.replace(/\s+/g, "") === "");
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/typography/Typography.vue
|
|
67
|
+
var se = /* @__PURE__ */ f({
|
|
68
|
+
name: "Typography",
|
|
69
|
+
inheritAttrs: !1,
|
|
70
|
+
__name: "Typography",
|
|
71
|
+
props: { component: { default: "article" } },
|
|
72
|
+
setup(e) {
|
|
73
|
+
let t = e, n = ae(), r = i(() => ["semi-typography", n.class]), o = i(() => Object.fromEntries(Object.entries(n).filter(([e]) => e !== "class")));
|
|
74
|
+
return (e, n) => (S(), a(ie(t.component), _(o.value, { class: r.value }), {
|
|
75
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
76
|
+
_: 3
|
|
77
|
+
}, 16, ["class"]));
|
|
78
|
+
}
|
|
79
|
+
}), N = f({
|
|
80
|
+
name: "TypographyNodeRenderer",
|
|
81
|
+
props: { content: {
|
|
82
|
+
type: null,
|
|
83
|
+
default: null
|
|
84
|
+
} },
|
|
85
|
+
setup(e) {
|
|
86
|
+
return () => e.content;
|
|
87
|
+
}
|
|
88
|
+
}), P = Object.freeze({
|
|
89
|
+
copy: "复制",
|
|
90
|
+
copied: "复制成功",
|
|
91
|
+
expand: "展开",
|
|
92
|
+
collapse: "收起"
|
|
93
|
+
}), F = Object.freeze({
|
|
94
|
+
copy: "Copy",
|
|
95
|
+
copied: "Copied",
|
|
96
|
+
expand: "Expand",
|
|
97
|
+
collapse: "Collapse"
|
|
98
|
+
}), I = Symbol("typographyLocale"), L = ["title"], R = { key: 1 }, ce = [
|
|
99
|
+
"role",
|
|
100
|
+
"tabindex",
|
|
101
|
+
"aria-label"
|
|
102
|
+
], le = /* @__PURE__ */ f({
|
|
103
|
+
__name: "TypographyCopyable",
|
|
104
|
+
props: {
|
|
105
|
+
config: {},
|
|
106
|
+
content: {}
|
|
107
|
+
},
|
|
108
|
+
emits: ["copy"],
|
|
109
|
+
setup(e, { expose: t, emit: n }) {
|
|
110
|
+
let o = e, c = n, l = h(I, P), f = i(() => E(l)), p = w(!1), m, _ = i(() => p.value ? "semi-typography-action-copied" : "semi-typography-action-copy"), v = i(() => o.config.copyTip ?? f.value.copy), y = i(() => {
|
|
111
|
+
let e = o.config.icon;
|
|
112
|
+
return g(e) ? r(e, {
|
|
113
|
+
role: "button",
|
|
114
|
+
tabindex: 0,
|
|
115
|
+
"aria-label": String(v.value),
|
|
116
|
+
onClick: b,
|
|
117
|
+
onKeydown: x
|
|
118
|
+
}) : e;
|
|
119
|
+
});
|
|
120
|
+
function te(e) {
|
|
121
|
+
if (typeof document > "u") return !1;
|
|
122
|
+
let t = document.createElement("textarea");
|
|
123
|
+
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.opacity = "0", document.body.append(t), t.select();
|
|
124
|
+
let n;
|
|
125
|
+
try {
|
|
126
|
+
n = typeof document.execCommand == "function" && document.execCommand("copy");
|
|
127
|
+
} catch {
|
|
128
|
+
n = !1;
|
|
129
|
+
}
|
|
130
|
+
return t.remove(), !n && typeof navigator < "u" && navigator.clipboard?.writeText && (navigator.clipboard.writeText(e), n = !0), n;
|
|
131
|
+
}
|
|
132
|
+
function b(e) {
|
|
133
|
+
let t = te(o.content);
|
|
134
|
+
o.config.onCopy?.(e, o.content, t), c("copy", e, o.content, t), p.value = !0, m && clearTimeout(m), m = setTimeout(() => {
|
|
135
|
+
p.value = !1, m = void 0;
|
|
136
|
+
}, (o.config.duration ?? 3) * 1e3);
|
|
137
|
+
}
|
|
138
|
+
function x(e) {
|
|
139
|
+
e.key === "Enter" && b(e);
|
|
140
|
+
}
|
|
141
|
+
return ne(() => {
|
|
142
|
+
m && clearTimeout(m);
|
|
143
|
+
}), t({
|
|
144
|
+
copy: b,
|
|
145
|
+
copied: p
|
|
146
|
+
}), (t, n) => e.config.render ? (S(), a(E(N), {
|
|
147
|
+
key: 0,
|
|
148
|
+
content: e.config.render(p.value, b, e.config)
|
|
149
|
+
}, null, 8, ["content"])) : (S(), s("span", {
|
|
150
|
+
key: 1,
|
|
151
|
+
class: ee(_.value),
|
|
152
|
+
title: p.value ? void 0 : String(v.value),
|
|
153
|
+
style: { "margin-left": "4px" }
|
|
154
|
+
}, [p.value ? C(t.$slots, "copied", {}, () => [e.config.successTip === void 0 ? (S(), s("span", R, [d(E(k)), u(T(f.value.copied), 1)])) : (S(), a(E(N), {
|
|
155
|
+
key: 0,
|
|
156
|
+
content: e.config.successTip
|
|
157
|
+
}, null, 8, ["content"]))], void 0, 0) : e.config.icon === void 0 ? (S(), s("a", {
|
|
158
|
+
key: 2,
|
|
159
|
+
class: "semi-typography-action-copy-icon",
|
|
160
|
+
role: t.$slots.icon ? "button" : void 0,
|
|
161
|
+
tabindex: t.$slots.icon ? 0 : void 0,
|
|
162
|
+
"aria-label": t.$slots.icon ? String(v.value) : void 0,
|
|
163
|
+
onClick: n[0] ||= (e) => t.$slots.icon ? b(e) : void 0,
|
|
164
|
+
onKeydown: n[1] ||= (e) => t.$slots.icon ? x(e) : void 0
|
|
165
|
+
}, [C(t.$slots, "icon", {
|
|
166
|
+
copied: p.value,
|
|
167
|
+
copy: b
|
|
168
|
+
}, () => [d(E(oe), {
|
|
169
|
+
role: "button",
|
|
170
|
+
tabindex: "0",
|
|
171
|
+
"aria-label": String(v.value),
|
|
172
|
+
onClick: b,
|
|
173
|
+
onKeydown: x
|
|
174
|
+
}, null, 8, ["aria-label"])])], 40, ce)) : (S(), a(E(N), {
|
|
175
|
+
key: 1,
|
|
176
|
+
content: y.value
|
|
177
|
+
}, null, 8, ["content"]))], 10, L));
|
|
178
|
+
}
|
|
179
|
+
}), ue = f({
|
|
180
|
+
name: "TypographyDecorations",
|
|
181
|
+
props: {
|
|
182
|
+
mark: Boolean,
|
|
183
|
+
code: Boolean,
|
|
184
|
+
underline: Boolean,
|
|
185
|
+
strong: Boolean,
|
|
186
|
+
delete: Boolean,
|
|
187
|
+
disabled: Boolean,
|
|
188
|
+
link: {
|
|
189
|
+
type: [Boolean, Object],
|
|
190
|
+
default: !1
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
setup(e, { slots: t }) {
|
|
194
|
+
return () => {
|
|
195
|
+
let n = t.default?.() ?? [], r = (e, t) => {
|
|
196
|
+
if (!e) return;
|
|
197
|
+
let r = typeof e == "object" ? e : {}, i = n;
|
|
198
|
+
n = m(t, r, Array.isArray(i) ? i : [i]);
|
|
199
|
+
};
|
|
200
|
+
return r(e.mark, "mark"), r(e.code, "code"), r(e.underline && !e.link, "u"), r(e.strong, "strong"), r(e.delete, "del"), r(e.link, e.disabled ? "span" : "a"), n;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/typography/typography-utils.ts
|
|
206
|
+
function de(e) {
|
|
207
|
+
let t = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(t).join("") : g(e) ? typeof e.children == "string" ? e.children : Array.isArray(e.children) ? e.children.map(t).join("") : "" : "";
|
|
208
|
+
return e.map(t).join("");
|
|
209
|
+
}
|
|
210
|
+
function z(t, r) {
|
|
211
|
+
let i = (t) => typeof t == "string" || typeof t == "number" ? r(String(t)) : Array.isArray(t) ? t.map(i) : g(t) ? t.type === n && typeof t.children == "string" ? m(n, null, r(t.children)) : t.type === e && Array.isArray(t.children) ? m(e, null, t.children.map(i)) : typeof t.children == "string" ? m(t.type, t.props, r(t.children)) : Array.isArray(t.children) ? m(t.type, t.props, t.children.map(i)) : t : t;
|
|
212
|
+
return t.map(i);
|
|
213
|
+
}
|
|
214
|
+
function B(e) {
|
|
215
|
+
if (!e) return 0;
|
|
216
|
+
let t = e.match(/^\d*(\.\d*)?/);
|
|
217
|
+
return t ? Number(t[0]) : 0;
|
|
218
|
+
}
|
|
219
|
+
function V(e) {
|
|
220
|
+
return Array.from(e).map((t) => `${t}: ${e.getPropertyValue(t)};`).join("");
|
|
221
|
+
}
|
|
222
|
+
var H;
|
|
223
|
+
function fe(e, t, n, r, i, a, o) {
|
|
224
|
+
if (!n.length || typeof document > "u") return n;
|
|
225
|
+
H ??= document.createElement("div"), H.isConnected || (H.setAttribute("aria-hidden", "true"), document.body.appendChild(H));
|
|
226
|
+
let s = window.getComputedStyle(e);
|
|
227
|
+
H.setAttribute("style", V(s)), H.style.position = "fixed", H.style.left = "0", H.style.top = "-999999px", H.style.zIndex = "-1000", H.style.height = "auto", H.style.textOverflow = "clip", H.style.webkitLineClamp = "none", s.width === "auto" && e.offsetWidth && (H.style.width = `${e.offsetWidth}px`), o && (H.style.fontWeight = "600");
|
|
228
|
+
let c = B(s.lineHeight), l = Math.round(c * (t + 1) + B(s.paddingTop) + B(s.paddingBottom)), u = document.createElement("span"), d = document.createTextNode(n);
|
|
229
|
+
u.append(d), i && u.append(document.createTextNode(i));
|
|
230
|
+
let f = (e) => {
|
|
231
|
+
H.replaceChildren(u);
|
|
232
|
+
for (let t of e ? r : r.slice(1)) t && H.append(t.cloneNode(!0));
|
|
233
|
+
}, p = () => {
|
|
234
|
+
let e = H.scrollWidth <= H.offsetWidth, n = H.scrollHeight < l;
|
|
235
|
+
return t === 1 ? e && n : n;
|
|
236
|
+
}, m = (e) => e ? a === "end" ? `${n.slice(0, e)}...` : `${n.slice(0, e)}...${n.slice(n.length - e)}` : "...";
|
|
237
|
+
if (f(!1), p()) return H.replaceChildren(), n;
|
|
238
|
+
f(!0);
|
|
239
|
+
let h = (e, t) => {
|
|
240
|
+
let n = Math.floor((e + t) / 2), r = m(n);
|
|
241
|
+
if (d.textContent = r, e >= t - 1 && t > 0) for (let n = t; n >= e; --n) {
|
|
242
|
+
let e = m(n);
|
|
243
|
+
if (d.textContent = e, p()) return e;
|
|
244
|
+
}
|
|
245
|
+
else if (t === 0) return "...";
|
|
246
|
+
return p() ? h(n, t) : h(e, n);
|
|
247
|
+
}, g = h(0, a === "middle" ? Math.floor(n.length / 2) : n.length);
|
|
248
|
+
if (a === "end" && g.endsWith("...")) {
|
|
249
|
+
let e = g.length - 3;
|
|
250
|
+
n[e] === " " && (g = `${n.slice(0, e + 1)}...`);
|
|
251
|
+
}
|
|
252
|
+
return H.replaceChildren(), g;
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/typography/TypographyBase.vue?vue&type=script&setup=true&lang.ts
|
|
256
|
+
var pe = {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "semi-typography-icon",
|
|
259
|
+
"x-semi-prop": "icon"
|
|
260
|
+
}, me = ["aria-label"], he = { class: "semi-portal" }, ge = { class: "semi-tooltip-content" }, U = /* @__PURE__ */ f({
|
|
261
|
+
name: "TypographyBase",
|
|
262
|
+
inheritAttrs: !1,
|
|
263
|
+
__name: "TypographyBase",
|
|
264
|
+
props: {
|
|
265
|
+
component: { default: "span" },
|
|
266
|
+
copyable: {
|
|
267
|
+
type: [Boolean, Object],
|
|
268
|
+
default: !1
|
|
269
|
+
},
|
|
270
|
+
delete: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: !1
|
|
273
|
+
},
|
|
274
|
+
disabled: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: !1
|
|
277
|
+
},
|
|
278
|
+
ellipsis: {
|
|
279
|
+
type: [Boolean, Object],
|
|
280
|
+
default: !1
|
|
281
|
+
},
|
|
282
|
+
icon: { type: [
|
|
283
|
+
Object,
|
|
284
|
+
String,
|
|
285
|
+
Number,
|
|
286
|
+
Boolean,
|
|
287
|
+
null,
|
|
288
|
+
Array
|
|
289
|
+
] },
|
|
290
|
+
link: {
|
|
291
|
+
type: [Boolean, Object],
|
|
292
|
+
default: !1
|
|
293
|
+
},
|
|
294
|
+
mark: {
|
|
295
|
+
type: Boolean,
|
|
296
|
+
default: !1
|
|
297
|
+
},
|
|
298
|
+
size: { default: "normal" },
|
|
299
|
+
spacing: { default: "normal" },
|
|
300
|
+
strong: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
default: !1
|
|
303
|
+
},
|
|
304
|
+
type: { default: "primary" },
|
|
305
|
+
underline: {
|
|
306
|
+
type: Boolean,
|
|
307
|
+
default: !1
|
|
308
|
+
},
|
|
309
|
+
weight: {},
|
|
310
|
+
code: {
|
|
311
|
+
type: Boolean,
|
|
312
|
+
default: !1
|
|
313
|
+
},
|
|
314
|
+
headingTag: {},
|
|
315
|
+
heading: {},
|
|
316
|
+
paragraph: {
|
|
317
|
+
type: Boolean,
|
|
318
|
+
default: !1
|
|
319
|
+
},
|
|
320
|
+
content: {}
|
|
321
|
+
},
|
|
322
|
+
emits: ["copy", "expand"],
|
|
323
|
+
setup(n, { emit: f }) {
|
|
324
|
+
let m = n, oe = f, k = ae(), A = D(), j = h(I, P), M = i(() => E(j)), se = h("semiTypographySize", i(() => "normal")), F = i(() => m.size === "inherit" ? se.value : m.size);
|
|
325
|
+
re("semiTypographySize", F);
|
|
326
|
+
let L = w(null), R = w(null), ce = w(null), z = w(!1), B = w(!1), V = w(!1), H = w(""), U = w(!1), W = w({}), G, K, q = "", _e = "", J = i(() => m.content ?? A.default?.() ?? []), Y = i(() => de(J.value)), X = i(() => {
|
|
327
|
+
let e = typeof m.ellipsis == "object" ? m.ellipsis : {};
|
|
328
|
+
return {
|
|
329
|
+
rows: e.rows ?? 1,
|
|
330
|
+
expandable: e.expandable ?? !1,
|
|
331
|
+
expandText: e.expandText ?? (e.expandable ? M.value.expand : void 0),
|
|
332
|
+
collapsible: e.collapsible ?? !1,
|
|
333
|
+
collapseText: e.collapseText ?? (e.collapsible ? M.value.collapse : void 0),
|
|
334
|
+
pos: e.pos ?? "end",
|
|
335
|
+
suffix: e.suffix ?? "",
|
|
336
|
+
showTooltip: e.showTooltip ?? !1,
|
|
337
|
+
onExpand: e.onExpand
|
|
338
|
+
};
|
|
339
|
+
}), Z = i(() => m.copyable ? {
|
|
340
|
+
duration: 3,
|
|
341
|
+
...typeof m.copyable == "object" ? m.copyable : {}
|
|
342
|
+
} : null), ve = i(() => Z.value?.content ?? Y.value), ye = i(() => {
|
|
343
|
+
let e = X.value;
|
|
344
|
+
return JSON.stringify({
|
|
345
|
+
collapsible: e.collapsible,
|
|
346
|
+
collapseText: e.collapseText,
|
|
347
|
+
copyable: !!Z.value,
|
|
348
|
+
expandable: e.expandable,
|
|
349
|
+
expandText: e.expandText,
|
|
350
|
+
pos: e.pos,
|
|
351
|
+
rows: e.rows,
|
|
352
|
+
strong: m.strong,
|
|
353
|
+
suffix: e.suffix
|
|
354
|
+
});
|
|
355
|
+
}), Q = i(() => {
|
|
356
|
+
let e = X.value;
|
|
357
|
+
return !e.expandable && e.expandText === void 0 && !m.copyable && e.pos === "end" && !e.suffix.length;
|
|
358
|
+
}), be = i(() => {
|
|
359
|
+
if (!V.value) return !1;
|
|
360
|
+
let e = X.value;
|
|
361
|
+
return z.value ? e.collapsible || e.collapseText !== void 0 : e.expandable || e.expandText !== void 0;
|
|
362
|
+
}), xe = i(() => z.value ? X.value.collapseText : X.value.expandText), Se = i(() => {
|
|
363
|
+
if (!m.ellipsis) return [];
|
|
364
|
+
let e = X.value.rows, t = !z.value && Q.value;
|
|
365
|
+
return [
|
|
366
|
+
"semi-typography-ellipsis",
|
|
367
|
+
e === 1 ? "semi-typography-ellipsis-single-line" : "semi-typography-ellipsis-multiple-line",
|
|
368
|
+
e > 1 && m.component === "span" ? "semi-typography-ellipsis-multiple-line-text" : null,
|
|
369
|
+
e === 1 && t ? "semi-typography-ellipsis-overflow-ellipsis" : null,
|
|
370
|
+
e === 1 && t && m.component === "span" ? "semi-typography-ellipsis-overflow-ellipsis-text" : null
|
|
371
|
+
];
|
|
372
|
+
}), Ce = i(() => Array.from(/* @__PURE__ */ new Set([
|
|
373
|
+
"semi-typography",
|
|
374
|
+
m.paragraph ? "semi-typography-paragraph" : null,
|
|
375
|
+
m.link ? "semi-typography-link" : `semi-typography-${m.type}`,
|
|
376
|
+
`semi-typography-${F.value}`,
|
|
377
|
+
m.disabled ? "semi-typography-disabled" : null,
|
|
378
|
+
`semi-typography-${m.spacing}`,
|
|
379
|
+
m.headingTag ? `semi-typography-${m.headingTag}` : null,
|
|
380
|
+
m.headingTag && typeof m.weight == "string" ? `semi-typography-${m.headingTag}-weight-${m.weight}` : null,
|
|
381
|
+
...Se.value,
|
|
382
|
+
k.class
|
|
383
|
+
]))), we = i(() => [
|
|
384
|
+
k.style,
|
|
385
|
+
typeof m.weight == "number" ? { fontWeight: m.weight } : {},
|
|
386
|
+
m.ellipsis && !z.value && Q.value && X.value.rows > 1 ? { webkitLineClamp: String(X.value.rows) } : {}
|
|
387
|
+
]), Te = i(() => Object.fromEntries(Object.entries(k).filter(([e]) => !["class", "style"].includes(e)))), Ee = i(() => [m.link ? "semi-typography-link-text" : null, m.link && m.underline ? "semi-typography-link-underline" : null]), De = i(() => {
|
|
388
|
+
let e = A.icon?.() ?? m.icon ?? null, t = F.value === "small" ? "small" : "default", n = (e) => g(e) && e.type.elementType === "Icon" ? r(e, { size: t }) : e;
|
|
389
|
+
return Array.isArray(e) ? e.map(n) : n(e);
|
|
390
|
+
}), Oe = i(() => typeof X.value.showTooltip == "object" ? X.value.showTooltip : { type: "tooltip" });
|
|
391
|
+
function ke() {
|
|
392
|
+
let e = L.value;
|
|
393
|
+
if (!e || typeof document > "u" || !document.createRange) return !1;
|
|
394
|
+
let t = window.getComputedStyle(e), n = Math.max(0, e.clientWidth - (Number.parseFloat(t.paddingLeft) || 0) - (Number.parseFloat(t.paddingRight) || 0)), r = document.createRange();
|
|
395
|
+
if (typeof r.getBoundingClientRect != "function") return e.scrollWidth > n;
|
|
396
|
+
let i = Array.from(e.childNodes).reduce((e, t) => (r.selectNodeContents(t), e + (r.getBoundingClientRect().width || 0)), 0);
|
|
397
|
+
return r.detach(), i > n;
|
|
398
|
+
}
|
|
399
|
+
function Ae() {
|
|
400
|
+
let e = L.value, t = X.value.rows;
|
|
401
|
+
return !e || t < 1 ? !1 : t <= 1 ? ke() : e.scrollHeight > e.offsetHeight;
|
|
402
|
+
}
|
|
403
|
+
async function je() {
|
|
404
|
+
await v();
|
|
405
|
+
let e = L.value;
|
|
406
|
+
if (!m.ellipsis || !e || z.value) return;
|
|
407
|
+
if (q = Y.value, _e = ye.value, Q.value) {
|
|
408
|
+
B.value = Ae(), V.value = !1;
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
let t = [];
|
|
412
|
+
R.value && t.push(R.value);
|
|
413
|
+
let n = ce.value?.$el;
|
|
414
|
+
n && t.push(n);
|
|
415
|
+
let r = fe(e, X.value.rows, Y.value, t, X.value.suffix, X.value.pos, m.strong);
|
|
416
|
+
H.value = r, V.value = r !== Y.value, B.value = !1;
|
|
417
|
+
}
|
|
418
|
+
function $() {
|
|
419
|
+
typeof window > "u" || (K !== void 0 && window.cancelAnimationFrame(K), K = window.requestAnimationFrame(() => {
|
|
420
|
+
K = void 0, je();
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
function Me(e) {
|
|
424
|
+
let t = !z.value;
|
|
425
|
+
X.value.onExpand?.(t, e), oe("expand", t, e);
|
|
426
|
+
let n = X.value;
|
|
427
|
+
(n.expandable && !z.value || n.collapsible && z.value || !z.value && n.expandText !== void 0 || z.value && n.collapseText !== void 0) && (z.value = t, z.value || $());
|
|
428
|
+
}
|
|
429
|
+
function Ne(e) {
|
|
430
|
+
e.key === "Enter" && Me(e);
|
|
431
|
+
}
|
|
432
|
+
function Pe() {
|
|
433
|
+
Q.value && (B.value = Ae());
|
|
434
|
+
let e = Q.value ? B.value : V.value, t = !X.value.expandable && X.value.expandText === void 0;
|
|
435
|
+
if (!z.value && e && t && X.value.showTooltip) {
|
|
436
|
+
let e = L.value?.getBoundingClientRect();
|
|
437
|
+
e && (W.value = {
|
|
438
|
+
position: "fixed",
|
|
439
|
+
left: `${e.left + e.width / 2}px`,
|
|
440
|
+
top: `${Math.max(8, e.top - 8)}px`,
|
|
441
|
+
transform: "translate(-50%, -100%)",
|
|
442
|
+
zIndex: 1060
|
|
443
|
+
}), U.value = !0;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function Fe() {
|
|
447
|
+
U.value = !1;
|
|
448
|
+
}
|
|
449
|
+
return b(() => {
|
|
450
|
+
H.value = Y.value, m.ellipsis && ($(), typeof ResizeObserver < "u" && L.value && (G = new ResizeObserver($), G.observe(L.value), L.value.parentElement && G.observe(L.value.parentElement)));
|
|
451
|
+
}), x(() => {
|
|
452
|
+
m.ellipsis && (Y.value !== q || ye.value !== _e) && (z.value = !1, $());
|
|
453
|
+
}), ne(() => {
|
|
454
|
+
G?.disconnect(), K !== void 0 && typeof window < "u" && window.cancelAnimationFrame(K);
|
|
455
|
+
}), (r, i) => (S(), a(ie(n.component), _({
|
|
456
|
+
ref_key: "root",
|
|
457
|
+
ref: L
|
|
458
|
+
}, Te.value, {
|
|
459
|
+
class: Ce.value,
|
|
460
|
+
style: we.value
|
|
461
|
+
}), {
|
|
462
|
+
default: O(() => [
|
|
463
|
+
d(E(ue), {
|
|
464
|
+
mark: n.mark,
|
|
465
|
+
code: n.code,
|
|
466
|
+
underline: n.underline,
|
|
467
|
+
strong: n.strong,
|
|
468
|
+
delete: m.delete,
|
|
469
|
+
disabled: n.disabled,
|
|
470
|
+
link: n.link
|
|
471
|
+
}, {
|
|
472
|
+
default: O(() => [De.value ? (S(), s("span", pe, [d(E(N), { content: De.value }, null, 8, ["content"])])) : o("", !0), n.link ? (S(), s("span", {
|
|
473
|
+
key: 1,
|
|
474
|
+
class: ee(Ee.value)
|
|
475
|
+
}, [n.ellipsis ? (S(), s("span", {
|
|
476
|
+
key: 0,
|
|
477
|
+
onMouseenter: Pe,
|
|
478
|
+
onMouseleave: Fe
|
|
479
|
+
}, [z.value || !V.value ? (S(), s(e, { key: 0 }, [d(E(N), { content: J.value }, null, 8, ["content"]), u(T(X.value.suffix), 1)], 64)) : (S(), s(e, { key: 1 }, [u(T(H.value) + T(X.value.suffix), 1)], 64))], 32)) : (S(), a(E(N), {
|
|
480
|
+
key: 1,
|
|
481
|
+
content: J.value
|
|
482
|
+
}, null, 8, ["content"]))], 2)) : (S(), s(e, { key: 2 }, [n.ellipsis ? (S(), s("span", {
|
|
483
|
+
key: 0,
|
|
484
|
+
onMouseenter: Pe,
|
|
485
|
+
onMouseleave: Fe
|
|
486
|
+
}, [z.value || !V.value ? (S(), s(e, { key: 0 }, [d(E(N), { content: J.value }, null, 8, ["content"]), u(T(X.value.suffix), 1)], 64)) : (S(), s(e, { key: 1 }, [u(T(H.value) + T(X.value.suffix), 1)], 64))], 32)) : (S(), a(E(N), {
|
|
487
|
+
key: 1,
|
|
488
|
+
content: J.value
|
|
489
|
+
}, null, 8, ["content"]))], 64))]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, [
|
|
492
|
+
"mark",
|
|
493
|
+
"code",
|
|
494
|
+
"underline",
|
|
495
|
+
"strong",
|
|
496
|
+
"delete",
|
|
497
|
+
"disabled",
|
|
498
|
+
"link"
|
|
499
|
+
]),
|
|
500
|
+
be.value ? (S(), s("a", {
|
|
501
|
+
key: 0,
|
|
502
|
+
ref_key: "expandElement",
|
|
503
|
+
ref: R,
|
|
504
|
+
role: "button",
|
|
505
|
+
tabindex: "0",
|
|
506
|
+
class: "semi-typography-ellipsis-expand",
|
|
507
|
+
"aria-label": xe.value,
|
|
508
|
+
onClick: Me,
|
|
509
|
+
onKeydown: Ne
|
|
510
|
+
}, T(xe.value), 41, me)) : o("", !0),
|
|
511
|
+
Z.value ? (S(), a(le, {
|
|
512
|
+
key: 1,
|
|
513
|
+
ref_key: "copyElement",
|
|
514
|
+
ref: ce,
|
|
515
|
+
config: Z.value,
|
|
516
|
+
content: ve.value,
|
|
517
|
+
onCopy: i[0] ||= (...e) => oe("copy", ...e)
|
|
518
|
+
}, l({ _: 2 }, [r.$slots.copyIcon ? {
|
|
519
|
+
name: "icon",
|
|
520
|
+
fn: O((e) => [C(r.$slots, "copyIcon", y(p(e)))]),
|
|
521
|
+
key: "0"
|
|
522
|
+
} : void 0, r.$slots.copied ? {
|
|
523
|
+
name: "copied",
|
|
524
|
+
fn: O(() => [C(r.$slots, "copied")]),
|
|
525
|
+
key: "1"
|
|
526
|
+
} : void 0]), 1032, ["config", "content"])) : o("", !0),
|
|
527
|
+
U.value ? (S(), a(t, {
|
|
528
|
+
key: 2,
|
|
529
|
+
to: "body"
|
|
530
|
+
}, [c("div", he, [c("div", {
|
|
531
|
+
class: "semi-portal-inner",
|
|
532
|
+
style: te(W.value)
|
|
533
|
+
}, [C(r.$slots, "tooltip", { content: Y.value }, () => [c("div", {
|
|
534
|
+
class: ee([Oe.value.type?.toLowerCase() === "popover" ? "semi-popover-wrapper" : "semi-tooltip-wrapper semi-tooltip-wrapper-show", Oe.value.opts?.className]),
|
|
535
|
+
style: te(Oe.value.opts?.style),
|
|
536
|
+
role: "tooltip"
|
|
537
|
+
}, [c("div", ge, T(Y.value), 1)], 6)])], 4)])])) : o("", !0)
|
|
538
|
+
]),
|
|
539
|
+
_: 3
|
|
540
|
+
}, 16, ["class", "style"]));
|
|
541
|
+
}
|
|
542
|
+
}), W = /* @__PURE__ */ f({
|
|
543
|
+
name: "TypographyNumeral",
|
|
544
|
+
__name: "Numeral",
|
|
545
|
+
props: {
|
|
546
|
+
code: {
|
|
547
|
+
type: Boolean,
|
|
548
|
+
default: !1
|
|
549
|
+
},
|
|
550
|
+
rule: { default: "text" },
|
|
551
|
+
precision: { default: 0 },
|
|
552
|
+
truncate: { default: "round" },
|
|
553
|
+
parser: {},
|
|
554
|
+
component: { default: "span" },
|
|
555
|
+
copyable: {
|
|
556
|
+
type: [Boolean, Object],
|
|
557
|
+
default: !1
|
|
558
|
+
},
|
|
559
|
+
delete: {
|
|
560
|
+
type: Boolean,
|
|
561
|
+
default: !1
|
|
562
|
+
},
|
|
563
|
+
disabled: {
|
|
564
|
+
type: Boolean,
|
|
565
|
+
default: !1
|
|
566
|
+
},
|
|
567
|
+
icon: { type: [
|
|
568
|
+
Object,
|
|
569
|
+
String,
|
|
570
|
+
Number,
|
|
571
|
+
Boolean,
|
|
572
|
+
null,
|
|
573
|
+
Array
|
|
574
|
+
] },
|
|
575
|
+
link: {
|
|
576
|
+
type: [Boolean, Object],
|
|
577
|
+
default: !1
|
|
578
|
+
},
|
|
579
|
+
mark: {
|
|
580
|
+
type: Boolean,
|
|
581
|
+
default: !1
|
|
582
|
+
},
|
|
583
|
+
size: { default: "normal" },
|
|
584
|
+
strong: {
|
|
585
|
+
type: Boolean,
|
|
586
|
+
default: !1
|
|
587
|
+
},
|
|
588
|
+
type: { default: "primary" },
|
|
589
|
+
underline: {
|
|
590
|
+
type: Boolean,
|
|
591
|
+
default: !1
|
|
592
|
+
},
|
|
593
|
+
weight: {}
|
|
594
|
+
},
|
|
595
|
+
emits: ["copy", "expand"],
|
|
596
|
+
setup(e, { emit: t }) {
|
|
597
|
+
let n = e, r = t, o = D(), s = i(() => z(o.default?.() ?? [], (e) => new A(e, n.rule, n.precision, n.truncate, n.parser).format()));
|
|
598
|
+
return (t, i) => (S(), a(U, {
|
|
599
|
+
component: e.component,
|
|
600
|
+
copyable: e.copyable,
|
|
601
|
+
delete: n.delete,
|
|
602
|
+
disabled: e.disabled,
|
|
603
|
+
icon: e.icon,
|
|
604
|
+
link: e.link,
|
|
605
|
+
mark: e.mark,
|
|
606
|
+
size: e.size,
|
|
607
|
+
strong: e.strong,
|
|
608
|
+
type: e.type,
|
|
609
|
+
underline: e.underline,
|
|
610
|
+
code: e.code,
|
|
611
|
+
content: s.value,
|
|
612
|
+
onCopy: i[0] ||= (...e) => r("copy", ...e),
|
|
613
|
+
onExpand: i[1] ||= (...e) => r("expand", ...e)
|
|
614
|
+
}, l({ _: 2 }, [
|
|
615
|
+
E(o).icon ? {
|
|
616
|
+
name: "icon",
|
|
617
|
+
fn: O(() => [C(t.$slots, "icon")]),
|
|
618
|
+
key: "0"
|
|
619
|
+
} : void 0,
|
|
620
|
+
E(o).copyIcon ? {
|
|
621
|
+
name: "copyIcon",
|
|
622
|
+
fn: O((e) => [C(t.$slots, "copyIcon", y(p(e)))]),
|
|
623
|
+
key: "1"
|
|
624
|
+
} : void 0,
|
|
625
|
+
E(o).copied ? {
|
|
626
|
+
name: "copied",
|
|
627
|
+
fn: O(() => [C(t.$slots, "copied")]),
|
|
628
|
+
key: "2"
|
|
629
|
+
} : void 0
|
|
630
|
+
]), 1032, [
|
|
631
|
+
"component",
|
|
632
|
+
"copyable",
|
|
633
|
+
"delete",
|
|
634
|
+
"disabled",
|
|
635
|
+
"icon",
|
|
636
|
+
"link",
|
|
637
|
+
"mark",
|
|
638
|
+
"size",
|
|
639
|
+
"strong",
|
|
640
|
+
"type",
|
|
641
|
+
"underline",
|
|
642
|
+
"code",
|
|
643
|
+
"content"
|
|
644
|
+
]));
|
|
645
|
+
}
|
|
646
|
+
}), G = /* @__PURE__ */ f({
|
|
647
|
+
name: "TypographyParagraph",
|
|
648
|
+
__name: "Paragraph",
|
|
649
|
+
props: {
|
|
650
|
+
spacing: { default: "normal" },
|
|
651
|
+
component: { default: "p" },
|
|
652
|
+
copyable: {
|
|
653
|
+
type: [Boolean, Object],
|
|
654
|
+
default: !1
|
|
655
|
+
},
|
|
656
|
+
delete: {
|
|
657
|
+
type: Boolean,
|
|
658
|
+
default: !1
|
|
659
|
+
},
|
|
660
|
+
disabled: {
|
|
661
|
+
type: Boolean,
|
|
662
|
+
default: !1
|
|
663
|
+
},
|
|
664
|
+
ellipsis: {
|
|
665
|
+
type: [Boolean, Object],
|
|
666
|
+
default: !1
|
|
667
|
+
},
|
|
668
|
+
link: {
|
|
669
|
+
type: [Boolean, Object],
|
|
670
|
+
default: !1
|
|
671
|
+
},
|
|
672
|
+
mark: {
|
|
673
|
+
type: Boolean,
|
|
674
|
+
default: !1
|
|
675
|
+
},
|
|
676
|
+
size: { default: "normal" },
|
|
677
|
+
strong: {
|
|
678
|
+
type: Boolean,
|
|
679
|
+
default: !1
|
|
680
|
+
},
|
|
681
|
+
type: { default: "primary" },
|
|
682
|
+
underline: {
|
|
683
|
+
type: Boolean,
|
|
684
|
+
default: !1
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
emits: ["copy", "expand"],
|
|
688
|
+
setup(e, { emit: t }) {
|
|
689
|
+
let n = e, r = t, i = D();
|
|
690
|
+
return (e, t) => (S(), a(U, _(n, {
|
|
691
|
+
paragraph: "",
|
|
692
|
+
onCopy: t[0] ||= (...e) => r("copy", ...e),
|
|
693
|
+
onExpand: t[1] ||= (...e) => r("expand", ...e)
|
|
694
|
+
}), l({
|
|
695
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
696
|
+
_: 2
|
|
697
|
+
}, [
|
|
698
|
+
E(i).copyIcon ? {
|
|
699
|
+
name: "copyIcon",
|
|
700
|
+
fn: O((t) => [C(e.$slots, "copyIcon", y(p(t)))]),
|
|
701
|
+
key: "0"
|
|
702
|
+
} : void 0,
|
|
703
|
+
E(i).copied ? {
|
|
704
|
+
name: "copied",
|
|
705
|
+
fn: O(() => [C(e.$slots, "copied")]),
|
|
706
|
+
key: "1"
|
|
707
|
+
} : void 0,
|
|
708
|
+
E(i).tooltip ? {
|
|
709
|
+
name: "tooltip",
|
|
710
|
+
fn: O((t) => [C(e.$slots, "tooltip", y(p(t)))]),
|
|
711
|
+
key: "2"
|
|
712
|
+
} : void 0
|
|
713
|
+
]), 1040));
|
|
714
|
+
}
|
|
715
|
+
}), K = /* @__PURE__ */ f({
|
|
716
|
+
name: "TypographyText",
|
|
717
|
+
__name: "Text",
|
|
718
|
+
props: {
|
|
719
|
+
code: {
|
|
720
|
+
type: Boolean,
|
|
721
|
+
default: !1
|
|
722
|
+
},
|
|
723
|
+
weight: {},
|
|
724
|
+
component: { default: "span" },
|
|
725
|
+
copyable: {
|
|
726
|
+
type: [Boolean, Object],
|
|
727
|
+
default: !1
|
|
728
|
+
},
|
|
729
|
+
delete: {
|
|
730
|
+
type: Boolean,
|
|
731
|
+
default: !1
|
|
732
|
+
},
|
|
733
|
+
disabled: {
|
|
734
|
+
type: Boolean,
|
|
735
|
+
default: !1
|
|
736
|
+
},
|
|
737
|
+
ellipsis: {
|
|
738
|
+
type: [Boolean, Object],
|
|
739
|
+
default: !1
|
|
740
|
+
},
|
|
741
|
+
icon: { type: [
|
|
742
|
+
Object,
|
|
743
|
+
String,
|
|
744
|
+
Number,
|
|
745
|
+
Boolean,
|
|
746
|
+
null,
|
|
747
|
+
Array
|
|
748
|
+
] },
|
|
749
|
+
link: {
|
|
750
|
+
type: [Boolean, Object],
|
|
751
|
+
default: !1
|
|
752
|
+
},
|
|
753
|
+
mark: {
|
|
754
|
+
type: Boolean,
|
|
755
|
+
default: !1
|
|
756
|
+
},
|
|
757
|
+
size: { default: "normal" },
|
|
758
|
+
strong: {
|
|
759
|
+
type: Boolean,
|
|
760
|
+
default: !1
|
|
761
|
+
},
|
|
762
|
+
type: { default: "primary" },
|
|
763
|
+
underline: {
|
|
764
|
+
type: Boolean,
|
|
765
|
+
default: !1
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
emits: ["copy", "expand"],
|
|
769
|
+
setup(e, { emit: t }) {
|
|
770
|
+
let n = e, r = t, i = D();
|
|
771
|
+
return (e, t) => (S(), a(U, _(n, {
|
|
772
|
+
onCopy: t[0] ||= (...e) => r("copy", ...e),
|
|
773
|
+
onExpand: t[1] ||= (...e) => r("expand", ...e)
|
|
774
|
+
}), l({
|
|
775
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
776
|
+
_: 2
|
|
777
|
+
}, [
|
|
778
|
+
E(i).icon ? {
|
|
779
|
+
name: "icon",
|
|
780
|
+
fn: O(() => [C(e.$slots, "icon")]),
|
|
781
|
+
key: "0"
|
|
782
|
+
} : void 0,
|
|
783
|
+
E(i).copyIcon ? {
|
|
784
|
+
name: "copyIcon",
|
|
785
|
+
fn: O((t) => [C(e.$slots, "copyIcon", y(p(t)))]),
|
|
786
|
+
key: "1"
|
|
787
|
+
} : void 0,
|
|
788
|
+
E(i).copied ? {
|
|
789
|
+
name: "copied",
|
|
790
|
+
fn: O(() => [C(e.$slots, "copied")]),
|
|
791
|
+
key: "2"
|
|
792
|
+
} : void 0,
|
|
793
|
+
E(i).tooltip ? {
|
|
794
|
+
name: "tooltip",
|
|
795
|
+
fn: O((t) => [C(e.$slots, "tooltip", y(p(t)))]),
|
|
796
|
+
key: "3"
|
|
797
|
+
} : void 0
|
|
798
|
+
]), 1040));
|
|
799
|
+
}
|
|
800
|
+
}), q = /* @__PURE__ */ f({
|
|
801
|
+
name: "TypographyTitle",
|
|
802
|
+
__name: "Title",
|
|
803
|
+
props: {
|
|
804
|
+
heading: { default: 1 },
|
|
805
|
+
component: {},
|
|
806
|
+
copyable: {
|
|
807
|
+
type: [Boolean, Object],
|
|
808
|
+
default: !1
|
|
809
|
+
},
|
|
810
|
+
delete: {
|
|
811
|
+
type: Boolean,
|
|
812
|
+
default: !1
|
|
813
|
+
},
|
|
814
|
+
disabled: {
|
|
815
|
+
type: Boolean,
|
|
816
|
+
default: !1
|
|
817
|
+
},
|
|
818
|
+
ellipsis: {
|
|
819
|
+
type: [Boolean, Object],
|
|
820
|
+
default: !1
|
|
821
|
+
},
|
|
822
|
+
link: {
|
|
823
|
+
type: [Boolean, Object],
|
|
824
|
+
default: !1
|
|
825
|
+
},
|
|
826
|
+
mark: {
|
|
827
|
+
type: Boolean,
|
|
828
|
+
default: !1
|
|
829
|
+
},
|
|
830
|
+
strong: {
|
|
831
|
+
type: Boolean,
|
|
832
|
+
default: !1
|
|
833
|
+
},
|
|
834
|
+
type: { default: "primary" },
|
|
835
|
+
underline: {
|
|
836
|
+
type: Boolean,
|
|
837
|
+
default: !1
|
|
838
|
+
},
|
|
839
|
+
weight: {}
|
|
840
|
+
},
|
|
841
|
+
emits: ["copy", "expand"],
|
|
842
|
+
setup(e, { emit: t }) {
|
|
843
|
+
let n = e, r = t, o = D(), s = i(() => `h${n.heading}`), c = i(() => n.component ?? s.value);
|
|
844
|
+
return (e, t) => (S(), a(U, _(n, {
|
|
845
|
+
component: c.value,
|
|
846
|
+
"heading-tag": s.value,
|
|
847
|
+
onCopy: t[0] ||= (...e) => r("copy", ...e),
|
|
848
|
+
onExpand: t[1] ||= (...e) => r("expand", ...e)
|
|
849
|
+
}), l({
|
|
850
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
851
|
+
_: 2
|
|
852
|
+
}, [
|
|
853
|
+
E(o).copyIcon ? {
|
|
854
|
+
name: "copyIcon",
|
|
855
|
+
fn: O((t) => [C(e.$slots, "copyIcon", y(p(t)))]),
|
|
856
|
+
key: "0"
|
|
857
|
+
} : void 0,
|
|
858
|
+
E(o).copied ? {
|
|
859
|
+
name: "copied",
|
|
860
|
+
fn: O(() => [C(e.$slots, "copied")]),
|
|
861
|
+
key: "1"
|
|
862
|
+
} : void 0,
|
|
863
|
+
E(o).tooltip ? {
|
|
864
|
+
name: "tooltip",
|
|
865
|
+
fn: O((t) => [C(e.$slots, "tooltip", y(p(t)))]),
|
|
866
|
+
key: "2"
|
|
867
|
+
} : void 0
|
|
868
|
+
]), 1040, ["component", "heading-tag"]));
|
|
869
|
+
}
|
|
870
|
+
}), _e = [
|
|
871
|
+
"primary",
|
|
872
|
+
"secondary",
|
|
873
|
+
"danger",
|
|
874
|
+
"warning",
|
|
875
|
+
"success",
|
|
876
|
+
"tertiary",
|
|
877
|
+
"quaternary"
|
|
878
|
+
], J = [
|
|
879
|
+
"normal",
|
|
880
|
+
"small",
|
|
881
|
+
"inherit"
|
|
882
|
+
], Y = ["normal", "extended"], X = [
|
|
883
|
+
1,
|
|
884
|
+
2,
|
|
885
|
+
3,
|
|
886
|
+
4,
|
|
887
|
+
5,
|
|
888
|
+
6
|
|
889
|
+
], Z = [
|
|
890
|
+
"light",
|
|
891
|
+
"regular",
|
|
892
|
+
"medium",
|
|
893
|
+
"semibold",
|
|
894
|
+
"bold",
|
|
895
|
+
"default"
|
|
896
|
+
], ve = [
|
|
897
|
+
"text",
|
|
898
|
+
"numbers",
|
|
899
|
+
"bytes-decimal",
|
|
900
|
+
"bytes-binary",
|
|
901
|
+
"percentages",
|
|
902
|
+
"exponential"
|
|
903
|
+
], ye = [
|
|
904
|
+
"ceil",
|
|
905
|
+
"floor",
|
|
906
|
+
"round"
|
|
907
|
+
], Q = Object.assign(se, {
|
|
908
|
+
Text: K,
|
|
909
|
+
Title: q,
|
|
910
|
+
Paragraph: G,
|
|
911
|
+
Numeral: W
|
|
912
|
+
});
|
|
913
|
+
//#endregion
|
|
914
|
+
export { Y as a, Z as c, G as d, W as f, I as h, J as i, q as l, F as m, X as n, ye as o, P as p, ve as r, _e as s, Q as t, K as u };
|