@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,1321 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { d as e, s as t, t as n } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t as r } from "./config-context-CyynTtDb.js";
|
|
4
|
+
import { n as i } from "./config-provider-VMfNNSF1.js";
|
|
5
|
+
import { Comment as a, Fragment as o, Teleport as s, Text as c, cloneVNode as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createVNode as g, defineComponent as _, getCurrentInstance as v, h as y, inject as b, isVNode as x, markRaw as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, openBlock as k, renderSlot as A, shallowReactive as j, shallowRef as M, unref as N, useSlots as P, watch as F, withCtx as I } from "vue";
|
|
6
|
+
//#region bundled-foundation
|
|
7
|
+
function L(e) {
|
|
8
|
+
e.stopPropagation(), e.preventDefault();
|
|
9
|
+
}
|
|
10
|
+
function R(e) {
|
|
11
|
+
return e.length === 1 && e.match(/\S/);
|
|
12
|
+
}
|
|
13
|
+
function z(e, t) {
|
|
14
|
+
for (let n = 0; n < e.length; n++) e[n] === t ? (e[n].tabIndex = 0, e[n].focus()) : e[n].tabIndex = -1;
|
|
15
|
+
}
|
|
16
|
+
function B(e) {
|
|
17
|
+
e.length > 0 && z(e, e[0]);
|
|
18
|
+
}
|
|
19
|
+
function V(e) {
|
|
20
|
+
e.length > 0 && z(e, e[e.length - 1]);
|
|
21
|
+
}
|
|
22
|
+
function H(e, t) {
|
|
23
|
+
let n, r;
|
|
24
|
+
e.length > 0 && (t === e[0] ? n = e[e.length - 1] : (r = e.indexOf(t), n = e[r - 1]), z(e, n));
|
|
25
|
+
}
|
|
26
|
+
function U(e, t) {
|
|
27
|
+
let n, r;
|
|
28
|
+
e.length > 0 && (t === e[e.length - 1] ? n = e[0] : (r = e.indexOf(t), n = e[r + 1]), z(e, n));
|
|
29
|
+
}
|
|
30
|
+
function W(e, t, n, r) {
|
|
31
|
+
let i, a;
|
|
32
|
+
return !e || !n || !r || r.length > 1 ? -1 : (r = r.toLowerCase(), i = e.indexOf(t) + 1, i >= e.length && (i = 0), a = n.indexOf(r, i), a === -1 && (a = n.indexOf(r, 0)), a >= 0 ? a : -1);
|
|
33
|
+
}
|
|
34
|
+
function ee(e, n) {
|
|
35
|
+
if (!e) return null;
|
|
36
|
+
for (; e.parentElement && (0, t.default)(e.parentElement, "attributes.role.value", "") !== n;) e = e.parentElement;
|
|
37
|
+
return e.parentElement;
|
|
38
|
+
}
|
|
39
|
+
function te(e, t) {
|
|
40
|
+
for (let n = 0; n < e.length; n++) {
|
|
41
|
+
let r = e[n].attributes["data-popupid"];
|
|
42
|
+
if (r && r.value === t) return e[n];
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region bundled-foundation
|
|
48
|
+
var G = {
|
|
49
|
+
TOP: /top/i,
|
|
50
|
+
RIGHT: /right/i,
|
|
51
|
+
BOTTOM: /bottom/i,
|
|
52
|
+
LEFT: /left/i
|
|
53
|
+
}, K = {
|
|
54
|
+
left: 0,
|
|
55
|
+
top: 0,
|
|
56
|
+
height: 0,
|
|
57
|
+
width: 0,
|
|
58
|
+
scrollLeft: 0,
|
|
59
|
+
scrollTop: 0
|
|
60
|
+
}, ne = class extends n {
|
|
61
|
+
constructor(t) {
|
|
62
|
+
super({ ...t }), this.removePortal = () => {
|
|
63
|
+
this._adapter.removePortal();
|
|
64
|
+
}, this.setDisplayNone = (e, t) => {
|
|
65
|
+
this._adapter.setDisplayNone(e, t);
|
|
66
|
+
}, this.updateStateIfCursorOnTrigger = (e) => {
|
|
67
|
+
if (e?.matches?.(":hover")) {
|
|
68
|
+
let e = this._adapter.getEventName();
|
|
69
|
+
this.getState("triggerEventSet")[e.mouseEnter]?.();
|
|
70
|
+
}
|
|
71
|
+
}, this.onResize = () => {
|
|
72
|
+
this.getState("visible") && this.calcPosition();
|
|
73
|
+
}, this.delayShow = () => {
|
|
74
|
+
let e = this.getProp("mouseEnterDelay");
|
|
75
|
+
this.clearDelayTimer(), e > 0 ? this._timer = setTimeout(() => {
|
|
76
|
+
this.show(), this.clearDelayTimer();
|
|
77
|
+
}, e) : this.show();
|
|
78
|
+
}, this.show = () => {
|
|
79
|
+
if (this._initContainerPosition(), this._adapter.getAnimatingState()) return;
|
|
80
|
+
let e = this.getProp("content"), t = this.getProp("trigger"), n = this.getProp("clickTriggerToHide"), { visible: r, displayNone: i } = this.getStates();
|
|
81
|
+
if (i && this.setDisplayNone(!1), !r) {
|
|
82
|
+
if (this.clearDelayTimer(), this._adapter.on("portalInserted", () => {
|
|
83
|
+
this.calcPosition();
|
|
84
|
+
}), t === "hover") {
|
|
85
|
+
let e = () => {
|
|
86
|
+
let n = this._adapter.getTriggerDOM();
|
|
87
|
+
t && !n?.matches?.(":hover") && this.hide(), this._adapter.off("portalInserted", e);
|
|
88
|
+
};
|
|
89
|
+
this._adapter.on("portalInserted", e);
|
|
90
|
+
}
|
|
91
|
+
this._adapter.on("positionUpdated", () => {
|
|
92
|
+
this._togglePortalVisible(!0);
|
|
93
|
+
}), this._adapter.insertPortal(e, {
|
|
94
|
+
left: -9999,
|
|
95
|
+
top: -9999
|
|
96
|
+
}), t === "custom" && this._adapter.registerClickOutsideHandler(() => {}), (t === "click" || n || t === "contextMenu") && this._adapter.registerClickOutsideHandler(this.hide), this._bindScrollEvent(), this._bindResizeEvent();
|
|
97
|
+
}
|
|
98
|
+
}, this.calcPosition = (t, n, r, i = !0) => {
|
|
99
|
+
t = ((0, e.default)(t) ? this._adapter.getTriggerBounding() : t) || { ...K }, r = ((0, e.default)(r) ? this._adapter.getPopupContainerRect() : r) || { ...K }, n = ((0, e.default)(n) ? this._adapter.getWrapperBounding() : n) || { ...K };
|
|
100
|
+
let a = this.calcPosStyle({
|
|
101
|
+
triggerRect: t,
|
|
102
|
+
wrapperRect: n,
|
|
103
|
+
containerRect: r
|
|
104
|
+
}), o = this.getProp("position");
|
|
105
|
+
if (this.getProp("autoAdjustOverflow")) {
|
|
106
|
+
let { position: e, isHeightOverFlow: i, isWidthOverFlow: s } = this.adjustPosIfNeed(o, a, t, n, r);
|
|
107
|
+
(o !== e || i || s) && (o = e, a = this.calcPosStyle({
|
|
108
|
+
triggerRect: t,
|
|
109
|
+
wrapperRect: n,
|
|
110
|
+
containerRect: r,
|
|
111
|
+
position: o,
|
|
112
|
+
spacing: null,
|
|
113
|
+
isOverFlow: [i, s]
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
return i && this._mounted && this._adapter.setPosition({
|
|
117
|
+
...a,
|
|
118
|
+
position: o
|
|
119
|
+
}), a;
|
|
120
|
+
}, this.delayHide = () => {
|
|
121
|
+
let e = this.getProp("mouseLeaveDelay");
|
|
122
|
+
this.clearDelayTimer(), e > 0 ? this._timer = setTimeout(() => {
|
|
123
|
+
this.hide(), this.clearDelayTimer();
|
|
124
|
+
}, e) : this.hide();
|
|
125
|
+
}, this.hide = () => {
|
|
126
|
+
this.clearDelayTimer(), this._togglePortalVisible(!1), this._adapter.off("portalInserted"), this._adapter.off("positionUpdated");
|
|
127
|
+
}, this.handleContainerKeydown = (e) => {
|
|
128
|
+
let { guardFocus: t, closeOnEsc: n } = this.getProps();
|
|
129
|
+
switch (e && e.key) {
|
|
130
|
+
case "Escape":
|
|
131
|
+
n && this._handleEscKeyDown(e);
|
|
132
|
+
break;
|
|
133
|
+
case "Tab": if (t) {
|
|
134
|
+
let t = this._adapter.getContainer(), n = this._adapter.getFocusableElements(t);
|
|
135
|
+
n.length && (e.shiftKey ? this._handleContainerShiftTabKeyDown(n, e) : this._handleContainerTabKeyDown(n, e));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}, this._timer = null;
|
|
139
|
+
}
|
|
140
|
+
init() {
|
|
141
|
+
let { wrapperId: e } = this.getProps();
|
|
142
|
+
this._mounted = !0, this._bindEvent(), this._shouldShow(), e || this._adapter.setId();
|
|
143
|
+
}
|
|
144
|
+
destroy() {
|
|
145
|
+
this._mounted = !1, this.unBindEvent();
|
|
146
|
+
}
|
|
147
|
+
_bindEvent() {
|
|
148
|
+
let e = this.getProp("trigger"), { triggerEventSet: t, portalEventSet: n } = this._generateEvent(e);
|
|
149
|
+
this._bindTriggerEvent(t), this._bindPortalEvent(n), this._bindResizeEvent();
|
|
150
|
+
}
|
|
151
|
+
unBindEvent() {
|
|
152
|
+
this._adapter.unregisterClickOutsideHandler(), this.unBindResizeEvent(), this.unBindScrollEvent(), clearTimeout(this._timer);
|
|
153
|
+
}
|
|
154
|
+
_bindTriggerEvent(e) {
|
|
155
|
+
this._adapter.registerTriggerEvent(e);
|
|
156
|
+
}
|
|
157
|
+
_bindPortalEvent(e) {
|
|
158
|
+
this._adapter.registerPortalEvent(e);
|
|
159
|
+
}
|
|
160
|
+
_bindResizeEvent() {
|
|
161
|
+
this._adapter.registerResizeHandler(this.onResize);
|
|
162
|
+
}
|
|
163
|
+
unBindResizeEvent() {
|
|
164
|
+
this._adapter.unregisterResizeHandler(this.onResize);
|
|
165
|
+
}
|
|
166
|
+
_adjustPos(e = "", t = !1, n = "reverse", r) {
|
|
167
|
+
switch (n) {
|
|
168
|
+
case "reverse": return this._reversePos(e, t);
|
|
169
|
+
case "expand": return this._expandPos(e, r);
|
|
170
|
+
case "reduce": return this._reducePos(e);
|
|
171
|
+
default: return this._reversePos(e, t);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
_reversePos(e = "", t = !1) {
|
|
175
|
+
if (t) {
|
|
176
|
+
if (G.TOP.test(e)) return e.replace("top", "bottom").replace("Top", "Bottom");
|
|
177
|
+
if (G.BOTTOM.test(e)) return e.replace("bottom", "top").replace("Bottom", "Top");
|
|
178
|
+
} else if (G.LEFT.test(e)) return e.replace("left", "right").replace("Left", "Right");
|
|
179
|
+
else if (G.RIGHT.test(e)) return e.replace("right", "left").replace("Right", "Left");
|
|
180
|
+
return e;
|
|
181
|
+
}
|
|
182
|
+
_expandPos(e = "", t) {
|
|
183
|
+
return e.concat(t);
|
|
184
|
+
}
|
|
185
|
+
_reducePos(e = "") {
|
|
186
|
+
let t = [
|
|
187
|
+
"Top",
|
|
188
|
+
"Bottom",
|
|
189
|
+
"Left",
|
|
190
|
+
"Right"
|
|
191
|
+
].find((t) => e.endsWith(t));
|
|
192
|
+
return t ? e.replace(t, "") : e;
|
|
193
|
+
}
|
|
194
|
+
clearDelayTimer() {
|
|
195
|
+
this._timer &&= (clearTimeout(this._timer), null);
|
|
196
|
+
}
|
|
197
|
+
_generateEvent(e) {
|
|
198
|
+
let t = this._adapter.getEventName(), n = { [t.keydown]: (e) => {
|
|
199
|
+
this._handleTriggerKeydown(e);
|
|
200
|
+
} }, r = {};
|
|
201
|
+
switch (e) {
|
|
202
|
+
case "focus":
|
|
203
|
+
n[t.focus] = () => {
|
|
204
|
+
this.getProp("condition") !== !1 && this.delayShow();
|
|
205
|
+
}, n[t.blur] = () => {
|
|
206
|
+
this.delayHide();
|
|
207
|
+
}, r = n;
|
|
208
|
+
break;
|
|
209
|
+
case "click":
|
|
210
|
+
n[t.click] = () => {
|
|
211
|
+
this.getProp("condition") !== !1 && this.show();
|
|
212
|
+
}, r = {};
|
|
213
|
+
break;
|
|
214
|
+
case "hover":
|
|
215
|
+
n[t.mouseEnter] = () => {
|
|
216
|
+
this.setCache("isClickToHide", !1), this.getProp("condition") !== !1 && this.delayShow();
|
|
217
|
+
}, n[t.mouseLeave] = () => {
|
|
218
|
+
this.delayHide();
|
|
219
|
+
}, n[t.focus] = () => {
|
|
220
|
+
let { disableFocusListener: e } = this.getProps();
|
|
221
|
+
this.getProp("condition") !== !1 && !e && this.delayShow();
|
|
222
|
+
}, n[t.blur] = () => {
|
|
223
|
+
let { disableFocusListener: e } = this.getProps();
|
|
224
|
+
!e && this.delayHide();
|
|
225
|
+
}, r = { ...n }, this.getProp("clickToHide") && (r[t.click] = () => {
|
|
226
|
+
this.setCache("isClickToHide", !0), this.hide();
|
|
227
|
+
}, r[t.mouseEnter] = () => {
|
|
228
|
+
this.getCache("isClickToHide") || this.getProp("condition") !== !1 && this.delayShow();
|
|
229
|
+
});
|
|
230
|
+
break;
|
|
231
|
+
case "custom": break;
|
|
232
|
+
case "contextMenu": n[t.contextMenu] = (e) => {
|
|
233
|
+
this.getProp("condition") !== !1 && (e.preventDefault(), this.show());
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
triggerEventSet: n,
|
|
238
|
+
portalEventSet: r
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
_shouldShow() {
|
|
242
|
+
this.getProp("visible") && this.show();
|
|
243
|
+
}
|
|
244
|
+
_togglePortalVisible(e) {
|
|
245
|
+
let t = this.getState("visible"), n = this.getState("isInsert");
|
|
246
|
+
(t !== e || n !== e) && this._adapter.togglePortalVisible(e, () => {
|
|
247
|
+
e && this._adapter.setInitialFocus(), this._adapter.notifyVisibleChange(e);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
_roundPixel(e) {
|
|
251
|
+
return typeof e == "number" ? Math.round(e) : e;
|
|
252
|
+
}
|
|
253
|
+
calcTransformOrigin(e, t, n, r) {
|
|
254
|
+
if (e && t && n != null && r != null) {
|
|
255
|
+
if (this.getProp("transformFromCenter")) {
|
|
256
|
+
if (["topLeft", "bottomLeft"].includes(e)) return `${this._roundPixel(t.width / 2)}px ${-r * 100}%`;
|
|
257
|
+
if (["topRight", "bottomRight"].includes(e)) return `calc(100% - ${this._roundPixel(t.width / 2)}px) ${-r * 100}%`;
|
|
258
|
+
if (["leftTop", "rightTop"].includes(e)) return `${-n * 100}% ${this._roundPixel(t.height / 2)}px`;
|
|
259
|
+
if (["leftBottom", "rightBottom"].includes(e)) return `${-n * 100}% calc(100% - ${this._roundPixel(t.height / 2)}px)`;
|
|
260
|
+
}
|
|
261
|
+
return `${-n * 100}% ${-r * 100}%`;
|
|
262
|
+
}
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
calcPosStyle(n) {
|
|
266
|
+
let { spacing: r, isOverFlow: i } = n, { innerWidth: a } = window, o = ((0, e.default)(n.triggerRect) ? n.triggerRect : this._adapter.getTriggerBounding()) || { ...K }, s = ((0, e.default)(n.containerRect) ? n.containerRect : this._adapter.getPopupContainerRect()) || { ...K }, c = ((0, e.default)(n.wrapperRect) ? n.wrapperRect : this._adapter.getWrapperBounding()) || { ...K }, l = n.position == null ? this.getProp("position") : n.position, u = r ?? this.getProp("spacing"), { arrowPointAtCenter: d, showArrow: f, arrowBounding: p } = this.getProps(), m = f && d, h = u, g = 0;
|
|
267
|
+
if (typeof u != "number") {
|
|
268
|
+
let e = l.includes("top") || l.includes("bottom");
|
|
269
|
+
h = e ? u.y : u.x, g = e ? u.x : u.y;
|
|
270
|
+
}
|
|
271
|
+
let _ = (0, t.default)(p, "width", 24), v = (0, t.default)(p, "width", 24), y = (0, t.default)(p, "offsetY", 0), b, x, S = 0, C = 0, w = o.left + o.width / 2, T = o.top + o.height / 2, E = 6 + _ / 2, D = 6 + v / 2, O = c.height - s.height, k = c.width - s.width, A = O > 0 ? O : 0, j = k > 0 ? k : 0, M = i && i[0], N = i && i[1], P = w - s.left < s.right - w, F = T - s.top < s.bottom - T, I = c.width > a, L = Math.abs(c?.width - this._adapter.getContainer()?.clientWidth) > 1;
|
|
272
|
+
switch (L && (h = h * c.width / this._adapter.getContainer().clientWidth), l) {
|
|
273
|
+
case "top":
|
|
274
|
+
b = N ? P ? s.left + c.width / 2 : s.right - c.width / 2 + j : w + g, x = M ? s.top : o.top - h, S = -.5, C = M ? 0 : -1;
|
|
275
|
+
break;
|
|
276
|
+
case "topLeft":
|
|
277
|
+
b = N ? I ? s.left : s.right - c.width : m ? w - E + g : o.left + g, x = M ? s.top : o.top - h, C = M ? 0 : -1;
|
|
278
|
+
break;
|
|
279
|
+
case "topRight":
|
|
280
|
+
b = N ? s.right + j : m ? w + E + g : o.right + g, x = M ? s.top : o.top - h, C = M ? 0 : -1, S = -1;
|
|
281
|
+
break;
|
|
282
|
+
case "left":
|
|
283
|
+
b = N ? s.left : o.left - h, x = M ? F ? s.top + c.height / 2 : s.bottom - c.height / 2 + A : T + g, S = N ? 0 : -1, C = -.5;
|
|
284
|
+
break;
|
|
285
|
+
case "leftTop":
|
|
286
|
+
b = N ? s.left : o.left - h, x = M ? s.top : m ? T - D + g : o.top + g, S = N ? 0 : -1;
|
|
287
|
+
break;
|
|
288
|
+
case "leftBottom":
|
|
289
|
+
b = N ? s.left : o.left - h, x = M ? s.bottom : m ? T + D + g : o.bottom + g, S = N ? 0 : -1, C = -1;
|
|
290
|
+
break;
|
|
291
|
+
case "bottom":
|
|
292
|
+
b = N ? P ? s.left + c.width / 2 : s.right - c.width / 2 + j : w + g, x = M ? s.bottom : o.top + o.height + h, S = -.5, C = M ? -1 : 0;
|
|
293
|
+
break;
|
|
294
|
+
case "bottomLeft":
|
|
295
|
+
b = N ? I ? s.left : s.right - c.width : m ? w - E + g : o.left + g, x = M ? s.bottom : o.top + o.height + h, C = M ? -1 : 0;
|
|
296
|
+
break;
|
|
297
|
+
case "bottomRight":
|
|
298
|
+
b = N ? s.right + j : m ? w + E + g : o.right + g, x = M ? s.bottom : o.top + o.height + h, S = -1, C = M ? -1 : 0;
|
|
299
|
+
break;
|
|
300
|
+
case "right":
|
|
301
|
+
b = N ? s.right : o.right + h, x = M ? F ? s.top + c.height / 2 : s.bottom - c.height / 2 + A : T + g, S = N ? -1 : 0, C = -.5;
|
|
302
|
+
break;
|
|
303
|
+
case "rightTop":
|
|
304
|
+
b = N ? s.right : o.right + h, x = M ? s.top : m ? T - D + g : o.top + g, S = N ? -1 : 0;
|
|
305
|
+
break;
|
|
306
|
+
case "rightBottom":
|
|
307
|
+
b = N ? s.right : o.right + h, x = M ? s.bottom : m ? T + D + g : o.bottom + g, S = N ? -1 : 0, C = -1;
|
|
308
|
+
break;
|
|
309
|
+
case "leftTopOver":
|
|
310
|
+
b = N ? s.left : o.left - h, x = M ? s.top : o.top - h;
|
|
311
|
+
break;
|
|
312
|
+
case "rightTopOver":
|
|
313
|
+
b = N ? s.right : o.right + h, x = M ? s.top : o.top - h, S = -1;
|
|
314
|
+
break;
|
|
315
|
+
case "leftBottomOver":
|
|
316
|
+
b = N ? s.left : o.left - h, x = M ? s.bottom : o.bottom + h, C = -1;
|
|
317
|
+
break;
|
|
318
|
+
case "rightBottomOver": b = N ? s.right : o.right + h, x = M ? s.bottom : o.bottom + h, S = -1, C = -1;
|
|
319
|
+
}
|
|
320
|
+
let R = this.calcTransformOrigin(l, o, S, C), z = this._adapter.containerIsBody();
|
|
321
|
+
if (b -= s.left, x -= s.top, L && (b /= c.width / this._adapter.getContainer().clientWidth), L && (x /= c.height / this._adapter.getContainer().clientHeight), z && !this._adapter.containerIsRelativeOrAbsolute()) {
|
|
322
|
+
let e = this._adapter.getDocumentElementBounding();
|
|
323
|
+
b += s.left - e.left, x += s.top - e.top;
|
|
324
|
+
}
|
|
325
|
+
b = z ? b : b + s.scrollLeft, x = z ? x : x + s.scrollTop;
|
|
326
|
+
let B = o.height;
|
|
327
|
+
if (this.getProp("showArrow") && !d && B <= (v / 2 + y) * 2) {
|
|
328
|
+
let e = B / 2 - (y + v / 2);
|
|
329
|
+
(l.includes("Top") || l.includes("Bottom")) && !l.includes("Over") && (x = l.includes("Top") ? x + e : x - e);
|
|
330
|
+
}
|
|
331
|
+
let V, H;
|
|
332
|
+
if (f && [
|
|
333
|
+
"top",
|
|
334
|
+
"bottom",
|
|
335
|
+
"left",
|
|
336
|
+
"right"
|
|
337
|
+
].includes(l)) {
|
|
338
|
+
if (d) {
|
|
339
|
+
if ((l === "top" || l === "bottom") && c.width > 0) {
|
|
340
|
+
let e = (w - b) / c.width + .5, t = (_ / 2 + 6) / c.width, n = 1 - t, r = Math.max(t, Math.min(n, e));
|
|
341
|
+
Math.abs(r - .5) > .01 && (V = `${r * 100}%`);
|
|
342
|
+
}
|
|
343
|
+
if ((l === "left" || l === "right") && c.height > 0) {
|
|
344
|
+
let e = (T - x) / c.height + .5, t = (v / 2 + 6) / c.height, n = 1 - t, r = Math.max(t, Math.min(n, e));
|
|
345
|
+
Math.abs(r - .5) > .01 && (H = `${r * 100}%`);
|
|
346
|
+
}
|
|
347
|
+
} else {
|
|
348
|
+
if ((l === "top" || l === "bottom") && c.width > 0) {
|
|
349
|
+
let e = 6 + _ / 2;
|
|
350
|
+
V = P ? `${e / c.width * 100}%` : `${(c.width - e) / c.width * 100}%`;
|
|
351
|
+
}
|
|
352
|
+
if ((l === "left" || l === "right") && c.height > 0) {
|
|
353
|
+
let e = 6 + v / 2;
|
|
354
|
+
H = F ? `${e / c.height * 100}%` : `${(c.height - e) / c.height * 100}%`;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
let U = {
|
|
359
|
+
left: this._roundPixel(b),
|
|
360
|
+
top: this._roundPixel(x)
|
|
361
|
+
};
|
|
362
|
+
V && (U["--semi-tooltip-arrow-offset-x"] = V), H && (U["--semi-tooltip-arrow-offset-y"] = H);
|
|
363
|
+
let W = "";
|
|
364
|
+
return S != null && (W += `translateX(${S * 100}%) `, Object.defineProperty(U, "translateX", {
|
|
365
|
+
enumerable: !1,
|
|
366
|
+
value: S
|
|
367
|
+
})), C != null && (W += `translateY(${C * 100}%) `, Object.defineProperty(U, "translateY", {
|
|
368
|
+
enumerable: !1,
|
|
369
|
+
value: C
|
|
370
|
+
})), R != null && (U.transformOrigin = R), W && (U.transform = W), U;
|
|
371
|
+
}
|
|
372
|
+
isLR(e = "") {
|
|
373
|
+
return e.includes("left") || e.includes("right");
|
|
374
|
+
}
|
|
375
|
+
isTB(e = "") {
|
|
376
|
+
return e.includes("top") || e.includes("bottom");
|
|
377
|
+
}
|
|
378
|
+
isReverse(e, t, n) {
|
|
379
|
+
return e < n && t > n;
|
|
380
|
+
}
|
|
381
|
+
isOverFlow(e, t, n) {
|
|
382
|
+
return e < n && t < n;
|
|
383
|
+
}
|
|
384
|
+
isHalfOverFlow(e, t, n) {
|
|
385
|
+
return e < n || t < n;
|
|
386
|
+
}
|
|
387
|
+
isHalfAllEnough(e, t, n) {
|
|
388
|
+
return e >= n || t >= n;
|
|
389
|
+
}
|
|
390
|
+
getReverse(e, t, n, r) {
|
|
391
|
+
return e && r || n;
|
|
392
|
+
}
|
|
393
|
+
adjustPosIfNeed(e, t, n, r, i) {
|
|
394
|
+
let { innerWidth: a, innerHeight: o } = window, { margin: s } = this.getProps(), c = typeof s == "number" ? s : s.marginLeft, l = typeof s == "number" ? s : s.marginTop, u = typeof s == "number" ? s : s.marginRight, d = typeof s == "number" ? s : s.marginBottom, f = !1, p = !1, m = this.getProp("spacing"), h = m, g = 0;
|
|
395
|
+
if (typeof m != "number") {
|
|
396
|
+
let t = e.includes("top") || e.includes("bottom");
|
|
397
|
+
h = t ? m.y : m.x, g = t ? m.x : m.y;
|
|
398
|
+
}
|
|
399
|
+
if (r.width > 0 && r.height > 0) {
|
|
400
|
+
let t = n.left, s = n.right, m = n.top, _ = n.bottom, v = a - t, y = o - m, b = a - s, x = o - _, S = r.width > n.width, C = r.height > n.height, w = m - l < r.height + h && x - d > r.height + h, T = t - c < r.width + h && b - u > r.width + h, E = x - d < r.height + h && m - l > r.height + h, D = b - u < r.width + h && t - c > r.width + h;
|
|
401
|
+
y - d < r.height + h && (_ - l, r.height + h), _ - l < r.height + h && (y - d, r.height + h);
|
|
402
|
+
let O = y < r.height + g && _ > r.height + g, k = _ < r.height + g && y > r.height + g, A = v < r.width + g && s > r.width + g, j = s < r.width + g && v > r.width + g, M = y < r.height + h && _ > r.height + h, N = _ < r.height + h && y > r.height + h, P = v < r.width && s > r.width, F = s < r.width && v > r.width, I = m - i.top, L = t - i.left, R = I + n.height, z = L + n.width, B = i.bottom - _, V = i.right - s, H = B + n.height, U = V + n.width, W = this.isReverse(I - l, B - d, r.height + h), ee = this.isReverse(L - c, V - u, r.width + h), te = this.isReverse(B - d, I - l, r.height + h), G = this.isReverse(V - u, L - c, r.width + h);
|
|
403
|
+
this.isReverse(H - d, R - l, r.height + h), this.isReverse(R - l, H - d, r.height + h);
|
|
404
|
+
let K = this.isReverse(H, R, r.height + g), ne = this.isReverse(R, H, r.height + g), re = this.isReverse(U, z, r.width + g), q = this.isReverse(z, U, r.width + g), J = n.height / 2, Y = n.width / 2, ie = this.isOverFlow(m - l, x - d, r.height + h), ae = this.isOverFlow(t - c, b - u, r.width + h), oe = this.isOverFlow(_ - l, y - d, r.height + h), se = this.isOverFlow(s - c, v - u, r.width + h), ce = this.isHalfOverFlow(_ - J, y - J, (r.height + g) / 2), le = this.isHalfOverFlow(s - Y, v - Y, (r.width + g) / 2), X = this.isHalfAllEnough(_ - J, y - J, (r.height + g) / 2), Z = this.isHalfAllEnough(s - Y, v - Y, (r.width + g) / 2), ue = this.isOverFlow(I - l, B - d, r.height + h), de = this.isOverFlow(L - c, V - u, r.width + h), fe = this.isOverFlow(R - l, H - d, r.height + h), pe = this.isOverFlow(z - c, U - u, r.width + h), me = this.isHalfOverFlow(R - J, H - J, (r.height + g) / 2), he = this.isHalfOverFlow(z - Y, U - Y, (r.width + g) / 2), ge = this.isHalfAllEnough(R - J, H - J, (r.height + g) / 2), _e = this.isHalfAllEnough(z - Y, U - Y, (r.width + g) / 2), ve = this.getReverse(ie, ue, w, W), ye = this.getReverse(ae, de, T, ee), be = this.getReverse(ie, ue, E, te), xe = this.getReverse(ae, de, D, G), Q = this.getReverse(oe, fe, O, K), Se = this.getReverse(oe, fe, k, ne), $ = this.getReverse(se, pe, A, re), Ce = this.getReverse(se, pe, j, q), we = ce && me, Te = le && he;
|
|
405
|
+
switch (e) {
|
|
406
|
+
case "top":
|
|
407
|
+
ve && (e = this._adjustPos(e, !0)), Te && ($ || Ce) && (e = this._adjustPos(e, !0, "expand", $ ? "Right" : "Left"));
|
|
408
|
+
break;
|
|
409
|
+
case "topLeft":
|
|
410
|
+
ve && (e = this._adjustPos(e, !0)), $ && S && (e = this._adjustPos(e)), p && (Z || _e) && (e = this._adjustPos(e, !0, "reduce"));
|
|
411
|
+
break;
|
|
412
|
+
case "topRight":
|
|
413
|
+
ve && (e = this._adjustPos(e, !0)), Ce && S && (e = this._adjustPos(e)), p && (Z || _e) && (e = this._adjustPos(e, !0, "reduce"));
|
|
414
|
+
break;
|
|
415
|
+
case "left":
|
|
416
|
+
ye && (e = this._adjustPos(e)), we && (Q || Se) && (e = this._adjustPos(e, !1, "expand", Q ? "Bottom" : "Top"));
|
|
417
|
+
break;
|
|
418
|
+
case "leftTop":
|
|
419
|
+
ye && (e = this._adjustPos(e)), Q && C && (e = this._adjustPos(e, !0)), f && (X || ge) && (e = this._adjustPos(e, !1, "reduce"));
|
|
420
|
+
break;
|
|
421
|
+
case "leftBottom":
|
|
422
|
+
ye && (e = this._adjustPos(e)), Se && C && (e = this._adjustPos(e, !0)), f && (X || ge) && (e = this._adjustPos(e, !1, "reduce"));
|
|
423
|
+
break;
|
|
424
|
+
case "bottom":
|
|
425
|
+
be && (e = this._adjustPos(e, !0)), Te && ($ || Ce) && (e = this._adjustPos(e, !0, "expand", $ ? "Right" : "Left"));
|
|
426
|
+
break;
|
|
427
|
+
case "bottomLeft":
|
|
428
|
+
be && (e = this._adjustPos(e, !0)), $ && S && (e = this._adjustPos(e)), p && (Z || _e) && (e = this._adjustPos(e, !0, "reduce"));
|
|
429
|
+
break;
|
|
430
|
+
case "bottomRight":
|
|
431
|
+
be && (e = this._adjustPos(e, !0)), Ce && S && (e = this._adjustPos(e)), p && (Z || _e) && (e = this._adjustPos(e, !0, "reduce"));
|
|
432
|
+
break;
|
|
433
|
+
case "right":
|
|
434
|
+
xe && (e = this._adjustPos(e)), we && (Q || Se) && (e = this._adjustPos(e, !1, "expand", Q ? "Bottom" : "Top"));
|
|
435
|
+
break;
|
|
436
|
+
case "rightTop":
|
|
437
|
+
xe && (e = this._adjustPos(e)), Q && C && (e = this._adjustPos(e, !0)), f && (X || ge) && (e = this._adjustPos(e, !1, "reduce"));
|
|
438
|
+
break;
|
|
439
|
+
case "rightBottom":
|
|
440
|
+
xe && (e = this._adjustPos(e)), Se && C && (e = this._adjustPos(e, !0)), f && (X || ge) && (e = this._adjustPos(e, !1, "reduce"));
|
|
441
|
+
break;
|
|
442
|
+
case "leftTopOver":
|
|
443
|
+
M && (e = this._adjustPos(e, !0)), P && (e = this._adjustPos(e));
|
|
444
|
+
break;
|
|
445
|
+
case "leftBottomOver":
|
|
446
|
+
N && (e = this._adjustPos(e, !0)), P && (e = this._adjustPos(e));
|
|
447
|
+
break;
|
|
448
|
+
case "rightTopOver":
|
|
449
|
+
M && (e = this._adjustPos(e, !0)), F && (e = this._adjustPos(e));
|
|
450
|
+
break;
|
|
451
|
+
case "rightBottomOver": N && (e = this._adjustPos(e, !0)), F && (e = this._adjustPos(e));
|
|
452
|
+
}
|
|
453
|
+
this.isTB(e) && (f = ie && ue, p = e === "top" || e === "bottom" ? le && he || s < 0 || b < 0 : se && pe || s < 0 || b < 0), this.isLR(e) && (p = ae && de, f = e === "left" || e === "right" ? ce && me || m < 0 || y < 0 : oe && fe || m < 0 || y < 0);
|
|
454
|
+
}
|
|
455
|
+
return {
|
|
456
|
+
position: e,
|
|
457
|
+
isHeightOverFlow: f,
|
|
458
|
+
isWidthOverFlow: p
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
_bindScrollEvent() {
|
|
462
|
+
this._adapter.registerScrollHandler(() => this.calcPosition());
|
|
463
|
+
}
|
|
464
|
+
unBindScrollEvent() {
|
|
465
|
+
this._adapter.unregisterScrollHandler();
|
|
466
|
+
}
|
|
467
|
+
_initContainerPosition() {
|
|
468
|
+
this._adapter.getContainerPosition() || !this._adapter.containerIsBody() || this._adapter.updateContainerPosition();
|
|
469
|
+
}
|
|
470
|
+
_handleTriggerKeydown(e) {
|
|
471
|
+
let { closeOnEsc: t, disableArrowKeyDown: n } = this.getProps(), r = this._adapter.getContainer(), i = this._adapter.getFocusableElements(r), a = i.length;
|
|
472
|
+
switch (e && e.key) {
|
|
473
|
+
case "Escape":
|
|
474
|
+
L(e), t && this._handleEscKeyDown(e);
|
|
475
|
+
break;
|
|
476
|
+
case "ArrowUp":
|
|
477
|
+
!n && a && this._handleTriggerArrowUpKeydown(i, e);
|
|
478
|
+
break;
|
|
479
|
+
case "ArrowDown": !n && a && this._handleTriggerArrowDownKeydown(i, e);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
focusTrigger() {
|
|
483
|
+
let { trigger: e, returnFocusOnClose: t, preventScroll: n } = this.getProps();
|
|
484
|
+
if (t && e !== "custom") {
|
|
485
|
+
let e = this._adapter.getTriggerNode();
|
|
486
|
+
e && "focus" in e && e.focus({ preventScroll: n });
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
_handleEscKeyDown(e) {
|
|
490
|
+
let { trigger: t } = this.getProps();
|
|
491
|
+
t !== "custom" && (this.focusTrigger(), this.hide()), this._adapter.notifyEscKeydown(e);
|
|
492
|
+
}
|
|
493
|
+
_handleContainerTabKeyDown(e, t) {
|
|
494
|
+
let { preventScroll: n } = this.getProps(), r = this._adapter.getActiveElement();
|
|
495
|
+
e[e.length - 1] === r && (e[0].focus({ preventScroll: n }), t.preventDefault());
|
|
496
|
+
}
|
|
497
|
+
_handleContainerShiftTabKeyDown(e, t) {
|
|
498
|
+
let { preventScroll: n } = this.getProps(), r = this._adapter.getActiveElement();
|
|
499
|
+
e[0] === r && (e[e.length - 1].focus({ preventScroll: n }), t.preventDefault());
|
|
500
|
+
}
|
|
501
|
+
_handleTriggerArrowDownKeydown(e, t) {
|
|
502
|
+
let { preventScroll: n } = this.getProps();
|
|
503
|
+
e[0].focus({ preventScroll: n }), t.preventDefault();
|
|
504
|
+
}
|
|
505
|
+
_handleTriggerArrowUpKeydown(e, t) {
|
|
506
|
+
let { preventScroll: n } = this.getProps();
|
|
507
|
+
e[e.length - 1].focus({ preventScroll: n }), t.preventDefault();
|
|
508
|
+
}
|
|
509
|
+
}, re = /* @__PURE__ */ _({
|
|
510
|
+
__name: "TooltipArrow",
|
|
511
|
+
props: {
|
|
512
|
+
backgroundColor: {},
|
|
513
|
+
placement: {},
|
|
514
|
+
prefixCls: {}
|
|
515
|
+
},
|
|
516
|
+
setup(e) {
|
|
517
|
+
let t = e, n = u(() => t.placement.includes("left") || t.placement.includes("right"));
|
|
518
|
+
return (t, r) => n.value ? (k(), p("svg", {
|
|
519
|
+
key: 0,
|
|
520
|
+
"aria-hidden": "true",
|
|
521
|
+
class: T(`${e.prefixCls}-icon-arrow`),
|
|
522
|
+
style: E({
|
|
523
|
+
color: e.backgroundColor,
|
|
524
|
+
fill: "currentColor"
|
|
525
|
+
}),
|
|
526
|
+
width: "7",
|
|
527
|
+
height: "24",
|
|
528
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
529
|
+
fill: "currentColor"
|
|
530
|
+
}, [...r[0] ||= [m("path", { d: "M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z" }, null, -1)]], 6)) : (k(), p("svg", {
|
|
531
|
+
key: 1,
|
|
532
|
+
"aria-hidden": "true",
|
|
533
|
+
class: T(`${e.prefixCls}-icon-arrow`),
|
|
534
|
+
style: E({
|
|
535
|
+
color: e.backgroundColor,
|
|
536
|
+
fill: "currentColor"
|
|
537
|
+
}),
|
|
538
|
+
width: "24",
|
|
539
|
+
height: "7",
|
|
540
|
+
viewBox: "0 0 24 7",
|
|
541
|
+
fill: "currentColor",
|
|
542
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
543
|
+
}, [...r[1] ||= [m("path", { d: "M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z" }, null, -1)]], 6));
|
|
544
|
+
}
|
|
545
|
+
}), q = _({
|
|
546
|
+
name: "TooltipNodeRenderer",
|
|
547
|
+
props: { content: {
|
|
548
|
+
type: null,
|
|
549
|
+
default: void 0
|
|
550
|
+
} },
|
|
551
|
+
setup(e) {
|
|
552
|
+
return () => e.content;
|
|
553
|
+
}
|
|
554
|
+
}), J = [
|
|
555
|
+
"id",
|
|
556
|
+
"role",
|
|
557
|
+
"x-placement"
|
|
558
|
+
], Y = /* @__PURE__ */ _({
|
|
559
|
+
__name: "TooltipPortal",
|
|
560
|
+
props: {
|
|
561
|
+
clickToHide: { type: Boolean },
|
|
562
|
+
content: { type: [
|
|
563
|
+
Object,
|
|
564
|
+
String,
|
|
565
|
+
Number,
|
|
566
|
+
Boolean,
|
|
567
|
+
null,
|
|
568
|
+
Array
|
|
569
|
+
] },
|
|
570
|
+
direction: {},
|
|
571
|
+
initialFocusRef: { type: Function },
|
|
572
|
+
motion: { type: Boolean },
|
|
573
|
+
popupClass: {},
|
|
574
|
+
popupStyle: { type: [
|
|
575
|
+
Boolean,
|
|
576
|
+
null,
|
|
577
|
+
String,
|
|
578
|
+
Object,
|
|
579
|
+
Array
|
|
580
|
+
] },
|
|
581
|
+
portalTarget: {},
|
|
582
|
+
prefixCls: {},
|
|
583
|
+
role: {},
|
|
584
|
+
showArrow: { type: [
|
|
585
|
+
Boolean,
|
|
586
|
+
Object,
|
|
587
|
+
String,
|
|
588
|
+
Number,
|
|
589
|
+
null,
|
|
590
|
+
Array
|
|
591
|
+
] },
|
|
592
|
+
state: {},
|
|
593
|
+
stopPropagation: { type: Boolean }
|
|
594
|
+
},
|
|
595
|
+
emits: [
|
|
596
|
+
"animationEnd",
|
|
597
|
+
"animationStart",
|
|
598
|
+
"hide",
|
|
599
|
+
"keydown",
|
|
600
|
+
"portalElement"
|
|
601
|
+
],
|
|
602
|
+
setup(e, { emit: t }) {
|
|
603
|
+
let n = e, r = t, i = P(), l = u(() => {
|
|
604
|
+
if (!(!n.motion || !n.state.isPositionUpdated || !n.state.transitionState)) return `${n.prefixCls}-animation-${n.state.transitionState === "enter" ? "show" : "hide"}`;
|
|
605
|
+
}), h = u(() => [
|
|
606
|
+
n.popupClass,
|
|
607
|
+
`${n.prefixCls}-wrapper`,
|
|
608
|
+
n.state.visible ? `${n.prefixCls}-wrapper-show` : void 0,
|
|
609
|
+
n.showArrow ? `${n.prefixCls}-with-arrow` : void 0,
|
|
610
|
+
n.direction === "rtl" ? `${n.prefixCls}-rtl` : void 0,
|
|
611
|
+
l.value
|
|
612
|
+
]), _ = u(() => {
|
|
613
|
+
let e = { ...n.state.containerStyle };
|
|
614
|
+
return n.motion && delete e.transformOrigin, typeof e.left == "number" && (e.left = `${e.left}px`), typeof e.top == "number" && (e.top = `${e.top}px`), e;
|
|
615
|
+
}), v = u(() => ({
|
|
616
|
+
...n.state.containerStyle["--semi-tooltip-arrow-offset-x"] ? { "--semi-tooltip-arrow-offset-x": n.state.containerStyle["--semi-tooltip-arrow-offset-x"] } : {},
|
|
617
|
+
...n.state.containerStyle["--semi-tooltip-arrow-offset-y"] ? { "--semi-tooltip-arrow-offset-y": n.state.containerStyle["--semi-tooltip-arrow-offset-y"] } : {}
|
|
618
|
+
})), y = u(() => {
|
|
619
|
+
let e = (n.popupStyle && typeof n.popupStyle == "object" && !Array.isArray(n.popupStyle) ? n.popupStyle : void 0)?.opacity;
|
|
620
|
+
return [
|
|
621
|
+
n.motion && n.state.isPositionUpdated ? { animationFillMode: "forwards" } : {},
|
|
622
|
+
n.state.displayNone ? { display: "none" } : {},
|
|
623
|
+
{ transformOrigin: n.state.containerStyle.transformOrigin },
|
|
624
|
+
n.popupStyle,
|
|
625
|
+
v.value,
|
|
626
|
+
e ? { opacity: n.state.isPositionUpdated ? e : "0" } : {}
|
|
627
|
+
];
|
|
628
|
+
}), b = u(() => {
|
|
629
|
+
if (!(!n.popupStyle || typeof n.popupStyle != "object" || Array.isArray(n.popupStyle))) return n.popupStyle.backgroundColor;
|
|
630
|
+
}), S = u(() => typeof n.showArrow != "boolean" && n.showArrow !== void 0);
|
|
631
|
+
function D(e) {
|
|
632
|
+
let t = [], n = (e) => {
|
|
633
|
+
if (Array.isArray(e)) {
|
|
634
|
+
e.forEach(n);
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
if (!(!x(e) || e.type === a) && (e.type !== c || String(e.children ?? "").trim() !== "")) {
|
|
638
|
+
if (e.type === o && Array.isArray(e.children)) {
|
|
639
|
+
e.children.forEach((e) => n(e));
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
t.push(e);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
return e.forEach(n), t;
|
|
646
|
+
}
|
|
647
|
+
let O = u(() => D(i.arrow?.() ?? []));
|
|
648
|
+
function j(e) {
|
|
649
|
+
r("portalElement", e instanceof HTMLDivElement ? e : null);
|
|
650
|
+
}
|
|
651
|
+
function M(e) {
|
|
652
|
+
n.stopPropagation && e.stopPropagation();
|
|
653
|
+
}
|
|
654
|
+
function I(e) {
|
|
655
|
+
n.clickToHide && r("hide"), M(e);
|
|
656
|
+
}
|
|
657
|
+
function L() {
|
|
658
|
+
n.state.transitionState && r("animationStart", n.state.transitionState);
|
|
659
|
+
}
|
|
660
|
+
function R() {
|
|
661
|
+
n.state.transitionState && r("animationEnd", n.state.transitionState);
|
|
662
|
+
}
|
|
663
|
+
return F(() => [
|
|
664
|
+
n.state.transitionState,
|
|
665
|
+
n.motion,
|
|
666
|
+
n.state.isPositionUpdated
|
|
667
|
+
], ([e, t, n], i) => {
|
|
668
|
+
e && (!(!i || i[0] !== e || i[1] !== t || i[2] !== n) || t && n || w(() => {
|
|
669
|
+
r("animationStart", e), r("animationEnd", e);
|
|
670
|
+
}));
|
|
671
|
+
}, { immediate: !0 }), (t, n) => (k(), d(s, { to: e.portalTarget }, [m("div", {
|
|
672
|
+
ref: j,
|
|
673
|
+
tabindex: "-1",
|
|
674
|
+
class: "semi-portal-inner",
|
|
675
|
+
style: E(_.value),
|
|
676
|
+
onClick: I,
|
|
677
|
+
onFocus: M,
|
|
678
|
+
onBlur: M,
|
|
679
|
+
onMousedown: M,
|
|
680
|
+
onKeydown: n[0] ||= (e) => r("keydown", e)
|
|
681
|
+
}, [m("div", C(e.state.portalEventSet, {
|
|
682
|
+
id: e.state.id,
|
|
683
|
+
class: h.value,
|
|
684
|
+
style: y.value,
|
|
685
|
+
role: e.role,
|
|
686
|
+
"x-placement": e.state.placement,
|
|
687
|
+
onAnimationstart: L,
|
|
688
|
+
onAnimationend: R
|
|
689
|
+
}), [m("div", { class: T(`${e.prefixCls}-content`) }, [A(t.$slots, "content", { initialFocusRef: e.initialFocusRef }, () => [g(N(q), { content: e.content }, null, 8, ["content"])])], 2), e.showArrow ? (k(), p(o, { key: 0 }, [O.value.length ? (k(), d(N(q), {
|
|
690
|
+
key: 0,
|
|
691
|
+
content: O.value
|
|
692
|
+
}, null, 8, ["content"])) : S.value ? (k(), d(N(q), {
|
|
693
|
+
key: 1,
|
|
694
|
+
content: e.showArrow
|
|
695
|
+
}, null, 8, ["content"])) : (k(), d(re, {
|
|
696
|
+
key: 2,
|
|
697
|
+
"background-color": b.value,
|
|
698
|
+
placement: e.state.placement,
|
|
699
|
+
"prefix-cls": e.prefixCls
|
|
700
|
+
}, null, 8, [
|
|
701
|
+
"background-color",
|
|
702
|
+
"placement",
|
|
703
|
+
"prefix-cls"
|
|
704
|
+
]))], 64)) : f("", !0)], 16, J)], 36)], 8, ["to"]));
|
|
705
|
+
}
|
|
706
|
+
}), ie = /* @__PURE__ */ new Set([
|
|
707
|
+
"flex",
|
|
708
|
+
"block",
|
|
709
|
+
"table",
|
|
710
|
+
"flow-root",
|
|
711
|
+
"grid"
|
|
712
|
+
]);
|
|
713
|
+
function ae(e) {
|
|
714
|
+
let t = [], n = (e) => {
|
|
715
|
+
if (Array.isArray(e)) {
|
|
716
|
+
e.forEach(n);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
if (!(!x(e) || e.type === a)) {
|
|
720
|
+
if (e.type === o && Array.isArray(e.children)) {
|
|
721
|
+
e.children.forEach((e) => n(e));
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
t.push(e);
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
return e.forEach(n), t;
|
|
728
|
+
}
|
|
729
|
+
function oe(e) {
|
|
730
|
+
if (e instanceof HTMLElement) return e;
|
|
731
|
+
if (!e || e instanceof Element) return null;
|
|
732
|
+
let t = e.$el;
|
|
733
|
+
return t instanceof HTMLElement ? t : null;
|
|
734
|
+
}
|
|
735
|
+
function se(e) {
|
|
736
|
+
if (typeof e.type == "string" || typeof e.type == "symbol") return;
|
|
737
|
+
let t = e.type;
|
|
738
|
+
return t.elementType ?? t.name ?? t.__name;
|
|
739
|
+
}
|
|
740
|
+
function ce(e, t) {
|
|
741
|
+
return !!(e.props && Object.prototype.hasOwnProperty.call(e.props, t) && e.props[t] !== !1);
|
|
742
|
+
}
|
|
743
|
+
var le = _({
|
|
744
|
+
name: "TooltipTriggerRenderer",
|
|
745
|
+
props: {
|
|
746
|
+
eventSet: {
|
|
747
|
+
type: Object,
|
|
748
|
+
required: !0
|
|
749
|
+
},
|
|
750
|
+
popupId: {
|
|
751
|
+
type: String,
|
|
752
|
+
default: void 0
|
|
753
|
+
},
|
|
754
|
+
role: {
|
|
755
|
+
type: String,
|
|
756
|
+
required: !0
|
|
757
|
+
},
|
|
758
|
+
trigger: {
|
|
759
|
+
type: String,
|
|
760
|
+
required: !0
|
|
761
|
+
},
|
|
762
|
+
visible: Boolean,
|
|
763
|
+
wrapWhenSpecial: Boolean,
|
|
764
|
+
wrapperClassName: {
|
|
765
|
+
type: null,
|
|
766
|
+
default: void 0
|
|
767
|
+
},
|
|
768
|
+
setTriggerElement: {
|
|
769
|
+
type: Function,
|
|
770
|
+
required: !0
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
setup(e, { slots: t }) {
|
|
774
|
+
let n = (t) => {
|
|
775
|
+
e.setTriggerElement(oe(t));
|
|
776
|
+
}, r = (t, r) => {
|
|
777
|
+
let i = t.props ?? {}, a = e.role === "dialog" ? {
|
|
778
|
+
"aria-controls": e.popupId,
|
|
779
|
+
"aria-expanded": String(e.visible),
|
|
780
|
+
"aria-haspopup": "dialog"
|
|
781
|
+
} : { "aria-describedby": e.popupId }, o = i.tabindex ?? i.tabIndex;
|
|
782
|
+
return l(t, {
|
|
783
|
+
...a,
|
|
784
|
+
...e.eventSet,
|
|
785
|
+
"data-popupid": e.popupId,
|
|
786
|
+
ref: n,
|
|
787
|
+
style: [i.style, r],
|
|
788
|
+
tabindex: o ?? 0
|
|
789
|
+
}, !0);
|
|
790
|
+
};
|
|
791
|
+
return () => {
|
|
792
|
+
let n = ae(t.default?.() ?? []), i = n.length === 1 ? n[0] : void 0, a = i?.type === c, o = !!(i && !a), s = !!(i && ce(i, "disabled")), u = !!(i && ce(i, "loading")), d = i ? se(i) : void 0, f = s || u && (d === "Button" || d === "IconButton"), p = e.wrapWhenSpecial && f && e.trigger !== "custom";
|
|
793
|
+
if (o && i && !p) return r(i, e.wrapWhenSpecial && f ? { pointerEvents: "none" } : void 0);
|
|
794
|
+
let m = i && p ? [l(i, { style: [i.props?.style, { pointerEvents: "none" }] })] : n, h = i?.props?.style?.display, g = !!i?.props?.block || ie.has(h), _ = {};
|
|
795
|
+
return a || (_.display = "inline-block"), g && (_.width = "100%"), p && s && (_.cursor = "not-allowed"), r(y("span", {
|
|
796
|
+
class: e.wrapperClassName,
|
|
797
|
+
style: _
|
|
798
|
+
}, m));
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region src/tooltip/use-tooltip-foundation.ts
|
|
804
|
+
function X() {
|
|
805
|
+
let e = /* @__PURE__ */ new Map();
|
|
806
|
+
return {
|
|
807
|
+
emit(t) {
|
|
808
|
+
for (let n of [...e.get(t) ?? []]) n();
|
|
809
|
+
},
|
|
810
|
+
off(t, n) {
|
|
811
|
+
if (!n) {
|
|
812
|
+
e.delete(t);
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
e.get(t)?.delete(n);
|
|
816
|
+
},
|
|
817
|
+
on(t, n) {
|
|
818
|
+
let r = e.get(t) ?? /* @__PURE__ */ new Set();
|
|
819
|
+
r.add(n), e.set(t, r);
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function Z(e) {
|
|
824
|
+
return {
|
|
825
|
+
bottom: e.bottom,
|
|
826
|
+
height: e.height,
|
|
827
|
+
left: e.left,
|
|
828
|
+
right: e.right,
|
|
829
|
+
top: e.top,
|
|
830
|
+
width: e.width
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function ue(e) {
|
|
834
|
+
return e ? Array.from(e.querySelectorAll([
|
|
835
|
+
"input:not([disabled]):not([tabindex='-1'])",
|
|
836
|
+
"textarea:not([disabled]):not([tabindex='-1'])",
|
|
837
|
+
"button:not([disabled]):not([tabindex='-1'])",
|
|
838
|
+
"a[href]:not([tabindex='-1'])",
|
|
839
|
+
"select:not([disabled]):not([tabindex='-1'])",
|
|
840
|
+
"area[href]:not([tabindex='-1'])",
|
|
841
|
+
"iframe:not([tabindex='-1'])",
|
|
842
|
+
"object:not([tabindex='-1'])",
|
|
843
|
+
"*[tabindex]:not([tabindex='-1'])",
|
|
844
|
+
"*[contenteditable]:not([tabindex='-1'])"
|
|
845
|
+
].join(","))) : [];
|
|
846
|
+
}
|
|
847
|
+
function de() {
|
|
848
|
+
return Array.from({ length: 7 }, () => "0123456789abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(Math.random() * 36))).join("");
|
|
849
|
+
}
|
|
850
|
+
function fe(e) {
|
|
851
|
+
let t = j({
|
|
852
|
+
containerStyle: {},
|
|
853
|
+
displayNone: !1,
|
|
854
|
+
id: e.runtimeProps.value.wrapperId,
|
|
855
|
+
isInsert: !1,
|
|
856
|
+
isPositionUpdated: !1,
|
|
857
|
+
placement: e.runtimeProps.value.position,
|
|
858
|
+
portalEventSet: {},
|
|
859
|
+
transitionState: "",
|
|
860
|
+
triggerEventSet: {},
|
|
861
|
+
visible: !1
|
|
862
|
+
}), n = M(null), r = M(null), i = M(null), a = M(null), o = /* @__PURE__ */ new Map(), s = X(), c = !1, l = !1, u = null, d, f, p, m, h, g, _, v, y, b, x;
|
|
863
|
+
function C() {
|
|
864
|
+
return e.runtimeProps.value;
|
|
865
|
+
}
|
|
866
|
+
function T() {
|
|
867
|
+
let t = n.value;
|
|
868
|
+
t && (t.className = ["semi-portal", e.config.value.direction === "rtl" ? "semi-portal-rtl" : void 0].filter(Boolean).join(" "), t.style.zIndex = String(e.runtimeProps.value.zIndex));
|
|
869
|
+
}
|
|
870
|
+
function E() {
|
|
871
|
+
if (typeof document > "u") return null;
|
|
872
|
+
if (n.value?.isConnected) return T(), n.value;
|
|
873
|
+
u ??= d?.() ?? document.body;
|
|
874
|
+
let e = document.createElement("div");
|
|
875
|
+
return n.value = e, T(), u.appendChild(e), e;
|
|
876
|
+
}
|
|
877
|
+
function k() {
|
|
878
|
+
y && clearTimeout(y), b && clearTimeout(b), v?.disconnect(), v = void 0, y = void 0, b = void 0;
|
|
879
|
+
}
|
|
880
|
+
function A() {
|
|
881
|
+
k();
|
|
882
|
+
let e = n.value;
|
|
883
|
+
e?.parentNode && e.parentNode.removeChild(e), n.value = null, r.value = null;
|
|
884
|
+
}
|
|
885
|
+
function N() {
|
|
886
|
+
let e = () => {
|
|
887
|
+
t.transitionState === "enter" && s.emit("portalInserted");
|
|
888
|
+
}, n = r.value;
|
|
889
|
+
if (!n) {
|
|
890
|
+
b = setTimeout(e, 0);
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
if (typeof ResizeObserver < "u") {
|
|
894
|
+
let r = !1, i = n.offsetWidth, a = n.offsetHeight, o = () => {
|
|
895
|
+
r || (r = !0, e());
|
|
896
|
+
};
|
|
897
|
+
v = new ResizeObserver(() => {
|
|
898
|
+
let e = n.offsetWidth, s = n.offsetHeight;
|
|
899
|
+
if (e <= 0 || s <= 0) return;
|
|
900
|
+
let c = e !== i || s !== a;
|
|
901
|
+
i = e, a = s, r ? c && t.transitionState === "enter" && (y && clearTimeout(y), y = setTimeout(() => {
|
|
902
|
+
t.transitionState === "enter" && I.calcPosition();
|
|
903
|
+
}, 0)) : o();
|
|
904
|
+
}), v.observe(n), i > 0 && a > 0 && o(), b = setTimeout(o, 50);
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
b = setTimeout(e, (n.offsetWidth > 0 && n.offsetHeight, 0));
|
|
908
|
+
}
|
|
909
|
+
let P = {
|
|
910
|
+
canMotion: () => e.runtimeProps.value.motion,
|
|
911
|
+
containerIsBody: () => u === document.body,
|
|
912
|
+
containerIsRelative: () => !!(u && window.getComputedStyle(u).position === "relative"),
|
|
913
|
+
containerIsRelativeOrAbsolute: () => f === "relative" || f === "absolute",
|
|
914
|
+
getActiveElement: () => document.activeElement,
|
|
915
|
+
getAnimatingState: () => l,
|
|
916
|
+
getCache: (e) => o.get(e),
|
|
917
|
+
getCaches: () => o,
|
|
918
|
+
getContainer: () => r.value,
|
|
919
|
+
getContainerPosition: () => f,
|
|
920
|
+
getContext: () => void 0,
|
|
921
|
+
getContexts: () => void 0,
|
|
922
|
+
getDocumentElementBounding: () => document.documentElement.getBoundingClientRect(),
|
|
923
|
+
getEventName: () => ({
|
|
924
|
+
blur: "onBlur",
|
|
925
|
+
click: "onClick",
|
|
926
|
+
contextMenu: "onContextmenu",
|
|
927
|
+
focus: "onFocus",
|
|
928
|
+
keydown: "onKeydown",
|
|
929
|
+
mouseEnter: "onMouseenter",
|
|
930
|
+
mouseLeave: "onMouseleave",
|
|
931
|
+
mouseOut: "onMouseout",
|
|
932
|
+
mouseOver: "onMouseover"
|
|
933
|
+
}),
|
|
934
|
+
getFocusableElements: ue,
|
|
935
|
+
getPopupContainerRect: () => {
|
|
936
|
+
let e = u;
|
|
937
|
+
return e ? {
|
|
938
|
+
...Z(e.getBoundingClientRect()),
|
|
939
|
+
scrollLeft: e.scrollLeft,
|
|
940
|
+
scrollTop: e.scrollTop
|
|
941
|
+
} : null;
|
|
942
|
+
},
|
|
943
|
+
getProp: (e) => C()[e],
|
|
944
|
+
getProps: C,
|
|
945
|
+
getState: (e) => t[e],
|
|
946
|
+
getStates: () => t,
|
|
947
|
+
getTriggerBounding: () => i.value?.getBoundingClientRect(),
|
|
948
|
+
getTriggerDOM: () => i.value,
|
|
949
|
+
getTriggerNode: () => i.value,
|
|
950
|
+
getWrapperBounding: () => r.value?.getBoundingClientRect(),
|
|
951
|
+
insertPortal: (e, n) => {
|
|
952
|
+
E(), k(), t.isInsert = !0, t.transitionState = "enter", t.containerStyle = {
|
|
953
|
+
...t.containerStyle,
|
|
954
|
+
...n
|
|
955
|
+
}, t.isPositionUpdated = !1, w(N);
|
|
956
|
+
},
|
|
957
|
+
notifyEscKeydown: e.onEscKeydown,
|
|
958
|
+
notifyVisibleChange: e.onVisibleChange,
|
|
959
|
+
off: s.off,
|
|
960
|
+
on: s.on,
|
|
961
|
+
persistEvent: () => void 0,
|
|
962
|
+
registerClickOutsideHandler: (t) => {
|
|
963
|
+
P.unregisterClickOutsideHandler(), p = (n) => {
|
|
964
|
+
if (!c) return;
|
|
965
|
+
let a = n.target, o = n.composedPath?.() ?? (a ? [a] : []), s = i.value, l = r.value, u = !!(a instanceof Node && s?.contains(a) || s && o.includes(s)), d = !!(a instanceof Node && l?.contains(a) || l && o.includes(l));
|
|
966
|
+
(!u && !d || e.runtimeProps.value.clickTriggerToHide && u) && (e.onClickOutside(n), t());
|
|
967
|
+
}, window.addEventListener("mousedown", p);
|
|
968
|
+
},
|
|
969
|
+
registerPortalEvent: (e) => {
|
|
970
|
+
t.portalEventSet = e;
|
|
971
|
+
},
|
|
972
|
+
registerResizeHandler: (e) => {
|
|
973
|
+
P.unregisterResizeHandler(), m = () => {
|
|
974
|
+
h ||= setTimeout(() => {
|
|
975
|
+
h = void 0, c && e();
|
|
976
|
+
}, 10);
|
|
977
|
+
}, window.addEventListener("resize", m);
|
|
978
|
+
},
|
|
979
|
+
registerScrollHandler: (e) => {
|
|
980
|
+
P.unregisterScrollHandler(), g = (t) => {
|
|
981
|
+
_ ||= setTimeout(() => {
|
|
982
|
+
if (_ = void 0, !c || !(t.target instanceof Node)) return;
|
|
983
|
+
let n = i.value;
|
|
984
|
+
if (n && t.target.contains(n)) {
|
|
985
|
+
let n = t.target instanceof HTMLElement ? t.target : document.documentElement;
|
|
986
|
+
e({
|
|
987
|
+
x: n.scrollLeft,
|
|
988
|
+
y: n.scrollTop
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
}, 10);
|
|
992
|
+
}, window.addEventListener("scroll", g, !0);
|
|
993
|
+
},
|
|
994
|
+
registerTriggerEvent: (e) => {
|
|
995
|
+
t.triggerEventSet = e;
|
|
996
|
+
},
|
|
997
|
+
removePortal: () => {
|
|
998
|
+
t.isInsert = !1, t.isPositionUpdated = !1, w(A);
|
|
999
|
+
},
|
|
1000
|
+
setCache: (e, t) => o.set(String(e), t),
|
|
1001
|
+
setDisplayNone: (e, n) => {
|
|
1002
|
+
t.displayNone = e, n && w(n);
|
|
1003
|
+
},
|
|
1004
|
+
setId: () => {
|
|
1005
|
+
t.id = de();
|
|
1006
|
+
},
|
|
1007
|
+
setInitialFocus: () => {
|
|
1008
|
+
let t = e.runtimeProps.value.preventScroll;
|
|
1009
|
+
a.value?.focus(t === void 0 ? void 0 : { preventScroll: t });
|
|
1010
|
+
},
|
|
1011
|
+
setPosition: ({ position: e, ...n }) => {
|
|
1012
|
+
t.containerStyle = {
|
|
1013
|
+
...t.containerStyle,
|
|
1014
|
+
...n
|
|
1015
|
+
}, t.placement = e, t.isPositionUpdated = !0, w(() => s.emit("positionUpdated"));
|
|
1016
|
+
},
|
|
1017
|
+
setState: (e, n) => {
|
|
1018
|
+
Object.assign(t, e), n && w(n);
|
|
1019
|
+
},
|
|
1020
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
1021
|
+
togglePortalVisible: (e, n) => {
|
|
1022
|
+
t.transitionState = e ? "enter" : "leave", t.visible = e, w(n);
|
|
1023
|
+
},
|
|
1024
|
+
unregisterClickOutsideHandler: () => {
|
|
1025
|
+
p && window.removeEventListener("mousedown", p), p = void 0;
|
|
1026
|
+
},
|
|
1027
|
+
unregisterResizeHandler: () => {
|
|
1028
|
+
m && window.removeEventListener("resize", m), h && clearTimeout(h), m = void 0, h = void 0;
|
|
1029
|
+
},
|
|
1030
|
+
unregisterScrollHandler: () => {
|
|
1031
|
+
g && window.removeEventListener("scroll", g, !0), _ && clearTimeout(_), g = void 0, _ = void 0;
|
|
1032
|
+
},
|
|
1033
|
+
updateContainerPosition: () => {
|
|
1034
|
+
let e = document.body.getAttribute("data-position");
|
|
1035
|
+
if (e) {
|
|
1036
|
+
f = e;
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
x = requestAnimationFrame(() => {
|
|
1040
|
+
u && (f = window.getComputedStyle(u).position, document.body.setAttribute("data-position", f));
|
|
1041
|
+
});
|
|
1042
|
+
},
|
|
1043
|
+
updatePlacementAttr: (e) => {
|
|
1044
|
+
t.placement = e;
|
|
1045
|
+
}
|
|
1046
|
+
}, I = S(new ne(P));
|
|
1047
|
+
function L(e) {
|
|
1048
|
+
i.value = e;
|
|
1049
|
+
}
|
|
1050
|
+
function R(e) {
|
|
1051
|
+
r.value = e;
|
|
1052
|
+
}
|
|
1053
|
+
function z(e) {
|
|
1054
|
+
if (e instanceof HTMLElement) {
|
|
1055
|
+
a.value = e;
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
if (!e || e instanceof Element) {
|
|
1059
|
+
a.value = null;
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
a.value = e.$el instanceof HTMLElement ? e.$el : null;
|
|
1063
|
+
}
|
|
1064
|
+
function B() {
|
|
1065
|
+
l = !0;
|
|
1066
|
+
}
|
|
1067
|
+
function V(t) {
|
|
1068
|
+
l = !1, t === "leave" && (k(), e.runtimeProps.value.keepDOM ? I.setDisplayNone(!0) : P.removePortal(), I.unBindEvent(), e.onAfterClose());
|
|
1069
|
+
}
|
|
1070
|
+
function H() {
|
|
1071
|
+
I.hide();
|
|
1072
|
+
}
|
|
1073
|
+
function U(e) {
|
|
1074
|
+
I.handleContainerKeydown(e);
|
|
1075
|
+
}
|
|
1076
|
+
function W() {
|
|
1077
|
+
return I.calcPosition();
|
|
1078
|
+
}
|
|
1079
|
+
function ee() {
|
|
1080
|
+
I.focusTrigger();
|
|
1081
|
+
}
|
|
1082
|
+
return F(() => e.runtimeProps.value.visible, (t, n) => {
|
|
1083
|
+
!c || t === n || (e.runtimeProps.value.trigger === "hover" || e.runtimeProps.value.trigger === "focus" ? t ? I.delayShow() : I.delayHide() : t ? I.show() : I.hide());
|
|
1084
|
+
}), F(() => e.runtimeProps.value.rePosKey, (e, t) => {
|
|
1085
|
+
c && e !== t && I.calcPosition();
|
|
1086
|
+
}), F(() => [e.config.value.direction, e.runtimeProps.value.zIndex], T), O(() => {
|
|
1087
|
+
c = !0, d = e.runtimeProps.value.getPopupContainer ?? e.config.value.getPopupContainer, I.init(), setTimeout(() => {
|
|
1088
|
+
i.value?.matches?.(":hover") && t.triggerEventSet.onMouseenter?.();
|
|
1089
|
+
}, 0);
|
|
1090
|
+
}), D(() => {
|
|
1091
|
+
c = !1, I.destroy(), x !== void 0 && cancelAnimationFrame(x), P.unregisterClickOutsideHandler(), P.unregisterResizeHandler(), P.unregisterScrollHandler(), A();
|
|
1092
|
+
}), {
|
|
1093
|
+
animationEnd: V,
|
|
1094
|
+
animationStart: B,
|
|
1095
|
+
focusTrigger: ee,
|
|
1096
|
+
handleContainerKeydown: U,
|
|
1097
|
+
hide: H,
|
|
1098
|
+
portalTarget: n,
|
|
1099
|
+
rePosition: W,
|
|
1100
|
+
setInitialFocusElement: z,
|
|
1101
|
+
setPortalElement: R,
|
|
1102
|
+
setTriggerElement: L,
|
|
1103
|
+
state: t
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
//#endregion
|
|
1107
|
+
//#region src/tooltip/Tooltip.vue
|
|
1108
|
+
var pe = /* @__PURE__ */ _({
|
|
1109
|
+
name: "Tooltip",
|
|
1110
|
+
inheritAttrs: !1,
|
|
1111
|
+
__name: "Tooltip",
|
|
1112
|
+
props: {
|
|
1113
|
+
arrowBounding: {},
|
|
1114
|
+
arrowPointAtCenter: { type: Boolean },
|
|
1115
|
+
autoAdjustOverflow: { type: Boolean },
|
|
1116
|
+
class: { type: [
|
|
1117
|
+
Boolean,
|
|
1118
|
+
null,
|
|
1119
|
+
String,
|
|
1120
|
+
Object,
|
|
1121
|
+
Array
|
|
1122
|
+
] },
|
|
1123
|
+
clickToHide: { type: Boolean },
|
|
1124
|
+
clickTriggerToHide: { type: Boolean },
|
|
1125
|
+
closeOnEsc: { type: Boolean },
|
|
1126
|
+
condition: { type: Boolean },
|
|
1127
|
+
content: { type: [
|
|
1128
|
+
Object,
|
|
1129
|
+
String,
|
|
1130
|
+
Number,
|
|
1131
|
+
Boolean,
|
|
1132
|
+
null,
|
|
1133
|
+
Array
|
|
1134
|
+
] },
|
|
1135
|
+
disableArrowKeyDown: { type: Boolean },
|
|
1136
|
+
disableFocusListener: { type: Boolean },
|
|
1137
|
+
getPopupContainer: { type: Function },
|
|
1138
|
+
guardFocus: { type: Boolean },
|
|
1139
|
+
keepDOM: { type: Boolean },
|
|
1140
|
+
margin: {},
|
|
1141
|
+
motion: { type: Boolean },
|
|
1142
|
+
mouseEnterDelay: {},
|
|
1143
|
+
mouseLeaveDelay: {},
|
|
1144
|
+
position: {},
|
|
1145
|
+
prefixCls: {},
|
|
1146
|
+
preventScroll: { type: Boolean },
|
|
1147
|
+
rePosKey: {},
|
|
1148
|
+
returnFocusOnClose: { type: Boolean },
|
|
1149
|
+
role: {},
|
|
1150
|
+
showArrow: { type: [
|
|
1151
|
+
Boolean,
|
|
1152
|
+
Object,
|
|
1153
|
+
String,
|
|
1154
|
+
Number,
|
|
1155
|
+
null,
|
|
1156
|
+
Array
|
|
1157
|
+
] },
|
|
1158
|
+
spacing: {},
|
|
1159
|
+
stopPropagation: { type: Boolean },
|
|
1160
|
+
style: { type: [
|
|
1161
|
+
Boolean,
|
|
1162
|
+
null,
|
|
1163
|
+
String,
|
|
1164
|
+
Object,
|
|
1165
|
+
Array
|
|
1166
|
+
] },
|
|
1167
|
+
transformFromCenter: { type: Boolean },
|
|
1168
|
+
trigger: {},
|
|
1169
|
+
visible: { type: Boolean },
|
|
1170
|
+
wrapWhenSpecial: { type: Boolean },
|
|
1171
|
+
wrapperClassName: { type: [
|
|
1172
|
+
Boolean,
|
|
1173
|
+
null,
|
|
1174
|
+
String,
|
|
1175
|
+
Object,
|
|
1176
|
+
Array
|
|
1177
|
+
] },
|
|
1178
|
+
wrapperId: {},
|
|
1179
|
+
zIndex: {}
|
|
1180
|
+
},
|
|
1181
|
+
emits: [
|
|
1182
|
+
"afterClose",
|
|
1183
|
+
"clickOutside",
|
|
1184
|
+
"escKeydown",
|
|
1185
|
+
"visibleChange",
|
|
1186
|
+
"update:visible"
|
|
1187
|
+
],
|
|
1188
|
+
setup(e, { expose: t, emit: n }) {
|
|
1189
|
+
let a = e, s = n, c = v(), l = b(r, void 0), m = u(() => l ? l.value : {
|
|
1190
|
+
direction: "ltr",
|
|
1191
|
+
getPopupContainer: void 0
|
|
1192
|
+
});
|
|
1193
|
+
function _(e, t) {
|
|
1194
|
+
let n = String(e).replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), r = c?.vnode.props, o = !!(r && (Object.prototype.hasOwnProperty.call(r, e) || Object.prototype.hasOwnProperty.call(r, n))), s = a[e];
|
|
1195
|
+
if (o && s !== void 0) return s;
|
|
1196
|
+
let l = i.config.overrideDefaultProps?.Tooltip?.[e];
|
|
1197
|
+
return l === void 0 ? t : l;
|
|
1198
|
+
}
|
|
1199
|
+
let y = u(() => ({
|
|
1200
|
+
...a,
|
|
1201
|
+
arrowBounding: _("arrowBounding", {
|
|
1202
|
+
height: 7,
|
|
1203
|
+
offsetX: 0,
|
|
1204
|
+
offsetY: 2,
|
|
1205
|
+
width: 24
|
|
1206
|
+
}),
|
|
1207
|
+
arrowPointAtCenter: _("arrowPointAtCenter", !0),
|
|
1208
|
+
autoAdjustOverflow: _("autoAdjustOverflow", !0),
|
|
1209
|
+
class: a.class,
|
|
1210
|
+
closeOnEsc: _("closeOnEsc", !1),
|
|
1211
|
+
condition: _("condition", !0),
|
|
1212
|
+
disableArrowKeyDown: _("disableArrowKeyDown", !1),
|
|
1213
|
+
disableFocusListener: _("disableFocusListener", !1),
|
|
1214
|
+
guardFocus: _("guardFocus", !1),
|
|
1215
|
+
keepDOM: _("keepDOM", !1),
|
|
1216
|
+
margin: _("margin", 0),
|
|
1217
|
+
motion: _("motion", !0),
|
|
1218
|
+
mouseEnterDelay: _("mouseEnterDelay", 50),
|
|
1219
|
+
mouseLeaveDelay: _("mouseLeaveDelay", 50),
|
|
1220
|
+
position: _("position", "top"),
|
|
1221
|
+
prefixCls: _("prefixCls", "semi-tooltip"),
|
|
1222
|
+
returnFocusOnClose: _("returnFocusOnClose", !1),
|
|
1223
|
+
role: _("role", "tooltip"),
|
|
1224
|
+
showArrow: _("showArrow", !0),
|
|
1225
|
+
spacing: _("spacing", 8),
|
|
1226
|
+
style: a.style,
|
|
1227
|
+
transformFromCenter: _("transformFromCenter", !0),
|
|
1228
|
+
trigger: _("trigger", "hover"),
|
|
1229
|
+
wrapWhenSpecial: _("wrapWhenSpecial", !0),
|
|
1230
|
+
zIndex: _("zIndex", 1060)
|
|
1231
|
+
})), { animationEnd: x, animationStart: S, focusTrigger: w, handleContainerKeydown: T, hide: E, portalTarget: D, rePosition: O, setInitialFocusElement: j, setPortalElement: M, setTriggerElement: P, state: L } = fe({
|
|
1232
|
+
config: m,
|
|
1233
|
+
onAfterClose: () => s("afterClose"),
|
|
1234
|
+
onClickOutside: (e) => s("clickOutside", e),
|
|
1235
|
+
onEscKeydown: (e) => s("escKeydown", e),
|
|
1236
|
+
onVisibleChange: (e) => {
|
|
1237
|
+
s("visibleChange", e), s("update:visible", e);
|
|
1238
|
+
},
|
|
1239
|
+
runtimeProps: y
|
|
1240
|
+
});
|
|
1241
|
+
F(() => [y.value.mouseEnterDelay, y.value.mouseLeaveDelay], ([e, t]) => {
|
|
1242
|
+
t < e && console.warn("[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden.");
|
|
1243
|
+
}, { immediate: !0 });
|
|
1244
|
+
function R() {
|
|
1245
|
+
return L.id;
|
|
1246
|
+
}
|
|
1247
|
+
return t({
|
|
1248
|
+
focusTrigger: w,
|
|
1249
|
+
getPopupId: R,
|
|
1250
|
+
rePosition: O
|
|
1251
|
+
}), (e, t) => (k(), p(o, null, [N(L).isInsert && N(D) ? (k(), d(Y, {
|
|
1252
|
+
key: 0,
|
|
1253
|
+
"click-to-hide": !!y.value.clickToHide,
|
|
1254
|
+
content: y.value.content,
|
|
1255
|
+
direction: m.value.direction,
|
|
1256
|
+
"initial-focus-ref": N(j),
|
|
1257
|
+
motion: y.value.motion,
|
|
1258
|
+
"popup-class": y.value.class,
|
|
1259
|
+
"popup-style": y.value.style,
|
|
1260
|
+
"portal-target": N(D),
|
|
1261
|
+
"prefix-cls": y.value.prefixCls,
|
|
1262
|
+
role: y.value.role,
|
|
1263
|
+
"show-arrow": y.value.showArrow,
|
|
1264
|
+
state: N(L),
|
|
1265
|
+
"stop-propagation": !!y.value.stopPropagation,
|
|
1266
|
+
onAnimationStart: N(S),
|
|
1267
|
+
onAnimationEnd: N(x),
|
|
1268
|
+
onHide: N(E),
|
|
1269
|
+
onKeydown: N(T),
|
|
1270
|
+
onPortalElement: N(M)
|
|
1271
|
+
}, h({ _: 2 }, [e.$slots.content ? {
|
|
1272
|
+
name: "content",
|
|
1273
|
+
fn: I(({ initialFocusRef: t }) => [A(e.$slots, "content", { initialFocusRef: t })]),
|
|
1274
|
+
key: "0"
|
|
1275
|
+
} : void 0, e.$slots.arrow ? {
|
|
1276
|
+
name: "arrow",
|
|
1277
|
+
fn: I(() => [A(e.$slots, "arrow")]),
|
|
1278
|
+
key: "1"
|
|
1279
|
+
} : void 0]), 1032, [
|
|
1280
|
+
"click-to-hide",
|
|
1281
|
+
"content",
|
|
1282
|
+
"direction",
|
|
1283
|
+
"initial-focus-ref",
|
|
1284
|
+
"motion",
|
|
1285
|
+
"popup-class",
|
|
1286
|
+
"popup-style",
|
|
1287
|
+
"portal-target",
|
|
1288
|
+
"prefix-cls",
|
|
1289
|
+
"role",
|
|
1290
|
+
"show-arrow",
|
|
1291
|
+
"state",
|
|
1292
|
+
"stop-propagation",
|
|
1293
|
+
"onAnimationStart",
|
|
1294
|
+
"onAnimationEnd",
|
|
1295
|
+
"onHide",
|
|
1296
|
+
"onKeydown",
|
|
1297
|
+
"onPortalElement"
|
|
1298
|
+
])) : f("", !0), g(N(le), C(N(L).id === void 0 ? {} : { popupId: N(L).id }, {
|
|
1299
|
+
"event-set": N(L).triggerEventSet,
|
|
1300
|
+
role: y.value.role,
|
|
1301
|
+
"set-trigger-element": N(P),
|
|
1302
|
+
trigger: y.value.trigger,
|
|
1303
|
+
visible: N(L).visible,
|
|
1304
|
+
"wrap-when-special": y.value.wrapWhenSpecial,
|
|
1305
|
+
"wrapper-class-name": y.value.wrapperClassName
|
|
1306
|
+
}), {
|
|
1307
|
+
default: I(() => [A(e.$slots, "default")]),
|
|
1308
|
+
_: 3
|
|
1309
|
+
}, 16, [
|
|
1310
|
+
"event-set",
|
|
1311
|
+
"role",
|
|
1312
|
+
"set-trigger-element",
|
|
1313
|
+
"trigger",
|
|
1314
|
+
"visible",
|
|
1315
|
+
"wrap-when-special",
|
|
1316
|
+
"wrapper-class-name"
|
|
1317
|
+
])], 64));
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
//#endregion
|
|
1321
|
+
export { te as a, B as c, U as d, H as f, ee as i, z as l, q as n, L as o, W as r, R as s, pe as t, V as u };
|